]> git.saurik.com Git - wxWidgets.git/blame - configure
Rebaked with Bakefile 0.1.7.
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
81f90336 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
81f90336
MW
273PACKAGE_VERSION='2.5.4'
274PACKAGE_STRING='wxWidgets 2.5.4'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
dae87f93 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
81f90336 797\`configure' configures wxWidgets 2.5.4 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
81f90336 863 short | recursive ) echo "Configuration of wxWidgets 2.5.4:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
a848cd7e 907 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
911 --enable-dialupman use dialup network classes
912 --enable-dynlib use wxLibrary class for DLL loading
913 --enable-dynamicloader use (new) wxDynamicLibrary class
914 --enable-exceptions build exception-safe library
915 --enable-ffile use wxFFile class
916 --enable-file use wxFile class
917 --enable-filesystem use virtual file systems classes
918 --enable-fontmap use font encodings conversion classes
919 --enable-fs_inet use virtual HTTP/FTP filesystems
920 --enable-fs_zip use virtual ZIP filesystems
921 --enable-geometry use geometry class
922 --enable-log use logging system
923 --enable-longlong use wxLongLong class
924 --enable-mimetype use wxMimeTypesManager
925 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
926 --enable-snglinst use wxSingleInstanceChecker class
927 --enable-streams use wxStream etc classes
928 --enable-std_iostreams use standard C++ stream classes
929 --enable-stopwatch use wxStopWatch class
930 --enable-sysoptions use wxSystemOptions
931 --enable-textbuf use wxTextBuffer class
932 --enable-textfile use wxTextFile class
933 --enable-timer use wxTimer class
934 --enable-unicode compile wxString with Unicode support
935 --enable-sound use wxSound class
3b57de8b 936 --enable-mediactrl use wxMediaCtrl class
77ffb593 937 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 938 --enable-zipstream use wxZip streams
a848cd7e
SC
939 --enable-url use wxURL class
940 --enable-protocol use wxProtocol class
941 --enable-protocol-http HTTP support in wxProtocol
942 --enable-protocol-ftp FTP support in wxProtocol
943 --enable-protocol-file FILE support in wxProtocol
944 --enable-threads use threads
945 --enable-docview use document view architecture
946 --enable-help use help subsystem
947 --enable-mshtmlhelp use MS HTML Help (win32)
948 --enable-html use wxHTML sub-library
949 --enable-htmlhelp use wxHTML-based help
9a8f0513 950 --enable-xrc use XRC resources sub-library
a848cd7e
SC
951 --enable-constraints use layout-constraints system
952 --enable-printarch use printing architecture
953 --enable-mdi use multiple document interface architecture
8a7b1113 954 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
955 --enable-loggui use standard GUI logger
956 --enable-logwin use wxLogWindow
957 --enable-logdialog use wxLogDialog
646b6ec1 958 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
959 --enable-postscript use wxPostscriptDC device context (default for gtk+)
960 --enable-prologio not available; see contrib
961 --enable-resources not available; see contrib
962 --enable-clipboard use wxClipboard class
963 --enable-dnd use Drag'n'Drop classes
964 --enable-metafile use win32 metafiles
965 --enable-controls use all usual controls
966 --enable-accel use accelerators
967 --enable-button use wxButton class
968 --enable-bmpbutton use wxBitmapButton class
969 --enable-calendar use wxCalendarCtrl class
970 --enable-caret use wxCaret class
971 --enable-checkbox use wxCheckBox class
972 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
973 --enable-choice use wxChoice class
92bbdbcd 974 --enable-choicebook use wxChoicebook class
a848cd7e 975 --enable-combobox use wxComboBox class
da98e9be 976 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
977 --enable-display use wxDisplay class
978 --enable-gauge use wxGauge class
979 --enable-grid use wxGrid class
980 --enable-imaglist use wxImageList class
981 --enable-listbook use wxListbook class
982 --enable-listbox use wxListBox class
983 --enable-listctrl use wxListCtrl class
984 --enable-notebook use wxNotebook class
985 --enable-radiobox use wxRadioBox class
986 --enable-radiobtn use wxRadioButton class
987 --enable-sash use wxSashWindow class
988 --enable-scrollbar use wxScrollBar class and scrollable windows
989 --enable-slider use wxSlider class
990 --enable-spinbtn use wxSpinButton class
991 --enable-spinctrl use wxSpinCtrl class
992 --enable-splitter use wxSplitterWindow class
993 --enable-statbmp use wxStaticBitmap class
994 --enable-statbox use wxStaticBox class
995 --enable-statline use wxStaticLine class
996 --enable-stattext use wxStaticText class
997 --enable-statusbar use wxStatusBar class
998 --enable-tabdialog use wxTabControl class
999 --enable-textctrl use wxTextCtrl class
1000 --enable-togglebtn use wxToggleButton class
1001 --enable-toolbar use wxToolBar class
1002 --enable-tbarnative use native wxToolBar class
1003 --enable-tbarsmpl use wxToolBarSimple class
1004 --enable-treectrl use wxTreeCtrl class
1005 --enable-tipwindow use wxTipWindow class
1006 --enable-popupwin use wxPopUpWindow class
1007 --enable-commondlg use all common dialogs
1008 --enable-choicedlg use wxChoiceDialog
1009 --enable-coldlg use wxColourDialog
1010 --enable-filedlg use wxFileDialog
1011 --enable-finddlg use wxFindReplaceDialog
1012 --enable-fontdlg use wxFontDialog
1013 --enable-dirdlg use wxDirDialog
1014 --enable-msgdlg use wxMessageDialog
1015 --enable-numberdlg use wxNumberEntryDialog
1016 --enable-splash use wxSplashScreen
1017 --enable-textdlg use wxTextDialog
1018 --enable-tipdlg use startup tips
1019 --enable-progressdlg use wxProgressDialog
1020 --enable-wizarddlg use wxWizard
1021 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1022 --enable-miniframe use wxMiniFrame class
1023 --enable-tooltips use wxToolTip class
1024 --enable-splines use spline drawing code
1025 --enable-validators use wxValidator and derived classes
1026 --enable-busyinfo use wxBusyInfo
4cb1d3da 1027 --enable-joystick use wxJoystick
a848cd7e
SC
1028 --enable-metafiles use wxMetaFile (Windows only)
1029 --enable-dragimage use wxDragImage
1030 --enable-accessibility enable accessibility support
1031 --enable-palette use wxPalette class
1032 --enable-image use wxImage class
1033 --enable-gif use gif images (GIF file format)
1034 --enable-pcx use pcx images (PCX file format)
1035 --enable-iff use iff images (IFF file format)
1036 --enable-pnm use pnm images (PNM file format)
1037 --enable-xpm use xpm images (XPM file format)
1038 --enable-icocur use Windows ICO and CUR formats
77ffb593 1039 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1040 --enable-vendor=VENDOR vendor name (win32 DLL only)
1041 --disable-largefile omit support for large files
1042 --disable-gtktest do not try to compile and run a test GTK+ program
1043 --disable-gtktest Do not try to compile and run a test GTK program
1044 --disable-sdltest Do not try to compile and run a test SDL program
1045 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1046 --disable-precomp-headers
1047 don't use precompiled headers even if compiler can
a848cd7e
SC
1048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-gtk use GTK+
1053 --with-motif use Motif/Lesstif
1054 --with-mac use Mac OS X
1055 --with-cocoa use Cocoa
1056 --with-wine use Wine
1057 --with-msw use MS-Windows
1058 --with-pm use OS/2 Presentation Manager
1059 --with-mgl use SciTech MGL
1060 --with-microwin use MicroWindows
1061 --with-x11 use X11
1062 --with-libpng use libpng (PNG image format)
1063 --with-libjpeg use libjpeg (JPEG file format)
1064 --with-libtiff use libtiff (TIFF file format)
1065 --with-libxpm use libxpm (XPM file format)
1066 --with-libmspack use libmspack (CHM help files loading)
1067 --with-sdl use SDL for audio on Unix
d51253e8 1068 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1069 --with-opengl use OpenGL (or Mesa)
1070 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1071 --with-regex enable support for wxRegEx class
1072 --with-zlib use zlib for LZW compression
1073 --with-odbc use the IODBC and wxODBC classes
1074 --with-expat enable XML support using expat parser
ceec2216 1075 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1076 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1077 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1078 --with-x use the X Window System
1079 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1080 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1081 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1082 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1083 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1084
1085Some influential environment variables:
dcc1b6ad
VS
1086 CC C compiler command
1087 CFLAGS C compiler flags
1088 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1089 nonstandard directory <lib dir>
1090 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1091 headers in a nonstandard directory <include dir>
1092 CPP C preprocessor
1093 CXX C++ compiler command
1094 CXXFLAGS C++ compiler flags
1095 CXXCPP C++ preprocessor
a848cd7e
SC
1096
1097Use these variables to override the choices made by `configure' or to help
1098it to find libraries and programs with nonstandard names/locations.
1099
77ffb593 1100Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1101_ACEOF
1102fi
1103
1104if test "$ac_init_help" = "recursive"; then
1105 # If there are subdirs, report their specific --help.
1106 ac_popdir=`pwd`
1107 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1108 test -d $ac_dir || continue
1109 ac_builddir=.
1110
1111if test "$ac_dir" != .; then
1112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1113 # A "../" for each directory in $ac_dir_suffix.
1114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1115else
1116 ac_dir_suffix= ac_top_builddir=
1117fi
1118
1119case $srcdir in
1120 .) # No --srcdir option. We are building in place.
1121 ac_srcdir=.
1122 if test -z "$ac_top_builddir"; then
1123 ac_top_srcdir=.
1124 else
1125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1126 fi ;;
1127 [\\/]* | ?:[\\/]* ) # Absolute path.
1128 ac_srcdir=$srcdir$ac_dir_suffix;
1129 ac_top_srcdir=$srcdir ;;
1130 *) # Relative path.
1131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1133esac
ac1cb8d3
VS
1134
1135# Do not use `cd foo && pwd` to compute absolute paths, because
1136# the directories may not exist.
1137case `pwd` in
1138.) ac_abs_builddir="$ac_dir";;
1139*)
1140 case "$ac_dir" in
1141 .) ac_abs_builddir=`pwd`;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1143 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_builddir=${ac_top_builddir}.;;
1148*)
1149 case ${ac_top_builddir}. in
1150 .) ac_abs_top_builddir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_srcdir=$ac_srcdir;;
1157*)
1158 case $ac_srcdir in
1159 .) ac_abs_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1161 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1162 esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_srcdir=$ac_top_srcdir;;
1166*)
1167 case $ac_top_srcdir in
1168 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1171 esac;;
1172esac
a848cd7e
SC
1173
1174 cd $ac_dir
1175 # Check for guested configure; otherwise get Cygnus style configure.
1176 if test -f $ac_srcdir/configure.gnu; then
1177 echo
1178 $SHELL $ac_srcdir/configure.gnu --help=recursive
1179 elif test -f $ac_srcdir/configure; then
1180 echo
1181 $SHELL $ac_srcdir/configure --help=recursive
1182 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1183 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1184 echo
1185 $ac_configure --help
1186 else
1187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1188 fi
89be85c2 1189 cd $ac_popdir
a848cd7e
SC
1190 done
1191fi
1192
1193test -n "$ac_init_help" && exit 0
1194if $ac_init_version; then
1195 cat <<\_ACEOF
81f90336 1196wxWidgets configure 2.5.4
ac1cb8d3 1197generated by GNU Autoconf 2.59
a848cd7e 1198
ac1cb8d3 1199Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1200This configure script is free software; the Free Software Foundation
1201gives unlimited permission to copy, distribute and modify it.
1202_ACEOF
1203 exit 0
1204fi
1205exec 5>config.log
1206cat >&5 <<_ACEOF
1207This file contains any messages produced by compilers while
1208running configure, to aid debugging if configure makes a mistake.
1209
81f90336 1210It was created by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 1211generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1212
1213 $ $0 $@
1214
1215_ACEOF
1216{
1217cat <<_ASUNAME
1218## --------- ##
1219## Platform. ##
1220## --------- ##
1221
1222hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1223uname -m = `(uname -m) 2>/dev/null || echo unknown`
1224uname -r = `(uname -r) 2>/dev/null || echo unknown`
1225uname -s = `(uname -s) 2>/dev/null || echo unknown`
1226uname -v = `(uname -v) 2>/dev/null || echo unknown`
1227
1228/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1229/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1230
1231/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1232/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1233/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1234hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1235/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1236/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1237/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1238
1239_ASUNAME
1240
1241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1242for as_dir in $PATH
1243do
1244 IFS=$as_save_IFS
1245 test -z "$as_dir" && as_dir=.
1246 echo "PATH: $as_dir"
1247done
1248
1249} >&5
1250
1251cat >&5 <<_ACEOF
1252
1253
1254## ----------- ##
1255## Core tests. ##
1256## ----------- ##
1257
1258_ACEOF
1259
1260
1261# Keep a trace of the command line.
1262# Strip out --no-create and --no-recursion so they do not pile up.
1263# Strip out --silent because we don't want to record it for future runs.
1264# Also quote any args containing shell meta-characters.
1265# Make two passes to allow for proper duplicate-argument suppression.
1266ac_configure_args=
1267ac_configure_args0=
1268ac_configure_args1=
1269ac_sep=
1270ac_must_keep_next=false
1271for ac_pass in 1 2
1272do
1273 for ac_arg
1274 do
1275 case $ac_arg in
1276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 continue ;;
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 esac
1283 case $ac_pass in
1284 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1285 2)
1286 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1287 if test $ac_must_keep_next = true; then
ac1cb8d3 1288 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1289 else
ac1cb8d3
VS
1290 case $ac_arg in
1291 *=* | --config-cache | -C | -disable-* | --disable-* \
1292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1294 | -with-* | --with-* | -without-* | --without-* | --x)
1295 case "$ac_configure_args0 " in
1296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1297 esac
1298 ;;
1299 -* ) ac_must_keep_next=true ;;
1300 esac
a848cd7e
SC
1301 fi
1302 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1303 # Get rid of the leading space.
1304 ac_sep=" "
1305 ;;
1306 esac
1307 done
1308done
1309$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1310$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1311
1312# When interrupted or exit'd, cleanup temporary files, and complete
1313# config.log. We remove comments because anyway the quotes in there
1314# would cause problems or look ugly.
1315# WARNING: Be sure not to use single quotes in there, as some shells,
1316# such as our DU 5.0 friend, will then `close' the trap.
1317trap 'exit_status=$?
1318 # Save into config.log some information that might help in debugging.
1319 {
1320 echo
1321
1322 cat <<\_ASBOX
1323## ---------------- ##
1324## Cache variables. ##
1325## ---------------- ##
1326_ASBOX
1327 echo
1328 # The following way of writing the cache mishandles newlines in values,
1329{
1330 (set) 2>&1 |
1331 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1332 *ac_space=\ *)
1333 sed -n \
ac1cb8d3
VS
1334 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1336 ;;
1337 *)
1338 sed -n \
ac1cb8d3 1339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1340 ;;
1341 esac;
1342}
1343 echo
1344
1345 cat <<\_ASBOX
1346## ----------------- ##
1347## Output variables. ##
1348## ----------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_vars
1352 do
1353 eval ac_val=$`echo $ac_var`
1354 echo "$ac_var='"'"'$ac_val'"'"'"
1355 done | sort
1356 echo
1357
1358 if test -n "$ac_subst_files"; then
1359 cat <<\_ASBOX
1360## ------------- ##
1361## Output files. ##
1362## ------------- ##
1363_ASBOX
1364 echo
1365 for ac_var in $ac_subst_files
1366 do
1367 eval ac_val=$`echo $ac_var`
ac1cb8d3 1368 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1369 done | sort
1370 echo
1371 fi
1372
1373 if test -s confdefs.h; then
1374 cat <<\_ASBOX
1375## ----------- ##
1376## confdefs.h. ##
1377## ----------- ##
1378_ASBOX
1379 echo
1380 sed "/^$/d" confdefs.h | sort
1381 echo
1382 fi
1383 test "$ac_signal" != 0 &&
1384 echo "$as_me: caught signal $ac_signal"
1385 echo "$as_me: exit $exit_status"
1386 } >&5
ac1cb8d3 1387 rm -f core *.core &&
a848cd7e
SC
1388 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1389 exit $exit_status
1390 ' 0
1391for ac_signal in 1 2 13 15; do
1392 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1393done
1394ac_signal=0
1395
1396# confdefs.h avoids OS command line length limits that DEFS can exceed.
1397rm -rf conftest* confdefs.h
1398# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1399echo >confdefs.h
1400
1401# Predefined preprocessor variables.
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_NAME "$PACKAGE_NAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_VERSION "$PACKAGE_VERSION"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_STRING "$PACKAGE_STRING"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1425_ACEOF
1426
1427
1428# Let the site file select an alternate cache file if it wants to.
1429# Prefer explicitly selected file to automatically selected ones.
1430if test -z "$CONFIG_SITE"; then
1431 if test "x$prefix" != xNONE; then
1432 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1433 else
1434 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1435 fi
1436fi
1437for ac_site_file in $CONFIG_SITE; do
1438 if test -r "$ac_site_file"; then
1439 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1440echo "$as_me: loading site script $ac_site_file" >&6;}
1441 sed 's/^/| /' "$ac_site_file" >&5
1442 . "$ac_site_file"
1443 fi
1444done
1445
1446if test -r "$cache_file"; then
1447 # Some versions of bash will fail to source /dev/null (special
1448 # files actually), so we avoid doing that.
1449 if test -f "$cache_file"; then
1450 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1451echo "$as_me: loading cache $cache_file" >&6;}
1452 case $cache_file in
1453 [\\/]* | ?:[\\/]* ) . $cache_file;;
1454 *) . ./$cache_file;;
1455 esac
1456 fi
1457else
1458 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1459echo "$as_me: creating cache $cache_file" >&6;}
1460 >$cache_file
1461fi
1462
1463# Check that the precious variables saved in the cache have kept the same
1464# value.
1465ac_cache_corrupted=false
1466for ac_var in `(set) 2>&1 |
ac1cb8d3 1467 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1469 eval ac_new_set=\$ac_env_${ac_var}_set
1470 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1471 eval ac_new_val="\$ac_env_${ac_var}_value"
1472 case $ac_old_set,$ac_new_set in
1473 set,)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1475echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,set)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,);;
1482 *)
1483 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1484 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1485echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1486 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1487echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1489echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1490 ac_cache_corrupted=:
a848cd7e
SC
1491 fi;;
1492 esac
1493 # Pass precious variables to config.status.
1494 if test "$ac_new_set" = set; then
1495 case $ac_new_val in
1496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1497 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1498 *) ac_arg=$ac_var=$ac_new_val ;;
1499 esac
1500 case " $ac_configure_args " in
1501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1502 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 esac
1504 fi
1505done
1506if $ac_cache_corrupted; then
1507 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1508echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1509 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1510echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1511 { (exit 1); exit 1; }; }
1512fi
1513
1514ac_ext=c
1515ac_cpp='$CPP $CPPFLAGS'
1516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1518ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549ac_aux_dir=
1550for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1551 if test -f $ac_dir/install-sh; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/install-sh -c"
1554 break
1555 elif test -f $ac_dir/install.sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install.sh -c"
1558 break
1559 elif test -f $ac_dir/shtool; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/shtool install -c"
1562 break
1563 fi
1564done
1565if test -z "$ac_aux_dir"; then
1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1567echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1568 { (exit 1); exit 1; }; }
1569fi
1570ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1571ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1572ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1573
1574# Make sure we can run config.sub.
1575$ac_config_sub sun4 >/dev/null 2>&1 ||
1576 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1577echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580echo "$as_me:$LINENO: checking build system type" >&5
1581echo $ECHO_N "checking build system type... $ECHO_C" >&6
1582if test "${ac_cv_build+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_build_alias=$build_alias
1586test -z "$ac_cv_build_alias" &&
1587 ac_cv_build_alias=`$ac_config_guess`
1588test -z "$ac_cv_build_alias" &&
1589 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1590echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1591 { (exit 1); exit 1; }; }
1592ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1594echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597fi
1598echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1599echo "${ECHO_T}$ac_cv_build" >&6
1600build=$ac_cv_build
1601build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606echo "$as_me:$LINENO: checking host system type" >&5
1607echo $ECHO_N "checking host system type... $ECHO_C" >&6
1608if test "${ac_cv_host+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 ac_cv_host_alias=$host_alias
1612test -z "$ac_cv_host_alias" &&
1613 ac_cv_host_alias=$ac_cv_build_alias
1614ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1616echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1618
1619fi
1620echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1621echo "${ECHO_T}$ac_cv_host" >&6
1622host=$ac_cv_host
1623host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628echo "$as_me:$LINENO: checking target system type" >&5
1629echo $ECHO_N "checking target system type... $ECHO_C" >&6
1630if test "${ac_cv_target+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 ac_cv_target_alias=$target_alias
1634test "x$ac_cv_target_alias" = "x" &&
1635 ac_cv_target_alias=$ac_cv_host_alias
1636ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1643echo "${ECHO_T}$ac_cv_target" >&6
1644target=$ac_cv_target
1645target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650# The aliases save the names the user supplied, while $host etc.
1651# will get canonicalized.
1652test -n "$target_alias" &&
1653 test "$program_prefix$program_suffix$program_transform_name" = \
1654 NONENONEs,x,x, &&
1655 program_prefix=${target_alias}-
1656
1657
1658
ceec2216
RL
1659wx_major_version_number=2
1660wx_minor_version_number=5
e41c39d6
RD
1661wx_release_number=4
1662wx_subrelease_number=0
a848cd7e 1663
ceec2216
RL
1664WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1665WX_VERSION=$WX_RELEASE.$wx_release_number
1666WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1667
ceec2216 1668WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1669
e41c39d6 1670WX_CURRENT=4
a848cd7e 1671WX_REVISION=0
e41c39d6 1672WX_AGE=4
a848cd7e
SC
1673
1674
1675
1676USE_UNIX=1
1677USE_OS2=0
1678USE_WIN32=0
1679USE_DOS=0
1680USE_BEOS=0
1681USE_MAC=0
1682
1683USE_AIX=
1684USE_BSD= USE_DARWIN= USE_FREEBSD=
1685USE_GNU= USE_HPUX=
1686USE_LINUX=
1687USE_NETBSD=
1688USE_OPENBSD=
1689USE_OSF= USE_SGI=
1690USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1691USE_ULTRIX=
1692USE_UNIXWARE=
1693
1694USE_ALPHA=
1695
1696NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1697
1698ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1699
1700DEFAULT_wxUSE_COCOA=0
1701DEFAULT_wxUSE_GTK=0
1702DEFAULT_wxUSE_MAC=0
1703DEFAULT_wxUSE_MGL=0
1704DEFAULT_wxUSE_MICROWIN=0
1705DEFAULT_wxUSE_MOTIF=0
1706DEFAULT_wxUSE_MSW=0
1707DEFAULT_wxUSE_PM=0
1708DEFAULT_wxUSE_X11=0
1709
1710DEFAULT_DEFAULT_wxUSE_COCOA=0
1711DEFAULT_DEFAULT_wxUSE_GTK=0
1712DEFAULT_DEFAULT_wxUSE_MAC=0
1713DEFAULT_DEFAULT_wxUSE_MGL=0
1714DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1715DEFAULT_DEFAULT_wxUSE_MOTIF=0
1716DEFAULT_DEFAULT_wxUSE_MSW=0
1717DEFAULT_DEFAULT_wxUSE_PM=0
1718DEFAULT_DEFAULT_wxUSE_X11=0
1719
1720PROGRAM_EXT=
1721SO_SUFFIX=so
1722SAMPLES_RPATH_FLAG=
1723SAMPLES_RPATH_POSTLINK=
1724
1725case "${host}" in
1726 *-hp-hpux* )
1727 USE_HPUX=1
1728 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1729 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1730 SO_SUFFIX=sl
1731 cat >>confdefs.h <<\_ACEOF
1732#define __HPUX__ 1
1733_ACEOF
1734
1735 ;;
1736 *-*-linux* )
1737 USE_LINUX=1
1738 cat >>confdefs.h <<\_ACEOF
1739#define __LINUX__ 1
1740_ACEOF
1741
1742 TMP=`uname -m`
1743 if test "x$TMP" = "xalpha"; then
1744 USE_ALPHA=1
1745 cat >>confdefs.h <<\_ACEOF
1746#define __ALPHA__ 1
1747_ACEOF
1748
1749 fi
1750 DEFAULT_DEFAULT_wxUSE_GTK=1
1751 ;;
1752 *-*-gnu* | *-*-k*bsd*-gnu )
1753 USE_GNU=1
1754 TMP=`uname -m`
1755 if test "x$TMP" = "xalpha"; then
1756 USE_ALPHA=1
1757 cat >>confdefs.h <<\_ACEOF
1758#define __ALPHA__ 1
1759_ACEOF
1760
1761 fi
1762 DEFAULT_DEFAULT_wxUSE_GTK=1
1763 ;;
1764 *-*-irix5* | *-*-irix6* )
1765 USE_SGI=1
1766 USE_SVR4=1
1767 cat >>confdefs.h <<\_ACEOF
1768#define __SGI__ 1
1769_ACEOF
1770
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SVR4__ 1
1773_ACEOF
1774
1775 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1776 ;;
1777 *-*-solaris2* )
1778 USE_SUN=1
1779 USE_SOLARIS=1
1780 USE_SVR4=1
1781 cat >>confdefs.h <<\_ACEOF
1782#define __SUN__ 1
1783_ACEOF
1784
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SOLARIS__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SVR4__ 1
1791_ACEOF
1792
1793 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1794 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1795 ;;
1796 *-*-sunos4* )
1797 USE_SUN=1
1798 USE_SUNOS=1
1799 USE_BSD=1
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SUN__ 1
1802_ACEOF
1803
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUNOS__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __BSD__ 1
1810_ACEOF
1811
1812 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1813 ;;
1814 *-*-freebsd*)
1815 USE_BSD=1
1816 USE_FREEBSD=1
1817 cat >>confdefs.h <<\_ACEOF
1818#define __FREEBSD__ 1
1819_ACEOF
1820
1821 cat >>confdefs.h <<\_ACEOF
1822#define __BSD__ 1
1823_ACEOF
1824
1825 DEFAULT_DEFAULT_wxUSE_GTK=1
1826 ;;
1827 *-*-openbsd*)
1828 USE_BSD=1
1829 USE_OPENBSD=1
1830 cat >>confdefs.h <<\_ACEOF
1831#define __OPENBSD__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_GTK=1
1839 ;;
1840 *-*-netbsd*)
1841 USE_BSD=1
1842 USE_NETBSD=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __NETBSD__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __BSD__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_GTK=1
1852 ;;
1853 *-*-osf* )
1854 USE_ALPHA=1
1855 USE_OSF=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __ALPHA__ 1
1858_ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861#define __OSF__ 1
1862_ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1866 ;;
1867 *-*-dgux5* )
1868 USE_ALPHA=1
1869 USE_SVR4=1
1870 cat >>confdefs.h <<\_ACEOF
1871#define __ALPHA__ 1
1872_ACEOF
1873
1874 cat >>confdefs.h <<\_ACEOF
1875#define __SVR4__ 1
1876_ACEOF
1877
1878 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879 ;;
1880 *-*-sysv5* )
1881 USE_SYSV=1
1882 USE_SVR4=1
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SYSV__ 1
1885_ACEOF
1886
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SVR4__ 1
1889_ACEOF
1890
1891 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1892 ;;
1893 *-*-aix* )
1894 USE_AIX=1
1895 USE_SYSV=1
1896 USE_SVR4=1
1897 SO_SUFFIX=a
1898 cat >>confdefs.h <<\_ACEOF
1899#define __AIX__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SYSV__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SVR4__ 1
1908_ACEOF
1909
1910 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1911 ;;
1912
1913 *-*-*UnixWare*)
1914 USE_SYSV=1
1915 USE_SVR4=1
1916 USE_UNIXWARE=1
1917 cat >>confdefs.h <<\_ACEOF
1918#define __UNIXWARE__ 1
1919_ACEOF
1920
1921 ;;
1922
1923 *-*-cygwin* | *-*-mingw32* )
1924 SO_SUFFIX=dll
1925 PROGRAM_EXT=".exe"
1926 RESCOMP=windres
1927 DEFAULT_DEFAULT_wxUSE_MSW=1
1928 ;;
1929
1930 *-pc-msdosdjgpp )
1931 USE_UNIX=0
1932 USE_DOS=1
1933 cat >>confdefs.h <<\_ACEOF
1934#define __DOS__ 1
1935_ACEOF
1936
1937 PROGRAM_EXT=".exe"
1938 DEFAULT_DEFAULT_wxUSE_MGL=1
1939 LIBS="$LIBS -lstdc++"
1940 ;;
1941
1942 *-pc-os2_emx | *-pc-os2-emx )
1943 cat >>confdefs.h <<\_ACEOF
1944#define __EMX__ 1
1945_ACEOF
1946
1947 USE_OS2=1
1948 cat >>confdefs.h <<\_ACEOF
1949#define __OS2__ 1
1950_ACEOF
1951
1952 PROGRAM_EXT=".exe"
1953 DEFAULT_DEFAULT_wxUSE_PM=1
1954 CXX=gcc
1955 LDFLAGS="$LDFLAGS -Zcrtdll"
1956 ac_executable_extensions=".exe"
1957 export ac_executable_extensions
1958 ac_save_IFS="$IFS"
1959 IFS='\\'
1960 ac_TEMP_PATH=
1961 for ac_dir in $PATH; do
1962 IFS=$ac_save_IFS
1963 if test -z "$ac_TEMP_PATH"; then
1964 ac_TEMP_PATH="$ac_dir"
1965 else
1966 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1967 fi
1968 done
1969 export PATH="$ac_TEMP_PATH"
1970 unset ac_TEMP_PATH
1971 ;;
1972
1973 powerpc-*-darwin* )
1974 USE_BSD=1
1975 USE_DARWIN=1
1976 SO_SUFFIX=dylib
1977 cat >>confdefs.h <<\_ACEOF
1978#define __BSD__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define __DARWIN__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __POWERPC__ 1
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define TARGET_CARBON 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_MAC=1
1994 ;;
1e9e8aba
DE
1995 powerpc-apple-macos* )
1996 USE_UNIX=0
1997 ac_cv_c_bigendian=yes
1998 SO_SUFFIX=shlib
1999 DEFAULT_DEFAULT_wxUSE_MAC=1
2000 ;;
a848cd7e
SC
2001
2002 *-*-beos* )
2003 USE_BEOS=1
2004 cat >>confdefs.h <<\_ACEOF
2005#define __BEOS__ 1
2006_ACEOF
2007
2008 ;;
2009
2010 *)
2011 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2012echo "$as_me: error: unknown system type ${host}." >&2;}
2013 { (exit 1); exit 1; }; }
2014esac
2015
2016
2017
2018
2019 wx_arg_cache_file="configarg.cache"
2020 echo "loading argument cache $wx_arg_cache_file"
2021 rm -f ${wx_arg_cache_file}.tmp
2022 touch ${wx_arg_cache_file}.tmp
2023 touch ${wx_arg_cache_file}
2024
2025
2026DEBUG_CONFIGURE=0
2027if test $DEBUG_CONFIGURE = 1; then
2028 DEFAULT_wxUSE_UNIVERSAL=no
2029 DEFAULT_wxUSE_STL=no
2030
2031 DEFAULT_wxUSE_NANOX=no
2032
2033 DEFAULT_wxUSE_THREADS=yes
2034
2035 DEFAULT_wxUSE_SHARED=yes
2036 DEFAULT_wxUSE_OPTIMISE=no
2037 DEFAULT_wxUSE_PROFILE=no
2038 DEFAULT_wxUSE_NO_DEPS=no
2039 DEFAULT_wxUSE_NO_RTTI=no
2040 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2041 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2042 DEFAULT_wxUSE_PERMISSIVE=no
2043 DEFAULT_wxUSE_DEBUG_FLAG=yes
2044 DEFAULT_wxUSE_DEBUG_INFO=yes
2045 DEFAULT_wxUSE_DEBUG_GDB=yes
2046 DEFAULT_wxUSE_MEM_TRACING=no
2047 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2048 DEFAULT_wxUSE_DMALLOC=no
2049 DEFAULT_wxUSE_APPLE_IEEE=no
2050
2051 DEFAULT_wxUSE_EXCEPTIONS=no
2052 DEFAULT_wxUSE_LOG=yes
2053 DEFAULT_wxUSE_LOGWINDOW=no
2054 DEFAULT_wxUSE_LOGGUI=no
2055 DEFAULT_wxUSE_LOGDIALOG=no
2056
2057 DEFAULT_wxUSE_GUI=yes
2058 DEFAULT_wxUSE_CONTROLS=no
2059
2060 DEFAULT_wxUSE_REGEX=no
2061 DEFAULT_wxUSE_XML=no
2062 DEFAULT_wxUSE_EXPAT=no
2063 DEFAULT_wxUSE_ZLIB=no
2064 DEFAULT_wxUSE_LIBPNG=no
2065 DEFAULT_wxUSE_LIBJPEG=no
2066 DEFAULT_wxUSE_LIBTIFF=no
2067 DEFAULT_wxUSE_LIBXPM=no
2068 DEFAULT_wxUSE_LIBMSPACK=no
2069 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2070 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2071 DEFAULT_wxUSE_ODBC=no
2072 DEFAULT_wxUSE_OPENGL=no
2073
2074 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2075 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2076 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2077 DEFAULT_wxUSE_STD_IOSTREAM=no
2078 DEFAULT_wxUSE_CMDLINE_PARSER=no
2079 DEFAULT_wxUSE_DATETIME=no
2080 DEFAULT_wxUSE_TIMER=no
2081 DEFAULT_wxUSE_STOPWATCH=no
2082 DEFAULT_wxUSE_FILE=no
2083 DEFAULT_wxUSE_FFILE=no
2084 DEFAULT_wxUSE_TEXTBUFFER=no
2085 DEFAULT_wxUSE_TEXTFILE=no
2086 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2087 DEFAULT_wxUSE_MEDIACTRL=no
2088 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2089 DEFAULT_wxUSE_INTL=no
2090 DEFAULT_wxUSE_CONFIG=no
2091 DEFAULT_wxUSE_FONTMAP=no
2092 DEFAULT_wxUSE_STREAMS=no
2093 DEFAULT_wxUSE_SOCKETS=no
2094 DEFAULT_wxUSE_OLE=no
2095 DEFAULT_wxUSE_DATAOBJ=no
2096 DEFAULT_wxUSE_DIALUP_MANAGER=no
2097 DEFAULT_wxUSE_JOYSTICK=no
2098 DEFAULT_wxUSE_DYNLIB_CLASS=no
2099 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2100 DEFAULT_wxUSE_LONGLONG=no
2101 DEFAULT_wxUSE_GEOMETRY=no
2102
2103 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2104 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2105 DEFAULT_wxUSE_POSTSCRIPT=no
2106
2107 DEFAULT_wxUSE_CLIPBOARD=no
2108 DEFAULT_wxUSE_TOOLTIPS=no
2109 DEFAULT_wxUSE_DRAG_AND_DROP=no
2110 DEFAULT_wxUSE_DRAGIMAGE=no
2111 DEFAULT_wxUSE_SPLINES=no
2112
8a7b1113 2113 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2114 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2115 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2116 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2117
2118 DEFAULT_wxUSE_RESOURCES=no
2119 DEFAULT_wxUSE_CONSTRAINTS=no
2120 DEFAULT_wxUSE_IPC=no
2121 DEFAULT_wxUSE_HELP=no
2122 DEFAULT_wxUSE_MS_HTML_HELP=no
2123 DEFAULT_wxUSE_WXHTML_HELP=no
2124 DEFAULT_wxUSE_TREELAYOUT=no
2125 DEFAULT_wxUSE_METAFILE=no
2126 DEFAULT_wxUSE_MIMETYPE=no
2127 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2128 DEFAULT_wxUSE_PROTOCOL=no
2129 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2130 DEFAULT_wxUSE_PROTOCOL_FTP=no
2131 DEFAULT_wxUSE_PROTOCOL_FILE=no
2132 DEFAULT_wxUSE_URL=no
2133
2134 DEFAULT_wxUSE_COMMONDLGS=no
2135 DEFAULT_wxUSE_CHOICEDLG=no
2136 DEFAULT_wxUSE_COLOURDLG=no
2137 DEFAULT_wxUSE_DIRDLG=no
2138 DEFAULT_wxUSE_FILEDLG=no
2139 DEFAULT_wxUSE_FINDREPLDLG=no
2140 DEFAULT_wxUSE_FONTDLG=no
2141 DEFAULT_wxUSE_MSGDLG=no
2142 DEFAULT_wxUSE_NUMBERDLG=no
2143 DEFAULT_wxUSE_TEXTDLG=no
2144 DEFAULT_wxUSE_SPLASH=no
2145 DEFAULT_wxUSE_STARTUP_TIPS=no
2146 DEFAULT_wxUSE_PROGRESSDLG=no
2147 DEFAULT_wxUSE_WIZARDDLG=no
2148
2149 DEFAULT_wxUSE_MENUS=no
2150 DEFAULT_wxUSE_MINIFRAME=no
2151 DEFAULT_wxUSE_HTML=no
9a8f0513 2152 DEFAULT_wxUSE_XRC=no
646b6ec1 2153 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2154 DEFAULT_wxUSE_FILESYSTEM=no
2155 DEFAULT_wxUSE_FS_INET=no
2156 DEFAULT_wxUSE_FS_ZIP=no
2157 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2158 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2159 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2160 DEFAULT_wxUSE_VALIDATORS=no
2161
2162 DEFAULT_wxUSE_ACCEL=no
2163 DEFAULT_wxUSE_BUTTON=no
2164 DEFAULT_wxUSE_BMPBUTTON=no
2165 DEFAULT_wxUSE_CALCTRL=no
2166 DEFAULT_wxUSE_CARET=no
2167 DEFAULT_wxUSE_CHECKBOX=no
2168 DEFAULT_wxUSE_CHECKLST=no
2169 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2170 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2171 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2172 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2173 DEFAULT_wxUSE_DISPLAY=no
2174 DEFAULT_wxUSE_GAUGE=no
2175 DEFAULT_wxUSE_GRID=no
2176 DEFAULT_wxUSE_IMAGLIST=no
2177 DEFAULT_wxUSE_LISTBOOK=no
2178 DEFAULT_wxUSE_LISTBOX=no
2179 DEFAULT_wxUSE_LISTCTRL=no
2180 DEFAULT_wxUSE_NOTEBOOK=no
2181 DEFAULT_wxUSE_RADIOBOX=no
2182 DEFAULT_wxUSE_RADIOBTN=no
2183 DEFAULT_wxUSE_SASH=no
2184 DEFAULT_wxUSE_SCROLLBAR=no
2185 DEFAULT_wxUSE_SLIDER=no
2186 DEFAULT_wxUSE_SPINBTN=no
2187 DEFAULT_wxUSE_SPINCTRL=no
2188 DEFAULT_wxUSE_SPLITTER=no
2189 DEFAULT_wxUSE_STATBMP=no
2190 DEFAULT_wxUSE_STATBOX=no
2191 DEFAULT_wxUSE_STATLINE=no
2192 DEFAULT_wxUSE_STATTEXT=no
2193 DEFAULT_wxUSE_STATUSBAR=yes
2194 DEFAULT_wxUSE_TABDIALOG=no
2195 DEFAULT_wxUSE_TEXTCTRL=no
2196 DEFAULT_wxUSE_TOGGLEBTN=no
2197 DEFAULT_wxUSE_TOOLBAR=no
2198 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2199 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2200 DEFAULT_wxUSE_TREECTRL=no
2201 DEFAULT_wxUSE_POPUPWIN=no
2202 DEFAULT_wxUSE_TIPWINDOW=no
2203
2204 DEFAULT_wxUSE_UNICODE=no
2205 DEFAULT_wxUSE_UNICODE_MSLU=no
2206 DEFAULT_wxUSE_WCSRTOMBS=no
2207
2208 DEFAULT_wxUSE_PALETTE=no
2209 DEFAULT_wxUSE_IMAGE=no
2210 DEFAULT_wxUSE_GIF=no
2211 DEFAULT_wxUSE_PCX=no
2212 DEFAULT_wxUSE_PNM=no
2213 DEFAULT_wxUSE_IFF=no
2214 DEFAULT_wxUSE_XPM=no
2215 DEFAULT_wxUSE_ICO_CUR=no
2216 DEFAULT_wxUSE_ACCESSIBILITY=no
2217
2218 DEFAULT_wxUSE_MONOLITHIC=no
2219 DEFAULT_wxUSE_PLUGINS=no
2220 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2221else
2222 DEFAULT_wxUSE_UNIVERSAL=no
2223 DEFAULT_wxUSE_STL=no
2224
2225 DEFAULT_wxUSE_NANOX=no
2226
2227 DEFAULT_wxUSE_THREADS=yes
2228
2229 DEFAULT_wxUSE_SHARED=yes
2230 DEFAULT_wxUSE_OPTIMISE=yes
2231 DEFAULT_wxUSE_PROFILE=no
2232 DEFAULT_wxUSE_NO_DEPS=no
2233 DEFAULT_wxUSE_NO_RTTI=no
2234 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2235 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2236 DEFAULT_wxUSE_PERMISSIVE=no
2237 DEFAULT_wxUSE_DEBUG_FLAG=no
2238 DEFAULT_wxUSE_DEBUG_INFO=no
2239 DEFAULT_wxUSE_DEBUG_GDB=no
2240 DEFAULT_wxUSE_MEM_TRACING=no
2241 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2242 DEFAULT_wxUSE_DMALLOC=no
2243 DEFAULT_wxUSE_APPLE_IEEE=yes
2244
2245 DEFAULT_wxUSE_EXCEPTIONS=yes
2246 DEFAULT_wxUSE_LOG=yes
2247 DEFAULT_wxUSE_LOGWINDOW=yes
2248 DEFAULT_wxUSE_LOGGUI=yes
2249 DEFAULT_wxUSE_LOGDIALOG=yes
2250
2251 DEFAULT_wxUSE_GUI=yes
2252
2253 DEFAULT_wxUSE_REGEX=yes
2254 DEFAULT_wxUSE_XML=yes
2255 DEFAULT_wxUSE_EXPAT=yes
2256 DEFAULT_wxUSE_ZLIB=yes
2257 DEFAULT_wxUSE_LIBPNG=yes
2258 DEFAULT_wxUSE_LIBJPEG=yes
2259 DEFAULT_wxUSE_LIBTIFF=yes
2260 DEFAULT_wxUSE_LIBXPM=yes
2261 DEFAULT_wxUSE_LIBMSPACK=yes
2262 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2263 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2264 DEFAULT_wxUSE_ODBC=no
2265 DEFAULT_wxUSE_OPENGL=no
2266
2267 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2268 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2269 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2270 DEFAULT_wxUSE_STD_IOSTREAM=no
2271 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2272 DEFAULT_wxUSE_DATETIME=yes
2273 DEFAULT_wxUSE_TIMER=yes
2274 DEFAULT_wxUSE_STOPWATCH=yes
2275 DEFAULT_wxUSE_FILE=yes
2276 DEFAULT_wxUSE_FFILE=yes
2277 DEFAULT_wxUSE_TEXTBUFFER=yes
2278 DEFAULT_wxUSE_TEXTFILE=yes
2279 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2280 DEFAULT_wxUSE_MEDIACTRL=no
2281 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2282 DEFAULT_wxUSE_INTL=yes
2283 DEFAULT_wxUSE_CONFIG=yes
2284 DEFAULT_wxUSE_FONTMAP=yes
2285 DEFAULT_wxUSE_STREAMS=yes
2286 DEFAULT_wxUSE_SOCKETS=yes
2287 DEFAULT_wxUSE_OLE=yes
2288 DEFAULT_wxUSE_DATAOBJ=yes
2289 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2290 DEFAULT_wxUSE_JOYSTICK=yes
2291 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2292 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2293 DEFAULT_wxUSE_LONGLONG=yes
2294 DEFAULT_wxUSE_GEOMETRY=yes
2295
2296 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2297 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2298 DEFAULT_wxUSE_POSTSCRIPT=yes
2299
2300 DEFAULT_wxUSE_CLIPBOARD=yes
2301 DEFAULT_wxUSE_TOOLTIPS=yes
2302 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2303 DEFAULT_wxUSE_DRAGIMAGE=yes
2304 DEFAULT_wxUSE_SPLINES=yes
2305
8a7b1113 2306 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2307 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2308 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2309 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2310
2311 DEFAULT_wxUSE_RESOURCES=no
2312 DEFAULT_wxUSE_CONSTRAINTS=yes
2313 DEFAULT_wxUSE_IPC=yes
2314 DEFAULT_wxUSE_HELP=yes
2315 DEFAULT_wxUSE_MS_HTML_HELP=yes
2316 DEFAULT_wxUSE_WXHTML_HELP=yes
2317 DEFAULT_wxUSE_TREELAYOUT=yes
2318 DEFAULT_wxUSE_METAFILE=yes
2319 DEFAULT_wxUSE_MIMETYPE=yes
2320 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2321 DEFAULT_wxUSE_PROTOCOL=yes
2322 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2323 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2324 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2325 DEFAULT_wxUSE_URL=yes
2326
2327 DEFAULT_wxUSE_COMMONDLGS=yes
2328 DEFAULT_wxUSE_CHOICEDLG=yes
2329 DEFAULT_wxUSE_COLOURDLG=yes
2330 DEFAULT_wxUSE_DIRDLG=yes
2331 DEFAULT_wxUSE_FILEDLG=yes
2332 DEFAULT_wxUSE_FINDREPLDLG=yes
2333 DEFAULT_wxUSE_FONTDLG=yes
2334 DEFAULT_wxUSE_MSGDLG=yes
2335 DEFAULT_wxUSE_NUMBERDLG=yes
2336 DEFAULT_wxUSE_TEXTDLG=yes
2337 DEFAULT_wxUSE_SPLASH=yes
2338 DEFAULT_wxUSE_STARTUP_TIPS=yes
2339 DEFAULT_wxUSE_PROGRESSDLG=yes
2340 DEFAULT_wxUSE_WIZARDDLG=yes
2341
2342 DEFAULT_wxUSE_MENUS=yes
2343 DEFAULT_wxUSE_MINIFRAME=yes
2344 DEFAULT_wxUSE_HTML=yes
9a8f0513 2345 DEFAULT_wxUSE_XRC=yes
646b6ec1 2346 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2347 DEFAULT_wxUSE_FILESYSTEM=yes
2348 DEFAULT_wxUSE_FS_INET=yes
2349 DEFAULT_wxUSE_FS_ZIP=yes
2350 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2351 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2352 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2353 DEFAULT_wxUSE_VALIDATORS=yes
2354
2355 DEFAULT_wxUSE_ACCEL=yes
2356 DEFAULT_wxUSE_BUTTON=yes
2357 DEFAULT_wxUSE_BMPBUTTON=yes
2358 DEFAULT_wxUSE_CALCTRL=yes
2359 DEFAULT_wxUSE_CARET=yes
2360 DEFAULT_wxUSE_CHECKBOX=yes
2361 DEFAULT_wxUSE_CHECKLST=yes
2362 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2363 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2364 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2365 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2366 DEFAULT_wxUSE_DISPLAY=yes
2367 DEFAULT_wxUSE_GAUGE=yes
2368 DEFAULT_wxUSE_GRID=yes
2369 DEFAULT_wxUSE_IMAGLIST=yes
2370 DEFAULT_wxUSE_LISTBOOK=yes
2371 DEFAULT_wxUSE_LISTBOX=yes
2372 DEFAULT_wxUSE_LISTCTRL=yes
2373 DEFAULT_wxUSE_NOTEBOOK=yes
2374 DEFAULT_wxUSE_RADIOBOX=yes
2375 DEFAULT_wxUSE_RADIOBTN=yes
2376 DEFAULT_wxUSE_SASH=yes
2377 DEFAULT_wxUSE_SCROLLBAR=yes
2378 DEFAULT_wxUSE_SLIDER=yes
2379 DEFAULT_wxUSE_SPINBTN=yes
2380 DEFAULT_wxUSE_SPINCTRL=yes
2381 DEFAULT_wxUSE_SPLITTER=yes
2382 DEFAULT_wxUSE_STATBMP=yes
2383 DEFAULT_wxUSE_STATBOX=yes
2384 DEFAULT_wxUSE_STATLINE=yes
2385 DEFAULT_wxUSE_STATTEXT=yes
2386 DEFAULT_wxUSE_STATUSBAR=yes
2387 DEFAULT_wxUSE_TABDIALOG=no
2388 DEFAULT_wxUSE_TEXTCTRL=yes
2389 DEFAULT_wxUSE_TOGGLEBTN=yes
2390 DEFAULT_wxUSE_TOOLBAR=yes
2391 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2392 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2393 DEFAULT_wxUSE_TREECTRL=yes
2394 DEFAULT_wxUSE_POPUPWIN=yes
2395 DEFAULT_wxUSE_TIPWINDOW=yes
2396
2397 DEFAULT_wxUSE_UNICODE=no
2398 DEFAULT_wxUSE_UNICODE_MSLU=yes
2399 DEFAULT_wxUSE_WCSRTOMBS=no
2400
2401 DEFAULT_wxUSE_PALETTE=yes
2402 DEFAULT_wxUSE_IMAGE=yes
2403 DEFAULT_wxUSE_GIF=yes
2404 DEFAULT_wxUSE_PCX=yes
2405 DEFAULT_wxUSE_IFF=no
2406 DEFAULT_wxUSE_PNM=yes
2407 DEFAULT_wxUSE_XPM=yes
2408 DEFAULT_wxUSE_ICO_CUR=yes
2409 DEFAULT_wxUSE_ACCESSIBILITY=no
2410
2411 DEFAULT_wxUSE_MONOLITHIC=no
2412 DEFAULT_wxUSE_PLUGINS=no
2413 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2414
2415 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2416fi
2417
2418
2419
2420for toolkit in `echo $ALL_TOOLKITS`; do
2421 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2422 if test "x$LINE" != "x" ; then
2423 has_toolkit_in_cache=1
2424 eval "DEFAULT_$LINE"
2425 eval "CACHE_$toolkit=1"
2426 fi
2427done
2428
2429
2430
2431 enablestring=
2432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2433echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2434 no_cache=0
2435 # Check whether --enable-gui or --disable-gui was given.
2436if test "${enable_gui+set}" = set; then
2437 enableval="$enable_gui"
2438
2439 if test "$enableval" = yes; then
2440 ac_cv_use_gui='wxUSE_GUI=yes'
2441 else
2442 ac_cv_use_gui='wxUSE_GUI=no'
2443 fi
2444
2445else
2446
2447 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2448 if test "x$LINE" != x ; then
2449 eval "DEFAULT_$LINE"
2450 else
2451 no_cache=1
2452 fi
2453
2454 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2455
2456fi;
2457
2458 eval "$ac_cv_use_gui"
2459 if test "$no_cache" != 1; then
2460 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2461 fi
2462
2463 if test "$wxUSE_GUI" = yes; then
2464 echo "$as_me:$LINENO: result: yes" >&5
2465echo "${ECHO_T}yes" >&6
2466 else
2467 echo "$as_me:$LINENO: result: no" >&5
2468echo "${ECHO_T}no" >&6
2469 fi
2470
2471
2472 enablestring=
2473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2474echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2475 no_cache=0
2476 # Check whether --enable-monolithic or --disable-monolithic was given.
2477if test "${enable_monolithic+set}" = set; then
2478 enableval="$enable_monolithic"
2479
2480 if test "$enableval" = yes; then
2481 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2482 else
2483 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2484 fi
2485
2486else
2487
2488 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2489 if test "x$LINE" != x ; then
2490 eval "DEFAULT_$LINE"
2491 else
2492 no_cache=1
2493 fi
2494
2495 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2496
2497fi;
2498
2499 eval "$ac_cv_use_monolithic"
2500 if test "$no_cache" != 1; then
2501 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2502 fi
2503
2504 if test "$wxUSE_MONOLITHIC" = yes; then
2505 echo "$as_me:$LINENO: result: yes" >&5
2506echo "${ECHO_T}yes" >&6
2507 else
2508 echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
2510 fi
2511
2512
2513 enablestring=
2514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2515echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2516 no_cache=0
2517 # Check whether --enable-plugins or --disable-plugins was given.
2518if test "${enable_plugins+set}" = set; then
2519 enableval="$enable_plugins"
2520
2521 if test "$enableval" = yes; then
2522 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2523 else
2524 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2525 fi
2526
2527else
2528
2529 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2530 if test "x$LINE" != x ; then
2531 eval "DEFAULT_$LINE"
2532 else
2533 no_cache=1
2534 fi
2535
2536 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2537
2538fi;
2539
2540 eval "$ac_cv_use_plugins"
2541 if test "$no_cache" != 1; then
2542 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2543 fi
2544
2545 if test "$wxUSE_PLUGINS" = yes; then
2546 echo "$as_me:$LINENO: result: yes" >&5
2547echo "${ECHO_T}yes" >&6
2548 else
2549 echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6
2551 fi
2552
2553
2554if test "$wxUSE_GUI" = "yes"; then
2555
2556
2557 enablestring=
2558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2559echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2560 no_cache=0
2561 # Check whether --enable-universal or --disable-universal was given.
2562if test "${enable_universal+set}" = set; then
2563 enableval="$enable_universal"
2564
2565 if test "$enableval" = yes; then
2566 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2567 else
2568 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2569 fi
2570
2571else
2572
2573 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2574 if test "x$LINE" != x ; then
2575 eval "DEFAULT_$LINE"
2576 else
2577 no_cache=1
2578 fi
2579
2580 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2581
2582fi;
2583
2584 eval "$ac_cv_use_universal"
2585 if test "$no_cache" != 1; then
2586 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2587 fi
2588
2589 if test "$wxUSE_UNIVERSAL" = yes; then
2590 echo "$as_me:$LINENO: result: yes" >&5
2591echo "${ECHO_T}yes" >&6
2592 else
2593 echo "$as_me:$LINENO: result: no" >&5
2594echo "${ECHO_T}no" >&6
2595 fi
2596
2597
2598# Check whether --with-gtk or --without-gtk was given.
2599if test "${with_gtk+set}" = set; then
2600 withval="$with_gtk"
2601 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2602fi;
2603
2604# Check whether --with-motif or --without-motif was given.
2605if test "${with_motif+set}" = set; then
2606 withval="$with_motif"
2607 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2608fi;
2609
2610# Check whether --with-mac or --without-mac was given.
2611if test "${with_mac+set}" = set; then
2612 withval="$with_mac"
c228d3a4 2613 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2614fi;
2615
2616# Check whether --with-cocoa or --without-cocoa was given.
2617if test "${with_cocoa+set}" = set; then
2618 withval="$with_cocoa"
c228d3a4 2619 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2620fi;
2621
2622# Check whether --with-wine or --without-wine was given.
2623if test "${with_wine+set}" = set; then
2624 withval="$with_wine"
2625 wxUSE_WINE="$withval" CACHE_WINE=1
2626fi;
2627
2628# Check whether --with-msw or --without-msw was given.
2629if test "${with_msw+set}" = set; then
2630 withval="$with_msw"
2631 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2632fi;
2633
2634# Check whether --with-pm or --without-pm was given.
2635if test "${with_pm+set}" = set; then
2636 withval="$with_pm"
2637 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2638fi;
2639
2640# Check whether --with-mgl or --without-mgl was given.
2641if test "${with_mgl+set}" = set; then
2642 withval="$with_mgl"
2643 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2644fi;
2645
2646# Check whether --with-microwin or --without-microwin was given.
2647if test "${with_microwin+set}" = set; then
2648 withval="$with_microwin"
2649 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2650fi;
2651
2652# Check whether --with-x11 or --without-x11 was given.
2653if test "${with_x11+set}" = set; then
2654 withval="$with_x11"
2655 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2656fi;
2657
2658 enablestring=
2659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2660echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2661 no_cache=0
2662 # Check whether --enable-nanox or --disable-nanox was given.
2663if test "${enable_nanox+set}" = set; then
2664 enableval="$enable_nanox"
2665
2666 if test "$enableval" = yes; then
2667 ac_cv_use_nanox='wxUSE_NANOX=yes'
2668 else
2669 ac_cv_use_nanox='wxUSE_NANOX=no'
2670 fi
2671
2672else
2673
2674 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2682
2683fi;
2684
2685 eval "$ac_cv_use_nanox"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_NANOX" = yes; then
2691 echo "$as_me:$LINENO: result: yes" >&5
2692echo "${ECHO_T}yes" >&6
2693 else
2694 echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6
2696 fi
2697
2698
2699
2700 enablestring=
2701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2702echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2703 no_cache=0
2704 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2705if test "${enable_gtk2+set}" = set; then
2706 enableval="$enable_gtk2"
2707
2708 if test "$enableval" = yes; then
2709 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2710 else
2711 ac_cv_use_gtk2='wxUSE_GTK2=no'
2712 fi
2713
2714else
2715
2716 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2717 if test "x$LINE" != x ; then
2718 eval "DEFAULT_$LINE"
2719 else
2720 no_cache=1
2721 fi
2722
2723 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2724
2725fi;
2726
2727 eval "$ac_cv_use_gtk2"
2728 if test "$no_cache" != 1; then
2729 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2730 fi
2731
2732 if test "$wxUSE_GTK2" = yes; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734echo "${ECHO_T}yes" >&6
2735 else
2736 echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6
2738 fi
2739
2740
2741 enablestring=
2742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2743echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2744 no_cache=0
2745 # Check whether --enable-gpe or --disable-gpe was given.
2746if test "${enable_gpe+set}" = set; then
2747 enableval="$enable_gpe"
2748
2749 if test "$enableval" = yes; then
2750 ac_cv_use_gpe='wxUSE_GPE=yes'
2751 else
2752 ac_cv_use_gpe='wxUSE_GPE=no'
2753 fi
2754
2755else
2756
2757 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2758 if test "x$LINE" != x ; then
2759 eval "DEFAULT_$LINE"
2760 else
2761 no_cache=1
2762 fi
2763
2764 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2765
2766fi;
2767
2768 eval "$ac_cv_use_gpe"
2769 if test "$no_cache" != 1; then
2770 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2771 fi
2772
2773 if test "$wxUSE_GPE" = yes; then
2774 echo "$as_me:$LINENO: result: yes" >&5
2775echo "${ECHO_T}yes" >&6
2776 else
2777 echo "$as_me:$LINENO: result: no" >&5
2778echo "${ECHO_T}no" >&6
2779 fi
2780
2781
2782
2783 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2784echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2785 no_cache=0
2786
2787# Check whether --with-libpng or --without-libpng was given.
2788if test "${with_libpng+set}" = set; then
2789 withval="$with_libpng"
2790
2791 if test "$withval" = yes; then
2792 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2793 elif test "$withval" = no; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2795 elif test "$withval" = sys; then
2796 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2797 elif test "$withval" = builtin; then
2798 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2799 else
2800 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2801echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2802 { (exit 1); exit 1; }; }
2803 fi
2804
2805else
2806
2807 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2808 if test "x$LINE" != x ; then
2809 eval "DEFAULT_$LINE"
2810 else
2811 no_cache=1
2812 fi
2813
2814 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2815
2816fi;
2817
2818 eval "$ac_cv_use_libpng"
2819 if test "$no_cache" != 1; then
2820 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2821 fi
2822
2823 if test "$wxUSE_LIBPNG" = yes; then
2824 echo "$as_me:$LINENO: result: yes" >&5
2825echo "${ECHO_T}yes" >&6
2826 elif test "$wxUSE_LIBPNG" = no; then
2827 echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6
2829 elif test "$wxUSE_LIBPNG" = sys; then
2830 echo "$as_me:$LINENO: result: system version" >&5
2831echo "${ECHO_T}system version" >&6
2832 elif test "$wxUSE_LIBPNG" = builtin; then
2833 echo "$as_me:$LINENO: result: builtin version" >&5
2834echo "${ECHO_T}builtin version" >&6
2835 else
2836 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2837echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2838 { (exit 1); exit 1; }; }
2839 fi
2840
2841
2842 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2843echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2844 no_cache=0
2845
2846# Check whether --with-libjpeg or --without-libjpeg was given.
2847if test "${with_libjpeg+set}" = set; then
2848 withval="$with_libjpeg"
2849
2850 if test "$withval" = yes; then
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2852 elif test "$withval" = no; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2854 elif test "$withval" = sys; then
2855 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2856 elif test "$withval" = builtin; then
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2858 else
2859 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2860echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2861 { (exit 1); exit 1; }; }
2862 fi
2863
2864else
2865
2866 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2874
2875fi;
2876
2877 eval "$ac_cv_use_libjpeg"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_LIBJPEG" = yes; then
2883 echo "$as_me:$LINENO: result: yes" >&5
2884echo "${ECHO_T}yes" >&6
2885 elif test "$wxUSE_LIBJPEG" = no; then
2886 echo "$as_me:$LINENO: result: no" >&5
2887echo "${ECHO_T}no" >&6
2888 elif test "$wxUSE_LIBJPEG" = sys; then
2889 echo "$as_me:$LINENO: result: system version" >&5
2890echo "${ECHO_T}system version" >&6
2891 elif test "$wxUSE_LIBJPEG" = builtin; then
2892 echo "$as_me:$LINENO: result: builtin version" >&5
2893echo "${ECHO_T}builtin version" >&6
2894 else
2895 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2896echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2897 { (exit 1); exit 1; }; }
2898 fi
2899
2900
2901 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2902echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2903 no_cache=0
2904
2905# Check whether --with-libtiff or --without-libtiff was given.
2906if test "${with_libtiff+set}" = set; then
2907 withval="$with_libtiff"
2908
2909 if test "$withval" = yes; then
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2911 elif test "$withval" = no; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2913 elif test "$withval" = sys; then
2914 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2915 elif test "$withval" = builtin; then
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2917 else
2918 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2919echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2920 { (exit 1); exit 1; }; }
2921 fi
2922
2923else
2924
2925 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
2932 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2933
2934fi;
2935
2936 eval "$ac_cv_use_libtiff"
2937 if test "$no_cache" != 1; then
2938 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2939 fi
2940
2941 if test "$wxUSE_LIBTIFF" = yes; then
2942 echo "$as_me:$LINENO: result: yes" >&5
2943echo "${ECHO_T}yes" >&6
2944 elif test "$wxUSE_LIBTIFF" = no; then
2945 echo "$as_me:$LINENO: result: no" >&5
2946echo "${ECHO_T}no" >&6
2947 elif test "$wxUSE_LIBTIFF" = sys; then
2948 echo "$as_me:$LINENO: result: system version" >&5
2949echo "${ECHO_T}system version" >&6
2950 elif test "$wxUSE_LIBTIFF" = builtin; then
2951 echo "$as_me:$LINENO: result: builtin version" >&5
2952echo "${ECHO_T}builtin version" >&6
2953 else
2954 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2955echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2956 { (exit 1); exit 1; }; }
2957 fi
2958
2959
2960 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2961echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2962 no_cache=0
2963
2964# Check whether --with-libxpm or --without-libxpm was given.
2965if test "${with_libxpm+set}" = set; then
2966 withval="$with_libxpm"
2967
2968 if test "$withval" = yes; then
2969 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2970 elif test "$withval" = no; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2972 elif test "$withval" = sys; then
2973 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2974 elif test "$withval" = builtin; then
2975 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2976 else
2977 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2978echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2979 { (exit 1); exit 1; }; }
2980 fi
2981
2982else
2983
2984 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2992
2993fi;
2994
2995 eval "$ac_cv_use_libxpm"
2996 if test "$no_cache" != 1; then
2997 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2998 fi
2999
3000 if test "$wxUSE_LIBXPM" = yes; then
3001 echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6
3003 elif test "$wxUSE_LIBXPM" = no; then
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
3006 elif test "$wxUSE_LIBXPM" = sys; then
3007 echo "$as_me:$LINENO: result: system version" >&5
3008echo "${ECHO_T}system version" >&6
3009 elif test "$wxUSE_LIBXPM" = builtin; then
3010 echo "$as_me:$LINENO: result: builtin version" >&5
3011echo "${ECHO_T}builtin version" >&6
3012 else
3013 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3014echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3015 { (exit 1); exit 1; }; }
3016 fi
3017
3018
3019 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3020echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3021 no_cache=0
3022
3023# Check whether --with-libmspack or --without-libmspack was given.
3024if test "${with_libmspack+set}" = set; then
3025 withval="$with_libmspack"
3026
3027 if test "$withval" = yes; then
3028 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3029 else
3030 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3031 fi
3032
3033else
3034
3035 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3036 if test "x$LINE" != x ; then
3037 eval "DEFAULT_$LINE"
3038 else
3039 no_cache=1
3040 fi
3041
3042 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3043
3044fi;
3045
3046 eval "$ac_cv_use_libmspack"
3047 if test "$no_cache" != 1; then
3048 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3049 fi
3050
3051 if test "$wxUSE_LIBMSPACK" = yes; then
3052 echo "$as_me:$LINENO: result: yes" >&5
3053echo "${ECHO_T}yes" >&6
3054 else
3055 echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
3057 fi
3058
3059
3060 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3061echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3062 no_cache=0
3063
3064# Check whether --with-sdl or --without-sdl was given.
3065if test "${with_sdl+set}" = set; then
3066 withval="$with_sdl"
3067
3068 if test "$withval" = yes; then
3069 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3070 else
3071 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3072 fi
3073
3074else
3075
3076 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3077 if test "x$LINE" != x ; then
3078 eval "DEFAULT_$LINE"
3079 else
3080 no_cache=1
3081 fi
3082
3083 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3084
3085fi;
3086
3087 eval "$ac_cv_use_sdl"
3088 if test "$no_cache" != 1; then
3089 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3090 fi
3091
3092 if test "$wxUSE_LIBSDL" = yes; then
3093 echo "$as_me:$LINENO: result: yes" >&5
3094echo "${ECHO_T}yes" >&6
3095 else
3096 echo "$as_me:$LINENO: result: no" >&5
3097echo "${ECHO_T}no" >&6
3098 fi
3099
3100
d1c38808
VZ
3101 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3102echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3103 no_cache=0
3104
3105# Check whether --with-gnomeprint or --without-gnomeprint was given.
3106if test "${with_gnomeprint+set}" = set; then
3107 withval="$with_gnomeprint"
3108
3109 if test "$withval" = yes; then
3110 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3111 else
3112 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3113 fi
3114
3115else
3116
3117 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3125
3126fi;
3127
3128 eval "$ac_cv_use_gnomeprint"
3129 if test "$no_cache" != 1; then
3130 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3131 fi
3132
3133 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3134 echo "$as_me:$LINENO: result: yes" >&5
3135echo "${ECHO_T}yes" >&6
3136 else
3137 echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
3139 fi
3140
3141
a848cd7e
SC
3142 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3143echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3144 no_cache=0
3145
3146# Check whether --with-opengl or --without-opengl was given.
3147if test "${with_opengl+set}" = set; then
3148 withval="$with_opengl"
3149
3150 if test "$withval" = yes; then
3151 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3152 else
3153 ac_cv_use_opengl='wxUSE_OPENGL=no'
3154 fi
3155
3156else
3157
3158 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3159 if test "x$LINE" != x ; then
3160 eval "DEFAULT_$LINE"
3161 else
3162 no_cache=1
3163 fi
3164
3165 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3166
3167fi;
3168
3169 eval "$ac_cv_use_opengl"
3170 if test "$no_cache" != 1; then
3171 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3172 fi
3173
3174 if test "$wxUSE_OPENGL" = yes; then
3175 echo "$as_me:$LINENO: result: yes" >&5
3176echo "${ECHO_T}yes" >&6
3177 else
3178 echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
3180 fi
3181
3182
3183fi
3184
3185
3186 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3187echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3188 no_cache=0
3189
3190# Check whether --with-dmalloc or --without-dmalloc was given.
3191if test "${with_dmalloc+set}" = set; then
3192 withval="$with_dmalloc"
3193
3194 if test "$withval" = yes; then
3195 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3196 else
3197 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3198 fi
3199
3200else
3201
3202 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3203 if test "x$LINE" != x ; then
3204 eval "DEFAULT_$LINE"
3205 else
3206 no_cache=1
3207 fi
3208
3209 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3210
3211fi;
3212
3213 eval "$ac_cv_use_dmalloc"
3214 if test "$no_cache" != 1; then
3215 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3216 fi
3217
3218 if test "$wxUSE_DMALLOC" = yes; then
3219 echo "$as_me:$LINENO: result: yes" >&5
3220echo "${ECHO_T}yes" >&6
3221 else
3222 echo "$as_me:$LINENO: result: no" >&5
3223echo "${ECHO_T}no" >&6
3224 fi
3225
3226
3227 echo "$as_me:$LINENO: checking for --with-regex" >&5
3228echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3229 no_cache=0
3230
3231# Check whether --with-regex or --without-regex was given.
3232if test "${with_regex+set}" = set; then
3233 withval="$with_regex"
3234
3235 if test "$withval" = yes; then
3236 ac_cv_use_regex='wxUSE_REGEX=yes'
3237 elif test "$withval" = no; then
3238 ac_cv_use_regex='wxUSE_REGEX=no'
3239 elif test "$withval" = sys; then
3240 ac_cv_use_regex='wxUSE_REGEX=sys'
3241 elif test "$withval" = builtin; then
3242 ac_cv_use_regex='wxUSE_REGEX=builtin'
3243 else
3244 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3245echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3246 { (exit 1); exit 1; }; }
3247 fi
3248
3249else
3250
3251 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3259
3260fi;
3261
3262 eval "$ac_cv_use_regex"
3263 if test "$no_cache" != 1; then
3264 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3265 fi
3266
3267 if test "$wxUSE_REGEX" = yes; then
3268 echo "$as_me:$LINENO: result: yes" >&5
3269echo "${ECHO_T}yes" >&6
3270 elif test "$wxUSE_REGEX" = no; then
3271 echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6
3273 elif test "$wxUSE_REGEX" = sys; then
3274 echo "$as_me:$LINENO: result: system version" >&5
3275echo "${ECHO_T}system version" >&6
3276 elif test "$wxUSE_REGEX" = builtin; then
3277 echo "$as_me:$LINENO: result: builtin version" >&5
3278echo "${ECHO_T}builtin version" >&6
3279 else
3280 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3281echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3282 { (exit 1); exit 1; }; }
3283 fi
3284
3285
3286 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3287echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3288 no_cache=0
3289
3290# Check whether --with-zlib or --without-zlib was given.
3291if test "${with_zlib+set}" = set; then
3292 withval="$with_zlib"
3293
3294 if test "$withval" = yes; then
3295 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3296 elif test "$withval" = no; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=no'
3298 elif test "$withval" = sys; then
3299 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3300 elif test "$withval" = builtin; then
3301 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3302 else
3303 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3304echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3305 { (exit 1); exit 1; }; }
3306 fi
3307
3308else
3309
3310 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3311 if test "x$LINE" != x ; then
3312 eval "DEFAULT_$LINE"
3313 else
3314 no_cache=1
3315 fi
3316
3317 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3318
3319fi;
3320
3321 eval "$ac_cv_use_zlib"
3322 if test "$no_cache" != 1; then
3323 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3324 fi
3325
3326 if test "$wxUSE_ZLIB" = yes; then
3327 echo "$as_me:$LINENO: result: yes" >&5
3328echo "${ECHO_T}yes" >&6
3329 elif test "$wxUSE_ZLIB" = no; then
3330 echo "$as_me:$LINENO: result: no" >&5
3331echo "${ECHO_T}no" >&6
3332 elif test "$wxUSE_ZLIB" = sys; then
3333 echo "$as_me:$LINENO: result: system version" >&5
3334echo "${ECHO_T}system version" >&6
3335 elif test "$wxUSE_ZLIB" = builtin; then
3336 echo "$as_me:$LINENO: result: builtin version" >&5
3337echo "${ECHO_T}builtin version" >&6
3338 else
3339 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3340echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3341 { (exit 1); exit 1; }; }
3342 fi
3343
3344
3345 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3346echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3347 no_cache=0
3348
3349# Check whether --with-odbc or --without-odbc was given.
3350if test "${with_odbc+set}" = set; then
3351 withval="$with_odbc"
3352
3353 if test "$withval" = yes; then
3354 ac_cv_use_odbc='wxUSE_ODBC=yes'
3355 elif test "$withval" = no; then
3356 ac_cv_use_odbc='wxUSE_ODBC=no'
3357 elif test "$withval" = sys; then
3358 ac_cv_use_odbc='wxUSE_ODBC=sys'
3359 elif test "$withval" = builtin; then
3360 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3361 else
3362 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3363echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3364 { (exit 1); exit 1; }; }
3365 fi
3366
3367else
3368
3369 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3370 if test "x$LINE" != x ; then
3371 eval "DEFAULT_$LINE"
3372 else
3373 no_cache=1
3374 fi
3375
3376 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3377
3378fi;
3379
3380 eval "$ac_cv_use_odbc"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_ODBC" = yes; then
3386 echo "$as_me:$LINENO: result: yes" >&5
3387echo "${ECHO_T}yes" >&6
3388 elif test "$wxUSE_ODBC" = no; then
3389 echo "$as_me:$LINENO: result: no" >&5
3390echo "${ECHO_T}no" >&6
3391 elif test "$wxUSE_ODBC" = sys; then
3392 echo "$as_me:$LINENO: result: system version" >&5
3393echo "${ECHO_T}system version" >&6
3394 elif test "$wxUSE_ODBC" = builtin; then
3395 echo "$as_me:$LINENO: result: builtin version" >&5
3396echo "${ECHO_T}builtin version" >&6
3397 else
3398 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3399echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3400 { (exit 1); exit 1; }; }
3401 fi
3402
3403
3404 echo "$as_me:$LINENO: checking for --with-expat" >&5
3405echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3406 no_cache=0
3407
3408# Check whether --with-expat or --without-expat was given.
3409if test "${with_expat+set}" = set; then
3410 withval="$with_expat"
3411
3412 if test "$withval" = yes; then
3413 ac_cv_use_expat='wxUSE_EXPAT=yes'
3414 elif test "$withval" = no; then
3415 ac_cv_use_expat='wxUSE_EXPAT=no'
3416 elif test "$withval" = sys; then
3417 ac_cv_use_expat='wxUSE_EXPAT=sys'
3418 elif test "$withval" = builtin; then
3419 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3420 else
3421 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3422echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3423 { (exit 1); exit 1; }; }
3424 fi
3425
3426else
3427
3428 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3429 if test "x$LINE" != x ; then
3430 eval "DEFAULT_$LINE"
3431 else
3432 no_cache=1
3433 fi
3434
3435 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3436
3437fi;
3438
3439 eval "$ac_cv_use_expat"
3440 if test "$no_cache" != 1; then
3441 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3442 fi
3443
3444 if test "$wxUSE_EXPAT" = yes; then
3445 echo "$as_me:$LINENO: result: yes" >&5
3446echo "${ECHO_T}yes" >&6
3447 elif test "$wxUSE_EXPAT" = no; then
3448 echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
3450 elif test "$wxUSE_EXPAT" = sys; then
3451 echo "$as_me:$LINENO: result: system version" >&5
3452echo "${ECHO_T}system version" >&6
3453 elif test "$wxUSE_EXPAT" = builtin; then
3454 echo "$as_me:$LINENO: result: builtin version" >&5
3455echo "${ECHO_T}builtin version" >&6
3456 else
3457 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3458echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3459 { (exit 1); exit 1; }; }
3460 fi
3461
3462
3463
3464
3465 enablestring=
3466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3467echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3468 no_cache=0
3469 # Check whether --enable-shared or --disable-shared was given.
3470if test "${enable_shared+set}" = set; then
3471 enableval="$enable_shared"
3472
3473 if test "$enableval" = yes; then
3474 ac_cv_use_shared='wxUSE_SHARED=yes'
3475 else
3476 ac_cv_use_shared='wxUSE_SHARED=no'
3477 fi
3478
3479else
3480
3481 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3482 if test "x$LINE" != x ; then
3483 eval "DEFAULT_$LINE"
3484 else
3485 no_cache=1
3486 fi
3487
3488 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3489
3490fi;
3491
3492 eval "$ac_cv_use_shared"
3493 if test "$no_cache" != 1; then
3494 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3495 fi
3496
3497 if test "$wxUSE_SHARED" = yes; then
3498 echo "$as_me:$LINENO: result: yes" >&5
3499echo "${ECHO_T}yes" >&6
3500 else
3501 echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
3503 fi
3504
3505
3506 enablestring=
3507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3508echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3509 no_cache=0
3510 # Check whether --enable-optimise or --disable-optimise was given.
3511if test "${enable_optimise+set}" = set; then
3512 enableval="$enable_optimise"
3513
3514 if test "$enableval" = yes; then
3515 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3516 else
3517 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3518 fi
3519
3520else
3521
3522 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3530
3531fi;
3532
3533 eval "$ac_cv_use_optimise"
3534 if test "$no_cache" != 1; then
3535 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3536 fi
3537
3538 if test "$wxUSE_OPTIMISE" = yes; then
3539 echo "$as_me:$LINENO: result: yes" >&5
3540echo "${ECHO_T}yes" >&6
3541 else
3542 echo "$as_me:$LINENO: result: no" >&5
3543echo "${ECHO_T}no" >&6
3544 fi
3545
3546
3547 enablestring=
3548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3549echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3550 no_cache=0
3551 # Check whether --enable-debug or --disable-debug was given.
3552if test "${enable_debug+set}" = set; then
3553 enableval="$enable_debug"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_debug='wxUSE_DEBUG=yes'
3557 else
3558 ac_cv_use_debug='wxUSE_DEBUG=no'
3559 fi
3560
3561else
3562
3563 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3571
3572fi;
3573
3574 eval "$ac_cv_use_debug"
3575 if test "$no_cache" != 1; then
3576 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3577 fi
3578
3579 if test "$wxUSE_DEBUG" = yes; then
3580 echo "$as_me:$LINENO: result: yes" >&5
3581echo "${ECHO_T}yes" >&6
3582 else
3583 echo "$as_me:$LINENO: result: no" >&5
3584echo "${ECHO_T}no" >&6
3585 fi
3586
3587
3588 enablestring=
3589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3590echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3591 no_cache=0
3592 # Check whether --enable-stl or --disable-stl was given.
3593if test "${enable_stl+set}" = set; then
3594 enableval="$enable_stl"
3595
3596 if test "$enableval" = yes; then
3597 ac_cv_use_stl='wxUSE_STL=yes'
3598 else
3599 ac_cv_use_stl='wxUSE_STL=no'
3600 fi
3601
3602else
3603
3604 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
3611 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3612
3613fi;
3614
3615 eval "$ac_cv_use_stl"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_STL" = yes; then
3621 echo "$as_me:$LINENO: result: yes" >&5
3622echo "${ECHO_T}yes" >&6
3623 else
3624 echo "$as_me:$LINENO: result: no" >&5
3625echo "${ECHO_T}no" >&6
3626 fi
3627
3628if test "$USE_OS2" = "1"; then
3629
3630 enablestring=
3631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3632echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3633 no_cache=0
3634 # Check whether --enable-omf or --disable-omf was given.
3635if test "${enable_omf+set}" = set; then
3636 enableval="$enable_omf"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_omf='wxUSE_OMF=yes'
3640 else
3641 ac_cv_use_omf='wxUSE_OMF=no'
3642 fi
3643
3644else
3645
3646 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3654
3655fi;
3656
3657 eval "$ac_cv_use_omf"
3658 if test "$no_cache" != 1; then
3659 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3660 fi
3661
3662 if test "$wxUSE_OMF" = yes; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664echo "${ECHO_T}yes" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no" >&5
3667echo "${ECHO_T}no" >&6
3668 fi
3669
3670fi
3671
3672if test "$wxUSE_DEBUG" = "yes"; then
3673 DEFAULT_wxUSE_DEBUG_FLAG=yes
3674 DEFAULT_wxUSE_DEBUG_INFO=yes
3675 BUILD=debug
3676elif test "$wxUSE_DEBUG" = "no"; then
3677 DEFAULT_wxUSE_DEBUG_FLAG=no
3678 DEFAULT_wxUSE_DEBUG_INFO=no
3679 BUILD=release
3680fi
3681
3682
3683 enablestring=
3684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3685echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3686 no_cache=0
3687 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3688if test "${enable_debug_flag+set}" = set; then
3689 enableval="$enable_debug_flag"
3690
3691 if test "$enableval" = yes; then
3692 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3693 else
3694 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3695 fi
3696
3697else
3698
3699 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3700 if test "x$LINE" != x ; then
3701 eval "DEFAULT_$LINE"
3702 else
3703 no_cache=1
3704 fi
3705
3706 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3707
3708fi;
3709
3710 eval "$ac_cv_use_debug_flag"
3711 if test "$no_cache" != 1; then
3712 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3713 fi
3714
3715 if test "$wxUSE_DEBUG_FLAG" = yes; then
3716 echo "$as_me:$LINENO: result: yes" >&5
3717echo "${ECHO_T}yes" >&6
3718 else
3719 echo "$as_me:$LINENO: result: no" >&5
3720echo "${ECHO_T}no" >&6
3721 fi
3722
3723
3724 enablestring=
3725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3726echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3727 no_cache=0
3728 # Check whether --enable-debug_info or --disable-debug_info was given.
3729if test "${enable_debug_info+set}" = set; then
3730 enableval="$enable_debug_info"
3731
3732 if test "$enableval" = yes; then
3733 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3734 else
3735 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3736 fi
3737
3738else
3739
3740 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3741 if test "x$LINE" != x ; then
3742 eval "DEFAULT_$LINE"
3743 else
3744 no_cache=1
3745 fi
3746
3747 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3748
3749fi;
3750
3751 eval "$ac_cv_use_debug_info"
3752 if test "$no_cache" != 1; then
3753 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3754 fi
3755
3756 if test "$wxUSE_DEBUG_INFO" = yes; then
3757 echo "$as_me:$LINENO: result: yes" >&5
3758echo "${ECHO_T}yes" >&6
3759 else
3760 echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6
3762 fi
3763
3764
3765 enablestring=
3766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3767echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3768 no_cache=0
3769 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3770if test "${enable_debug_gdb+set}" = set; then
3771 enableval="$enable_debug_gdb"
3772
3773 if test "$enableval" = yes; then
3774 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3775 else
3776 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3777 fi
3778
3779else
3780
3781 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3782 if test "x$LINE" != x ; then
3783 eval "DEFAULT_$LINE"
3784 else
3785 no_cache=1
3786 fi
3787
3788 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3789
3790fi;
3791
3792 eval "$ac_cv_use_debug_gdb"
3793 if test "$no_cache" != 1; then
3794 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3795 fi
3796
3797 if test "$wxUSE_DEBUG_GDB" = yes; then
3798 echo "$as_me:$LINENO: result: yes" >&5
3799echo "${ECHO_T}yes" >&6
3800 else
3801 echo "$as_me:$LINENO: result: no" >&5
3802echo "${ECHO_T}no" >&6
3803 fi
3804
3805
3806 enablestring=
3807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3808echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3809 no_cache=0
3810 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3811if test "${enable_debug_cntxt+set}" = set; then
3812 enableval="$enable_debug_cntxt"
3813
3814 if test "$enableval" = yes; then
3815 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3816 else
3817 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3818 fi
3819
3820else
3821
3822 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3823 if test "x$LINE" != x ; then
3824 eval "DEFAULT_$LINE"
3825 else
3826 no_cache=1
3827 fi
3828
3829 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3830
3831fi;
3832
3833 eval "$ac_cv_use_debug_cntxt"
3834 if test "$no_cache" != 1; then
3835 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3836 fi
3837
3838 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3839 echo "$as_me:$LINENO: result: yes" >&5
3840echo "${ECHO_T}yes" >&6
3841 else
3842 echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6
3844 fi
3845
3846
3847 enablestring=
3848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3849echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3850 no_cache=0
3851 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3852if test "${enable_mem_tracing+set}" = set; then
3853 enableval="$enable_mem_tracing"
3854
3855 if test "$enableval" = yes; then
3856 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3857 else
3858 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3859 fi
3860
3861else
3862
3863 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3864 if test "x$LINE" != x ; then
3865 eval "DEFAULT_$LINE"
3866 else
3867 no_cache=1
3868 fi
3869
3870 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3871
3872fi;
3873
3874 eval "$ac_cv_use_mem_tracing"
3875 if test "$no_cache" != 1; then
3876 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3877 fi
3878
3879 if test "$wxUSE_MEM_TRACING" = yes; then
3880 echo "$as_me:$LINENO: result: yes" >&5
3881echo "${ECHO_T}yes" >&6
3882 else
3883 echo "$as_me:$LINENO: result: no" >&5
3884echo "${ECHO_T}no" >&6
3885 fi
3886
3887
3888 enablestring=
3889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3890echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3891 no_cache=0
3892 # Check whether --enable-profile or --disable-profile was given.
3893if test "${enable_profile+set}" = set; then
3894 enableval="$enable_profile"
3895
3896 if test "$enableval" = yes; then
3897 ac_cv_use_profile='wxUSE_PROFILE=yes'
3898 else
3899 ac_cv_use_profile='wxUSE_PROFILE=no'
3900 fi
3901
3902else
3903
3904 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
3911 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3912
3913fi;
3914
3915 eval "$ac_cv_use_profile"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_PROFILE" = yes; then
3921 echo "$as_me:$LINENO: result: yes" >&5
3922echo "${ECHO_T}yes" >&6
3923 else
3924 echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926 fi
3927
3928
3929 enablestring=
3930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3931echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3932 no_cache=0
3933 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3934if test "${enable_no_rtti+set}" = set; then
3935 enableval="$enable_no_rtti"
3936
3937 if test "$enableval" = yes; then
3938 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3939 else
3940 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3941 fi
3942
3943else
3944
3945 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3946 if test "x$LINE" != x ; then
3947 eval "DEFAULT_$LINE"
3948 else
3949 no_cache=1
3950 fi
3951
3952 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3953
3954fi;
3955
3956 eval "$ac_cv_use_no_rtti"
3957 if test "$no_cache" != 1; then
3958 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3959 fi
3960
3961 if test "$wxUSE_NO_RTTI" = yes; then
3962 echo "$as_me:$LINENO: result: yes" >&5
3963echo "${ECHO_T}yes" >&6
3964 else
3965 echo "$as_me:$LINENO: result: no" >&5
3966echo "${ECHO_T}no" >&6
3967 fi
3968
3969
3970 enablestring=
3971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3972echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3973 no_cache=0
3974 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3975if test "${enable_no_exceptions+set}" = set; then
3976 enableval="$enable_no_exceptions"
3977
3978 if test "$enableval" = yes; then
3979 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3980 else
3981 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3982 fi
3983
3984else
3985
3986 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3987 if test "x$LINE" != x ; then
3988 eval "DEFAULT_$LINE"
3989 else
3990 no_cache=1
3991 fi
3992
3993 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3994
3995fi;
3996
3997 eval "$ac_cv_use_no_exceptions"
3998 if test "$no_cache" != 1; then
3999 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4000 fi
4001
4002 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4003 echo "$as_me:$LINENO: result: yes" >&5
4004echo "${ECHO_T}yes" >&6
4005 else
4006 echo "$as_me:$LINENO: result: no" >&5
4007echo "${ECHO_T}no" >&6
4008 fi
4009
4010
4011 enablestring=
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4014 no_cache=0
4015 # Check whether --enable-permissive or --disable-permissive was given.
4016if test "${enable_permissive+set}" = set; then
4017 enableval="$enable_permissive"
4018
4019 if test "$enableval" = yes; then
4020 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4021 else
4022 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4023 fi
4024
4025else
4026
4027 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4035
4036fi;
4037
4038 eval "$ac_cv_use_permissive"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_PERMISSIVE" = yes; then
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
4046 else
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
4049 fi
4050
4051
4052 enablestring=
4053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4054echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4055 no_cache=0
4056 # Check whether --enable-no_deps or --disable-no_deps was given.
4057if test "${enable_no_deps+set}" = set; then
4058 enableval="$enable_no_deps"
4059
4060 if test "$enableval" = yes; then
4061 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4062 else
4063 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4064 fi
4065
4066else
4067
4068 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4076
4077fi;
4078
4079 eval "$ac_cv_use_no_deps"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_NO_DEPS" = yes; then
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
4087 else
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
4090 fi
4091
4092
4093
4094 enablestring=
4095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4096echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4097 no_cache=0
4098 # Check whether --enable-compat22 or --disable-compat22 was given.
4099if test "${enable_compat22+set}" = set; then
4100 enableval="$enable_compat22"
4101
4102 if test "$enableval" = yes; then
4103 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4104 else
4105 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4106 fi
4107
4108else
4109
4110 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4118
4119fi;
4120
4121 eval "$ac_cv_use_compat22"
4122 if test "$no_cache" != 1; then
4123 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4124 fi
4125
4126 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4127 echo "$as_me:$LINENO: result: yes" >&5
4128echo "${ECHO_T}yes" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131echo "${ECHO_T}no" >&6
4132 fi
4133
4134
4135 enablestring=disable
4136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4137echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4138 no_cache=0
4139 # Check whether --enable-compat24 or --disable-compat24 was given.
4140if test "${enable_compat24+set}" = set; then
4141 enableval="$enable_compat24"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4145 else
4146 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4147 fi
4148
4149else
4150
4151 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4159
4160fi;
4161
4162 eval "$ac_cv_use_compat24"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4168 echo "$as_me:$LINENO: result: yes" >&5
4169echo "${ECHO_T}yes" >&6
4170 else
4171 echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
4173 fi
4174
4175
ffa0583f
RL
4176
4177 enablestring=
4178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4179echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4180 no_cache=0
4181 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4182if test "${enable_rpath+set}" = set; then
4183 enableval="$enable_rpath"
ffa0583f
RL
4184
4185 if test "$enableval" = yes; then
4186 ac_cv_use_rpath='wxUSE_RPATH=yes'
4187 else
4188 ac_cv_use_rpath='wxUSE_RPATH=no'
4189 fi
4190
4191else
4192
4193 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4201
a848cd7e
SC
4202fi;
4203
ffa0583f
RL
4204 eval "$ac_cv_use_rpath"
4205 if test "$no_cache" != 1; then
4206 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4207 fi
4208
4209 if test "$wxUSE_RPATH" = yes; then
4210 echo "$as_me:$LINENO: result: yes" >&5
4211echo "${ECHO_T}yes" >&6
4212 else
4213 echo "$as_me:$LINENO: result: no" >&5
4214echo "${ECHO_T}no" >&6
4215 fi
4216
a848cd7e
SC
4217
4218
4219
4220
4221 enablestring=
4222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4223echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4224 no_cache=0
4225 # Check whether --enable-intl or --disable-intl was given.
4226if test "${enable_intl+set}" = set; then
4227 enableval="$enable_intl"
4228
4229 if test "$enableval" = yes; then
4230 ac_cv_use_intl='wxUSE_INTL=yes'
4231 else
4232 ac_cv_use_intl='wxUSE_INTL=no'
4233 fi
4234
4235else
4236
4237 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4238 if test "x$LINE" != x ; then
4239 eval "DEFAULT_$LINE"
4240 else
4241 no_cache=1
4242 fi
4243
4244 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4245
4246fi;
4247
4248 eval "$ac_cv_use_intl"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_INTL" = yes; then
4254 echo "$as_me:$LINENO: result: yes" >&5
4255echo "${ECHO_T}yes" >&6
4256 else
4257 echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6
4259 fi
4260
4261
4262 enablestring=
4263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4264echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4265 no_cache=0
4266 # Check whether --enable-config or --disable-config was given.
4267if test "${enable_config+set}" = set; then
4268 enableval="$enable_config"
4269
4270 if test "$enableval" = yes; then
4271 ac_cv_use_config='wxUSE_CONFIG=yes'
4272 else
4273 ac_cv_use_config='wxUSE_CONFIG=no'
4274 fi
4275
4276else
4277
4278 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4286
4287fi;
4288
4289 eval "$ac_cv_use_config"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_CONFIG" = yes; then
4295 echo "$as_me:$LINENO: result: yes" >&5
4296echo "${ECHO_T}yes" >&6
4297 else
4298 echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6
4300 fi
4301
4302
4303
4304 enablestring=
4305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4306echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4307 no_cache=0
4308 # Check whether --enable-protocols or --disable-protocols was given.
4309if test "${enable_protocols+set}" = set; then
4310 enableval="$enable_protocols"
4311
4312 if test "$enableval" = yes; then
4313 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4314 else
4315 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4316 fi
4317
4318else
4319
4320 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4328
4329fi;
4330
4331 eval "$ac_cv_use_protocols"
4332 if test "$no_cache" != 1; then
4333 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4334 fi
4335
4336 if test "$wxUSE_PROTOCOL" = yes; then
4337 echo "$as_me:$LINENO: result: yes" >&5
4338echo "${ECHO_T}yes" >&6
4339 else
4340 echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
4342 fi
4343
4344
4345 enablestring=
4346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4347echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4348 no_cache=0
4349 # Check whether --enable-ftp or --disable-ftp was given.
4350if test "${enable_ftp+set}" = set; then
4351 enableval="$enable_ftp"
4352
4353 if test "$enableval" = yes; then
4354 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4355 else
4356 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4357 fi
4358
4359else
4360
4361 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4362 if test "x$LINE" != x ; then
4363 eval "DEFAULT_$LINE"
4364 else
4365 no_cache=1
4366 fi
4367
4368 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4369
4370fi;
4371
4372 eval "$ac_cv_use_ftp"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4378 echo "$as_me:$LINENO: result: yes" >&5
4379echo "${ECHO_T}yes" >&6
4380 else
4381 echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
4383 fi
4384
4385
4386 enablestring=
4387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4388echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4389 no_cache=0
4390 # Check whether --enable-http or --disable-http was given.
4391if test "${enable_http+set}" = set; then
4392 enableval="$enable_http"
4393
4394 if test "$enableval" = yes; then
4395 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4396 else
4397 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4398 fi
4399
4400else
4401
4402 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4403 if test "x$LINE" != x ; then
4404 eval "DEFAULT_$LINE"
4405 else
4406 no_cache=1
4407 fi
4408
4409 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4410
4411fi;
4412
4413 eval "$ac_cv_use_http"
4414 if test "$no_cache" != 1; then
4415 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4416 fi
4417
4418 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4419 echo "$as_me:$LINENO: result: yes" >&5
4420echo "${ECHO_T}yes" >&6
4421 else
4422 echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6
4424 fi
4425
4426
4427 enablestring=
4428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4429echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4430 no_cache=0
4431 # Check whether --enable-fileproto or --disable-fileproto was given.
4432if test "${enable_fileproto+set}" = set; then
4433 enableval="$enable_fileproto"
4434
4435 if test "$enableval" = yes; then
4436 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4437 else
4438 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4439 fi
4440
4441else
4442
4443 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4451
4452fi;
4453
4454 eval "$ac_cv_use_fileproto"
4455 if test "$no_cache" != 1; then
4456 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4457 fi
4458
4459 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4460 echo "$as_me:$LINENO: result: yes" >&5
4461echo "${ECHO_T}yes" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465 fi
4466
4467
4468 enablestring=
4469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4470echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4471 no_cache=0
4472 # Check whether --enable-sockets or --disable-sockets was given.
4473if test "${enable_sockets+set}" = set; then
4474 enableval="$enable_sockets"
4475
4476 if test "$enableval" = yes; then
4477 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4478 else
4479 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4480 fi
4481
4482else
4483
4484 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4485 if test "x$LINE" != x ; then
4486 eval "DEFAULT_$LINE"
4487 else
4488 no_cache=1
4489 fi
4490
4491 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4492
4493fi;
4494
4495 eval "$ac_cv_use_sockets"
4496 if test "$no_cache" != 1; then
4497 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4498 fi
4499
4500 if test "$wxUSE_SOCKETS" = yes; then
4501 echo "$as_me:$LINENO: result: yes" >&5
4502echo "${ECHO_T}yes" >&6
4503 else
4504 echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6
4506 fi
4507
4508
4509 enablestring=
4510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4511echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4512 no_cache=0
4513 # Check whether --enable-ole or --disable-ole was given.
4514if test "${enable_ole+set}" = set; then
4515 enableval="$enable_ole"
4516
4517 if test "$enableval" = yes; then
4518 ac_cv_use_ole='wxUSE_OLE=yes'
4519 else
4520 ac_cv_use_ole='wxUSE_OLE=no'
4521 fi
4522
4523else
4524
4525 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4526 if test "x$LINE" != x ; then
4527 eval "DEFAULT_$LINE"
4528 else
4529 no_cache=1
4530 fi
4531
4532 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4533
4534fi;
4535
4536 eval "$ac_cv_use_ole"
4537 if test "$no_cache" != 1; then
4538 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4539 fi
4540
4541 if test "$wxUSE_OLE" = yes; then
4542 echo "$as_me:$LINENO: result: yes" >&5
4543echo "${ECHO_T}yes" >&6
4544 else
4545 echo "$as_me:$LINENO: result: no" >&5
4546echo "${ECHO_T}no" >&6
4547 fi
4548
4549
4550 enablestring=
4551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4552echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4553 no_cache=0
4554 # Check whether --enable-dataobj or --disable-dataobj was given.
4555if test "${enable_dataobj+set}" = set; then
4556 enableval="$enable_dataobj"
4557
4558 if test "$enableval" = yes; then
4559 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4560 else
4561 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4562 fi
4563
4564else
4565
4566 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4567 if test "x$LINE" != x ; then
4568 eval "DEFAULT_$LINE"
4569 else
4570 no_cache=1
4571 fi
4572
4573 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4574
4575fi;
4576
4577 eval "$ac_cv_use_dataobj"
4578 if test "$no_cache" != 1; then
4579 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4580 fi
4581
4582 if test "$wxUSE_DATAOBJ" = yes; then
4583 echo "$as_me:$LINENO: result: yes" >&5
4584echo "${ECHO_T}yes" >&6
4585 else
4586 echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6
4588 fi
4589
4590
4591
4592 enablestring=
4593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4594echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4595 no_cache=0
4596 # Check whether --enable-ipc or --disable-ipc was given.
4597if test "${enable_ipc+set}" = set; then
4598 enableval="$enable_ipc"
4599
4600 if test "$enableval" = yes; then
4601 ac_cv_use_ipc='wxUSE_IPC=yes'
4602 else
4603 ac_cv_use_ipc='wxUSE_IPC=no'
4604 fi
4605
4606else
4607
4608 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4609 if test "x$LINE" != x ; then
4610 eval "DEFAULT_$LINE"
4611 else
4612 no_cache=1
4613 fi
4614
4615 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4616
4617fi;
4618
4619 eval "$ac_cv_use_ipc"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_IPC" = yes; then
4625 echo "$as_me:$LINENO: result: yes" >&5
4626echo "${ECHO_T}yes" >&6
4627 else
4628 echo "$as_me:$LINENO: result: no" >&5
4629echo "${ECHO_T}no" >&6
4630 fi
4631
4632
4633
4634 enablestring=
4635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4636echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4637 no_cache=0
4638 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4639if test "${enable_apple_ieee+set}" = set; then
4640 enableval="$enable_apple_ieee"
4641
4642 if test "$enableval" = yes; then
4643 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4644 else
4645 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4646 fi
4647
4648else
4649
4650 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4651 if test "x$LINE" != x ; then
4652 eval "DEFAULT_$LINE"
4653 else
4654 no_cache=1
4655 fi
4656
4657 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4658
4659fi;
4660
4661 eval "$ac_cv_use_apple_ieee"
4662 if test "$no_cache" != 1; then
4663 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4664 fi
4665
4666 if test "$wxUSE_APPLE_IEEE" = yes; then
4667 echo "$as_me:$LINENO: result: yes" >&5
4668echo "${ECHO_T}yes" >&6
4669 else
4670 echo "$as_me:$LINENO: result: no" >&5
4671echo "${ECHO_T}no" >&6
4672 fi
4673
4674
81f90336
MW
4675 enablestring=
4676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4677echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4678 no_cache=0
4679 # Check whether --enable-arcstream or --disable-arcstream was given.
4680if test "${enable_arcstream+set}" = set; then
4681 enableval="$enable_arcstream"
4682
4683 if test "$enableval" = yes; then
9e8e867f 4684 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4685 else
9e8e867f 4686 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4687 fi
4688
4689else
4690
9e8e867f 4691 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4692 if test "x$LINE" != x ; then
4693 eval "DEFAULT_$LINE"
4694 else
4695 no_cache=1
4696 fi
4697
9e8e867f 4698 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4699
4700fi;
4701
4702 eval "$ac_cv_use_arcstream"
4703 if test "$no_cache" != 1; then
4704 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4705 fi
4706
9e8e867f 4707 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4708 echo "$as_me:$LINENO: result: yes" >&5
4709echo "${ECHO_T}yes" >&6
4710 else
4711 echo "$as_me:$LINENO: result: no" >&5
4712echo "${ECHO_T}no" >&6
4713 fi
4714
4715
a848cd7e
SC
4716 enablestring=
4717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4718echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4719 no_cache=0
4720 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4721if test "${enable_catch_segvs+set}" = set; then
4722 enableval="$enable_catch_segvs"
4723
4724 if test "$enableval" = yes; then
4725 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4726 else
4727 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4728 fi
4729
4730else
4731
4732 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4733 if test "x$LINE" != x ; then
4734 eval "DEFAULT_$LINE"
4735 else
4736 no_cache=1
4737 fi
4738
4739 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4740
4741fi;
4742
4743 eval "$ac_cv_use_catch_segvs"
4744 if test "$no_cache" != 1; then
4745 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4746 fi
4747
4748 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4749 echo "$as_me:$LINENO: result: yes" >&5
4750echo "${ECHO_T}yes" >&6
4751 else
4752 echo "$as_me:$LINENO: result: no" >&5
4753echo "${ECHO_T}no" >&6
4754 fi
4755
4756
eaff0f0d
VZ
4757 enablestring=
4758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4759echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4760 no_cache=0
4761 # Check whether --enable-backtrace or --disable-backtrace was given.
4762if test "${enable_backtrace+set}" = set; then
4763 enableval="$enable_backtrace"
4764
4765 if test "$enableval" = yes; then
4766 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4767 else
4768 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4769 fi
4770
4771else
4772
4773 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4774 if test "x$LINE" != x ; then
4775 eval "DEFAULT_$LINE"
4776 else
4777 no_cache=1
4778 fi
4779
4780 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4781
4782fi;
4783
4784 eval "$ac_cv_use_backtrace"
4785 if test "$no_cache" != 1; then
4786 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4787 fi
4788
4789 if test "$wxUSE_STACKWALKER" = yes; then
4790 echo "$as_me:$LINENO: result: yes" >&5
4791echo "${ECHO_T}yes" >&6
4792 else
4793 echo "$as_me:$LINENO: result: no" >&5
4794echo "${ECHO_T}no" >&6
4795 fi
4796
4797
a848cd7e
SC
4798 enablestring=
4799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4800echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4801 no_cache=0
4802 # Check whether --enable-cmdline or --disable-cmdline was given.
4803if test "${enable_cmdline+set}" = set; then
4804 enableval="$enable_cmdline"
4805
4806 if test "$enableval" = yes; then
4807 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4808 else
4809 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4810 fi
4811
4812else
4813
4814 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4815 if test "x$LINE" != x ; then
4816 eval "DEFAULT_$LINE"
4817 else
4818 no_cache=1
4819 fi
4820
4821 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4822
4823fi;
4824
4825 eval "$ac_cv_use_cmdline"
4826 if test "$no_cache" != 1; then
4827 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4828 fi
4829
4830 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4831 echo "$as_me:$LINENO: result: yes" >&5
4832echo "${ECHO_T}yes" >&6
4833 else
4834 echo "$as_me:$LINENO: result: no" >&5
4835echo "${ECHO_T}no" >&6
4836 fi
4837
4838
4839 enablestring=
4840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4841echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4842 no_cache=0
4843 # Check whether --enable-datetime or --disable-datetime was given.
4844if test "${enable_datetime+set}" = set; then
4845 enableval="$enable_datetime"
4846
4847 if test "$enableval" = yes; then
4848 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4849 else
4850 ac_cv_use_datetime='wxUSE_DATETIME=no'
4851 fi
4852
4853else
4854
4855 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4856 if test "x$LINE" != x ; then
4857 eval "DEFAULT_$LINE"
4858 else
4859 no_cache=1
4860 fi
4861
4862 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4863
4864fi;
4865
4866 eval "$ac_cv_use_datetime"
4867 if test "$no_cache" != 1; then
4868 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4869 fi
4870
4871 if test "$wxUSE_DATETIME" = yes; then
4872 echo "$as_me:$LINENO: result: yes" >&5
4873echo "${ECHO_T}yes" >&6
4874 else
4875 echo "$as_me:$LINENO: result: no" >&5
4876echo "${ECHO_T}no" >&6
4877 fi
4878
4879
4880 enablestring=
4881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4882echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4883 no_cache=0
4884 # Check whether --enable-dialupman or --disable-dialupman was given.
4885if test "${enable_dialupman+set}" = set; then
4886 enableval="$enable_dialupman"
4887
4888 if test "$enableval" = yes; then
4889 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4890 else
4891 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4892 fi
4893
4894else
4895
4896 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4897 if test "x$LINE" != x ; then
4898 eval "DEFAULT_$LINE"
4899 else
4900 no_cache=1
4901 fi
4902
4903 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4904
4905fi;
4906
4907 eval "$ac_cv_use_dialupman"
4908 if test "$no_cache" != 1; then
4909 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4910 fi
4911
4912 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4913 echo "$as_me:$LINENO: result: yes" >&5
4914echo "${ECHO_T}yes" >&6
4915 else
4916 echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6
4918 fi
4919
4920
4921 enablestring=
4922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4923echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4924 no_cache=0
4925 # Check whether --enable-dynlib or --disable-dynlib was given.
4926if test "${enable_dynlib+set}" = set; then
4927 enableval="$enable_dynlib"
4928
4929 if test "$enableval" = yes; then
4930 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4931 else
4932 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4933 fi
4934
4935else
4936
4937 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4938 if test "x$LINE" != x ; then
4939 eval "DEFAULT_$LINE"
4940 else
4941 no_cache=1
4942 fi
4943
4944 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4945
4946fi;
4947
4948 eval "$ac_cv_use_dynlib"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4954 echo "$as_me:$LINENO: result: yes" >&5
4955echo "${ECHO_T}yes" >&6
4956 else
4957 echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6
4959 fi
4960
4961
4962 enablestring=
4963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4964echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4965 no_cache=0
4966 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4967if test "${enable_dynamicloader+set}" = set; then
4968 enableval="$enable_dynamicloader"
4969
4970 if test "$enableval" = yes; then
4971 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4972 else
4973 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4974 fi
4975
4976else
4977
4978 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4979 if test "x$LINE" != x ; then
4980 eval "DEFAULT_$LINE"
4981 else
4982 no_cache=1
4983 fi
4984
4985 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4986
4987fi;
4988
4989 eval "$ac_cv_use_dynamicloader"
4990 if test "$no_cache" != 1; then
4991 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4992 fi
4993
4994 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4995 echo "$as_me:$LINENO: result: yes" >&5
4996echo "${ECHO_T}yes" >&6
4997 else
4998 echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6
5000 fi
5001
5002
5003 enablestring=
5004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5005echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5006 no_cache=0
5007 # Check whether --enable-exceptions or --disable-exceptions was given.
5008if test "${enable_exceptions+set}" = set; then
5009 enableval="$enable_exceptions"
5010
5011 if test "$enableval" = yes; then
5012 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5013 else
5014 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5015 fi
5016
5017else
5018
5019 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
5026 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5027
5028fi;
5029
5030 eval "$ac_cv_use_exceptions"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_EXCEPTIONS" = yes; then
5036 echo "$as_me:$LINENO: result: yes" >&5
5037echo "${ECHO_T}yes" >&6
5038 else
5039 echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
5041 fi
5042
5043
5044 enablestring=
5045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5046echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5047 no_cache=0
5048 # Check whether --enable-ffile or --disable-ffile was given.
5049if test "${enable_ffile+set}" = set; then
5050 enableval="$enable_ffile"
5051
5052 if test "$enableval" = yes; then
5053 ac_cv_use_ffile='wxUSE_FFILE=yes'
5054 else
5055 ac_cv_use_ffile='wxUSE_FFILE=no'
5056 fi
5057
5058else
5059
5060 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5068
5069fi;
5070
5071 eval "$ac_cv_use_ffile"
5072 if test "$no_cache" != 1; then
5073 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5074 fi
5075
5076 if test "$wxUSE_FFILE" = yes; then
5077 echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079 else
5080 echo "$as_me:$LINENO: result: no" >&5
5081echo "${ECHO_T}no" >&6
5082 fi
5083
5084
5085 enablestring=
5086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5087echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5088 no_cache=0
5089 # Check whether --enable-file or --disable-file was given.
5090if test "${enable_file+set}" = set; then
5091 enableval="$enable_file"
5092
5093 if test "$enableval" = yes; then
5094 ac_cv_use_file='wxUSE_FILE=yes'
5095 else
5096 ac_cv_use_file='wxUSE_FILE=no'
5097 fi
5098
5099else
5100
5101 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5109
5110fi;
5111
5112 eval "$ac_cv_use_file"
5113 if test "$no_cache" != 1; then
5114 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5115 fi
5116
5117 if test "$wxUSE_FILE" = yes; then
5118 echo "$as_me:$LINENO: result: yes" >&5
5119echo "${ECHO_T}yes" >&6
5120 else
5121 echo "$as_me:$LINENO: result: no" >&5
5122echo "${ECHO_T}no" >&6
5123 fi
5124
5125
5126 enablestring=
5127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5128echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5129 no_cache=0
5130 # Check whether --enable-filesystem or --disable-filesystem was given.
5131if test "${enable_filesystem+set}" = set; then
5132 enableval="$enable_filesystem"
5133
5134 if test "$enableval" = yes; then
5135 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5136 else
5137 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5138 fi
5139
5140else
5141
5142 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5143 if test "x$LINE" != x ; then
5144 eval "DEFAULT_$LINE"
5145 else
5146 no_cache=1
5147 fi
5148
5149 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5150
5151fi;
5152
5153 eval "$ac_cv_use_filesystem"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_FILESYSTEM" = yes; then
5159 echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161 else
5162 echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164 fi
5165
5166
5167 enablestring=
5168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5169echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5170 no_cache=0
5171 # Check whether --enable-fontmap or --disable-fontmap was given.
5172if test "${enable_fontmap+set}" = set; then
5173 enableval="$enable_fontmap"
5174
5175 if test "$enableval" = yes; then
5176 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5177 else
5178 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5179 fi
5180
5181else
5182
5183 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5184 if test "x$LINE" != x ; then
5185 eval "DEFAULT_$LINE"
5186 else
5187 no_cache=1
5188 fi
5189
5190 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5191
5192fi;
5193
5194 eval "$ac_cv_use_fontmap"
5195 if test "$no_cache" != 1; then
5196 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5197 fi
5198
5199 if test "$wxUSE_FONTMAP" = yes; then
5200 echo "$as_me:$LINENO: result: yes" >&5
5201echo "${ECHO_T}yes" >&6
5202 else
5203 echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205 fi
5206
5207
5208 enablestring=
5209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5210echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5211 no_cache=0
5212 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5213if test "${enable_fs_inet+set}" = set; then
5214 enableval="$enable_fs_inet"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5218 else
5219 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5220 fi
5221
5222else
5223
5224 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5232
5233fi;
5234
5235 eval "$ac_cv_use_fs_inet"
5236 if test "$no_cache" != 1; then
5237 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5238 fi
5239
5240 if test "$wxUSE_FS_INET" = yes; then
5241 echo "$as_me:$LINENO: result: yes" >&5
5242echo "${ECHO_T}yes" >&6
5243 else
5244 echo "$as_me:$LINENO: result: no" >&5
5245echo "${ECHO_T}no" >&6
5246 fi
5247
5248
5249 enablestring=
5250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5251echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5252 no_cache=0
5253 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5254if test "${enable_fs_zip+set}" = set; then
5255 enableval="$enable_fs_zip"
5256
5257 if test "$enableval" = yes; then
5258 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5259 else
5260 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5261 fi
5262
5263else
5264
5265 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5266 if test "x$LINE" != x ; then
5267 eval "DEFAULT_$LINE"
5268 else
5269 no_cache=1
5270 fi
5271
5272 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5273
5274fi;
5275
5276 eval "$ac_cv_use_fs_zip"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_FS_ZIP" = yes; then
5282 echo "$as_me:$LINENO: result: yes" >&5
5283echo "${ECHO_T}yes" >&6
5284 else
5285 echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287 fi
5288
5289
5290 enablestring=
5291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5292echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5293 no_cache=0
5294 # Check whether --enable-geometry or --disable-geometry was given.
5295if test "${enable_geometry+set}" = set; then
5296 enableval="$enable_geometry"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5300 else
5301 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5302 fi
5303
5304else
5305
5306 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5314
5315fi;
5316
5317 eval "$ac_cv_use_geometry"
5318 if test "$no_cache" != 1; then
5319 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5320 fi
5321
5322 if test "$wxUSE_GEOMETRY" = yes; then
5323 echo "$as_me:$LINENO: result: yes" >&5
5324echo "${ECHO_T}yes" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
5328 fi
5329
5330
5331 enablestring=
5332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5333echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5334 no_cache=0
5335 # Check whether --enable-log or --disable-log was given.
5336if test "${enable_log+set}" = set; then
5337 enableval="$enable_log"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_log='wxUSE_LOG=yes'
5341 else
5342 ac_cv_use_log='wxUSE_LOG=no'
5343 fi
5344
5345else
5346
5347 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5355
5356fi;
5357
5358 eval "$ac_cv_use_log"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_LOG" = yes; then
5364 echo "$as_me:$LINENO: result: yes" >&5
5365echo "${ECHO_T}yes" >&6
5366 else
5367 echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
5369 fi
5370
5371
5372 enablestring=
5373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5374echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5375 no_cache=0
5376 # Check whether --enable-longlong or --disable-longlong was given.
5377if test "${enable_longlong+set}" = set; then
5378 enableval="$enable_longlong"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5382 else
5383 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5384 fi
5385
5386else
5387
5388 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5396
5397fi;
5398
5399 eval "$ac_cv_use_longlong"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_LONGLONG" = yes; then
5405 echo "$as_me:$LINENO: result: yes" >&5
5406echo "${ECHO_T}yes" >&6
5407 else
5408 echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410 fi
5411
5412
5413 enablestring=
5414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5415echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5416 no_cache=0
5417 # Check whether --enable-mimetype or --disable-mimetype was given.
5418if test "${enable_mimetype+set}" = set; then
5419 enableval="$enable_mimetype"
5420
5421 if test "$enableval" = yes; then
5422 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5423 else
5424 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5425 fi
5426
5427else
5428
5429 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5430 if test "x$LINE" != x ; then
5431 eval "DEFAULT_$LINE"
5432 else
5433 no_cache=1
5434 fi
5435
5436 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5437
5438fi;
5439
5440 eval "$ac_cv_use_mimetype"
5441 if test "$no_cache" != 1; then
5442 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5443 fi
5444
5445 if test "$wxUSE_MIMETYPE" = yes; then
5446 echo "$as_me:$LINENO: result: yes" >&5
5447echo "${ECHO_T}yes" >&6
5448 else
5449 echo "$as_me:$LINENO: result: no" >&5
5450echo "${ECHO_T}no" >&6
5451 fi
5452
5453
5454 enablestring=
5455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5456echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5457 no_cache=0
5458 # Check whether --enable-mslu or --disable-mslu was given.
5459if test "${enable_mslu+set}" = set; then
5460 enableval="$enable_mslu"
5461
5462 if test "$enableval" = yes; then
5463 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5464 else
5465 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5466 fi
5467
5468else
5469
5470 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5471 if test "x$LINE" != x ; then
5472 eval "DEFAULT_$LINE"
5473 else
5474 no_cache=1
5475 fi
5476
5477 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5478
5479fi;
5480
5481 eval "$ac_cv_use_mslu"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_UNICODE_MSLU" = yes; then
5487 echo "$as_me:$LINENO: result: yes" >&5
5488echo "${ECHO_T}yes" >&6
5489 else
5490 echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6
5492 fi
5493
5494
5495 enablestring=
5496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5497echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5498 no_cache=0
5499 # Check whether --enable-snglinst or --disable-snglinst was given.
5500if test "${enable_snglinst+set}" = set; then
5501 enableval="$enable_snglinst"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5505 else
5506 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5507 fi
5508
5509else
5510
5511 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5519
5520fi;
5521
5522 eval "$ac_cv_use_snglinst"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5528 echo "$as_me:$LINENO: result: yes" >&5
5529echo "${ECHO_T}yes" >&6
5530 else
5531 echo "$as_me:$LINENO: result: no" >&5
5532echo "${ECHO_T}no" >&6
5533 fi
5534
5535
5536 enablestring=
5537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5538echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5539 no_cache=0
5540 # Check whether --enable-streams or --disable-streams was given.
5541if test "${enable_streams+set}" = set; then
5542 enableval="$enable_streams"
5543
5544 if test "$enableval" = yes; then
5545 ac_cv_use_streams='wxUSE_STREAMS=yes'
5546 else
5547 ac_cv_use_streams='wxUSE_STREAMS=no'
5548 fi
5549
5550else
5551
5552 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5560
5561fi;
5562
5563 eval "$ac_cv_use_streams"
5564 if test "$no_cache" != 1; then
5565 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5566 fi
5567
5568 if test "$wxUSE_STREAMS" = yes; then
5569 echo "$as_me:$LINENO: result: yes" >&5
5570echo "${ECHO_T}yes" >&6
5571 else
5572 echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574 fi
5575
5576
5577 enablestring=
5578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5579echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5580 no_cache=0
5581 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5582if test "${enable_std_iostreams+set}" = set; then
5583 enableval="$enable_std_iostreams"
5584
5585 if test "$enableval" = yes; then
5586 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5587 else
5588 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5589 fi
5590
5591else
5592
5593 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5594 if test "x$LINE" != x ; then
5595 eval "DEFAULT_$LINE"
5596 else
5597 no_cache=1
5598 fi
5599
5600 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5601
5602fi;
5603
5604 eval "$ac_cv_use_std_iostreams"
5605 if test "$no_cache" != 1; then
5606 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5607 fi
5608
5609 if test "$wxUSE_STD_IOSTREAM" = yes; then
5610 echo "$as_me:$LINENO: result: yes" >&5
5611echo "${ECHO_T}yes" >&6
5612 else
5613 echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615 fi
5616
5617
5618 enablestring=
5619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5620echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5621 no_cache=0
5622 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5623if test "${enable_stopwatch+set}" = set; then
5624 enableval="$enable_stopwatch"
5625
5626 if test "$enableval" = yes; then
5627 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5628 else
5629 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5630 fi
5631
5632else
5633
5634 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5635 if test "x$LINE" != x ; then
5636 eval "DEFAULT_$LINE"
5637 else
5638 no_cache=1
5639 fi
5640
5641 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5642
5643fi;
5644
5645 eval "$ac_cv_use_stopwatch"
5646 if test "$no_cache" != 1; then
5647 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5648 fi
5649
5650 if test "$wxUSE_STOPWATCH" = yes; then
5651 echo "$as_me:$LINENO: result: yes" >&5
5652echo "${ECHO_T}yes" >&6
5653 else
5654 echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656 fi
5657
5658
5659 enablestring=
5660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5661echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5662 no_cache=0
5663 # Check whether --enable-system_options or --disable-system_options was given.
5664if test "${enable_system_options+set}" = set; then
5665 enableval="$enable_system_options"
5666
5667 if test "$enableval" = yes; then
5668 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5669 else
5670 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5671 fi
5672
5673else
5674
5675 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5683
5684fi;
5685
5686 eval "$ac_cv_use_system_options"
5687 if test "$no_cache" != 1; then
5688 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5689 fi
5690
5691 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5692 echo "$as_me:$LINENO: result: yes" >&5
5693echo "${ECHO_T}yes" >&6
5694 else
5695 echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697 fi
5698
5699
5700 enablestring=
5701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5702echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5703 no_cache=0
5704 # Check whether --enable-textbuf or --disable-textbuf was given.
5705if test "${enable_textbuf+set}" = set; then
5706 enableval="$enable_textbuf"
5707
5708 if test "$enableval" = yes; then
5709 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5710 else
5711 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5712 fi
5713
5714else
5715
5716 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5717 if test "x$LINE" != x ; then
5718 eval "DEFAULT_$LINE"
5719 else
5720 no_cache=1
5721 fi
5722
5723 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5724
5725fi;
5726
5727 eval "$ac_cv_use_textbuf"
5728 if test "$no_cache" != 1; then
5729 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5730 fi
5731
5732 if test "$wxUSE_TEXTBUFFER" = yes; then
5733 echo "$as_me:$LINENO: result: yes" >&5
5734echo "${ECHO_T}yes" >&6
5735 else
5736 echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6
5738 fi
5739
5740
5741 enablestring=
5742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5743echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5744 no_cache=0
5745 # Check whether --enable-textfile or --disable-textfile was given.
5746if test "${enable_textfile+set}" = set; then
5747 enableval="$enable_textfile"
5748
5749 if test "$enableval" = yes; then
5750 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5751 else
5752 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5753 fi
5754
5755else
5756
5757 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5758 if test "x$LINE" != x ; then
5759 eval "DEFAULT_$LINE"
5760 else
5761 no_cache=1
5762 fi
5763
5764 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5765
5766fi;
5767
5768 eval "$ac_cv_use_textfile"
5769 if test "$no_cache" != 1; then
5770 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5771 fi
5772
5773 if test "$wxUSE_TEXTFILE" = yes; then
5774 echo "$as_me:$LINENO: result: yes" >&5
5775echo "${ECHO_T}yes" >&6
5776 else
5777 echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6
5779 fi
5780
5781
5782 enablestring=
5783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5784echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5785 no_cache=0
5786 # Check whether --enable-timer or --disable-timer was given.
5787if test "${enable_timer+set}" = set; then
5788 enableval="$enable_timer"
5789
5790 if test "$enableval" = yes; then
5791 ac_cv_use_timer='wxUSE_TIMER=yes'
5792 else
5793 ac_cv_use_timer='wxUSE_TIMER=no'
5794 fi
5795
5796else
5797
5798 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5799 if test "x$LINE" != x ; then
5800 eval "DEFAULT_$LINE"
5801 else
5802 no_cache=1
5803 fi
5804
5805 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5806
5807fi;
5808
5809 eval "$ac_cv_use_timer"
5810 if test "$no_cache" != 1; then
5811 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5812 fi
5813
5814 if test "$wxUSE_TIMER" = yes; then
5815 echo "$as_me:$LINENO: result: yes" >&5
5816echo "${ECHO_T}yes" >&6
5817 else
5818 echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
5820 fi
5821
5822
5823 enablestring=
5824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5825echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5826 no_cache=0
5827 # Check whether --enable-unicode or --disable-unicode was given.
5828if test "${enable_unicode+set}" = set; then
5829 enableval="$enable_unicode"
5830
5831 if test "$enableval" = yes; then
5832 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5833 else
5834 ac_cv_use_unicode='wxUSE_UNICODE=no'
5835 fi
5836
5837else
5838
5839 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5840 if test "x$LINE" != x ; then
5841 eval "DEFAULT_$LINE"
5842 else
5843 no_cache=1
5844 fi
5845
5846 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5847
5848fi;
5849
5850 eval "$ac_cv_use_unicode"
5851 if test "$no_cache" != 1; then
5852 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5853 fi
5854
5855 if test "$wxUSE_UNICODE" = yes; then
5856 echo "$as_me:$LINENO: result: yes" >&5
5857echo "${ECHO_T}yes" >&6
5858 else
5859 echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861 fi
5862
5863
5864 enablestring=
5865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5866echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5867 no_cache=0
5868 # Check whether --enable-sound or --disable-sound was given.
5869if test "${enable_sound+set}" = set; then
5870 enableval="$enable_sound"
5871
5872 if test "$enableval" = yes; then
5873 ac_cv_use_sound='wxUSE_SOUND=yes'
5874 else
5875 ac_cv_use_sound='wxUSE_SOUND=no'
5876 fi
5877
5878else
5879
5880 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5881 if test "x$LINE" != x ; then
5882 eval "DEFAULT_$LINE"
5883 else
5884 no_cache=1
5885 fi
5886
5887 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5888
5889fi;
5890
5891 eval "$ac_cv_use_sound"
5892 if test "$no_cache" != 1; then
5893 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5894 fi
5895
5896 if test "$wxUSE_SOUND" = yes; then
5897 echo "$as_me:$LINENO: result: yes" >&5
5898echo "${ECHO_T}yes" >&6
5899 else
5900 echo "$as_me:$LINENO: result: no" >&5
5901echo "${ECHO_T}no" >&6
5902 fi
5903
5904
3b57de8b
RL
5905 enablestring=
5906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5907echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5908 no_cache=0
5909 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5910if test "${enable_mediactrl+set}" = set; then
5911 enableval="$enable_mediactrl"
5912
5913 if test "$enableval" = yes; then
5914 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5915 else
5916 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5917 fi
5918
5919else
5920
5921 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5922 if test "x$LINE" != x ; then
5923 eval "DEFAULT_$LINE"
5924 else
5925 no_cache=1
5926 fi
5927
5928 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5929
5930fi;
5931
5932 eval "$ac_cv_use_mediactrl"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_MEDIACTRL" = yes; then
5938 echo "$as_me:$LINENO: result: yes" >&5
5939echo "${ECHO_T}yes" >&6
5940 else
5941 echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943 fi
5944
5945
a848cd7e
SC
5946 enablestring=
5947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5948echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5949 no_cache=0
5950 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5951if test "${enable_wxprintfv+set}" = set; then
5952 enableval="$enable_wxprintfv"
5953
5954 if test "$enableval" = yes; then
5955 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5956 else
5957 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5958 fi
5959
5960else
5961
5962 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5963 if test "x$LINE" != x ; then
5964 eval "DEFAULT_$LINE"
5965 else
5966 no_cache=1
5967 fi
5968
5969 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5970
5971fi;
5972
5973 eval "$ac_cv_use_wxprintfv"
5974 if test "$no_cache" != 1; then
5975 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5976 fi
5977
5978 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5979 echo "$as_me:$LINENO: result: yes" >&5
5980echo "${ECHO_T}yes" >&6
5981 else
5982 echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
5984 fi
5985
5986
5987 enablestring=
5988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5989echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5990 no_cache=0
5991 # Check whether --enable-zipstream or --disable-zipstream was given.
5992if test "${enable_zipstream+set}" = set; then
5993 enableval="$enable_zipstream"
5994
5995 if test "$enableval" = yes; then
5996 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5997 else
5998 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5999 fi
6000
6001else
6002
6003 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6004 if test "x$LINE" != x ; then
6005 eval "DEFAULT_$LINE"
6006 else
6007 no_cache=1
6008 fi
6009
6010 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6011
6012fi;
6013
6014 eval "$ac_cv_use_zipstream"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_ZIPSTREAM" = yes; then
6020 echo "$as_me:$LINENO: result: yes" >&5
6021echo "${ECHO_T}yes" >&6
6022 else
6023 echo "$as_me:$LINENO: result: no" >&5
6024echo "${ECHO_T}no" >&6
6025 fi
6026
6027
a848cd7e
SC
6028
6029 enablestring=
6030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6031echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6032 no_cache=0
6033 # Check whether --enable-url or --disable-url was given.
6034if test "${enable_url+set}" = set; then
6035 enableval="$enable_url"
6036
6037 if test "$enableval" = yes; then
6038 ac_cv_use_url='wxUSE_URL=yes'
6039 else
6040 ac_cv_use_url='wxUSE_URL=no'
6041 fi
6042
6043else
6044
6045 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6053
6054fi;
6055
6056 eval "$ac_cv_use_url"
6057 if test "$no_cache" != 1; then
6058 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6059 fi
6060
6061 if test "$wxUSE_URL" = yes; then
6062 echo "$as_me:$LINENO: result: yes" >&5
6063echo "${ECHO_T}yes" >&6
6064 else
6065 echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6
6067 fi
6068
6069
6070 enablestring=
6071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6072echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6073 no_cache=0
6074 # Check whether --enable-protocol or --disable-protocol was given.
6075if test "${enable_protocol+set}" = set; then
6076 enableval="$enable_protocol"
6077
6078 if test "$enableval" = yes; then
6079 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6080 else
6081 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6082 fi
6083
6084else
6085
6086 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6087 if test "x$LINE" != x ; then
6088 eval "DEFAULT_$LINE"
6089 else
6090 no_cache=1
6091 fi
6092
6093 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6094
6095fi;
6096
6097 eval "$ac_cv_use_protocol"
6098 if test "$no_cache" != 1; then
6099 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6100 fi
6101
6102 if test "$wxUSE_PROTOCOL" = yes; then
6103 echo "$as_me:$LINENO: result: yes" >&5
6104echo "${ECHO_T}yes" >&6
6105 else
6106 echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6
6108 fi
6109
6110
6111 enablestring=
6112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6113echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6114 no_cache=0
6115 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6116if test "${enable_protocol_http+set}" = set; then
6117 enableval="$enable_protocol_http"
6118
6119 if test "$enableval" = yes; then
6120 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6121 else
6122 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6123 fi
6124
6125else
6126
6127 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6128 if test "x$LINE" != x ; then
6129 eval "DEFAULT_$LINE"
6130 else
6131 no_cache=1
6132 fi
6133
6134 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6135
6136fi;
6137
6138 eval "$ac_cv_use_protocol_http"
6139 if test "$no_cache" != 1; then
6140 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6141 fi
6142
6143 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6144 echo "$as_me:$LINENO: result: yes" >&5
6145echo "${ECHO_T}yes" >&6
6146 else
6147 echo "$as_me:$LINENO: result: no" >&5
6148echo "${ECHO_T}no" >&6
6149 fi
6150
6151
6152 enablestring=
6153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6154echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6155 no_cache=0
6156 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6157if test "${enable_protocol_ftp+set}" = set; then
6158 enableval="$enable_protocol_ftp"
6159
6160 if test "$enableval" = yes; then
6161 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6162 else
6163 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6164 fi
6165
6166else
6167
6168 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6169 if test "x$LINE" != x ; then
6170 eval "DEFAULT_$LINE"
6171 else
6172 no_cache=1
6173 fi
6174
6175 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6176
6177fi;
6178
6179 eval "$ac_cv_use_protocol_ftp"
6180 if test "$no_cache" != 1; then
6181 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6182 fi
6183
6184 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6185 echo "$as_me:$LINENO: result: yes" >&5
6186echo "${ECHO_T}yes" >&6
6187 else
6188 echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
6190 fi
6191
6192
6193 enablestring=
6194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6195echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6196 no_cache=0
6197 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6198if test "${enable_protocol_file+set}" = set; then
6199 enableval="$enable_protocol_file"
6200
6201 if test "$enableval" = yes; then
6202 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6203 else
6204 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6205 fi
6206
6207else
6208
6209 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6210 if test "x$LINE" != x ; then
6211 eval "DEFAULT_$LINE"
6212 else
6213 no_cache=1
6214 fi
6215
6216 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6217
6218fi;
6219
6220 eval "$ac_cv_use_protocol_file"
6221 if test "$no_cache" != 1; then
6222 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6223 fi
6224
6225 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6226 echo "$as_me:$LINENO: result: yes" >&5
6227echo "${ECHO_T}yes" >&6
6228 else
6229 echo "$as_me:$LINENO: result: no" >&5
6230echo "${ECHO_T}no" >&6
6231 fi
6232
6233
6234
6235
6236
6237 enablestring=
6238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6239echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6240 no_cache=0
6241 # Check whether --enable-threads or --disable-threads was given.
6242if test "${enable_threads+set}" = set; then
6243 enableval="$enable_threads"
6244
6245 if test "$enableval" = yes; then
6246 ac_cv_use_threads='wxUSE_THREADS=yes'
6247 else
6248 ac_cv_use_threads='wxUSE_THREADS=no'
6249 fi
6250
6251else
6252
6253 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6254 if test "x$LINE" != x ; then
6255 eval "DEFAULT_$LINE"
6256 else
6257 no_cache=1
6258 fi
6259
6260 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6261
6262fi;
6263
6264 eval "$ac_cv_use_threads"
6265 if test "$no_cache" != 1; then
6266 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6267 fi
6268
6269 if test "$wxUSE_THREADS" = yes; then
6270 echo "$as_me:$LINENO: result: yes" >&5
6271echo "${ECHO_T}yes" >&6
6272 else
6273 echo "$as_me:$LINENO: result: no" >&5
6274echo "${ECHO_T}no" >&6
6275 fi
6276
6277
6278if test "$wxUSE_GUI" = "yes"; then
6279
6280
6281
6282 enablestring=
6283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6284echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6285 no_cache=0
6286 # Check whether --enable-docview or --disable-docview was given.
6287if test "${enable_docview+set}" = set; then
6288 enableval="$enable_docview"
6289
6290 if test "$enableval" = yes; then
6291 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6292 else
6293 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6294 fi
6295
6296else
6297
6298 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6299 if test "x$LINE" != x ; then
6300 eval "DEFAULT_$LINE"
6301 else
6302 no_cache=1
6303 fi
6304
6305 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6306
6307fi;
6308
6309 eval "$ac_cv_use_docview"
6310 if test "$no_cache" != 1; then
6311 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6312 fi
6313
6314 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6315 echo "$as_me:$LINENO: result: yes" >&5
6316echo "${ECHO_T}yes" >&6
6317 else
6318 echo "$as_me:$LINENO: result: no" >&5
6319echo "${ECHO_T}no" >&6
6320 fi
6321
6322
6323 enablestring=
6324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6325echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6326 no_cache=0
6327 # Check whether --enable-help or --disable-help was given.
6328if test "${enable_help+set}" = set; then
6329 enableval="$enable_help"
6330
6331 if test "$enableval" = yes; then
6332 ac_cv_use_help='wxUSE_HELP=yes'
6333 else
6334 ac_cv_use_help='wxUSE_HELP=no'
6335 fi
6336
6337else
6338
6339 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6340 if test "x$LINE" != x ; then
6341 eval "DEFAULT_$LINE"
6342 else
6343 no_cache=1
6344 fi
6345
6346 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6347
6348fi;
6349
6350 eval "$ac_cv_use_help"
6351 if test "$no_cache" != 1; then
6352 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6353 fi
6354
6355 if test "$wxUSE_HELP" = yes; then
6356 echo "$as_me:$LINENO: result: yes" >&5
6357echo "${ECHO_T}yes" >&6
6358 else
6359 echo "$as_me:$LINENO: result: no" >&5
6360echo "${ECHO_T}no" >&6
6361 fi
6362
6363
6364 enablestring=
6365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6366echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6367 no_cache=0
6368 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6369if test "${enable_mshtmlhelp+set}" = set; then
6370 enableval="$enable_mshtmlhelp"
6371
6372 if test "$enableval" = yes; then
6373 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6374 else
6375 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6376 fi
6377
6378else
6379
6380 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6381 if test "x$LINE" != x ; then
6382 eval "DEFAULT_$LINE"
6383 else
6384 no_cache=1
6385 fi
6386
6387 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6388
6389fi;
6390
6391 eval "$ac_cv_use_mshtmlhelp"
6392 if test "$no_cache" != 1; then
6393 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6394 fi
6395
6396 if test "$wxUSE_MS_HTML_HELP" = yes; then
6397 echo "$as_me:$LINENO: result: yes" >&5
6398echo "${ECHO_T}yes" >&6
6399 else
6400 echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6
6402 fi
6403
6404
6405 enablestring=
6406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6407echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6408 no_cache=0
6409 # Check whether --enable-html or --disable-html was given.
6410if test "${enable_html+set}" = set; then
6411 enableval="$enable_html"
6412
6413 if test "$enableval" = yes; then
6414 ac_cv_use_html='wxUSE_HTML=yes'
6415 else
6416 ac_cv_use_html='wxUSE_HTML=no'
6417 fi
6418
6419else
6420
6421 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6422 if test "x$LINE" != x ; then
6423 eval "DEFAULT_$LINE"
6424 else
6425 no_cache=1
6426 fi
6427
6428 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6429
6430fi;
6431
6432 eval "$ac_cv_use_html"
6433 if test "$no_cache" != 1; then
6434 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6435 fi
6436
6437 if test "$wxUSE_HTML" = yes; then
6438 echo "$as_me:$LINENO: result: yes" >&5
6439echo "${ECHO_T}yes" >&6
6440 else
6441 echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6
6443 fi
6444
6445
6446 enablestring=
6447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6448echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6449 no_cache=0
6450 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6451if test "${enable_htmlhelp+set}" = set; then
6452 enableval="$enable_htmlhelp"
6453
6454 if test "$enableval" = yes; then
6455 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6456 else
6457 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6458 fi
6459
6460else
6461
6462 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6463 if test "x$LINE" != x ; then
6464 eval "DEFAULT_$LINE"
6465 else
6466 no_cache=1
6467 fi
6468
6469 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6470
6471fi;
6472
6473 eval "$ac_cv_use_htmlhelp"
6474 if test "$no_cache" != 1; then
6475 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6476 fi
6477
6478 if test "$wxUSE_WXHTML_HELP" = yes; then
6479 echo "$as_me:$LINENO: result: yes" >&5
6480echo "${ECHO_T}yes" >&6
6481 else
6482 echo "$as_me:$LINENO: result: no" >&5
6483echo "${ECHO_T}no" >&6
6484 fi
6485
6486
9a8f0513
VS
6487 enablestring=
6488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6489echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6490 no_cache=0
6491 # Check whether --enable-xrc or --disable-xrc was given.
6492if test "${enable_xrc+set}" = set; then
6493 enableval="$enable_xrc"
6494
6495 if test "$enableval" = yes; then
6496 ac_cv_use_xrc='wxUSE_XRC=yes'
6497 else
6498 ac_cv_use_xrc='wxUSE_XRC=no'
6499 fi
6500
6501else
6502
6503 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6504 if test "x$LINE" != x ; then
6505 eval "DEFAULT_$LINE"
6506 else
6507 no_cache=1
6508 fi
6509
6510 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6511
6512fi;
6513
6514 eval "$ac_cv_use_xrc"
6515 if test "$no_cache" != 1; then
6516 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6517 fi
6518
6519 if test "$wxUSE_XRC" = yes; then
6520 echo "$as_me:$LINENO: result: yes" >&5
6521echo "${ECHO_T}yes" >&6
6522 else
6523 echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
6525 fi
6526
6527
a848cd7e
SC
6528 enablestring=
6529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6530echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6531 no_cache=0
6532 # Check whether --enable-constraints or --disable-constraints was given.
6533if test "${enable_constraints+set}" = set; then
6534 enableval="$enable_constraints"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6538 else
6539 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6540 fi
6541
6542else
6543
6544 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6552
6553fi;
6554
6555 eval "$ac_cv_use_constraints"
6556 if test "$no_cache" != 1; then
6557 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6558 fi
6559
6560 if test "$wxUSE_CONSTRAINTS" = yes; then
6561 echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6
6563 else
6564 echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
6566 fi
6567
6568
6569 enablestring=
6570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6571echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6572 no_cache=0
6573 # Check whether --enable-printarch or --disable-printarch was given.
6574if test "${enable_printarch+set}" = set; then
6575 enableval="$enable_printarch"
6576
6577 if test "$enableval" = yes; then
6578 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6579 else
6580 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6581 fi
6582
6583else
6584
6585 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6593
6594fi;
6595
6596 eval "$ac_cv_use_printarch"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6602 echo "$as_me:$LINENO: result: yes" >&5
6603echo "${ECHO_T}yes" >&6
6604 else
6605 echo "$as_me:$LINENO: result: no" >&5
6606echo "${ECHO_T}no" >&6
6607 fi
6608
6609
6610 enablestring=
6611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6612echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6613 no_cache=0
6614 # Check whether --enable-mdi or --disable-mdi was given.
6615if test "${enable_mdi+set}" = set; then
6616 enableval="$enable_mdi"
6617
6618 if test "$enableval" = yes; then
8a7b1113 6619 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6620 else
8a7b1113 6621 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6622 fi
6623
6624else
6625
8a7b1113 6626 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
8a7b1113 6633 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6634
6635fi;
6636
6637 eval "$ac_cv_use_mdi"
6638 if test "$no_cache" != 1; then
6639 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6640 fi
6641
8a7b1113
VZ
6642 if test "$wxUSE_MDI" = yes; then
6643 echo "$as_me:$LINENO: result: yes" >&5
6644echo "${ECHO_T}yes" >&6
6645 else
6646 echo "$as_me:$LINENO: result: no" >&5
6647echo "${ECHO_T}no" >&6
6648 fi
6649
6650
6651 enablestring=
6652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6653echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6654 no_cache=0
6655 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6656if test "${enable_mdidoc+set}" = set; then
6657 enableval="$enable_mdidoc"
6658
6659 if test "$enableval" = yes; then
6660 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6661 else
6662 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6663 fi
6664
6665else
6666
6667 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6668 if test "x$LINE" != x ; then
6669 eval "DEFAULT_$LINE"
6670 else
6671 no_cache=1
6672 fi
6673
6674 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6675
6676fi;
6677
6678 eval "$ac_cv_use_mdidoc"
6679 if test "$no_cache" != 1; then
6680 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6681 fi
6682
a848cd7e
SC
6683 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6684 echo "$as_me:$LINENO: result: yes" >&5
6685echo "${ECHO_T}yes" >&6
6686 else
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
6689 fi
6690
6691
6692 enablestring=
6693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6694echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6695 no_cache=0
6696 # Check whether --enable-loggui or --disable-loggui was given.
6697if test "${enable_loggui+set}" = set; then
6698 enableval="$enable_loggui"
6699
6700 if test "$enableval" = yes; then
6701 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6702 else
6703 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6704 fi
6705
6706else
6707
6708 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6716
6717fi;
6718
6719 eval "$ac_cv_use_loggui"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_LOGGUI" = yes; then
6725 echo "$as_me:$LINENO: result: yes" >&5
6726echo "${ECHO_T}yes" >&6
6727 else
6728 echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6
6730 fi
6731
6732
6733 enablestring=
6734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6735echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6736 no_cache=0
6737 # Check whether --enable-logwin or --disable-logwin was given.
6738if test "${enable_logwin+set}" = set; then
6739 enableval="$enable_logwin"
6740
6741 if test "$enableval" = yes; then
6742 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6743 else
6744 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6745 fi
6746
6747else
6748
6749 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6757
6758fi;
6759
6760 eval "$ac_cv_use_logwin"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_LOGWINDOW" = yes; then
6766 echo "$as_me:$LINENO: result: yes" >&5
6767echo "${ECHO_T}yes" >&6
6768 else
6769 echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6
6771 fi
6772
6773
6774 enablestring=
6775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6776echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6777 no_cache=0
6778 # Check whether --enable-logdialog or --disable-logdialog was given.
6779if test "${enable_logdialog+set}" = set; then
6780 enableval="$enable_logdialog"
6781
6782 if test "$enableval" = yes; then
6783 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6784 else
6785 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6786 fi
6787
6788else
6789
6790 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6798
6799fi;
6800
6801 eval "$ac_cv_use_logdialog"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_LOGDIALOG" = yes; then
6807 echo "$as_me:$LINENO: result: yes" >&5
6808echo "${ECHO_T}yes" >&6
6809 else
6810 echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6
6812 fi
6813
6814
646b6ec1
VS
6815 enablestring=
6816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6817echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6818 no_cache=0
6819 # Check whether --enable-webkit or --disable-webkit was given.
6820if test "${enable_webkit+set}" = set; then
6821 enableval="$enable_webkit"
6822
6823 if test "$enableval" = yes; then
6824 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6825 else
6826 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6827 fi
6828
6829else
6830
6831 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6839
6840fi;
6841
6842 eval "$ac_cv_use_webkit"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_WEBKIT" = yes; then
6848 echo "$as_me:$LINENO: result: yes" >&5
6849echo "${ECHO_T}yes" >&6
6850 else
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
6853 fi
6854
6855
a848cd7e
SC
6856
6857 enablestring=
6858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6859echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6860 no_cache=0
6861 # Check whether --enable-postscript or --disable-postscript was given.
6862if test "${enable_postscript+set}" = set; then
6863 enableval="$enable_postscript"
6864
6865 if test "$enableval" = yes; then
6866 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6867 else
6868 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6869 fi
6870
6871else
6872
6873 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6881
6882fi;
6883
6884 eval "$ac_cv_use_postscript"
6885 if test "$no_cache" != 1; then
6886 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6887 fi
6888
6889 if test "$wxUSE_POSTSCRIPT" = yes; then
6890 echo "$as_me:$LINENO: result: yes" >&5
6891echo "${ECHO_T}yes" >&6
6892 else
6893 echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6
6895 fi
6896
6897
6898
6899
6900
6901 enablestring=
6902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6903echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6904 no_cache=0
6905 # Check whether --enable-prologio or --disable-prologio was given.
6906if test "${enable_prologio+set}" = set; then
6907 enableval="$enable_prologio"
6908
6909 if test "$enableval" = yes; then
6910 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6911 else
6912 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6913 fi
6914
6915else
6916
6917 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6918 if test "x$LINE" != x ; then
6919 eval "DEFAULT_$LINE"
6920 else
6921 no_cache=1
6922 fi
6923
6924 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6925
6926fi;
6927
6928 eval "$ac_cv_use_prologio"
6929 if test "$no_cache" != 1; then
6930 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6931 fi
6932
6933 if test "$wxUSE_PROLOGIO" = yes; then
6934 echo "$as_me:$LINENO: result: yes" >&5
6935echo "${ECHO_T}yes" >&6
6936 else
6937 echo "$as_me:$LINENO: result: no" >&5
6938echo "${ECHO_T}no" >&6
6939 fi
6940
6941
6942 enablestring=
6943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6944echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6945 no_cache=0
6946 # Check whether --enable-resources or --disable-resources was given.
6947if test "${enable_resources+set}" = set; then
6948 enableval="$enable_resources"
6949
6950 if test "$enableval" = yes; then
6951 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6952 else
6953 ac_cv_use_resources='wxUSE_RESOURCES=no'
6954 fi
6955
6956else
6957
6958 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6959 if test "x$LINE" != x ; then
6960 eval "DEFAULT_$LINE"
6961 else
6962 no_cache=1
6963 fi
6964
6965 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6966
6967fi;
6968
6969 eval "$ac_cv_use_resources"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_RESOURCES" = yes; then
6975 echo "$as_me:$LINENO: result: yes" >&5
6976echo "${ECHO_T}yes" >&6
6977 else
6978 echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6
6980 fi
6981
6982
6983
6984
6985 enablestring=
6986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6987echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6988 no_cache=0
6989 # Check whether --enable-clipboard or --disable-clipboard was given.
6990if test "${enable_clipboard+set}" = set; then
6991 enableval="$enable_clipboard"
6992
6993 if test "$enableval" = yes; then
6994 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6995 else
6996 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6997 fi
6998
6999else
7000
7001 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7009
7010fi;
7011
7012 eval "$ac_cv_use_clipboard"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_CLIPBOARD" = yes; then
7018 echo "$as_me:$LINENO: result: yes" >&5
7019echo "${ECHO_T}yes" >&6
7020 else
7021 echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6
7023 fi
7024
7025
7026 enablestring=
7027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7028echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7029 no_cache=0
7030 # Check whether --enable-dnd or --disable-dnd was given.
7031if test "${enable_dnd+set}" = set; then
7032 enableval="$enable_dnd"
7033
7034 if test "$enableval" = yes; then
7035 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7036 else
7037 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7038 fi
7039
7040else
7041
7042 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7043 if test "x$LINE" != x ; then
7044 eval "DEFAULT_$LINE"
7045 else
7046 no_cache=1
7047 fi
7048
7049 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7050
7051fi;
7052
7053 eval "$ac_cv_use_dnd"
7054 if test "$no_cache" != 1; then
7055 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7056 fi
7057
7058 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7059 echo "$as_me:$LINENO: result: yes" >&5
7060echo "${ECHO_T}yes" >&6
7061 else
7062 echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6
7064 fi
7065
7066
7067 enablestring=
7068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7069echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7070 no_cache=0
7071 # Check whether --enable-metafile or --disable-metafile was given.
7072if test "${enable_metafile+set}" = set; then
7073 enableval="$enable_metafile"
7074
7075 if test "$enableval" = yes; then
7076 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7077 else
7078 ac_cv_use_metafile='wxUSE_METAFILE=no'
7079 fi
7080
7081else
7082
7083 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7084 if test "x$LINE" != x ; then
7085 eval "DEFAULT_$LINE"
7086 else
7087 no_cache=1
7088 fi
7089
7090 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7091
7092fi;
7093
7094 eval "$ac_cv_use_metafile"
7095 if test "$no_cache" != 1; then
7096 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7097 fi
7098
7099 if test "$wxUSE_METAFILE" = yes; then
7100 echo "$as_me:$LINENO: result: yes" >&5
7101echo "${ECHO_T}yes" >&6
7102 else
7103 echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
7105 fi
7106
7107
7108
7109
7110
7111 enablestring=
7112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7113echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7114 no_cache=0
7115 # Check whether --enable-controls or --disable-controls was given.
7116if test "${enable_controls+set}" = set; then
7117 enableval="$enable_controls"
7118
7119 if test "$enableval" = yes; then
7120 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7121 else
7122 ac_cv_use_controls='wxUSE_CONTROLS=no'
7123 fi
7124
7125else
7126
7127 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7128 if test "x$LINE" != x ; then
7129 eval "DEFAULT_$LINE"
7130 else
7131 no_cache=1
7132 fi
7133
7134 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7135
7136fi;
7137
7138 eval "$ac_cv_use_controls"
7139 if test "$no_cache" != 1; then
7140 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7141 fi
7142
7143 if test "$wxUSE_CONTROLS" = yes; then
7144 echo "$as_me:$LINENO: result: yes" >&5
7145echo "${ECHO_T}yes" >&6
7146 else
7147 echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6
7149 fi
7150
7151
7152if test "$wxUSE_CONTROLS" = "yes"; then
7153 DEFAULT_wxUSE_ACCEL=yes
7154 DEFAULT_wxUSE_BMPBUTTON=yes
7155 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7156 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7157 DEFAULT_wxUSE_CARET=yes
7158 DEFAULT_wxUSE_COMBOBOX=yes
7159 DEFAULT_wxUSE_CHECKBOX=yes
7160 DEFAULT_wxUSE_CHECKLISTBOX=yes
7161 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7162 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7163 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7164 DEFAULT_wxUSE_GAUGE=yes
7165 DEFAULT_wxUSE_GRID=yes
7166 DEFAULT_wxUSE_IMAGLIST=yes
7167 DEFAULT_wxUSE_LISTBOOK=yes
7168 DEFAULT_wxUSE_LISTBOX=yes
7169 DEFAULT_wxUSE_LISTCTRL=yes
7170 DEFAULT_wxUSE_NOTEBOOK=yes
7171 DEFAULT_wxUSE_RADIOBOX=yes
7172 DEFAULT_wxUSE_RADIOBTN=yes
7173 DEFAULT_wxUSE_SASH=yes
7174 DEFAULT_wxUSE_SCROLLBAR=yes
7175 DEFAULT_wxUSE_SLIDER=yes
7176 DEFAULT_wxUSE_SPINBTN=yes
7177 DEFAULT_wxUSE_SPINCTRL=yes
7178 DEFAULT_wxUSE_SPLITTER=yes
7179 DEFAULT_wxUSE_STATBMP=yes
7180 DEFAULT_wxUSE_STATBOX=yes
7181 DEFAULT_wxUSE_STATLINE=yes
7182 DEFAULT_wxUSE_STATUSBAR=yes
7183 DEFAULT_wxUSE_TAB_DIALOG=yes
7184 DEFAULT_wxUSE_TOGGLEBTN=yes
7185 DEFAULT_wxUSE_TOOLBAR=yes
7186 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7187 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7188 DEFAULT_wxUSE_TOOLTIPS=yes
7189 DEFAULT_wxUSE_TREECTRL=yes
7190 DEFAULT_wxUSE_POPUPWIN=yes
7191 DEFAULT_wxUSE_TIPWINDOW=yes
7192elif test "$wxUSE_CONTROLS" = "no"; then
7193 DEFAULT_wxUSE_ACCEL=no
7194 DEFAULT_wxUSE_BMPBUTTON=no
7195 DEFAULT_wxUSE_BUTTON=no
7196 DEFAULT_wxUSE_CALCTRL=no
7197 DEFAULT_wxUSE_CARET=no
7198 DEFAULT_wxUSE_COMBOBOX=no
7199 DEFAULT_wxUSE_CHECKBOX=no
7200 DEFAULT_wxUSE_CHECKLISTBOX=no
7201 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7202 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7203 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7204 DEFAULT_wxUSE_GAUGE=no
7205 DEFAULT_wxUSE_GRID=no
7206 DEFAULT_wxUSE_IMAGLIST=no
7207 DEFAULT_wxUSE_LISTBOOK=no
7208 DEFAULT_wxUSE_LISTBOX=no
7209 DEFAULT_wxUSE_LISTCTRL=no
7210 DEFAULT_wxUSE_NOTEBOOK=no
7211 DEFAULT_wxUSE_RADIOBOX=no
7212 DEFAULT_wxUSE_RADIOBTN=no
7213 DEFAULT_wxUSE_SASH=no
7214 DEFAULT_wxUSE_SCROLLBAR=no
7215 DEFAULT_wxUSE_SLIDER=no
7216 DEFAULT_wxUSE_SPINBTN=no
7217 DEFAULT_wxUSE_SPINCTRL=no
7218 DEFAULT_wxUSE_SPLITTER=no
7219 DEFAULT_wxUSE_STATBMP=no
7220 DEFAULT_wxUSE_STATBOX=no
7221 DEFAULT_wxUSE_STATLINE=no
7222 DEFAULT_wxUSE_STATUSBAR=no
7223 DEFAULT_wxUSE_TAB_DIALOG=no
7224 DEFAULT_wxUSE_TOGGLEBTN=no
7225 DEFAULT_wxUSE_TOOLBAR=no
7226 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7227 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7228 DEFAULT_wxUSE_TOOLTIPS=no
7229 DEFAULT_wxUSE_TREECTRL=no
7230 DEFAULT_wxUSE_POPUPWIN=no
7231 DEFAULT_wxUSE_TIPWINDOW=no
7232fi
7233
a848cd7e
SC
7234
7235 enablestring=
7236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7237echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7238 no_cache=0
7239 # Check whether --enable-accel or --disable-accel was given.
7240if test "${enable_accel+set}" = set; then
7241 enableval="$enable_accel"
7242
7243 if test "$enableval" = yes; then
7244 ac_cv_use_accel='wxUSE_ACCEL=yes'
7245 else
7246 ac_cv_use_accel='wxUSE_ACCEL=no'
7247 fi
7248
7249else
7250
7251 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7252 if test "x$LINE" != x ; then
7253 eval "DEFAULT_$LINE"
7254 else
7255 no_cache=1
7256 fi
7257
7258 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7259
7260fi;
7261
7262 eval "$ac_cv_use_accel"
7263 if test "$no_cache" != 1; then
7264 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7265 fi
7266
7267 if test "$wxUSE_ACCEL" = yes; then
7268 echo "$as_me:$LINENO: result: yes" >&5
7269echo "${ECHO_T}yes" >&6
7270 else
7271 echo "$as_me:$LINENO: result: no" >&5
7272echo "${ECHO_T}no" >&6
7273 fi
7274
7275
7276 enablestring=
7277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7278echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7279 no_cache=0
7280 # Check whether --enable-button or --disable-button was given.
7281if test "${enable_button+set}" = set; then
7282 enableval="$enable_button"
7283
7284 if test "$enableval" = yes; then
7285 ac_cv_use_button='wxUSE_BUTTON=yes'
7286 else
7287 ac_cv_use_button='wxUSE_BUTTON=no'
7288 fi
7289
7290else
7291
7292 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7293 if test "x$LINE" != x ; then
7294 eval "DEFAULT_$LINE"
7295 else
7296 no_cache=1
7297 fi
7298
7299 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7300
7301fi;
7302
7303 eval "$ac_cv_use_button"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_BUTTON" = yes; then
7309 echo "$as_me:$LINENO: result: yes" >&5
7310echo "${ECHO_T}yes" >&6
7311 else
7312 echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6
7314 fi
7315
7316
7317 enablestring=
7318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7319echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7320 no_cache=0
7321 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7322if test "${enable_bmpbutton+set}" = set; then
7323 enableval="$enable_bmpbutton"
7324
7325 if test "$enableval" = yes; then
7326 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7327 else
7328 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7329 fi
7330
7331else
7332
7333 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7334 if test "x$LINE" != x ; then
7335 eval "DEFAULT_$LINE"
7336 else
7337 no_cache=1
7338 fi
7339
7340 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7341
7342fi;
7343
7344 eval "$ac_cv_use_bmpbutton"
7345 if test "$no_cache" != 1; then
7346 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7347 fi
7348
7349 if test "$wxUSE_BMPBUTTON" = yes; then
7350 echo "$as_me:$LINENO: result: yes" >&5
7351echo "${ECHO_T}yes" >&6
7352 else
7353 echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6
7355 fi
7356
7357
7358 enablestring=
7359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7360echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7361 no_cache=0
7362 # Check whether --enable-calendar or --disable-calendar was given.
7363if test "${enable_calendar+set}" = set; then
7364 enableval="$enable_calendar"
7365
7366 if test "$enableval" = yes; then
7367 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7368 else
7369 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7370 fi
7371
7372else
7373
7374 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7382
7383fi;
7384
7385 eval "$ac_cv_use_calendar"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_CALCTRL" = yes; then
7391 echo "$as_me:$LINENO: result: yes" >&5
7392echo "${ECHO_T}yes" >&6
7393 else
7394 echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
7396 fi
7397
7398
7399 enablestring=
7400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7401echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7402 no_cache=0
7403 # Check whether --enable-caret or --disable-caret was given.
7404if test "${enable_caret+set}" = set; then
7405 enableval="$enable_caret"
7406
7407 if test "$enableval" = yes; then
7408 ac_cv_use_caret='wxUSE_CARET=yes'
7409 else
7410 ac_cv_use_caret='wxUSE_CARET=no'
7411 fi
7412
7413else
7414
7415 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7416 if test "x$LINE" != x ; then
7417 eval "DEFAULT_$LINE"
7418 else
7419 no_cache=1
7420 fi
7421
7422 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7423
7424fi;
7425
7426 eval "$ac_cv_use_caret"
7427 if test "$no_cache" != 1; then
7428 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7429 fi
7430
7431 if test "$wxUSE_CARET" = yes; then
7432 echo "$as_me:$LINENO: result: yes" >&5
7433echo "${ECHO_T}yes" >&6
7434 else
7435 echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6
7437 fi
7438
7439
7440 enablestring=
7441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7442echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7443 no_cache=0
7444 # Check whether --enable-checkbox or --disable-checkbox was given.
7445if test "${enable_checkbox+set}" = set; then
7446 enableval="$enable_checkbox"
7447
7448 if test "$enableval" = yes; then
7449 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7450 else
7451 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7452 fi
7453
7454else
7455
7456 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7457 if test "x$LINE" != x ; then
7458 eval "DEFAULT_$LINE"
7459 else
7460 no_cache=1
7461 fi
7462
7463 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7464
7465fi;
7466
7467 eval "$ac_cv_use_checkbox"
7468 if test "$no_cache" != 1; then
7469 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7470 fi
7471
7472 if test "$wxUSE_CHECKBOX" = yes; then
7473 echo "$as_me:$LINENO: result: yes" >&5
7474echo "${ECHO_T}yes" >&6
7475 else
7476 echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6
7478 fi
7479
7480
7481 enablestring=
7482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7483echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7484 no_cache=0
7485 # Check whether --enable-checklst or --disable-checklst was given.
7486if test "${enable_checklst+set}" = set; then
7487 enableval="$enable_checklst"
7488
7489 if test "$enableval" = yes; then
7490 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7491 else
7492 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7493 fi
7494
7495else
7496
7497 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7498 if test "x$LINE" != x ; then
7499 eval "DEFAULT_$LINE"
7500 else
7501 no_cache=1
7502 fi
7503
7504 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7505
7506fi;
7507
7508 eval "$ac_cv_use_checklst"
7509 if test "$no_cache" != 1; then
7510 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7511 fi
7512
7513 if test "$wxUSE_CHECKLST" = yes; then
7514 echo "$as_me:$LINENO: result: yes" >&5
7515echo "${ECHO_T}yes" >&6
7516 else
7517 echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6
7519 fi
7520
7521
7522 enablestring=
7523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7524echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7525 no_cache=0
7526 # Check whether --enable-choice or --disable-choice was given.
7527if test "${enable_choice+set}" = set; then
7528 enableval="$enable_choice"
7529
7530 if test "$enableval" = yes; then
7531 ac_cv_use_choice='wxUSE_CHOICE=yes'
7532 else
7533 ac_cv_use_choice='wxUSE_CHOICE=no'
7534 fi
7535
7536else
7537
7538 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
7545 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7546
7547fi;
7548
7549 eval "$ac_cv_use_choice"
7550 if test "$no_cache" != 1; then
7551 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7552 fi
7553
7554 if test "$wxUSE_CHOICE" = yes; then
7555 echo "$as_me:$LINENO: result: yes" >&5
7556echo "${ECHO_T}yes" >&6
7557 else
7558 echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6
7560 fi
7561
7562
92bbdbcd
WS
7563 enablestring=
7564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7565echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7566 no_cache=0
7567 # Check whether --enable-choicebook or --disable-choicebook was given.
7568if test "${enable_choicebook+set}" = set; then
7569 enableval="$enable_choicebook"
7570
7571 if test "$enableval" = yes; then
7572 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7573 else
7574 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7575 fi
7576
7577else
7578
7579 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7580 if test "x$LINE" != x ; then
7581 eval "DEFAULT_$LINE"
7582 else
7583 no_cache=1
7584 fi
7585
7586 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7587
7588fi;
7589
7590 eval "$ac_cv_use_choicebook"
7591 if test "$no_cache" != 1; then
7592 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7593 fi
7594
7595 if test "$wxUSE_CHOICEBOOK" = yes; then
7596 echo "$as_me:$LINENO: result: yes" >&5
7597echo "${ECHO_T}yes" >&6
7598 else
7599 echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6
7601 fi
7602
7603
a848cd7e
SC
7604 enablestring=
7605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7606echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7607 no_cache=0
7608 # Check whether --enable-combobox or --disable-combobox was given.
7609if test "${enable_combobox+set}" = set; then
7610 enableval="$enable_combobox"
7611
7612 if test "$enableval" = yes; then
7613 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7614 else
7615 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7616 fi
7617
7618else
7619
7620 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7621 if test "x$LINE" != x ; then
7622 eval "DEFAULT_$LINE"
7623 else
7624 no_cache=1
7625 fi
7626
7627 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7628
7629fi;
7630
7631 eval "$ac_cv_use_combobox"
7632 if test "$no_cache" != 1; then
7633 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7634 fi
7635
7636 if test "$wxUSE_COMBOBOX" = yes; then
7637 echo "$as_me:$LINENO: result: yes" >&5
7638echo "${ECHO_T}yes" >&6
7639 else
7640 echo "$as_me:$LINENO: result: no" >&5
7641echo "${ECHO_T}no" >&6
7642 fi
7643
7644
da98e9be
VZ
7645 enablestring=
7646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7647echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7648 no_cache=0
7649 # Check whether --enable-datepick or --disable-datepick was given.
7650if test "${enable_datepick+set}" = set; then
7651 enableval="$enable_datepick"
7652
7653 if test "$enableval" = yes; then
7654 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7655 else
7656 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7657 fi
7658
7659else
7660
7661 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7662 if test "x$LINE" != x ; then
7663 eval "DEFAULT_$LINE"
7664 else
7665 no_cache=1
7666 fi
7667
7668 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7669
7670fi;
7671
7672 eval "$ac_cv_use_datepick"
7673 if test "$no_cache" != 1; then
7674 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7675 fi
7676
7677 if test "$wxUSE_DATEPICKCTRL" = yes; then
7678 echo "$as_me:$LINENO: result: yes" >&5
7679echo "${ECHO_T}yes" >&6
7680 else
7681 echo "$as_me:$LINENO: result: no" >&5
7682echo "${ECHO_T}no" >&6
7683 fi
7684
7685
a848cd7e
SC
7686 enablestring=
7687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7688echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7689 no_cache=0
7690 # Check whether --enable-display or --disable-display was given.
7691if test "${enable_display+set}" = set; then
7692 enableval="$enable_display"
7693
7694 if test "$enableval" = yes; then
7695 ac_cv_use_display='wxUSE_DISPLAY=yes'
7696 else
7697 ac_cv_use_display='wxUSE_DISPLAY=no'
7698 fi
7699
7700else
7701
7702 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7703 if test "x$LINE" != x ; then
7704 eval "DEFAULT_$LINE"
7705 else
7706 no_cache=1
7707 fi
7708
7709 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7710
7711fi;
7712
7713 eval "$ac_cv_use_display"
7714 if test "$no_cache" != 1; then
7715 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7716 fi
7717
7718 if test "$wxUSE_DISPLAY" = yes; then
7719 echo "$as_me:$LINENO: result: yes" >&5
7720echo "${ECHO_T}yes" >&6
7721 else
7722 echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6
7724 fi
7725
7726
7727 enablestring=
7728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7729echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7730 no_cache=0
7731 # Check whether --enable-gauge or --disable-gauge was given.
7732if test "${enable_gauge+set}" = set; then
7733 enableval="$enable_gauge"
7734
7735 if test "$enableval" = yes; then
7736 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7737 else
7738 ac_cv_use_gauge='wxUSE_GAUGE=no'
7739 fi
7740
7741else
7742
7743 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7744 if test "x$LINE" != x ; then
7745 eval "DEFAULT_$LINE"
7746 else
7747 no_cache=1
7748 fi
7749
7750 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7751
7752fi;
7753
7754 eval "$ac_cv_use_gauge"
7755 if test "$no_cache" != 1; then
7756 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7757 fi
7758
7759 if test "$wxUSE_GAUGE" = yes; then
7760 echo "$as_me:$LINENO: result: yes" >&5
7761echo "${ECHO_T}yes" >&6
7762 else
7763 echo "$as_me:$LINENO: result: no" >&5
7764echo "${ECHO_T}no" >&6
7765 fi
7766
7767
7768 enablestring=
7769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7770echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7771 no_cache=0
7772 # Check whether --enable-grid or --disable-grid was given.
7773if test "${enable_grid+set}" = set; then
7774 enableval="$enable_grid"
7775
7776 if test "$enableval" = yes; then
7777 ac_cv_use_grid='wxUSE_GRID=yes'
7778 else
7779 ac_cv_use_grid='wxUSE_GRID=no'
7780 fi
7781
7782else
7783
7784 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7785 if test "x$LINE" != x ; then
7786 eval "DEFAULT_$LINE"
7787 else
7788 no_cache=1
7789 fi
7790
7791 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7792
7793fi;
7794
7795 eval "$ac_cv_use_grid"
7796 if test "$no_cache" != 1; then
7797 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7798 fi
7799
7800 if test "$wxUSE_GRID" = yes; then
7801 echo "$as_me:$LINENO: result: yes" >&5
7802echo "${ECHO_T}yes" >&6
7803 else
7804 echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6
7806 fi
7807
7808
7809 enablestring=
7810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7811echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7812 no_cache=0
7813 # Check whether --enable-imaglist or --disable-imaglist was given.
7814if test "${enable_imaglist+set}" = set; then
7815 enableval="$enable_imaglist"
7816
7817 if test "$enableval" = yes; then
7818 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7819 else
7820 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7821 fi
7822
7823else
7824
7825 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7826 if test "x$LINE" != x ; then
7827 eval "DEFAULT_$LINE"
7828 else
7829 no_cache=1
7830 fi
7831
7832 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7833
7834fi;
7835
7836 eval "$ac_cv_use_imaglist"
7837 if test "$no_cache" != 1; then
7838 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7839 fi
7840
7841 if test "$wxUSE_IMAGLIST" = yes; then
7842 echo "$as_me:$LINENO: result: yes" >&5
7843echo "${ECHO_T}yes" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846echo "${ECHO_T}no" >&6
7847 fi
7848
7849
7850 enablestring=
7851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7852echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7853 no_cache=0
7854 # Check whether --enable-listbook or --disable-listbook was given.
7855if test "${enable_listbook+set}" = set; then
7856 enableval="$enable_listbook"
7857
7858 if test "$enableval" = yes; then
7859 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7860 else
7861 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7862 fi
7863
7864else
7865
7866 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7874
7875fi;
7876
7877 eval "$ac_cv_use_listbook"
7878 if test "$no_cache" != 1; then
7879 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7880 fi
7881
7882 if test "$wxUSE_LISTBOOK" = yes; then
7883 echo "$as_me:$LINENO: result: yes" >&5
7884echo "${ECHO_T}yes" >&6
7885 else
7886 echo "$as_me:$LINENO: result: no" >&5
7887echo "${ECHO_T}no" >&6
7888 fi
7889
7890
7891 enablestring=
7892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7893echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7894 no_cache=0
7895 # Check whether --enable-listbox or --disable-listbox was given.
7896if test "${enable_listbox+set}" = set; then
7897 enableval="$enable_listbox"
7898
7899 if test "$enableval" = yes; then
7900 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7901 else
7902 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7903 fi
7904
7905else
7906
7907 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7908 if test "x$LINE" != x ; then
7909 eval "DEFAULT_$LINE"
7910 else
7911 no_cache=1
7912 fi
7913
7914 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7915
7916fi;
7917
7918 eval "$ac_cv_use_listbox"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_LISTBOX" = yes; then
7924 echo "$as_me:$LINENO: result: yes" >&5
7925echo "${ECHO_T}yes" >&6
7926 else
7927 echo "$as_me:$LINENO: result: no" >&5
7928echo "${ECHO_T}no" >&6
7929 fi
7930
7931
7932 enablestring=
7933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7934echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7935 no_cache=0
7936 # Check whether --enable-listctrl or --disable-listctrl was given.
7937if test "${enable_listctrl+set}" = set; then
7938 enableval="$enable_listctrl"
7939
7940 if test "$enableval" = yes; then
7941 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7942 else
7943 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7944 fi
7945
7946else
7947
7948 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7949 if test "x$LINE" != x ; then
7950 eval "DEFAULT_$LINE"
7951 else
7952 no_cache=1
7953 fi
7954
7955 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7956
7957fi;
7958
7959 eval "$ac_cv_use_listctrl"
7960 if test "$no_cache" != 1; then
7961 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7962 fi
7963
7964 if test "$wxUSE_LISTCTRL" = yes; then
7965 echo "$as_me:$LINENO: result: yes" >&5
7966echo "${ECHO_T}yes" >&6
7967 else
7968 echo "$as_me:$LINENO: result: no" >&5
7969echo "${ECHO_T}no" >&6
7970 fi
7971
7972
7973 enablestring=
7974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7975echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7976 no_cache=0
7977 # Check whether --enable-notebook or --disable-notebook was given.
7978if test "${enable_notebook+set}" = set; then
7979 enableval="$enable_notebook"
7980
7981 if test "$enableval" = yes; then
7982 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7983 else
7984 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7985 fi
7986
7987else
7988
7989 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7990 if test "x$LINE" != x ; then
7991 eval "DEFAULT_$LINE"
7992 else
7993 no_cache=1
7994 fi
7995
7996 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7997
7998fi;
7999
8000 eval "$ac_cv_use_notebook"
8001 if test "$no_cache" != 1; then
8002 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8003 fi
8004
8005 if test "$wxUSE_NOTEBOOK" = yes; then
8006 echo "$as_me:$LINENO: result: yes" >&5
8007echo "${ECHO_T}yes" >&6
8008 else
8009 echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6
8011 fi
8012
8013
8014 enablestring=
8015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8016echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8017 no_cache=0
8018 # Check whether --enable-radiobox or --disable-radiobox was given.
8019if test "${enable_radiobox+set}" = set; then
8020 enableval="$enable_radiobox"
8021
8022 if test "$enableval" = yes; then
8023 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8024 else
8025 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8026 fi
8027
8028else
8029
8030 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8031 if test "x$LINE" != x ; then
8032 eval "DEFAULT_$LINE"
8033 else
8034 no_cache=1
8035 fi
8036
8037 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8038
8039fi;
8040
8041 eval "$ac_cv_use_radiobox"
8042 if test "$no_cache" != 1; then
8043 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8044 fi
8045
8046 if test "$wxUSE_RADIOBOX" = yes; then
8047 echo "$as_me:$LINENO: result: yes" >&5
8048echo "${ECHO_T}yes" >&6
8049 else
8050 echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6
8052 fi
8053
8054
8055 enablestring=
8056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8057echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8058 no_cache=0
8059 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8060if test "${enable_radiobtn+set}" = set; then
8061 enableval="$enable_radiobtn"
8062
8063 if test "$enableval" = yes; then
8064 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8065 else
8066 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8067 fi
8068
8069else
8070
8071 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8072 if test "x$LINE" != x ; then
8073 eval "DEFAULT_$LINE"
8074 else
8075 no_cache=1
8076 fi
8077
8078 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8079
8080fi;
8081
8082 eval "$ac_cv_use_radiobtn"
8083 if test "$no_cache" != 1; then
8084 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8085 fi
8086
8087 if test "$wxUSE_RADIOBTN" = yes; then
8088 echo "$as_me:$LINENO: result: yes" >&5
8089echo "${ECHO_T}yes" >&6
8090 else
8091 echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6
8093 fi
8094
8095
8096 enablestring=
8097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8098echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8099 no_cache=0
8100 # Check whether --enable-sash or --disable-sash was given.
8101if test "${enable_sash+set}" = set; then
8102 enableval="$enable_sash"
8103
8104 if test "$enableval" = yes; then
8105 ac_cv_use_sash='wxUSE_SASH=yes'
8106 else
8107 ac_cv_use_sash='wxUSE_SASH=no'
8108 fi
8109
8110else
8111
8112 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8120
8121fi;
8122
8123 eval "$ac_cv_use_sash"
8124 if test "$no_cache" != 1; then
8125 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8126 fi
8127
8128 if test "$wxUSE_SASH" = yes; then
8129 echo "$as_me:$LINENO: result: yes" >&5
8130echo "${ECHO_T}yes" >&6
8131 else
8132 echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6
8134 fi
8135
8136
8137 enablestring=
8138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8139echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8140 no_cache=0
8141 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8142if test "${enable_scrollbar+set}" = set; then
8143 enableval="$enable_scrollbar"
8144
8145 if test "$enableval" = yes; then
8146 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8147 else
8148 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8149 fi
8150
8151else
8152
8153 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8154 if test "x$LINE" != x ; then
8155 eval "DEFAULT_$LINE"
8156 else
8157 no_cache=1
8158 fi
8159
8160 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8161
8162fi;
8163
8164 eval "$ac_cv_use_scrollbar"
8165 if test "$no_cache" != 1; then
8166 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8167 fi
8168
8169 if test "$wxUSE_SCROLLBAR" = yes; then
8170 echo "$as_me:$LINENO: result: yes" >&5
8171echo "${ECHO_T}yes" >&6
8172 else
8173 echo "$as_me:$LINENO: result: no" >&5
8174echo "${ECHO_T}no" >&6
8175 fi
8176
8177
8178 enablestring=
8179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8180echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8181 no_cache=0
8182 # Check whether --enable-slider or --disable-slider was given.
8183if test "${enable_slider+set}" = set; then
8184 enableval="$enable_slider"
8185
8186 if test "$enableval" = yes; then
8187 ac_cv_use_slider='wxUSE_SLIDER=yes'
8188 else
8189 ac_cv_use_slider='wxUSE_SLIDER=no'
8190 fi
8191
8192else
8193
8194 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8195 if test "x$LINE" != x ; then
8196 eval "DEFAULT_$LINE"
8197 else
8198 no_cache=1
8199 fi
8200
8201 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8202
8203fi;
8204
8205 eval "$ac_cv_use_slider"
8206 if test "$no_cache" != 1; then
8207 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8208 fi
8209
8210 if test "$wxUSE_SLIDER" = yes; then
8211 echo "$as_me:$LINENO: result: yes" >&5
8212echo "${ECHO_T}yes" >&6
8213 else
8214 echo "$as_me:$LINENO: result: no" >&5
8215echo "${ECHO_T}no" >&6
8216 fi
8217
8218
8219 enablestring=
8220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8221echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8222 no_cache=0
8223 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8224if test "${enable_spinbtn+set}" = set; then
8225 enableval="$enable_spinbtn"
8226
8227 if test "$enableval" = yes; then
8228 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8229 else
8230 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8231 fi
8232
8233else
8234
8235 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8236 if test "x$LINE" != x ; then
8237 eval "DEFAULT_$LINE"
8238 else
8239 no_cache=1
8240 fi
8241
8242 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8243
8244fi;
8245
8246 eval "$ac_cv_use_spinbtn"
8247 if test "$no_cache" != 1; then
8248 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8249 fi
8250
8251 if test "$wxUSE_SPINBTN" = yes; then
8252 echo "$as_me:$LINENO: result: yes" >&5
8253echo "${ECHO_T}yes" >&6
8254 else
8255 echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6
8257 fi
8258
8259
8260 enablestring=
8261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8262echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8263 no_cache=0
8264 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8265if test "${enable_spinctrl+set}" = set; then
8266 enableval="$enable_spinctrl"
8267
8268 if test "$enableval" = yes; then
8269 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8270 else
8271 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8272 fi
8273
8274else
8275
8276 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8277 if test "x$LINE" != x ; then
8278 eval "DEFAULT_$LINE"
8279 else
8280 no_cache=1
8281 fi
8282
8283 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8284
8285fi;
8286
8287 eval "$ac_cv_use_spinctrl"
8288 if test "$no_cache" != 1; then
8289 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8290 fi
8291
8292 if test "$wxUSE_SPINCTRL" = yes; then
8293 echo "$as_me:$LINENO: result: yes" >&5
8294echo "${ECHO_T}yes" >&6
8295 else
8296 echo "$as_me:$LINENO: result: no" >&5
8297echo "${ECHO_T}no" >&6
8298 fi
8299
8300
8301 enablestring=
8302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8303echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8304 no_cache=0
8305 # Check whether --enable-splitter or --disable-splitter was given.
8306if test "${enable_splitter+set}" = set; then
8307 enableval="$enable_splitter"
8308
8309 if test "$enableval" = yes; then
8310 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8311 else
8312 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8313 fi
8314
8315else
8316
8317 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8318 if test "x$LINE" != x ; then
8319 eval "DEFAULT_$LINE"
8320 else
8321 no_cache=1
8322 fi
8323
8324 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8325
8326fi;
8327
8328 eval "$ac_cv_use_splitter"
8329 if test "$no_cache" != 1; then
8330 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8331 fi
8332
8333 if test "$wxUSE_SPLITTER" = yes; then
8334 echo "$as_me:$LINENO: result: yes" >&5
8335echo "${ECHO_T}yes" >&6
8336 else
8337 echo "$as_me:$LINENO: result: no" >&5
8338echo "${ECHO_T}no" >&6
8339 fi
8340
8341
8342 enablestring=
8343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8344echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8345 no_cache=0
8346 # Check whether --enable-statbmp or --disable-statbmp was given.
8347if test "${enable_statbmp+set}" = set; then
8348 enableval="$enable_statbmp"
8349
8350 if test "$enableval" = yes; then
8351 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8352 else
8353 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8354 fi
8355
8356else
8357
8358 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8359 if test "x$LINE" != x ; then
8360 eval "DEFAULT_$LINE"
8361 else
8362 no_cache=1
8363 fi
8364
8365 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8366
8367fi;
8368
8369 eval "$ac_cv_use_statbmp"
8370 if test "$no_cache" != 1; then
8371 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8372 fi
8373
8374 if test "$wxUSE_STATBMP" = yes; then
8375 echo "$as_me:$LINENO: result: yes" >&5
8376echo "${ECHO_T}yes" >&6
8377 else
8378 echo "$as_me:$LINENO: result: no" >&5
8379echo "${ECHO_T}no" >&6
8380 fi
8381
8382
8383 enablestring=
8384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8385echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8386 no_cache=0
8387 # Check whether --enable-statbox or --disable-statbox was given.
8388if test "${enable_statbox+set}" = set; then
8389 enableval="$enable_statbox"
8390
8391 if test "$enableval" = yes; then
8392 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8393 else
8394 ac_cv_use_statbox='wxUSE_STATBOX=no'
8395 fi
8396
8397else
8398
8399 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8400 if test "x$LINE" != x ; then
8401 eval "DEFAULT_$LINE"
8402 else
8403 no_cache=1
8404 fi
8405
8406 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8407
8408fi;
8409
8410 eval "$ac_cv_use_statbox"
8411 if test "$no_cache" != 1; then
8412 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8413 fi
8414
8415 if test "$wxUSE_STATBOX" = yes; then
8416 echo "$as_me:$LINENO: result: yes" >&5
8417echo "${ECHO_T}yes" >&6
8418 else
8419 echo "$as_me:$LINENO: result: no" >&5
8420echo "${ECHO_T}no" >&6
8421 fi
8422
8423
8424 enablestring=
8425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8426echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8427 no_cache=0
8428 # Check whether --enable-statline or --disable-statline was given.
8429if test "${enable_statline+set}" = set; then
8430 enableval="$enable_statline"
8431
8432 if test "$enableval" = yes; then
8433 ac_cv_use_statline='wxUSE_STATLINE=yes'
8434 else
8435 ac_cv_use_statline='wxUSE_STATLINE=no'
8436 fi
8437
8438else
8439
8440 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8441 if test "x$LINE" != x ; then
8442 eval "DEFAULT_$LINE"
8443 else
8444 no_cache=1
8445 fi
8446
8447 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8448
8449fi;
8450
8451 eval "$ac_cv_use_statline"
8452 if test "$no_cache" != 1; then
8453 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8454 fi
8455
8456 if test "$wxUSE_STATLINE" = yes; then
8457 echo "$as_me:$LINENO: result: yes" >&5
8458echo "${ECHO_T}yes" >&6
8459 else
8460 echo "$as_me:$LINENO: result: no" >&5
8461echo "${ECHO_T}no" >&6
8462 fi
8463
8464
8465 enablestring=
8466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8467echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8468 no_cache=0
8469 # Check whether --enable-stattext or --disable-stattext was given.
8470if test "${enable_stattext+set}" = set; then
8471 enableval="$enable_stattext"
8472
8473 if test "$enableval" = yes; then
8474 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8475 else
8476 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8477 fi
8478
8479else
8480
8481 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8482 if test "x$LINE" != x ; then
8483 eval "DEFAULT_$LINE"
8484 else
8485 no_cache=1
8486 fi
8487
8488 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8489
8490fi;
8491
8492 eval "$ac_cv_use_stattext"
8493 if test "$no_cache" != 1; then
8494 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8495 fi
8496
8497 if test "$wxUSE_STATTEXT" = yes; then
8498 echo "$as_me:$LINENO: result: yes" >&5
8499echo "${ECHO_T}yes" >&6
8500 else
8501 echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6
8503 fi
8504
8505
8506 enablestring=
8507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8508echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8509 no_cache=0
8510 # Check whether --enable-statusbar or --disable-statusbar was given.
8511if test "${enable_statusbar+set}" = set; then
8512 enableval="$enable_statusbar"
8513
8514 if test "$enableval" = yes; then
8515 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8516 else
8517 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8518 fi
8519
8520else
8521
8522 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8523 if test "x$LINE" != x ; then
8524 eval "DEFAULT_$LINE"
8525 else
8526 no_cache=1
8527 fi
8528
8529 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8530
8531fi;
8532
8533 eval "$ac_cv_use_statusbar"
8534 if test "$no_cache" != 1; then
8535 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8536 fi
8537
8538 if test "$wxUSE_STATUSBAR" = yes; then
8539 echo "$as_me:$LINENO: result: yes" >&5
8540echo "${ECHO_T}yes" >&6
8541 else
8542 echo "$as_me:$LINENO: result: no" >&5
8543echo "${ECHO_T}no" >&6
8544 fi
8545
8546
8547 enablestring=
8548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8549echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8550 no_cache=0
8551 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8552if test "${enable_tabdialog+set}" = set; then
8553 enableval="$enable_tabdialog"
8554
8555 if test "$enableval" = yes; then
8556 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8557 else
8558 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8559 fi
8560
8561else
8562
8563 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8564 if test "x$LINE" != x ; then
8565 eval "DEFAULT_$LINE"
8566 else
8567 no_cache=1
8568 fi
8569
8570 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8571
8572fi;
8573
8574 eval "$ac_cv_use_tabdialog"
8575 if test "$no_cache" != 1; then
8576 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8577 fi
8578
8579 if test "$wxUSE_TABDIALOG" = yes; then
8580 echo "$as_me:$LINENO: result: yes" >&5
8581echo "${ECHO_T}yes" >&6
8582 else
8583 echo "$as_me:$LINENO: result: no" >&5
8584echo "${ECHO_T}no" >&6
8585 fi
8586
8587
8588 enablestring=
8589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8590echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8591 no_cache=0
8592 # Check whether --enable-textctrl or --disable-textctrl was given.
8593if test "${enable_textctrl+set}" = set; then
8594 enableval="$enable_textctrl"
8595
8596 if test "$enableval" = yes; then
8597 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8598 else
8599 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8600 fi
8601
8602else
8603
8604 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8605 if test "x$LINE" != x ; then
8606 eval "DEFAULT_$LINE"
8607 else
8608 no_cache=1
8609 fi
8610
8611 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8612
8613fi;
8614
8615 eval "$ac_cv_use_textctrl"
8616 if test "$no_cache" != 1; then
8617 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8618 fi
8619
8620 if test "$wxUSE_TEXTCTRL" = yes; then
8621 echo "$as_me:$LINENO: result: yes" >&5
8622echo "${ECHO_T}yes" >&6
8623 else
8624 echo "$as_me:$LINENO: result: no" >&5
8625echo "${ECHO_T}no" >&6
8626 fi
8627
8628
8629 enablestring=
8630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8631echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8632 no_cache=0
8633 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8634if test "${enable_togglebtn+set}" = set; then
8635 enableval="$enable_togglebtn"
8636
8637 if test "$enableval" = yes; then
8638 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8639 else
8640 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8641 fi
8642
8643else
8644
8645 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8646 if test "x$LINE" != x ; then
8647 eval "DEFAULT_$LINE"
8648 else
8649 no_cache=1
8650 fi
8651
8652 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8653
8654fi;
8655
8656 eval "$ac_cv_use_togglebtn"
8657 if test "$no_cache" != 1; then
8658 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8659 fi
8660
8661 if test "$wxUSE_TOGGLEBTN" = yes; then
8662 echo "$as_me:$LINENO: result: yes" >&5
8663echo "${ECHO_T}yes" >&6
8664 else
8665 echo "$as_me:$LINENO: result: no" >&5
8666echo "${ECHO_T}no" >&6
8667 fi
8668
8669
8670 enablestring=
8671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8672echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8673 no_cache=0
8674 # Check whether --enable-toolbar or --disable-toolbar was given.
8675if test "${enable_toolbar+set}" = set; then
8676 enableval="$enable_toolbar"
8677
8678 if test "$enableval" = yes; then
8679 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8680 else
8681 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8682 fi
8683
8684else
8685
8686 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8687 if test "x$LINE" != x ; then
8688 eval "DEFAULT_$LINE"
8689 else
8690 no_cache=1
8691 fi
8692
8693 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8694
8695fi;
8696
8697 eval "$ac_cv_use_toolbar"
8698 if test "$no_cache" != 1; then
8699 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8700 fi
8701
8702 if test "$wxUSE_TOOLBAR" = yes; then
8703 echo "$as_me:$LINENO: result: yes" >&5
8704echo "${ECHO_T}yes" >&6
8705 else
8706 echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6
8708 fi
8709
8710
8711 enablestring=
8712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8713echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8714 no_cache=0
8715 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8716if test "${enable_tbarnative+set}" = set; then
8717 enableval="$enable_tbarnative"
8718
8719 if test "$enableval" = yes; then
8720 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8721 else
8722 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8723 fi
8724
8725else
8726
8727 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8728 if test "x$LINE" != x ; then
8729 eval "DEFAULT_$LINE"
8730 else
8731 no_cache=1
8732 fi
8733
8734 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8735
8736fi;
8737
8738 eval "$ac_cv_use_tbarnative"
8739 if test "$no_cache" != 1; then
8740 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8741 fi
8742
8743 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8744 echo "$as_me:$LINENO: result: yes" >&5
8745echo "${ECHO_T}yes" >&6
8746 else
8747 echo "$as_me:$LINENO: result: no" >&5
8748echo "${ECHO_T}no" >&6
8749 fi
8750
8751
8752 enablestring=
8753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8754echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8755 no_cache=0
8756 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8757if test "${enable_tbarsmpl+set}" = set; then
8758 enableval="$enable_tbarsmpl"
8759
8760 if test "$enableval" = yes; then
8761 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8762 else
8763 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8764 fi
8765
8766else
8767
8768 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8769 if test "x$LINE" != x ; then
8770 eval "DEFAULT_$LINE"
8771 else
8772 no_cache=1
8773 fi
8774
8775 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8776
8777fi;
8778
8779 eval "$ac_cv_use_tbarsmpl"
8780 if test "$no_cache" != 1; then
8781 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8782 fi
8783
8784 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8785 echo "$as_me:$LINENO: result: yes" >&5
8786echo "${ECHO_T}yes" >&6
8787 else
8788 echo "$as_me:$LINENO: result: no" >&5
8789echo "${ECHO_T}no" >&6
8790 fi
8791
8792
8793 enablestring=
8794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8795echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8796 no_cache=0
8797 # Check whether --enable-treectrl or --disable-treectrl was given.
8798if test "${enable_treectrl+set}" = set; then
8799 enableval="$enable_treectrl"
8800
8801 if test "$enableval" = yes; then
8802 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8803 else
8804 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8805 fi
8806
8807else
8808
8809 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8810 if test "x$LINE" != x ; then
8811 eval "DEFAULT_$LINE"
8812 else
8813 no_cache=1
8814 fi
8815
8816 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8817
8818fi;
8819
8820 eval "$ac_cv_use_treectrl"
8821 if test "$no_cache" != 1; then
8822 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8823 fi
8824
8825 if test "$wxUSE_TREECTRL" = yes; then
8826 echo "$as_me:$LINENO: result: yes" >&5
8827echo "${ECHO_T}yes" >&6
8828 else
8829 echo "$as_me:$LINENO: result: no" >&5
8830echo "${ECHO_T}no" >&6
8831 fi
8832
8833
8834 enablestring=
8835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8836echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8837 no_cache=0
8838 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8839if test "${enable_tipwindow+set}" = set; then
8840 enableval="$enable_tipwindow"
8841
8842 if test "$enableval" = yes; then
8843 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8844 else
8845 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8846 fi
8847
8848else
8849
8850 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8851 if test "x$LINE" != x ; then
8852 eval "DEFAULT_$LINE"
8853 else
8854 no_cache=1
8855 fi
8856
8857 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8858
8859fi;
8860
8861 eval "$ac_cv_use_tipwindow"
8862 if test "$no_cache" != 1; then
8863 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8864 fi
8865
8866 if test "$wxUSE_TIPWINDOW" = yes; then
8867 echo "$as_me:$LINENO: result: yes" >&5
8868echo "${ECHO_T}yes" >&6
8869 else
8870 echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6
8872 fi
8873
8874
8875 enablestring=
8876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8877echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8878 no_cache=0
8879 # Check whether --enable-popupwin or --disable-popupwin was given.
8880if test "${enable_popupwin+set}" = set; then
8881 enableval="$enable_popupwin"
8882
8883 if test "$enableval" = yes; then
8884 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8885 else
8886 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8887 fi
8888
8889else
8890
8891 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8892 if test "x$LINE" != x ; then
8893 eval "DEFAULT_$LINE"
8894 else
8895 no_cache=1
8896 fi
8897
8898 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8899
8900fi;
8901
8902 eval "$ac_cv_use_popupwin"
8903 if test "$no_cache" != 1; then
8904 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8905 fi
8906
8907 if test "$wxUSE_POPUPWIN" = yes; then
8908 echo "$as_me:$LINENO: result: yes" >&5
8909echo "${ECHO_T}yes" >&6
8910 else
8911 echo "$as_me:$LINENO: result: no" >&5
8912echo "${ECHO_T}no" >&6
8913 fi
8914
8915
8916
8917
8918 enablestring=
8919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8920echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8921 no_cache=0
8922 # Check whether --enable-commondlg or --disable-commondlg was given.
8923if test "${enable_commondlg+set}" = set; then
8924 enableval="$enable_commondlg"
8925
8926 if test "$enableval" = yes; then
8927 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8928 else
8929 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8930 fi
8931
8932else
8933
8934 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8935 if test "x$LINE" != x ; then
8936 eval "DEFAULT_$LINE"
8937 else
8938 no_cache=1
8939 fi
8940
8941 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8942
8943fi;
8944
8945 eval "$ac_cv_use_commondlg"
8946 if test "$no_cache" != 1; then
8947 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8948 fi
8949
8950 if test "$wxUSE_COMMONDLGS" = yes; then
8951 echo "$as_me:$LINENO: result: yes" >&5
8952echo "${ECHO_T}yes" >&6
8953 else
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
8956 fi
8957
8958
8959 enablestring=
8960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8961echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8962 no_cache=0
8963 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8964if test "${enable_choicedlg+set}" = set; then
8965 enableval="$enable_choicedlg"
8966
8967 if test "$enableval" = yes; then
8968 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8969 else
8970 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8971 fi
8972
8973else
8974
8975 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8976 if test "x$LINE" != x ; then
8977 eval "DEFAULT_$LINE"
8978 else
8979 no_cache=1
8980 fi
8981
8982 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8983
8984fi;
8985
8986 eval "$ac_cv_use_choicedlg"
8987 if test "$no_cache" != 1; then
8988 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8989 fi
8990
8991 if test "$wxUSE_CHOICEDLG" = yes; then
8992 echo "$as_me:$LINENO: result: yes" >&5
8993echo "${ECHO_T}yes" >&6
8994 else
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997 fi
8998
8999
9000 enablestring=
9001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9002echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9003 no_cache=0
9004 # Check whether --enable-coldlg or --disable-coldlg was given.
9005if test "${enable_coldlg+set}" = set; then
9006 enableval="$enable_coldlg"
9007
9008 if test "$enableval" = yes; then
9009 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9010 else
9011 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9012 fi
9013
9014else
9015
9016 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9017 if test "x$LINE" != x ; then
9018 eval "DEFAULT_$LINE"
9019 else
9020 no_cache=1
9021 fi
9022
9023 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9024
9025fi;
9026
9027 eval "$ac_cv_use_coldlg"
9028 if test "$no_cache" != 1; then
9029 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9030 fi
9031
9032 if test "$wxUSE_COLOURDLG" = yes; then
9033 echo "$as_me:$LINENO: result: yes" >&5
9034echo "${ECHO_T}yes" >&6
9035 else
9036 echo "$as_me:$LINENO: result: no" >&5
9037echo "${ECHO_T}no" >&6
9038 fi
9039
9040
9041 enablestring=
9042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9043echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9044 no_cache=0
9045 # Check whether --enable-filedlg or --disable-filedlg was given.
9046if test "${enable_filedlg+set}" = set; then
9047 enableval="$enable_filedlg"
9048
9049 if test "$enableval" = yes; then
9050 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9051 else
9052 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9053 fi
9054
9055else
9056
9057 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9058 if test "x$LINE" != x ; then
9059 eval "DEFAULT_$LINE"
9060 else
9061 no_cache=1
9062 fi
9063
9064 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9065
9066fi;
9067
9068 eval "$ac_cv_use_filedlg"
9069 if test "$no_cache" != 1; then
9070 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9071 fi
9072
9073 if test "$wxUSE_FILEDLG" = yes; then
9074 echo "$as_me:$LINENO: result: yes" >&5
9075echo "${ECHO_T}yes" >&6
9076 else
9077 echo "$as_me:$LINENO: result: no" >&5
9078echo "${ECHO_T}no" >&6
9079 fi
9080
9081
9082 enablestring=
9083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9084echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9085 no_cache=0
9086 # Check whether --enable-finddlg or --disable-finddlg was given.
9087if test "${enable_finddlg+set}" = set; then
9088 enableval="$enable_finddlg"
9089
9090 if test "$enableval" = yes; then
9091 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9092 else
9093 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9094 fi
9095
9096else
9097
9098 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9099 if test "x$LINE" != x ; then
9100 eval "DEFAULT_$LINE"
9101 else
9102 no_cache=1
9103 fi
9104
9105 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9106
9107fi;
9108
9109 eval "$ac_cv_use_finddlg"
9110 if test "$no_cache" != 1; then
9111 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9112 fi
9113
9114 if test "$wxUSE_FINDREPLDLG" = yes; then
9115 echo "$as_me:$LINENO: result: yes" >&5
9116echo "${ECHO_T}yes" >&6
9117 else
9118 echo "$as_me:$LINENO: result: no" >&5
9119echo "${ECHO_T}no" >&6
9120 fi
9121
9122
9123 enablestring=
9124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9125echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9126 no_cache=0
9127 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9128if test "${enable_fontdlg+set}" = set; then
9129 enableval="$enable_fontdlg"
9130
9131 if test "$enableval" = yes; then
9132 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9133 else
9134 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9135 fi
9136
9137else
9138
9139 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9140 if test "x$LINE" != x ; then
9141 eval "DEFAULT_$LINE"
9142 else
9143 no_cache=1
9144 fi
9145
9146 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9147
9148fi;
9149
9150 eval "$ac_cv_use_fontdlg"
9151 if test "$no_cache" != 1; then
9152 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9153 fi
9154
9155 if test "$wxUSE_FONTDLG" = yes; then
9156 echo "$as_me:$LINENO: result: yes" >&5
9157echo "${ECHO_T}yes" >&6
9158 else
9159 echo "$as_me:$LINENO: result: no" >&5
9160echo "${ECHO_T}no" >&6
9161 fi
9162
9163
9164 enablestring=
9165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9166echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9167 no_cache=0
9168 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9169if test "${enable_dirdlg+set}" = set; then
9170 enableval="$enable_dirdlg"
9171
9172 if test "$enableval" = yes; then
9173 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9174 else
9175 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9176 fi
9177
9178else
9179
9180 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9181 if test "x$LINE" != x ; then
9182 eval "DEFAULT_$LINE"
9183 else
9184 no_cache=1
9185 fi
9186
9187 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9188
9189fi;
9190
9191 eval "$ac_cv_use_dirdlg"
9192 if test "$no_cache" != 1; then
9193 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9194 fi
9195
9196 if test "$wxUSE_DIRDLG" = yes; then
9197 echo "$as_me:$LINENO: result: yes" >&5
9198echo "${ECHO_T}yes" >&6
9199 else
9200 echo "$as_me:$LINENO: result: no" >&5
9201echo "${ECHO_T}no" >&6
9202 fi
9203
9204
9205 enablestring=
9206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9207echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9208 no_cache=0
9209 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9210if test "${enable_msgdlg+set}" = set; then
9211 enableval="$enable_msgdlg"
9212
9213 if test "$enableval" = yes; then
9214 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9215 else
9216 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9217 fi
9218
9219else
9220
9221 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9222 if test "x$LINE" != x ; then
9223 eval "DEFAULT_$LINE"
9224 else
9225 no_cache=1
9226 fi
9227
9228 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9229
9230fi;
9231
9232 eval "$ac_cv_use_msgdlg"
9233 if test "$no_cache" != 1; then
9234 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9235 fi
9236
9237 if test "$wxUSE_MSGDLG" = yes; then
9238 echo "$as_me:$LINENO: result: yes" >&5
9239echo "${ECHO_T}yes" >&6
9240 else
9241 echo "$as_me:$LINENO: result: no" >&5
9242echo "${ECHO_T}no" >&6
9243 fi
9244
9245
9246 enablestring=
9247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9248echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9249 no_cache=0
9250 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9251if test "${enable_numberdlg+set}" = set; then
9252 enableval="$enable_numberdlg"
9253
9254 if test "$enableval" = yes; then
9255 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9256 else
9257 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9258 fi
9259
9260else
9261
9262 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9263 if test "x$LINE" != x ; then
9264 eval "DEFAULT_$LINE"
9265 else
9266 no_cache=1
9267 fi
9268
9269 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9270
9271fi;
9272
9273 eval "$ac_cv_use_numberdlg"
9274 if test "$no_cache" != 1; then
9275 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9276 fi
9277
9278 if test "$wxUSE_NUMBERDLG" = yes; then
9279 echo "$as_me:$LINENO: result: yes" >&5
9280echo "${ECHO_T}yes" >&6
9281 else
9282 echo "$as_me:$LINENO: result: no" >&5
9283echo "${ECHO_T}no" >&6
9284 fi
9285
9286
9287 enablestring=
9288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9289echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9290 no_cache=0
9291 # Check whether --enable-splash or --disable-splash was given.
9292if test "${enable_splash+set}" = set; then
9293 enableval="$enable_splash"
9294
9295 if test "$enableval" = yes; then
9296 ac_cv_use_splash='wxUSE_SPLASH=yes'
9297 else
9298 ac_cv_use_splash='wxUSE_SPLASH=no'
9299 fi
9300
9301else
9302
9303 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9304 if test "x$LINE" != x ; then
9305 eval "DEFAULT_$LINE"
9306 else
9307 no_cache=1
9308 fi
9309
9310 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9311
9312fi;
9313
9314 eval "$ac_cv_use_splash"
9315 if test "$no_cache" != 1; then
9316 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9317 fi
9318
9319 if test "$wxUSE_SPLASH" = yes; then
9320 echo "$as_me:$LINENO: result: yes" >&5
9321echo "${ECHO_T}yes" >&6
9322 else
9323 echo "$as_me:$LINENO: result: no" >&5
9324echo "${ECHO_T}no" >&6
9325 fi
9326
9327
9328 enablestring=
9329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9330echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9331 no_cache=0
9332 # Check whether --enable-textdlg or --disable-textdlg was given.
9333if test "${enable_textdlg+set}" = set; then
9334 enableval="$enable_textdlg"
9335
9336 if test "$enableval" = yes; then
9337 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9338 else
9339 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9340 fi
9341
9342else
9343
9344 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9345 if test "x$LINE" != x ; then
9346 eval "DEFAULT_$LINE"
9347 else
9348 no_cache=1
9349 fi
9350
9351 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9352
9353fi;
9354
9355 eval "$ac_cv_use_textdlg"
9356 if test "$no_cache" != 1; then
9357 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9358 fi
9359
9360 if test "$wxUSE_TEXTDLG" = yes; then
9361 echo "$as_me:$LINENO: result: yes" >&5
9362echo "${ECHO_T}yes" >&6
9363 else
9364 echo "$as_me:$LINENO: result: no" >&5
9365echo "${ECHO_T}no" >&6
9366 fi
9367
9368
9369 enablestring=
9370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9371echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9372 no_cache=0
9373 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9374if test "${enable_tipdlg+set}" = set; then
9375 enableval="$enable_tipdlg"
9376
9377 if test "$enableval" = yes; then
9378 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9379 else
9380 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9381 fi
9382
9383else
9384
9385 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9386 if test "x$LINE" != x ; then
9387 eval "DEFAULT_$LINE"
9388 else
9389 no_cache=1
9390 fi
9391
9392 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9393
9394fi;
9395
9396 eval "$ac_cv_use_tipdlg"
9397 if test "$no_cache" != 1; then
9398 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9399 fi
9400
9401 if test "$wxUSE_STARTUP_TIPS" = yes; then
9402 echo "$as_me:$LINENO: result: yes" >&5
9403echo "${ECHO_T}yes" >&6
9404 else
9405 echo "$as_me:$LINENO: result: no" >&5
9406echo "${ECHO_T}no" >&6
9407 fi
9408
9409
9410 enablestring=
9411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9412echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9413 no_cache=0
9414 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9415if test "${enable_progressdlg+set}" = set; then
9416 enableval="$enable_progressdlg"
9417
9418 if test "$enableval" = yes; then
9419 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9420 else
9421 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9422 fi
9423
9424else
9425
9426 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9427 if test "x$LINE" != x ; then
9428 eval "DEFAULT_$LINE"
9429 else
9430 no_cache=1
9431 fi
9432
9433 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9434
9435fi;
9436
9437 eval "$ac_cv_use_progressdlg"
9438 if test "$no_cache" != 1; then
9439 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9440 fi
9441
9442 if test "$wxUSE_PROGRESSDLG" = yes; then
9443 echo "$as_me:$LINENO: result: yes" >&5
9444echo "${ECHO_T}yes" >&6
9445 else
9446 echo "$as_me:$LINENO: result: no" >&5
9447echo "${ECHO_T}no" >&6
9448 fi
9449
9450
9451 enablestring=
9452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9453echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9454 no_cache=0
9455 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9456if test "${enable_wizarddlg+set}" = set; then
9457 enableval="$enable_wizarddlg"
9458
9459 if test "$enableval" = yes; then
9460 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9461 else
9462 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9463 fi
9464
9465else
9466
9467 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9468 if test "x$LINE" != x ; then
9469 eval "DEFAULT_$LINE"
9470 else
9471 no_cache=1
9472 fi
9473
9474 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9475
9476fi;
9477
9478 eval "$ac_cv_use_wizarddlg"
9479 if test "$no_cache" != 1; then
9480 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9481 fi
9482
9483 if test "$wxUSE_WIZARDDLG" = yes; then
9484 echo "$as_me:$LINENO: result: yes" >&5
9485echo "${ECHO_T}yes" >&6
9486 else
9487 echo "$as_me:$LINENO: result: no" >&5
9488echo "${ECHO_T}no" >&6
9489 fi
9490
9491
9492
9493
9494 enablestring=
9495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9496echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9497 no_cache=0
9498 # Check whether --enable-menus or --disable-menus was given.
9499if test "${enable_menus+set}" = set; then
9500 enableval="$enable_menus"
9501
9502 if test "$enableval" = yes; then
9503 ac_cv_use_menus='wxUSE_MENUS=yes'
9504 else
9505 ac_cv_use_menus='wxUSE_MENUS=no'
9506 fi
9507
9508else
9509
9510 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9511 if test "x$LINE" != x ; then
9512 eval "DEFAULT_$LINE"
9513 else
9514 no_cache=1
9515 fi
9516
9517 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9518
9519fi;
9520
9521 eval "$ac_cv_use_menus"
9522 if test "$no_cache" != 1; then
9523 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9524 fi
9525
9526 if test "$wxUSE_MENUS" = yes; then
9527 echo "$as_me:$LINENO: result: yes" >&5
9528echo "${ECHO_T}yes" >&6
9529 else
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
9532 fi
9533
9534
9535 enablestring=
9536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9537echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9538 no_cache=0
9539 # Check whether --enable-miniframe or --disable-miniframe was given.
9540if test "${enable_miniframe+set}" = set; then
9541 enableval="$enable_miniframe"
9542
9543 if test "$enableval" = yes; then
9544 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9545 else
9546 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9547 fi
9548
9549else
9550
9551 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9552 if test "x$LINE" != x ; then
9553 eval "DEFAULT_$LINE"
9554 else
9555 no_cache=1
9556 fi
9557
9558 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9559
9560fi;
9561
9562 eval "$ac_cv_use_miniframe"
9563 if test "$no_cache" != 1; then
9564 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9565 fi
9566
9567 if test "$wxUSE_MINIFRAME" = yes; then
9568 echo "$as_me:$LINENO: result: yes" >&5
9569echo "${ECHO_T}yes" >&6
9570 else
9571 echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573 fi
9574
9575
9576 enablestring=
9577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9578echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9579 no_cache=0
9580 # Check whether --enable-tooltips or --disable-tooltips was given.
9581if test "${enable_tooltips+set}" = set; then
9582 enableval="$enable_tooltips"
9583
9584 if test "$enableval" = yes; then
9585 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9586 else
9587 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9588 fi
9589
9590else
9591
9592 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9593 if test "x$LINE" != x ; then
9594 eval "DEFAULT_$LINE"
9595 else
9596 no_cache=1
9597 fi
9598
9599 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9600
9601fi;
9602
9603 eval "$ac_cv_use_tooltips"
9604 if test "$no_cache" != 1; then
9605 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9606 fi
9607
9608 if test "$wxUSE_TOOLTIPS" = yes; then
9609 echo "$as_me:$LINENO: result: yes" >&5
9610echo "${ECHO_T}yes" >&6
9611 else
9612 echo "$as_me:$LINENO: result: no" >&5
9613echo "${ECHO_T}no" >&6
9614 fi
9615
9616
9617 enablestring=
9618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9619echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9620 no_cache=0
9621 # Check whether --enable-splines or --disable-splines was given.
9622if test "${enable_splines+set}" = set; then
9623 enableval="$enable_splines"
9624
9625 if test "$enableval" = yes; then
9626 ac_cv_use_splines='wxUSE_SPLINES=yes'
9627 else
9628 ac_cv_use_splines='wxUSE_SPLINES=no'
9629 fi
9630
9631else
9632
9633 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9634 if test "x$LINE" != x ; then
9635 eval "DEFAULT_$LINE"
9636 else
9637 no_cache=1
9638 fi
9639
9640 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9641
9642fi;
9643
9644 eval "$ac_cv_use_splines"
9645 if test "$no_cache" != 1; then
9646 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9647 fi
9648
9649 if test "$wxUSE_SPLINES" = yes; then
9650 echo "$as_me:$LINENO: result: yes" >&5
9651echo "${ECHO_T}yes" >&6
9652 else
9653 echo "$as_me:$LINENO: result: no" >&5
9654echo "${ECHO_T}no" >&6
9655 fi
9656
9657
9658 enablestring=
9659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9660echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9661 no_cache=0
9662 # Check whether --enable-validators or --disable-validators was given.
9663if test "${enable_validators+set}" = set; then
9664 enableval="$enable_validators"
9665
9666 if test "$enableval" = yes; then
9667 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9668 else
9669 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9670 fi
9671
9672else
9673
9674 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9675 if test "x$LINE" != x ; then
9676 eval "DEFAULT_$LINE"
9677 else
9678 no_cache=1
9679 fi
9680
9681 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9682
9683fi;
9684
9685 eval "$ac_cv_use_validators"
9686 if test "$no_cache" != 1; then
9687 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9688 fi
9689
9690 if test "$wxUSE_VALIDATORS" = yes; then
9691 echo "$as_me:$LINENO: result: yes" >&5
9692echo "${ECHO_T}yes" >&6
9693 else
9694 echo "$as_me:$LINENO: result: no" >&5
9695echo "${ECHO_T}no" >&6
9696 fi
9697
9698
9699 enablestring=
9700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9701echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9702 no_cache=0
9703 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9704if test "${enable_busyinfo+set}" = set; then
9705 enableval="$enable_busyinfo"
9706
9707 if test "$enableval" = yes; then
9708 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9709 else
9710 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9711 fi
9712
9713else
9714
9715 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9716 if test "x$LINE" != x ; then
9717 eval "DEFAULT_$LINE"
9718 else
9719 no_cache=1
9720 fi
9721
9722 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9723
9724fi;
9725
9726 eval "$ac_cv_use_busyinfo"
9727 if test "$no_cache" != 1; then
9728 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9729 fi
9730
9731 if test "$wxUSE_BUSYINFO" = yes; then
9732 echo "$as_me:$LINENO: result: yes" >&5
9733echo "${ECHO_T}yes" >&6
9734 else
9735 echo "$as_me:$LINENO: result: no" >&5
9736echo "${ECHO_T}no" >&6
9737 fi
9738
9739
9740 enablestring=
9741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9742echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9743 no_cache=0
9744 # Check whether --enable-joystick or --disable-joystick was given.
9745if test "${enable_joystick+set}" = set; then
9746 enableval="$enable_joystick"
9747
9748 if test "$enableval" = yes; then
9749 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9750 else
9751 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9752 fi
9753
9754else
9755
9756 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9757 if test "x$LINE" != x ; then
9758 eval "DEFAULT_$LINE"
9759 else
9760 no_cache=1
9761 fi
9762
9763 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9764
9765fi;
9766
9767 eval "$ac_cv_use_joystick"
9768 if test "$no_cache" != 1; then
9769 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9770 fi
9771
9772 if test "$wxUSE_JOYSTICK" = yes; then
9773 echo "$as_me:$LINENO: result: yes" >&5
9774echo "${ECHO_T}yes" >&6
9775 else
9776 echo "$as_me:$LINENO: result: no" >&5
9777echo "${ECHO_T}no" >&6
9778 fi
9779
9780
9781 enablestring=
9782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9783echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9784 no_cache=0
9785 # Check whether --enable-metafile or --disable-metafile was given.
9786if test "${enable_metafile+set}" = set; then
9787 enableval="$enable_metafile"
9788
9789 if test "$enableval" = yes; then
9790 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9791 else
9792 ac_cv_use_metafile='wxUSE_METAFILE=no'
9793 fi
9794
9795else
9796
9797 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9798 if test "x$LINE" != x ; then
9799 eval "DEFAULT_$LINE"
9800 else
9801 no_cache=1
9802 fi
9803
9804 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9805
9806fi;
9807
9808 eval "$ac_cv_use_metafile"
9809 if test "$no_cache" != 1; then
9810 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9811 fi
9812
9813 if test "$wxUSE_METAFILE" = yes; then
9814 echo "$as_me:$LINENO: result: yes" >&5
9815echo "${ECHO_T}yes" >&6
9816 else
9817 echo "$as_me:$LINENO: result: no" >&5
9818echo "${ECHO_T}no" >&6
9819 fi
9820
9821
9822 enablestring=
9823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9824echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9825 no_cache=0
9826 # Check whether --enable-dragimage or --disable-dragimage was given.
9827if test "${enable_dragimage+set}" = set; then
9828 enableval="$enable_dragimage"
9829
9830 if test "$enableval" = yes; then
9831 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9832 else
9833 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9834 fi
9835
9836else
9837
9838 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9839 if test "x$LINE" != x ; then
9840 eval "DEFAULT_$LINE"
9841 else
9842 no_cache=1
9843 fi
9844
9845 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9846
9847fi;
9848
9849 eval "$ac_cv_use_dragimage"
9850 if test "$no_cache" != 1; then
9851 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9852 fi
9853
9854 if test "$wxUSE_DRAGIMAGE" = yes; then
9855 echo "$as_me:$LINENO: result: yes" >&5
9856echo "${ECHO_T}yes" >&6
9857 else
9858 echo "$as_me:$LINENO: result: no" >&5
9859echo "${ECHO_T}no" >&6
9860 fi
9861
9862
9863 enablestring=
9864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9865echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9866 no_cache=0
9867 # Check whether --enable-accessibility or --disable-accessibility was given.
9868if test "${enable_accessibility+set}" = set; then
9869 enableval="$enable_accessibility"
9870
9871 if test "$enableval" = yes; then
9872 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9873 else
9874 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9875 fi
9876
9877else
9878
9879 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9880 if test "x$LINE" != x ; then
9881 eval "DEFAULT_$LINE"
9882 else
9883 no_cache=1
9884 fi
9885
9886 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9887
9888fi;
9889
9890 eval "$ac_cv_use_accessibility"
9891 if test "$no_cache" != 1; then
9892 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9893 fi
9894
9895 if test "$wxUSE_ACCESSIBILITY" = yes; then
9896 echo "$as_me:$LINENO: result: yes" >&5
9897echo "${ECHO_T}yes" >&6
9898 else
9899 echo "$as_me:$LINENO: result: no" >&5
9900echo "${ECHO_T}no" >&6
9901 fi
9902
9903
9904
9905
9906 enablestring=
9907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9908echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9909 no_cache=0
9910 # Check whether --enable-palette or --disable-palette was given.
9911if test "${enable_palette+set}" = set; then
9912 enableval="$enable_palette"
9913
9914 if test "$enableval" = yes; then
9915 ac_cv_use_palette='wxUSE_PALETTE=yes'
9916 else
9917 ac_cv_use_palette='wxUSE_PALETTE=no'
9918 fi
9919
9920else
9921
9922 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9923 if test "x$LINE" != x ; then
9924 eval "DEFAULT_$LINE"
9925 else
9926 no_cache=1
9927 fi
9928
9929 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9930
9931fi;
9932
9933 eval "$ac_cv_use_palette"
9934 if test "$no_cache" != 1; then
9935 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9936 fi
9937
9938 if test "$wxUSE_PALETTE" = yes; then
9939 echo "$as_me:$LINENO: result: yes" >&5
9940echo "${ECHO_T}yes" >&6
9941 else
9942 echo "$as_me:$LINENO: result: no" >&5
9943echo "${ECHO_T}no" >&6
9944 fi
9945
9946
9947 enablestring=
9948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9949echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9950 no_cache=0
9951 # Check whether --enable-image or --disable-image was given.
9952if test "${enable_image+set}" = set; then
9953 enableval="$enable_image"
9954
9955 if test "$enableval" = yes; then
9956 ac_cv_use_image='wxUSE_IMAGE=yes'
9957 else
9958 ac_cv_use_image='wxUSE_IMAGE=no'
9959 fi
9960
9961else
9962
9963 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9964 if test "x$LINE" != x ; then
9965 eval "DEFAULT_$LINE"
9966 else
9967 no_cache=1
9968 fi
9969
9970 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9971
9972fi;
9973
9974 eval "$ac_cv_use_image"
9975 if test "$no_cache" != 1; then
9976 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9977 fi
9978
9979 if test "$wxUSE_IMAGE" = yes; then
9980 echo "$as_me:$LINENO: result: yes" >&5
9981echo "${ECHO_T}yes" >&6
9982 else
9983 echo "$as_me:$LINENO: result: no" >&5
9984echo "${ECHO_T}no" >&6
9985 fi
9986
9987
9988 enablestring=
9989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9990echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9991 no_cache=0
9992 # Check whether --enable-gif or --disable-gif was given.
9993if test "${enable_gif+set}" = set; then
9994 enableval="$enable_gif"
9995
9996 if test "$enableval" = yes; then
9997 ac_cv_use_gif='wxUSE_GIF=yes'
9998 else
9999 ac_cv_use_gif='wxUSE_GIF=no'
10000 fi
10001
10002else
10003
10004 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10005 if test "x$LINE" != x ; then
10006 eval "DEFAULT_$LINE"
10007 else
10008 no_cache=1
10009 fi
10010
10011 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10012
10013fi;
10014
10015 eval "$ac_cv_use_gif"
10016 if test "$no_cache" != 1; then
10017 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10018 fi
10019
10020 if test "$wxUSE_GIF" = yes; then
10021 echo "$as_me:$LINENO: result: yes" >&5
10022echo "${ECHO_T}yes" >&6
10023 else
10024 echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6
10026 fi
10027
10028
10029 enablestring=
10030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10031echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10032 no_cache=0
10033 # Check whether --enable-pcx or --disable-pcx was given.
10034if test "${enable_pcx+set}" = set; then
10035 enableval="$enable_pcx"
10036
10037 if test "$enableval" = yes; then
10038 ac_cv_use_pcx='wxUSE_PCX=yes'
10039 else
10040 ac_cv_use_pcx='wxUSE_PCX=no'
10041 fi
10042
10043else
10044
10045 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10046 if test "x$LINE" != x ; then
10047 eval "DEFAULT_$LINE"
10048 else
10049 no_cache=1
10050 fi
10051
10052 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10053
10054fi;
10055
10056 eval "$ac_cv_use_pcx"
10057 if test "$no_cache" != 1; then
10058 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10059 fi
10060
10061 if test "$wxUSE_PCX" = yes; then
10062 echo "$as_me:$LINENO: result: yes" >&5
10063echo "${ECHO_T}yes" >&6
10064 else
10065 echo "$as_me:$LINENO: result: no" >&5
10066echo "${ECHO_T}no" >&6
10067 fi
10068
10069
10070 enablestring=
10071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10072echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10073 no_cache=0
10074 # Check whether --enable-iff or --disable-iff was given.
10075if test "${enable_iff+set}" = set; then
10076 enableval="$enable_iff"
10077
10078 if test "$enableval" = yes; then
10079 ac_cv_use_iff='wxUSE_IFF=yes'
10080 else
10081 ac_cv_use_iff='wxUSE_IFF=no'
10082 fi
10083
10084else
10085
10086 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10087 if test "x$LINE" != x ; then
10088 eval "DEFAULT_$LINE"
10089 else
10090 no_cache=1
10091 fi
10092
10093 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10094
10095fi;
10096
10097 eval "$ac_cv_use_iff"
10098 if test "$no_cache" != 1; then
10099 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10100 fi
10101
10102 if test "$wxUSE_IFF" = yes; then
10103 echo "$as_me:$LINENO: result: yes" >&5
10104echo "${ECHO_T}yes" >&6
10105 else
10106 echo "$as_me:$LINENO: result: no" >&5
10107echo "${ECHO_T}no" >&6
10108 fi
10109
10110
10111 enablestring=
10112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10113echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10114 no_cache=0
10115 # Check whether --enable-pnm or --disable-pnm was given.
10116if test "${enable_pnm+set}" = set; then
10117 enableval="$enable_pnm"
10118
10119 if test "$enableval" = yes; then
10120 ac_cv_use_pnm='wxUSE_PNM=yes'
10121 else
10122 ac_cv_use_pnm='wxUSE_PNM=no'
10123 fi
10124
10125else
10126
10127 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10128 if test "x$LINE" != x ; then
10129 eval "DEFAULT_$LINE"
10130 else
10131 no_cache=1
10132 fi
10133
10134 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10135
10136fi;
10137
10138 eval "$ac_cv_use_pnm"
10139 if test "$no_cache" != 1; then
10140 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10141 fi
10142
10143 if test "$wxUSE_PNM" = yes; then
10144 echo "$as_me:$LINENO: result: yes" >&5
10145echo "${ECHO_T}yes" >&6
10146 else
10147 echo "$as_me:$LINENO: result: no" >&5
10148echo "${ECHO_T}no" >&6
10149 fi
10150
10151
10152 enablestring=
10153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10154echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10155 no_cache=0
10156 # Check whether --enable-xpm or --disable-xpm was given.
10157if test "${enable_xpm+set}" = set; then
10158 enableval="$enable_xpm"
10159
10160 if test "$enableval" = yes; then
10161 ac_cv_use_xpm='wxUSE_XPM=yes'
10162 else
10163 ac_cv_use_xpm='wxUSE_XPM=no'
10164 fi
10165
10166else
10167
10168 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10169 if test "x$LINE" != x ; then
10170 eval "DEFAULT_$LINE"
10171 else
10172 no_cache=1
10173 fi
10174
10175 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10176
10177fi;
10178
10179 eval "$ac_cv_use_xpm"
10180 if test "$no_cache" != 1; then
10181 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10182 fi
10183
10184 if test "$wxUSE_XPM" = yes; then
10185 echo "$as_me:$LINENO: result: yes" >&5
10186echo "${ECHO_T}yes" >&6
10187 else
10188 echo "$as_me:$LINENO: result: no" >&5
10189echo "${ECHO_T}no" >&6
10190 fi
10191
10192
10193 enablestring=
10194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10195echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10196 no_cache=0
10197 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10198if test "${enable_ico_cur+set}" = set; then
10199 enableval="$enable_ico_cur"
10200
10201 if test "$enableval" = yes; then
10202 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10203 else
10204 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10205 fi
10206
10207else
10208
10209 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10210 if test "x$LINE" != x ; then
10211 eval "DEFAULT_$LINE"
10212 else
10213 no_cache=1
10214 fi
10215
10216 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10217
10218fi;
10219
10220 eval "$ac_cv_use_ico_cur"
10221 if test "$no_cache" != 1; then
10222 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10223 fi
10224
10225 if test "$wxUSE_ICO_CUR" = yes; then
10226 echo "$as_me:$LINENO: result: yes" >&5
10227echo "${ECHO_T}yes" >&6
10228 else
10229 echo "$as_me:$LINENO: result: no" >&5
10230echo "${ECHO_T}no" >&6
10231 fi
10232
10233
10234fi
10235
10236
10237
ceec2216
RL
10238# Check whether --with-flavour or --without-flavour was given.
10239if test "${with_flavour+set}" = set; then
10240 withval="$with_flavour"
10241 WX_FLAVOUR="$withval"
10242fi;
10243
10244
10245
a848cd7e
SC
10246 enablestring=
10247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10248echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10249 no_cache=0
10250 # Check whether --enable-official_build or --disable-official_build was given.
10251if test "${enable_official_build+set}" = set; then
10252 enableval="$enable_official_build"
10253
10254 if test "$enableval" = yes; then
10255 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10256 else
10257 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10258 fi
10259
10260else
10261
10262 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10263 if test "x$LINE" != x ; then
10264 eval "DEFAULT_$LINE"
10265 else
10266 no_cache=1
10267 fi
10268
10269 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10270
10271fi;
10272
10273 eval "$ac_cv_use_official_build"
10274 if test "$no_cache" != 1; then
10275 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10276 fi
10277
10278 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10279 echo "$as_me:$LINENO: result: yes" >&5
10280echo "${ECHO_T}yes" >&6
10281 else
10282 echo "$as_me:$LINENO: result: no" >&5
10283echo "${ECHO_T}no" >&6
10284 fi
10285
10286# Check whether --enable-vendor or --disable-vendor was given.
10287if test "${enable_vendor+set}" = set; then
10288 enableval="$enable_vendor"
10289 VENDOR="$enableval"
10290fi;
10291if test "x$VENDOR" = "x"; then
10292 VENDOR="custom"
10293fi
10294
a848cd7e
SC
10295
10296
10297
10298 echo "saving argument cache $wx_arg_cache_file"
10299 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10300
10301
10302
10303echo "$as_me:$LINENO: checking for toolkit" >&5
10304echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10305
10306# In Wine, we need to default to MSW, not GTK or MOTIF
10307if test "$wxUSE_WINE" = "yes"; then
10308 DEFAULT_DEFAULT_wxUSE_GTK=0
10309 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10310 DEFAULT_DEFAULT_wxUSE_MSW=1
10311 wxUSE_SHARED=no
10312fi
10313
10314if test "$wxUSE_GUI" = "yes"; then
10315
10316 if test "$USE_BEOS" = 1; then
10317 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10318echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10319 { (exit 1); exit 1; }; }
10320 fi
10321
10322 if test "$TOOLKIT_GIVEN" = 1; then
10323 for toolkit in `echo $ALL_TOOLKITS`; do
10324 var=wxUSE_$toolkit
10325 eval "value=\$${var}"
10326 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10327 done
10328 else
10329 for toolkit in `echo $ALL_TOOLKITS`; do
10330 if test "$has_toolkit_in_cache" != 1; then
10331 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10332 else
10333 var=DEFAULT_wxUSE_$toolkit
10334 fi
10335 eval "wxUSE_$toolkit=\$${var}"
10336 done
10337 fi
10338
10339 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10340 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10341 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10342
10343 case "${host}" in
10344 *-pc-os2_emx | *-pc-os2-emx )
10345 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10346 esac
10347
10348 case "$NUM_TOOLKITS" in
10349 1)
10350 ;;
10351 0)
10352 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10353echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10354 { (exit 1); exit 1; }; }
10355 ;;
10356 *)
10357 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10358echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10359 { (exit 1); exit 1; }; }
10360 esac
10361
10362 for toolkit in `echo $ALL_TOOLKITS`; do
10363 var=wxUSE_$toolkit
10364 eval "value=\$${var}"
10365 if test "x$value" != x; then
10366 cache_var=CACHE_$toolkit
10367 eval "cache=\$${cache_var}"
10368 if test "$cache" = 1; then
10369 echo "$var=$value" >> ${wx_arg_cache_file}
10370 fi
10371 if test "$value" = 1; then
10372 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10373 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10374echo "${ECHO_T}$toolkit_echo" >&6
10375 fi
10376 fi
10377 done
10378else
10379 if test "x$host_alias" != "x"; then
10380 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10381echo "${ECHO_T}base ($host_alias hosted) only" >&6
10382 else
10383 echo "$as_me:$LINENO: result: base only" >&5
10384echo "${ECHO_T}base only" >&6
10385 fi
10386fi
10387
10388wants_win32=0
10389doesnt_want_win32=0
10390case "${host}" in
10391 *-*-cygwin*)
10392 if test "$wxUSE_MSW" = 1 ; then
10393 wants_win32=1
10394 else
10395 doesnt_want_win32=1
10396 fi
10397 ;;
10398 *-*-mingw*)
10399 wants_win32=1
10400 ;;
10401esac
10402
10403if test "$wxUSE_WINE" = "yes"; then
10404 wants_win32=1
10405 CC=winegcc
10406 CXX=wineg++
10407 RESCOMP=wrc
10408 LDFLAGS_GUI="-mwindows"
10409fi
10410
10411if test "$wants_win32" = 1 ; then
10412 USE_UNIX=0
10413 USE_WIN32=1
10414 cat >>confdefs.h <<\_ACEOF
10415#define __WIN32__ 1
10416_ACEOF
10417
10418 cat >>confdefs.h <<\_ACEOF
10419#define __WIN95__ 1
10420_ACEOF
10421
10422 cat >>confdefs.h <<\_ACEOF
10423#define __WINDOWS__ 1
10424_ACEOF
10425
10426 cat >>confdefs.h <<\_ACEOF
10427#define __GNUWIN32__ 1
10428_ACEOF
10429
10430 cat >>confdefs.h <<\_ACEOF
10431#define STRICT 1
10432_ACEOF
10433
10434 cat >>confdefs.h <<\_ACEOF
10435#define WINVER 0x0400
10436_ACEOF
10437
10438fi
10439if test "$doesnt_want_win32" = 1 ; then
10440 USE_UNIX=1
10441 USE_WIN32=0
10442fi
10443
10444if test "$USE_UNIX" = 1 ; then
10445 wxUSE_UNIX=yes
10446 cat >>confdefs.h <<\_ACEOF
10447#define __UNIX__ 1
10448_ACEOF
10449
10450fi
10451
10452
10453cat >confcache <<\_ACEOF
10454# This file is a shell script that caches the results of configure
10455# tests run on this system so they can be shared between configure
10456# scripts and configure runs, see configure's option --config-cache.
10457# It is not useful on other systems. If it contains results you don't
10458# want to keep, you may remove or edit it.
10459#
10460# config.status only pays attention to the cache file if you give it
10461# the --recheck option to rerun configure.
10462#
10463# `ac_cv_env_foo' variables (set or unset) will be overridden when
10464# loading this file, other *unset* `ac_cv_foo' will be assigned the
10465# following values.
10466
10467_ACEOF
10468
10469# The following way of writing the cache mishandles newlines in values,
10470# but we know of no workaround that is simple, portable, and efficient.
10471# So, don't put newlines in cache variables' values.
10472# Ultrix sh set writes to stderr and can't be redirected directly,
10473# and sets the high bit in the cache file unless we assign to the vars.
10474{
10475 (set) 2>&1 |
10476 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10477 *ac_space=\ *)
10478 # `set' does not quote correctly, so add quotes (double-quote
10479 # substitution turns \\\\ into \\, and sed turns \\ into \).
10480 sed -n \
ac1cb8d3
VS
10481 "s/'/'\\\\''/g;
10482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10483 ;;
10484 *)
10485 # `set' quotes correctly as required by POSIX, so do not add quotes.
10486 sed -n \
ac1cb8d3 10487 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10488 ;;
10489 esac;
10490} |
10491 sed '
10492 t clear
10493 : clear
10494 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10495 t end
10496 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10497 : end' >>confcache
10498if diff $cache_file confcache >/dev/null 2>&1; then :; else
10499 if test -w $cache_file; then
10500 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10501 cat confcache >$cache_file
10502 else
10503 echo "not updating unwritable cache $cache_file"
10504 fi
10505fi
10506rm -f confcache
10507
10508if test "$build" != "$host" ; then
1e9e8aba 10509 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10510 CC=$host_alias-gcc
10511 CXX=$host_alias-c++
10512 AR=$host_alias-ar
10513 RANLIB=$host_alias-ranlib
10514 DLLTOOL=$host_alias-dlltool
10515 RESCOMP=$host_alias-windres
a848cd7e 10516 STRIP=$host_alias-strip
1e9e8aba
DE
10517 elif test "x$CC" '!=' "x"; then
10518 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10519 else
10520 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10521echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10522 { (exit 1); exit 1; }; }
10523 fi
10524fi
10525
10526CFLAGS=${CFLAGS:=}
10527ac_ext=c
10528ac_cpp='$CPP $CPPFLAGS'
10529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531ac_compiler_gnu=$ac_cv_c_compiler_gnu
10532if test -n "$ac_tool_prefix"; then
10533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10534set dummy ${ac_tool_prefix}gcc; ac_word=$2
10535echo "$as_me:$LINENO: checking for $ac_word" >&5
10536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10537if test "${ac_cv_prog_CC+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540 if test -n "$CC"; then
10541 ac_cv_prog_CC="$CC" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554done
10555done
10556
10557fi
10558fi
10559CC=$ac_cv_prog_CC
10560if test -n "$CC"; then
10561 echo "$as_me:$LINENO: result: $CC" >&5
10562echo "${ECHO_T}$CC" >&6
10563else
10564 echo "$as_me:$LINENO: result: no" >&5
10565echo "${ECHO_T}no" >&6
10566fi
10567
10568fi
10569if test -z "$ac_cv_prog_CC"; then
10570 ac_ct_CC=$CC
10571 # Extract the first word of "gcc", so it can be a program name with args.
10572set dummy gcc; ac_word=$2
10573echo "$as_me:$LINENO: checking for $ac_word" >&5
10574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578 if test -n "$ac_ct_CC"; then
10579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10580else
10581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $PATH
10583do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_ac_ct_CC="gcc"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592done
10593done
10594
10595fi
10596fi
10597ac_ct_CC=$ac_cv_prog_ac_ct_CC
10598if test -n "$ac_ct_CC"; then
10599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10600echo "${ECHO_T}$ac_ct_CC" >&6
10601else
10602 echo "$as_me:$LINENO: result: no" >&5
10603echo "${ECHO_T}no" >&6
10604fi
10605
10606 CC=$ac_ct_CC
10607else
10608 CC="$ac_cv_prog_CC"
10609fi
10610
10611if test -z "$CC"; then
10612 if test -n "$ac_tool_prefix"; then
10613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10614set dummy ${ac_tool_prefix}cc; ac_word=$2
10615echo "$as_me:$LINENO: checking for $ac_word" >&5
10616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10617if test "${ac_cv_prog_CC+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619else
10620 if test -n "$CC"; then
10621 ac_cv_prog_CC="$CC" # Let the user override the test.
10622else
10623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH
10625do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_prog_CC="${ac_tool_prefix}cc"
10631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634done
10635done
10636
10637fi
10638fi
10639CC=$ac_cv_prog_CC
10640if test -n "$CC"; then
10641 echo "$as_me:$LINENO: result: $CC" >&5
10642echo "${ECHO_T}$CC" >&6
10643else
10644 echo "$as_me:$LINENO: result: no" >&5
10645echo "${ECHO_T}no" >&6
10646fi
10647
10648fi
10649if test -z "$ac_cv_prog_CC"; then
10650 ac_ct_CC=$CC
10651 # Extract the first word of "cc", so it can be a program name with args.
10652set dummy cc; ac_word=$2
10653echo "$as_me:$LINENO: checking for $ac_word" >&5
10654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10657else
10658 if test -n "$ac_ct_CC"; then
10659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10660else
10661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $PATH
10663do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668 ac_cv_prog_ac_ct_CC="cc"
10669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10671 fi
10672done
10673done
10674
10675fi
10676fi
10677ac_ct_CC=$ac_cv_prog_ac_ct_CC
10678if test -n "$ac_ct_CC"; then
10679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10680echo "${ECHO_T}$ac_ct_CC" >&6
10681else
10682 echo "$as_me:$LINENO: result: no" >&5
10683echo "${ECHO_T}no" >&6
10684fi
10685
10686 CC=$ac_ct_CC
10687else
10688 CC="$ac_cv_prog_CC"
10689fi
10690
10691fi
10692if test -z "$CC"; then
10693 # Extract the first word of "cc", so it can be a program name with args.
10694set dummy cc; ac_word=$2
10695echo "$as_me:$LINENO: checking for $ac_word" >&5
10696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10697if test "${ac_cv_prog_CC+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699else
10700 if test -n "$CC"; then
10701 ac_cv_prog_CC="$CC" # Let the user override the test.
10702else
10703 ac_prog_rejected=no
10704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705for as_dir in $PATH
10706do
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10712 ac_prog_rejected=yes
10713 continue
10714 fi
10715 ac_cv_prog_CC="cc"
10716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10718 fi
10719done
10720done
10721
10722if test $ac_prog_rejected = yes; then
10723 # We found a bogon in the path, so make sure we never use it.
10724 set dummy $ac_cv_prog_CC
10725 shift
10726 if test $# != 0; then
10727 # We chose a different compiler from the bogus one.
10728 # However, it has the same basename, so the bogon will be chosen
10729 # first if we set CC to just the basename; use the full file name.
10730 shift
10731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10732 fi
10733fi
10734fi
10735fi
10736CC=$ac_cv_prog_CC
10737if test -n "$CC"; then
10738 echo "$as_me:$LINENO: result: $CC" >&5
10739echo "${ECHO_T}$CC" >&6
10740else
10741 echo "$as_me:$LINENO: result: no" >&5
10742echo "${ECHO_T}no" >&6
10743fi
10744
10745fi
10746if test -z "$CC"; then
10747 if test -n "$ac_tool_prefix"; then
10748 for ac_prog in cl
10749 do
10750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10752echo "$as_me:$LINENO: checking for $ac_word" >&5
10753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10754if test "${ac_cv_prog_CC+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757 if test -n "$CC"; then
10758 ac_cv_prog_CC="$CC" # Let the user override the test.
10759else
10760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10770 fi
10771done
10772done
10773
10774fi
10775fi
10776CC=$ac_cv_prog_CC
10777if test -n "$CC"; then
10778 echo "$as_me:$LINENO: result: $CC" >&5
10779echo "${ECHO_T}$CC" >&6
10780else
10781 echo "$as_me:$LINENO: result: no" >&5
10782echo "${ECHO_T}no" >&6
10783fi
10784
10785 test -n "$CC" && break
10786 done
10787fi
10788if test -z "$CC"; then
10789 ac_ct_CC=$CC
10790 for ac_prog in cl
10791do
10792 # Extract the first word of "$ac_prog", so it can be a program name with args.
10793set dummy $ac_prog; ac_word=$2
10794echo "$as_me:$LINENO: checking for $ac_word" >&5
10795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799 if test -n "$ac_ct_CC"; then
10800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10801else
10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803for as_dir in $PATH
10804do
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809 ac_cv_prog_ac_ct_CC="$ac_prog"
10810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10812 fi
10813done
10814done
10815
10816fi
10817fi
10818ac_ct_CC=$ac_cv_prog_ac_ct_CC
10819if test -n "$ac_ct_CC"; then
10820 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10821echo "${ECHO_T}$ac_ct_CC" >&6
10822else
10823 echo "$as_me:$LINENO: result: no" >&5
10824echo "${ECHO_T}no" >&6
10825fi
10826
10827 test -n "$ac_ct_CC" && break
10828done
10829
10830 CC=$ac_ct_CC
10831fi
10832
10833fi
10834
10835
10836test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10837See \`config.log' for more details." >&5
10838echo "$as_me: error: no acceptable C compiler found in \$PATH
10839See \`config.log' for more details." >&2;}
10840 { (exit 1); exit 1; }; }
10841
10842# Provide some information about the compiler.
10843echo "$as_me:$LINENO:" \
10844 "checking for C compiler version" >&5
10845ac_compiler=`set X $ac_compile; echo $2`
10846{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10847 (eval $ac_compiler --version </dev/null >&5) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }
10851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10852 (eval $ac_compiler -v </dev/null >&5) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }
10856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10857 (eval $ac_compiler -V </dev/null >&5) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }
10861
10862cat >conftest.$ac_ext <<_ACEOF
10863/* confdefs.h. */
10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
10868
10869int
10870main ()
10871{
10872
10873 ;
10874 return 0;
10875}
10876_ACEOF
10877ac_clean_files_save=$ac_clean_files
10878ac_clean_files="$ac_clean_files a.out a.exe b.out"
10879# Try to create an executable without -o first, disregard a.out.
10880# It will help us diagnose broken compilers, and finding out an intuition
10881# of exeext.
ac1cb8d3
VS
10882echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10883echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10884ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10885if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10886 (eval $ac_link_default) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; then
10890 # Find the output, starting from the most likely. This scheme is
10891# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10892# resort.
10893
10894# Be careful to initialize this variable, since it used to be cached.
10895# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10896ac_cv_exeext=
10897# b.out is created by i960 compilers.
10898for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10899do
10900 test -f "$ac_file" || continue
10901 case $ac_file in
10902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10903 ;;
a848cd7e 10904 conftest.$ac_ext )
ac1cb8d3
VS
10905 # This is the source file.
10906 ;;
a848cd7e 10907 [ab].out )
ac1cb8d3
VS
10908 # We found the default executable, but exeext='' is most
10909 # certainly right.
10910 break;;
a848cd7e 10911 *.* )
ac1cb8d3
VS
10912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10913 # FIXME: I believe we export ac_cv_exeext for Libtool,
10914 # but it would be cool to find out if it's true. Does anybody
10915 # maintain Libtool? --akim.
10916 export ac_cv_exeext
10917 break;;
a848cd7e 10918 * )
ac1cb8d3 10919 break;;
a848cd7e
SC
10920 esac
10921done
10922else
10923 echo "$as_me: failed program was:" >&5
10924sed 's/^/| /' conftest.$ac_ext >&5
10925
10926{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10927See \`config.log' for more details." >&5
10928echo "$as_me: error: C compiler cannot create executables
10929See \`config.log' for more details." >&2;}
10930 { (exit 77); exit 77; }; }
10931fi
10932
10933ac_exeext=$ac_cv_exeext
10934echo "$as_me:$LINENO: result: $ac_file" >&5
10935echo "${ECHO_T}$ac_file" >&6
10936
10937# Check the compiler produces executables we can run. If not, either
10938# the compiler is broken, or we cross compile.
10939echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10940echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10941# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10942# If not cross compiling, check that we can run a simple program.
10943if test "$cross_compiling" != yes; then
10944 if { ac_try='./$ac_file'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 cross_compiling=no
10951 else
10952 if test "$cross_compiling" = maybe; then
10953 cross_compiling=yes
10954 else
10955 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10956If you meant to cross compile, use \`--host'.
10957See \`config.log' for more details." >&5
10958echo "$as_me: error: cannot run C compiled programs.
10959If you meant to cross compile, use \`--host'.
10960See \`config.log' for more details." >&2;}
10961 { (exit 1); exit 1; }; }
10962 fi
10963 fi
10964fi
10965echo "$as_me:$LINENO: result: yes" >&5
10966echo "${ECHO_T}yes" >&6
10967
10968rm -f a.out a.exe conftest$ac_cv_exeext b.out
10969ac_clean_files=$ac_clean_files_save
10970# Check the compiler produces executables we can run. If not, either
10971# the compiler is broken, or we cross compile.
10972echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10973echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10974echo "$as_me:$LINENO: result: $cross_compiling" >&5
10975echo "${ECHO_T}$cross_compiling" >&6
10976
10977echo "$as_me:$LINENO: checking for suffix of executables" >&5
10978echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980 (eval $ac_link) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; then
10984 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10985# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10986# work properly (i.e., refer to `conftest.exe'), while it won't with
10987# `rm'.
10988for ac_file in conftest.exe conftest conftest.*; do
10989 test -f "$ac_file" || continue
10990 case $ac_file in
10991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10993 export ac_cv_exeext
10994 break;;
a848cd7e
SC
10995 * ) break;;
10996 esac
10997done
10998else
10999 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11000See \`config.log' for more details." >&5
11001echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11002See \`config.log' for more details." >&2;}
11003 { (exit 1); exit 1; }; }
11004fi
11005
11006rm -f conftest$ac_cv_exeext
11007echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11008echo "${ECHO_T}$ac_cv_exeext" >&6
11009
11010rm -f conftest.$ac_ext
11011EXEEXT=$ac_cv_exeext
11012ac_exeext=$EXEEXT
11013echo "$as_me:$LINENO: checking for suffix of object files" >&5
11014echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11015if test "${ac_cv_objext+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11017else
11018 cat >conftest.$ac_ext <<_ACEOF
11019/* confdefs.h. */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h. */
11024
11025int
11026main ()
11027{
11028
11029 ;
11030 return 0;
11031}
11032_ACEOF
11033rm -f conftest.o conftest.obj
11034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035 (eval $ac_compile) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; then
11039 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11040 case $ac_file in
11041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11043 break;;
11044 esac
11045done
11046else
11047 echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
11049
11050{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11051See \`config.log' for more details." >&5
11052echo "$as_me: error: cannot compute suffix of object files: cannot compile
11053See \`config.log' for more details." >&2;}
11054 { (exit 1); exit 1; }; }
11055fi
11056
11057rm -f conftest.$ac_cv_objext conftest.$ac_ext
11058fi
11059echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11060echo "${ECHO_T}$ac_cv_objext" >&6
11061OBJEXT=$ac_cv_objext
11062ac_objext=$OBJEXT
11063echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11064echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11065if test "${ac_cv_c_compiler_gnu+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11067else
11068 cat >conftest.$ac_ext <<_ACEOF
11069/* confdefs.h. */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h. */
11074
11075int
11076main ()
11077{
11078#ifndef __GNUC__
11079 choke me
11080#endif
11081
11082 ;
11083 return 0;
11084}
11085_ACEOF
11086rm -f conftest.$ac_objext
11087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11088 (eval $ac_compile) 2>conftest.er1
a848cd7e 11089 ac_status=$?
ac1cb8d3
VS
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
a848cd7e
SC
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } &&
89be85c2
VS
11095 { ac_try='test -z "$ac_c_werror_flag"
11096 || test ! -s conftest.err'
ac1cb8d3
VS
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; } &&
11102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_compiler_gnu=yes
11109else
11110 echo "$as_me: failed program was:" >&5
11111sed 's/^/| /' conftest.$ac_ext >&5
11112
11113ac_compiler_gnu=no
11114fi
ac1cb8d3 11115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11116ac_cv_c_compiler_gnu=$ac_compiler_gnu
11117
11118fi
11119echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11120echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11121GCC=`test $ac_compiler_gnu = yes && echo yes`
11122ac_test_CFLAGS=${CFLAGS+set}
11123ac_save_CFLAGS=$CFLAGS
11124CFLAGS="-g"
11125echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11126echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11127if test "${ac_cv_prog_cc_g+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130 cat >conftest.$ac_ext <<_ACEOF
11131/* confdefs.h. */
11132_ACEOF
11133cat confdefs.h >>conftest.$ac_ext
11134cat >>conftest.$ac_ext <<_ACEOF
11135/* end confdefs.h. */
11136
11137int
11138main ()
11139{
11140
11141 ;
11142 return 0;
11143}
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11147 (eval $ac_compile) 2>conftest.er1
a848cd7e 11148 ac_status=$?
ac1cb8d3
VS
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
a848cd7e
SC
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
89be85c2
VS
11154 { ac_try='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
ac1cb8d3
VS
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_cv_prog_cc_g=yes
11168else
11169 echo "$as_me: failed program was:" >&5
11170sed 's/^/| /' conftest.$ac_ext >&5
11171
11172ac_cv_prog_cc_g=no
11173fi
ac1cb8d3 11174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11175fi
11176echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11177echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11178if test "$ac_test_CFLAGS" = set; then
11179 CFLAGS=$ac_save_CFLAGS
11180elif test $ac_cv_prog_cc_g = yes; then
11181 if test "$GCC" = yes; then
11182 CFLAGS="-g -O2"
11183 else
11184 CFLAGS="-g"
11185 fi
11186else
11187 if test "$GCC" = yes; then
11188 CFLAGS="-O2"
11189 else
11190 CFLAGS=
11191 fi
11192fi
11193echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11194echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11195if test "${ac_cv_prog_cc_stdc+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197else
11198 ac_cv_prog_cc_stdc=no
11199ac_save_CC=$CC
11200cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
11206#include <stdarg.h>
11207#include <stdio.h>
11208#include <sys/types.h>
11209#include <sys/stat.h>
11210/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11211struct buf { int x; };
11212FILE * (*rcsopen) (struct buf *, struct stat *, int);
11213static char *e (p, i)
11214 char **p;
11215 int i;
11216{
11217 return p[i];
11218}
11219static char *f (char * (*g) (char **, int), char **p, ...)
11220{
11221 char *s;
11222 va_list v;
11223 va_start (v,p);
11224 s = g (p, va_arg (v,int));
11225 va_end (v);
11226 return s;
11227}
ac1cb8d3
VS
11228
11229/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11230 function prototypes and stuff, but not '\xHH' hex character constants.
11231 These don't provoke an error unfortunately, instead are silently treated
11232 as 'x'. The following induces an error, until -std1 is added to get
11233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11234 array size at least. It's necessary to write '\x00'==0 to get something
11235 that's true only with -std1. */
11236int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11237
a848cd7e
SC
11238int test (int i, double x);
11239struct s1 {int (*f) (int a);};
11240struct s2 {int (*f) (double a);};
11241int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11242int argc;
11243char **argv;
11244int
11245main ()
11246{
11247return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11248 ;
11249 return 0;
11250}
11251_ACEOF
11252# Don't try gcc -ansi; that turns off useful extensions and
11253# breaks some systems' header files.
11254# AIX -qlanglvl=ansi
11255# Ultrix and OSF/1 -std1
11256# HP-UX 10.20 and later -Ae
11257# HP-UX older versions -Aa -D_HPUX_SOURCE
11258# SVR4 -Xc -D__EXTENSIONS__
11259for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11260do
11261 CC="$ac_save_CC $ac_arg"
11262 rm -f conftest.$ac_objext
11263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11264 (eval $ac_compile) 2>conftest.er1
a848cd7e 11265 ac_status=$?
ac1cb8d3
VS
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
a848cd7e
SC
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
89be85c2
VS
11271 { ac_try='test -z "$ac_c_werror_flag"
11272 || test ! -s conftest.err'
ac1cb8d3
VS
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_cv_prog_cc_stdc=$ac_arg
11285break
11286else
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290fi
ac1cb8d3 11291rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11292done
11293rm -f conftest.$ac_ext conftest.$ac_objext
11294CC=$ac_save_CC
11295
11296fi
11297
11298case "x$ac_cv_prog_cc_stdc" in
11299 x|xno)
11300 echo "$as_me:$LINENO: result: none needed" >&5
11301echo "${ECHO_T}none needed" >&6 ;;
11302 *)
11303 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11304echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11305 CC="$CC $ac_cv_prog_cc_stdc" ;;
11306esac
11307
11308# Some people use a C++ compiler to compile C. Since we use `exit',
11309# in C++ we need to declare it. In case someone uses the same compiler
11310# for both compiling C and C++ we need to have the C++ compiler decide
11311# the declaration of exit, since it's the most demanding environment.
11312cat >conftest.$ac_ext <<_ACEOF
11313#ifndef __cplusplus
11314 choke me
11315#endif
11316_ACEOF
11317rm -f conftest.$ac_objext
11318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11319 (eval $ac_compile) 2>conftest.er1
a848cd7e 11320 ac_status=$?
ac1cb8d3
VS
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
a848cd7e
SC
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
89be85c2
VS
11326 { ac_try='test -z "$ac_c_werror_flag"
11327 || test ! -s conftest.err'
ac1cb8d3
VS
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 for ac_declaration in \
ac1cb8d3 11340 '' \
a848cd7e
SC
11341 'extern "C" void std::exit (int) throw (); using std::exit;' \
11342 'extern "C" void std::exit (int); using std::exit;' \
11343 'extern "C" void exit (int) throw ();' \
11344 'extern "C" void exit (int);' \
11345 'void exit (int);'
11346do
11347 cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
de59c161 11353$ac_declaration
ac1cb8d3 11354#include <stdlib.h>
a848cd7e
SC
11355int
11356main ()
11357{
11358exit (42);
11359 ;
11360 return 0;
11361}
11362_ACEOF
11363rm -f conftest.$ac_objext
11364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11365 (eval $ac_compile) 2>conftest.er1
a848cd7e 11366 ac_status=$?
ac1cb8d3
VS
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
a848cd7e
SC
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
89be85c2
VS
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
ac1cb8d3
VS
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 :
11386else
11387 echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390continue
11391fi
ac1cb8d3 11392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11393 cat >conftest.$ac_ext <<_ACEOF
11394/* confdefs.h. */
11395_ACEOF
11396cat confdefs.h >>conftest.$ac_ext
11397cat >>conftest.$ac_ext <<_ACEOF
11398/* end confdefs.h. */
11399$ac_declaration
11400int
11401main ()
11402{
11403exit (42);
11404 ;
11405 return 0;
11406}
11407_ACEOF
11408rm -f conftest.$ac_objext
11409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11410 (eval $ac_compile) 2>conftest.er1
a848cd7e 11411 ac_status=$?
ac1cb8d3
VS
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
a848cd7e
SC
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
89be85c2
VS
11417 { ac_try='test -z "$ac_c_werror_flag"
11418 || test ! -s conftest.err'
ac1cb8d3
VS
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 break
11431else
11432 echo "$as_me: failed program was:" >&5
11433sed 's/^/| /' conftest.$ac_ext >&5
11434
11435fi
ac1cb8d3 11436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11437done
11438rm -f conftest*
11439if test -n "$ac_declaration"; then
11440 echo '#ifdef __cplusplus' >>confdefs.h
11441 echo $ac_declaration >>confdefs.h
11442 echo '#endif' >>confdefs.h
11443fi
11444
11445else
11446 echo "$as_me: failed program was:" >&5
11447sed 's/^/| /' conftest.$ac_ext >&5
11448
11449fi
ac1cb8d3 11450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11451ac_ext=c
11452ac_cpp='$CPP $CPPFLAGS'
11453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11455ac_compiler_gnu=$ac_cv_c_compiler_gnu
11456
11457
95986553
DE
11458ac_ext=c
11459ac_cpp='$CPP $CPPFLAGS'
11460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11462ac_compiler_gnu=$ac_cv_c_compiler_gnu
11463
11464echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11465echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11466if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11468else
11469 cat >conftest.$ac_ext <<_ACEOF
11470/* confdefs.h. */
11471_ACEOF
11472cat confdefs.h >>conftest.$ac_ext
11473cat >>conftest.$ac_ext <<_ACEOF
11474/* end confdefs.h. */
11475
11476int
11477main ()
11478{
11479#ifndef __MWERKS__
11480 choke me
11481#endif
11482
11483 ;
11484 return 0;
11485}
11486_ACEOF
11487rm -f conftest.$ac_objext
11488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11489 (eval $ac_compile) 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
89be85c2
VS
11496 { ac_try='test -z "$ac_c_werror_flag"
11497 || test ! -s conftest.err'
95986553
DE
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 bakefile_compiler_mwerks=yes
11510else
11511 echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514bakefile_compiler_mwerks=no
11515fi
11516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11517 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11518
11519fi
11520echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11521echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11522
11523MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11524ac_ext=c
11525ac_cpp='$CPP $CPPFLAGS'
11526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528ac_compiler_gnu=$ac_cv_c_compiler_gnu
11529
11530
a848cd7e
SC
11531
11532ac_ext=c
11533ac_cpp='$CPP $CPPFLAGS'
11534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536ac_compiler_gnu=$ac_cv_c_compiler_gnu
11537echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11538echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11539# On Suns, sometimes $CPP names a directory.
11540if test -n "$CPP" && test -d "$CPP"; then
11541 CPP=
11542fi
11543if test -z "$CPP"; then
11544 if test "${ac_cv_prog_CPP+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 # Double quotes because CPP needs to be expanded
11548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11549 do
11550 ac_preproc_ok=false
11551for ac_c_preproc_warn_flag in '' yes
11552do
11553 # Use a header file that comes with gcc, so configuring glibc
11554 # with a fresh cross-compiler works.
11555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556 # <limits.h> exists even on freestanding compilers.
11557 # On the NeXT, cc -E runs the code through the compiler's parser,
11558 # not just through cpp. "Syntax error" is here to catch this case.
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565#ifdef __STDC__
11566# include <limits.h>
11567#else
11568# include <assert.h>
11569#endif
ac1cb8d3 11570 Syntax error
a848cd7e
SC
11571_ACEOF
11572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } >/dev/null; then
11580 if test -s conftest.err; then
11581 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11583 else
11584 ac_cpp_err=
11585 fi
11586else
11587 ac_cpp_err=yes
11588fi
11589if test -z "$ac_cpp_err"; then
11590 :
11591else
11592 echo "$as_me: failed program was:" >&5
11593sed 's/^/| /' conftest.$ac_ext >&5
11594
11595 # Broken: fails on valid input.
11596continue
11597fi
11598rm -f conftest.err conftest.$ac_ext
11599
11600 # OK, works on sane cases. Now check whether non-existent headers
11601 # can be detected and how.
11602 cat >conftest.$ac_ext <<_ACEOF
11603/* confdefs.h. */
11604_ACEOF
11605cat confdefs.h >>conftest.$ac_ext
11606cat >>conftest.$ac_ext <<_ACEOF
11607/* end confdefs.h. */
11608#include <ac_nonexistent.h>
11609_ACEOF
11610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11612 ac_status=$?
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } >/dev/null; then
11618 if test -s conftest.err; then
11619 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11621 else
11622 ac_cpp_err=
11623 fi
11624else
11625 ac_cpp_err=yes
11626fi
11627if test -z "$ac_cpp_err"; then
11628 # Broken: success on invalid input.
11629continue
11630else
11631 echo "$as_me: failed program was:" >&5
11632sed 's/^/| /' conftest.$ac_ext >&5
11633
11634 # Passes both tests.
11635ac_preproc_ok=:
11636break
11637fi
11638rm -f conftest.err conftest.$ac_ext
11639
11640done
11641# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11642rm -f conftest.err conftest.$ac_ext
11643if $ac_preproc_ok; then
11644 break
11645fi
11646
11647 done
11648 ac_cv_prog_CPP=$CPP
11649
11650fi
11651 CPP=$ac_cv_prog_CPP
11652else
11653 ac_cv_prog_CPP=$CPP
11654fi
11655echo "$as_me:$LINENO: result: $CPP" >&5
11656echo "${ECHO_T}$CPP" >&6
11657ac_preproc_ok=false
11658for ac_c_preproc_warn_flag in '' yes
11659do
11660 # Use a header file that comes with gcc, so configuring glibc
11661 # with a fresh cross-compiler works.
11662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 # <limits.h> exists even on freestanding compilers.
11664 # On the NeXT, cc -E runs the code through the compiler's parser,
11665 # not just through cpp. "Syntax error" is here to catch this case.
11666 cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
11672#ifdef __STDC__
11673# include <limits.h>
11674#else
11675# include <assert.h>
11676#endif
ac1cb8d3 11677 Syntax error
a848cd7e
SC
11678_ACEOF
11679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } >/dev/null; then
11687 if test -s conftest.err; then
11688 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11690 else
11691 ac_cpp_err=
11692 fi
11693else
11694 ac_cpp_err=yes
11695fi
11696if test -z "$ac_cpp_err"; then
11697 :
11698else
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
11702 # Broken: fails on valid input.
11703continue
11704fi
11705rm -f conftest.err conftest.$ac_ext
11706
11707 # OK, works on sane cases. Now check whether non-existent headers
11708 # can be detected and how.
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715#include <ac_nonexistent.h>
11716_ACEOF
11717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } >/dev/null; then
11725 if test -s conftest.err; then
11726 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11728 else
11729 ac_cpp_err=
11730 fi
11731else
11732 ac_cpp_err=yes
11733fi
11734if test -z "$ac_cpp_err"; then
11735 # Broken: success on invalid input.
11736continue
11737else
11738 echo "$as_me: failed program was:" >&5
11739sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 # Passes both tests.
11742ac_preproc_ok=:
11743break
11744fi
11745rm -f conftest.err conftest.$ac_ext
11746
11747done
11748# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11749rm -f conftest.err conftest.$ac_ext
11750if $ac_preproc_ok; then
11751 :
11752else
11753 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11754See \`config.log' for more details." >&5
11755echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11756See \`config.log' for more details." >&2;}
11757 { (exit 1); exit 1; }; }
11758fi
11759
11760ac_ext=c
11761ac_cpp='$CPP $CPPFLAGS'
11762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
11766
11767echo "$as_me:$LINENO: checking for egrep" >&5
11768echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11769if test "${ac_cv_prog_egrep+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771else
11772 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11773 then ac_cv_prog_egrep='grep -E'
11774 else ac_cv_prog_egrep='egrep'
11775 fi
11776fi
11777echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11778echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11779 EGREP=$ac_cv_prog_egrep
11780
11781
11782if test $ac_cv_c_compiler_gnu = yes; then
11783 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11784echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11785if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787else
11788 ac_pattern="Autoconf.*'x'"
11789 cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795#include <sgtty.h>
11796Autoconf TIOCGETP
11797_ACEOF
11798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11799 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11800 ac_cv_prog_gcc_traditional=yes
11801else
11802 ac_cv_prog_gcc_traditional=no
11803fi
11804rm -f conftest*
11805
11806
11807 if test $ac_cv_prog_gcc_traditional = no; then
11808 cat >conftest.$ac_ext <<_ACEOF
11809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
11814#include <termio.h>
11815Autoconf TCGETA
11816_ACEOF
11817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11818 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11819 ac_cv_prog_gcc_traditional=yes
11820fi
11821rm -f conftest*
11822
11823 fi
11824fi
11825echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11826echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11827 if test $ac_cv_prog_gcc_traditional = yes; then
11828 CC="$CC -traditional"
11829 fi
11830fi
11831
11832
11833
11834
11835ac_ext=cc
11836ac_cpp='$CXXCPP $CPPFLAGS'
11837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11840
11841
11842CXXFLAGS=${CXXFLAGS:=}
11843ac_ext=cc
11844ac_cpp='$CXXCPP $CPPFLAGS'
11845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11848if test -n "$ac_tool_prefix"; then
11849 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11850 do
11851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11853echo "$as_me:$LINENO: checking for $ac_word" >&5
11854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11855if test "${ac_cv_prog_CXX+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858 if test -n "$CXX"; then
11859 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11860else
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872done
11873done
11874
11875fi
11876fi
11877CXX=$ac_cv_prog_CXX
11878if test -n "$CXX"; then
11879 echo "$as_me:$LINENO: result: $CXX" >&5
11880echo "${ECHO_T}$CXX" >&6
11881else
11882 echo "$as_me:$LINENO: result: no" >&5
11883echo "${ECHO_T}no" >&6
11884fi
11885
11886 test -n "$CXX" && break
11887 done
11888fi
11889if test -z "$CXX"; then
11890 ac_ct_CXX=$CXX
11891 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11892do
11893 # Extract the first word of "$ac_prog", so it can be a program name with args.
11894set dummy $ac_prog; ac_word=$2
11895echo "$as_me:$LINENO: checking for $ac_word" >&5
11896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11897if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900 if test -n "$ac_ct_CXX"; then
11901 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11902else
11903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904for as_dir in $PATH
11905do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910 ac_cv_prog_ac_ct_CXX="$ac_prog"
11911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 break 2
11913 fi
11914done
11915done
11916
11917fi
11918fi
11919ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11920if test -n "$ac_ct_CXX"; then
11921 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11922echo "${ECHO_T}$ac_ct_CXX" >&6
11923else
11924 echo "$as_me:$LINENO: result: no" >&5
11925echo "${ECHO_T}no" >&6
11926fi
11927
11928 test -n "$ac_ct_CXX" && break
11929done
11930test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11931
11932 CXX=$ac_ct_CXX
11933fi
11934
11935
11936# Provide some information about the compiler.
11937echo "$as_me:$LINENO:" \
11938 "checking for C++ compiler version" >&5
11939ac_compiler=`set X $ac_compile; echo $2`
11940{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11941 (eval $ac_compiler --version </dev/null >&5) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }
11945{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11946 (eval $ac_compiler -v </dev/null >&5) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }
11950{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11951 (eval $ac_compiler -V </dev/null >&5) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }
11955
11956echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11957echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11958if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960else
11961 cat >conftest.$ac_ext <<_ACEOF
11962/* confdefs.h. */
11963_ACEOF
11964cat confdefs.h >>conftest.$ac_ext
11965cat >>conftest.$ac_ext <<_ACEOF
11966/* end confdefs.h. */
11967
11968int
11969main ()
11970{
11971#ifndef __GNUC__
11972 choke me
11973#endif
11974
11975 ;
11976 return 0;
11977}
11978_ACEOF
11979rm -f conftest.$ac_objext
11980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11981 (eval $ac_compile) 2>conftest.er1
a848cd7e 11982 ac_status=$?
ac1cb8d3
VS
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
a848cd7e
SC
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
89be85c2
VS
11988 { ac_try='test -z "$ac_cxx_werror_flag"
11989 || test ! -s conftest.err'
ac1cb8d3
VS
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_compiler_gnu=yes
12002else
12003 echo "$as_me: failed program was:" >&5
12004sed 's/^/| /' conftest.$ac_ext >&5
12005
12006ac_compiler_gnu=no
12007fi
ac1cb8d3 12008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12009ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12010
12011fi
12012echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12013echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12014GXX=`test $ac_compiler_gnu = yes && echo yes`
12015ac_test_CXXFLAGS=${CXXFLAGS+set}
12016ac_save_CXXFLAGS=$CXXFLAGS
12017CXXFLAGS="-g"
12018echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12019echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12020if test "${ac_cv_prog_cxx_g+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023 cat >conftest.$ac_ext <<_ACEOF
12024/* confdefs.h. */
12025_ACEOF
12026cat confdefs.h >>conftest.$ac_ext
12027cat >>conftest.$ac_ext <<_ACEOF
12028/* end confdefs.h. */
12029
12030int
12031main ()
12032{
12033
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext
12039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12040 (eval $ac_compile) 2>conftest.er1
a848cd7e 12041 ac_status=$?
ac1cb8d3
VS
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
a848cd7e
SC
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
89be85c2
VS
12047 { ac_try='test -z "$ac_cxx_werror_flag"
12048 || test ! -s conftest.err'
ac1cb8d3
VS
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_prog_cxx_g=yes
12061else
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
12065ac_cv_prog_cxx_g=no
12066fi
ac1cb8d3 12067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12068fi
12069echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12070echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12071if test "$ac_test_CXXFLAGS" = set; then
12072 CXXFLAGS=$ac_save_CXXFLAGS
12073elif test $ac_cv_prog_cxx_g = yes; then
12074 if test "$GXX" = yes; then
12075 CXXFLAGS="-g -O2"
12076 else
12077 CXXFLAGS="-g"
12078 fi
12079else
12080 if test "$GXX" = yes; then
12081 CXXFLAGS="-O2"
12082 else
12083 CXXFLAGS=
12084 fi
12085fi
12086for ac_declaration in \
ac1cb8d3 12087 '' \
a848cd7e
SC
12088 'extern "C" void std::exit (int) throw (); using std::exit;' \
12089 'extern "C" void std::exit (int); using std::exit;' \
12090 'extern "C" void exit (int) throw ();' \
12091 'extern "C" void exit (int);' \
12092 'void exit (int);'
12093do
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
de59c161 12100$ac_declaration
ac1cb8d3 12101#include <stdlib.h>
a848cd7e
SC
12102int
12103main ()
12104{
12105exit (42);
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110rm -f conftest.$ac_objext
12111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12112 (eval $ac_compile) 2>conftest.er1
a848cd7e 12113 ac_status=$?
ac1cb8d3
VS
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
a848cd7e
SC
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
89be85c2
VS
12119 { ac_try='test -z "$ac_cxx_werror_flag"
12120 || test ! -s conftest.err'
ac1cb8d3
VS
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 :
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137continue
12138fi
ac1cb8d3 12139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12140 cat >conftest.$ac_ext <<_ACEOF
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
12146$ac_declaration
12147int
12148main ()
12149{
12150exit (42);
12151 ;
12152 return 0;
12153}
12154_ACEOF
12155rm -f conftest.$ac_objext
12156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12157 (eval $ac_compile) 2>conftest.er1
a848cd7e 12158 ac_status=$?
ac1cb8d3
VS
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
a848cd7e
SC
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
89be85c2
VS
12164 { ac_try='test -z "$ac_cxx_werror_flag"
12165 || test ! -s conftest.err'
ac1cb8d3
VS
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 break
12178else
12179 echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
12182fi
ac1cb8d3 12183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12184done
12185rm -f conftest*
12186if test -n "$ac_declaration"; then
12187 echo '#ifdef __cplusplus' >>confdefs.h
12188 echo $ac_declaration >>confdefs.h
12189 echo '#endif' >>confdefs.h
12190fi
12191
12192ac_ext=cc
12193ac_cpp='$CXXCPP $CPPFLAGS'
12194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12197
12198
95986553
DE
12199ac_ext=cc
12200ac_cpp='$CXXCPP $CPPFLAGS'
12201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12204
12205echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12206echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12207if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210 cat >conftest.$ac_ext <<_ACEOF
12211/* confdefs.h. */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h. */
12216
12217int
12218main ()
12219{
12220#ifndef __MWERKS__
12221 choke me
12222#endif
12223
12224 ;
12225 return 0;
12226}
12227_ACEOF
12228rm -f conftest.$ac_objext
12229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230 (eval $ac_compile) 2>conftest.er1
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
89be85c2
VS
12237 { ac_try='test -z "$ac_cxx_werror_flag"
12238 || test ! -s conftest.err'
95986553
DE
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; } &&
12244 { ac_try='test -s conftest.$ac_objext'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 bakefile_compiler_mwerks=yes
12251else
12252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255bakefile_compiler_mwerks=no
12256fi
12257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12259
12260fi
12261echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12262echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12263
12264MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12265ac_ext=cc
12266ac_cpp='$CXXCPP $CPPFLAGS'
12267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12270
12271
12272
a848cd7e
SC
12273ac_ext=c
12274ac_cpp='$CPP $CPPFLAGS'
12275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277ac_compiler_gnu=$ac_cv_c_compiler_gnu
12278
12279
a848cd7e
SC
12280if test -n "$ac_tool_prefix"; then
12281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12282set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12283echo "$as_me:$LINENO: checking for $ac_word" >&5
12284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12285if test "${ac_cv_prog_RANLIB+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287else
12288 if test -n "$RANLIB"; then
12289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12290else
12291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292for as_dir in $PATH
12293do
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12301 fi
12302done
12303done
12304
12305fi
12306fi
12307RANLIB=$ac_cv_prog_RANLIB
12308if test -n "$RANLIB"; then
12309 echo "$as_me:$LINENO: result: $RANLIB" >&5
12310echo "${ECHO_T}$RANLIB" >&6
12311else
12312 echo "$as_me:$LINENO: result: no" >&5
12313echo "${ECHO_T}no" >&6
12314fi
12315
12316fi
12317if test -z "$ac_cv_prog_RANLIB"; then
12318 ac_ct_RANLIB=$RANLIB
12319 # Extract the first word of "ranlib", so it can be a program name with args.
12320set dummy ranlib; ac_word=$2
12321echo "$as_me:$LINENO: checking for $ac_word" >&5
12322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12323if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325else
12326 if test -n "$ac_ct_RANLIB"; then
12327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12328else
12329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330for as_dir in $PATH
12331do
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336 ac_cv_prog_ac_ct_RANLIB="ranlib"
12337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 break 2
12339 fi
12340done
12341done
12342
12343 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12344fi
12345fi
12346ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12347if test -n "$ac_ct_RANLIB"; then
12348 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12349echo "${ECHO_T}$ac_ct_RANLIB" >&6
12350else
12351 echo "$as_me:$LINENO: result: no" >&5
12352echo "${ECHO_T}no" >&6
12353fi
12354
12355 RANLIB=$ac_ct_RANLIB
12356else
12357 RANLIB="$ac_cv_prog_RANLIB"
12358fi
12359
12360
12361# Extract the first word of "ar", so it can be a program name with args.
12362set dummy ar; ac_word=$2
12363echo "$as_me:$LINENO: checking for $ac_word" >&5
12364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12365if test "${ac_cv_prog_AR+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367else
12368 if test -n "$AR"; then
12369 ac_cv_prog_AR="$AR" # Let the user override the test.
12370else
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12378 ac_cv_prog_AR="ar"
12379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 break 2
12381 fi
12382done
12383done
12384
12385fi
12386fi
12387AR=$ac_cv_prog_AR
12388if test -n "$AR"; then
12389 echo "$as_me:$LINENO: result: $AR" >&5
12390echo "${ECHO_T}$AR" >&6
12391else
12392 echo "$as_me:$LINENO: result: no" >&5
12393echo "${ECHO_T}no" >&6
12394fi
12395
12396if test "x$AR" = "x" ; then
77ffb593
JS
12397 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12398echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12399 { (exit 1); exit 1; }; }
12400fi
12401
12402# Find a good install program. We prefer a C program (faster),
12403# so one script is as good as another. But avoid the broken or
12404# incompatible versions:
12405# SysV /etc/install, /usr/sbin/install
12406# SunOS /usr/etc/install
12407# IRIX /sbin/install
12408# AIX /bin/install
12409# AmigaOS /C/install, which installs bootblocks on floppy discs
12410# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12411# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12412# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12413# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12414# ./install, which can be erroneously created by make from ./install.sh.
12415echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12416echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12417if test -z "$INSTALL"; then
12418if test "${ac_cv_path_install+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420else
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422for as_dir in $PATH
12423do
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 # Account for people who put trailing slashes in PATH elements.
12427case $as_dir/ in
12428 ./ | .// | /cC/* | \
12429 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12430 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12431 /usr/ucb/* ) ;;
12432 *)
12433 # OSF1 and SCO ODT 3.0 have their own names for install.
12434 # Don't use installbsd from OSF since it installs stuff as root
12435 # by default.
12436 for ac_prog in ginstall scoinst install; do
12437 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12438 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12439 if test $ac_prog = install &&
12440 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12441 # AIX install. It has an incompatible calling convention.
12442 :
12443 elif test $ac_prog = install &&
12444 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12445 # program-specific install script used by HP pwplus--don't use.
12446 :
12447 else
12448 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12449 break 3
12450 fi
12451 fi
a848cd7e
SC
12452 done
12453 done
12454 ;;
12455esac
12456done
12457
12458
12459fi
12460 if test "${ac_cv_path_install+set}" = set; then
12461 INSTALL=$ac_cv_path_install
12462 else
12463 # As a last resort, use the slow shell script. We don't cache a
12464 # path for INSTALL within a source directory, because that will
12465 # break other packages using the cache if that directory is
12466 # removed, or if the path is relative.
12467 INSTALL=$ac_install_sh
12468 fi
12469fi
12470echo "$as_me:$LINENO: result: $INSTALL" >&5
12471echo "${ECHO_T}$INSTALL" >&6
12472
12473# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12474# It thinks the first close brace ends the variable substitution.
12475test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12476
12477test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12478
12479test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12480
12481
12482case ${INSTALL} in
12483 /* ) # Absolute
12484 ;;
12485 ?:* ) # Drive letter, considered as absolute.
12486 ;;
12487 *)
12488 INSTALL=`pwd`/${INSTALL} ;;
12489esac
12490
a848cd7e
SC
12491
12492case "${host}" in
12493
12494 powerpc-*-darwin* )
12495 INSTALL_PROGRAM="cp -fp"
12496 INSTALL_DATA="cp -fp"
12497 ;;
12498 *)
12499 ;;
12500esac
12501
12502# Extract the first word of "strip", so it can be a program name with args.
12503set dummy strip; ac_word=$2
12504echo "$as_me:$LINENO: checking for $ac_word" >&5
12505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12506if test "${ac_cv_prog_STRIP+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12508else
12509 if test -n "$STRIP"; then
12510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12511else
12512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513for as_dir in $PATH
12514do
12515 IFS=$as_save_IFS
12516 test -z "$as_dir" && as_dir=.
12517 for ac_exec_ext in '' $ac_executable_extensions; do
12518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12519 ac_cv_prog_STRIP="strip"
12520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12521 break 2
12522 fi
12523done
12524done
12525
12526 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12527fi
12528fi
12529STRIP=$ac_cv_prog_STRIP
12530if test -n "$STRIP"; then
12531 echo "$as_me:$LINENO: result: $STRIP" >&5
12532echo "${ECHO_T}$STRIP" >&6
12533else
12534 echo "$as_me:$LINENO: result: no" >&5
12535echo "${ECHO_T}no" >&6
12536fi
12537
12538
12539echo "$as_me:$LINENO: checking if make is GNU make" >&5
12540echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12541if test "${wx_cv_prog_makeisgnu+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543else
12544
12545 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12546 egrep -s GNU > /dev/null); then
12547 wx_cv_prog_makeisgnu="yes"
12548 else
12549 wx_cv_prog_makeisgnu="no"
12550 fi
12551
12552fi
12553echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12554echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12555
12556if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12557 IF_GNU_MAKE=""
12558else
12559 IF_GNU_MAKE="#"
12560fi
12561
12562
12563
12564if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12565echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12566echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12567if test "${wx_cv_prog_makevpath+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569else
12570
12571cat - << EOF > confMake
12572check : file
12573 cp \$? \$@
12574 cp \$? final_file
12575EOF
12576
12577if test ! -d sub ; then
12578 mkdir sub
12579fi
12580echo dummy > sub/file
12581${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12582RESULT=$?
12583rm -f sub/file check final_file confMake
12584rmdir sub
12585if test "$RESULT" = 0; then
12586 wx_cv_prog_makevpath="yes"
12587else
12588 wx_cv_prog_makevpath="no"
12589fi
12590
12591fi
12592echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12593echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12594
12595if test "x$wx_cv_prog_makevpath" != "xyes"; then
12596{ { echo "$as_me:$LINENO: error:
12597You need a make-utility that is able to use the variable
12598VPATH correctly.
12599If your version of make does not support VPATH correctly,
12600please install GNU-make (possibly as gmake), and start
12601configure with the following command:
12602export MAKE=gmake; ./configure for sh-type shells
12603setenv MAKE gmake; ./configure for csh-type shells
12604Also please do remember to use gmake in this case every time
12605you are trying to compile.
12606" >&5
12607echo "$as_me: error:
12608You need a make-utility that is able to use the variable
12609VPATH correctly.
12610If your version of make does not support VPATH correctly,
12611please install GNU-make (possibly as gmake), and start
12612configure with the following command:
12613export MAKE=gmake; ./configure for sh-type shells
12614setenv MAKE gmake; ./configure for csh-type shells
12615Also please do remember to use gmake in this case every time
12616you are trying to compile.
12617" >&2;}
12618 { (exit 1); exit 1; }; }
12619fi fi
12620echo "$as_me:$LINENO: checking whether ln -s works" >&5
12621echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12622LN_S=$as_ln_s
12623if test "$LN_S" = "ln -s"; then
12624 echo "$as_me:$LINENO: result: yes" >&5
12625echo "${ECHO_T}yes" >&6
12626else
12627 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12628echo "${ECHO_T}no, using $LN_S" >&6
12629fi
12630
12631
12632
12633case "${host}" in
12634 *-pc-os2_emx | *-pc-os2-emx )
12635 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12636 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12637echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12638if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641 ac_check_lib_save_LIBS=$LIBS
12642LIBS="-lcExt $LIBS"
12643cat >conftest.$ac_ext <<_ACEOF
12644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649
12650/* Override any gcc2 internal prototype to avoid an error. */
12651#ifdef __cplusplus
12652extern "C"
12653#endif
12654/* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12656char drand48 ();
12657int
12658main ()
12659{
12660drand48 ();
12661 ;
12662 return 0;
12663}
12664_ACEOF
12665rm -f conftest.$ac_objext conftest$ac_exeext
12666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12667 (eval $ac_link) 2>conftest.er1
a848cd7e 12668 ac_status=$?
ac1cb8d3
VS
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
a848cd7e
SC
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
89be85c2
VS
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
ac1cb8d3
VS
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_cv_lib_cExt_drand48=yes
12688else
12689 echo "$as_me: failed program was:" >&5
12690sed 's/^/| /' conftest.$ac_ext >&5
12691
12692ac_cv_lib_cExt_drand48=no
12693fi
ac1cb8d3
VS
12694rm -f conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12696LIBS=$ac_check_lib_save_LIBS
12697fi
12698echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12699echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12700if test $ac_cv_lib_cExt_drand48 = yes; then
12701 LIBS="$LIBS -lcExt"
12702fi
12703
12704 else
12705 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12706 fi
391a765e 12707 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
12708echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12709if test "${wx_cv_gccversion+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711else
12712
391a765e
VS
12713 if test "$cross_compiling" = yes; then
12714 wx_cv_gccversion="EMX2"
12715
12716else
12717 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
12718/* confdefs.h. */
12719_ACEOF
12720cat confdefs.h >>conftest.$ac_ext
12721cat >>conftest.$ac_ext <<_ACEOF
12722/* end confdefs.h. */
12723
391a765e 12724 #include <stdio.h>
a848cd7e 12725
391a765e
VS
12726 int main()
12727 {
12728 FILE *f=fopen("conftestval", "w");
12729 if (!f) exit(1);
12730 fprintf(f,
a848cd7e 12731 #if (__GNUC__ < 3)
391a765e
VS
12732 "EMX2"
12733 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12734 "EMX3"
12735 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
12736 "Innotek5"
12737 #else
12738 "Innotek6"
a848cd7e 12739 #endif
391a765e
VS
12740 );
12741 exit(0);
12742 }
a848cd7e 12743
a848cd7e 12744_ACEOF
391a765e
VS
12745rm -f conftest$ac_exeext
12746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12747 (eval $ac_link) 2>&5
ac1cb8d3
VS
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 12750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
391a765e 12756 wx_cv_gccversion=`cat conftestval`
a848cd7e 12757else
391a765e
VS
12758 echo "$as_me: program exited with status $ac_status" >&5
12759echo "$as_me: failed program was:" >&5
a848cd7e
SC
12760sed 's/^/| /' conftest.$ac_ext >&5
12761
391a765e
VS
12762( exit $ac_status )
12763wx_cv_gccversion="EMX2"
a848cd7e 12764fi
391a765e 12765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 12766fi
a848cd7e
SC
12767
12768fi
12769echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12770echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 12771 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
12772 LIBS="$LIBS -lstdcpp"
12773 LDFLAGS="$LDFLAGS -Zsysv-signals"
12774 else
391a765e 12775 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
12776 LIBS="$LIBS -lstdcxx"
12777 LDFLAGS="$LDFLAGS -Zsysv-signals"
12778 else
12779 LIBS="$LIBS -lstdc++"
12780 fi
12781 fi
94acd38e
DE
12782 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
12783 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
12784echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
12785 wxUSE_OMF=yes
12786 fi
a848cd7e 12787 if test "$wxUSE_OMF" = "yes"; then
de59c161 12788 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12789 fi
12790 ;;
12791 *)
12792
12793
12794
12795 ac_ext=cc
12796ac_cpp='$CXXCPP $CPPFLAGS'
12797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12800
12801
95986553 12802 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
12803echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12804if test "${ac_cv_string_strcasecmp+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12806else
12807
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814
12815 #include <string.h>
12816
12817int
12818main ()
12819{
12820
12821 strcasecmp("foo", "bar");
12822
12823 ;
12824 return 0;
12825}
12826_ACEOF
12827rm -f conftest.$ac_objext conftest$ac_exeext
12828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12829 (eval $ac_link) 2>conftest.er1
a848cd7e 12830 ac_status=$?
ac1cb8d3
VS
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
a848cd7e
SC
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
89be85c2
VS
12836 { ac_try='test -z "$ac_cxx_werror_flag"
12837 || test ! -s conftest.err'
ac1cb8d3
VS
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; } &&
12843 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 ac_cv_string_strcasecmp=yes
12850else
12851 echo "$as_me: failed program was:" >&5
12852sed 's/^/| /' conftest.$ac_ext >&5
12853
12854ac_cv_string_strcasecmp=no
12855
12856fi
ac1cb8d3
VS
12857rm -f conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12859
12860fi
12861echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12862echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12863
12864 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12865 cat >>confdefs.h <<\_ACEOF
12866#define HAVE_STRCASECMP_IN_STRING_H 1
12867_ACEOF
12868
12869 else
12870 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12871echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12872if test "${ac_cv_strings_strcasecmp+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874else
12875
12876 cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h. */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h. */
12882
12883 #include <strings.h>
12884
12885int
12886main ()
12887{
12888
12889 strcasecmp("foo", "bar");
12890
12891 ;
12892 return 0;
12893}
12894_ACEOF
12895rm -f conftest.$ac_objext conftest$ac_exeext
12896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12897 (eval $ac_link) 2>conftest.er1
a848cd7e 12898 ac_status=$?
ac1cb8d3
VS
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
a848cd7e
SC
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
89be85c2
VS
12904 { ac_try='test -z "$ac_cxx_werror_flag"
12905 || test ! -s conftest.err'
ac1cb8d3
VS
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 ac_cv_strings_strcasecmp=yes
12918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922ac_cv_strings_strcasecmp=no
12923
12924fi
ac1cb8d3
VS
12925rm -f conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12927
12928fi
12929echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12930echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12931
0c3c69fc 12932 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12933 cat >>confdefs.h <<\_ACEOF
12934#define HAVE_STRCASECMP_IN_STRINGS_H 1
12935_ACEOF
12936
12937 else
12938 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12939echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12940 { (exit 1); exit 1; }; }
12941 fi
12942 fi
12943
12944 ac_ext=c
12945ac_cpp='$CPP $CPPFLAGS'
12946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12948ac_compiler_gnu=$ac_cv_c_compiler_gnu
12949
12950 ;;
12951esac
12952
12953
12954echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12955echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12956if test "${ac_cv_header_stdc+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12958else
12959 cat >conftest.$ac_ext <<_ACEOF
12960/* confdefs.h. */
12961_ACEOF
12962cat confdefs.h >>conftest.$ac_ext
12963cat >>conftest.$ac_ext <<_ACEOF
12964/* end confdefs.h. */
12965#include <stdlib.h>
12966#include <stdarg.h>
12967#include <string.h>
12968#include <float.h>
12969
12970int
12971main ()
12972{
12973
12974 ;
12975 return 0;
12976}
12977_ACEOF
12978rm -f conftest.$ac_objext
12979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12980 (eval $ac_compile) 2>conftest.er1
a848cd7e 12981 ac_status=$?
ac1cb8d3
VS
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
a848cd7e
SC
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
89be85c2
VS
12987 { ac_try='test -z "$ac_c_werror_flag"
12988 || test ! -s conftest.err'
ac1cb8d3
VS
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000 ac_cv_header_stdc=yes
13001else
13002 echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
13005ac_cv_header_stdc=no
13006fi
ac1cb8d3 13007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13008
13009if test $ac_cv_header_stdc = yes; then
13010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13011 cat >conftest.$ac_ext <<_ACEOF
13012/* confdefs.h. */
13013_ACEOF
13014cat confdefs.h >>conftest.$ac_ext
13015cat >>conftest.$ac_ext <<_ACEOF
13016/* end confdefs.h. */
13017#include <string.h>
13018
13019_ACEOF
13020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13021 $EGREP "memchr" >/dev/null 2>&1; then
13022 :
13023else
13024 ac_cv_header_stdc=no
13025fi
13026rm -f conftest*
13027
13028fi
13029
13030if test $ac_cv_header_stdc = yes; then
13031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13032 cat >conftest.$ac_ext <<_ACEOF
13033/* confdefs.h. */
13034_ACEOF
13035cat confdefs.h >>conftest.$ac_ext
13036cat >>conftest.$ac_ext <<_ACEOF
13037/* end confdefs.h. */
13038#include <stdlib.h>
13039
13040_ACEOF
13041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13042 $EGREP "free" >/dev/null 2>&1; then
13043 :
13044else
13045 ac_cv_header_stdc=no
13046fi
13047rm -f conftest*
13048
13049fi
13050
13051if test $ac_cv_header_stdc = yes; then
13052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13053 if test "$cross_compiling" = yes; then
13054 :
13055else
13056 cat >conftest.$ac_ext <<_ACEOF
13057/* confdefs.h. */
13058_ACEOF
13059cat confdefs.h >>conftest.$ac_ext
13060cat >>conftest.$ac_ext <<_ACEOF
13061/* end confdefs.h. */
13062#include <ctype.h>
13063#if ((' ' & 0x0FF) == 0x020)
13064# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13065# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13066#else
13067# define ISLOWER(c) \
ac1cb8d3
VS
13068 (('a' <= (c) && (c) <= 'i') \
13069 || ('j' <= (c) && (c) <= 'r') \
13070 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13072#endif
13073
13074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13075int
13076main ()
13077{
13078 int i;
13079 for (i = 0; i < 256; i++)
13080 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13081 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13082 exit(2);
13083 exit (0);
13084}
13085_ACEOF
13086rm -f conftest$ac_exeext
13087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13088 (eval $ac_link) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 :
13098else
13099 echo "$as_me: program exited with status $ac_status" >&5
13100echo "$as_me: failed program was:" >&5
13101sed 's/^/| /' conftest.$ac_ext >&5
13102
13103( exit $ac_status )
13104ac_cv_header_stdc=no
13105fi
ac1cb8d3 13106rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13107fi
13108fi
13109fi
13110echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13111echo "${ECHO_T}$ac_cv_header_stdc" >&6
13112if test $ac_cv_header_stdc = yes; then
13113
13114cat >>confdefs.h <<\_ACEOF
13115#define STDC_HEADERS 1
13116_ACEOF
13117
13118fi
13119
13120# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13131 inttypes.h stdint.h unistd.h
a848cd7e
SC
13132do
13133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13134echo "$as_me:$LINENO: checking for $ac_header" >&5
13135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13136if eval "test \"\${$as_ac_Header+set}\" = set"; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138else
13139 cat >conftest.$ac_ext <<_ACEOF
13140/* confdefs.h. */
13141_ACEOF
13142cat confdefs.h >>conftest.$ac_ext
13143cat >>conftest.$ac_ext <<_ACEOF
13144/* end confdefs.h. */
13145$ac_includes_default
13146
13147#include <$ac_header>
13148_ACEOF
13149rm -f conftest.$ac_objext
13150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13151 (eval $ac_compile) 2>conftest.er1
a848cd7e 13152 ac_status=$?
ac1cb8d3
VS
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
a848cd7e
SC
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
89be85c2
VS
13158 { ac_try='test -z "$ac_c_werror_flag"
13159 || test ! -s conftest.err'
ac1cb8d3
VS
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; }; then
13171 eval "$as_ac_Header=yes"
13172else
13173 echo "$as_me: failed program was:" >&5
13174sed 's/^/| /' conftest.$ac_ext >&5
13175
13176eval "$as_ac_Header=no"
13177fi
ac1cb8d3 13178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13179fi
13180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13182if test `eval echo '${'$as_ac_Header'}'` = yes; then
13183 cat >>confdefs.h <<_ACEOF
13184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13185_ACEOF
13186
13187fi
13188
13189done
13190
13191
13192
13193for ac_header in stdlib.h
13194do
13195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13196if eval "test \"\${$as_ac_Header+set}\" = set"; then
13197 echo "$as_me:$LINENO: checking for $ac_header" >&5
13198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13199if eval "test \"\${$as_ac_Header+set}\" = set"; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201fi
13202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13204else
13205 # Is the header compilable?
13206echo "$as_me:$LINENO: checking $ac_header usability" >&5
13207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13208cat >conftest.$ac_ext <<_ACEOF
13209/* confdefs.h. */
13210_ACEOF
13211cat confdefs.h >>conftest.$ac_ext
13212cat >>conftest.$ac_ext <<_ACEOF
13213/* end confdefs.h. */
13214$ac_includes_default
13215#include <$ac_header>
13216_ACEOF
13217rm -f conftest.$ac_objext
13218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13219 (eval $ac_compile) 2>conftest.er1
a848cd7e 13220 ac_status=$?
ac1cb8d3
VS
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
a848cd7e
SC
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
89be85c2
VS
13226 { ac_try='test -z "$ac_c_werror_flag"
13227 || test ! -s conftest.err'
ac1cb8d3
VS
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_header_compiler=yes
13240else
13241 echo "$as_me: failed program was:" >&5
13242sed 's/^/| /' conftest.$ac_ext >&5
13243
13244ac_header_compiler=no
13245fi
ac1cb8d3 13246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13248echo "${ECHO_T}$ac_header_compiler" >&6
13249
13250# Is the header present?
13251echo "$as_me:$LINENO: checking $ac_header presence" >&5
13252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13253cat >conftest.$ac_ext <<_ACEOF
13254/* confdefs.h. */
13255_ACEOF
13256cat confdefs.h >>conftest.$ac_ext
13257cat >>conftest.$ac_ext <<_ACEOF
13258/* end confdefs.h. */
13259#include <$ac_header>
13260_ACEOF
13261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } >/dev/null; then
13269 if test -s conftest.err; then
13270 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13272 else
13273 ac_cpp_err=
13274 fi
13275else
13276 ac_cpp_err=yes
13277fi
13278if test -z "$ac_cpp_err"; then
13279 ac_header_preproc=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ac_header_preproc=no
13285fi
13286rm -f conftest.err conftest.$ac_ext
13287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13288echo "${ECHO_T}$ac_header_preproc" >&6
13289
13290# So? What about this header?
ac1cb8d3
VS
13291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13292 yes:no: )
a848cd7e
SC
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13297 ac_header_preproc=yes
a848cd7e 13298 ;;
ac1cb8d3 13299 no:yes:* )
a848cd7e
SC
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13303echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13307echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13312 (
13313 cat <<\_ASBOX
ac1cb8d3
VS
13314## ----------------------------------------- ##
13315## Report this to wx-dev@lists.wxwidgets.org ##
13316## ----------------------------------------- ##
a848cd7e
SC
13317_ASBOX
13318 ) |
13319 sed "s/^/$as_me: WARNING: /" >&2
13320 ;;
13321esac
13322echo "$as_me:$LINENO: checking for $ac_header" >&5
13323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13324if eval "test \"\${$as_ac_Header+set}\" = set"; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
ac1cb8d3 13327 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13328fi
13329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13331
13332fi
13333if test `eval echo '${'$as_ac_Header'}'` = yes; then
13334 cat >>confdefs.h <<_ACEOF
13335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13336_ACEOF
13337
13338fi
13339
13340done
13341
13342
13343for ac_header in malloc.h
13344do
13345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13346if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347 echo "$as_me:$LINENO: checking for $ac_header" >&5
13348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13349if eval "test \"\${$as_ac_Header+set}\" = set"; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351fi
13352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13354else
13355 # Is the header compilable?
13356echo "$as_me:$LINENO: checking $ac_header usability" >&5
13357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13358cat >conftest.$ac_ext <<_ACEOF
13359/* confdefs.h. */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
13363/* end confdefs.h. */
13364$ac_includes_default
13365#include <$ac_header>
13366_ACEOF
13367rm -f conftest.$ac_objext
13368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13369 (eval $ac_compile) 2>conftest.er1
a848cd7e 13370 ac_status=$?
ac1cb8d3
VS
13371 grep -v '^ *+' conftest.er1 >conftest.err
13372 rm -f conftest.er1
13373 cat conftest.err >&5
a848cd7e
SC
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
89be85c2
VS
13376 { ac_try='test -z "$ac_c_werror_flag"
13377 || test ! -s conftest.err'
ac1cb8d3
VS
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; } &&
13383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_header_compiler=yes
13390else
13391 echo "$as_me: failed program was:" >&5
13392sed 's/^/| /' conftest.$ac_ext >&5
13393
13394ac_header_compiler=no
13395fi
ac1cb8d3 13396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13397echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13398echo "${ECHO_T}$ac_header_compiler" >&6
13399
13400# Is the header present?
13401echo "$as_me:$LINENO: checking $ac_header presence" >&5
13402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13403cat >conftest.$ac_ext <<_ACEOF
13404/* confdefs.h. */
13405_ACEOF
13406cat confdefs.h >>conftest.$ac_ext
13407cat >>conftest.$ac_ext <<_ACEOF
13408/* end confdefs.h. */
13409#include <$ac_header>
13410_ACEOF
13411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13413 ac_status=$?
13414 grep -v '^ *+' conftest.er1 >conftest.err
13415 rm -f conftest.er1
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } >/dev/null; then
13419 if test -s conftest.err; then
13420 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13422 else
13423 ac_cpp_err=
13424 fi
13425else
13426 ac_cpp_err=yes
13427fi
13428if test -z "$ac_cpp_err"; then
13429 ac_header_preproc=yes
13430else
13431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 ac_header_preproc=no
13435fi
13436rm -f conftest.err conftest.$ac_ext
13437echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13438echo "${ECHO_T}$ac_header_preproc" >&6
13439
13440# So? What about this header?
ac1cb8d3
VS
13441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13442 yes:no: )
a848cd7e
SC
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13447 ac_header_preproc=yes
a848cd7e 13448 ;;
ac1cb8d3 13449 no:yes:* )
a848cd7e
SC
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13462 (
13463 cat <<\_ASBOX
ac1cb8d3
VS
13464## ----------------------------------------- ##
13465## Report this to wx-dev@lists.wxwidgets.org ##
13466## ----------------------------------------- ##
a848cd7e
SC
13467_ASBOX
13468 ) |
13469 sed "s/^/$as_me: WARNING: /" >&2
13470 ;;
13471esac
13472echo "$as_me:$LINENO: checking for $ac_header" >&5
13473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13474if eval "test \"\${$as_ac_Header+set}\" = set"; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476else
ac1cb8d3 13477 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13478fi
13479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13481
13482fi
13483if test `eval echo '${'$as_ac_Header'}'` = yes; then
13484 cat >>confdefs.h <<_ACEOF
13485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13486_ACEOF
13487
13488fi
13489
13490done
13491
13492
13493for ac_header in unistd.h
13494do
13495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13496if eval "test \"\${$as_ac_Header+set}\" = set"; then
13497 echo "$as_me:$LINENO: checking for $ac_header" >&5
13498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13499if eval "test \"\${$as_ac_Header+set}\" = set"; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501fi
13502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13504else
13505 # Is the header compilable?
13506echo "$as_me:$LINENO: checking $ac_header usability" >&5
13507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13508cat >conftest.$ac_ext <<_ACEOF
13509/* confdefs.h. */
13510_ACEOF
13511cat confdefs.h >>conftest.$ac_ext
13512cat >>conftest.$ac_ext <<_ACEOF
13513/* end confdefs.h. */
13514$ac_includes_default
13515#include <$ac_header>
13516_ACEOF
13517rm -f conftest.$ac_objext
13518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13519 (eval $ac_compile) 2>conftest.er1
a848cd7e 13520 ac_status=$?
ac1cb8d3
VS
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
a848cd7e
SC
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
89be85c2
VS
13526 { ac_try='test -z "$ac_c_werror_flag"
13527 || test ! -s conftest.err'
ac1cb8d3
VS
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; } &&
13533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_header_compiler=yes
13540else
13541 echo "$as_me: failed program was:" >&5
13542sed 's/^/| /' conftest.$ac_ext >&5
13543
13544ac_header_compiler=no
13545fi
ac1cb8d3 13546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13548echo "${ECHO_T}$ac_header_compiler" >&6
13549
13550# Is the header present?
13551echo "$as_me:$LINENO: checking $ac_header presence" >&5
13552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13553cat >conftest.$ac_ext <<_ACEOF
13554/* confdefs.h. */
13555_ACEOF
13556cat confdefs.h >>conftest.$ac_ext
13557cat >>conftest.$ac_ext <<_ACEOF
13558/* end confdefs.h. */
13559#include <$ac_header>
13560_ACEOF
13561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } >/dev/null; then
13569 if test -s conftest.err; then
13570 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13572 else
13573 ac_cpp_err=
13574 fi
13575else
13576 ac_cpp_err=yes
13577fi
13578if test -z "$ac_cpp_err"; then
13579 ac_header_preproc=yes
13580else
13581 echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
13583
13584 ac_header_preproc=no
13585fi
13586rm -f conftest.err conftest.$ac_ext
13587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13588echo "${ECHO_T}$ac_header_preproc" >&6
13589
13590# So? What about this header?
ac1cb8d3
VS
13591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13592 yes:no: )
a848cd7e
SC
13593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13596echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13597 ac_header_preproc=yes
a848cd7e 13598 ;;
ac1cb8d3 13599 no:yes:* )
a848cd7e
SC
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13603echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13605echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13607echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13611echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13612 (
13613 cat <<\_ASBOX
ac1cb8d3
VS
13614## ----------------------------------------- ##
13615## Report this to wx-dev@lists.wxwidgets.org ##
13616## ----------------------------------------- ##
a848cd7e
SC
13617_ASBOX
13618 ) |
13619 sed "s/^/$as_me: WARNING: /" >&2
13620 ;;
13621esac
13622echo "$as_me:$LINENO: checking for $ac_header" >&5
13623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13624if eval "test \"\${$as_ac_Header+set}\" = set"; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626else
ac1cb8d3 13627 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13628fi
13629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13631
13632fi
13633if test `eval echo '${'$as_ac_Header'}'` = yes; then
13634 cat >>confdefs.h <<_ACEOF
13635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13636_ACEOF
13637
13638fi
13639
13640done
13641
13642
13643for ac_header in wchar.h
13644do
13645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13646if eval "test \"\${$as_ac_Header+set}\" = set"; then
13647 echo "$as_me:$LINENO: checking for $ac_header" >&5
13648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13649if eval "test \"\${$as_ac_Header+set}\" = set"; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651fi
13652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13654else
13655 # Is the header compilable?
13656echo "$as_me:$LINENO: checking $ac_header usability" >&5
13657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13658cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
13664$ac_includes_default
13665#include <$ac_header>
13666_ACEOF
13667rm -f conftest.$ac_objext
13668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13669 (eval $ac_compile) 2>conftest.er1
a848cd7e 13670 ac_status=$?
ac1cb8d3
VS
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
a848cd7e
SC
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
89be85c2
VS
13676 { ac_try='test -z "$ac_c_werror_flag"
13677 || test ! -s conftest.err'
ac1cb8d3
VS
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_header_compiler=yes
13690else
13691 echo "$as_me: failed program was:" >&5
13692sed 's/^/| /' conftest.$ac_ext >&5
13693
13694ac_header_compiler=no
13695fi
ac1cb8d3 13696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13698echo "${ECHO_T}$ac_header_compiler" >&6
13699
13700# Is the header present?
13701echo "$as_me:$LINENO: checking $ac_header presence" >&5
13702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13703cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709#include <$ac_header>
13710_ACEOF
13711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13713 ac_status=$?
13714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } >/dev/null; then
13719 if test -s conftest.err; then
13720 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13722 else
13723 ac_cpp_err=
13724 fi
13725else
13726 ac_cpp_err=yes
13727fi
13728if test -z "$ac_cpp_err"; then
13729 ac_header_preproc=yes
13730else
13731 echo "$as_me: failed program was:" >&5
13732sed 's/^/| /' conftest.$ac_ext >&5
13733
13734 ac_header_preproc=no
13735fi
13736rm -f conftest.err conftest.$ac_ext
13737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13738echo "${ECHO_T}$ac_header_preproc" >&6
13739
13740# So? What about this header?
ac1cb8d3
VS
13741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13742 yes:no: )
a848cd7e
SC
13743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13747 ac_header_preproc=yes
a848cd7e 13748 ;;
ac1cb8d3 13749 no:yes:* )
a848cd7e
SC
13750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13762 (
13763 cat <<\_ASBOX
ac1cb8d3
VS
13764## ----------------------------------------- ##
13765## Report this to wx-dev@lists.wxwidgets.org ##
13766## ----------------------------------------- ##
a848cd7e
SC
13767_ASBOX
13768 ) |
13769 sed "s/^/$as_me: WARNING: /" >&2
13770 ;;
13771esac
13772echo "$as_me:$LINENO: checking for $ac_header" >&5
13773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13774if eval "test \"\${$as_ac_Header+set}\" = set"; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
ac1cb8d3 13777 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13778fi
13779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13781
13782fi
13783if test `eval echo '${'$as_ac_Header'}'` = yes; then
13784 cat >>confdefs.h <<_ACEOF
13785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13786_ACEOF
13787
13788fi
13789
13790done
13791
13792
13793if test "$ac_cv_header_wchar_h" != "yes"; then
13794
13795for ac_header in wcstr.h
13796do
13797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13798if eval "test \"\${$as_ac_Header+set}\" = set"; then
13799 echo "$as_me:$LINENO: checking for $ac_header" >&5
13800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13801if eval "test \"\${$as_ac_Header+set}\" = set"; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803fi
13804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13806else
13807 # Is the header compilable?
13808echo "$as_me:$LINENO: checking $ac_header usability" >&5
13809echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13810cat >conftest.$ac_ext <<_ACEOF
13811/* confdefs.h. */
13812_ACEOF
13813cat confdefs.h >>conftest.$ac_ext
13814cat >>conftest.$ac_ext <<_ACEOF
13815/* end confdefs.h. */
13816$ac_includes_default
13817#include <$ac_header>
13818_ACEOF
13819rm -f conftest.$ac_objext
13820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13821 (eval $ac_compile) 2>conftest.er1
a848cd7e 13822 ac_status=$?
ac1cb8d3
VS
13823 grep -v '^ *+' conftest.er1 >conftest.err
13824 rm -f conftest.er1
13825 cat conftest.err >&5
a848cd7e
SC
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
89be85c2
VS
13828 { ac_try='test -z "$ac_c_werror_flag"
13829 || test ! -s conftest.err'
ac1cb8d3
VS
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 ac_header_compiler=yes
13842else
13843 echo "$as_me: failed program was:" >&5
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
13846ac_header_compiler=no
13847fi
ac1cb8d3 13848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13850echo "${ECHO_T}$ac_header_compiler" >&6
13851
13852# Is the header present?
13853echo "$as_me:$LINENO: checking $ac_header presence" >&5
13854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13855cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861#include <$ac_header>
13862_ACEOF
13863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13865 ac_status=$?
13866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } >/dev/null; then
13871 if test -s conftest.err; then
13872 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13874 else
13875 ac_cpp_err=
13876 fi
13877else
13878 ac_cpp_err=yes
13879fi
13880if test -z "$ac_cpp_err"; then
13881 ac_header_preproc=yes
13882else
13883 echo "$as_me: failed program was:" >&5
13884sed 's/^/| /' conftest.$ac_ext >&5
13885
13886 ac_header_preproc=no
13887fi
13888rm -f conftest.err conftest.$ac_ext
13889echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13890echo "${ECHO_T}$ac_header_preproc" >&6
13891
13892# So? What about this header?
ac1cb8d3
VS
13893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13894 yes:no: )
a848cd7e
SC
13895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13898echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13899 ac_header_preproc=yes
a848cd7e 13900 ;;
ac1cb8d3 13901 no:yes:* )
a848cd7e
SC
13902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13903echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13905echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13907echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13909echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13913echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13914 (
13915 cat <<\_ASBOX
ac1cb8d3
VS
13916## ----------------------------------------- ##
13917## Report this to wx-dev@lists.wxwidgets.org ##
13918## ----------------------------------------- ##
a848cd7e
SC
13919_ASBOX
13920 ) |
13921 sed "s/^/$as_me: WARNING: /" >&2
13922 ;;
13923esac
13924echo "$as_me:$LINENO: checking for $ac_header" >&5
13925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13926if eval "test \"\${$as_ac_Header+set}\" = set"; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928else
ac1cb8d3 13929 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13930fi
13931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13933
13934fi
13935if test `eval echo '${'$as_ac_Header'}'` = yes; then
13936 cat >>confdefs.h <<_ACEOF
13937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13938_ACEOF
13939
13940fi
13941
13942done
13943
13944fi
13945
13946
13947for ac_header in fnmatch.h
13948do
13949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13950if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo "$as_me:$LINENO: checking for $ac_header" >&5
13952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13953if eval "test \"\${$as_ac_Header+set}\" = set"; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955fi
13956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13958else
13959 # Is the header compilable?
13960echo "$as_me:$LINENO: checking $ac_header usability" >&5
13961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13962cat >conftest.$ac_ext <<_ACEOF
13963/* confdefs.h. */
13964_ACEOF
13965cat confdefs.h >>conftest.$ac_ext
13966cat >>conftest.$ac_ext <<_ACEOF
13967/* end confdefs.h. */
13968$ac_includes_default
13969#include <$ac_header>
13970_ACEOF
13971rm -f conftest.$ac_objext
13972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13973 (eval $ac_compile) 2>conftest.er1
a848cd7e 13974 ac_status=$?
ac1cb8d3
VS
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
a848cd7e
SC
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
89be85c2
VS
13980 { ac_try='test -z "$ac_c_werror_flag"
13981 || test ! -s conftest.err'
ac1cb8d3
VS
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; } &&
13987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_header_compiler=yes
13994else
13995 echo "$as_me: failed program was:" >&5
13996sed 's/^/| /' conftest.$ac_ext >&5
13997
13998ac_header_compiler=no
13999fi
ac1cb8d3 14000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14002echo "${ECHO_T}$ac_header_compiler" >&6
14003
14004# Is the header present?
14005echo "$as_me:$LINENO: checking $ac_header presence" >&5
14006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14007cat >conftest.$ac_ext <<_ACEOF
14008/* confdefs.h. */
14009_ACEOF
14010cat confdefs.h >>conftest.$ac_ext
14011cat >>conftest.$ac_ext <<_ACEOF
14012/* end confdefs.h. */
14013#include <$ac_header>
14014_ACEOF
14015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14017 ac_status=$?
14018 grep -v '^ *+' conftest.er1 >conftest.err
14019 rm -f conftest.er1
14020 cat conftest.err >&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } >/dev/null; then
14023 if test -s conftest.err; then
14024 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14026 else
14027 ac_cpp_err=
14028 fi
14029else
14030 ac_cpp_err=yes
14031fi
14032if test -z "$ac_cpp_err"; then
14033 ac_header_preproc=yes
14034else
14035 echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_header_preproc=no
14039fi
14040rm -f conftest.err conftest.$ac_ext
14041echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14042echo "${ECHO_T}$ac_header_preproc" >&6
14043
14044# So? What about this header?
ac1cb8d3
VS
14045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14046 yes:no: )
a848cd7e
SC
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14051 ac_header_preproc=yes
a848cd7e 14052 ;;
ac1cb8d3 14053 no:yes:* )
a848cd7e
SC
14054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14057echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14061echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14066 (
14067 cat <<\_ASBOX
ac1cb8d3
VS
14068## ----------------------------------------- ##
14069## Report this to wx-dev@lists.wxwidgets.org ##
14070## ----------------------------------------- ##
a848cd7e
SC
14071_ASBOX
14072 ) |
14073 sed "s/^/$as_me: WARNING: /" >&2
14074 ;;
14075esac
14076echo "$as_me:$LINENO: checking for $ac_header" >&5
14077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14078if eval "test \"\${$as_ac_Header+set}\" = set"; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080else
ac1cb8d3 14081 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14082fi
14083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14085
14086fi
14087if test `eval echo '${'$as_ac_Header'}'` = yes; then
14088 cat >>confdefs.h <<_ACEOF
14089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14090_ACEOF
14091
14092fi
14093
14094done
14095
14096
14097if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14098
14099for ac_func in fnmatch
14100do
14101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14102echo "$as_me:$LINENO: checking for $ac_func" >&5
14103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14104if eval "test \"\${$as_ac_var+set}\" = set"; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14106else
14107 cat >conftest.$ac_ext <<_ACEOF
14108/* confdefs.h. */
14109_ACEOF
14110cat confdefs.h >>conftest.$ac_ext
14111cat >>conftest.$ac_ext <<_ACEOF
14112/* end confdefs.h. */
ac1cb8d3
VS
14113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14115#define $ac_func innocuous_$ac_func
14116
a848cd7e
SC
14117/* System header to define __stub macros and hopefully few prototypes,
14118 which can conflict with char $ac_func (); below.
14119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14120 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14121
a848cd7e
SC
14122#ifdef __STDC__
14123# include <limits.h>
14124#else
14125# include <assert.h>
14126#endif
ac1cb8d3
VS
14127
14128#undef $ac_func
14129
a848cd7e
SC
14130/* Override any gcc2 internal prototype to avoid an error. */
14131#ifdef __cplusplus
14132extern "C"
14133{
14134#endif
14135/* We use char because int might match the return type of a gcc2
14136 builtin and then its argument prototype would still apply. */
14137char $ac_func ();
14138/* The GNU C library defines this for functions which it implements
14139 to always fail with ENOSYS. Some functions are actually named
14140 something starting with __ and the normal name is an alias. */
14141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14142choke me
14143#else
14144char (*f) () = $ac_func;
14145#endif
14146#ifdef __cplusplus
14147}
14148#endif
14149
14150int
14151main ()
14152{
14153return f != $ac_func;
14154 ;
14155 return 0;
14156}
14157_ACEOF
14158rm -f conftest.$ac_objext conftest$ac_exeext
14159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14160 (eval $ac_link) 2>conftest.er1
a848cd7e 14161 ac_status=$?
ac1cb8d3
VS
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
a848cd7e
SC
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
89be85c2
VS
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
ac1cb8d3
VS
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 eval "$as_ac_var=yes"
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185eval "$as_ac_var=no"
14186fi
ac1cb8d3
VS
14187rm -f conftest.err conftest.$ac_objext \
14188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14189fi
14190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14192if test `eval echo '${'$as_ac_var'}'` = yes; then
14193 cat >>confdefs.h <<_ACEOF
14194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14195_ACEOF
14196
14197fi
14198done
14199
14200fi
14201
14202
14203for ac_header in langinfo.h
14204do
14205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14206if eval "test \"\${$as_ac_Header+set}\" = set"; then
14207 echo "$as_me:$LINENO: checking for $ac_header" >&5
14208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14209if eval "test \"\${$as_ac_Header+set}\" = set"; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211fi
14212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14214else
14215 # Is the header compilable?
14216echo "$as_me:$LINENO: checking $ac_header usability" >&5
14217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14218cat >conftest.$ac_ext <<_ACEOF
14219/* confdefs.h. */
14220_ACEOF
14221cat confdefs.h >>conftest.$ac_ext
14222cat >>conftest.$ac_ext <<_ACEOF
14223/* end confdefs.h. */
14224$ac_includes_default
14225#include <$ac_header>
14226_ACEOF
14227rm -f conftest.$ac_objext
14228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14229 (eval $ac_compile) 2>conftest.er1
a848cd7e 14230 ac_status=$?
ac1cb8d3
VS
14231 grep -v '^ *+' conftest.er1 >conftest.err
14232 rm -f conftest.er1
14233 cat conftest.err >&5
a848cd7e
SC
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
89be85c2
VS
14236 { ac_try='test -z "$ac_c_werror_flag"
14237 || test ! -s conftest.err'
ac1cb8d3
VS
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
14243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 ac_header_compiler=yes
14250else
14251 echo "$as_me: failed program was:" >&5
14252sed 's/^/| /' conftest.$ac_ext >&5
14253
14254ac_header_compiler=no
14255fi
ac1cb8d3 14256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14258echo "${ECHO_T}$ac_header_compiler" >&6
14259
14260# Is the header present?
14261echo "$as_me:$LINENO: checking $ac_header presence" >&5
14262echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14263cat >conftest.$ac_ext <<_ACEOF
14264/* confdefs.h. */
14265_ACEOF
14266cat confdefs.h >>conftest.$ac_ext
14267cat >>conftest.$ac_ext <<_ACEOF
14268/* end confdefs.h. */
14269#include <$ac_header>
14270_ACEOF
14271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14273 ac_status=$?
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } >/dev/null; then
14279 if test -s conftest.err; then
14280 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14282 else
14283 ac_cpp_err=
14284 fi
14285else
14286 ac_cpp_err=yes
14287fi
14288if test -z "$ac_cpp_err"; then
14289 ac_header_preproc=yes
14290else
14291 echo "$as_me: failed program was:" >&5
14292sed 's/^/| /' conftest.$ac_ext >&5
14293
14294 ac_header_preproc=no
14295fi
14296rm -f conftest.err conftest.$ac_ext
14297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14298echo "${ECHO_T}$ac_header_preproc" >&6
14299
14300# So? What about this header?
ac1cb8d3
VS
14301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14302 yes:no: )
a848cd7e
SC
14303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14307 ac_header_preproc=yes
a848cd7e 14308 ;;
ac1cb8d3 14309 no:yes:* )
a848cd7e
SC
14310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14313echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14317echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14322 (
14323 cat <<\_ASBOX
ac1cb8d3
VS
14324## ----------------------------------------- ##
14325## Report this to wx-dev@lists.wxwidgets.org ##
14326## ----------------------------------------- ##
a848cd7e
SC
14327_ASBOX
14328 ) |
14329 sed "s/^/$as_me: WARNING: /" >&2
14330 ;;
14331esac
14332echo "$as_me:$LINENO: checking for $ac_header" >&5
14333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14334if eval "test \"\${$as_ac_Header+set}\" = set"; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336else
ac1cb8d3 14337 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14338fi
14339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14341
14342fi
14343if test `eval echo '${'$as_ac_Header'}'` = yes; then
14344 cat >>confdefs.h <<_ACEOF
14345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14346_ACEOF
14347
14348fi
14349
14350done
14351
14352
14353case "${host}" in
14354 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14355 if test $ac_cv_header_langinfo_h = "yes" \
14356 -a \( "$wx_cv_gccversion" = "EMX2" \
14357 -o "$wx_cv_gccversion" = "EMX3" \
14358 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14359 LIBS="$LIBS -lintl"
14360 fi
14361 ;;
14362esac
14363
14364if test "$wxUSE_GUI" = "yes"; then
14365 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14366
14367for ac_header in X11/Xlib.h
14368do
14369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14370if eval "test \"\${$as_ac_Header+set}\" = set"; then
14371 echo "$as_me:$LINENO: checking for $ac_header" >&5
14372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14373if eval "test \"\${$as_ac_Header+set}\" = set"; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375fi
14376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14378else
14379 # Is the header compilable?
14380echo "$as_me:$LINENO: checking $ac_header usability" >&5
14381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14382cat >conftest.$ac_ext <<_ACEOF
14383/* confdefs.h. */
14384_ACEOF
14385cat confdefs.h >>conftest.$ac_ext
14386cat >>conftest.$ac_ext <<_ACEOF
14387/* end confdefs.h. */
14388$ac_includes_default
14389#include <$ac_header>
14390_ACEOF
14391rm -f conftest.$ac_objext
14392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14393 (eval $ac_compile) 2>conftest.er1
a848cd7e 14394 ac_status=$?
ac1cb8d3
VS
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
a848cd7e
SC
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } &&
89be85c2
VS
14400 { ac_try='test -z "$ac_c_werror_flag"
14401 || test ! -s conftest.err'
ac1cb8d3
VS
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 ac_header_compiler=yes
14414else
14415 echo "$as_me: failed program was:" >&5
14416sed 's/^/| /' conftest.$ac_ext >&5
14417
14418ac_header_compiler=no
14419fi
ac1cb8d3 14420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14422echo "${ECHO_T}$ac_header_compiler" >&6
14423
14424# Is the header present?
14425echo "$as_me:$LINENO: checking $ac_header presence" >&5
14426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14427cat >conftest.$ac_ext <<_ACEOF
14428/* confdefs.h. */
14429_ACEOF
14430cat confdefs.h >>conftest.$ac_ext
14431cat >>conftest.$ac_ext <<_ACEOF
14432/* end confdefs.h. */
14433#include <$ac_header>
14434_ACEOF
14435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14437 ac_status=$?
14438 grep -v '^ *+' conftest.er1 >conftest.err
14439 rm -f conftest.er1
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } >/dev/null; then
14443 if test -s conftest.err; then
14444 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14446 else
14447 ac_cpp_err=
14448 fi
14449else
14450 ac_cpp_err=yes
14451fi
14452if test -z "$ac_cpp_err"; then
14453 ac_header_preproc=yes
14454else
14455 echo "$as_me: failed program was:" >&5
14456sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ac_header_preproc=no
14459fi
14460rm -f conftest.err conftest.$ac_ext
14461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14462echo "${ECHO_T}$ac_header_preproc" >&6
14463
14464# So? What about this header?
ac1cb8d3
VS
14465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14466 yes:no: )
a848cd7e
SC
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14471 ac_header_preproc=yes
a848cd7e 14472 ;;
ac1cb8d3 14473 no:yes:* )
a848cd7e
SC
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14486 (
14487 cat <<\_ASBOX
ac1cb8d3
VS
14488## ----------------------------------------- ##
14489## Report this to wx-dev@lists.wxwidgets.org ##
14490## ----------------------------------------- ##
a848cd7e
SC
14491_ASBOX
14492 ) |
14493 sed "s/^/$as_me: WARNING: /" >&2
14494 ;;
14495esac
14496echo "$as_me:$LINENO: checking for $ac_header" >&5
14497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14498if eval "test \"\${$as_ac_Header+set}\" = set"; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14500else
ac1cb8d3 14501 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14502fi
14503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14505
14506fi
14507if test `eval echo '${'$as_ac_Header'}'` = yes; then
14508 cat >>confdefs.h <<_ACEOF
14509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14510_ACEOF
14511
14512fi
14513
14514done
14515
14516
14517for ac_header in X11/XKBlib.h
14518do
14519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14520echo "$as_me:$LINENO: checking for $ac_header" >&5
14521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14522if eval "test \"\${$as_ac_Header+set}\" = set"; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524else
14525 cat >conftest.$ac_ext <<_ACEOF
14526/* confdefs.h. */
14527_ACEOF
14528cat confdefs.h >>conftest.$ac_ext
14529cat >>conftest.$ac_ext <<_ACEOF
14530/* end confdefs.h. */
14531
14532 #if HAVE_X11_XLIB_H
14533 #include <X11/Xlib.h>
14534 #endif
14535
14536
14537#include <$ac_header>
14538_ACEOF
14539rm -f conftest.$ac_objext
14540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14541 (eval $ac_compile) 2>conftest.er1
a848cd7e 14542 ac_status=$?
ac1cb8d3
VS
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
a848cd7e
SC
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
89be85c2
VS
14548 { ac_try='test -z "$ac_c_werror_flag"
14549 || test ! -s conftest.err'
ac1cb8d3
VS
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 eval "$as_ac_Header=yes"
14562else
14563 echo "$as_me: failed program was:" >&5
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
14566eval "$as_ac_Header=no"
14567fi
ac1cb8d3 14568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14569fi
14570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14572if test `eval echo '${'$as_ac_Header'}'` = yes; then
14573 cat >>confdefs.h <<_ACEOF
14574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575_ACEOF
14576
14577fi
14578
14579done
14580
14581 fi
14582fi
14583
14584
14585echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14586echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14587if test "${ac_cv_c_const+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14589else
14590 cat >conftest.$ac_ext <<_ACEOF
14591/* confdefs.h. */
14592_ACEOF
14593cat confdefs.h >>conftest.$ac_ext
14594cat >>conftest.$ac_ext <<_ACEOF
14595/* end confdefs.h. */
14596
14597int
14598main ()
14599{
14600/* FIXME: Include the comments suggested by Paul. */
14601#ifndef __cplusplus
14602 /* Ultrix mips cc rejects this. */
14603 typedef int charset[2];
14604 const charset x;
14605 /* SunOS 4.1.1 cc rejects this. */
14606 char const *const *ccp;
14607 char **p;
14608 /* NEC SVR4.0.2 mips cc rejects this. */
14609 struct point {int x, y;};
14610 static struct point const zero = {0,0};
14611 /* AIX XL C 1.02.0.0 rejects this.
14612 It does not let you subtract one const X* pointer from another in
14613 an arm of an if-expression whose if-part is not a constant
14614 expression */
14615 const char *g = "string";
14616 ccp = &g + (g ? g-g : 0);
14617 /* HPUX 7.0 cc rejects these. */
14618 ++ccp;
14619 p = (char**) ccp;
14620 ccp = (char const *const *) p;
14621 { /* SCO 3.2v4 cc rejects this. */
14622 char *t;
14623 char const *s = 0 ? (char *) 0 : (char const *) 0;
14624
14625 *t++ = 0;
14626 }
14627 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14628 int x[] = {25, 17};
14629 const int *foo = &x[0];
14630 ++foo;
14631 }
14632 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14633 typedef const int *iptr;
14634 iptr p = 0;
14635 ++p;
14636 }
14637 { /* AIX XL C 1.02.0.0 rejects this saying
14638 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14639 struct s { int j; const int *ap[3]; };
14640 struct s *b; b->j = 5;
14641 }
14642 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14643 const int foo = 10;
14644 }
14645#endif
14646
14647 ;
14648 return 0;
14649}
14650_ACEOF
14651rm -f conftest.$ac_objext
14652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14653 (eval $ac_compile) 2>conftest.er1
a848cd7e 14654 ac_status=$?
ac1cb8d3
VS
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
a848cd7e
SC
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
89be85c2
VS
14660 { ac_try='test -z "$ac_c_werror_flag"
14661 || test ! -s conftest.err'
ac1cb8d3
VS
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 ac_cv_c_const=yes
14674else
14675 echo "$as_me: failed program was:" >&5
14676sed 's/^/| /' conftest.$ac_ext >&5
14677
14678ac_cv_c_const=no
14679fi
ac1cb8d3 14680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14681fi
14682echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14683echo "${ECHO_T}$ac_cv_c_const" >&6
14684if test $ac_cv_c_const = no; then
14685
14686cat >>confdefs.h <<\_ACEOF
14687#define const
14688_ACEOF
14689
14690fi
14691
14692echo "$as_me:$LINENO: checking for inline" >&5
14693echo $ECHO_N "checking for inline... $ECHO_C" >&6
14694if test "${ac_cv_c_inline+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14696else
14697 ac_cv_c_inline=no
14698for ac_kw in inline __inline__ __inline; do
14699 cat >conftest.$ac_ext <<_ACEOF
14700/* confdefs.h. */
14701_ACEOF
14702cat confdefs.h >>conftest.$ac_ext
14703cat >>conftest.$ac_ext <<_ACEOF
14704/* end confdefs.h. */
14705#ifndef __cplusplus
14706typedef int foo_t;
14707static $ac_kw foo_t static_foo () {return 0; }
14708$ac_kw foo_t foo () {return 0; }
14709#endif
14710
14711_ACEOF
14712rm -f conftest.$ac_objext
14713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14714 (eval $ac_compile) 2>conftest.er1
a848cd7e 14715 ac_status=$?
ac1cb8d3
VS
14716 grep -v '^ *+' conftest.er1 >conftest.err
14717 rm -f conftest.er1
14718 cat conftest.err >&5
a848cd7e
SC
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
89be85c2
VS
14721 { ac_try='test -z "$ac_c_werror_flag"
14722 || test ! -s conftest.err'
ac1cb8d3
VS
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; } &&
14728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_cv_c_inline=$ac_kw; break
14735else
14736 echo "$as_me: failed program was:" >&5
14737sed 's/^/| /' conftest.$ac_ext >&5
14738
14739fi
ac1cb8d3 14740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14741done
14742
14743fi
14744echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14745echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14746
14747
a848cd7e
SC
14748case $ac_cv_c_inline in
14749 inline | yes) ;;
ac1cb8d3
VS
14750 *)
14751 case $ac_cv_c_inline in
14752 no) ac_val=;;
14753 *) ac_val=$ac_cv_c_inline;;
14754 esac
14755 cat >>confdefs.h <<_ACEOF
14756#ifndef __cplusplus
14757#define inline $ac_val
14758#endif
de59c161 14759_ACEOF
ac1cb8d3 14760 ;;
a848cd7e
SC
14761esac
14762
14763
14764echo "$as_me:$LINENO: checking for char" >&5
14765echo $ECHO_N "checking for char... $ECHO_C" >&6
14766if test "${ac_cv_type_char+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768else
14769 cat >conftest.$ac_ext <<_ACEOF
14770/* confdefs.h. */
14771_ACEOF
14772cat confdefs.h >>conftest.$ac_ext
14773cat >>conftest.$ac_ext <<_ACEOF
14774/* end confdefs.h. */
14775$ac_includes_default
14776int
14777main ()
14778{
14779if ((char *) 0)
14780 return 0;
14781if (sizeof (char))
14782 return 0;
14783 ;
14784 return 0;
14785}
14786_ACEOF
14787rm -f conftest.$ac_objext
14788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14789 (eval $ac_compile) 2>conftest.er1
a848cd7e 14790 ac_status=$?
ac1cb8d3
VS
14791 grep -v '^ *+' conftest.er1 >conftest.err
14792 rm -f conftest.er1
14793 cat conftest.err >&5
a848cd7e
SC
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } &&
89be85c2
VS
14796 { ac_try='test -z "$ac_c_werror_flag"
14797 || test ! -s conftest.err'
ac1cb8d3
VS
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; } &&
14803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_cv_type_char=yes
14810else
14811 echo "$as_me: failed program was:" >&5
14812sed 's/^/| /' conftest.$ac_ext >&5
14813
14814ac_cv_type_char=no
14815fi
ac1cb8d3 14816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14817fi
14818echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14819echo "${ECHO_T}$ac_cv_type_char" >&6
14820
14821echo "$as_me:$LINENO: checking size of char" >&5
14822echo $ECHO_N "checking size of char... $ECHO_C" >&6
14823if test "${ac_cv_sizeof_char+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825else
14826 if test "$ac_cv_type_char" = yes; then
14827 # The cast to unsigned long works around a bug in the HP C Compiler
14828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14830 # This bug is HP SR number 8606223364.
14831 if test "$cross_compiling" = yes; then
14832 # Depending upon the size, compute the lo and hi bounds.
14833cat >conftest.$ac_ext <<_ACEOF
14834/* confdefs.h. */
14835_ACEOF
14836cat confdefs.h >>conftest.$ac_ext
14837cat >>conftest.$ac_ext <<_ACEOF
14838/* end confdefs.h. */
14839$ac_includes_default
14840int
14841main ()
14842{
14843static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14844test_array [0] = 0
14845
14846 ;
14847 return 0;
14848}
14849_ACEOF
14850rm -f conftest.$ac_objext
14851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14852 (eval $ac_compile) 2>conftest.er1
a848cd7e 14853 ac_status=$?
ac1cb8d3
VS
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
a848cd7e
SC
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
89be85c2
VS
14859 { ac_try='test -z "$ac_c_werror_flag"
14860 || test ! -s conftest.err'
ac1cb8d3
VS
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_lo=0 ac_mid=0
14873 while :; do
14874 cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h. */
14880$ac_includes_default
14881int
14882main ()
14883{
14884static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14885test_array [0] = 0
14886
14887 ;
14888 return 0;
14889}
14890_ACEOF
14891rm -f conftest.$ac_objext
14892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14893 (eval $ac_compile) 2>conftest.er1
a848cd7e 14894 ac_status=$?
ac1cb8d3
VS
14895 grep -v '^ *+' conftest.er1 >conftest.err
14896 rm -f conftest.er1
14897 cat conftest.err >&5
a848cd7e
SC
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } &&
89be85c2
VS
14900 { ac_try='test -z "$ac_c_werror_flag"
14901 || test ! -s conftest.err'
ac1cb8d3
VS
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; } &&
14907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
14913 ac_hi=$ac_mid; break
14914else
14915 echo "$as_me: failed program was:" >&5
14916sed 's/^/| /' conftest.$ac_ext >&5
14917
14918ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14919 if test $ac_lo -le $ac_mid; then
14920 ac_lo= ac_hi=
14921 break
14922 fi
14923 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14924fi
ac1cb8d3 14925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14926 done
14927else
14928 echo "$as_me: failed program was:" >&5
14929sed 's/^/| /' conftest.$ac_ext >&5
14930
14931cat >conftest.$ac_ext <<_ACEOF
14932/* confdefs.h. */
14933_ACEOF
14934cat confdefs.h >>conftest.$ac_ext
14935cat >>conftest.$ac_ext <<_ACEOF
14936/* end confdefs.h. */
14937$ac_includes_default
14938int
14939main ()
14940{
14941static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14942test_array [0] = 0
14943
14944 ;
14945 return 0;
14946}
14947_ACEOF
14948rm -f conftest.$ac_objext
14949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14950 (eval $ac_compile) 2>conftest.er1
a848cd7e 14951 ac_status=$?
ac1cb8d3
VS
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
a848cd7e
SC
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
89be85c2
VS
14957 { ac_try='test -z "$ac_c_werror_flag"
14958 || test ! -s conftest.err'
ac1cb8d3
VS
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }; then
14970 ac_hi=-1 ac_mid=-1
14971 while :; do
14972 cat >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 (char))) >= $ac_mid)];
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); } &&
89be85c2
VS
14998 { ac_try='test -z "$ac_c_werror_flag"
14999 || test ! -s conftest.err'
ac1cb8d3
VS
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; } &&
15005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 ac_lo=$ac_mid; break
15012else
15013 echo "$as_me: failed program was:" >&5
15014sed 's/^/| /' conftest.$ac_ext >&5
15015
15016ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15017 if test $ac_mid -le $ac_hi; then
15018 ac_lo= ac_hi=
15019 break
15020 fi
15021 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15022fi
ac1cb8d3 15023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15024 done
15025else
15026 echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
15029ac_lo= ac_hi=
15030fi
ac1cb8d3 15031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15032fi
ac1cb8d3 15033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15034# Binary search between lo and hi bounds.
15035while test "x$ac_lo" != "x$ac_hi"; do
15036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15037 cat >conftest.$ac_ext <<_ACEOF
15038/* confdefs.h. */
15039_ACEOF
15040cat confdefs.h >>conftest.$ac_ext
15041cat >>conftest.$ac_ext <<_ACEOF
15042/* end confdefs.h. */
15043$ac_includes_default
15044int
15045main ()
15046{
15047static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15048test_array [0] = 0
15049
15050 ;
15051 return 0;
15052}
15053_ACEOF
15054rm -f conftest.$ac_objext
15055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15056 (eval $ac_compile) 2>conftest.er1
a848cd7e 15057 ac_status=$?
ac1cb8d3
VS
15058 grep -v '^ *+' conftest.er1 >conftest.err
15059 rm -f conftest.er1
15060 cat conftest.err >&5
a848cd7e
SC
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
89be85c2
VS
15063 { ac_try='test -z "$ac_c_werror_flag"
15064 || test ! -s conftest.err'
ac1cb8d3
VS
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; } &&
15070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 ac_hi=$ac_mid
15077else
15078 echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081ac_lo=`expr '(' $ac_mid ')' + 1`
15082fi
ac1cb8d3 15083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15084done
15085case $ac_lo in
15086?*) ac_cv_sizeof_char=$ac_lo;;
15087'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15088See \`config.log' for more details." >&5
15089echo "$as_me: error: cannot compute sizeof (char), 77
15090See \`config.log' for more details." >&2;}
15091 { (exit 1); exit 1; }; } ;;
15092esac
15093else
15094 if test "$cross_compiling" = yes; then
89be85c2
VS
15095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15096See \`config.log' for more details." >&5
15097echo "$as_me: error: cannot run test program while cross compiling
15098See \`config.log' for more details." >&2;}
a848cd7e
SC
15099 { (exit 1); exit 1; }; }
15100else
15101 cat >conftest.$ac_ext <<_ACEOF
15102/* confdefs.h. */
15103_ACEOF
15104cat confdefs.h >>conftest.$ac_ext
15105cat >>conftest.$ac_ext <<_ACEOF
15106/* end confdefs.h. */
15107$ac_includes_default
15108long longval () { return (long) (sizeof (char)); }
15109unsigned long ulongval () { return (long) (sizeof (char)); }
15110#include <stdio.h>
15111#include <stdlib.h>
15112int
15113main ()
15114{
15115
15116 FILE *f = fopen ("conftest.val", "w");
15117 if (! f)
15118 exit (1);
15119 if (((long) (sizeof (char))) < 0)
15120 {
15121 long i = longval ();
15122 if (i != ((long) (sizeof (char))))
15123 exit (1);
15124 fprintf (f, "%ld\n", i);
15125 }
15126 else
15127 {
15128 unsigned long i = ulongval ();
15129 if (i != ((long) (sizeof (char))))
15130 exit (1);
15131 fprintf (f, "%lu\n", i);
15132 }
15133 exit (ferror (f) || fclose (f) != 0);
15134
15135 ;
15136 return 0;
15137}
15138_ACEOF
15139rm -f conftest$ac_exeext
15140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15141 (eval $ac_link) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_cv_sizeof_char=`cat conftest.val`
15151else
15152 echo "$as_me: program exited with status $ac_status" >&5
15153echo "$as_me: failed program was:" >&5
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
15156( exit $ac_status )
15157{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15158See \`config.log' for more details." >&5
15159echo "$as_me: error: cannot compute sizeof (char), 77
15160See \`config.log' for more details." >&2;}
15161 { (exit 1); exit 1; }; }
15162fi
ac1cb8d3 15163rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15164fi
15165fi
15166rm -f conftest.val
15167else
15168 ac_cv_sizeof_char=0
15169fi
15170fi
15171echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15172echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15173cat >>confdefs.h <<_ACEOF
15174#define SIZEOF_CHAR $ac_cv_sizeof_char
15175_ACEOF
15176
15177
15178echo "$as_me:$LINENO: checking for short" >&5
15179echo $ECHO_N "checking for short... $ECHO_C" >&6
15180if test "${ac_cv_type_short+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15182else
15183 cat >conftest.$ac_ext <<_ACEOF
15184/* confdefs.h. */
15185_ACEOF
15186cat confdefs.h >>conftest.$ac_ext
15187cat >>conftest.$ac_ext <<_ACEOF
15188/* end confdefs.h. */
15189$ac_includes_default
15190int
15191main ()
15192{
15193if ((short *) 0)
15194 return 0;
15195if (sizeof (short))
15196 return 0;
15197 ;
15198 return 0;
15199}
15200_ACEOF
15201rm -f conftest.$ac_objext
15202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15203 (eval $ac_compile) 2>conftest.er1
a848cd7e 15204 ac_status=$?
ac1cb8d3
VS
15205 grep -v '^ *+' conftest.er1 >conftest.err
15206 rm -f conftest.er1
15207 cat conftest.err >&5
a848cd7e
SC
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } &&
89be85c2
VS
15210 { ac_try='test -z "$ac_c_werror_flag"
15211 || test ! -s conftest.err'
ac1cb8d3
VS
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15214 ac_status=$?
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; } &&
15217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15220 ac_status=$?
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; }; then
15223 ac_cv_type_short=yes
15224else
15225 echo "$as_me: failed program was:" >&5
15226sed 's/^/| /' conftest.$ac_ext >&5
15227
15228ac_cv_type_short=no
15229fi
ac1cb8d3 15230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15231fi
15232echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15233echo "${ECHO_T}$ac_cv_type_short" >&6
15234
15235echo "$as_me:$LINENO: checking size of short" >&5
15236echo $ECHO_N "checking size of short... $ECHO_C" >&6
15237if test "${ac_cv_sizeof_short+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239else
15240 if test "$ac_cv_type_short" = yes; then
15241 # The cast to unsigned long works around a bug in the HP C Compiler
15242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15244 # This bug is HP SR number 8606223364.
15245 if test "$cross_compiling" = yes; then
15246 # Depending upon the size, compute the lo and hi bounds.
15247cat >conftest.$ac_ext <<_ACEOF
15248/* confdefs.h. */
15249_ACEOF
15250cat confdefs.h >>conftest.$ac_ext
15251cat >>conftest.$ac_ext <<_ACEOF
15252/* end confdefs.h. */
15253$ac_includes_default
15254int
15255main ()
15256{
15257static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15258test_array [0] = 0
15259
15260 ;
15261 return 0;
15262}
15263_ACEOF
15264rm -f conftest.$ac_objext
15265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15266 (eval $ac_compile) 2>conftest.er1
a848cd7e 15267 ac_status=$?
ac1cb8d3
VS
15268 grep -v '^ *+' conftest.er1 >conftest.err
15269 rm -f conftest.er1
15270 cat conftest.err >&5
a848cd7e
SC
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
89be85c2
VS
15273 { ac_try='test -z "$ac_c_werror_flag"
15274 || test ! -s conftest.err'
ac1cb8d3
VS
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } &&
15280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15286 ac_lo=0 ac_mid=0
15287 while :; do
15288 cat >conftest.$ac_ext <<_ACEOF
15289/* confdefs.h. */
15290_ACEOF
15291cat confdefs.h >>conftest.$ac_ext
15292cat >>conftest.$ac_ext <<_ACEOF
15293/* end confdefs.h. */
15294$ac_includes_default
15295int
15296main ()
15297{
15298static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15299test_array [0] = 0
15300
15301 ;
15302 return 0;
15303}
15304_ACEOF
15305rm -f conftest.$ac_objext
15306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15307 (eval $ac_compile) 2>conftest.er1
a848cd7e 15308 ac_status=$?
ac1cb8d3
VS
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
a848cd7e
SC
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
89be85c2
VS
15314 { ac_try='test -z "$ac_c_werror_flag"
15315 || test ! -s conftest.err'
ac1cb8d3
VS
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_hi=$ac_mid; break
15328else
15329 echo "$as_me: failed program was:" >&5
15330sed 's/^/| /' conftest.$ac_ext >&5
15331
15332ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15333 if test $ac_lo -le $ac_mid; then
15334 ac_lo= ac_hi=
15335 break
15336 fi
15337 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15338fi
ac1cb8d3 15339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15340 done
15341else
15342 echo "$as_me: failed program was:" >&5
15343sed 's/^/| /' conftest.$ac_ext >&5
15344
15345cat >conftest.$ac_ext <<_ACEOF
15346/* confdefs.h. */
15347_ACEOF
15348cat confdefs.h >>conftest.$ac_ext
15349cat >>conftest.$ac_ext <<_ACEOF
15350/* end confdefs.h. */
15351$ac_includes_default
15352int
15353main ()
15354{
15355static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15356test_array [0] = 0
15357
15358 ;
15359 return 0;
15360}
15361_ACEOF
15362rm -f conftest.$ac_objext
15363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15364 (eval $ac_compile) 2>conftest.er1
a848cd7e 15365 ac_status=$?
ac1cb8d3
VS
15366 grep -v '^ *+' conftest.er1 >conftest.err
15367 rm -f conftest.er1
15368 cat conftest.err >&5
a848cd7e
SC
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
89be85c2
VS
15371 { ac_try='test -z "$ac_c_werror_flag"
15372 || test ! -s conftest.err'
ac1cb8d3
VS
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_hi=-1 ac_mid=-1
15385 while :; do
15386 cat >conftest.$ac_ext <<_ACEOF
15387/* confdefs.h. */
15388_ACEOF
15389cat confdefs.h >>conftest.$ac_ext
15390cat >>conftest.$ac_ext <<_ACEOF
15391/* end confdefs.h. */
15392$ac_includes_default
15393int
15394main ()
15395{
15396static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15397test_array [0] = 0
15398
15399 ;
15400 return 0;
15401}
15402_ACEOF
15403rm -f conftest.$ac_objext
15404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15405 (eval $ac_compile) 2>conftest.er1
a848cd7e 15406 ac_status=$?
ac1cb8d3
VS
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
a848cd7e
SC
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
89be85c2
VS
15412 { ac_try='test -z "$ac_c_werror_flag"
15413 || test ! -s conftest.err'
ac1cb8d3
VS
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; } &&
15419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_lo=$ac_mid; break
15426else
15427 echo "$as_me: failed program was:" >&5
15428sed 's/^/| /' conftest.$ac_ext >&5
15429
15430ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15431 if test $ac_mid -le $ac_hi; then
15432 ac_lo= ac_hi=
15433 break
15434 fi
15435 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15436fi
ac1cb8d3 15437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15438 done
15439else
15440 echo "$as_me: failed program was:" >&5
15441sed 's/^/| /' conftest.$ac_ext >&5
15442
15443ac_lo= ac_hi=
15444fi
ac1cb8d3 15445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15446fi
ac1cb8d3 15447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15448# Binary search between lo and hi bounds.
15449while test "x$ac_lo" != "x$ac_hi"; do
15450 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15451 cat >conftest.$ac_ext <<_ACEOF
15452/* confdefs.h. */
15453_ACEOF
15454cat confdefs.h >>conftest.$ac_ext
15455cat >>conftest.$ac_ext <<_ACEOF
15456/* end confdefs.h. */
15457$ac_includes_default
15458int
15459main ()
15460{
15461static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15462test_array [0] = 0
15463
15464 ;
15465 return 0;
15466}
15467_ACEOF
15468rm -f conftest.$ac_objext
15469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15470 (eval $ac_compile) 2>conftest.er1
a848cd7e 15471 ac_status=$?
ac1cb8d3
VS
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
a848cd7e
SC
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
89be85c2
VS
15477 { ac_try='test -z "$ac_c_werror_flag"
15478 || test ! -s conftest.err'
ac1cb8d3
VS
15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480 (eval $ac_try) 2>&5
15481 ac_status=$?
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; } &&
15484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15487 ac_status=$?
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; }; then
15490 ac_hi=$ac_mid
15491else
15492 echo "$as_me: failed program was:" >&5
15493sed 's/^/| /' conftest.$ac_ext >&5
15494
15495ac_lo=`expr '(' $ac_mid ')' + 1`
15496fi
ac1cb8d3 15497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15498done
15499case $ac_lo in
15500?*) ac_cv_sizeof_short=$ac_lo;;
15501'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15502See \`config.log' for more details." >&5
15503echo "$as_me: error: cannot compute sizeof (short), 77
15504See \`config.log' for more details." >&2;}
15505 { (exit 1); exit 1; }; } ;;
15506esac
15507else
15508 if test "$cross_compiling" = yes; then
89be85c2
VS
15509 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15510See \`config.log' for more details." >&5
15511echo "$as_me: error: cannot run test program while cross compiling
15512See \`config.log' for more details." >&2;}
a848cd7e
SC
15513 { (exit 1); exit 1; }; }
15514else
15515 cat >conftest.$ac_ext <<_ACEOF
15516/* confdefs.h. */
15517_ACEOF
15518cat confdefs.h >>conftest.$ac_ext
15519cat >>conftest.$ac_ext <<_ACEOF
15520/* end confdefs.h. */
15521$ac_includes_default
15522long longval () { return (long) (sizeof (short)); }
15523unsigned long ulongval () { return (long) (sizeof (short)); }
15524#include <stdio.h>
15525#include <stdlib.h>
15526int
15527main ()
15528{
15529
15530 FILE *f = fopen ("conftest.val", "w");
15531 if (! f)
15532 exit (1);
15533 if (((long) (sizeof (short))) < 0)
15534 {
15535 long i = longval ();
15536 if (i != ((long) (sizeof (short))))
15537 exit (1);
15538 fprintf (f, "%ld\n", i);
15539 }
15540 else
15541 {
15542 unsigned long i = ulongval ();
15543 if (i != ((long) (sizeof (short))))
15544 exit (1);
15545 fprintf (f, "%lu\n", i);
15546 }
15547 exit (ferror (f) || fclose (f) != 0);
15548
15549 ;
15550 return 0;
15551}
15552_ACEOF
15553rm -f conftest$ac_exeext
15554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15555 (eval $ac_link) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_cv_sizeof_short=`cat conftest.val`
15565else
15566 echo "$as_me: program exited with status $ac_status" >&5
15567echo "$as_me: failed program was:" >&5
15568sed 's/^/| /' conftest.$ac_ext >&5
15569
15570( exit $ac_status )
15571{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15572See \`config.log' for more details." >&5
15573echo "$as_me: error: cannot compute sizeof (short), 77
15574See \`config.log' for more details." >&2;}
15575 { (exit 1); exit 1; }; }
15576fi
ac1cb8d3 15577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15578fi
15579fi
15580rm -f conftest.val
15581else
15582 ac_cv_sizeof_short=0
15583fi
15584fi
15585echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15586echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15587cat >>confdefs.h <<_ACEOF
15588#define SIZEOF_SHORT $ac_cv_sizeof_short
15589_ACEOF
15590
15591
15592echo "$as_me:$LINENO: checking for void *" >&5
15593echo $ECHO_N "checking for void *... $ECHO_C" >&6
15594if test "${ac_cv_type_void_p+set}" = set; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15596else
15597 cat >conftest.$ac_ext <<_ACEOF
15598/* confdefs.h. */
15599_ACEOF
15600cat confdefs.h >>conftest.$ac_ext
15601cat >>conftest.$ac_ext <<_ACEOF
15602/* end confdefs.h. */
15603$ac_includes_default
15604int
15605main ()
15606{
15607if ((void * *) 0)
15608 return 0;
15609if (sizeof (void *))
15610 return 0;
15611 ;
15612 return 0;
15613}
15614_ACEOF
15615rm -f conftest.$ac_objext
15616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15617 (eval $ac_compile) 2>conftest.er1
a848cd7e 15618 ac_status=$?
ac1cb8d3
VS
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
a848cd7e
SC
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
89be85c2
VS
15624 { ac_try='test -z "$ac_c_werror_flag"
15625 || test ! -s conftest.err'
ac1cb8d3
VS
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 ac_cv_type_void_p=yes
15638else
15639 echo "$as_me: failed program was:" >&5
15640sed 's/^/| /' conftest.$ac_ext >&5
15641
15642ac_cv_type_void_p=no
15643fi
ac1cb8d3 15644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15645fi
15646echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15647echo "${ECHO_T}$ac_cv_type_void_p" >&6
15648
15649echo "$as_me:$LINENO: checking size of void *" >&5
15650echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15651if test "${ac_cv_sizeof_void_p+set}" = set; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653else
15654 if test "$ac_cv_type_void_p" = yes; then
15655 # The cast to unsigned long works around a bug in the HP C Compiler
15656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15658 # This bug is HP SR number 8606223364.
15659 if test "$cross_compiling" = yes; then
15660 # Depending upon the size, compute the lo and hi bounds.
15661cat >conftest.$ac_ext <<_ACEOF
15662/* confdefs.h. */
15663_ACEOF
15664cat confdefs.h >>conftest.$ac_ext
15665cat >>conftest.$ac_ext <<_ACEOF
15666/* end confdefs.h. */
15667$ac_includes_default
15668int
15669main ()
15670{
15671static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15672test_array [0] = 0
15673
15674 ;
15675 return 0;
15676}
15677_ACEOF
15678rm -f conftest.$ac_objext
15679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15680 (eval $ac_compile) 2>conftest.er1
a848cd7e 15681 ac_status=$?
ac1cb8d3
VS
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
a848cd7e
SC
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
89be85c2
VS
15687 { ac_try='test -z "$ac_c_werror_flag"
15688 || test ! -s conftest.err'
ac1cb8d3
VS
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_lo=0 ac_mid=0
15701 while :; do
15702 cat >conftest.$ac_ext <<_ACEOF
15703/* confdefs.h. */
15704_ACEOF
15705cat confdefs.h >>conftest.$ac_ext
15706cat >>conftest.$ac_ext <<_ACEOF
15707/* end confdefs.h. */
15708$ac_includes_default
15709int
15710main ()
15711{
15712static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15713test_array [0] = 0
15714
15715 ;
15716 return 0;
15717}
15718_ACEOF
15719rm -f conftest.$ac_objext
15720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15721 (eval $ac_compile) 2>conftest.er1
a848cd7e 15722 ac_status=$?
ac1cb8d3
VS
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
a848cd7e
SC
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
89be85c2
VS
15728 { ac_try='test -z "$ac_c_werror_flag"
15729 || test ! -s conftest.err'
ac1cb8d3
VS
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }; then
15741 ac_hi=$ac_mid; break
15742else
15743 echo "$as_me: failed program was:" >&5
15744sed 's/^/| /' conftest.$ac_ext >&5
15745
15746ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15747 if test $ac_lo -le $ac_mid; then
15748 ac_lo= ac_hi=
15749 break
15750 fi
15751 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15752fi
ac1cb8d3 15753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15754 done
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759cat >conftest.$ac_ext <<_ACEOF
15760/* confdefs.h. */
15761_ACEOF
15762cat confdefs.h >>conftest.$ac_ext
15763cat >>conftest.$ac_ext <<_ACEOF
15764/* end confdefs.h. */
15765$ac_includes_default
15766int
15767main ()
15768{
15769static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15770test_array [0] = 0
15771
15772 ;
15773 return 0;
15774}
15775_ACEOF
15776rm -f conftest.$ac_objext
15777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15778 (eval $ac_compile) 2>conftest.er1
a848cd7e 15779 ac_status=$?
ac1cb8d3
VS
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
a848cd7e
SC
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
89be85c2
VS
15785 { ac_try='test -z "$ac_c_werror_flag"
15786 || test ! -s conftest.err'
ac1cb8d3
VS
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; } &&
15792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_hi=-1 ac_mid=-1
15799 while :; do
15800 cat >conftest.$ac_ext <<_ACEOF
15801/* confdefs.h. */
15802_ACEOF
15803cat confdefs.h >>conftest.$ac_ext
15804cat >>conftest.$ac_ext <<_ACEOF
15805/* end confdefs.h. */
15806$ac_includes_default
15807int
15808main ()
15809{
15810static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15811test_array [0] = 0
15812
15813 ;
15814 return 0;
15815}
15816_ACEOF
15817rm -f conftest.$ac_objext
15818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15819 (eval $ac_compile) 2>conftest.er1
a848cd7e 15820 ac_status=$?
ac1cb8d3
VS
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
a848cd7e
SC
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
89be85c2
VS
15826 { ac_try='test -z "$ac_c_werror_flag"
15827 || test ! -s conftest.err'
ac1cb8d3
VS
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; } &&
15833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; }; then
15839 ac_lo=$ac_mid; break
15840else
15841 echo "$as_me: failed program was:" >&5
15842sed 's/^/| /' conftest.$ac_ext >&5
15843
15844ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15845 if test $ac_mid -le $ac_hi; then
15846 ac_lo= ac_hi=
15847 break
15848 fi
15849 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15850fi
ac1cb8d3 15851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15852 done
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857ac_lo= ac_hi=
15858fi
ac1cb8d3 15859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15860fi
ac1cb8d3 15861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15862# Binary search between lo and hi bounds.
15863while test "x$ac_lo" != "x$ac_hi"; do
15864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15865 cat >conftest.$ac_ext <<_ACEOF
15866/* confdefs.h. */
15867_ACEOF
15868cat confdefs.h >>conftest.$ac_ext
15869cat >>conftest.$ac_ext <<_ACEOF
15870/* end confdefs.h. */
15871$ac_includes_default
15872int
15873main ()
15874{
15875static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15876test_array [0] = 0
15877
15878 ;
15879 return 0;
15880}
15881_ACEOF
15882rm -f conftest.$ac_objext
15883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15884 (eval $ac_compile) 2>conftest.er1
a848cd7e 15885 ac_status=$?
ac1cb8d3
VS
15886 grep -v '^ *+' conftest.er1 >conftest.err
15887 rm -f conftest.er1
15888 cat conftest.err >&5
a848cd7e
SC
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
89be85c2
VS
15891 { ac_try='test -z "$ac_c_werror_flag"
15892 || test ! -s conftest.err'
ac1cb8d3
VS
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; } &&
15898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15904 ac_hi=$ac_mid
15905else
15906 echo "$as_me: failed program was:" >&5
15907sed 's/^/| /' conftest.$ac_ext >&5
15908
15909ac_lo=`expr '(' $ac_mid ')' + 1`
15910fi
ac1cb8d3 15911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15912done
15913case $ac_lo in
15914?*) ac_cv_sizeof_void_p=$ac_lo;;
15915'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15916See \`config.log' for more details." >&5
15917echo "$as_me: error: cannot compute sizeof (void *), 77
15918See \`config.log' for more details." >&2;}
15919 { (exit 1); exit 1; }; } ;;
15920esac
15921else
15922 if test "$cross_compiling" = yes; then
89be85c2
VS
15923 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15924See \`config.log' for more details." >&5
15925echo "$as_me: error: cannot run test program while cross compiling
15926See \`config.log' for more details." >&2;}
a848cd7e
SC
15927 { (exit 1); exit 1; }; }
15928else
15929 cat >conftest.$ac_ext <<_ACEOF
15930/* confdefs.h. */
15931_ACEOF
15932cat confdefs.h >>conftest.$ac_ext
15933cat >>conftest.$ac_ext <<_ACEOF
15934/* end confdefs.h. */
15935$ac_includes_default
15936long longval () { return (long) (sizeof (void *)); }
15937unsigned long ulongval () { return (long) (sizeof (void *)); }
15938#include <stdio.h>
15939#include <stdlib.h>
15940int
15941main ()
15942{
15943
15944 FILE *f = fopen ("conftest.val", "w");
15945 if (! f)
15946 exit (1);
15947 if (((long) (sizeof (void *))) < 0)
15948 {
15949 long i = longval ();
15950 if (i != ((long) (sizeof (void *))))
15951 exit (1);
15952 fprintf (f, "%ld\n", i);
15953 }
15954 else
15955 {
15956 unsigned long i = ulongval ();
15957 if (i != ((long) (sizeof (void *))))
15958 exit (1);
15959 fprintf (f, "%lu\n", i);
15960 }
15961 exit (ferror (f) || fclose (f) != 0);
15962
15963 ;
15964 return 0;
15965}
15966_ACEOF
15967rm -f conftest$ac_exeext
15968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15969 (eval $ac_link) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 ac_cv_sizeof_void_p=`cat conftest.val`
15979else
15980 echo "$as_me: program exited with status $ac_status" >&5
15981echo "$as_me: failed program was:" >&5
15982sed 's/^/| /' conftest.$ac_ext >&5
15983
15984( exit $ac_status )
15985{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15986See \`config.log' for more details." >&5
15987echo "$as_me: error: cannot compute sizeof (void *), 77
15988See \`config.log' for more details." >&2;}
15989 { (exit 1); exit 1; }; }
15990fi
ac1cb8d3 15991rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15992fi
15993fi
15994rm -f conftest.val
15995else
15996 ac_cv_sizeof_void_p=0
15997fi
15998fi
15999echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16000echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16001cat >>confdefs.h <<_ACEOF
16002#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16003_ACEOF
16004
16005
16006echo "$as_me:$LINENO: checking for int" >&5
16007echo $ECHO_N "checking for int... $ECHO_C" >&6
16008if test "${ac_cv_type_int+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011 cat >conftest.$ac_ext <<_ACEOF
16012/* confdefs.h. */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h. */
16017$ac_includes_default
16018int
16019main ()
16020{
16021if ((int *) 0)
16022 return 0;
16023if (sizeof (int))
16024 return 0;
16025 ;
16026 return 0;
16027}
16028_ACEOF
16029rm -f conftest.$ac_objext
16030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16031 (eval $ac_compile) 2>conftest.er1
a848cd7e 16032 ac_status=$?
ac1cb8d3
VS
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
a848cd7e
SC
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
89be85c2
VS
16038 { ac_try='test -z "$ac_c_werror_flag"
16039 || test ! -s conftest.err'
ac1cb8d3
VS
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_cv_type_int=yes
16052else
16053 echo "$as_me: failed program was:" >&5
16054sed 's/^/| /' conftest.$ac_ext >&5
16055
16056ac_cv_type_int=no
16057fi
ac1cb8d3 16058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16059fi
16060echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16061echo "${ECHO_T}$ac_cv_type_int" >&6
16062
16063echo "$as_me:$LINENO: checking size of int" >&5
16064echo $ECHO_N "checking size of int... $ECHO_C" >&6
16065if test "${ac_cv_sizeof_int+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16067else
16068 if test "$ac_cv_type_int" = yes; then
16069 # The cast to unsigned long works around a bug in the HP C Compiler
16070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16072 # This bug is HP SR number 8606223364.
16073 if test "$cross_compiling" = yes; then
16074 # Depending upon the size, compute the lo and hi bounds.
16075cat >conftest.$ac_ext <<_ACEOF
16076/* confdefs.h. */
16077_ACEOF
16078cat confdefs.h >>conftest.$ac_ext
16079cat >>conftest.$ac_ext <<_ACEOF
16080/* end confdefs.h. */
16081$ac_includes_default
16082int
16083main ()
16084{
16085static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16086test_array [0] = 0
16087
16088 ;
16089 return 0;
16090}
16091_ACEOF
16092rm -f conftest.$ac_objext
16093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16094 (eval $ac_compile) 2>conftest.er1
a848cd7e 16095 ac_status=$?
ac1cb8d3
VS
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
a848cd7e
SC
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } &&
89be85c2
VS
16101 { ac_try='test -z "$ac_c_werror_flag"
16102 || test ! -s conftest.err'
ac1cb8d3
VS
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_lo=0 ac_mid=0
16115 while :; do
16116 cat >conftest.$ac_ext <<_ACEOF
16117/* confdefs.h. */
16118_ACEOF
16119cat confdefs.h >>conftest.$ac_ext
16120cat >>conftest.$ac_ext <<_ACEOF
16121/* end confdefs.h. */
16122$ac_includes_default
16123int
16124main ()
16125{
16126static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16127test_array [0] = 0
16128
16129 ;
16130 return 0;
16131}
16132_ACEOF
16133rm -f conftest.$ac_objext
16134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16135 (eval $ac_compile) 2>conftest.er1
a848cd7e 16136 ac_status=$?
ac1cb8d3
VS
16137 grep -v '^ *+' conftest.er1 >conftest.err
16138 rm -f conftest.er1
16139 cat conftest.err >&5
a848cd7e
SC
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
89be85c2
VS
16142 { ac_try='test -z "$ac_c_werror_flag"
16143 || test ! -s conftest.err'
ac1cb8d3
VS
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } &&
16149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16155 ac_hi=$ac_mid; break
16156else
16157 echo "$as_me: failed program was:" >&5
16158sed 's/^/| /' conftest.$ac_ext >&5
16159
16160ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16161 if test $ac_lo -le $ac_mid; then
16162 ac_lo= ac_hi=
16163 break
16164 fi
16165 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16166fi
ac1cb8d3 16167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16168 done
16169else
16170 echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179$ac_includes_default
16180int
16181main ()
16182{
16183static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16184test_array [0] = 0
16185
16186 ;
16187 return 0;
16188}
16189_ACEOF
16190rm -f conftest.$ac_objext
16191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16192 (eval $ac_compile) 2>conftest.er1
a848cd7e 16193 ac_status=$?
ac1cb8d3
VS
16194 grep -v '^ *+' conftest.er1 >conftest.err
16195 rm -f conftest.er1
16196 cat conftest.err >&5
a848cd7e
SC
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
89be85c2
VS
16199 { ac_try='test -z "$ac_c_werror_flag"
16200 || test ! -s conftest.err'
ac1cb8d3
VS
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_hi=-1 ac_mid=-1
16213 while :; do
16214 cat >conftest.$ac_ext <<_ACEOF
16215/* confdefs.h. */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h. */
16220$ac_includes_default
16221int
16222main ()
16223{
16224static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16225test_array [0] = 0
16226
16227 ;
16228 return 0;
16229}
16230_ACEOF
16231rm -f conftest.$ac_objext
16232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16233 (eval $ac_compile) 2>conftest.er1
a848cd7e 16234 ac_status=$?
ac1cb8d3
VS
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
a848cd7e
SC
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
89be85c2
VS
16240 { ac_try='test -z "$ac_c_werror_flag"
16241 || test ! -s conftest.err'
ac1cb8d3
VS
16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16253 ac_lo=$ac_mid; break
16254else
16255 echo "$as_me: failed program was:" >&5
16256sed 's/^/| /' conftest.$ac_ext >&5
16257
16258ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16259 if test $ac_mid -le $ac_hi; then
16260 ac_lo= ac_hi=
16261 break
16262 fi
16263 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16264fi
ac1cb8d3 16265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16266 done
16267else
16268 echo "$as_me: failed program was:" >&5
16269sed 's/^/| /' conftest.$ac_ext >&5
16270
16271ac_lo= ac_hi=
16272fi
ac1cb8d3 16273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16274fi
ac1cb8d3 16275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16276# Binary search between lo and hi bounds.
16277while test "x$ac_lo" != "x$ac_hi"; do
16278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16279 cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h. */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */
16285$ac_includes_default
16286int
16287main ()
16288{
16289static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16290test_array [0] = 0
16291
16292 ;
16293 return 0;
16294}
16295_ACEOF
16296rm -f conftest.$ac_objext
16297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16298 (eval $ac_compile) 2>conftest.er1
a848cd7e 16299 ac_status=$?
ac1cb8d3
VS
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
a848cd7e
SC
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
89be85c2
VS
16305 { ac_try='test -z "$ac_c_werror_flag"
16306 || test ! -s conftest.err'
ac1cb8d3
VS
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 ac_hi=$ac_mid
16319else
16320 echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5
16322
16323ac_lo=`expr '(' $ac_mid ')' + 1`
16324fi
ac1cb8d3 16325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16326done
16327case $ac_lo in
16328?*) ac_cv_sizeof_int=$ac_lo;;
16329'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16330See \`config.log' for more details." >&5
16331echo "$as_me: error: cannot compute sizeof (int), 77
16332See \`config.log' for more details." >&2;}
16333 { (exit 1); exit 1; }; } ;;
16334esac
16335else
16336 if test "$cross_compiling" = yes; then
89be85c2
VS
16337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16338See \`config.log' for more details." >&5
16339echo "$as_me: error: cannot run test program while cross compiling
16340See \`config.log' for more details." >&2;}
a848cd7e
SC
16341 { (exit 1); exit 1; }; }
16342else
16343 cat >conftest.$ac_ext <<_ACEOF
16344/* confdefs.h. */
16345_ACEOF
16346cat confdefs.h >>conftest.$ac_ext
16347cat >>conftest.$ac_ext <<_ACEOF
16348/* end confdefs.h. */
16349$ac_includes_default
16350long longval () { return (long) (sizeof (int)); }
16351unsigned long ulongval () { return (long) (sizeof (int)); }
16352#include <stdio.h>
16353#include <stdlib.h>
16354int
16355main ()
16356{
16357
16358 FILE *f = fopen ("conftest.val", "w");
16359 if (! f)
16360 exit (1);
16361 if (((long) (sizeof (int))) < 0)
16362 {
16363 long i = longval ();
16364 if (i != ((long) (sizeof (int))))
16365 exit (1);
16366 fprintf (f, "%ld\n", i);
16367 }
16368 else
16369 {
16370 unsigned long i = ulongval ();
16371 if (i != ((long) (sizeof (int))))
16372 exit (1);
16373 fprintf (f, "%lu\n", i);
16374 }
16375 exit (ferror (f) || fclose (f) != 0);
16376
16377 ;
16378 return 0;
16379}
16380_ACEOF
16381rm -f conftest$ac_exeext
16382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16383 (eval $ac_link) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16392 ac_cv_sizeof_int=`cat conftest.val`
16393else
16394 echo "$as_me: program exited with status $ac_status" >&5
16395echo "$as_me: failed program was:" >&5
16396sed 's/^/| /' conftest.$ac_ext >&5
16397
16398( exit $ac_status )
16399{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16400See \`config.log' for more details." >&5
16401echo "$as_me: error: cannot compute sizeof (int), 77
16402See \`config.log' for more details." >&2;}
16403 { (exit 1); exit 1; }; }
16404fi
ac1cb8d3 16405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16406fi
16407fi
16408rm -f conftest.val
16409else
16410 ac_cv_sizeof_int=0
16411fi
16412fi
16413echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16414echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16415cat >>confdefs.h <<_ACEOF
16416#define SIZEOF_INT $ac_cv_sizeof_int
16417_ACEOF
16418
16419
16420echo "$as_me:$LINENO: checking for long" >&5
16421echo $ECHO_N "checking for long... $ECHO_C" >&6
16422if test "${ac_cv_type_long+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424else
16425 cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
16431$ac_includes_default
16432int
16433main ()
16434{
16435if ((long *) 0)
16436 return 0;
16437if (sizeof (long))
16438 return 0;
16439 ;
16440 return 0;
16441}
16442_ACEOF
16443rm -f conftest.$ac_objext
16444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16445 (eval $ac_compile) 2>conftest.er1
a848cd7e 16446 ac_status=$?
ac1cb8d3
VS
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
a848cd7e
SC
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
89be85c2
VS
16452 { ac_try='test -z "$ac_c_werror_flag"
16453 || test ! -s conftest.err'
ac1cb8d3
VS
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 ac_cv_type_long=yes
16466else
16467 echo "$as_me: failed program was:" >&5
16468sed 's/^/| /' conftest.$ac_ext >&5
16469
16470ac_cv_type_long=no
16471fi
ac1cb8d3 16472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16473fi
16474echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16475echo "${ECHO_T}$ac_cv_type_long" >&6
16476
16477echo "$as_me:$LINENO: checking size of long" >&5
16478echo $ECHO_N "checking size of long... $ECHO_C" >&6
16479if test "${ac_cv_sizeof_long+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481else
16482 if test "$ac_cv_type_long" = yes; then
16483 # The cast to unsigned long works around a bug in the HP C Compiler
16484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16486 # This bug is HP SR number 8606223364.
16487 if test "$cross_compiling" = yes; then
16488 # Depending upon the size, compute the lo and hi bounds.
16489cat >conftest.$ac_ext <<_ACEOF
16490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
16495$ac_includes_default
16496int
16497main ()
16498{
16499static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16500test_array [0] = 0
16501
16502 ;
16503 return 0;
16504}
16505_ACEOF
16506rm -f conftest.$ac_objext
16507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16508 (eval $ac_compile) 2>conftest.er1
a848cd7e 16509 ac_status=$?
ac1cb8d3
VS
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
a848cd7e
SC
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
89be85c2
VS
16515 { ac_try='test -z "$ac_c_werror_flag"
16516 || test ! -s conftest.err'
ac1cb8d3
VS
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_lo=0 ac_mid=0
16529 while :; do
16530 cat >conftest.$ac_ext <<_ACEOF
16531/* confdefs.h. */
16532_ACEOF
16533cat confdefs.h >>conftest.$ac_ext
16534cat >>conftest.$ac_ext <<_ACEOF
16535/* end confdefs.h. */
16536$ac_includes_default
16537int
16538main ()
16539{
16540static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16541test_array [0] = 0
16542
16543 ;
16544 return 0;
16545}
16546_ACEOF
16547rm -f conftest.$ac_objext
16548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16549 (eval $ac_compile) 2>conftest.er1
a848cd7e 16550 ac_status=$?
ac1cb8d3
VS
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
a848cd7e
SC
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
89be85c2
VS
16556 { ac_try='test -z "$ac_c_werror_flag"
16557 || test ! -s conftest.err'
ac1cb8d3
VS
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 ac_hi=$ac_mid; break
16570else
16571 echo "$as_me: failed program was:" >&5
16572sed 's/^/| /' conftest.$ac_ext >&5
16573
16574ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16575 if test $ac_lo -le $ac_mid; then
16576 ac_lo= ac_hi=
16577 break
16578 fi
16579 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16580fi
ac1cb8d3 16581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16582 done
16583else
16584 echo "$as_me: failed program was:" >&5
16585sed 's/^/| /' conftest.$ac_ext >&5
16586
16587cat >conftest.$ac_ext <<_ACEOF
16588/* confdefs.h. */
16589_ACEOF
16590cat confdefs.h >>conftest.$ac_ext
16591cat >>conftest.$ac_ext <<_ACEOF
16592/* end confdefs.h. */
16593$ac_includes_default
16594int
16595main ()
16596{
16597static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16598test_array [0] = 0
16599
16600 ;
16601 return 0;
16602}
16603_ACEOF
16604rm -f conftest.$ac_objext
16605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16606 (eval $ac_compile) 2>conftest.er1
a848cd7e 16607 ac_status=$?
ac1cb8d3
VS
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
a848cd7e
SC
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } &&
89be85c2
VS
16613 { ac_try='test -z "$ac_c_werror_flag"
16614 || test ! -s conftest.err'
ac1cb8d3
VS
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_hi=-1 ac_mid=-1
16627 while :; do
16628 cat >conftest.$ac_ext <<_ACEOF
16629/* confdefs.h. */
16630_ACEOF
16631cat confdefs.h >>conftest.$ac_ext
16632cat >>conftest.$ac_ext <<_ACEOF
16633/* end confdefs.h. */
16634$ac_includes_default
16635int
16636main ()
16637{
16638static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16639test_array [0] = 0
16640
16641 ;
16642 return 0;
16643}
16644_ACEOF
16645rm -f conftest.$ac_objext
16646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16647 (eval $ac_compile) 2>conftest.er1
a848cd7e 16648 ac_status=$?
ac1cb8d3
VS
16649 grep -v '^ *+' conftest.er1 >conftest.err
16650 rm -f conftest.er1
16651 cat conftest.err >&5
a848cd7e
SC
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } &&
89be85c2
VS
16654 { ac_try='test -z "$ac_c_werror_flag"
16655 || test ! -s conftest.err'
ac1cb8d3
VS
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; } &&
16661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_lo=$ac_mid; break
16668else
16669 echo "$as_me: failed program was:" >&5
16670sed 's/^/| /' conftest.$ac_ext >&5
16671
16672ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16673 if test $ac_mid -le $ac_hi; then
16674 ac_lo= ac_hi=
16675 break
16676 fi
16677 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16678fi
ac1cb8d3 16679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16680 done
16681else
16682 echo "$as_me: failed program was:" >&5
16683sed 's/^/| /' conftest.$ac_ext >&5
16684
16685ac_lo= ac_hi=
16686fi
ac1cb8d3 16687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16688fi
ac1cb8d3 16689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16690# Binary search between lo and hi bounds.
16691while test "x$ac_lo" != "x$ac_hi"; do
16692 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16693 cat >conftest.$ac_ext <<_ACEOF
16694/* confdefs.h. */
16695_ACEOF
16696cat confdefs.h >>conftest.$ac_ext
16697cat >>conftest.$ac_ext <<_ACEOF
16698/* end confdefs.h. */
16699$ac_includes_default
16700int
16701main ()
16702{
16703static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16704test_array [0] = 0
16705
16706 ;
16707 return 0;
16708}
16709_ACEOF
16710rm -f conftest.$ac_objext
16711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16712 (eval $ac_compile) 2>conftest.er1
a848cd7e 16713 ac_status=$?
ac1cb8d3
VS
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
a848cd7e
SC
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
89be85c2
VS
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
ac1cb8d3
VS
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16732 ac_hi=$ac_mid
16733else
16734 echo "$as_me: failed program was:" >&5
16735sed 's/^/| /' conftest.$ac_ext >&5
16736
16737ac_lo=`expr '(' $ac_mid ')' + 1`
16738fi
ac1cb8d3 16739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16740done
16741case $ac_lo in
16742?*) ac_cv_sizeof_long=$ac_lo;;
16743'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16744See \`config.log' for more details." >&5
16745echo "$as_me: error: cannot compute sizeof (long), 77
16746See \`config.log' for more details." >&2;}
16747 { (exit 1); exit 1; }; } ;;
16748esac
16749else
16750 if test "$cross_compiling" = yes; then
89be85c2
VS
16751 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16752See \`config.log' for more details." >&5
16753echo "$as_me: error: cannot run test program while cross compiling
16754See \`config.log' for more details." >&2;}
a848cd7e
SC
16755 { (exit 1); exit 1; }; }
16756else
16757 cat >conftest.$ac_ext <<_ACEOF
16758/* confdefs.h. */
16759_ACEOF
16760cat confdefs.h >>conftest.$ac_ext
16761cat >>conftest.$ac_ext <<_ACEOF
16762/* end confdefs.h. */
16763$ac_includes_default
16764long longval () { return (long) (sizeof (long)); }
16765unsigned long ulongval () { return (long) (sizeof (long)); }
16766#include <stdio.h>
16767#include <stdlib.h>
16768int
16769main ()
16770{
16771
16772 FILE *f = fopen ("conftest.val", "w");
16773 if (! f)
16774 exit (1);
16775 if (((long) (sizeof (long))) < 0)
16776 {
16777 long i = longval ();
16778 if (i != ((long) (sizeof (long))))
16779 exit (1);
16780 fprintf (f, "%ld\n", i);
16781 }
16782 else
16783 {
16784 unsigned long i = ulongval ();
16785 if (i != ((long) (sizeof (long))))
16786 exit (1);
16787 fprintf (f, "%lu\n", i);
16788 }
16789 exit (ferror (f) || fclose (f) != 0);
16790
16791 ;
16792 return 0;
16793}
16794_ACEOF
16795rm -f conftest$ac_exeext
16796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16797 (eval $ac_link) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16806 ac_cv_sizeof_long=`cat conftest.val`
16807else
16808 echo "$as_me: program exited with status $ac_status" >&5
16809echo "$as_me: failed program was:" >&5
16810sed 's/^/| /' conftest.$ac_ext >&5
16811
16812( exit $ac_status )
16813{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16814See \`config.log' for more details." >&5
16815echo "$as_me: error: cannot compute sizeof (long), 77
16816See \`config.log' for more details." >&2;}
16817 { (exit 1); exit 1; }; }
16818fi
ac1cb8d3 16819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16820fi
16821fi
16822rm -f conftest.val
16823else
16824 ac_cv_sizeof_long=0
16825fi
16826fi
16827echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16828echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16829cat >>confdefs.h <<_ACEOF
16830#define SIZEOF_LONG $ac_cv_sizeof_long
16831_ACEOF
16832
16833
16834echo "$as_me:$LINENO: checking for size_t" >&5
16835echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16836if test "${ac_cv_type_size_t+set}" = set; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16838else
16839 cat >conftest.$ac_ext <<_ACEOF
16840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
16845$ac_includes_default
16846int
16847main ()
16848{
16849if ((size_t *) 0)
16850 return 0;
16851if (sizeof (size_t))
16852 return 0;
16853 ;
16854 return 0;
16855}
16856_ACEOF
16857rm -f conftest.$ac_objext
16858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16859 (eval $ac_compile) 2>conftest.er1
a848cd7e 16860 ac_status=$?
ac1cb8d3
VS
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
a848cd7e
SC
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
89be85c2
VS
16866 { ac_try='test -z "$ac_c_werror_flag"
16867 || test ! -s conftest.err'
ac1cb8d3
VS
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; } &&
16873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16879 ac_cv_type_size_t=yes
16880else
16881 echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
16884ac_cv_type_size_t=no
16885fi
ac1cb8d3 16886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16887fi
16888echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16889echo "${ECHO_T}$ac_cv_type_size_t" >&6
16890
16891echo "$as_me:$LINENO: checking size of size_t" >&5
16892echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16893if test "${ac_cv_sizeof_size_t+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895else
16896 if test "$ac_cv_type_size_t" = yes; then
16897 # The cast to unsigned long works around a bug in the HP C Compiler
16898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16900 # This bug is HP SR number 8606223364.
16901 if test "$cross_compiling" = yes; then
16902 # Depending upon the size, compute the lo and hi bounds.
16903cat >conftest.$ac_ext <<_ACEOF
16904/* confdefs.h. */
16905_ACEOF
16906cat confdefs.h >>conftest.$ac_ext
16907cat >>conftest.$ac_ext <<_ACEOF
16908/* end confdefs.h. */
16909$ac_includes_default
16910int
16911main ()
16912{
16913static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16914test_array [0] = 0
16915
16916 ;
16917 return 0;
16918}
16919_ACEOF
16920rm -f conftest.$ac_objext
16921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16922 (eval $ac_compile) 2>conftest.er1
a848cd7e 16923 ac_status=$?
ac1cb8d3
VS
16924 grep -v '^ *+' conftest.er1 >conftest.err
16925 rm -f conftest.er1
16926 cat conftest.err >&5
a848cd7e
SC
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } &&
89be85c2
VS
16929 { ac_try='test -z "$ac_c_werror_flag"
16930 || test ! -s conftest.err'
ac1cb8d3
VS
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; } &&
16936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
16942 ac_lo=0 ac_mid=0
16943 while :; do
16944 cat >conftest.$ac_ext <<_ACEOF
16945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
16949/* end confdefs.h. */
16950$ac_includes_default
16951int
16952main ()
16953{
16954static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16955test_array [0] = 0
16956
16957 ;
16958 return 0;
16959}
16960_ACEOF
16961rm -f conftest.$ac_objext
16962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16963 (eval $ac_compile) 2>conftest.er1
a848cd7e 16964 ac_status=$?
ac1cb8d3
VS
16965 grep -v '^ *+' conftest.er1 >conftest.err
16966 rm -f conftest.er1
16967 cat conftest.err >&5
a848cd7e
SC
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
89be85c2
VS
16970 { ac_try='test -z "$ac_c_werror_flag"
16971 || test ! -s conftest.err'
ac1cb8d3
VS
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 ac_hi=$ac_mid; break
16984else
16985 echo "$as_me: failed program was:" >&5
16986sed 's/^/| /' conftest.$ac_ext >&5
16987
16988ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16989 if test $ac_lo -le $ac_mid; then
16990 ac_lo= ac_hi=
16991 break
16992 fi
16993 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16994fi
ac1cb8d3 16995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16996 done
16997else
16998 echo "$as_me: failed program was:" >&5
16999sed 's/^/| /' conftest.$ac_ext >&5
17000
17001cat >conftest.$ac_ext <<_ACEOF
17002/* confdefs.h. */
17003_ACEOF
17004cat confdefs.h >>conftest.$ac_ext
17005cat >>conftest.$ac_ext <<_ACEOF
17006/* end confdefs.h. */
17007$ac_includes_default
17008int
17009main ()
17010{
17011static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17012test_array [0] = 0
17013
17014 ;
17015 return 0;
17016}
17017_ACEOF
17018rm -f conftest.$ac_objext
17019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17020 (eval $ac_compile) 2>conftest.er1
a848cd7e 17021 ac_status=$?
ac1cb8d3
VS
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
a848cd7e
SC
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
89be85c2
VS
17027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
ac1cb8d3
VS
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_hi=-1 ac_mid=-1
17041 while :; do
17042 cat >conftest.$ac_ext <<_ACEOF
17043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
17048$ac_includes_default
17049int
17050main ()
17051{
17052static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17053test_array [0] = 0
17054
17055 ;
17056 return 0;
17057}
17058_ACEOF
17059rm -f conftest.$ac_objext
17060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17061 (eval $ac_compile) 2>conftest.er1
a848cd7e 17062 ac_status=$?
ac1cb8d3
VS
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
a848cd7e
SC
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
89be85c2
VS
17068 { ac_try='test -z "$ac_c_werror_flag"
17069 || test ! -s conftest.err'
ac1cb8d3
VS
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_lo=$ac_mid; break
17082else
17083 echo "$as_me: failed program was:" >&5
17084sed 's/^/| /' conftest.$ac_ext >&5
17085
17086ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17087 if test $ac_mid -le $ac_hi; then
17088 ac_lo= ac_hi=
17089 break
17090 fi
17091 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17092fi
ac1cb8d3 17093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17094 done
17095else
17096 echo "$as_me: failed program was:" >&5
17097sed 's/^/| /' conftest.$ac_ext >&5
17098
17099ac_lo= ac_hi=
17100fi
ac1cb8d3 17101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17102fi
ac1cb8d3 17103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17104# Binary search between lo and hi bounds.
17105while test "x$ac_lo" != "x$ac_hi"; do
17106 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17107 cat >conftest.$ac_ext <<_ACEOF
17108/* confdefs.h. */
17109_ACEOF
17110cat confdefs.h >>conftest.$ac_ext
17111cat >>conftest.$ac_ext <<_ACEOF
17112/* end confdefs.h. */
17113$ac_includes_default
17114int
17115main ()
17116{
17117static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17118test_array [0] = 0
17119
17120 ;
17121 return 0;
17122}
17123_ACEOF
17124rm -f conftest.$ac_objext
17125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17126 (eval $ac_compile) 2>conftest.er1
a848cd7e 17127 ac_status=$?
ac1cb8d3
VS
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
a848cd7e
SC
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
89be85c2
VS
17133 { ac_try='test -z "$ac_c_werror_flag"
17134 || test ! -s conftest.err'
ac1cb8d3
VS
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; } &&
17140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 ac_hi=$ac_mid
17147else
17148 echo "$as_me: failed program was:" >&5
17149sed 's/^/| /' conftest.$ac_ext >&5
17150
17151ac_lo=`expr '(' $ac_mid ')' + 1`
17152fi
ac1cb8d3 17153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17154done
17155case $ac_lo in
17156?*) ac_cv_sizeof_size_t=$ac_lo;;
17157'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17158See \`config.log' for more details." >&5
17159echo "$as_me: error: cannot compute sizeof (size_t), 77
17160See \`config.log' for more details." >&2;}
17161 { (exit 1); exit 1; }; } ;;
17162esac
17163else
17164 if test "$cross_compiling" = yes; then
89be85c2
VS
17165 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17166See \`config.log' for more details." >&5
17167echo "$as_me: error: cannot run test program while cross compiling
17168See \`config.log' for more details." >&2;}
a848cd7e
SC
17169 { (exit 1); exit 1; }; }
17170else
17171 cat >conftest.$ac_ext <<_ACEOF
17172/* confdefs.h. */
17173_ACEOF
17174cat confdefs.h >>conftest.$ac_ext
17175cat >>conftest.$ac_ext <<_ACEOF
17176/* end confdefs.h. */
17177$ac_includes_default
17178long longval () { return (long) (sizeof (size_t)); }
17179unsigned long ulongval () { return (long) (sizeof (size_t)); }
17180#include <stdio.h>
17181#include <stdlib.h>
17182int
17183main ()
17184{
17185
17186 FILE *f = fopen ("conftest.val", "w");
17187 if (! f)
17188 exit (1);
17189 if (((long) (sizeof (size_t))) < 0)
17190 {
17191 long i = longval ();
17192 if (i != ((long) (sizeof (size_t))))
17193 exit (1);
17194 fprintf (f, "%ld\n", i);
17195 }
17196 else
17197 {
17198 unsigned long i = ulongval ();
17199 if (i != ((long) (sizeof (size_t))))
17200 exit (1);
17201 fprintf (f, "%lu\n", i);
17202 }
17203 exit (ferror (f) || fclose (f) != 0);
17204
17205 ;
17206 return 0;
17207}
17208_ACEOF
17209rm -f conftest$ac_exeext
17210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211 (eval $ac_link) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 ac_cv_sizeof_size_t=`cat conftest.val`
17221else
17222 echo "$as_me: program exited with status $ac_status" >&5
17223echo "$as_me: failed program was:" >&5
17224sed 's/^/| /' conftest.$ac_ext >&5
17225
17226( exit $ac_status )
17227{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17228See \`config.log' for more details." >&5
17229echo "$as_me: error: cannot compute sizeof (size_t), 77
17230See \`config.log' for more details." >&2;}
17231 { (exit 1); exit 1; }; }
17232fi
ac1cb8d3 17233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17234fi
17235fi
17236rm -f conftest.val
17237else
17238 ac_cv_sizeof_size_t=0
17239fi
17240fi
17241echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17242echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17243cat >>confdefs.h <<_ACEOF
17244#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17245_ACEOF
17246
17247
17248
17249case "${host}" in
17250 arm-*-linux* )
17251 echo "$as_me:$LINENO: checking for long long" >&5
17252echo $ECHO_N "checking for long long... $ECHO_C" >&6
17253if test "${ac_cv_type_long_long+set}" = set; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17255else
17256 cat >conftest.$ac_ext <<_ACEOF
17257/* confdefs.h. */
17258_ACEOF
17259cat confdefs.h >>conftest.$ac_ext
17260cat >>conftest.$ac_ext <<_ACEOF
17261/* end confdefs.h. */
17262$ac_includes_default
17263int
17264main ()
17265{
17266if ((long long *) 0)
17267 return 0;
17268if (sizeof (long long))
17269 return 0;
17270 ;
17271 return 0;
17272}
17273_ACEOF
17274rm -f conftest.$ac_objext
17275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17276 (eval $ac_compile) 2>conftest.er1
a848cd7e 17277 ac_status=$?
ac1cb8d3
VS
17278 grep -v '^ *+' conftest.er1 >conftest.err
17279 rm -f conftest.er1
17280 cat conftest.err >&5
a848cd7e
SC
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } &&
89be85c2
VS
17283 { ac_try='test -z "$ac_c_werror_flag"
17284 || test ! -s conftest.err'
ac1cb8d3
VS
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17287 ac_status=$?
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; } &&
17290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; }; then
17296 ac_cv_type_long_long=yes
17297else
17298 echo "$as_me: failed program was:" >&5
17299sed 's/^/| /' conftest.$ac_ext >&5
17300
17301ac_cv_type_long_long=no
17302fi
ac1cb8d3 17303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17304fi
17305echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17306echo "${ECHO_T}$ac_cv_type_long_long" >&6
17307
17308echo "$as_me:$LINENO: checking size of long long" >&5
17309echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17310if test "${ac_cv_sizeof_long_long+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
17313 if test "$ac_cv_type_long_long" = yes; then
17314 # The cast to unsigned long works around a bug in the HP C Compiler
17315 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17316 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17317 # This bug is HP SR number 8606223364.
17318 if test "$cross_compiling" = yes; then
17319 # Depending upon the size, compute the lo and hi bounds.
17320cat >conftest.$ac_ext <<_ACEOF
17321/* confdefs.h. */
17322_ACEOF
17323cat confdefs.h >>conftest.$ac_ext
17324cat >>conftest.$ac_ext <<_ACEOF
17325/* end confdefs.h. */
17326$ac_includes_default
17327int
17328main ()
17329{
17330static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17331test_array [0] = 0
17332
17333 ;
17334 return 0;
17335}
17336_ACEOF
17337rm -f conftest.$ac_objext
17338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17339 (eval $ac_compile) 2>conftest.er1
a848cd7e 17340 ac_status=$?
ac1cb8d3
VS
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
a848cd7e
SC
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
89be85c2
VS
17346 { ac_try='test -z "$ac_c_werror_flag"
17347 || test ! -s conftest.err'
ac1cb8d3
VS
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; } &&
17353 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17359 ac_lo=0 ac_mid=0
17360 while :; do
17361 cat >conftest.$ac_ext <<_ACEOF
17362/* confdefs.h. */
17363_ACEOF
17364cat confdefs.h >>conftest.$ac_ext
17365cat >>conftest.$ac_ext <<_ACEOF
17366/* end confdefs.h. */
17367$ac_includes_default
17368int
17369main ()
17370{
17371static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17372test_array [0] = 0
17373
17374 ;
17375 return 0;
17376}
17377_ACEOF
17378rm -f conftest.$ac_objext
17379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17380 (eval $ac_compile) 2>conftest.er1
a848cd7e 17381 ac_status=$?
ac1cb8d3
VS
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
a848cd7e
SC
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
89be85c2
VS
17387 { ac_try='test -z "$ac_c_werror_flag"
17388 || test ! -s conftest.err'
ac1cb8d3
VS
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } &&
17394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_hi=$ac_mid; break
17401else
17402 echo "$as_me: failed program was:" >&5
17403sed 's/^/| /' conftest.$ac_ext >&5
17404
17405ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17406 if test $ac_lo -le $ac_mid; then
17407 ac_lo= ac_hi=
17408 break
17409 fi
17410 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17411fi
ac1cb8d3 17412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17413 done
17414else
17415 echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
17424$ac_includes_default
17425int
17426main ()
17427{
17428static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17429test_array [0] = 0
17430
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext
17436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17437 (eval $ac_compile) 2>conftest.er1
a848cd7e 17438 ac_status=$?
ac1cb8d3
VS
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
a848cd7e
SC
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
89be85c2
VS
17444 { ac_try='test -z "$ac_c_werror_flag"
17445 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_hi=-1 ac_mid=-1
17458 while :; do
17459 cat >conftest.$ac_ext <<_ACEOF
17460/* confdefs.h. */
17461_ACEOF
17462cat confdefs.h >>conftest.$ac_ext
17463cat >>conftest.$ac_ext <<_ACEOF
17464/* end confdefs.h. */
17465$ac_includes_default
17466int
17467main ()
17468{
17469static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17470test_array [0] = 0
17471
17472 ;
17473 return 0;
17474}
17475_ACEOF
17476rm -f conftest.$ac_objext
17477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17478 (eval $ac_compile) 2>conftest.er1
a848cd7e 17479 ac_status=$?
ac1cb8d3
VS
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
a848cd7e
SC
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
89be85c2
VS
17485 { ac_try='test -z "$ac_c_werror_flag"
17486 || test ! -s conftest.err'
ac1cb8d3
VS
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 ac_lo=$ac_mid; break
17499else
17500 echo "$as_me: failed program was:" >&5
17501sed 's/^/| /' conftest.$ac_ext >&5
17502
17503ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17504 if test $ac_mid -le $ac_hi; then
17505 ac_lo= ac_hi=
17506 break
17507 fi
17508 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17509fi
ac1cb8d3 17510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17511 done
17512else
17513 echo "$as_me: failed program was:" >&5
17514sed 's/^/| /' conftest.$ac_ext >&5
17515
17516ac_lo= ac_hi=
17517fi
ac1cb8d3 17518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17519fi
ac1cb8d3 17520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17521# Binary search between lo and hi bounds.
17522while test "x$ac_lo" != "x$ac_hi"; do
17523 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17524 cat >conftest.$ac_ext <<_ACEOF
17525/* confdefs.h. */
17526_ACEOF
17527cat confdefs.h >>conftest.$ac_ext
17528cat >>conftest.$ac_ext <<_ACEOF
17529/* end confdefs.h. */
17530$ac_includes_default
17531int
17532main ()
17533{
17534static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17535test_array [0] = 0
17536
17537 ;
17538 return 0;
17539}
17540_ACEOF
17541rm -f conftest.$ac_objext
17542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17543 (eval $ac_compile) 2>conftest.er1
a848cd7e 17544 ac_status=$?
ac1cb8d3
VS
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
a848cd7e
SC
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
89be85c2
VS
17550 { ac_try='test -z "$ac_c_werror_flag"
17551 || test ! -s conftest.err'
ac1cb8d3
VS
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_hi=$ac_mid
17564else
17565 echo "$as_me: failed program was:" >&5
17566sed 's/^/| /' conftest.$ac_ext >&5
17567
17568ac_lo=`expr '(' $ac_mid ')' + 1`
17569fi
ac1cb8d3 17570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17571done
17572case $ac_lo in
17573?*) ac_cv_sizeof_long_long=$ac_lo;;
17574'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17575See \`config.log' for more details." >&5
17576echo "$as_me: error: cannot compute sizeof (long long), 77
17577See \`config.log' for more details." >&2;}
17578 { (exit 1); exit 1; }; } ;;
17579esac
17580else
17581 if test "$cross_compiling" = yes; then
89be85c2
VS
17582 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17583See \`config.log' for more details." >&5
17584echo "$as_me: error: cannot run test program while cross compiling
17585See \`config.log' for more details." >&2;}
a848cd7e
SC
17586 { (exit 1); exit 1; }; }
17587else
17588 cat >conftest.$ac_ext <<_ACEOF
17589/* confdefs.h. */
17590_ACEOF
17591cat confdefs.h >>conftest.$ac_ext
17592cat >>conftest.$ac_ext <<_ACEOF
17593/* end confdefs.h. */
17594$ac_includes_default
17595long longval () { return (long) (sizeof (long long)); }
17596unsigned long ulongval () { return (long) (sizeof (long long)); }
17597#include <stdio.h>
17598#include <stdlib.h>
17599int
17600main ()
17601{
17602
17603 FILE *f = fopen ("conftest.val", "w");
17604 if (! f)
17605 exit (1);
17606 if (((long) (sizeof (long long))) < 0)
17607 {
17608 long i = longval ();
17609 if (i != ((long) (sizeof (long long))))
17610 exit (1);
17611 fprintf (f, "%ld\n", i);
17612 }
17613 else
17614 {
17615 unsigned long i = ulongval ();
17616 if (i != ((long) (sizeof (long long))))
17617 exit (1);
17618 fprintf (f, "%lu\n", i);
17619 }
17620 exit (ferror (f) || fclose (f) != 0);
17621
17622 ;
17623 return 0;
17624}
17625_ACEOF
17626rm -f conftest$ac_exeext
17627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17628 (eval $ac_link) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_sizeof_long_long=`cat conftest.val`
17638else
17639 echo "$as_me: program exited with status $ac_status" >&5
17640echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643( exit $ac_status )
17644{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17645See \`config.log' for more details." >&5
17646echo "$as_me: error: cannot compute sizeof (long long), 77
17647See \`config.log' for more details." >&2;}
17648 { (exit 1); exit 1; }; }
17649fi
ac1cb8d3 17650rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17651fi
17652fi
17653rm -f conftest.val
17654else
17655 ac_cv_sizeof_long_long=0
17656fi
17657fi
17658echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17659echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17660cat >>confdefs.h <<_ACEOF
17661#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17662_ACEOF
17663
17664
17665 ;;
17666 *-hp-hpux* )
17667 echo "$as_me:$LINENO: checking for long long" >&5
17668echo $ECHO_N "checking for long long... $ECHO_C" >&6
17669if test "${ac_cv_type_long_long+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17671else
17672 cat >conftest.$ac_ext <<_ACEOF
17673/* confdefs.h. */
17674_ACEOF
17675cat confdefs.h >>conftest.$ac_ext
17676cat >>conftest.$ac_ext <<_ACEOF
17677/* end confdefs.h. */
17678$ac_includes_default
17679int
17680main ()
17681{
17682if ((long long *) 0)
17683 return 0;
17684if (sizeof (long long))
17685 return 0;
17686 ;
17687 return 0;
17688}
17689_ACEOF
17690rm -f conftest.$ac_objext
17691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17692 (eval $ac_compile) 2>conftest.er1
a848cd7e 17693 ac_status=$?
ac1cb8d3
VS
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
a848cd7e
SC
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
89be85c2
VS
17699 { ac_try='test -z "$ac_c_werror_flag"
17700 || test ! -s conftest.err'
ac1cb8d3
VS
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_cv_type_long_long=yes
17713else
17714 echo "$as_me: failed program was:" >&5
17715sed 's/^/| /' conftest.$ac_ext >&5
17716
17717ac_cv_type_long_long=no
17718fi
ac1cb8d3 17719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17720fi
17721echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17722echo "${ECHO_T}$ac_cv_type_long_long" >&6
17723
17724echo "$as_me:$LINENO: checking size of long long" >&5
17725echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17726if test "${ac_cv_sizeof_long_long+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17728else
17729 if test "$ac_cv_type_long_long" = yes; then
17730 # The cast to unsigned long works around a bug in the HP C Compiler
17731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17733 # This bug is HP SR number 8606223364.
17734 if test "$cross_compiling" = yes; then
17735 # Depending upon the size, compute the lo and hi bounds.
17736cat >conftest.$ac_ext <<_ACEOF
17737/* confdefs.h. */
17738_ACEOF
17739cat confdefs.h >>conftest.$ac_ext
17740cat >>conftest.$ac_ext <<_ACEOF
17741/* end confdefs.h. */
17742$ac_includes_default
17743int
17744main ()
17745{
17746static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17747test_array [0] = 0
17748
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753rm -f conftest.$ac_objext
17754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17755 (eval $ac_compile) 2>conftest.er1
a848cd7e 17756 ac_status=$?
ac1cb8d3
VS
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
a848cd7e
SC
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
89be85c2
VS
17762 { ac_try='test -z "$ac_c_werror_flag"
17763 || test ! -s conftest.err'
ac1cb8d3
VS
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_lo=0 ac_mid=0
17776 while :; do
17777 cat >conftest.$ac_ext <<_ACEOF
17778/* confdefs.h. */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h. */
17783$ac_includes_default
17784int
17785main ()
17786{
17787static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17788test_array [0] = 0
17789
17790 ;
17791 return 0;
17792}
17793_ACEOF
17794rm -f conftest.$ac_objext
17795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17796 (eval $ac_compile) 2>conftest.er1
a848cd7e 17797 ac_status=$?
ac1cb8d3
VS
17798 grep -v '^ *+' conftest.er1 >conftest.err
17799 rm -f conftest.er1
17800 cat conftest.err >&5
a848cd7e
SC
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } &&
89be85c2
VS
17803 { ac_try='test -z "$ac_c_werror_flag"
17804 || test ! -s conftest.err'
ac1cb8d3
VS
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_hi=$ac_mid; break
17817else
17818 echo "$as_me: failed program was:" >&5
17819sed 's/^/| /' conftest.$ac_ext >&5
17820
17821ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17822 if test $ac_lo -le $ac_mid; then
17823 ac_lo= ac_hi=
17824 break
17825 fi
17826 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17827fi
ac1cb8d3 17828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17829 done
17830else
17831 echo "$as_me: failed program was:" >&5
17832sed 's/^/| /' conftest.$ac_ext >&5
17833
17834cat >conftest.$ac_ext <<_ACEOF
17835/* confdefs.h. */
17836_ACEOF
17837cat confdefs.h >>conftest.$ac_ext
17838cat >>conftest.$ac_ext <<_ACEOF
17839/* end confdefs.h. */
17840$ac_includes_default
17841int
17842main ()
17843{
17844static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17845test_array [0] = 0
17846
17847 ;
17848 return 0;
17849}
17850_ACEOF
17851rm -f conftest.$ac_objext
17852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17853 (eval $ac_compile) 2>conftest.er1
a848cd7e 17854 ac_status=$?
ac1cb8d3
VS
17855 grep -v '^ *+' conftest.er1 >conftest.err
17856 rm -f conftest.er1
17857 cat conftest.err >&5
a848cd7e
SC
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
89be85c2
VS
17860 { ac_try='test -z "$ac_c_werror_flag"
17861 || test ! -s conftest.err'
ac1cb8d3
VS
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; } &&
17867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17873 ac_hi=-1 ac_mid=-1
17874 while :; do
17875 cat >conftest.$ac_ext <<_ACEOF
17876/* confdefs.h. */
17877_ACEOF
17878cat confdefs.h >>conftest.$ac_ext
17879cat >>conftest.$ac_ext <<_ACEOF
17880/* end confdefs.h. */
17881$ac_includes_default
17882int
17883main ()
17884{
17885static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17886test_array [0] = 0
17887
17888 ;
17889 return 0;
17890}
17891_ACEOF
17892rm -f conftest.$ac_objext
17893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17894 (eval $ac_compile) 2>conftest.er1
a848cd7e 17895 ac_status=$?
ac1cb8d3
VS
17896 grep -v '^ *+' conftest.er1 >conftest.err
17897 rm -f conftest.er1
17898 cat conftest.err >&5
a848cd7e
SC
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } &&
89be85c2
VS
17901 { ac_try='test -z "$ac_c_werror_flag"
17902 || test ! -s conftest.err'
ac1cb8d3
VS
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; } &&
17908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
17914 ac_lo=$ac_mid; break
17915else
17916 echo "$as_me: failed program was:" >&5
17917sed 's/^/| /' conftest.$ac_ext >&5
17918
17919ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17920 if test $ac_mid -le $ac_hi; then
17921 ac_lo= ac_hi=
17922 break
17923 fi
17924 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17925fi
ac1cb8d3 17926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17927 done
17928else
17929 echo "$as_me: failed program was:" >&5
17930sed 's/^/| /' conftest.$ac_ext >&5
17931
17932ac_lo= ac_hi=
17933fi
ac1cb8d3 17934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17935fi
ac1cb8d3 17936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17937# Binary search between lo and hi bounds.
17938while test "x$ac_lo" != "x$ac_hi"; do
17939 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17940 cat >conftest.$ac_ext <<_ACEOF
17941/* confdefs.h. */
17942_ACEOF
17943cat confdefs.h >>conftest.$ac_ext
17944cat >>conftest.$ac_ext <<_ACEOF
17945/* end confdefs.h. */
17946$ac_includes_default
17947int
17948main ()
17949{
17950static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17951test_array [0] = 0
17952
17953 ;
17954 return 0;
17955}
17956_ACEOF
17957rm -f conftest.$ac_objext
17958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17959 (eval $ac_compile) 2>conftest.er1
a848cd7e 17960 ac_status=$?
ac1cb8d3
VS
17961 grep -v '^ *+' conftest.er1 >conftest.err
17962 rm -f conftest.er1
17963 cat conftest.err >&5
a848cd7e
SC
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } &&
89be85c2
VS
17966 { ac_try='test -z "$ac_c_werror_flag"
17967 || test ! -s conftest.err'
ac1cb8d3
VS
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; } &&
17973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 ac_hi=$ac_mid
17980else
17981 echo "$as_me: failed program was:" >&5
17982sed 's/^/| /' conftest.$ac_ext >&5
17983
17984ac_lo=`expr '(' $ac_mid ')' + 1`
17985fi
ac1cb8d3 17986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17987done
17988case $ac_lo in
17989?*) ac_cv_sizeof_long_long=$ac_lo;;
17990'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17991See \`config.log' for more details." >&5
17992echo "$as_me: error: cannot compute sizeof (long long), 77
17993See \`config.log' for more details." >&2;}
17994 { (exit 1); exit 1; }; } ;;
17995esac
17996else
17997 if test "$cross_compiling" = yes; then
89be85c2
VS
17998 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17999See \`config.log' for more details." >&5
18000echo "$as_me: error: cannot run test program while cross compiling
18001See \`config.log' for more details." >&2;}
a848cd7e
SC
18002 { (exit 1); exit 1; }; }
18003else
18004 cat >conftest.$ac_ext <<_ACEOF
18005/* confdefs.h. */
18006_ACEOF
18007cat confdefs.h >>conftest.$ac_ext
18008cat >>conftest.$ac_ext <<_ACEOF
18009/* end confdefs.h. */
18010$ac_includes_default
18011long longval () { return (long) (sizeof (long long)); }
18012unsigned long ulongval () { return (long) (sizeof (long long)); }
18013#include <stdio.h>
18014#include <stdlib.h>
18015int
18016main ()
18017{
18018
18019 FILE *f = fopen ("conftest.val", "w");
18020 if (! f)
18021 exit (1);
18022 if (((long) (sizeof (long long))) < 0)
18023 {
18024 long i = longval ();
18025 if (i != ((long) (sizeof (long long))))
18026 exit (1);
18027 fprintf (f, "%ld\n", i);
18028 }
18029 else
18030 {
18031 unsigned long i = ulongval ();
18032 if (i != ((long) (sizeof (long long))))
18033 exit (1);
18034 fprintf (f, "%lu\n", i);
18035 }
18036 exit (ferror (f) || fclose (f) != 0);
18037
18038 ;
18039 return 0;
18040}
18041_ACEOF
18042rm -f conftest$ac_exeext
18043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18044 (eval $ac_link) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_sizeof_long_long=`cat conftest.val`
18054else
18055 echo "$as_me: program exited with status $ac_status" >&5
18056echo "$as_me: failed program was:" >&5
18057sed 's/^/| /' conftest.$ac_ext >&5
18058
18059( exit $ac_status )
18060{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18061See \`config.log' for more details." >&5
18062echo "$as_me: error: cannot compute sizeof (long long), 77
18063See \`config.log' for more details." >&2;}
18064 { (exit 1); exit 1; }; }
18065fi
ac1cb8d3 18066rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18067fi
18068fi
18069rm -f conftest.val
18070else
18071 ac_cv_sizeof_long_long=0
18072fi
18073fi
18074echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18075echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18076cat >>confdefs.h <<_ACEOF
18077#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18078_ACEOF
18079
18080
18081 if test "$ac_cv_sizeof_long_long" != "0"; then
18082 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18083 fi
18084 ;;
18085 * )
18086 echo "$as_me:$LINENO: checking for long long" >&5
18087echo $ECHO_N "checking for long long... $ECHO_C" >&6
18088if test "${ac_cv_type_long_long+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090else
18091 cat >conftest.$ac_ext <<_ACEOF
18092/* confdefs.h. */
18093_ACEOF
18094cat confdefs.h >>conftest.$ac_ext
18095cat >>conftest.$ac_ext <<_ACEOF
18096/* end confdefs.h. */
18097$ac_includes_default
18098int
18099main ()
18100{
18101if ((long long *) 0)
18102 return 0;
18103if (sizeof (long long))
18104 return 0;
18105 ;
18106 return 0;
18107}
18108_ACEOF
18109rm -f conftest.$ac_objext
18110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18111 (eval $ac_compile) 2>conftest.er1
a848cd7e 18112 ac_status=$?
ac1cb8d3
VS
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
a848cd7e
SC
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
89be85c2
VS
18118 { ac_try='test -z "$ac_c_werror_flag"
18119 || test ! -s conftest.err'
ac1cb8d3
VS
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_type_long_long=yes
18132else
18133 echo "$as_me: failed program was:" >&5
18134sed 's/^/| /' conftest.$ac_ext >&5
18135
18136ac_cv_type_long_long=no
18137fi
ac1cb8d3 18138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18139fi
18140echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18141echo "${ECHO_T}$ac_cv_type_long_long" >&6
18142
18143echo "$as_me:$LINENO: checking size of long long" >&5
18144echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18145if test "${ac_cv_sizeof_long_long+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148 if test "$ac_cv_type_long_long" = yes; then
18149 # The cast to unsigned long works around a bug in the HP C Compiler
18150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18152 # This bug is HP SR number 8606223364.
18153 if test "$cross_compiling" = yes; then
18154 # Depending upon the size, compute the lo and hi bounds.
18155cat >conftest.$ac_ext <<_ACEOF
18156/* confdefs.h. */
18157_ACEOF
18158cat confdefs.h >>conftest.$ac_ext
18159cat >>conftest.$ac_ext <<_ACEOF
18160/* end confdefs.h. */
18161$ac_includes_default
18162int
18163main ()
18164{
18165static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18166test_array [0] = 0
18167
18168 ;
18169 return 0;
18170}
18171_ACEOF
18172rm -f conftest.$ac_objext
18173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18174 (eval $ac_compile) 2>conftest.er1
a848cd7e 18175 ac_status=$?
ac1cb8d3
VS
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
a848cd7e
SC
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } &&
89be85c2
VS
18181 { ac_try='test -z "$ac_c_werror_flag"
18182 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; }; then
18194 ac_lo=0 ac_mid=0
18195 while :; do
18196 cat >conftest.$ac_ext <<_ACEOF
18197/* confdefs.h. */
18198_ACEOF
18199cat confdefs.h >>conftest.$ac_ext
18200cat >>conftest.$ac_ext <<_ACEOF
18201/* end confdefs.h. */
18202$ac_includes_default
18203int
18204main ()
18205{
18206static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18207test_array [0] = 0
18208
18209 ;
18210 return 0;
18211}
18212_ACEOF
18213rm -f conftest.$ac_objext
18214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18215 (eval $ac_compile) 2>conftest.er1
a848cd7e 18216 ac_status=$?
ac1cb8d3
VS
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
a848cd7e
SC
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
89be85c2
VS
18222 { ac_try='test -z "$ac_c_werror_flag"
18223 || test ! -s conftest.err'
ac1cb8d3
VS
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_hi=$ac_mid; break
18236else
18237 echo "$as_me: failed program was:" >&5
18238sed 's/^/| /' conftest.$ac_ext >&5
18239
18240ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18241 if test $ac_lo -le $ac_mid; then
18242 ac_lo= ac_hi=
18243 break
18244 fi
18245 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18246fi
ac1cb8d3 18247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18248 done
18249else
18250 echo "$as_me: failed program was:" >&5
18251sed 's/^/| /' conftest.$ac_ext >&5
18252
18253cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
18259$ac_includes_default
18260int
18261main ()
18262{
18263static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18264test_array [0] = 0
18265
18266 ;
18267 return 0;
18268}
18269_ACEOF
18270rm -f conftest.$ac_objext
18271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18272 (eval $ac_compile) 2>conftest.er1
a848cd7e 18273 ac_status=$?
ac1cb8d3
VS
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
a848cd7e
SC
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
89be85c2
VS
18279 { ac_try='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
ac1cb8d3
VS
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_hi=-1 ac_mid=-1
18293 while :; do
18294 cat >conftest.$ac_ext <<_ACEOF
18295/* confdefs.h. */
18296_ACEOF
18297cat confdefs.h >>conftest.$ac_ext
18298cat >>conftest.$ac_ext <<_ACEOF
18299/* end confdefs.h. */
18300$ac_includes_default
18301int
18302main ()
18303{
18304static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18305test_array [0] = 0
18306
18307 ;
18308 return 0;
18309}
18310_ACEOF
18311rm -f conftest.$ac_objext
18312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18313 (eval $ac_compile) 2>conftest.er1
a848cd7e 18314 ac_status=$?
ac1cb8d3
VS
18315 grep -v '^ *+' conftest.er1 >conftest.err
18316 rm -f conftest.er1
18317 cat conftest.err >&5
a848cd7e
SC
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
89be85c2
VS
18320 { ac_try='test -z "$ac_c_werror_flag"
18321 || test ! -s conftest.err'
ac1cb8d3
VS
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_lo=$ac_mid; break
18334else
18335 echo "$as_me: failed program was:" >&5
18336sed 's/^/| /' conftest.$ac_ext >&5
18337
18338ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18339 if test $ac_mid -le $ac_hi; then
18340 ac_lo= ac_hi=
18341 break
18342 fi
18343 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18344fi
ac1cb8d3 18345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18346 done
18347else
18348 echo "$as_me: failed program was:" >&5
18349sed 's/^/| /' conftest.$ac_ext >&5
18350
18351ac_lo= ac_hi=
18352fi
ac1cb8d3 18353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18354fi
ac1cb8d3 18355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18356# Binary search between lo and hi bounds.
18357while test "x$ac_lo" != "x$ac_hi"; do
18358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18359 cat >conftest.$ac_ext <<_ACEOF
18360/* confdefs.h. */
18361_ACEOF
18362cat confdefs.h >>conftest.$ac_ext
18363cat >>conftest.$ac_ext <<_ACEOF
18364/* end confdefs.h. */
18365$ac_includes_default
18366int
18367main ()
18368{
18369static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18370test_array [0] = 0
18371
18372 ;
18373 return 0;
18374}
18375_ACEOF
18376rm -f conftest.$ac_objext
18377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18378 (eval $ac_compile) 2>conftest.er1
a848cd7e 18379 ac_status=$?
ac1cb8d3
VS
18380 grep -v '^ *+' conftest.er1 >conftest.err
18381 rm -f conftest.er1
18382 cat conftest.err >&5
a848cd7e
SC
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
89be85c2
VS
18385 { ac_try='test -z "$ac_c_werror_flag"
18386 || test ! -s conftest.err'
ac1cb8d3
VS
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_hi=$ac_mid
18399else
18400 echo "$as_me: failed program was:" >&5
18401sed 's/^/| /' conftest.$ac_ext >&5
18402
18403ac_lo=`expr '(' $ac_mid ')' + 1`
18404fi
ac1cb8d3 18405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18406done
18407case $ac_lo in
18408?*) ac_cv_sizeof_long_long=$ac_lo;;
18409'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18410See \`config.log' for more details." >&5
18411echo "$as_me: error: cannot compute sizeof (long long), 77
18412See \`config.log' for more details." >&2;}
18413 { (exit 1); exit 1; }; } ;;
18414esac
18415else
18416 if test "$cross_compiling" = yes; then
89be85c2
VS
18417 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18418See \`config.log' for more details." >&5
18419echo "$as_me: error: cannot run test program while cross compiling
18420See \`config.log' for more details." >&2;}
a848cd7e
SC
18421 { (exit 1); exit 1; }; }
18422else
18423 cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
18429$ac_includes_default
18430long longval () { return (long) (sizeof (long long)); }
18431unsigned long ulongval () { return (long) (sizeof (long long)); }
18432#include <stdio.h>
18433#include <stdlib.h>
18434int
18435main ()
18436{
18437
18438 FILE *f = fopen ("conftest.val", "w");
18439 if (! f)
18440 exit (1);
18441 if (((long) (sizeof (long long))) < 0)
18442 {
18443 long i = longval ();
18444 if (i != ((long) (sizeof (long long))))
18445 exit (1);
18446 fprintf (f, "%ld\n", i);
18447 }
18448 else
18449 {
18450 unsigned long i = ulongval ();
18451 if (i != ((long) (sizeof (long long))))
18452 exit (1);
18453 fprintf (f, "%lu\n", i);
18454 }
18455 exit (ferror (f) || fclose (f) != 0);
18456
18457 ;
18458 return 0;
18459}
18460_ACEOF
18461rm -f conftest$ac_exeext
18462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18463 (eval $ac_link) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_sizeof_long_long=`cat conftest.val`
18473else
18474 echo "$as_me: program exited with status $ac_status" >&5
18475echo "$as_me: failed program was:" >&5
18476sed 's/^/| /' conftest.$ac_ext >&5
18477
18478( exit $ac_status )
18479{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18480See \`config.log' for more details." >&5
18481echo "$as_me: error: cannot compute sizeof (long long), 77
18482See \`config.log' for more details." >&2;}
18483 { (exit 1); exit 1; }; }
18484fi
ac1cb8d3 18485rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18486fi
18487fi
18488rm -f conftest.val
18489else
18490 ac_cv_sizeof_long_long=0
18491fi
18492fi
18493echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18494echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18495cat >>confdefs.h <<_ACEOF
18496#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18497_ACEOF
18498
18499
18500esac
18501
18502echo "$as_me:$LINENO: checking size of wchar_t" >&5
18503echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18504if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507
18508 if test "$cross_compiling" = yes; then
18509
18510 case "${host}" in
18511 *-pc-msdosdjgpp )
18512 wx_cv_sizeof_wchar_t=0
18513 ;;
18514 * )
18515 wx_cv_sizeof_wchar_t=4
18516 ;;
18517 esac
18518
18519
18520else
18521 cat >conftest.$ac_ext <<_ACEOF
18522/* confdefs.h. */
18523_ACEOF
18524cat confdefs.h >>conftest.$ac_ext
18525cat >>conftest.$ac_ext <<_ACEOF
18526/* end confdefs.h. */
18527
18528 /* DJGPP only has fake wchar_t: */
18529 #ifdef __DJGPP__
18530 # error "fake wchar_t"
18531 #endif
18532 #ifdef HAVE_WCHAR_H
18533 # ifdef __CYGWIN__
18534 # include <stddef.h>
18535 # endif
18536 # include <wchar.h>
18537 #endif
18538 #ifdef HAVE_STDLIB_H
18539 # include <stdlib.h>
18540 #endif
18541 #include <stdio.h>
18542 int main()
18543 {
18544 FILE *f=fopen("conftestval", "w");
18545 if (!f) exit(1);
18546 fprintf(f, "%i", sizeof(wchar_t));
18547 exit(0);
18548 }
18549
18550_ACEOF
18551rm -f conftest$ac_exeext
18552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18553 (eval $ac_link) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 wx_cv_sizeof_wchar_t=`cat conftestval`
18563else
18564 echo "$as_me: program exited with status $ac_status" >&5
18565echo "$as_me: failed program was:" >&5
18566sed 's/^/| /' conftest.$ac_ext >&5
18567
18568( exit $ac_status )
18569wx_cv_sizeof_wchar_t=0
18570fi
ac1cb8d3 18571rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18572fi
18573
18574fi
18575echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18576echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18577
18578cat >>confdefs.h <<_ACEOF
18579#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18580_ACEOF
18581
18582
ba3d13e1
VZ
18583echo "$as_me:$LINENO: checking for va_copy" >&5
18584echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18585if test "${wx_cv_func_va_copy+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587else
18588
18589 cat >conftest.$ac_ext <<_ACEOF
18590
18591 #include <stdarg.h>
18592 void foo(char *f, ...)
18593 {
18594 va_list ap1, ap2;
18595 va_start(ap1, f);
18596 va_copy(ap2, ap1);
18597 va_end(ap2);
18598 va_end(ap1);
18599 }
5886b072
VZ
18600 int main()
18601 {
b902e639
VZ
18602 foo("hi", 17);
18603 return 0;
5886b072 18604 }
ba3d13e1
VZ
18605_ACEOF
18606rm -f conftest.$ac_objext conftest$ac_exeext
18607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18608 (eval $ac_link) 2>conftest.er1
18609 ac_status=$?
18610 grep -v '^ *+' conftest.er1 >conftest.err
18611 rm -f conftest.er1
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
89be85c2
VS
18615 { ac_try='test -z "$ac_c_werror_flag"
18616 || test ! -s conftest.err'
ba3d13e1
VZ
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest$ac_exeext'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628 wx_cv_func_va_copy=yes
18629else
18630 echo "$as_me: failed program was:" >&5
18631sed 's/^/| /' conftest.$ac_ext >&5
18632
18633wx_cv_func_va_copy=no
18634
18635fi
18636rm -f conftest.err conftest.$ac_objext \
18637 conftest$ac_exeext conftest.$ac_ext
18638
18639
18640fi
18641echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18642echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18643
18644if test $wx_cv_func_va_copy = "yes"; then
18645 cat >>confdefs.h <<\_ACEOF
18646#define HAVE_VA_COPY 1
18647_ACEOF
18648
18649else
18650 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18651echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18652if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18654else
18655
18656 if test "$cross_compiling" = yes; then
18657 wx_cv_type_va_list_lvalue=yes
18658
18659else
18660 cat >conftest.$ac_ext <<_ACEOF
18661
18662 #include <stdarg.h>
18663 int foo(char *f, ...)
18664 {
18665 va_list ap1, ap2;
18666 va_start(ap1, f);
18667 ap2 = ap1;
18668 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18669 return 1;
18670 va_end(ap2);
18671 va_end(ap1);
18672 return 0;
18673 }
18674 int main()
18675 {
18676 return foo("hi", 17);
18677 }
18678_ACEOF
18679rm -f conftest$ac_exeext
18680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18681 (eval $ac_link) 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 wx_cv_type_va_list_lvalue=yes
18691else
18692 echo "$as_me: program exited with status $ac_status" >&5
18693echo "$as_me: failed program was:" >&5
18694sed 's/^/| /' conftest.$ac_ext >&5
18695
18696( exit $ac_status )
18697wx_cv_type_va_list_lvalue=no
18698fi
18699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18700fi
18701
18702
18703fi
18704echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18705echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18706
18707 if test $wx_cv_type_va_list_lvalue != "yes"; then
18708 cat >>confdefs.h <<\_ACEOF
18709#define VA_LIST_IS_ARRAY 1
18710_ACEOF
18711
18712 fi
18713fi
18714
a848cd7e
SC
18715# Check whether --enable-largefile or --disable-largefile was given.
18716if test "${enable_largefile+set}" = set; then
18717 enableval="$enable_largefile"
18718
18719fi;
18720if test "$enable_largefile" != no; then
18721 wx_largefile=no
18722
18723 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18724echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18725if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18727else
18728
18729 cat >conftest.$ac_ext <<_ACEOF
18730/* confdefs.h. */
18731_ACEOF
18732cat confdefs.h >>conftest.$ac_ext
18733cat >>conftest.$ac_ext <<_ACEOF
18734/* end confdefs.h. */
18735#define _FILE_OFFSET_BITS 64
18736 #include <sys/types.h>
18737int
18738main ()
18739{
18740typedef struct {
18741 unsigned int field: sizeof(off_t) == 8;
18742} wxlf;
18743
18744 ;
18745 return 0;
18746}
18747_ACEOF
18748rm -f conftest.$ac_objext
18749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18750 (eval $ac_compile) 2>conftest.er1
a848cd7e 18751 ac_status=$?
ac1cb8d3
VS
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
a848cd7e
SC
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
89be85c2
VS
18757 { ac_try='test -z "$ac_c_werror_flag"
18758 || test ! -s conftest.err'
ac1cb8d3
VS
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 ac_cv_sys_file_offset_bits=64
18771else
18772 echo "$as_me: failed program was:" >&5
18773sed 's/^/| /' conftest.$ac_ext >&5
18774
18775ac_cv_sys_file_offset_bits=no
18776fi
ac1cb8d3 18777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18778
18779
18780fi
18781echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18782echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18783
18784 if test "$ac_cv_sys_file_offset_bits" != no; then
18785 wx_largefile=yes
18786 cat >>confdefs.h <<_ACEOF
18787#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18788_ACEOF
18789
18790 fi
18791
18792 if test "x$wx_largefile" != "xyes"; then
18793
18794 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18795echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18796if test "${ac_cv_sys_large_files+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799
18800 cat >conftest.$ac_ext <<_ACEOF
18801/* confdefs.h. */
18802_ACEOF
18803cat confdefs.h >>conftest.$ac_ext
18804cat >>conftest.$ac_ext <<_ACEOF
18805/* end confdefs.h. */
18806#define _LARGE_FILES 1
18807 #include <sys/types.h>
18808int
18809main ()
18810{
18811typedef struct {
18812 unsigned int field: sizeof(off_t) == 8;
18813} wxlf;
18814
18815 ;
18816 return 0;
18817}
18818_ACEOF
18819rm -f conftest.$ac_objext
18820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18821 (eval $ac_compile) 2>conftest.er1
a848cd7e 18822 ac_status=$?
ac1cb8d3
VS
18823 grep -v '^ *+' conftest.er1 >conftest.err
18824 rm -f conftest.er1
18825 cat conftest.err >&5
a848cd7e
SC
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } &&
89be85c2
VS
18828 { ac_try='test -z "$ac_c_werror_flag"
18829 || test ! -s conftest.err'
ac1cb8d3
VS
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 ac_cv_sys_large_files=1
18842else
18843 echo "$as_me: failed program was:" >&5
18844sed 's/^/| /' conftest.$ac_ext >&5
18845
18846ac_cv_sys_large_files=no
18847fi
ac1cb8d3 18848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18849
18850
18851fi
18852echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18853echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18854
18855 if test "$ac_cv_sys_large_files" != no; then
18856 wx_largefile=yes
18857 cat >>confdefs.h <<_ACEOF
18858#define _LARGE_FILES $ac_cv_sys_large_files
18859_ACEOF
18860
18861 fi
18862
18863 fi
18864
18865 echo "$as_me:$LINENO: checking if large file support is available" >&5
18866echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18867 if test "x$wx_largefile" = "xyes"; then
18868 cat >>confdefs.h <<\_ACEOF
18869#define HAVE_LARGEFILE_SUPPORT 1
18870_ACEOF
18871
18872 fi
18873 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18874echo "${ECHO_T}$wx_largefile" >&6
18875fi
18876
5b674b9d
DE
18877
18878if test "x$wx_largefile" = "xyes"; then
18879 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18880 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18881 else
18882 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18883 fi
18884 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
18885echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18886if test "${ac_cv_sys_largefile_source+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888else
18889 while :; do
18890 ac_cv_sys_largefile_source=no
18891 cat >conftest.$ac_ext <<_ACEOF
18892/* confdefs.h. */
18893_ACEOF
18894cat confdefs.h >>conftest.$ac_ext
18895cat >>conftest.$ac_ext <<_ACEOF
18896/* end confdefs.h. */
18897#include <stdio.h>
18898int
18899main ()
18900{
18901return !fseeko;
18902 ;
18903 return 0;
18904}
18905_ACEOF
18906rm -f conftest.$ac_objext
18907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18908 (eval $ac_compile) 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
89be85c2
VS
18915 { ac_try='test -z "$ac_c_werror_flag"
18916 || test ! -s conftest.err'
5294a27e
VZ
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest.$ac_objext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18928 break
18929else
18930 echo "$as_me: failed program was:" >&5
18931sed 's/^/| /' conftest.$ac_ext >&5
18932
18933fi
18934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18935 cat >conftest.$ac_ext <<_ACEOF
18936/* confdefs.h. */
18937_ACEOF
18938cat confdefs.h >>conftest.$ac_ext
18939cat >>conftest.$ac_ext <<_ACEOF
18940/* end confdefs.h. */
18941#define _LARGEFILE_SOURCE 1
18942#include <stdio.h>
18943int
18944main ()
18945{
18946return !fseeko;
18947 ;
18948 return 0;
18949}
18950_ACEOF
18951rm -f conftest.$ac_objext
18952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>conftest.er1
18954 ac_status=$?
18955 grep -v '^ *+' conftest.er1 >conftest.err
18956 rm -f conftest.er1
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
89be85c2
VS
18960 { ac_try='test -z "$ac_c_werror_flag"
18961 || test ! -s conftest.err'
5294a27e
VZ
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try='test -s conftest.$ac_objext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 ac_cv_sys_largefile_source=1; break
18974else
18975 echo "$as_me: failed program was:" >&5
18976sed 's/^/| /' conftest.$ac_ext >&5
18977
18978fi
18979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18980 break
18981done
18982fi
18983echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18984echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18985if test "$ac_cv_sys_largefile_source" != no; then
18986
18987cat >>confdefs.h <<_ACEOF
18988#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18989_ACEOF
18990
18991fi
18992rm -f conftest*
18993
18994# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18995# in glibc 2.1.3, but that breaks too many other things.
18996# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18997echo "$as_me:$LINENO: checking for fseeko" >&5
18998echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18999if test "${ac_cv_func_fseeko+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19001else
19002 cat >conftest.$ac_ext <<_ACEOF
19003/* confdefs.h. */
19004_ACEOF
19005cat confdefs.h >>conftest.$ac_ext
19006cat >>conftest.$ac_ext <<_ACEOF
19007/* end confdefs.h. */
19008#include <stdio.h>
19009int
19010main ()
19011{
19012return fseeko && fseeko (stdin, 0, 0);
19013 ;
19014 return 0;
19015}
19016_ACEOF
19017rm -f conftest.$ac_objext conftest$ac_exeext
19018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19019 (eval $ac_link) 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
89be85c2
VS
19026 { ac_try='test -z "$ac_c_werror_flag"
19027 || test ! -s conftest.err'
5294a27e
VZ
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest$ac_exeext'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_cv_func_fseeko=yes
19040else
19041 echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044ac_cv_func_fseeko=no
19045fi
19046rm -f conftest.err conftest.$ac_objext \
19047 conftest$ac_exeext conftest.$ac_ext
19048fi
19049echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
19050echo "${ECHO_T}$ac_cv_func_fseeko" >&6
19051if test $ac_cv_func_fseeko = yes; then
19052
19053cat >>confdefs.h <<\_ACEOF
19054#define HAVE_FSEEKO 1
19055_ACEOF
19056
19057fi
19058
5b674b9d
DE
19059 if test "$ac_cv_sys_largefile_source" != no; then
19060 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
19061 fi
19062 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
19063fi
19064
19065echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19066echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19067if test "${ac_cv_c_bigendian+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069else
19070 ac_cv_c_bigendian=unknown
19071# See if sys/param.h defines the BYTE_ORDER macro.
19072cat >conftest.$ac_ext <<_ACEOF
19073/* confdefs.h. */
19074_ACEOF
19075cat confdefs.h >>conftest.$ac_ext
19076cat >>conftest.$ac_ext <<_ACEOF
19077/* end confdefs.h. */
19078#include <sys/types.h>
19079#include <sys/param.h>
19080int
19081main ()
19082{
19083
19084#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19085 bogus endian macros
19086#endif
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
19092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19093 (eval $ac_compile) 2>conftest.er1
a848cd7e 19094 ac_status=$?
ac1cb8d3
VS
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
a848cd7e
SC
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
89be85c2
VS
19100 { ac_try='test -z "$ac_c_werror_flag"
19101 || test ! -s conftest.err'
ac1cb8d3
VS
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; } &&
19107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 # It does; now see whether it defined to BIG_ENDIAN or not.
19114cat >conftest.$ac_ext <<_ACEOF
19115/* confdefs.h. */
19116_ACEOF
19117cat confdefs.h >>conftest.$ac_ext
19118cat >>conftest.$ac_ext <<_ACEOF
19119/* end confdefs.h. */
19120#include <sys/types.h>
19121#include <sys/param.h>
19122int
19123main ()
19124{
19125
19126#if BYTE_ORDER != BIG_ENDIAN
19127 not big endian
19128#endif
19129 ;
19130 return 0;
19131}
19132_ACEOF
19133rm -f conftest.$ac_objext
19134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19135 (eval $ac_compile) 2>conftest.er1
a848cd7e 19136 ac_status=$?
ac1cb8d3
VS
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
a848cd7e
SC
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
89be85c2
VS
19142 { ac_try='test -z "$ac_c_werror_flag"
19143 || test ! -s conftest.err'
ac1cb8d3
VS
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_cv_c_bigendian=yes
19156else
19157 echo "$as_me: failed program was:" >&5
19158sed 's/^/| /' conftest.$ac_ext >&5
19159
19160ac_cv_c_bigendian=no
19161fi
ac1cb8d3 19162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19163else
19164 echo "$as_me: failed program was:" >&5
19165sed 's/^/| /' conftest.$ac_ext >&5
19166
19167fi
ac1cb8d3 19168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19169if test $ac_cv_c_bigendian = unknown; then
19170if test "$cross_compiling" = yes; then
19171 ac_cv_c_bigendian=unknown
19172else
19173 cat >conftest.$ac_ext <<_ACEOF
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179main () {
19180 /* Are we little or big endian? From Harbison&Steele. */
19181 union
19182 {
19183 long l;
19184 char c[sizeof (long)];
19185 } u;
19186 u.l = 1;
19187 exit (u.c[sizeof (long) - 1] == 1);
19188}
19189_ACEOF
19190rm -f conftest$ac_exeext
19191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19192 (eval $ac_link) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_c_bigendian=no
19202else
19203 echo "$as_me: program exited with status $ac_status" >&5
19204echo "$as_me: failed program was:" >&5
19205sed 's/^/| /' conftest.$ac_ext >&5
19206
19207( exit $ac_status )
19208ac_cv_c_bigendian=yes
19209fi
ac1cb8d3 19210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19211fi
19212fi
19213fi
19214echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19215echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19216if test $ac_cv_c_bigendian = unknown; then
19217 { 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
19218echo "$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;}
19219fi
19220if test $ac_cv_c_bigendian = yes; then
19221 cat >>confdefs.h <<\_ACEOF
19222#define WORDS_BIGENDIAN 1
19223_ACEOF
19224
19225fi
19226
19227
19228ac_ext=cc
19229ac_cpp='$CXXCPP $CPPFLAGS'
19230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19233echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19234echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19235if test -z "$CXXCPP"; then
19236 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238else
19239 # Double quotes because CXXCPP needs to be expanded
19240 for CXXCPP in "$CXX -E" "/lib/cpp"
19241 do
19242 ac_preproc_ok=false
19243for ac_cxx_preproc_warn_flag in '' yes
19244do
19245 # Use a header file that comes with gcc, so configuring glibc
19246 # with a fresh cross-compiler works.
19247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19248 # <limits.h> exists even on freestanding compilers.
19249 # On the NeXT, cc -E runs the code through the compiler's parser,
19250 # not just through cpp. "Syntax error" is here to catch this case.
19251 cat >conftest.$ac_ext <<_ACEOF
19252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257#ifdef __STDC__
19258# include <limits.h>
19259#else
19260# include <assert.h>
19261#endif
ac1cb8d3 19262 Syntax error
a848cd7e
SC
19263_ACEOF
19264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } >/dev/null; then
19272 if test -s conftest.err; then
19273 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19274 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19275 else
19276 ac_cpp_err=
19277 fi
19278else
19279 ac_cpp_err=yes
19280fi
19281if test -z "$ac_cpp_err"; then
19282 :
19283else
19284 echo "$as_me: failed program was:" >&5
19285sed 's/^/| /' conftest.$ac_ext >&5
19286
19287 # Broken: fails on valid input.
19288continue
19289fi
19290rm -f conftest.err conftest.$ac_ext
19291
19292 # OK, works on sane cases. Now check whether non-existent headers
19293 # can be detected and how.
19294 cat >conftest.$ac_ext <<_ACEOF
19295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
19299/* end confdefs.h. */
19300#include <ac_nonexistent.h>
19301_ACEOF
19302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19304 ac_status=$?
19305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } >/dev/null; then
19310 if test -s conftest.err; then
19311 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19312 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19313 else
19314 ac_cpp_err=
19315 fi
19316else
19317 ac_cpp_err=yes
19318fi
19319if test -z "$ac_cpp_err"; then
19320 # Broken: success on invalid input.
19321continue
19322else
19323 echo "$as_me: failed program was:" >&5
19324sed 's/^/| /' conftest.$ac_ext >&5
19325
19326 # Passes both tests.
19327ac_preproc_ok=:
19328break
19329fi
19330rm -f conftest.err conftest.$ac_ext
19331
19332done
19333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19334rm -f conftest.err conftest.$ac_ext
19335if $ac_preproc_ok; then
19336 break
19337fi
19338
19339 done
19340 ac_cv_prog_CXXCPP=$CXXCPP
19341
19342fi
19343 CXXCPP=$ac_cv_prog_CXXCPP
19344else
19345 ac_cv_prog_CXXCPP=$CXXCPP
19346fi
19347echo "$as_me:$LINENO: result: $CXXCPP" >&5
19348echo "${ECHO_T}$CXXCPP" >&6
19349ac_preproc_ok=false
19350for ac_cxx_preproc_warn_flag in '' yes
19351do
19352 # Use a header file that comes with gcc, so configuring glibc
19353 # with a fresh cross-compiler works.
19354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19355 # <limits.h> exists even on freestanding compilers.
19356 # On the NeXT, cc -E runs the code through the compiler's parser,
19357 # not just through cpp. "Syntax error" is here to catch this case.
19358 cat >conftest.$ac_ext <<_ACEOF
19359/* confdefs.h. */
19360_ACEOF
19361cat confdefs.h >>conftest.$ac_ext
19362cat >>conftest.$ac_ext <<_ACEOF
19363/* end confdefs.h. */
19364#ifdef __STDC__
19365# include <limits.h>
19366#else
19367# include <assert.h>
19368#endif
ac1cb8d3 19369 Syntax error
a848cd7e
SC
19370_ACEOF
19371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } >/dev/null; then
19379 if test -s conftest.err; then
19380 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19381 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19382 else
19383 ac_cpp_err=
19384 fi
19385else
19386 ac_cpp_err=yes
19387fi
19388if test -z "$ac_cpp_err"; then
19389 :
19390else
19391 echo "$as_me: failed program was:" >&5
19392sed 's/^/| /' conftest.$ac_ext >&5
19393
19394 # Broken: fails on valid input.
19395continue
19396fi
19397rm -f conftest.err conftest.$ac_ext
19398
19399 # OK, works on sane cases. Now check whether non-existent headers
19400 # can be detected and how.
19401 cat >conftest.$ac_ext <<_ACEOF
19402/* confdefs.h. */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
19406/* end confdefs.h. */
19407#include <ac_nonexistent.h>
19408_ACEOF
19409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } >/dev/null; then
19417 if test -s conftest.err; then
19418 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19419 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19420 else
19421 ac_cpp_err=
19422 fi
19423else
19424 ac_cpp_err=yes
19425fi
19426if test -z "$ac_cpp_err"; then
19427 # Broken: success on invalid input.
19428continue
19429else
19430 echo "$as_me: failed program was:" >&5
19431sed 's/^/| /' conftest.$ac_ext >&5
19432
19433 # Passes both tests.
19434ac_preproc_ok=:
19435break
19436fi
19437rm -f conftest.err conftest.$ac_ext
19438
19439done
19440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19441rm -f conftest.err conftest.$ac_ext
19442if $ac_preproc_ok; then
19443 :
19444else
19445 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19446See \`config.log' for more details." >&5
19447echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19448See \`config.log' for more details." >&2;}
19449 { (exit 1); exit 1; }; }
19450fi
19451
19452ac_ext=cc
19453ac_cpp='$CXXCPP $CPPFLAGS'
19454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19457
19458
19459
19460
19461
19462 ac_ext=cc
19463ac_cpp='$CXXCPP $CPPFLAGS'
19464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19467
19468
19469
19470for ac_header in iostream
19471do
19472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19473if eval "test \"\${$as_ac_Header+set}\" = set"; then
19474 echo "$as_me:$LINENO: checking for $ac_header" >&5
19475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19476if eval "test \"\${$as_ac_Header+set}\" = set"; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478fi
19479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19481else
19482 # Is the header compilable?
19483echo "$as_me:$LINENO: checking $ac_header usability" >&5
19484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19485cat >conftest.$ac_ext <<_ACEOF
19486/* confdefs.h. */
19487_ACEOF
19488cat confdefs.h >>conftest.$ac_ext
19489cat >>conftest.$ac_ext <<_ACEOF
19490/* end confdefs.h. */
19491$ac_includes_default
19492#include <$ac_header>
19493_ACEOF
19494rm -f conftest.$ac_objext
19495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19496 (eval $ac_compile) 2>conftest.er1
a848cd7e 19497 ac_status=$?
ac1cb8d3
VS
19498 grep -v '^ *+' conftest.er1 >conftest.err
19499 rm -f conftest.er1
19500 cat conftest.err >&5
a848cd7e
SC
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } &&
89be85c2
VS
19503 { ac_try='test -z "$ac_cxx_werror_flag"
19504 || test ! -s conftest.err'
ac1cb8d3
VS
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_header_compiler=yes
19517else
19518 echo "$as_me: failed program was:" >&5
19519sed 's/^/| /' conftest.$ac_ext >&5
19520
19521ac_header_compiler=no
19522fi
ac1cb8d3 19523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19525echo "${ECHO_T}$ac_header_compiler" >&6
19526
19527# Is the header present?
19528echo "$as_me:$LINENO: checking $ac_header presence" >&5
19529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19530cat >conftest.$ac_ext <<_ACEOF
19531/* confdefs.h. */
19532_ACEOF
19533cat confdefs.h >>conftest.$ac_ext
19534cat >>conftest.$ac_ext <<_ACEOF
19535/* end confdefs.h. */
19536#include <$ac_header>
19537_ACEOF
19538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } >/dev/null; then
19546 if test -s conftest.err; then
19547 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19548 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19549 else
19550 ac_cpp_err=
19551 fi
19552else
19553 ac_cpp_err=yes
19554fi
19555if test -z "$ac_cpp_err"; then
19556 ac_header_preproc=yes
19557else
19558 echo "$as_me: failed program was:" >&5
19559sed 's/^/| /' conftest.$ac_ext >&5
19560
19561 ac_header_preproc=no
19562fi
19563rm -f conftest.err conftest.$ac_ext
19564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19565echo "${ECHO_T}$ac_header_preproc" >&6
19566
19567# So? What about this header?
ac1cb8d3
VS
19568case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19569 yes:no: )
a848cd7e
SC
19570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19573echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19574 ac_header_preproc=yes
a848cd7e 19575 ;;
ac1cb8d3 19576 no:yes:* )
a848cd7e
SC
19577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19578echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19580echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19582echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19584echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19586echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19588echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19589 (
19590 cat <<\_ASBOX
ac1cb8d3
VS
19591## ----------------------------------------- ##
19592## Report this to wx-dev@lists.wxwidgets.org ##
19593## ----------------------------------------- ##
a848cd7e
SC
19594_ASBOX
19595 ) |
19596 sed "s/^/$as_me: WARNING: /" >&2
19597 ;;
19598esac
19599echo "$as_me:$LINENO: checking for $ac_header" >&5
19600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19601if eval "test \"\${$as_ac_Header+set}\" = set"; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19603else
ac1cb8d3 19604 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19605fi
19606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19608
19609fi
19610if test `eval echo '${'$as_ac_Header'}'` = yes; then
19611 cat >>confdefs.h <<_ACEOF
19612#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19613_ACEOF
19614
19615fi
19616
19617done
19618
19619
19620 if test "$ac_cv_header_iostream" = "yes" ; then
19621 :
19622 else
19623 cat >>confdefs.h <<\_ACEOF
19624#define wxUSE_IOSTREAMH 1
19625_ACEOF
19626
19627 fi
19628
19629 ac_ext=c
19630ac_cpp='$CPP $CPPFLAGS'
19631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19633ac_compiler_gnu=$ac_cv_c_compiler_gnu
19634
19635
19636
19637
19638 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19639echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19640if test "${wx_cv_cpp_bool+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642else
19643
19644
19645
19646 ac_ext=cc
19647ac_cpp='$CXXCPP $CPPFLAGS'
19648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19651
19652
19653 cat >conftest.$ac_ext <<_ACEOF
19654/* confdefs.h. */
19655_ACEOF
19656cat confdefs.h >>conftest.$ac_ext
19657cat >>conftest.$ac_ext <<_ACEOF
19658/* end confdefs.h. */
19659
19660
19661int
19662main ()
19663{
19664
19665 bool b = true;
19666
19667 return 0;
19668
19669 ;
19670 return 0;
19671}
19672_ACEOF
19673rm -f conftest.$ac_objext
19674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19675 (eval $ac_compile) 2>conftest.er1
a848cd7e 19676 ac_status=$?
ac1cb8d3
VS
19677 grep -v '^ *+' conftest.er1 >conftest.err
19678 rm -f conftest.er1
19679 cat conftest.err >&5
a848cd7e
SC
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
89be85c2
VS
19682 { ac_try='test -z "$ac_cxx_werror_flag"
19683 || test ! -s conftest.err'
ac1cb8d3
VS
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695
19696 wx_cv_cpp_bool=yes
19697
19698else
19699 echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702
19703 wx_cv_cpp_bool=no
19704
19705
19706fi
ac1cb8d3 19707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19708
19709 ac_ext=c
19710ac_cpp='$CPP $CPPFLAGS'
19711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19713ac_compiler_gnu=$ac_cv_c_compiler_gnu
19714
19715
19716fi
19717echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19718echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19719
19720 if test "$wx_cv_cpp_bool" = "yes"; then
19721 cat >>confdefs.h <<\_ACEOF
19722#define HAVE_BOOL 1
19723_ACEOF
19724
19725 fi
19726
19727
19728
19729 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19730echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19731if test "${wx_cv_explicit+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733else
19734
19735
19736
19737 ac_ext=cc
19738ac_cpp='$CXXCPP $CPPFLAGS'
19739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19742
19743
19744 cat >conftest.$ac_ext <<_ACEOF
19745/* confdefs.h. */
19746_ACEOF
19747cat confdefs.h >>conftest.$ac_ext
19748cat >>conftest.$ac_ext <<_ACEOF
19749/* end confdefs.h. */
19750
19751 class Foo { public: explicit Foo(int) {} };
19752
19753int
19754main ()
19755{
19756
19757 return 0;
19758
19759 ;
19760 return 0;
19761}
19762_ACEOF
19763rm -f conftest.$ac_objext
19764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19765 (eval $ac_compile) 2>conftest.er1
a848cd7e 19766 ac_status=$?
ac1cb8d3
VS
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
a848cd7e
SC
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
89be85c2
VS
19772 { ac_try='test -z "$ac_cxx_werror_flag"
19773 || test ! -s conftest.err'
ac1cb8d3
VS
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; } &&
19779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785
19786 cat >conftest.$ac_ext <<_ACEOF
19787/* confdefs.h. */
19788_ACEOF
19789cat confdefs.h >>conftest.$ac_ext
19790cat >>conftest.$ac_ext <<_ACEOF
19791/* end confdefs.h. */
19792
19793 class Foo { public: explicit Foo(int) {} };
19794 static void TakeFoo(const Foo& foo) { }
19795
19796int
19797main ()
19798{
19799
19800 TakeFoo(17);
19801 return 0;
19802
19803 ;
19804 return 0;
19805}
19806_ACEOF
19807rm -f conftest.$ac_objext
19808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19809 (eval $ac_compile) 2>conftest.er1
a848cd7e 19810 ac_status=$?
ac1cb8d3
VS
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
a848cd7e
SC
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } &&
89be85c2
VS
19816 { ac_try='test -z "$ac_cxx_werror_flag"
19817 || test ! -s conftest.err'
ac1cb8d3
VS
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 wx_cv_explicit=no
19830else
19831 echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834wx_cv_explicit=yes
19835
19836fi
ac1cb8d3 19837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19838
19839else
19840 echo "$as_me: failed program was:" >&5
19841sed 's/^/| /' conftest.$ac_ext >&5
19842
19843wx_cv_explicit=no
19844
19845fi
ac1cb8d3 19846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19847
19848 ac_ext=c
19849ac_cpp='$CPP $CPPFLAGS'
19850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852ac_compiler_gnu=$ac_cv_c_compiler_gnu
19853
19854
19855fi
19856echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19857echo "${ECHO_T}$wx_cv_explicit" >&6
19858
19859 if test "$wx_cv_explicit" = "yes"; then
19860 cat >>confdefs.h <<\_ACEOF
19861#define HAVE_EXPLICIT 1
19862_ACEOF
19863
19864 fi
19865
19866
19867echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19868echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19869if test "${ac_cv_cxx_const_cast+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871else
19872
19873
19874 ac_ext=cc
19875ac_cpp='$CXXCPP $CPPFLAGS'
19876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19879
19880 cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
19886
19887int
19888main ()
19889{
19890int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19891 ;
19892 return 0;
19893}
19894_ACEOF
19895rm -f conftest.$ac_objext
19896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19897 (eval $ac_compile) 2>conftest.er1
a848cd7e 19898 ac_status=$?
ac1cb8d3
VS
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
a848cd7e
SC
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
89be85c2
VS
19904 { ac_try='test -z "$ac_cxx_werror_flag"
19905 || test ! -s conftest.err'
ac1cb8d3
VS
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19917 ac_cv_cxx_const_cast=yes
19918else
19919 echo "$as_me: failed program was:" >&5
19920sed 's/^/| /' conftest.$ac_ext >&5
19921
19922ac_cv_cxx_const_cast=no
19923fi
ac1cb8d3 19924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19925 ac_ext=c
19926ac_cpp='$CPP $CPPFLAGS'
19927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931
19932fi
19933echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19934echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19935if test "$ac_cv_cxx_const_cast" = yes; then
19936
19937cat >>confdefs.h <<\_ACEOF
19938#define HAVE_CONST_CAST
19939_ACEOF
19940
19941fi
19942
7714864e
RL
19943echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19944echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19945if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947else
19948
19949
19950 ac_ext=cc
19951ac_cpp='$CXXCPP $CPPFLAGS'
19952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19955
19956 cat >conftest.$ac_ext <<_ACEOF
19957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h. */
19962#include <typeinfo>
19963class Base { public : Base () {} virtual void f () = 0;};
19964class Derived : public Base { public : Derived () {} virtual void f () {} };
19965class Unrelated { public : Unrelated () {} };
19966int g (Unrelated&) { return 0; }
19967int
19968main ()
19969{
19970
19971Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19972 ;
19973 return 0;
19974}
19975_ACEOF
19976rm -f conftest.$ac_objext
19977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19978 (eval $ac_compile) 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
89be85c2
VS
19985 { ac_try='test -z "$ac_cxx_werror_flag"
19986 || test ! -s conftest.err'
7714864e
RL
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; } &&
19992 { ac_try='test -s conftest.$ac_objext'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; }; then
19998 ac_cv_cxx_reinterpret_cast=yes
19999else
20000 echo "$as_me: failed program was:" >&5
20001sed 's/^/| /' conftest.$ac_ext >&5
20002
20003ac_cv_cxx_reinterpret_cast=no
20004fi
20005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20006 ac_ext=c
20007ac_cpp='$CPP $CPPFLAGS'
20008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20010ac_compiler_gnu=$ac_cv_c_compiler_gnu
20011
20012
20013fi
20014echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
20015echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
20016if test "$ac_cv_cxx_reinterpret_cast" = yes; then
20017
20018cat >>confdefs.h <<\_ACEOF
20019#define HAVE_REINTERPRET_CAST
20020_ACEOF
20021
20022fi
20023
a848cd7e
SC
20024echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
20025echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
20026if test "${ac_cv_cxx_static_cast+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20028else
20029
20030
20031 ac_ext=cc
20032ac_cpp='$CXXCPP $CPPFLAGS'
20033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20036
20037 cat >conftest.$ac_ext <<_ACEOF
20038/* confdefs.h. */
20039_ACEOF
20040cat confdefs.h >>conftest.$ac_ext
20041cat >>conftest.$ac_ext <<_ACEOF
20042/* end confdefs.h. */
20043#include <typeinfo>
20044class Base { public : Base () {} virtual void f () = 0; };
20045class Derived : public Base { public : Derived () {} virtual void f () {} };
20046int g (Derived&) { return 0; }
20047int
20048main ()
20049{
20050
20051Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056rm -f conftest.$ac_objext
20057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20058 (eval $ac_compile) 2>conftest.er1
a848cd7e 20059 ac_status=$?
ac1cb8d3
VS
20060 grep -v '^ *+' conftest.er1 >conftest.err
20061 rm -f conftest.er1
20062 cat conftest.err >&5
a848cd7e
SC
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } &&
89be85c2
VS
20065 { ac_try='test -z "$ac_cxx_werror_flag"
20066 || test ! -s conftest.err'
ac1cb8d3
VS
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; } &&
20072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 ac_cv_cxx_static_cast=yes
20079else
20080 echo "$as_me: failed program was:" >&5
20081sed 's/^/| /' conftest.$ac_ext >&5
20082
20083ac_cv_cxx_static_cast=no
20084fi
ac1cb8d3 20085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20086 ac_ext=c
20087ac_cpp='$CPP $CPPFLAGS'
20088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20090ac_compiler_gnu=$ac_cv_c_compiler_gnu
20091
20092
20093fi
20094echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
20095echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
20096if test "$ac_cv_cxx_static_cast" = yes; then
20097
20098cat >>confdefs.h <<\_ACEOF
20099#define HAVE_STATIC_CAST
20100_ACEOF
20101
20102fi
20103
20104
20105if test "$wxUSE_STL" = "yes"; then
20106 ac_ext=cc
20107ac_cpp='$CXXCPP $CPPFLAGS'
20108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20111
20112
20113 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
20114echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
20115 cat >conftest.$ac_ext <<_ACEOF
20116/* confdefs.h. */
20117_ACEOF
20118cat confdefs.h >>conftest.$ac_ext
20119cat >>conftest.$ac_ext <<_ACEOF
20120/* end confdefs.h. */
20121#include <string>
20122 #include <functional>
20123 #include <algorithm>
20124 #include <vector>
20125 #include <list>
20126int
20127main ()
20128{
20129std::vector<int> moo;
20130 std::list<int> foo;
20131 std::vector<int>::iterator it =
20132 std::find_if(moo.begin(), moo.end(),
20133 std::bind2nd(std::less<int>(), 3));
20134 ;
20135 return 0;
20136}
20137_ACEOF
20138rm -f conftest.$ac_objext
20139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20140 (eval $ac_compile) 2>conftest.er1
a848cd7e 20141 ac_status=$?
ac1cb8d3
VS
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
a848cd7e
SC
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
89be85c2
VS
20147 { ac_try='test -z "$ac_cxx_werror_flag"
20148 || test ! -s conftest.err'
ac1cb8d3
VS
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; } &&
20154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 echo "$as_me:$LINENO: result: yes" >&5
20161echo "${ECHO_T}yes" >&6
20162else
20163 echo "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166echo "$as_me:$LINENO: result: no" >&5
20167echo "${ECHO_T}no" >&6
20168 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20169echo "$as_me: error: Basic STL functionality missing" >&2;}
20170 { (exit 1); exit 1; }; }
20171fi
ac1cb8d3 20172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20173
20174 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20175echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20176 cat >conftest.$ac_ext <<_ACEOF
20177/* confdefs.h. */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h. */
20182#include <string>
20183int
20184main ()
20185{
20186std::wstring foo;
20187 ;
20188 return 0;
20189}
20190_ACEOF
20191rm -f conftest.$ac_objext
20192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20193 (eval $ac_compile) 2>conftest.er1
a848cd7e 20194 ac_status=$?
ac1cb8d3
VS
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
a848cd7e
SC
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } &&
89be85c2
VS
20200 { ac_try='test -z "$ac_cxx_werror_flag"
20201 || test ! -s conftest.err'
ac1cb8d3
VS
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 echo "$as_me:$LINENO: result: yes" >&5
20214echo "${ECHO_T}yes" >&6
20215 cat >>confdefs.h <<\_ACEOF
20216#define HAVE_STD_WSTRING 1
20217_ACEOF
20218
20219else
20220 echo "$as_me: failed program was:" >&5
20221sed 's/^/| /' conftest.$ac_ext >&5
20222
20223echo "$as_me:$LINENO: result: no" >&5
20224echo "${ECHO_T}no" >&6
20225fi
ac1cb8d3 20226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20227
20228 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20229echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20230 cat >conftest.$ac_ext <<_ACEOF
20231/* confdefs.h. */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h. */
20236#include <string>
20237int
20238main ()
20239{
20240std::string foo, bar;
20241 foo.compare(bar);
20242 foo.compare(1, 1, bar);
20243 foo.compare(1, 1, bar, 1, 1);
20244 foo.compare("");
20245 foo.compare(1, 1, "");
20246 foo.compare(1, 1, "", 2);
20247 ;
20248 return 0;
20249}
20250_ACEOF
20251rm -f conftest.$ac_objext
20252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20253 (eval $ac_compile) 2>conftest.er1
a848cd7e 20254 ac_status=$?
ac1cb8d3
VS
20255 grep -v '^ *+' conftest.er1 >conftest.err
20256 rm -f conftest.er1
20257 cat conftest.err >&5
a848cd7e
SC
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
89be85c2
VS
20260 { ac_try='test -z "$ac_cxx_werror_flag"
20261 || test ! -s conftest.err'
ac1cb8d3
VS
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } &&
20267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
20273 echo "$as_me:$LINENO: result: yes" >&5
20274echo "${ECHO_T}yes" >&6
20275 cat >>confdefs.h <<\_ACEOF
20276#define HAVE_STD_STRING_COMPARE 1
20277_ACEOF
20278
20279else
20280 echo "$as_me: failed program was:" >&5
20281sed 's/^/| /' conftest.$ac_ext >&5
20282
20283echo "$as_me:$LINENO: result: no" >&5
20284echo "${ECHO_T}no" >&6
20285fi
ac1cb8d3 20286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20287
20288 if test "${ac_cv_header_hash_map+set}" = set; then
20289 echo "$as_me:$LINENO: checking for hash_map" >&5
20290echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20291if test "${ac_cv_header_hash_map+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293fi
20294echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20295echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20296else
20297 # Is the header compilable?
20298echo "$as_me:$LINENO: checking hash_map usability" >&5
20299echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20300cat >conftest.$ac_ext <<_ACEOF
20301/* confdefs.h. */
20302_ACEOF
20303cat confdefs.h >>conftest.$ac_ext
20304cat >>conftest.$ac_ext <<_ACEOF
20305/* end confdefs.h. */
20306$ac_includes_default
20307#include <hash_map>
20308_ACEOF
20309rm -f conftest.$ac_objext
20310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20311 (eval $ac_compile) 2>conftest.er1
bdcade0a 20312 ac_status=$?
ac1cb8d3
VS
20313 grep -v '^ *+' conftest.er1 >conftest.err
20314 rm -f conftest.er1
20315 cat conftest.err >&5
bdcade0a
MB
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
89be85c2
VS
20318 { ac_try='test -z "$ac_cxx_werror_flag"
20319 || test ! -s conftest.err'
ac1cb8d3
VS
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; } &&
20325 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; }; then
20331 ac_header_compiler=yes
20332else
20333 echo "$as_me: failed program was:" >&5
20334sed 's/^/| /' conftest.$ac_ext >&5
20335
20336ac_header_compiler=no
20337fi
ac1cb8d3 20338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20340echo "${ECHO_T}$ac_header_compiler" >&6
20341
20342# Is the header present?
20343echo "$as_me:$LINENO: checking hash_map presence" >&5
20344echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20345cat >conftest.$ac_ext <<_ACEOF
20346/* confdefs.h. */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
20350/* end confdefs.h. */
20351#include <hash_map>
20352_ACEOF
20353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20355 ac_status=$?
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } >/dev/null; then
20361 if test -s conftest.err; then
20362 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20363 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20364 else
20365 ac_cpp_err=
20366 fi
20367else
20368 ac_cpp_err=yes
20369fi
20370if test -z "$ac_cpp_err"; then
20371 ac_header_preproc=yes
20372else
20373 echo "$as_me: failed program was:" >&5
20374sed 's/^/| /' conftest.$ac_ext >&5
20375
20376 ac_header_preproc=no
20377fi
20378rm -f conftest.err conftest.$ac_ext
20379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20380echo "${ECHO_T}$ac_header_preproc" >&6
20381
20382# So? What about this header?
ac1cb8d3
VS
20383case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20384 yes:no: )
bdcade0a
MB
20385 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20386echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20387 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20388echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20389 ac_header_preproc=yes
bdcade0a 20390 ;;
ac1cb8d3 20391 no:yes:* )
bdcade0a
MB
20392 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20393echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20394 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20395echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20396 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20397echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20398 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20399echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20400 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20401echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20402 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20403echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20404 (
20405 cat <<\_ASBOX
ac1cb8d3
VS
20406## ----------------------------------------- ##
20407## Report this to wx-dev@lists.wxwidgets.org ##
20408## ----------------------------------------- ##
bdcade0a
MB
20409_ASBOX
20410 ) |
20411 sed "s/^/$as_me: WARNING: /" >&2
20412 ;;
20413esac
20414echo "$as_me:$LINENO: checking for hash_map" >&5
20415echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20416if test "${ac_cv_header_hash_map+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419 ac_cv_header_hash_map=$ac_header_preproc
20420fi
20421echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20422echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20423
20424fi
20425if test $ac_cv_header_hash_map = yes; then
20426 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20427echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20428 cat >conftest.$ac_ext <<_ACEOF
20429/* confdefs.h. */
20430_ACEOF
20431cat confdefs.h >>conftest.$ac_ext
20432cat >>conftest.$ac_ext <<_ACEOF
20433/* end confdefs.h. */
20434#include <hash_map>
20435 #include <hash_set>
20436int
20437main ()
20438{
20439std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20440 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20441 ;
20442 return 0;
20443}
20444_ACEOF
20445rm -f conftest.$ac_objext
20446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20447 (eval $ac_compile) 2>conftest.er1
bdcade0a 20448 ac_status=$?
ac1cb8d3
VS
20449 grep -v '^ *+' conftest.er1 >conftest.err
20450 rm -f conftest.er1
20451 cat conftest.err >&5
bdcade0a
MB
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } &&
89be85c2
VS
20454 { ac_try='test -z "$ac_cxx_werror_flag"
20455 || test ! -s conftest.err'
ac1cb8d3
VS
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20458 ac_status=$?
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; } &&
20461 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467 echo "$as_me:$LINENO: result: yes" >&5
20468echo "${ECHO_T}yes" >&6
20469 cat >>confdefs.h <<\_ACEOF
20470#define HAVE_HASH_MAP 1
20471_ACEOF
20472
20473 cat >>confdefs.h <<\_ACEOF
20474#define HAVE_STD_HASH_MAP 1
20475_ACEOF
20476
20477else
20478 echo "$as_me: failed program was:" >&5
20479sed 's/^/| /' conftest.$ac_ext >&5
20480
20481echo "$as_me:$LINENO: result: no" >&5
20482echo "${ECHO_T}no" >&6
20483fi
ac1cb8d3 20484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20485
20486fi
20487
20488
20489
20490 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20491 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20492echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20493if test "${ac_cv_header_ext_hash_map+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495fi
20496echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20497echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20498else
20499 # Is the header compilable?
20500echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20501echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20502cat >conftest.$ac_ext <<_ACEOF
20503/* confdefs.h. */
20504_ACEOF
20505cat confdefs.h >>conftest.$ac_ext
20506cat >>conftest.$ac_ext <<_ACEOF
20507/* end confdefs.h. */
20508$ac_includes_default
20509#include <ext/hash_map>
20510_ACEOF
20511rm -f conftest.$ac_objext
20512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20513 (eval $ac_compile) 2>conftest.er1
bdcade0a 20514 ac_status=$?
ac1cb8d3
VS
20515 grep -v '^ *+' conftest.er1 >conftest.err
20516 rm -f conftest.er1
20517 cat conftest.err >&5
bdcade0a
MB
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
89be85c2
VS
20520 { ac_try='test -z "$ac_cxx_werror_flag"
20521 || test ! -s conftest.err'
ac1cb8d3
VS
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20524 ac_status=$?
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; } &&
20527 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529 (eval $ac_try) 2>&5
20530 ac_status=$?
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; }; then
20533 ac_header_compiler=yes
20534else
20535 echo "$as_me: failed program was:" >&5
20536sed 's/^/| /' conftest.$ac_ext >&5
20537
20538ac_header_compiler=no
20539fi
ac1cb8d3 20540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20542echo "${ECHO_T}$ac_header_compiler" >&6
20543
20544# Is the header present?
20545echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20546echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20547cat >conftest.$ac_ext <<_ACEOF
20548/* confdefs.h. */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h. */
20553#include <ext/hash_map>
20554_ACEOF
20555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20557 ac_status=$?
20558 grep -v '^ *+' conftest.er1 >conftest.err
20559 rm -f conftest.er1
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } >/dev/null; then
20563 if test -s conftest.err; then
20564 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20565 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20566 else
20567 ac_cpp_err=
20568 fi
20569else
20570 ac_cpp_err=yes
20571fi
20572if test -z "$ac_cpp_err"; then
20573 ac_header_preproc=yes
20574else
20575 echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 ac_header_preproc=no
20579fi
20580rm -f conftest.err conftest.$ac_ext
20581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20582echo "${ECHO_T}$ac_header_preproc" >&6
20583
20584# So? What about this header?
ac1cb8d3
VS
20585case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20586 yes:no: )
bdcade0a
MB
20587 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20588echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20589 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20590echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20591 ac_header_preproc=yes
bdcade0a 20592 ;;
ac1cb8d3 20593 no:yes:* )
bdcade0a
MB
20594 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20595echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20596 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20597echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20599echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20600 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20601echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20602 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20603echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20604 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20605echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20606 (
20607 cat <<\_ASBOX
ac1cb8d3
VS
20608## ----------------------------------------- ##
20609## Report this to wx-dev@lists.wxwidgets.org ##
20610## ----------------------------------------- ##
bdcade0a
MB
20611_ASBOX
20612 ) |
20613 sed "s/^/$as_me: WARNING: /" >&2
20614 ;;
20615esac
20616echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20617echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20618if test "${ac_cv_header_ext_hash_map+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20620else
20621 ac_cv_header_ext_hash_map=$ac_header_preproc
20622fi
20623echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20624echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20625
20626fi
20627if test $ac_cv_header_ext_hash_map = yes; then
20628 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20629echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20630 cat >conftest.$ac_ext <<_ACEOF
20631/* confdefs.h. */
20632_ACEOF
20633cat confdefs.h >>conftest.$ac_ext
20634cat >>conftest.$ac_ext <<_ACEOF
20635/* end confdefs.h. */
20636#include <ext/hash_map>
20637 #include <ext/hash_set>
20638int
20639main ()
20640{
20641__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20642 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20643 ;
20644 return 0;
20645}
20646_ACEOF
20647rm -f conftest.$ac_objext
20648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20649 (eval $ac_compile) 2>conftest.er1
bdcade0a 20650 ac_status=$?
ac1cb8d3
VS
20651 grep -v '^ *+' conftest.er1 >conftest.err
20652 rm -f conftest.er1
20653 cat conftest.err >&5
bdcade0a
MB
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
89be85c2
VS
20656 { ac_try='test -z "$ac_cxx_werror_flag"
20657 || test ! -s conftest.err'
ac1cb8d3
VS
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } &&
20663 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669 echo "$as_me:$LINENO: result: yes" >&5
20670echo "${ECHO_T}yes" >&6
20671 cat >>confdefs.h <<\_ACEOF
20672#define HAVE_EXT_HASH_MAP 1
20673_ACEOF
20674
20675 cat >>confdefs.h <<\_ACEOF
20676#define HAVE_GNU_CXX_HASH_MAP 1
20677_ACEOF
20678
20679else
20680 echo "$as_me: failed program was:" >&5
20681sed 's/^/| /' conftest.$ac_ext >&5
20682
20683echo "$as_me:$LINENO: result: no" >&5
20684echo "${ECHO_T}no" >&6
20685fi
ac1cb8d3 20686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20687
20688fi
20689
20690
a848cd7e
SC
20691
20692 ac_ext=c
20693ac_cpp='$CPP $CPPFLAGS'
20694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696ac_compiler_gnu=$ac_cv_c_compiler_gnu
20697
20698fi
20699
20700
20701SEARCH_INCLUDE="\
20702 /usr/local/include \
20703 \
20704 /usr/Motif-2.1/include \
20705 /usr/Motif-1.2/include \
20706 /usr/include/Motif1.2 \
20707 /opt/xpm/include/X11 \
20708 /opt/GBxpm/include/ \
20709 /opt/GBxpm/X11/include/ \
20710 \
20711 /usr/dt/include \
20712 /usr/openwin/include \
20713 \
20714 /usr/include/Xm \
20715 \
20716 /usr/X11R6/include \
20717 /usr/X11R6.4/include \
20718 /usr/X11R5/include \
20719 /usr/X11R4/include \
20720 \
20721 /usr/include/X11R6 \
20722 /usr/include/X11R5 \
20723 /usr/include/X11R4 \
20724 \
20725 /usr/local/X11R6/include \
20726 /usr/local/X11R5/include \
20727 /usr/local/X11R4/include \
20728 \
20729 /usr/local/include/X11R6 \
20730 /usr/local/include/X11R5 \
20731 /usr/local/include/X11R4 \
20732 \
20733 /usr/X11/include \
20734 /usr/include/X11 \
20735 /usr/local/X11/include \
20736 /usr/local/include/X11 \
20737 \
20738 /usr/X386/include \
20739 /usr/x386/include \
20740 /usr/XFree86/include/X11 \
20741 \
20742 X:/XFree86/include \
20743 X:/XFree86/include/X11 \
20744 \
20745 /usr/include/gtk \
20746 /usr/local/include/gtk \
20747 /usr/include/glib \
20748 /usr/local/include/glib \
20749 \
20750 /usr/include/qt \
20751 /usr/local/include/qt \
20752 \
20753 /usr/local/arm/3.3.2/include \
20754 \
20755 /usr/include/windows \
20756 /usr/include/wine \
20757 /usr/local/include/wine \
20758 \
20759 /usr/unsupported/include \
20760 /usr/athena/include \
20761 /usr/local/x11r5/include \
20762 /usr/lpp/Xamples/include \
20763 \
20764 /usr/openwin/share/include"
20765
20766SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20767
20768
20769cat >confcache <<\_ACEOF
20770# This file is a shell script that caches the results of configure
20771# tests run on this system so they can be shared between configure
20772# scripts and configure runs, see configure's option --config-cache.
20773# It is not useful on other systems. If it contains results you don't
20774# want to keep, you may remove or edit it.
20775#
20776# config.status only pays attention to the cache file if you give it
20777# the --recheck option to rerun configure.
20778#
20779# `ac_cv_env_foo' variables (set or unset) will be overridden when
20780# loading this file, other *unset* `ac_cv_foo' will be assigned the
20781# following values.
20782
20783_ACEOF
20784
20785# The following way of writing the cache mishandles newlines in values,
20786# but we know of no workaround that is simple, portable, and efficient.
20787# So, don't put newlines in cache variables' values.
20788# Ultrix sh set writes to stderr and can't be redirected directly,
20789# and sets the high bit in the cache file unless we assign to the vars.
20790{
20791 (set) 2>&1 |
20792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20793 *ac_space=\ *)
20794 # `set' does not quote correctly, so add quotes (double-quote
20795 # substitution turns \\\\ into \\, and sed turns \\ into \).
20796 sed -n \
ac1cb8d3
VS
20797 "s/'/'\\\\''/g;
20798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20799 ;;
20800 *)
20801 # `set' quotes correctly as required by POSIX, so do not add quotes.
20802 sed -n \
ac1cb8d3 20803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20804 ;;
20805 esac;
20806} |
20807 sed '
20808 t clear
20809 : clear
20810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20811 t end
20812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20813 : end' >>confcache
20814if diff $cache_file confcache >/dev/null 2>&1; then :; else
20815 if test -w $cache_file; then
20816 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20817 cat confcache >$cache_file
20818 else
20819 echo "not updating unwritable cache $cache_file"
20820 fi
20821fi
20822rm -f confcache
20823
20824if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20825 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20826echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20827if test "${wx_cv_lib_glibc21+set}" = set; then
20828 echo $ECHO_N "(cached) $ECHO_C" >&6
20829else
20830
20831 cat >conftest.$ac_ext <<_ACEOF
20832/* confdefs.h. */
20833_ACEOF
20834cat confdefs.h >>conftest.$ac_ext
20835cat >>conftest.$ac_ext <<_ACEOF
20836/* end confdefs.h. */
20837#include <features.h>
20838int
20839main ()
20840{
20841
20842 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20843 #error not glibc2.1
20844 #endif
20845
20846 ;
20847 return 0;
20848}
20849_ACEOF
20850rm -f conftest.$ac_objext
20851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20852 (eval $ac_compile) 2>conftest.er1
a848cd7e 20853 ac_status=$?
ac1cb8d3
VS
20854 grep -v '^ *+' conftest.er1 >conftest.err
20855 rm -f conftest.er1
20856 cat conftest.err >&5
a848cd7e
SC
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
89be85c2
VS
20859 { ac_try='test -z "$ac_c_werror_flag"
20860 || test ! -s conftest.err'
ac1cb8d3
VS
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; } &&
20866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; }; then
20872
20873 wx_cv_lib_glibc21=yes
20874
20875else
20876 echo "$as_me: failed program was:" >&5
20877sed 's/^/| /' conftest.$ac_ext >&5
20878
20879
20880 wx_cv_lib_glibc21=no
20881
20882
20883fi
ac1cb8d3 20884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20885
20886fi
20887echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20888echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20889 if test "$wx_cv_lib_glibc21" = "yes"; then
20890 cat >>confdefs.h <<\_ACEOF
20891#define wxHAVE_GLIBC2 1
20892_ACEOF
20893
20894 fi
20895fi
20896
20897if test "x$wx_cv_lib_glibc21" = "xyes"; then
20898 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20899 cat >>confdefs.h <<\_ACEOF
20900#define _GNU_SOURCE 1
20901_ACEOF
20902
20903 fi
20904fi
20905
20906
20907
20908if test "$wxUSE_REGEX" != "no"; then
20909 cat >>confdefs.h <<\_ACEOF
20910#define wxUSE_REGEX 1
20911_ACEOF
20912
20913
20914 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20915 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20916echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20917 wxUSE_REGEX=builtin
20918 fi
20919
20920 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20921 if test "${ac_cv_header_regex_h+set}" = set; then
20922 echo "$as_me:$LINENO: checking for regex.h" >&5
20923echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20924if test "${ac_cv_header_regex_h+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926fi
20927echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20928echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20929else
20930 # Is the header compilable?
20931echo "$as_me:$LINENO: checking regex.h usability" >&5
20932echo $ECHO_N "checking regex.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 <regex.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); } &&
89be85c2
VS
20951 { ac_try='test -z "$ac_c_werror_flag"
20952 || test ! -s conftest.err'
ac1cb8d3
VS
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; } &&
20958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 ac_header_compiler=yes
20965else
20966 echo "$as_me: failed program was:" >&5
20967sed 's/^/| /' conftest.$ac_ext >&5
20968
20969ac_header_compiler=no
20970fi
ac1cb8d3 20971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20973echo "${ECHO_T}$ac_header_compiler" >&6
20974
20975# Is the header present?
20976echo "$as_me:$LINENO: checking regex.h presence" >&5
20977echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20978cat >conftest.$ac_ext <<_ACEOF
20979/* confdefs.h. */
20980_ACEOF
20981cat confdefs.h >>conftest.$ac_ext
20982cat >>conftest.$ac_ext <<_ACEOF
20983/* end confdefs.h. */
20984#include <regex.h>
20985_ACEOF
20986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20988 ac_status=$?
20989 grep -v '^ *+' conftest.er1 >conftest.err
20990 rm -f conftest.er1
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } >/dev/null; then
20994 if test -s conftest.err; then
20995 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20997 else
20998 ac_cpp_err=
20999 fi
21000else
21001 ac_cpp_err=yes
21002fi
21003if test -z "$ac_cpp_err"; then
21004 ac_header_preproc=yes
21005else
21006 echo "$as_me: failed program was:" >&5
21007sed 's/^/| /' conftest.$ac_ext >&5
21008
21009 ac_header_preproc=no
21010fi
21011rm -f conftest.err conftest.$ac_ext
21012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21013echo "${ECHO_T}$ac_header_preproc" >&6
21014
21015# So? What about this header?
ac1cb8d3
VS
21016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21017 yes:no: )
a848cd7e
SC
21018 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21019echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21020 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21021echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21022 ac_header_preproc=yes
a848cd7e 21023 ;;
ac1cb8d3 21024 no:yes:* )
a848cd7e
SC
21025 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21026echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21027 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21028echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21029 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21030echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21031 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21032echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21033 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21034echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21035 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21036echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21037 (
21038 cat <<\_ASBOX
ac1cb8d3
VS
21039## ----------------------------------------- ##
21040## Report this to wx-dev@lists.wxwidgets.org ##
21041## ----------------------------------------- ##
a848cd7e
SC
21042_ASBOX
21043 ) |
21044 sed "s/^/$as_me: WARNING: /" >&2
21045 ;;
21046esac
21047echo "$as_me:$LINENO: checking for regex.h" >&5
21048echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21049if test "${ac_cv_header_regex_h+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051else
21052 ac_cv_header_regex_h=$ac_header_preproc
21053fi
21054echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21055echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21056
21057fi
21058if test $ac_cv_header_regex_h = yes; then
21059
21060for ac_func in regcomp
21061do
21062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21063echo "$as_me:$LINENO: checking for $ac_func" >&5
21064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21065if eval "test \"\${$as_ac_var+set}\" = set"; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067else
21068 cat >conftest.$ac_ext <<_ACEOF
21069/* confdefs.h. */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h. */
ac1cb8d3
VS
21074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21076#define $ac_func innocuous_$ac_func
21077
a848cd7e
SC
21078/* System header to define __stub macros and hopefully few prototypes,
21079 which can conflict with char $ac_func (); below.
21080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21081 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 21082
a848cd7e
SC
21083#ifdef __STDC__
21084# include <limits.h>
21085#else
21086# include <assert.h>
21087#endif
ac1cb8d3
VS
21088
21089#undef $ac_func
21090
a848cd7e
SC
21091/* Override any gcc2 internal prototype to avoid an error. */
21092#ifdef __cplusplus
21093extern "C"
21094{
21095#endif
21096/* We use char because int might match the return type of a gcc2
21097 builtin and then its argument prototype would still apply. */
21098char $ac_func ();
21099/* The GNU C library defines this for functions which it implements
21100 to always fail with ENOSYS. Some functions are actually named
21101 something starting with __ and the normal name is an alias. */
21102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21103choke me
21104#else
21105char (*f) () = $ac_func;
21106#endif
21107#ifdef __cplusplus
21108}
21109#endif
21110
21111int
21112main ()
21113{
21114return f != $ac_func;
21115 ;
21116 return 0;
21117}
21118_ACEOF
21119rm -f conftest.$ac_objext conftest$ac_exeext
21120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21121 (eval $ac_link) 2>conftest.er1
a848cd7e 21122 ac_status=$?
ac1cb8d3
VS
21123 grep -v '^ *+' conftest.er1 >conftest.err
21124 rm -f conftest.er1
21125 cat conftest.err >&5
a848cd7e
SC
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } &&
89be85c2
VS
21128 { ac_try='test -z "$ac_c_werror_flag"
21129 || test ! -s conftest.err'
ac1cb8d3
VS
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; } &&
21135 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 eval "$as_ac_var=yes"
21142else
21143 echo "$as_me: failed program was:" >&5
21144sed 's/^/| /' conftest.$ac_ext >&5
21145
21146eval "$as_ac_var=no"
21147fi
ac1cb8d3
VS
21148rm -f conftest.err conftest.$ac_objext \
21149 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21150fi
21151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21152echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21153if test `eval echo '${'$as_ac_var'}'` = yes; then
21154 cat >>confdefs.h <<_ACEOF
21155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21156_ACEOF
21157
21158fi
21159done
21160
21161fi
21162
21163
21164
21165 if test "x$ac_cv_func_regcomp" != "xyes"; then
21166 if test "$wxUSE_REGEX" = "sys" ; then
21167 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
21168echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
21169 { (exit 1); exit 1; }; }
21170 else
21171 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
21172echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21173 wxUSE_REGEX=builtin
21174 fi
21175 else
21176 wxUSE_REGEX=sys
21177 cat >>confdefs.h <<\_ACEOF
21178#define WX_NO_REGEX_ADVANCED 1
21179_ACEOF
21180
21181 fi
21182 fi
21183fi
21184
21185
21186ZLIB_LINK=
21187if test "$wxUSE_ZLIB" != "no" ; then
21188 cat >>confdefs.h <<\_ACEOF
21189#define wxUSE_ZLIB 1
21190_ACEOF
21191
21192
21193 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21194 if test "$USE_DARWIN" = 1; then
21195 system_zlib_h_ok="yes"
21196 else
21197 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21198echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21199if test "${ac_cv_header_zlib_h+set}" = set; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21201else
21202 if test "$cross_compiling" = yes; then
21203 unset ac_cv_header_zlib_h
21204
21205else
21206 cat >conftest.$ac_ext <<_ACEOF
21207/* confdefs.h. */
21208_ACEOF
21209cat confdefs.h >>conftest.$ac_ext
21210cat >>conftest.$ac_ext <<_ACEOF
21211/* end confdefs.h. */
21212
21213 #include <zlib.h>
21214 #include <stdio.h>
21215
21216 int main()
21217 {
21218 FILE *f=fopen("conftestval", "w");
21219 if (!f) exit(1);
21220 fprintf(f, "%s",
21221 ZLIB_VERSION[0] == '1' &&
21222 (ZLIB_VERSION[2] > '1' ||
21223 (ZLIB_VERSION[2] == '1' &&
21224 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21225 exit(0);
21226 }
21227
21228_ACEOF
21229rm -f conftest$ac_exeext
21230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21231 (eval $ac_link) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 ac_cv_header_zlib_h=`cat conftestval`
21241else
21242 echo "$as_me: program exited with status $ac_status" >&5
21243echo "$as_me: failed program was:" >&5
21244sed 's/^/| /' conftest.$ac_ext >&5
21245
21246( exit $ac_status )
21247ac_cv_header_zlib_h=no
21248fi
ac1cb8d3 21249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21250fi
21251
21252fi
21253echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21254echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21255 if test "${ac_cv_header_zlib_h+set}" = set; then
21256 echo "$as_me:$LINENO: checking for zlib.h" >&5
21257echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21258if test "${ac_cv_header_zlib_h+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260fi
21261echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21262echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21263else
21264 # Is the header compilable?
21265echo "$as_me:$LINENO: checking zlib.h usability" >&5
21266echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21267cat >conftest.$ac_ext <<_ACEOF
21268/* confdefs.h. */
21269_ACEOF
21270cat confdefs.h >>conftest.$ac_ext
21271cat >>conftest.$ac_ext <<_ACEOF
21272/* end confdefs.h. */
21273$ac_includes_default
21274#include <zlib.h>
21275_ACEOF
21276rm -f conftest.$ac_objext
21277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21278 (eval $ac_compile) 2>conftest.er1
a848cd7e 21279 ac_status=$?
ac1cb8d3
VS
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
a848cd7e
SC
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
89be85c2
VS
21285 { ac_try='test -z "$ac_c_werror_flag"
21286 || test ! -s conftest.err'
ac1cb8d3
VS
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 ac_header_compiler=yes
21299else
21300 echo "$as_me: failed program was:" >&5
21301sed 's/^/| /' conftest.$ac_ext >&5
21302
21303ac_header_compiler=no
21304fi
ac1cb8d3 21305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21307echo "${ECHO_T}$ac_header_compiler" >&6
21308
21309# Is the header present?
21310echo "$as_me:$LINENO: checking zlib.h presence" >&5
21311echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21312cat >conftest.$ac_ext <<_ACEOF
21313/* confdefs.h. */
21314_ACEOF
21315cat confdefs.h >>conftest.$ac_ext
21316cat >>conftest.$ac_ext <<_ACEOF
21317/* end confdefs.h. */
21318#include <zlib.h>
21319_ACEOF
21320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21322 ac_status=$?
21323 grep -v '^ *+' conftest.er1 >conftest.err
21324 rm -f conftest.er1
21325 cat conftest.err >&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } >/dev/null; then
21328 if test -s conftest.err; then
21329 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21331 else
21332 ac_cpp_err=
21333 fi
21334else
21335 ac_cpp_err=yes
21336fi
21337if test -z "$ac_cpp_err"; then
21338 ac_header_preproc=yes
21339else
21340 echo "$as_me: failed program was:" >&5
21341sed 's/^/| /' conftest.$ac_ext >&5
21342
21343 ac_header_preproc=no
21344fi
21345rm -f conftest.err conftest.$ac_ext
21346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21347echo "${ECHO_T}$ac_header_preproc" >&6
21348
21349# So? What about this header?
ac1cb8d3
VS
21350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21351 yes:no: )
a848cd7e
SC
21352 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21353echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21354 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21355echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21356 ac_header_preproc=yes
a848cd7e 21357 ;;
ac1cb8d3 21358 no:yes:* )
a848cd7e
SC
21359 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21360echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21361 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21362echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21364echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21366echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21367 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21368echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21369 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21370echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21371 (
21372 cat <<\_ASBOX
ac1cb8d3
VS
21373## ----------------------------------------- ##
21374## Report this to wx-dev@lists.wxwidgets.org ##
21375## ----------------------------------------- ##
a848cd7e
SC
21376_ASBOX
21377 ) |
21378 sed "s/^/$as_me: WARNING: /" >&2
21379 ;;
21380esac
21381echo "$as_me:$LINENO: checking for zlib.h" >&5
21382echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21383if test "${ac_cv_header_zlib_h+set}" = set; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21385else
21386 ac_cv_header_zlib_h=$ac_header_preproc
21387fi
21388echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21389echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21390
21391fi
21392
21393
21394
21395 system_zlib_h_ok=$ac_cv_header_zlib_h
21396 fi
21397
21398 if test "$system_zlib_h_ok" = "yes"; then
21399 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21400echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21401if test "${ac_cv_lib_z_deflate+set}" = set; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21403else
21404 ac_check_lib_save_LIBS=$LIBS
21405LIBS="-lz $LIBS"
21406cat >conftest.$ac_ext <<_ACEOF
21407/* confdefs.h. */
21408_ACEOF
21409cat confdefs.h >>conftest.$ac_ext
21410cat >>conftest.$ac_ext <<_ACEOF
21411/* end confdefs.h. */
21412
21413/* Override any gcc2 internal prototype to avoid an error. */
21414#ifdef __cplusplus
21415extern "C"
21416#endif
21417/* We use char because int might match the return type of a gcc2
21418 builtin and then its argument prototype would still apply. */
21419char deflate ();
21420int
21421main ()
21422{
21423deflate ();
21424 ;
21425 return 0;
21426}
21427_ACEOF
21428rm -f conftest.$ac_objext conftest$ac_exeext
21429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21430 (eval $ac_link) 2>conftest.er1
a848cd7e 21431 ac_status=$?
ac1cb8d3
VS
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
a848cd7e
SC
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
89be85c2
VS
21437 { ac_try='test -z "$ac_c_werror_flag"
21438 || test ! -s conftest.err'
ac1cb8d3
VS
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; } &&
21444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 ac_cv_lib_z_deflate=yes
21451else
21452 echo "$as_me: failed program was:" >&5
21453sed 's/^/| /' conftest.$ac_ext >&5
21454
21455ac_cv_lib_z_deflate=no
21456fi
ac1cb8d3
VS
21457rm -f conftest.err conftest.$ac_objext \
21458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21459LIBS=$ac_check_lib_save_LIBS
21460fi
21461echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21462echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21463if test $ac_cv_lib_z_deflate = yes; then
21464 ZLIB_LINK=" -lz"
21465fi
21466
21467 fi
21468
21469 if test "x$ZLIB_LINK" = "x" ; then
21470 if test "$wxUSE_ZLIB" = "sys" ; then
21471 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21472echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21473 { (exit 1); exit 1; }; }
21474 else
21475 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21476echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21477 wxUSE_ZLIB=builtin
21478 fi
21479 else
21480 wxUSE_ZLIB=sys
21481 fi
21482 fi
21483fi
21484
21485
21486PNG_LINK=
21487if test "$wxUSE_LIBPNG" != "no" ; then
21488 cat >>confdefs.h <<\_ACEOF
21489#define wxUSE_LIBPNG 1
21490_ACEOF
21491
21492
21493 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21494 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21495echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21496 wxUSE_LIBPNG=sys
21497 fi
21498
21499 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21500 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21501echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21502 wxUSE_LIBPNG=builtin
21503 fi
21504
21505 if test "$wxUSE_MGL" != 1 ; then
21506 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21507 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21508echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21509if test "${ac_cv_header_png_h+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21511else
21512 if test "$cross_compiling" = yes; then
21513 unset ac_cv_header_png_h
21514
21515else
21516 cat >conftest.$ac_ext <<_ACEOF
21517/* confdefs.h. */
21518_ACEOF
21519cat confdefs.h >>conftest.$ac_ext
21520cat >>conftest.$ac_ext <<_ACEOF
21521/* end confdefs.h. */
21522
21523 #include <png.h>
21524 #include <stdio.h>
21525
21526 int main()
21527 {
21528 FILE *f=fopen("conftestval", "w");
21529 if (!f) exit(1);
21530 fprintf(f, "%s",
21531 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21532 exit(0);
21533 }
21534
21535_ACEOF
21536rm -f conftest$ac_exeext
21537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21538 (eval $ac_link) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
21547 ac_cv_header_png_h=`cat conftestval`
21548else
21549 echo "$as_me: program exited with status $ac_status" >&5
21550echo "$as_me: failed program was:" >&5
21551sed 's/^/| /' conftest.$ac_ext >&5
21552
21553( exit $ac_status )
21554ac_cv_header_png_h=no
21555fi
ac1cb8d3 21556rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21557fi
21558
21559fi
21560echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21561echo "${ECHO_T}$ac_cv_header_png_h" >&6
21562 if test "${ac_cv_header_png_h+set}" = set; then
21563 echo "$as_me:$LINENO: checking for png.h" >&5
21564echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21565if test "${ac_cv_header_png_h+set}" = set; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21567fi
21568echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21569echo "${ECHO_T}$ac_cv_header_png_h" >&6
21570else
21571 # Is the header compilable?
21572echo "$as_me:$LINENO: checking png.h usability" >&5
21573echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21574cat >conftest.$ac_ext <<_ACEOF
21575/* confdefs.h. */
21576_ACEOF
21577cat confdefs.h >>conftest.$ac_ext
21578cat >>conftest.$ac_ext <<_ACEOF
21579/* end confdefs.h. */
21580$ac_includes_default
21581#include <png.h>
21582_ACEOF
21583rm -f conftest.$ac_objext
21584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21585 (eval $ac_compile) 2>conftest.er1
a848cd7e 21586 ac_status=$?
ac1cb8d3
VS
21587 grep -v '^ *+' conftest.er1 >conftest.err
21588 rm -f conftest.er1
21589 cat conftest.err >&5
a848cd7e
SC
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
89be85c2
VS
21592 { ac_try='test -z "$ac_c_werror_flag"
21593 || test ! -s conftest.err'
ac1cb8d3
VS
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } &&
21599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
21605 ac_header_compiler=yes
21606else
21607 echo "$as_me: failed program was:" >&5
21608sed 's/^/| /' conftest.$ac_ext >&5
21609
21610ac_header_compiler=no
21611fi
ac1cb8d3 21612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21613echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21614echo "${ECHO_T}$ac_header_compiler" >&6
21615
21616# Is the header present?
21617echo "$as_me:$LINENO: checking png.h presence" >&5
21618echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21619cat >conftest.$ac_ext <<_ACEOF
21620/* confdefs.h. */
21621_ACEOF
21622cat confdefs.h >>conftest.$ac_ext
21623cat >>conftest.$ac_ext <<_ACEOF
21624/* end confdefs.h. */
21625#include <png.h>
21626_ACEOF
21627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } >/dev/null; then
21635 if test -s conftest.err; then
21636 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21638 else
21639 ac_cpp_err=
21640 fi
21641else
21642 ac_cpp_err=yes
21643fi
21644if test -z "$ac_cpp_err"; then
21645 ac_header_preproc=yes
21646else
21647 echo "$as_me: failed program was:" >&5
21648sed 's/^/| /' conftest.$ac_ext >&5
21649
21650 ac_header_preproc=no
21651fi
21652rm -f conftest.err conftest.$ac_ext
21653echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21654echo "${ECHO_T}$ac_header_preproc" >&6
21655
21656# So? What about this header?
ac1cb8d3
VS
21657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21658 yes:no: )
a848cd7e
SC
21659 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21660echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21661 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21662echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21663 ac_header_preproc=yes
a848cd7e 21664 ;;
ac1cb8d3 21665 no:yes:* )
a848cd7e
SC
21666 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21667echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21668 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21669echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21671echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21673echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21674 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21675echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21676 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21677echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21678 (
21679 cat <<\_ASBOX
ac1cb8d3
VS
21680## ----------------------------------------- ##
21681## Report this to wx-dev@lists.wxwidgets.org ##
21682## ----------------------------------------- ##
a848cd7e
SC
21683_ASBOX
21684 ) |
21685 sed "s/^/$as_me: WARNING: /" >&2
21686 ;;
21687esac
21688echo "$as_me:$LINENO: checking for png.h" >&5
21689echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21690if test "${ac_cv_header_png_h+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692else
21693 ac_cv_header_png_h=$ac_header_preproc
21694fi
21695echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21696echo "${ECHO_T}$ac_cv_header_png_h" >&6
21697
21698fi
21699
21700
21701
21702 if test "$ac_cv_header_png_h" = "yes"; then
21703 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21704echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21705if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21707else
21708 ac_check_lib_save_LIBS=$LIBS
21709LIBS="-lpng -lz -lm $LIBS"
21710cat >conftest.$ac_ext <<_ACEOF
21711/* confdefs.h. */
21712_ACEOF
21713cat confdefs.h >>conftest.$ac_ext
21714cat >>conftest.$ac_ext <<_ACEOF
21715/* end confdefs.h. */
21716
21717/* Override any gcc2 internal prototype to avoid an error. */
21718#ifdef __cplusplus
21719extern "C"
21720#endif
21721/* We use char because int might match the return type of a gcc2
21722 builtin and then its argument prototype would still apply. */
21723char png_check_sig ();
21724int
21725main ()
21726{
21727png_check_sig ();
21728 ;
21729 return 0;
21730}
21731_ACEOF
21732rm -f conftest.$ac_objext conftest$ac_exeext
21733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21734 (eval $ac_link) 2>conftest.er1
a848cd7e 21735 ac_status=$?
ac1cb8d3
VS
21736 grep -v '^ *+' conftest.er1 >conftest.err
21737 rm -f conftest.er1
21738 cat conftest.err >&5
a848cd7e
SC
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } &&
89be85c2
VS
21741 { ac_try='test -z "$ac_c_werror_flag"
21742 || test ! -s conftest.err'
ac1cb8d3
VS
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; } &&
21748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; }; then
21754 ac_cv_lib_png_png_check_sig=yes
21755else
21756 echo "$as_me: failed program was:" >&5
21757sed 's/^/| /' conftest.$ac_ext >&5
21758
21759ac_cv_lib_png_png_check_sig=no
21760fi
ac1cb8d3
VS
21761rm -f conftest.err conftest.$ac_objext \
21762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21763LIBS=$ac_check_lib_save_LIBS
21764fi
21765echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21766echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21767if test $ac_cv_lib_png_png_check_sig = yes; then
21768 PNG_LINK=" -lpng -lz"
21769fi
21770
21771 fi
21772
21773 if test "x$PNG_LINK" = "x" ; then
21774 if test "$wxUSE_LIBPNG" = "sys" ; then
21775 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21776echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21777 { (exit 1); exit 1; }; }
21778 else
21779 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21780echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21781 wxUSE_LIBPNG=builtin
21782 fi
21783 else
21784 wxUSE_LIBPNG=sys
21785 fi
21786 fi
21787 fi
21788
21789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21790fi
21791
21792
21793JPEG_LINK=
21794if test "$wxUSE_LIBJPEG" != "no" ; then
21795 cat >>confdefs.h <<\_ACEOF
21796#define wxUSE_LIBJPEG 1
21797_ACEOF
21798
21799
21800 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21801 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21802echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21803 wxUSE_LIBJPEG=sys
21804 fi
21805
21806 if test "$wxUSE_MGL" != 1 ; then
21807 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21808 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21809echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21810 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21811 echo $ECHO_N "(cached) $ECHO_C" >&6
21812else
21813 cat >conftest.$ac_ext <<_ACEOF
21814/* confdefs.h. */
21815_ACEOF
21816cat confdefs.h >>conftest.$ac_ext
21817cat >>conftest.$ac_ext <<_ACEOF
21818/* end confdefs.h. */
21819
21820 #undef HAVE_STDLIB_H
21821 #include <stdio.h>
21822 #include <jpeglib.h>
21823
21824int
21825main ()
21826{
21827
21828
21829 ;
21830 return 0;
21831}
21832_ACEOF
21833rm -f conftest.$ac_objext
21834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21835 (eval $ac_compile) 2>conftest.er1
a848cd7e 21836 ac_status=$?
ac1cb8d3
VS
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
a848cd7e
SC
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } &&
89be85c2
VS
21842 { ac_try='test -z "$ac_c_werror_flag"
21843 || test ! -s conftest.err'
ac1cb8d3
VS
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; } &&
21849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851 (eval $ac_try) 2>&5
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; }; then
21855 ac_cv_header_jpeglib_h=yes
21856else
21857 echo "$as_me: failed program was:" >&5
21858sed 's/^/| /' conftest.$ac_ext >&5
21859
21860ac_cv_header_jpeglib_h=no
21861
21862fi
ac1cb8d3 21863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21864
21865fi
21866
21867 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21868echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21869
21870 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21871 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21872echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21873if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21874 echo $ECHO_N "(cached) $ECHO_C" >&6
21875else
21876 ac_check_lib_save_LIBS=$LIBS
21877LIBS="-ljpeg $LIBS"
21878cat >conftest.$ac_ext <<_ACEOF
21879/* confdefs.h. */
21880_ACEOF
21881cat confdefs.h >>conftest.$ac_ext
21882cat >>conftest.$ac_ext <<_ACEOF
21883/* end confdefs.h. */
21884
21885/* Override any gcc2 internal prototype to avoid an error. */
21886#ifdef __cplusplus
21887extern "C"
21888#endif
21889/* We use char because int might match the return type of a gcc2
21890 builtin and then its argument prototype would still apply. */
21891char jpeg_read_header ();
21892int
21893main ()
21894{
21895jpeg_read_header ();
21896 ;
21897 return 0;
21898}
21899_ACEOF
21900rm -f conftest.$ac_objext conftest$ac_exeext
21901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21902 (eval $ac_link) 2>conftest.er1
a848cd7e 21903 ac_status=$?
ac1cb8d3
VS
21904 grep -v '^ *+' conftest.er1 >conftest.err
21905 rm -f conftest.er1
21906 cat conftest.err >&5
a848cd7e
SC
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } &&
89be85c2
VS
21909 { ac_try='test -z "$ac_c_werror_flag"
21910 || test ! -s conftest.err'
ac1cb8d3
VS
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; } &&
21916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; }; then
21922 ac_cv_lib_jpeg_jpeg_read_header=yes
21923else
21924 echo "$as_me: failed program was:" >&5
21925sed 's/^/| /' conftest.$ac_ext >&5
21926
21927ac_cv_lib_jpeg_jpeg_read_header=no
21928fi
ac1cb8d3
VS
21929rm -f conftest.err conftest.$ac_objext \
21930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21931LIBS=$ac_check_lib_save_LIBS
21932fi
21933echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21934echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21935if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21936 JPEG_LINK=" -ljpeg"
21937fi
21938
21939 fi
21940
21941 if test "x$JPEG_LINK" = "x" ; then
21942 if test "$wxUSE_LIBJPEG" = "sys" ; then
21943 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21944echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21945 { (exit 1); exit 1; }; }
21946 else
21947 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21948echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21949 wxUSE_LIBJPEG=builtin
21950 fi
21951 else
21952 wxUSE_LIBJPEG=sys
21953 fi
21954 fi
21955 fi
21956fi
21957
21958
21959TIFF_LINK=
21960TIFF_PREREQ_LINKS=-lm
21961if test "$wxUSE_LIBTIFF" != "no" ; then
21962 cat >>confdefs.h <<\_ACEOF
21963#define wxUSE_LIBTIFF 1
21964_ACEOF
21965
21966
21967 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21968 if test "$wxUSE_LIBJPEG" = "sys"; then
21969 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21970 fi
21971 if test "$wxUSE_ZLIB" = "sys"; then
21972 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21973 fi
21974 if test "${ac_cv_header_tiffio_h+set}" = set; then
21975 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21976echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21977if test "${ac_cv_header_tiffio_h+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979fi
21980echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21981echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21982else
21983 # Is the header compilable?
21984echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21985echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21986cat >conftest.$ac_ext <<_ACEOF
21987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
21991/* end confdefs.h. */
21992$ac_includes_default
21993#include <tiffio.h>
21994_ACEOF
21995rm -f conftest.$ac_objext
21996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21997 (eval $ac_compile) 2>conftest.er1
a848cd7e 21998 ac_status=$?
ac1cb8d3
VS
21999 grep -v '^ *+' conftest.er1 >conftest.err
22000 rm -f conftest.er1
22001 cat conftest.err >&5
a848cd7e
SC
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } &&
89be85c2
VS
22004 { ac_try='test -z "$ac_c_werror_flag"
22005 || test ! -s conftest.err'
ac1cb8d3
VS
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22008 ac_status=$?
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; } &&
22011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; }; then
22017 ac_header_compiler=yes
22018else
22019 echo "$as_me: failed program was:" >&5
22020sed 's/^/| /' conftest.$ac_ext >&5
22021
22022ac_header_compiler=no
22023fi
ac1cb8d3 22024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22026echo "${ECHO_T}$ac_header_compiler" >&6
22027
22028# Is the header present?
22029echo "$as_me:$LINENO: checking tiffio.h presence" >&5
22030echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
22031cat >conftest.$ac_ext <<_ACEOF
22032/* confdefs.h. */
22033_ACEOF
22034cat confdefs.h >>conftest.$ac_ext
22035cat >>conftest.$ac_ext <<_ACEOF
22036/* end confdefs.h. */
22037#include <tiffio.h>
22038_ACEOF
22039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22041 ac_status=$?
22042 grep -v '^ *+' conftest.er1 >conftest.err
22043 rm -f conftest.er1
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } >/dev/null; then
22047 if test -s conftest.err; then
22048 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22050 else
22051 ac_cpp_err=
22052 fi
22053else
22054 ac_cpp_err=yes
22055fi
22056if test -z "$ac_cpp_err"; then
22057 ac_header_preproc=yes
22058else
22059 echo "$as_me: failed program was:" >&5
22060sed 's/^/| /' conftest.$ac_ext >&5
22061
22062 ac_header_preproc=no
22063fi
22064rm -f conftest.err conftest.$ac_ext
22065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22066echo "${ECHO_T}$ac_header_preproc" >&6
22067
22068# So? What about this header?
ac1cb8d3
VS
22069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22070 yes:no: )
a848cd7e
SC
22071 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
22072echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22073 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
22074echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
22075 ac_header_preproc=yes
a848cd7e 22076 ;;
ac1cb8d3 22077 no:yes:* )
a848cd7e
SC
22078 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
22079echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22080 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
22081echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
22083echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
22085echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22086 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
22087echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22088 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
22089echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22090 (
22091 cat <<\_ASBOX
ac1cb8d3
VS
22092## ----------------------------------------- ##
22093## Report this to wx-dev@lists.wxwidgets.org ##
22094## ----------------------------------------- ##
a848cd7e
SC
22095_ASBOX
22096 ) |
22097 sed "s/^/$as_me: WARNING: /" >&2
22098 ;;
22099esac
22100echo "$as_me:$LINENO: checking for tiffio.h" >&5
22101echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22102if test "${ac_cv_header_tiffio_h+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22104else
22105 ac_cv_header_tiffio_h=$ac_header_preproc
22106fi
22107echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22108echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22109
22110fi
22111if test $ac_cv_header_tiffio_h = yes; then
22112
22113 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
22114echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
22115if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22117else
22118 ac_check_lib_save_LIBS=$LIBS
22119LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
22120cat >conftest.$ac_ext <<_ACEOF
22121/* confdefs.h. */
22122_ACEOF
22123cat confdefs.h >>conftest.$ac_ext
22124cat >>conftest.$ac_ext <<_ACEOF
22125/* end confdefs.h. */
22126
22127/* Override any gcc2 internal prototype to avoid an error. */
22128#ifdef __cplusplus
22129extern "C"
22130#endif
22131/* We use char because int might match the return type of a gcc2
22132 builtin and then its argument prototype would still apply. */
22133char TIFFError ();
22134int
22135main ()
22136{
22137TIFFError ();
22138 ;
22139 return 0;
22140}
22141_ACEOF
22142rm -f conftest.$ac_objext conftest$ac_exeext
22143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22144 (eval $ac_link) 2>conftest.er1
a848cd7e 22145 ac_status=$?
ac1cb8d3
VS
22146 grep -v '^ *+' conftest.er1 >conftest.err
22147 rm -f conftest.er1
22148 cat conftest.err >&5
a848cd7e
SC
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } &&
89be85c2
VS
22151 { ac_try='test -z "$ac_c_werror_flag"
22152 || test ! -s conftest.err'
ac1cb8d3
VS
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } &&
22158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 ac_cv_lib_tiff_TIFFError=yes
22165else
22166 echo "$as_me: failed program was:" >&5
22167sed 's/^/| /' conftest.$ac_ext >&5
22168
22169ac_cv_lib_tiff_TIFFError=no
22170fi
ac1cb8d3
VS
22171rm -f conftest.err conftest.$ac_objext \
22172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22173LIBS=$ac_check_lib_save_LIBS
22174fi
22175echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
22176echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
22177if test $ac_cv_lib_tiff_TIFFError = yes; then
22178 TIFF_LINK=" -ltiff"
22179fi
22180
22181
22182
22183fi
22184
22185
22186
22187 if test "x$TIFF_LINK" = "x" ; then
22188 if test "$wxUSE_LIBTIFF" = "sys" ; then
22189 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22190echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22191 { (exit 1); exit 1; }; }
22192 else
22193 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22194echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22195 wxUSE_LIBTIFF=builtin
22196 fi
22197 else
22198 wxUSE_LIBTIFF=sys
22199 fi
22200 fi
22201fi
22202
22203
22204if test "$wxUSE_EXPAT" != "no"; then
22205 wxUSE_XML=yes
22206 cat >>confdefs.h <<\_ACEOF
22207#define wxUSE_EXPAT 1
22208_ACEOF
22209
22210 cat >>confdefs.h <<\_ACEOF
22211#define wxUSE_XML 1
22212_ACEOF
22213
22214
22215 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22216 if test "${ac_cv_header_expat_h+set}" = set; then
22217 echo "$as_me:$LINENO: checking for expat.h" >&5
22218echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22219if test "${ac_cv_header_expat_h+set}" = set; then
22220 echo $ECHO_N "(cached) $ECHO_C" >&6
22221fi
22222echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22223echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22224else
22225 # Is the header compilable?
22226echo "$as_me:$LINENO: checking expat.h usability" >&5
22227echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22228cat >conftest.$ac_ext <<_ACEOF
22229/* confdefs.h. */
22230_ACEOF
22231cat confdefs.h >>conftest.$ac_ext
22232cat >>conftest.$ac_ext <<_ACEOF
22233/* end confdefs.h. */
22234$ac_includes_default
22235#include <expat.h>
22236_ACEOF
22237rm -f conftest.$ac_objext
22238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22239 (eval $ac_compile) 2>conftest.er1
a848cd7e 22240 ac_status=$?
ac1cb8d3
VS
22241 grep -v '^ *+' conftest.er1 >conftest.err
22242 rm -f conftest.er1
22243 cat conftest.err >&5
a848cd7e
SC
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } &&
89be85c2
VS
22246 { ac_try='test -z "$ac_c_werror_flag"
22247 || test ! -s conftest.err'
ac1cb8d3
VS
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; } &&
22253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; }; then
22259 ac_header_compiler=yes
22260else
22261 echo "$as_me: failed program was:" >&5
22262sed 's/^/| /' conftest.$ac_ext >&5
22263
22264ac_header_compiler=no
22265fi
ac1cb8d3 22266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22268echo "${ECHO_T}$ac_header_compiler" >&6
22269
22270# Is the header present?
22271echo "$as_me:$LINENO: checking expat.h presence" >&5
22272echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22273cat >conftest.$ac_ext <<_ACEOF
22274/* confdefs.h. */
22275_ACEOF
22276cat confdefs.h >>conftest.$ac_ext
22277cat >>conftest.$ac_ext <<_ACEOF
22278/* end confdefs.h. */
22279#include <expat.h>
22280_ACEOF
22281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22283 ac_status=$?
22284 grep -v '^ *+' conftest.er1 >conftest.err
22285 rm -f conftest.er1
22286 cat conftest.err >&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } >/dev/null; then
22289 if test -s conftest.err; then
22290 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22292 else
22293 ac_cpp_err=
22294 fi
22295else
22296 ac_cpp_err=yes
22297fi
22298if test -z "$ac_cpp_err"; then
22299 ac_header_preproc=yes
22300else
22301 echo "$as_me: failed program was:" >&5
22302sed 's/^/| /' conftest.$ac_ext >&5
22303
22304 ac_header_preproc=no
22305fi
22306rm -f conftest.err conftest.$ac_ext
22307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22308echo "${ECHO_T}$ac_header_preproc" >&6
22309
22310# So? What about this header?
ac1cb8d3
VS
22311case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22312 yes:no: )
a848cd7e
SC
22313 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22314echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22315 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22316echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22317 ac_header_preproc=yes
a848cd7e 22318 ;;
ac1cb8d3 22319 no:yes:* )
a848cd7e
SC
22320 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22321echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22322 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22323echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22324 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22325echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22326 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22327echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22328 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22329echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22330 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22331echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22332 (
22333 cat <<\_ASBOX
ac1cb8d3
VS
22334## ----------------------------------------- ##
22335## Report this to wx-dev@lists.wxwidgets.org ##
22336## ----------------------------------------- ##
a848cd7e
SC
22337_ASBOX
22338 ) |
22339 sed "s/^/$as_me: WARNING: /" >&2
22340 ;;
22341esac
22342echo "$as_me:$LINENO: checking for expat.h" >&5
22343echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22344if test "${ac_cv_header_expat_h+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346else
22347 ac_cv_header_expat_h=$ac_header_preproc
22348fi
22349echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22350echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22351
22352fi
22353if test $ac_cv_header_expat_h = yes; then
22354 found_expat_h=1
22355fi
22356
22357
22358 if test "x$found_expat_h" = "x1"; then
22359 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22360echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22361if test "${wx_cv_expat_is_not_broken+set}" = set; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22363else
22364
22365
22366
22367 ac_ext=cc
22368ac_cpp='$CXXCPP $CPPFLAGS'
22369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22372
22373 cat >conftest.$ac_ext <<_ACEOF
22374/* confdefs.h. */
22375_ACEOF
22376cat confdefs.h >>conftest.$ac_ext
22377cat >>conftest.$ac_ext <<_ACEOF
22378/* end confdefs.h. */
22379#include <expat.h>
22380int
22381main ()
22382{
22383
22384 ;
22385 return 0;
22386}
22387_ACEOF
22388rm -f conftest.$ac_objext
22389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22390 (eval $ac_compile) 2>conftest.er1
a848cd7e 22391 ac_status=$?
ac1cb8d3
VS
22392 grep -v '^ *+' conftest.er1 >conftest.err
22393 rm -f conftest.er1
22394 cat conftest.err >&5
a848cd7e
SC
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } &&
89be85c2
VS
22397 { ac_try='test -z "$ac_cxx_werror_flag"
22398 || test ! -s conftest.err'
ac1cb8d3
VS
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; } &&
22404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; }; then
22410 wx_cv_expat_is_not_broken=yes
22411else
22412 echo "$as_me: failed program was:" >&5
22413sed 's/^/| /' conftest.$ac_ext >&5
22414
22415wx_cv_expat_is_not_broken=no
22416
22417fi
ac1cb8d3 22418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22419 ac_ext=c
22420ac_cpp='$CPP $CPPFLAGS'
22421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22423ac_compiler_gnu=$ac_cv_c_compiler_gnu
22424
22425
22426
22427fi
22428echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22429echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22430 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22431 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22432echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22433if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22435else
22436 ac_check_lib_save_LIBS=$LIBS
22437LIBS="-lexpat $LIBS"
22438cat >conftest.$ac_ext <<_ACEOF
22439/* confdefs.h. */
22440_ACEOF
22441cat confdefs.h >>conftest.$ac_ext
22442cat >>conftest.$ac_ext <<_ACEOF
22443/* end confdefs.h. */
22444
22445/* Override any gcc2 internal prototype to avoid an error. */
22446#ifdef __cplusplus
22447extern "C"
22448#endif
22449/* We use char because int might match the return type of a gcc2
22450 builtin and then its argument prototype would still apply. */
22451char XML_ParserCreate ();
22452int
22453main ()
22454{
22455XML_ParserCreate ();
22456 ;
22457 return 0;
22458}
22459_ACEOF
22460rm -f conftest.$ac_objext conftest$ac_exeext
22461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22462 (eval $ac_link) 2>conftest.er1
a848cd7e 22463 ac_status=$?
ac1cb8d3
VS
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
a848cd7e
SC
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
89be85c2
VS
22469 { ac_try='test -z "$ac_c_werror_flag"
22470 || test ! -s conftest.err'
ac1cb8d3
VS
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; } &&
22476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 ac_cv_lib_expat_XML_ParserCreate=yes
22483else
22484 echo "$as_me: failed program was:" >&5
22485sed 's/^/| /' conftest.$ac_ext >&5
22486
22487ac_cv_lib_expat_XML_ParserCreate=no
22488fi
ac1cb8d3
VS
22489rm -f conftest.err conftest.$ac_objext \
22490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22491LIBS=$ac_check_lib_save_LIBS
22492fi
22493echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22494echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22495if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22496 EXPAT_LINK=" -lexpat"
22497fi
22498
22499 fi
22500 fi
22501 if test "x$EXPAT_LINK" = "x" ; then
22502 if test "$wxUSE_EXPAT" = "sys" ; then
22503 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22504echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22505 { (exit 1); exit 1; }; }
22506 else
22507 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22508echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22509 wxUSE_EXPAT=builtin
22510 fi
22511 else
22512 wxUSE_EXPAT=sys
22513 fi
22514 fi
22515 if test "$wxUSE_EXPAT" = "builtin" ; then
22516
22517
22518subdirs="$subdirs src/expat"
22519
22520 fi
22521fi
22522
22523
22524
22525if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22526 if test "${ac_cv_header_mspack_h+set}" = set; then
22527 echo "$as_me:$LINENO: checking for mspack.h" >&5
22528echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22529if test "${ac_cv_header_mspack_h+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531fi
22532echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22533echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22534else
22535 # Is the header compilable?
22536echo "$as_me:$LINENO: checking mspack.h usability" >&5
22537echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22538cat >conftest.$ac_ext <<_ACEOF
22539/* confdefs.h. */
22540_ACEOF
22541cat confdefs.h >>conftest.$ac_ext
22542cat >>conftest.$ac_ext <<_ACEOF
22543/* end confdefs.h. */
22544$ac_includes_default
22545#include <mspack.h>
22546_ACEOF
22547rm -f conftest.$ac_objext
22548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22549 (eval $ac_compile) 2>conftest.er1
a848cd7e 22550 ac_status=$?
ac1cb8d3
VS
22551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
a848cd7e
SC
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } &&
89be85c2
VS
22556 { ac_try='test -z "$ac_c_werror_flag"
22557 || test ! -s conftest.err'
ac1cb8d3
VS
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; } &&
22563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }; then
22569 ac_header_compiler=yes
22570else
22571 echo "$as_me: failed program was:" >&5
22572sed 's/^/| /' conftest.$ac_ext >&5
22573
22574ac_header_compiler=no
22575fi
ac1cb8d3 22576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22578echo "${ECHO_T}$ac_header_compiler" >&6
22579
22580# Is the header present?
22581echo "$as_me:$LINENO: checking mspack.h presence" >&5
22582echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22583cat >conftest.$ac_ext <<_ACEOF
22584/* confdefs.h. */
22585_ACEOF
22586cat confdefs.h >>conftest.$ac_ext
22587cat >>conftest.$ac_ext <<_ACEOF
22588/* end confdefs.h. */
22589#include <mspack.h>
22590_ACEOF
22591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22593 ac_status=$?
22594 grep -v '^ *+' conftest.er1 >conftest.err
22595 rm -f conftest.er1
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } >/dev/null; then
22599 if test -s conftest.err; then
22600 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22602 else
22603 ac_cpp_err=
22604 fi
22605else
22606 ac_cpp_err=yes
22607fi
22608if test -z "$ac_cpp_err"; then
22609 ac_header_preproc=yes
22610else
22611 echo "$as_me: failed program was:" >&5
22612sed 's/^/| /' conftest.$ac_ext >&5
22613
22614 ac_header_preproc=no
22615fi
22616rm -f conftest.err conftest.$ac_ext
22617echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22618echo "${ECHO_T}$ac_header_preproc" >&6
22619
22620# So? What about this header?
ac1cb8d3
VS
22621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22622 yes:no: )
a848cd7e
SC
22623 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22624echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22625 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22626echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22627 ac_header_preproc=yes
a848cd7e 22628 ;;
ac1cb8d3 22629 no:yes:* )
a848cd7e
SC
22630 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22631echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22632 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22633echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22634 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22635echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22636 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22637echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22638 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22639echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22640 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22641echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22642 (
22643 cat <<\_ASBOX
ac1cb8d3
VS
22644## ----------------------------------------- ##
22645## Report this to wx-dev@lists.wxwidgets.org ##
22646## ----------------------------------------- ##
a848cd7e
SC
22647_ASBOX
22648 ) |
22649 sed "s/^/$as_me: WARNING: /" >&2
22650 ;;
22651esac
22652echo "$as_me:$LINENO: checking for mspack.h" >&5
22653echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22654if test "${ac_cv_header_mspack_h+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22656else
22657 ac_cv_header_mspack_h=$ac_header_preproc
22658fi
22659echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22660echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22661
22662fi
22663if test $ac_cv_header_mspack_h = yes; then
22664 found_mspack_h=1
22665fi
22666
22667
22668 if test "x$found_mspack_h" = "x1"; then
22669 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22670echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22671if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673else
22674 ac_check_lib_save_LIBS=$LIBS
22675LIBS="-lmspack $LIBS"
22676cat >conftest.$ac_ext <<_ACEOF
22677/* confdefs.h. */
22678_ACEOF
22679cat confdefs.h >>conftest.$ac_ext
22680cat >>conftest.$ac_ext <<_ACEOF
22681/* end confdefs.h. */
22682
22683/* Override any gcc2 internal prototype to avoid an error. */
22684#ifdef __cplusplus
22685extern "C"
22686#endif
22687/* We use char because int might match the return type of a gcc2
22688 builtin and then its argument prototype would still apply. */
22689char mspack_create_chm_decompressor ();
22690int
22691main ()
22692{
22693mspack_create_chm_decompressor ();
22694 ;
22695 return 0;
22696}
22697_ACEOF
22698rm -f conftest.$ac_objext conftest$ac_exeext
22699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22700 (eval $ac_link) 2>conftest.er1
a848cd7e 22701 ac_status=$?
ac1cb8d3
VS
22702 grep -v '^ *+' conftest.er1 >conftest.err
22703 rm -f conftest.er1
22704 cat conftest.err >&5
a848cd7e
SC
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
89be85c2
VS
22707 { ac_try='test -z "$ac_c_werror_flag"
22708 || test ! -s conftest.err'
ac1cb8d3
VS
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22721else
22722 echo "$as_me: failed program was:" >&5
22723sed 's/^/| /' conftest.$ac_ext >&5
22724
22725ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22726fi
ac1cb8d3
VS
22727rm -f conftest.err conftest.$ac_objext \
22728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22729LIBS=$ac_check_lib_save_LIBS
22730fi
22731echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22732echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22733if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22734 MSPACK_LINK=" -lmspack"
22735fi
22736
22737 fi
22738 if test "x$MSPACK_LINK" = "x" ; then
22739 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22740 fi
22741fi
22742
22743if test "$wxUSE_LIBMSPACK" != "no"; then
22744 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22745#define wxUSE_LIBMSPACK 1
22746_ACEOF
22747
a848cd7e
SC
22748fi
22749
22750
22751
22752AFMINSTALL=
22753WIN32INSTALL=
22754
22755TOOLKIT=
22756TOOLKIT_INCLUDE=
22757WIDGET_SET=
22758
22759if test "$USE_WIN32" = 1 ; then
22760
22761for ac_header in w32api.h
22762do
22763as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22764if eval "test \"\${$as_ac_Header+set}\" = set"; then
22765 echo "$as_me:$LINENO: checking for $ac_header" >&5
22766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22767if eval "test \"\${$as_ac_Header+set}\" = set"; then
22768 echo $ECHO_N "(cached) $ECHO_C" >&6
22769fi
22770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22772else
22773 # Is the header compilable?
22774echo "$as_me:$LINENO: checking $ac_header usability" >&5
22775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22776cat >conftest.$ac_ext <<_ACEOF
22777/* confdefs.h. */
22778_ACEOF
22779cat confdefs.h >>conftest.$ac_ext
22780cat >>conftest.$ac_ext <<_ACEOF
22781/* end confdefs.h. */
22782$ac_includes_default
22783#include <$ac_header>
22784_ACEOF
22785rm -f conftest.$ac_objext
22786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22787 (eval $ac_compile) 2>conftest.er1
a848cd7e 22788 ac_status=$?
ac1cb8d3
VS
22789 grep -v '^ *+' conftest.er1 >conftest.err
22790 rm -f conftest.er1
22791 cat conftest.err >&5
a848cd7e
SC
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } &&
89be85c2
VS
22794 { ac_try='test -z "$ac_c_werror_flag"
22795 || test ! -s conftest.err'
ac1cb8d3
VS
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22798 ac_status=$?
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; } &&
22801 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803 (eval $ac_try) 2>&5
22804 ac_status=$?
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; }; then
22807 ac_header_compiler=yes
22808else
22809 echo "$as_me: failed program was:" >&5
22810sed 's/^/| /' conftest.$ac_ext >&5
22811
22812ac_header_compiler=no
22813fi
ac1cb8d3 22814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22815echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22816echo "${ECHO_T}$ac_header_compiler" >&6
22817
22818# Is the header present?
22819echo "$as_me:$LINENO: checking $ac_header presence" >&5
22820echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22821cat >conftest.$ac_ext <<_ACEOF
22822/* confdefs.h. */
22823_ACEOF
22824cat confdefs.h >>conftest.$ac_ext
22825cat >>conftest.$ac_ext <<_ACEOF
22826/* end confdefs.h. */
22827#include <$ac_header>
22828_ACEOF
22829if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22831 ac_status=$?
22832 grep -v '^ *+' conftest.er1 >conftest.err
22833 rm -f conftest.er1
22834 cat conftest.err >&5
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); } >/dev/null; then
22837 if test -s conftest.err; then
22838 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22840 else
22841 ac_cpp_err=
22842 fi
22843else
22844 ac_cpp_err=yes
22845fi
22846if test -z "$ac_cpp_err"; then
22847 ac_header_preproc=yes
22848else
22849 echo "$as_me: failed program was:" >&5
22850sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 ac_header_preproc=no
22853fi
22854rm -f conftest.err conftest.$ac_ext
22855echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22856echo "${ECHO_T}$ac_header_preproc" >&6
22857
22858# So? What about this header?
ac1cb8d3
VS
22859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22860 yes:no: )
a848cd7e
SC
22861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22862echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22864echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22865 ac_header_preproc=yes
a848cd7e 22866 ;;
ac1cb8d3 22867 no:yes:* )
a848cd7e
SC
22868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22869echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22871echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22873echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22875echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22877echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22879echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22880 (
22881 cat <<\_ASBOX
ac1cb8d3
VS
22882## ----------------------------------------- ##
22883## Report this to wx-dev@lists.wxwidgets.org ##
22884## ----------------------------------------- ##
a848cd7e
SC
22885_ASBOX
22886 ) |
22887 sed "s/^/$as_me: WARNING: /" >&2
22888 ;;
22889esac
22890echo "$as_me:$LINENO: checking for $ac_header" >&5
22891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22892if eval "test \"\${$as_ac_Header+set}\" = set"; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22894else
ac1cb8d3 22895 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22896fi
22897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22899
22900fi
22901if test `eval echo '${'$as_ac_Header'}'` = yes; then
22902 cat >>confdefs.h <<_ACEOF
22903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22904_ACEOF
22905
22906fi
22907
22908done
22909
22910 if test "${ac_cv_header_windows_h+set}" = set; then
22911 echo "$as_me:$LINENO: checking for windows.h" >&5
22912echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22913if test "${ac_cv_header_windows_h+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22915fi
22916echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22917echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22918else
22919 # Is the header compilable?
22920echo "$as_me:$LINENO: checking windows.h usability" >&5
22921echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22922cat >conftest.$ac_ext <<_ACEOF
22923/* confdefs.h. */
22924_ACEOF
22925cat confdefs.h >>conftest.$ac_ext
22926cat >>conftest.$ac_ext <<_ACEOF
22927/* end confdefs.h. */
22928$ac_includes_default
22929#include <windows.h>
22930_ACEOF
22931rm -f conftest.$ac_objext
22932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22933 (eval $ac_compile) 2>conftest.er1
a848cd7e 22934 ac_status=$?
ac1cb8d3
VS
22935 grep -v '^ *+' conftest.er1 >conftest.err
22936 rm -f conftest.er1
22937 cat conftest.err >&5
a848cd7e
SC
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } &&
89be85c2
VS
22940 { ac_try='test -z "$ac_c_werror_flag"
22941 || test ! -s conftest.err'
ac1cb8d3
VS
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22944 ac_status=$?
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; } &&
22947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22949 (eval $ac_try) 2>&5
22950 ac_status=$?
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); }; }; then
22953 ac_header_compiler=yes
22954else
22955 echo "$as_me: failed program was:" >&5
22956sed 's/^/| /' conftest.$ac_ext >&5
22957
22958ac_header_compiler=no
22959fi
ac1cb8d3 22960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22961echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22962echo "${ECHO_T}$ac_header_compiler" >&6
22963
22964# Is the header present?
22965echo "$as_me:$LINENO: checking windows.h presence" >&5
22966echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22967cat >conftest.$ac_ext <<_ACEOF
22968/* confdefs.h. */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h. */
22973#include <windows.h>
22974_ACEOF
22975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22977 ac_status=$?
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } >/dev/null; then
22983 if test -s conftest.err; then
22984 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22986 else
22987 ac_cpp_err=
22988 fi
22989else
22990 ac_cpp_err=yes
22991fi
22992if test -z "$ac_cpp_err"; then
22993 ac_header_preproc=yes
22994else
22995 echo "$as_me: failed program was:" >&5
22996sed 's/^/| /' conftest.$ac_ext >&5
22997
22998 ac_header_preproc=no
22999fi
23000rm -f conftest.err conftest.$ac_ext
23001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23002echo "${ECHO_T}$ac_header_preproc" >&6
23003
23004# So? What about this header?
ac1cb8d3
VS
23005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23006 yes:no: )
a848cd7e
SC
23007 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23008echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23009 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23010echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23011 ac_header_preproc=yes
a848cd7e 23012 ;;
ac1cb8d3 23013 no:yes:* )
a848cd7e
SC
23014 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23015echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23016 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23017echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23018 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23019echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23020 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23021echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23022 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23023echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23024 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23025echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23026 (
23027 cat <<\_ASBOX
ac1cb8d3
VS
23028## ----------------------------------------- ##
23029## Report this to wx-dev@lists.wxwidgets.org ##
23030## ----------------------------------------- ##
a848cd7e
SC
23031_ASBOX
23032 ) |
23033 sed "s/^/$as_me: WARNING: /" >&2
23034 ;;
23035esac
23036echo "$as_me:$LINENO: checking for windows.h" >&5
23037echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23038if test "${ac_cv_header_windows_h+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040else
23041 ac_cv_header_windows_h=$ac_header_preproc
23042fi
23043echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23044echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23045
23046fi
23047if test $ac_cv_header_windows_h = yes; then
23048 :
23049else
23050
23051 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
23052echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
23053 { (exit 1); exit 1; }; }
23054
23055fi
23056
23057
23058
23059 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
23060
23061 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
23062 LIBS="$LIBS -loleacc"
23063 fi
23064
23065 case "${host}" in
23066 *-*-cygwin* )
23067 LIBS="$LIBS -lkernel32 -luser32"
23068 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
23069 esac
23070
23071 if test "$wxUSE_ODBC" = "sys" ; then
23072 wxUSE_ODBC = "yes"
23073 fi
23074 if test "$wxUSE_ODBC" = "yes" ; then
23075 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
23076 cat >>confdefs.h <<\_ACEOF
23077#define wxUSE_ODBC 1
23078_ACEOF
23079
23080 fi
23081
23082 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
23083 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
23084
23085 WIN32INSTALL=win32install
23086fi
23087
23088if test "$wxUSE_GUI" = "yes"; then
23089 USE_GUI=1
23090
23091 GUI_TK_LIBRARY=
23092
23093 WXGTK12=
23094 WXGTK127=
23095 WXGTK20=
23096 WXGPE=
23097
207bc66c
RN
23098 if test "$wxUSE_COCOA" = 1 ; then
23099 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
23100 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
23101echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
23102 wxUSE_PRINTING_ARCHITECTURE=no
23103 fi
23104 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
23105 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
23106echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
23107 wxUSE_DRAG_AND_DROP=no
23108 fi
23109 if test "$wxUSE_DRAGIMAGE" = "yes"; then
23110 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
23111echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
23112 wxUSE_DRAGIMAGE=no
23113 fi
23114 fi
23115
a848cd7e
SC
23116 if test "$wxUSE_MSW" = 1 ; then
23117 TOOLKIT=MSW
23118 GUIDIST=MSW_DIST
23119
ceec2216 23120 case "${host}" in
a848cd7e
SC
23121 *-*-mingw32* )
23122 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
23123 esac
23124 fi
23125
23126 if test "$wxUSE_GTK" = 1; then
23127 echo "$as_me:$LINENO: checking for GTK+ version" >&5
23128echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
23129
23130 gtk_version_cached=1
23131 if test "${wx_cv_lib_gtk+set}" = set; then
23132 echo $ECHO_N "(cached) $ECHO_C" >&6
23133else
23134
23135 gtk_version_cached=0
23136 echo "$as_me:$LINENO: result: " >&5
23137echo "${ECHO_T}" >&6
23138
23139 GTK_MODULES=
23140 if test "$wxUSE_THREADS" = "yes"; then
23141 GTK_MODULES=gthread
23142 fi
23143
23144 wx_cv_lib_gtk=
23145 if test "x$wxUSE_GTK2" = "xyes"; then
23146 # Check whether --enable-gtktest or --disable-gtktest was given.
23147if test "${enable_gtktest+set}" = set; then
23148 enableval="$enable_gtktest"
23149
23150else
23151 enable_gtktest=yes
23152fi;
23153
23154 pkg_config_args=gtk+-2.0
23155 for module in . $GTK_MODULES
23156 do
23157 case "$module" in
23158 gthread)
23159 pkg_config_args="$pkg_config_args gthread-2.0"
23160 ;;
23161 esac
23162 done
23163
23164 no_gtk=""
23165
23166 # Extract the first word of "pkg-config", so it can be a program name with args.
23167set dummy pkg-config; ac_word=$2
23168echo "$as_me:$LINENO: checking for $ac_word" >&5
23169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23170if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23171 echo $ECHO_N "(cached) $ECHO_C" >&6
23172else
23173 case $PKG_CONFIG in
23174 [\\/]* | ?:[\\/]*)
23175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23176 ;;
23177 *)
23178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23179for as_dir in $PATH
23180do
23181 IFS=$as_save_IFS
23182 test -z "$as_dir" && as_dir=.
23183 for ac_exec_ext in '' $ac_executable_extensions; do
23184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23185 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23187 break 2
23188 fi
23189done
23190done
23191
23192 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23193 ;;
23194esac
23195fi
23196PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23197
23198if test -n "$PKG_CONFIG"; then
23199 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23200echo "${ECHO_T}$PKG_CONFIG" >&6
23201else
23202 echo "$as_me:$LINENO: result: no" >&5
23203echo "${ECHO_T}no" >&6
23204fi
23205
23206
23207 if test x$PKG_CONFIG != xno ; then
23208 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23209 :
23210 else
c2218763 23211 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23212 no_gtk=yes
23213 PKG_CONFIG=no
23214 fi
23215 else
23216 no_gtk=yes
23217 fi
23218
23219 min_gtk_version=2.0.0
23220 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23221echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23222
23223 if test x$PKG_CONFIG != xno ; then
23224 ## don't try to run the test against uninstalled libtool libs
23225 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23226 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23227 enable_gtktest=no
23228 fi
23229
23230 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23231 :
23232 else
23233 no_gtk=yes
23234 fi
23235 fi
23236
23237 if test x"$no_gtk" = x ; then
23238 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23239 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23240 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23242 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23244 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23245 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23246 if test "x$enable_gtktest" = "xyes" ; then
23247 ac_save_CFLAGS="$CFLAGS"
23248 ac_save_LIBS="$LIBS"
23249 CFLAGS="$CFLAGS $GTK_CFLAGS"
23250 LIBS="$GTK_LIBS $LIBS"
23251 rm -f conf.gtktest
23252 if test "$cross_compiling" = yes; then
23253 echo $ac_n "cross compiling; assumed OK... $ac_c"
23254else
23255 cat >conftest.$ac_ext <<_ACEOF
23256/* confdefs.h. */
23257_ACEOF
23258cat confdefs.h >>conftest.$ac_ext
23259cat >>conftest.$ac_ext <<_ACEOF
23260/* end confdefs.h. */
23261
23262#include <gtk/gtk.h>
23263#include <stdio.h>
23264#include <stdlib.h>
23265
23266int
23267main ()
23268{
23269 int major, minor, micro;
23270 char *tmp_version;
23271
23272 system ("touch conf.gtktest");
23273
23274 /* HP/UX 9 (%@#!) writes to sscanf strings */
23275 tmp_version = g_strdup("$min_gtk_version");
23276 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23277 printf("%s, bad version string\n", "$min_gtk_version");
23278 exit(1);
23279 }
23280
23281 if ((gtk_major_version != $gtk_config_major_version) ||
23282 (gtk_minor_version != $gtk_config_minor_version) ||
23283 (gtk_micro_version != $gtk_config_micro_version))
23284 {
23285 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23286 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23287 gtk_major_version, gtk_minor_version, gtk_micro_version);
23288 printf ("*** was found! If pkg-config was correct, then it is best\n");
23289 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23290 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23291 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23292 printf("*** required on your system.\n");
23293 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23294 printf("*** to point to the correct configuration files\n");
23295 }
23296 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23297 (gtk_minor_version != GTK_MINOR_VERSION) ||
23298 (gtk_micro_version != GTK_MICRO_VERSION))
23299 {
23300 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23301 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23302 printf("*** library (version %d.%d.%d)\n",
23303 gtk_major_version, gtk_minor_version, gtk_micro_version);
23304 }
23305 else
23306 {
23307 if ((gtk_major_version > major) ||
23308 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23309 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23310 {
23311 return 0;
23312 }
23313 else
23314 {
23315 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23316 gtk_major_version, gtk_minor_version, gtk_micro_version);
23317 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23318 major, minor, micro);
23319 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23320 printf("***\n");
23321 printf("*** If you have already installed a sufficiently new version, this error\n");
23322 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23323 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23324 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23325 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23326 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23327 printf("*** so that the correct libraries are found at run-time))\n");
23328 }
23329 }
23330 return 1;
23331}
23332
23333_ACEOF
23334rm -f conftest$ac_exeext
23335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23336 (eval $ac_link) 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23345 :
23346else
23347 echo "$as_me: program exited with status $ac_status" >&5
23348echo "$as_me: failed program was:" >&5
23349sed 's/^/| /' conftest.$ac_ext >&5
23350
23351( exit $ac_status )
23352no_gtk=yes
23353fi
ac1cb8d3 23354rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23355fi
23356 CFLAGS="$ac_save_CFLAGS"
23357 LIBS="$ac_save_LIBS"
23358 fi
23359 fi
23360 if test "x$no_gtk" = x ; then
23361 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23362echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23363 wx_cv_lib_gtk=2.0
23364 else
23365 echo "$as_me:$LINENO: result: no" >&5
23366echo "${ECHO_T}no" >&6
23367 if test "$PKG_CONFIG" = "no" ; then
23368 echo "*** A new enough version of pkg-config was not found."
23369 echo "*** See http://pkgconfig.sourceforge.net"
23370 else
23371 if test -f conf.gtktest ; then
23372 :
23373 else
23374 echo "*** Could not run GTK+ test program, checking why..."
23375 ac_save_CFLAGS="$CFLAGS"
23376 ac_save_LIBS="$LIBS"
23377 CFLAGS="$CFLAGS $GTK_CFLAGS"
23378 LIBS="$LIBS $GTK_LIBS"
23379 cat >conftest.$ac_ext <<_ACEOF
23380/* confdefs.h. */
23381_ACEOF
23382cat confdefs.h >>conftest.$ac_ext
23383cat >>conftest.$ac_ext <<_ACEOF
23384/* end confdefs.h. */
23385
23386#include <gtk/gtk.h>
23387#include <stdio.h>
23388
23389int
23390main ()
23391{
23392 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23393 ;
23394 return 0;
23395}
23396_ACEOF
23397rm -f conftest.$ac_objext conftest$ac_exeext
23398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23399 (eval $ac_link) 2>conftest.er1
a848cd7e 23400 ac_status=$?
ac1cb8d3
VS
23401 grep -v '^ *+' conftest.er1 >conftest.err
23402 rm -f conftest.er1
23403 cat conftest.err >&5
a848cd7e
SC
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } &&
89be85c2
VS
23406 { ac_try='test -z "$ac_c_werror_flag"
23407 || test ! -s conftest.err'
ac1cb8d3
VS
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23410 ac_status=$?
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; } &&
23413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 echo "*** The test program compiled, but did not run. This usually means"
23420 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23421 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23422 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23423 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23424 echo "*** is required on your system"
23425 echo "***"
23426 echo "*** If you have an old version installed, it is best to remove it, although"
23427 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23428else
23429 echo "$as_me: failed program was:" >&5
23430sed 's/^/| /' conftest.$ac_ext >&5
23431
23432 echo "*** The test program failed to compile or link. See the file config.log for the"
23433 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23434fi
ac1cb8d3
VS
23435rm -f conftest.err conftest.$ac_objext \
23436 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23437 CFLAGS="$ac_save_CFLAGS"
23438 LIBS="$ac_save_LIBS"
23439 fi
23440 fi
23441 GTK_CFLAGS=""
23442 GTK_LIBS=""
23443 :
23444 fi
23445
23446
23447 rm -f conf.gtktest
23448
23449 else
23450
23451# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23452if test "${with_gtk_prefix+set}" = set; then
23453 withval="$with_gtk_prefix"
23454 gtk_config_prefix="$withval"
23455else
23456 gtk_config_prefix=""
23457fi;
23458
23459# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23460if test "${with_gtk_exec_prefix+set}" = set; then
23461 withval="$with_gtk_exec_prefix"
23462 gtk_config_exec_prefix="$withval"
23463else
23464 gtk_config_exec_prefix=""
23465fi;
23466# Check whether --enable-gtktest or --disable-gtktest was given.
23467if test "${enable_gtktest+set}" = set; then
23468 enableval="$enable_gtktest"
23469
23470else
23471 enable_gtktest=yes
23472fi;
23473
23474 for module in . $GTK_MODULES
23475 do
23476 case "$module" in
23477 gthread)
23478 gtk_config_args="$gtk_config_args gthread"
23479 ;;
23480 esac
23481 done
23482
23483 if test x$gtk_config_exec_prefix != x ; then
23484 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23485 if test x${GTK_CONFIG+set} != xset ; then
23486 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23487 fi
23488 fi
23489 if test x$gtk_config_prefix != x ; then
23490 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23491 if test x${GTK_CONFIG+set} != xset ; then
23492 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23493 fi
23494 fi
23495
23496 # Extract the first word of "gtk-config", so it can be a program name with args.
23497set dummy gtk-config; ac_word=$2
23498echo "$as_me:$LINENO: checking for $ac_word" >&5
23499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23500if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23502else
23503 case $GTK_CONFIG in
23504 [\\/]* | ?:[\\/]*)
23505 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23506 ;;
23507 *)
23508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23509for as_dir in $PATH
23510do
23511 IFS=$as_save_IFS
23512 test -z "$as_dir" && as_dir=.
23513 for ac_exec_ext in '' $ac_executable_extensions; do
23514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23515 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23517 break 2
23518 fi
23519done
23520done
23521
23522 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23523 ;;
23524esac
23525fi
23526GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23527
23528if test -n "$GTK_CONFIG"; then
23529 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23530echo "${ECHO_T}$GTK_CONFIG" >&6
23531else
23532 echo "$as_me:$LINENO: result: no" >&5
23533echo "${ECHO_T}no" >&6
23534fi
23535
23536 min_gtk_version=1.2.7
23537 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23538echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23539 no_gtk=""
23540 if test "$GTK_CONFIG" = "no" ; then
23541 no_gtk=yes
23542 else
23543 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23544 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23545 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23547 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23548 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23549 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23550 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23551 if test "x$enable_gtktest" = "xyes" ; then
23552 ac_save_CFLAGS="$CFLAGS"
23553 ac_save_LIBS="$LIBS"
23554 CFLAGS="$CFLAGS $GTK_CFLAGS"
23555 LIBS="$GTK_LIBS $LIBS"
23556 rm -f conf.gtktest
23557 if test "$cross_compiling" = yes; then
23558 echo $ac_n "cross compiling; assumed OK... $ac_c"
23559else
23560 cat >conftest.$ac_ext <<_ACEOF
23561/* confdefs.h. */
23562_ACEOF
23563cat confdefs.h >>conftest.$ac_ext
23564cat >>conftest.$ac_ext <<_ACEOF
23565/* end confdefs.h. */
23566
23567#include <gtk/gtk.h>
23568#include <stdio.h>
23569#include <stdlib.h>
23570
23571int
23572main ()
23573{
23574 int major, minor, micro;
23575 char *tmp_version;
23576
23577 system ("touch conf.gtktest");
23578
23579 /* HP/UX 9 (%@#!) writes to sscanf strings */
23580 tmp_version = g_strdup("$min_gtk_version");
23581 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23582 printf("%s, bad version string\n", "$min_gtk_version");
23583 exit(1);
23584 }
23585
23586 if ((gtk_major_version != $gtk_config_major_version) ||
23587 (gtk_minor_version != $gtk_config_minor_version) ||
23588 (gtk_micro_version != $gtk_config_micro_version))
23589 {
23590 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23591 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23592 gtk_major_version, gtk_minor_version, gtk_micro_version);
23593 printf ("*** was found! If gtk-config was correct, then it is best\n");
23594 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23595 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23596 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23597 printf("*** required on your system.\n");
23598 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23599 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23600 printf("*** before re-running configure\n");
23601 }
23602#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23603 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23604 (gtk_minor_version != GTK_MINOR_VERSION) ||
23605 (gtk_micro_version != GTK_MICRO_VERSION))
23606 {
23607 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23608 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23609 printf("*** library (version %d.%d.%d)\n",
23610 gtk_major_version, gtk_minor_version, gtk_micro_version);
23611 }
23612#endif /* defined (GTK_MAJOR_VERSION) ... */
23613 else
23614 {
23615 if ((gtk_major_version > major) ||
23616 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23617 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23618 {
23619 return 0;
23620 }
23621 else
23622 {
23623 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23624 gtk_major_version, gtk_minor_version, gtk_micro_version);
23625 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23626 major, minor, micro);
23627 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23628 printf("***\n");
23629 printf("*** If you have already installed a sufficiently new version, this error\n");
23630 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23631 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23632 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23633 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23634 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23635 printf("*** so that the correct libraries are found at run-time))\n");
23636 }
23637 }
23638 return 1;
23639}
23640
23641_ACEOF
23642rm -f conftest$ac_exeext
23643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644 (eval $ac_link) 2>&5
23645 ac_status=$?
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 :
23654else
23655 echo "$as_me: program exited with status $ac_status" >&5
23656echo "$as_me: failed program was:" >&5
23657sed 's/^/| /' conftest.$ac_ext >&5
23658
23659( exit $ac_status )
23660no_gtk=yes
23661fi
ac1cb8d3 23662rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23663fi
23664 CFLAGS="$ac_save_CFLAGS"
23665 LIBS="$ac_save_LIBS"
23666 fi
23667 fi
23668 if test "x$no_gtk" = x ; then
23669 echo "$as_me:$LINENO: result: yes" >&5
23670echo "${ECHO_T}yes" >&6
23671 wx_cv_lib_gtk=1.2.7
23672 else
23673 echo "$as_me:$LINENO: result: no" >&5
23674echo "${ECHO_T}no" >&6
23675 if test "$GTK_CONFIG" = "no" ; then
23676 echo "*** The gtk-config script installed by GTK could not be found"
23677 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23678 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23679 echo "*** full path to gtk-config."
23680 else
23681 if test -f conf.gtktest ; then
23682 :
23683 else
23684 echo "*** Could not run GTK test program, checking why..."
23685 CFLAGS="$CFLAGS $GTK_CFLAGS"
23686 LIBS="$LIBS $GTK_LIBS"
23687 cat >conftest.$ac_ext <<_ACEOF
23688/* confdefs.h. */
23689_ACEOF
23690cat confdefs.h >>conftest.$ac_ext
23691cat >>conftest.$ac_ext <<_ACEOF
23692/* end confdefs.h. */
23693
23694#include <gtk/gtk.h>
23695#include <stdio.h>
23696
23697int
23698main ()
23699{
23700 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23701 ;
23702 return 0;
23703}
23704_ACEOF
23705rm -f conftest.$ac_objext conftest$ac_exeext
23706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23707 (eval $ac_link) 2>conftest.er1
a848cd7e 23708 ac_status=$?
ac1cb8d3
VS
23709 grep -v '^ *+' conftest.er1 >conftest.err
23710 rm -f conftest.er1
23711 cat conftest.err >&5
a848cd7e
SC
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } &&
89be85c2
VS
23714 { ac_try='test -z "$ac_c_werror_flag"
23715 || test ! -s conftest.err'
ac1cb8d3
VS
23716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717 (eval $ac_try) 2>&5
23718 ac_status=$?
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); }; } &&
23721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; }; then
23727 echo "*** The test program compiled, but did not run. This usually means"
23728 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23729 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23730 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23731 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23732 echo "*** is required on your system"
23733 echo "***"
23734 echo "*** If you have an old version installed, it is best to remove it, although"
23735 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23736 echo "***"
23737 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23738 echo "*** came with the system with the command"
23739 echo "***"
23740 echo "*** rpm --erase --nodeps gtk gtk-devel"
23741else
23742 echo "$as_me: failed program was:" >&5
23743sed 's/^/| /' conftest.$ac_ext >&5
23744
23745 echo "*** The test program failed to compile or link. See the file config.log for the"
23746 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23747 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23748 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23749fi
ac1cb8d3
VS
23750rm -f conftest.err conftest.$ac_objext \
23751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23752 CFLAGS="$ac_save_CFLAGS"
23753 LIBS="$ac_save_LIBS"
23754 fi
23755 fi
23756 GTK_CFLAGS=""
23757 GTK_LIBS=""
23758 :
23759 fi
23760
23761
23762 rm -f conf.gtktest
23763
23764
23765 if test -z "$wx_cv_lib_gtk"; then
23766
23767# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23768if test "${with_gtk_prefix+set}" = set; then
23769 withval="$with_gtk_prefix"
23770 gtk_config_prefix="$withval"
23771else
23772 gtk_config_prefix=""
23773fi;
23774
23775# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23776if test "${with_gtk_exec_prefix+set}" = set; then
23777 withval="$with_gtk_exec_prefix"
23778 gtk_config_exec_prefix="$withval"
23779else
23780 gtk_config_exec_prefix=""
23781fi;
23782# Check whether --enable-gtktest or --disable-gtktest was given.
23783if test "${enable_gtktest+set}" = set; then
23784 enableval="$enable_gtktest"
23785
23786else
23787 enable_gtktest=yes
23788fi;
23789
23790 for module in . $GTK_MODULES
23791 do
23792 case "$module" in
23793 gthread)
23794 gtk_config_args="$gtk_config_args gthread"
23795 ;;
23796 esac
23797 done
23798
23799 if test x$gtk_config_exec_prefix != x ; then
23800 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23801 if test x${GTK_CONFIG+set} != xset ; then
23802 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23803 fi
23804 fi
23805 if test x$gtk_config_prefix != x ; then
23806 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23807 if test x${GTK_CONFIG+set} != xset ; then
23808 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23809 fi
23810 fi
23811
23812 # Extract the first word of "gtk-config", so it can be a program name with args.
23813set dummy gtk-config; ac_word=$2
23814echo "$as_me:$LINENO: checking for $ac_word" >&5
23815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23816if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23817 echo $ECHO_N "(cached) $ECHO_C" >&6
23818else
23819 case $GTK_CONFIG in
23820 [\\/]* | ?:[\\/]*)
23821 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23822 ;;
23823 *)
23824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23825for as_dir in $PATH
23826do
23827 IFS=$as_save_IFS
23828 test -z "$as_dir" && as_dir=.
23829 for ac_exec_ext in '' $ac_executable_extensions; do
23830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23831 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23833 break 2
23834 fi
23835done
23836done
23837
23838 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23839 ;;
23840esac
23841fi
23842GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23843
23844if test -n "$GTK_CONFIG"; then
23845 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23846echo "${ECHO_T}$GTK_CONFIG" >&6
23847else
23848 echo "$as_me:$LINENO: result: no" >&5
23849echo "${ECHO_T}no" >&6
23850fi
23851
23852 min_gtk_version=1.2.3
23853 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23854echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23855 no_gtk=""
23856 if test "$GTK_CONFIG" = "no" ; then
23857 no_gtk=yes
23858 else
23859 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23860 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23861 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23862 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23863 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23864 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23865 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23866 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23867 if test "x$enable_gtktest" = "xyes" ; then
23868 ac_save_CFLAGS="$CFLAGS"
23869 ac_save_LIBS="$LIBS"
23870 CFLAGS="$CFLAGS $GTK_CFLAGS"
23871 LIBS="$GTK_LIBS $LIBS"
23872 rm -f conf.gtktest
23873 if test "$cross_compiling" = yes; then
23874 echo $ac_n "cross compiling; assumed OK... $ac_c"
23875else
23876 cat >conftest.$ac_ext <<_ACEOF
23877/* confdefs.h. */
23878_ACEOF
23879cat confdefs.h >>conftest.$ac_ext
23880cat >>conftest.$ac_ext <<_ACEOF
23881/* end confdefs.h. */
23882
23883#include <gtk/gtk.h>
23884#include <stdio.h>
23885#include <stdlib.h>
23886
23887int
23888main ()
23889{
23890 int major, minor, micro;
23891 char *tmp_version;
23892
23893 system ("touch conf.gtktest");
23894
23895 /* HP/UX 9 (%@#!) writes to sscanf strings */
23896 tmp_version = g_strdup("$min_gtk_version");
23897 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23898 printf("%s, bad version string\n", "$min_gtk_version");
23899 exit(1);
23900 }
23901
23902 if ((gtk_major_version != $gtk_config_major_version) ||
23903 (gtk_minor_version != $gtk_config_minor_version) ||
23904 (gtk_micro_version != $gtk_config_micro_version))
23905 {
23906 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23907 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23908 gtk_major_version, gtk_minor_version, gtk_micro_version);
23909 printf ("*** was found! If gtk-config was correct, then it is best\n");
23910 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23911 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23912 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23913 printf("*** required on your system.\n");
23914 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23915 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23916 printf("*** before re-running configure\n");
23917 }
23918#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23919 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23920 (gtk_minor_version != GTK_MINOR_VERSION) ||
23921 (gtk_micro_version != GTK_MICRO_VERSION))
23922 {
23923 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23924 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23925 printf("*** library (version %d.%d.%d)\n",
23926 gtk_major_version, gtk_minor_version, gtk_micro_version);
23927 }
23928#endif /* defined (GTK_MAJOR_VERSION) ... */
23929 else
23930 {
23931 if ((gtk_major_version > major) ||
23932 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23933 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23934 {
23935 return 0;
23936 }
23937 else
23938 {
23939 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23940 gtk_major_version, gtk_minor_version, gtk_micro_version);
23941 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23942 major, minor, micro);
23943 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23944 printf("***\n");
23945 printf("*** If you have already installed a sufficiently new version, this error\n");
23946 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23947 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23948 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23949 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23950 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23951 printf("*** so that the correct libraries are found at run-time))\n");
23952 }
23953 }
23954 return 1;
23955}
23956
23957_ACEOF
23958rm -f conftest$ac_exeext
23959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23960 (eval $ac_link) 2>&5
23961 ac_status=$?
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23966 ac_status=$?
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; }; then
23969 :
23970else
23971 echo "$as_me: program exited with status $ac_status" >&5
23972echo "$as_me: failed program was:" >&5
23973sed 's/^/| /' conftest.$ac_ext >&5
23974
23975( exit $ac_status )
23976no_gtk=yes
23977fi
ac1cb8d3 23978rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23979fi
23980 CFLAGS="$ac_save_CFLAGS"
23981 LIBS="$ac_save_LIBS"
23982 fi
23983 fi
23984 if test "x$no_gtk" = x ; then
23985 echo "$as_me:$LINENO: result: yes" >&5
23986echo "${ECHO_T}yes" >&6
23987 wx_cv_lib_gtk=1.2.3
23988 else
23989 echo "$as_me:$LINENO: result: no" >&5
23990echo "${ECHO_T}no" >&6
23991 if test "$GTK_CONFIG" = "no" ; then
23992 echo "*** The gtk-config script installed by GTK could not be found"
23993 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23994 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23995 echo "*** full path to gtk-config."
23996 else
23997 if test -f conf.gtktest ; then
23998 :
23999 else
24000 echo "*** Could not run GTK test program, checking why..."
24001 CFLAGS="$CFLAGS $GTK_CFLAGS"
24002 LIBS="$LIBS $GTK_LIBS"
24003 cat >conftest.$ac_ext <<_ACEOF
24004/* confdefs.h. */
24005_ACEOF
24006cat confdefs.h >>conftest.$ac_ext
24007cat >>conftest.$ac_ext <<_ACEOF
24008/* end confdefs.h. */
24009
24010#include <gtk/gtk.h>
24011#include <stdio.h>
24012
24013int
24014main ()
24015{
24016 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24017 ;
24018 return 0;
24019}
24020_ACEOF
24021rm -f conftest.$ac_objext conftest$ac_exeext
24022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24023 (eval $ac_link) 2>conftest.er1
a848cd7e 24024 ac_status=$?
ac1cb8d3
VS
24025 grep -v '^ *+' conftest.er1 >conftest.err
24026 rm -f conftest.er1
24027 cat conftest.err >&5
a848cd7e
SC
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } &&
89be85c2
VS
24030 { ac_try='test -z "$ac_c_werror_flag"
24031 || test ! -s conftest.err'
ac1cb8d3
VS
24032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033 (eval $ac_try) 2>&5
24034 ac_status=$?
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); }; } &&
24037 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24039 (eval $ac_try) 2>&5
24040 ac_status=$?
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); }; }; then
24043 echo "*** The test program compiled, but did not run. This usually means"
24044 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24045 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24046 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24047 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24048 echo "*** is required on your system"
24049 echo "***"
24050 echo "*** If you have an old version installed, it is best to remove it, although"
24051 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24052 echo "***"
24053 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24054 echo "*** came with the system with the command"
24055 echo "***"
24056 echo "*** rpm --erase --nodeps gtk gtk-devel"
24057else
24058 echo "$as_me: failed program was:" >&5
24059sed 's/^/| /' conftest.$ac_ext >&5
24060
24061 echo "*** The test program failed to compile or link. See the file config.log for the"
24062 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24063 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24064 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24065fi
ac1cb8d3
VS
24066rm -f conftest.err conftest.$ac_objext \
24067 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24068 CFLAGS="$ac_save_CFLAGS"
24069 LIBS="$ac_save_LIBS"
24070 fi
24071 fi
24072 GTK_CFLAGS=""
24073 GTK_LIBS=""
24074 :
24075 fi
24076
24077
24078 rm -f conf.gtktest
24079
24080 fi
24081 fi
24082
24083 if test -z "$wx_cv_lib_gtk"; then
24084 wx_cv_lib_gtk=none
24085 else
24086 wx_cv_cflags_gtk=$GTK_CFLAGS
24087 wx_cv_libs_gtk=$GTK_LIBS
24088 fi
24089
24090
24091fi
24092
24093
24094 if test "$gtk_version_cached" = 1; then
24095 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
24096echo "${ECHO_T}$wx_cv_lib_gtk" >&6
24097 fi
24098
24099 case "$wx_cv_lib_gtk" in
24100 2.0) WXGTK20=1
24101 TOOLKIT_VERSION=2
24102 ;;
24103 1.2.7) WXGTK127=1
24104 WXGTK12=1
24105 ;;
24106 1.2.3) WXGTK12=1
24107 ;;
24108 *) { { echo "$as_me:$LINENO: error:
24109Please check that gtk-config is in path, the directory
24110where GTK+ libraries are installed (returned by
24111'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24112equivalent variable and GTK+ is version 1.2.3 or above.
24113 " >&5
24114echo "$as_me: error:
24115Please check that gtk-config is in path, the directory
24116where GTK+ libraries are installed (returned by
24117'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24118equivalent variable and GTK+ is version 1.2.3 or above.
24119 " >&2;}
24120 { (exit 1); exit 1; }; }
24121 ;;
24122 esac
24123
24124 if test "$WXGTK20" = 1; then
304205f1
VS
24125 save_CFLAGS="$CFLAGS"
24126 save_LIBS="$LIBS"
24127 CFLAGS="$CFLAGS $GTK_CFLAGS"
24128 LIBS="$LIBS $GTK_LIBS"
24129
9755e73b 24130
304205f1
VS
24131for ac_func in pango_font_family_is_monospace
24132do
24133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24134echo "$as_me:$LINENO: checking for $ac_func" >&5
24135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24136if eval "test \"\${$as_ac_var+set}\" = set"; then
24137 echo $ECHO_N "(cached) $ECHO_C" >&6
24138else
24139 cat >conftest.$ac_ext <<_ACEOF
24140/* confdefs.h. */
24141_ACEOF
24142cat confdefs.h >>conftest.$ac_ext
24143cat >>conftest.$ac_ext <<_ACEOF
24144/* end confdefs.h. */
24145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24147#define $ac_func innocuous_$ac_func
24148
24149/* System header to define __stub macros and hopefully few prototypes,
24150 which can conflict with char $ac_func (); below.
24151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24152 <limits.h> exists even on freestanding compilers. */
24153
24154#ifdef __STDC__
24155# include <limits.h>
24156#else
24157# include <assert.h>
24158#endif
24159
24160#undef $ac_func
24161
24162/* Override any gcc2 internal prototype to avoid an error. */
24163#ifdef __cplusplus
24164extern "C"
24165{
24166#endif
24167/* We use char because int might match the return type of a gcc2
24168 builtin and then its argument prototype would still apply. */
24169char $ac_func ();
24170/* The GNU C library defines this for functions which it implements
24171 to always fail with ENOSYS. Some functions are actually named
24172 something starting with __ and the normal name is an alias. */
24173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24174choke me
24175#else
24176char (*f) () = $ac_func;
24177#endif
24178#ifdef __cplusplus
24179}
24180#endif
24181
24182int
24183main ()
24184{
24185return f != $ac_func;
24186 ;
24187 return 0;
24188}
24189_ACEOF
24190rm -f conftest.$ac_objext conftest$ac_exeext
24191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24192 (eval $ac_link) 2>conftest.er1
24193 ac_status=$?
24194 grep -v '^ *+' conftest.er1 >conftest.err
24195 rm -f conftest.er1
24196 cat conftest.err >&5
24197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); } &&
89be85c2
VS
24199 { ac_try='test -z "$ac_c_werror_flag"
24200 || test ! -s conftest.err'
304205f1
VS
24201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); }; } &&
24206 { ac_try='test -s conftest$ac_exeext'
24207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24208 (eval $ac_try) 2>&5
24209 ac_status=$?
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); }; }; then
24212 eval "$as_ac_var=yes"
24213else
24214 echo "$as_me: failed program was:" >&5
24215sed 's/^/| /' conftest.$ac_ext >&5
24216
24217eval "$as_ac_var=no"
24218fi
24219rm -f conftest.err conftest.$ac_objext \
24220 conftest$ac_exeext conftest.$ac_ext
24221fi
24222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24224if test `eval echo '${'$as_ac_var'}'` = yes; then
24225 cat >>confdefs.h <<_ACEOF
24226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24227_ACEOF
24228
24229fi
24230done
24231
9755e73b
VS
24232
24233 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24234echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24235 cat >conftest.$ac_ext <<_ACEOF
24236/* confdefs.h. */
24237_ACEOF
24238cat confdefs.h >>conftest.$ac_ext
24239cat >>conftest.$ac_ext <<_ACEOF
24240/* end confdefs.h. */
24241
24242 #include <gtk/gtk.h>
24243
24244int
24245main ()
24246{
24247
24248 #if !GTK_CHECK_VERSION(2,4,0)
24249 #error "Not GTK+ 2.4"
24250 #endif
24251
24252 ;
24253 return 0;
24254}
24255_ACEOF
24256rm -f conftest.$ac_objext
24257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24258 (eval $ac_compile) 2>conftest.er1
24259 ac_status=$?
24260 grep -v '^ *+' conftest.er1 >conftest.err
24261 rm -f conftest.er1
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } &&
89be85c2
VS
24265 { ac_try='test -z "$ac_c_werror_flag"
24266 || test ! -s conftest.err'
9755e73b
VS
24267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268 (eval $ac_try) 2>&5
24269 ac_status=$?
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); }; } &&
24272 { ac_try='test -s conftest.$ac_objext'
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; }; then
24278
24279 cat >>confdefs.h <<\_ACEOF
24280#define __WXGTK24__ 1
24281_ACEOF
24282
24283 echo "$as_me:$LINENO: result: yes" >&5
24284echo "${ECHO_T}yes" >&6
24285
24286else
24287 echo "$as_me: failed program was:" >&5
24288sed 's/^/| /' conftest.$ac_ext >&5
24289
24290
24291 echo "$as_me:$LINENO: result: no" >&5
24292echo "${ECHO_T}no" >&6
24293
24294fi
24295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24296
304205f1
VS
24297 CFLAGS="$save_CFLAGS"
24298 LIBS="$save_LIBS"
a848cd7e
SC
24299 else
24300 if test "$wxUSE_UNICODE" = "yes"; then
24301 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24302echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24303 wxUSE_UNICODE=no
24304 fi
24305 fi
24306
24307 if test "$USE_DARWIN" != 1; then
24308
24309for ac_func in poll
24310do
24311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24312echo "$as_me:$LINENO: checking for $ac_func" >&5
24313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24314if eval "test \"\${$as_ac_var+set}\" = set"; then
24315 echo $ECHO_N "(cached) $ECHO_C" >&6
24316else
24317 cat >conftest.$ac_ext <<_ACEOF
24318/* confdefs.h. */
24319_ACEOF
24320cat confdefs.h >>conftest.$ac_ext
24321cat >>conftest.$ac_ext <<_ACEOF
24322/* end confdefs.h. */
ac1cb8d3
VS
24323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24325#define $ac_func innocuous_$ac_func
24326
a848cd7e
SC
24327/* System header to define __stub macros and hopefully few prototypes,
24328 which can conflict with char $ac_func (); below.
24329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24330 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24331
a848cd7e
SC
24332#ifdef __STDC__
24333# include <limits.h>
24334#else
24335# include <assert.h>
24336#endif
ac1cb8d3
VS
24337
24338#undef $ac_func
24339
a848cd7e
SC
24340/* Override any gcc2 internal prototype to avoid an error. */
24341#ifdef __cplusplus
24342extern "C"
24343{
24344#endif
24345/* We use char because int might match the return type of a gcc2
24346 builtin and then its argument prototype would still apply. */
24347char $ac_func ();
24348/* The GNU C library defines this for functions which it implements
24349 to always fail with ENOSYS. Some functions are actually named
24350 something starting with __ and the normal name is an alias. */
24351#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24352choke me
24353#else
24354char (*f) () = $ac_func;
24355#endif
24356#ifdef __cplusplus
24357}
24358#endif
24359
24360int
24361main ()
24362{
24363return f != $ac_func;
24364 ;
24365 return 0;
24366}
24367_ACEOF
24368rm -f conftest.$ac_objext conftest$ac_exeext
24369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24370 (eval $ac_link) 2>conftest.er1
a848cd7e 24371 ac_status=$?
ac1cb8d3
VS
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
a848cd7e
SC
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } &&
89be85c2
VS
24377 { ac_try='test -z "$ac_c_werror_flag"
24378 || test ! -s conftest.err'
ac1cb8d3
VS
24379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24380 (eval $ac_try) 2>&5
24381 ac_status=$?
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); }; } &&
24384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24386 (eval $ac_try) 2>&5
24387 ac_status=$?
24388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389 (exit $ac_status); }; }; then
24390 eval "$as_ac_var=yes"
24391else
24392 echo "$as_me: failed program was:" >&5
24393sed 's/^/| /' conftest.$ac_ext >&5
24394
24395eval "$as_ac_var=no"
24396fi
ac1cb8d3
VS
24397rm -f conftest.err conftest.$ac_objext \
24398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24399fi
24400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24402if test `eval echo '${'$as_ac_var'}'` = yes; then
24403 cat >>confdefs.h <<_ACEOF
24404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24405_ACEOF
24406
24407fi
24408done
24409
24410 fi
24411
24412 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24413 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24414
24415 AFMINSTALL=afminstall
24416 TOOLKIT=GTK
24417 GUIDIST=GTK_DIST
24418
24419 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24420echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24421if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24422 echo $ECHO_N "(cached) $ECHO_C" >&6
24423else
24424 ac_check_lib_save_LIBS=$LIBS
24425LIBS="-lgdk $LIBS"
24426cat >conftest.$ac_ext <<_ACEOF
24427/* confdefs.h. */
24428_ACEOF
24429cat confdefs.h >>conftest.$ac_ext
24430cat >>conftest.$ac_ext <<_ACEOF
24431/* end confdefs.h. */
24432
24433/* Override any gcc2 internal prototype to avoid an error. */
24434#ifdef __cplusplus
24435extern "C"
24436#endif
24437/* We use char because int might match the return type of a gcc2
24438 builtin and then its argument prototype would still apply. */
24439char gdk_im_open ();
24440int
24441main ()
24442{
24443gdk_im_open ();
24444 ;
24445 return 0;
24446}
24447_ACEOF
24448rm -f conftest.$ac_objext conftest$ac_exeext
24449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24450 (eval $ac_link) 2>conftest.er1
a848cd7e 24451 ac_status=$?
ac1cb8d3
VS
24452 grep -v '^ *+' conftest.er1 >conftest.err
24453 rm -f conftest.er1
24454 cat conftest.err >&5
a848cd7e
SC
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); } &&
89be85c2
VS
24457 { ac_try='test -z "$ac_c_werror_flag"
24458 || test ! -s conftest.err'
ac1cb8d3
VS
24459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460 (eval $ac_try) 2>&5
24461 ac_status=$?
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); }; } &&
24464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; }; then
24470 ac_cv_lib_gdk_gdk_im_open=yes
24471else
24472 echo "$as_me: failed program was:" >&5
24473sed 's/^/| /' conftest.$ac_ext >&5
24474
24475ac_cv_lib_gdk_gdk_im_open=no
24476fi
ac1cb8d3
VS
24477rm -f conftest.err conftest.$ac_objext \
24478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24479LIBS=$ac_check_lib_save_LIBS
24480fi
24481echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24482echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24483if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24484 cat >>confdefs.h <<\_ACEOF
24485#define HAVE_XIM 1
24486_ACEOF
24487
24488fi
24489
24490
24491
24492 if test "$wxUSE_GPE" = "yes"; then
24493 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24494echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24495
24496ac_find_libraries=
24497for ac_dir in $SEARCH_LIB /usr/lib;
24498 do
24499 for ac_extension in a so sl dylib; do
24500 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24501 ac_find_libraries=$ac_dir
24502 break 2
24503 fi
24504 done
24505 done
24506
24507 if test "$ac_find_libraries" != "" ; then
24508
24509 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24510 result=$?
24511 if test $result = 0; then
24512 ac_path_to_link=""
24513 else
24514 ac_path_to_link=" -L$ac_find_libraries"
24515 fi
24516
24517 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24518 WXGPE=1
24519 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24520echo "${ECHO_T}found at $ac_find_libraries" >&6
24521 else
24522 echo "$as_me:$LINENO: result: not found" >&5
24523echo "${ECHO_T}not found" >&6
24524 fi
24525
24526 fi
24527 fi
24528
24529 if test "$wxUSE_MGL" = 1; then
24530 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24531echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24532 if test "x$MGL_ROOT" = x ; then
24533 echo "$as_me:$LINENO: result: not found" >&5
24534echo "${ECHO_T}not found" >&6
24535 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24536echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24537 { (exit 1); exit 1; }; }
24538 else
24539 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24540echo "${ECHO_T}$MGL_ROOT" >&6
24541 fi
24542
24543 echo "$as_me:$LINENO: checking for libmgl location" >&5
24544echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24545 case "${host}" in
24546 *-*-linux* )
24547 if test "x$wxUSE_SHARED" = xyes ; then
24548 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24549 else
24550 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24551 fi
24552 ;;
24553 *-pc-msdosdjgpp )
24554 mgl_os_candidates="dos32/dj2"
24555 ;;
24556 *)
24557 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24558echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24559 { (exit 1); exit 1; }; }
24560 esac
24561
24562 mgl_lib_type=""
24563 mgl_os=""
24564
24565 for mgl_os_i in $mgl_os_candidates ; do
24566 if test "x$mgl_os" = x ; then
24567 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24568 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24569 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24570 mgl_lib_type=debug
24571 mgl_os=$mgl_os_i
24572 fi
24573 fi
24574 if test "x$mgl_lib_type" = x ; then
24575 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24576 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24577 mgl_lib_type=release
24578 mgl_os=$mgl_os_i
24579 fi
24580 fi
24581 fi
24582 done
24583
24584 if test "x$mgl_os" = x ; then
24585 echo "$as_me:$LINENO: result: not found" >&5
24586echo "${ECHO_T}not found" >&6
24587 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24588echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24589 { (exit 1); exit 1; }; }
24590 fi
24591 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24592echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24593
24594 wxUSE_UNIVERSAL="yes"
24595
24596 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24597 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24598
24599 AFMINSTALL=afminstall
24600 TOOLKIT=MGL
24601 GUIDIST=MGL_DIST
24602 fi
24603
24604 if test "$wxUSE_MICROWIN" = 1; then
24605 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24606echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24607 if test "x$MICROWINDOWS" = x ; then
24608 echo "$as_me:$LINENO: result: not found" >&5
24609echo "${ECHO_T}not found" >&6
24610 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24611echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24612 { (exit 1); exit 1; }; }
24613 else
24614 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24615echo "${ECHO_T}$MICROWINDOWS" >&6
24616 fi
24617
24618 if test -f $MICROWINDOWS/lib/libmwin.a; then
24619 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24620echo "${ECHO_T}MicroWindows' libraries found." >&6
24621 else
24622 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24623echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24624 { (exit 1); exit 1; }; }
24625 fi
24626
24627 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24628 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24629
24630 wxUSE_UNIVERSAL="yes"
24631
24632 AFMINSTALL=afminstall
24633 TOOLKIT=MICROWIN
24634 GUIDIST=MICROWIN_DIST
24635
24636 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24637 fi
24638
74b84332 24639 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
89be85c2 24640 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24641echo $ECHO_N "checking for X... $ECHO_C" >&6
24642
24643
24644# Check whether --with-x or --without-x was given.
24645if test "${with_x+set}" = set; then
24646 withval="$with_x"
24647
24648fi;
24649# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24650if test "x$with_x" = xno; then
24651 # The user explicitly disabled X.
24652 have_x=disabled
24653else
24654 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24655 # Both variables are already set.
24656 have_x=yes
24657 else
24658 if test "${ac_cv_have_x+set}" = set; then
24659 echo $ECHO_N "(cached) $ECHO_C" >&6
24660else
24661 # One or both of the vars are not set, and there is no cached value.
24662ac_x_includes=no ac_x_libraries=no
24663rm -fr conftest.dir
24664if mkdir conftest.dir; then
24665 cd conftest.dir
24666 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24667 cat >Imakefile <<'_ACEOF'
24668acfindx:
24669 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24670_ACEOF
24671 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24672 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24673 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24674 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24675 for ac_extension in a so sl; do
24676 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24677 test -f $ac_im_libdir/libX11.$ac_extension; then
24678 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24679 fi
24680 done
24681 # Screen out bogus values from the imake configuration. They are
24682 # bogus both because they are the default anyway, and because
24683 # using them would break gcc on systems where it needs fixed includes.
24684 case $ac_im_incroot in
24685 /usr/include) ;;
24686 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24687 esac
24688 case $ac_im_usrlibdir in
24689 /usr/lib | /lib) ;;
24690 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24691 esac
24692 fi
24693 cd ..
24694 rm -fr conftest.dir
24695fi
24696
24697# Standard set of common directories for X headers.
24698# Check X11 before X11Rn because it is often a symlink to the current release.
24699ac_x_header_dirs='
24700/usr/X11/include
24701/usr/X11R6/include
24702/usr/X11R5/include
24703/usr/X11R4/include
24704
24705/usr/include/X11
24706/usr/include/X11R6
24707/usr/include/X11R5
24708/usr/include/X11R4
24709
24710/usr/local/X11/include
24711/usr/local/X11R6/include
24712/usr/local/X11R5/include
24713/usr/local/X11R4/include
24714
24715/usr/local/include/X11
24716/usr/local/include/X11R6
24717/usr/local/include/X11R5
24718/usr/local/include/X11R4
24719
24720/usr/X386/include
24721/usr/x386/include
24722/usr/XFree86/include/X11
24723
24724/usr/include
24725/usr/local/include
24726/usr/unsupported/include
24727/usr/athena/include
24728/usr/local/x11r5/include
24729/usr/lpp/Xamples/include
24730
24731/usr/openwin/include
24732/usr/openwin/share/include'
24733
24734if test "$ac_x_includes" = no; then
89be85c2 24735 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24736 # First, try using that file with no special directory specified.
24737 cat >conftest.$ac_ext <<_ACEOF
24738/* confdefs.h. */
24739_ACEOF
24740cat confdefs.h >>conftest.$ac_ext
24741cat >>conftest.$ac_ext <<_ACEOF
24742/* end confdefs.h. */
24743#include <X11/Intrinsic.h>
24744_ACEOF
24745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24747 ac_status=$?
24748 grep -v '^ *+' conftest.er1 >conftest.err
24749 rm -f conftest.er1
24750 cat conftest.err >&5
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); } >/dev/null; then
24753 if test -s conftest.err; then
24754 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24756 else
24757 ac_cpp_err=
24758 fi
24759else
24760 ac_cpp_err=yes
24761fi
24762if test -z "$ac_cpp_err"; then
24763 # We can compile using X headers with no special include directory.
24764ac_x_includes=
24765else
24766 echo "$as_me: failed program was:" >&5
24767sed 's/^/| /' conftest.$ac_ext >&5
24768
24769 for ac_dir in $ac_x_header_dirs; do
24770 if test -r "$ac_dir/X11/Intrinsic.h"; then
24771 ac_x_includes=$ac_dir
24772 break
24773 fi
24774done
24775fi
24776rm -f conftest.err conftest.$ac_ext
24777fi # $ac_x_includes = no
24778
24779if test "$ac_x_libraries" = no; then
24780 # Check for the libraries.
24781 # See if we find them without any special options.
24782 # Don't add to $LIBS permanently.
24783 ac_save_LIBS=$LIBS
24784 LIBS="-lXt $LIBS"
24785 cat >conftest.$ac_ext <<_ACEOF
24786/* confdefs.h. */
24787_ACEOF
24788cat confdefs.h >>conftest.$ac_ext
24789cat >>conftest.$ac_ext <<_ACEOF
24790/* end confdefs.h. */
24791#include <X11/Intrinsic.h>
24792int
24793main ()
24794{
24795XtMalloc (0)
24796 ;
24797 return 0;
24798}
24799_ACEOF
24800rm -f conftest.$ac_objext conftest$ac_exeext
24801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24802 (eval $ac_link) 2>conftest.er1
a848cd7e 24803 ac_status=$?
ac1cb8d3
VS
24804 grep -v '^ *+' conftest.er1 >conftest.err
24805 rm -f conftest.er1
24806 cat conftest.err >&5
a848cd7e
SC
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } &&
89be85c2
VS
24809 { ac_try='test -z "$ac_c_werror_flag"
24810 || test ! -s conftest.err'
ac1cb8d3
VS
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24813 ac_status=$?
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; } &&
24816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; }; then
24822 LIBS=$ac_save_LIBS
24823# We can link X programs with no special library path.
24824ac_x_libraries=
24825else
24826 echo "$as_me: failed program was:" >&5
24827sed 's/^/| /' conftest.$ac_ext >&5
24828
24829LIBS=$ac_save_LIBS
24830for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24831do
24832 # Don't even attempt the hair of trying to link an X program!
24833 for ac_extension in a so sl; do
24834 if test -r $ac_dir/libXt.$ac_extension; then
24835 ac_x_libraries=$ac_dir
24836 break 2
24837 fi
24838 done
24839done
24840fi
ac1cb8d3
VS
24841rm -f conftest.err conftest.$ac_objext \
24842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24843fi # $ac_x_libraries = no
24844
24845if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24846 # Didn't find X anywhere. Cache the known absence of X.
24847 ac_cv_have_x="have_x=no"
24848else
24849 # Record where we found X for the cache.
24850 ac_cv_have_x="have_x=yes \
ac1cb8d3 24851 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24852fi
24853fi
24854
24855 fi
24856 eval "$ac_cv_have_x"
24857fi # $with_x != no
24858
24859if test "$have_x" != yes; then
24860 echo "$as_me:$LINENO: result: $have_x" >&5
24861echo "${ECHO_T}$have_x" >&6
24862 no_x=yes
24863else
24864 # If each of the values was on the command line, it overrides each guess.
24865 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24866 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24867 # Update the cache value to reflect the command line values.
24868 ac_cv_have_x="have_x=yes \
24869 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
89be85c2
VS
24870 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24871echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24872fi
24873
24874if test "$no_x" = yes; then
24875 # Not all programs may use this symbol, but it does not hurt to define it.
24876
24877cat >>confdefs.h <<\_ACEOF
24878#define X_DISPLAY_MISSING 1
24879_ACEOF
24880
24881 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24882else
24883 if test -n "$x_includes"; then
24884 X_CFLAGS="$X_CFLAGS -I$x_includes"
24885 fi
24886
24887 # It would also be nice to do this for all -L options, not just this one.
24888 if test -n "$x_libraries"; then
24889 X_LIBS="$X_LIBS -L$x_libraries"
24890 # For Solaris; some versions of Sun CC require a space after -R and
24891 # others require no space. Words are not sufficient . . . .
24892 case `(uname -sr) 2>/dev/null` in
24893 "SunOS 5"*)
24894 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24895echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24896 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24897 cat >conftest.$ac_ext <<_ACEOF
24898/* confdefs.h. */
24899_ACEOF
24900cat confdefs.h >>conftest.$ac_ext
24901cat >>conftest.$ac_ext <<_ACEOF
24902/* end confdefs.h. */
24903
24904int
24905main ()
24906{
24907
24908 ;
24909 return 0;
24910}
24911_ACEOF
24912rm -f conftest.$ac_objext conftest$ac_exeext
24913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24914 (eval $ac_link) 2>conftest.er1
a848cd7e 24915 ac_status=$?
ac1cb8d3
VS
24916 grep -v '^ *+' conftest.er1 >conftest.err
24917 rm -f conftest.er1
24918 cat conftest.err >&5
a848cd7e
SC
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); } &&
89be85c2
VS
24921 { ac_try='test -z "$ac_c_werror_flag"
24922 || test ! -s conftest.err'
ac1cb8d3
VS
24923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924 (eval $ac_try) 2>&5
24925 ac_status=$?
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; } &&
24928 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; }; then
24934 ac_R_nospace=yes
24935else
24936 echo "$as_me: failed program was:" >&5
24937sed 's/^/| /' conftest.$ac_ext >&5
24938
24939ac_R_nospace=no
24940fi
ac1cb8d3
VS
24941rm -f conftest.err conftest.$ac_objext \
24942 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24943 if test $ac_R_nospace = yes; then
24944 echo "$as_me:$LINENO: result: no" >&5
24945echo "${ECHO_T}no" >&6
24946 X_LIBS="$X_LIBS -R$x_libraries"
24947 else
24948 LIBS="$ac_xsave_LIBS -R $x_libraries"
24949 cat >conftest.$ac_ext <<_ACEOF
24950/* confdefs.h. */
24951_ACEOF
24952cat confdefs.h >>conftest.$ac_ext
24953cat >>conftest.$ac_ext <<_ACEOF
24954/* end confdefs.h. */
24955
24956int
24957main ()
24958{
24959
24960 ;
24961 return 0;
24962}
24963_ACEOF
24964rm -f conftest.$ac_objext conftest$ac_exeext
24965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24966 (eval $ac_link) 2>conftest.er1
a848cd7e 24967 ac_status=$?
ac1cb8d3
VS
24968 grep -v '^ *+' conftest.er1 >conftest.err
24969 rm -f conftest.er1
24970 cat conftest.err >&5
a848cd7e
SC
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); } &&
89be85c2
VS
24973 { ac_try='test -z "$ac_c_werror_flag"
24974 || test ! -s conftest.err'
ac1cb8d3
VS
24975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; } &&
24980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24982 (eval $ac_try) 2>&5
24983 ac_status=$?
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; }; then
24986 ac_R_space=yes
24987else
24988 echo "$as_me: failed program was:" >&5
24989sed 's/^/| /' conftest.$ac_ext >&5
24990
24991ac_R_space=no
24992fi
ac1cb8d3
VS
24993rm -f conftest.err conftest.$ac_objext \
24994 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24995 if test $ac_R_space = yes; then
24996 echo "$as_me:$LINENO: result: yes" >&5
24997echo "${ECHO_T}yes" >&6
24998 X_LIBS="$X_LIBS -R $x_libraries"
24999 else
25000 echo "$as_me:$LINENO: result: neither works" >&5
25001echo "${ECHO_T}neither works" >&6
25002 fi
25003 fi
25004 LIBS=$ac_xsave_LIBS
25005 esac
25006 fi
25007
25008 # Check for system-dependent libraries X programs must link with.
25009 # Do this before checking for the system-independent R6 libraries
25010 # (-lICE), since we may need -lsocket or whatever for X linking.
25011
25012 if test "$ISC" = yes; then
25013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25014 else
25015 # Martyn Johnson says this is needed for Ultrix, if the X
25016 # libraries were built with DECnet support. And Karl Berry says
25017 # the Alpha needs dnet_stub (dnet does not exist).
25018 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25019 cat >conftest.$ac_ext <<_ACEOF
25020/* confdefs.h. */
25021_ACEOF
25022cat confdefs.h >>conftest.$ac_ext
25023cat >>conftest.$ac_ext <<_ACEOF
25024/* end confdefs.h. */
25025
25026/* Override any gcc2 internal prototype to avoid an error. */
25027#ifdef __cplusplus
25028extern "C"
25029#endif
25030/* We use char because int might match the return type of a gcc2
25031 builtin and then its argument prototype would still apply. */
25032char XOpenDisplay ();
25033int
25034main ()
25035{
25036XOpenDisplay ();
25037 ;
25038 return 0;
25039}
25040_ACEOF
25041rm -f conftest.$ac_objext conftest$ac_exeext
25042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25043 (eval $ac_link) 2>conftest.er1
a848cd7e 25044 ac_status=$?
ac1cb8d3
VS
25045 grep -v '^ *+' conftest.er1 >conftest.err
25046 rm -f conftest.er1
25047 cat conftest.err >&5
a848cd7e
SC
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } &&
89be85c2
VS
25050 { ac_try='test -z "$ac_c_werror_flag"
25051 || test ! -s conftest.err'
ac1cb8d3
VS
25052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25053 (eval $ac_try) 2>&5
25054 ac_status=$?
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); }; } &&
25057 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059 (eval $ac_try) 2>&5
25060 ac_status=$?
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); }; }; then
25063 :
25064else
25065 echo "$as_me: failed program was:" >&5
25066sed 's/^/| /' conftest.$ac_ext >&5
25067
25068echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25069echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25070if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25071 echo $ECHO_N "(cached) $ECHO_C" >&6
25072else
25073 ac_check_lib_save_LIBS=$LIBS
25074LIBS="-ldnet $LIBS"
25075cat >conftest.$ac_ext <<_ACEOF
25076/* confdefs.h. */
25077_ACEOF
25078cat confdefs.h >>conftest.$ac_ext
25079cat >>conftest.$ac_ext <<_ACEOF
25080/* end confdefs.h. */
25081
25082/* Override any gcc2 internal prototype to avoid an error. */
25083#ifdef __cplusplus
25084extern "C"
25085#endif
25086/* We use char because int might match the return type of a gcc2
25087 builtin and then its argument prototype would still apply. */
25088char dnet_ntoa ();
25089int
25090main ()
25091{
25092dnet_ntoa ();
25093 ;
25094 return 0;
25095}
25096_ACEOF
25097rm -f conftest.$ac_objext conftest$ac_exeext
25098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25099 (eval $ac_link) 2>conftest.er1
a848cd7e 25100 ac_status=$?
ac1cb8d3
VS
25101 grep -v '^ *+' conftest.er1 >conftest.err
25102 rm -f conftest.er1
25103 cat conftest.err >&5
a848cd7e
SC
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } &&
89be85c2
VS
25106 { ac_try='test -z "$ac_c_werror_flag"
25107 || test ! -s conftest.err'
ac1cb8d3
VS
25108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25109 (eval $ac_try) 2>&5
25110 ac_status=$?
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; } &&
25113 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25116 ac_status=$?
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; }; then
25119 ac_cv_lib_dnet_dnet_ntoa=yes
25120else
25121 echo "$as_me: failed program was:" >&5
25122sed 's/^/| /' conftest.$ac_ext >&5
25123
25124ac_cv_lib_dnet_dnet_ntoa=no
25125fi
ac1cb8d3
VS
25126rm -f conftest.err conftest.$ac_objext \
25127 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25128LIBS=$ac_check_lib_save_LIBS
25129fi
25130echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25131echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25132if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25133 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25134fi
25135
25136 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25137 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25138echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25139if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25140 echo $ECHO_N "(cached) $ECHO_C" >&6
25141else
25142 ac_check_lib_save_LIBS=$LIBS
25143LIBS="-ldnet_stub $LIBS"
25144cat >conftest.$ac_ext <<_ACEOF
25145/* confdefs.h. */
25146_ACEOF
25147cat confdefs.h >>conftest.$ac_ext
25148cat >>conftest.$ac_ext <<_ACEOF
25149/* end confdefs.h. */
25150
25151/* Override any gcc2 internal prototype to avoid an error. */
25152#ifdef __cplusplus
25153extern "C"
25154#endif
25155/* We use char because int might match the return type of a gcc2
25156 builtin and then its argument prototype would still apply. */
25157char dnet_ntoa ();
25158int
25159main ()
25160{
25161dnet_ntoa ();
25162 ;
25163 return 0;
25164}
25165_ACEOF
25166rm -f conftest.$ac_objext conftest$ac_exeext
25167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25168 (eval $ac_link) 2>conftest.er1
a848cd7e 25169 ac_status=$?
ac1cb8d3
VS
25170 grep -v '^ *+' conftest.er1 >conftest.err
25171 rm -f conftest.er1
25172 cat conftest.err >&5
a848cd7e
SC
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } &&
89be85c2
VS
25175 { ac_try='test -z "$ac_c_werror_flag"
25176 || test ! -s conftest.err'
ac1cb8d3
VS
25177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); }; } &&
25182 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184 (eval $ac_try) 2>&5
25185 ac_status=$?
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); }; }; then
25188 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25189else
25190 echo "$as_me: failed program was:" >&5
25191sed 's/^/| /' conftest.$ac_ext >&5
25192
25193ac_cv_lib_dnet_stub_dnet_ntoa=no
25194fi
ac1cb8d3
VS
25195rm -f conftest.err conftest.$ac_objext \
25196 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25197LIBS=$ac_check_lib_save_LIBS
25198fi
25199echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25200echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25201if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25202 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25203fi
25204
25205 fi
25206fi
ac1cb8d3
VS
25207rm -f conftest.err conftest.$ac_objext \
25208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25209 LIBS="$ac_xsave_LIBS"
25210
25211 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25212 # to get the SysV transport functions.
25213 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25214 # needs -lnsl.
25215 # The nsl library prevents programs from opening the X display
25216 # on Irix 5.2, according to T.E. Dickey.
25217 # The functions gethostbyname, getservbyname, and inet_addr are
25218 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25219 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25220echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25221if test "${ac_cv_func_gethostbyname+set}" = set; then
25222 echo $ECHO_N "(cached) $ECHO_C" >&6
25223else
25224 cat >conftest.$ac_ext <<_ACEOF
25225/* confdefs.h. */
25226_ACEOF
25227cat confdefs.h >>conftest.$ac_ext
25228cat >>conftest.$ac_ext <<_ACEOF
25229/* end confdefs.h. */
ac1cb8d3
VS
25230/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25232#define gethostbyname innocuous_gethostbyname
25233
a848cd7e
SC
25234/* System header to define __stub macros and hopefully few prototypes,
25235 which can conflict with char gethostbyname (); below.
25236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25237 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25238
a848cd7e
SC
25239#ifdef __STDC__
25240# include <limits.h>
25241#else
25242# include <assert.h>
25243#endif
ac1cb8d3
VS
25244
25245#undef gethostbyname
25246
a848cd7e
SC
25247/* Override any gcc2 internal prototype to avoid an error. */
25248#ifdef __cplusplus
25249extern "C"
25250{
25251#endif
25252/* We use char because int might match the return type of a gcc2
25253 builtin and then its argument prototype would still apply. */
25254char gethostbyname ();
25255/* The GNU C library defines this for functions which it implements
25256 to always fail with ENOSYS. Some functions are actually named
25257 something starting with __ and the normal name is an alias. */
25258#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25259choke me
25260#else
25261char (*f) () = gethostbyname;
25262#endif
25263#ifdef __cplusplus
25264}
25265#endif
25266
25267int
25268main ()
25269{
25270return f != gethostbyname;
25271 ;
25272 return 0;
25273}
25274_ACEOF
25275rm -f conftest.$ac_objext conftest$ac_exeext
25276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25277 (eval $ac_link) 2>conftest.er1
a848cd7e 25278 ac_status=$?
ac1cb8d3
VS
25279 grep -v '^ *+' conftest.er1 >conftest.err
25280 rm -f conftest.er1
25281 cat conftest.err >&5
a848cd7e
SC
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); } &&
89be85c2
VS
25284 { ac_try='test -z "$ac_c_werror_flag"
25285 || test ! -s conftest.err'
ac1cb8d3
VS
25286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); }; } &&
25291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); }; }; then
25297 ac_cv_func_gethostbyname=yes
25298else
25299 echo "$as_me: failed program was:" >&5
25300sed 's/^/| /' conftest.$ac_ext >&5
25301
25302ac_cv_func_gethostbyname=no
25303fi
ac1cb8d3
VS
25304rm -f conftest.err conftest.$ac_objext \
25305 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25306fi
25307echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25308echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25309
25310 if test $ac_cv_func_gethostbyname = no; then
25311 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25312echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25313if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25314 echo $ECHO_N "(cached) $ECHO_C" >&6
25315else
25316 ac_check_lib_save_LIBS=$LIBS
25317LIBS="-lnsl $LIBS"
25318cat >conftest.$ac_ext <<_ACEOF
25319/* confdefs.h. */
25320_ACEOF
25321cat confdefs.h >>conftest.$ac_ext
25322cat >>conftest.$ac_ext <<_ACEOF
25323/* end confdefs.h. */
25324
25325/* Override any gcc2 internal prototype to avoid an error. */
25326#ifdef __cplusplus
25327extern "C"
25328#endif
25329/* We use char because int might match the return type of a gcc2
25330 builtin and then its argument prototype would still apply. */
25331char gethostbyname ();
25332int
25333main ()
25334{
25335gethostbyname ();
25336 ;
25337 return 0;
25338}
25339_ACEOF
25340rm -f conftest.$ac_objext conftest$ac_exeext
25341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25342 (eval $ac_link) 2>conftest.er1
25343 ac_status=$?
25344 grep -v '^ *+' conftest.er1 >conftest.err
25345 rm -f conftest.er1
25346 cat conftest.err >&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } &&
89be85c2
VS
25349 { ac_try='test -z "$ac_c_werror_flag"
25350 || test ! -s conftest.err'
ac1cb8d3
VS
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; } &&
25356 { ac_try='test -s conftest$ac_exeext'
25357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25359 ac_status=$?
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_cv_lib_nsl_gethostbyname=yes
25363else
25364 echo "$as_me: failed program was:" >&5
25365sed 's/^/| /' conftest.$ac_ext >&5
25366
25367ac_cv_lib_nsl_gethostbyname=no
25368fi
25369rm -f conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
25371LIBS=$ac_check_lib_save_LIBS
25372fi
25373echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25374echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25375if test $ac_cv_lib_nsl_gethostbyname = yes; then
25376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25377fi
25378
25379 if test $ac_cv_lib_nsl_gethostbyname = no; then
25380 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25381echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25382if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25383 echo $ECHO_N "(cached) $ECHO_C" >&6
25384else
25385 ac_check_lib_save_LIBS=$LIBS
25386LIBS="-lbsd $LIBS"
25387cat >conftest.$ac_ext <<_ACEOF
25388/* confdefs.h. */
25389_ACEOF
25390cat confdefs.h >>conftest.$ac_ext
25391cat >>conftest.$ac_ext <<_ACEOF
25392/* end confdefs.h. */
25393
25394/* Override any gcc2 internal prototype to avoid an error. */
25395#ifdef __cplusplus
25396extern "C"
25397#endif
25398/* We use char because int might match the return type of a gcc2
25399 builtin and then its argument prototype would still apply. */
25400char gethostbyname ();
25401int
25402main ()
25403{
25404gethostbyname ();
25405 ;
25406 return 0;
25407}
25408_ACEOF
25409rm -f conftest.$ac_objext conftest$ac_exeext
25410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25411 (eval $ac_link) 2>conftest.er1
a848cd7e 25412 ac_status=$?
ac1cb8d3
VS
25413 grep -v '^ *+' conftest.er1 >conftest.err
25414 rm -f conftest.er1
25415 cat conftest.err >&5
a848cd7e
SC
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); } &&
89be85c2
VS
25418 { ac_try='test -z "$ac_c_werror_flag"
25419 || test ! -s conftest.err'
a848cd7e
SC
25420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421 (eval $ac_try) 2>&5
25422 ac_status=$?
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25424 (exit $ac_status); }; } &&
25425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25427 (eval $ac_try) 2>&5
25428 ac_status=$?
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); }; }; then
25431 ac_cv_lib_bsd_gethostbyname=yes
25432else
25433 echo "$as_me: failed program was:" >&5
25434sed 's/^/| /' conftest.$ac_ext >&5
25435
25436ac_cv_lib_bsd_gethostbyname=no
25437fi
ac1cb8d3
VS
25438rm -f conftest.err conftest.$ac_objext \
25439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25440LIBS=$ac_check_lib_save_LIBS
25441fi
25442echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25443echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25444if test $ac_cv_lib_bsd_gethostbyname = yes; then
25445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25446fi
25447
25448 fi
25449 fi
25450
25451 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25452 # socket/setsockopt and other routines are undefined under SCO ODT
25453 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25454 # on later versions), says Simon Leinen: it contains gethostby*
25455 # variants that don't use the name server (or something). -lsocket
25456 # must be given before -lnsl if both are needed. We assume that
25457 # if connect needs -lnsl, so does gethostbyname.
25458 echo "$as_me:$LINENO: checking for connect" >&5
25459echo $ECHO_N "checking for connect... $ECHO_C" >&6
25460if test "${ac_cv_func_connect+set}" = set; then
25461 echo $ECHO_N "(cached) $ECHO_C" >&6
25462else
25463 cat >conftest.$ac_ext <<_ACEOF
25464/* confdefs.h. */
25465_ACEOF
25466cat confdefs.h >>conftest.$ac_ext
25467cat >>conftest.$ac_ext <<_ACEOF
25468/* end confdefs.h. */
ac1cb8d3
VS
25469/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25471#define connect innocuous_connect
25472
a848cd7e
SC
25473/* System header to define __stub macros and hopefully few prototypes,
25474 which can conflict with char connect (); below.
25475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25476 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25477
a848cd7e
SC
25478#ifdef __STDC__
25479# include <limits.h>
25480#else
25481# include <assert.h>
25482#endif
ac1cb8d3
VS
25483
25484#undef connect
25485
a848cd7e
SC
25486/* Override any gcc2 internal prototype to avoid an error. */
25487#ifdef __cplusplus
25488extern "C"
25489{
25490#endif
25491/* We use char because int might match the return type of a gcc2
25492 builtin and then its argument prototype would still apply. */
25493char connect ();
25494/* The GNU C library defines this for functions which it implements
25495 to always fail with ENOSYS. Some functions are actually named
25496 something starting with __ and the normal name is an alias. */
25497#if defined (__stub_connect) || defined (__stub___connect)
25498choke me
25499#else
25500char (*f) () = connect;
25501#endif
25502#ifdef __cplusplus
25503}
25504#endif
25505
25506int
25507main ()
25508{
25509return f != connect;
25510 ;
25511 return 0;
25512}
25513_ACEOF
25514rm -f conftest.$ac_objext conftest$ac_exeext
25515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25516 (eval $ac_link) 2>conftest.er1
a848cd7e 25517 ac_status=$?
ac1cb8d3
VS
25518 grep -v '^ *+' conftest.er1 >conftest.err
25519 rm -f conftest.er1
25520 cat conftest.err >&5
a848cd7e
SC
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } &&
89be85c2
VS
25523 { ac_try='test -z "$ac_c_werror_flag"
25524 || test ! -s conftest.err'
ac1cb8d3
VS
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; } &&
25530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25533 ac_status=$?
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; }; then
25536 ac_cv_func_connect=yes
25537else
25538 echo "$as_me: failed program was:" >&5
25539sed 's/^/| /' conftest.$ac_ext >&5
25540
25541ac_cv_func_connect=no
25542fi
ac1cb8d3
VS
25543rm -f conftest.err conftest.$ac_objext \
25544 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25545fi
25546echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25547echo "${ECHO_T}$ac_cv_func_connect" >&6
25548
25549 if test $ac_cv_func_connect = no; then
25550 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25551echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25552if test "${ac_cv_lib_socket_connect+set}" = set; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25554else
25555 ac_check_lib_save_LIBS=$LIBS
25556LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25557cat >conftest.$ac_ext <<_ACEOF
25558/* confdefs.h. */
25559_ACEOF
25560cat confdefs.h >>conftest.$ac_ext
25561cat >>conftest.$ac_ext <<_ACEOF
25562/* end confdefs.h. */
25563
25564/* Override any gcc2 internal prototype to avoid an error. */
25565#ifdef __cplusplus
25566extern "C"
25567#endif
25568/* We use char because int might match the return type of a gcc2
25569 builtin and then its argument prototype would still apply. */
25570char connect ();
25571int
25572main ()
25573{
25574connect ();
25575 ;
25576 return 0;
25577}
25578_ACEOF
25579rm -f conftest.$ac_objext conftest$ac_exeext
25580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25581 (eval $ac_link) 2>conftest.er1
a848cd7e 25582 ac_status=$?
ac1cb8d3
VS
25583 grep -v '^ *+' conftest.er1 >conftest.err
25584 rm -f conftest.er1
25585 cat conftest.err >&5
a848cd7e
SC
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
89be85c2
VS
25588 { ac_try='test -z "$ac_c_werror_flag"
25589 || test ! -s conftest.err'
ac1cb8d3
VS
25590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25592 ac_status=$?
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; } &&
25595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597 (eval $ac_try) 2>&5
25598 ac_status=$?
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; }; then
25601 ac_cv_lib_socket_connect=yes
25602else
25603 echo "$as_me: failed program was:" >&5
25604sed 's/^/| /' conftest.$ac_ext >&5
25605
25606ac_cv_lib_socket_connect=no
25607fi
ac1cb8d3
VS
25608rm -f conftest.err conftest.$ac_objext \
25609 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25610LIBS=$ac_check_lib_save_LIBS
25611fi
25612echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25613echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25614if test $ac_cv_lib_socket_connect = yes; then
25615 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25616fi
25617
25618 fi
25619
25620 # Guillermo Gomez says -lposix is necessary on A/UX.
25621 echo "$as_me:$LINENO: checking for remove" >&5
25622echo $ECHO_N "checking for remove... $ECHO_C" >&6
25623if test "${ac_cv_func_remove+set}" = set; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25625else
25626 cat >conftest.$ac_ext <<_ACEOF
25627/* confdefs.h. */
25628_ACEOF
25629cat confdefs.h >>conftest.$ac_ext
25630cat >>conftest.$ac_ext <<_ACEOF
25631/* end confdefs.h. */
ac1cb8d3
VS
25632/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25634#define remove innocuous_remove
25635
a848cd7e
SC
25636/* System header to define __stub macros and hopefully few prototypes,
25637 which can conflict with char remove (); below.
25638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25639 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25640
a848cd7e
SC
25641#ifdef __STDC__
25642# include <limits.h>
25643#else
25644# include <assert.h>
25645#endif
ac1cb8d3
VS
25646
25647#undef remove
25648
a848cd7e
SC
25649/* Override any gcc2 internal prototype to avoid an error. */
25650#ifdef __cplusplus
25651extern "C"
25652{
25653#endif
25654/* We use char because int might match the return type of a gcc2
25655 builtin and then its argument prototype would still apply. */
25656char remove ();
25657/* The GNU C library defines this for functions which it implements
25658 to always fail with ENOSYS. Some functions are actually named
25659 something starting with __ and the normal name is an alias. */
25660#if defined (__stub_remove) || defined (__stub___remove)
25661choke me
25662#else
25663char (*f) () = remove;
25664#endif
25665#ifdef __cplusplus
25666}
25667#endif
25668
25669int
25670main ()
25671{
25672return f != remove;
25673 ;
25674 return 0;
25675}
25676_ACEOF
25677rm -f conftest.$ac_objext conftest$ac_exeext
25678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25679 (eval $ac_link) 2>conftest.er1
a848cd7e 25680 ac_status=$?
ac1cb8d3
VS
25681 grep -v '^ *+' conftest.er1 >conftest.err
25682 rm -f conftest.er1
25683 cat conftest.err >&5
a848cd7e
SC
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } &&
89be85c2
VS
25686 { ac_try='test -z "$ac_c_werror_flag"
25687 || test ! -s conftest.err'
ac1cb8d3
VS
25688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689 (eval $ac_try) 2>&5
25690 ac_status=$?
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); }; } &&
25693 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695 (eval $ac_try) 2>&5
25696 ac_status=$?
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); }; }; then
25699 ac_cv_func_remove=yes
25700else
25701 echo "$as_me: failed program was:" >&5
25702sed 's/^/| /' conftest.$ac_ext >&5
25703
25704ac_cv_func_remove=no
25705fi
ac1cb8d3
VS
25706rm -f conftest.err conftest.$ac_objext \
25707 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25708fi
25709echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25710echo "${ECHO_T}$ac_cv_func_remove" >&6
25711
25712 if test $ac_cv_func_remove = no; then
25713 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25714echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25715if test "${ac_cv_lib_posix_remove+set}" = set; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25717else
25718 ac_check_lib_save_LIBS=$LIBS
25719LIBS="-lposix $LIBS"
25720cat >conftest.$ac_ext <<_ACEOF
25721/* confdefs.h. */
25722_ACEOF
25723cat confdefs.h >>conftest.$ac_ext
25724cat >>conftest.$ac_ext <<_ACEOF
25725/* end confdefs.h. */
25726
25727/* Override any gcc2 internal prototype to avoid an error. */
25728#ifdef __cplusplus
25729extern "C"
25730#endif
25731/* We use char because int might match the return type of a gcc2
25732 builtin and then its argument prototype would still apply. */
25733char remove ();
25734int
25735main ()
25736{
25737remove ();
25738 ;
25739 return 0;
25740}
25741_ACEOF
25742rm -f conftest.$ac_objext conftest$ac_exeext
25743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25744 (eval $ac_link) 2>conftest.er1
a848cd7e 25745 ac_status=$?
ac1cb8d3
VS
25746 grep -v '^ *+' conftest.er1 >conftest.err
25747 rm -f conftest.er1
25748 cat conftest.err >&5
a848cd7e
SC
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); } &&
89be85c2
VS
25751 { ac_try='test -z "$ac_c_werror_flag"
25752 || test ! -s conftest.err'
ac1cb8d3
VS
25753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); }; } &&
25758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25760 (eval $ac_try) 2>&5
25761 ac_status=$?
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; }; then
25764 ac_cv_lib_posix_remove=yes
25765else
25766 echo "$as_me: failed program was:" >&5
25767sed 's/^/| /' conftest.$ac_ext >&5
25768
25769ac_cv_lib_posix_remove=no
25770fi
ac1cb8d3
VS
25771rm -f conftest.err conftest.$ac_objext \
25772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25773LIBS=$ac_check_lib_save_LIBS
25774fi
25775echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25776echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25777if test $ac_cv_lib_posix_remove = yes; then
25778 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25779fi
25780
25781 fi
25782
25783 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25784 echo "$as_me:$LINENO: checking for shmat" >&5
25785echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25786if test "${ac_cv_func_shmat+set}" = set; then
25787 echo $ECHO_N "(cached) $ECHO_C" >&6
25788else
25789 cat >conftest.$ac_ext <<_ACEOF
25790/* confdefs.h. */
25791_ACEOF
25792cat confdefs.h >>conftest.$ac_ext
25793cat >>conftest.$ac_ext <<_ACEOF
25794/* end confdefs.h. */
ac1cb8d3
VS
25795/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25797#define shmat innocuous_shmat
25798
a848cd7e
SC
25799/* System header to define __stub macros and hopefully few prototypes,
25800 which can conflict with char shmat (); below.
25801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25802 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25803
a848cd7e
SC
25804#ifdef __STDC__
25805# include <limits.h>
25806#else
25807# include <assert.h>
25808#endif
ac1cb8d3
VS
25809
25810#undef shmat
25811
a848cd7e
SC
25812/* Override any gcc2 internal prototype to avoid an error. */
25813#ifdef __cplusplus
25814extern "C"
25815{
25816#endif
25817/* We use char because int might match the return type of a gcc2
25818 builtin and then its argument prototype would still apply. */
25819char shmat ();
25820/* The GNU C library defines this for functions which it implements
25821 to always fail with ENOSYS. Some functions are actually named
25822 something starting with __ and the normal name is an alias. */
25823#if defined (__stub_shmat) || defined (__stub___shmat)
25824choke me
25825#else
25826char (*f) () = shmat;
25827#endif
25828#ifdef __cplusplus
25829}
25830#endif
25831
25832int
25833main ()
25834{
25835return f != shmat;
25836 ;
25837 return 0;
25838}
25839_ACEOF
25840rm -f conftest.$ac_objext conftest$ac_exeext
25841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25842 (eval $ac_link) 2>conftest.er1
a848cd7e 25843 ac_status=$?
ac1cb8d3
VS
25844 grep -v '^ *+' conftest.er1 >conftest.err
25845 rm -f conftest.er1
25846 cat conftest.err >&5
a848cd7e
SC
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } &&
89be85c2
VS
25849 { ac_try='test -z "$ac_c_werror_flag"
25850 || test ! -s conftest.err'
ac1cb8d3
VS
25851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25853 ac_status=$?
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; } &&
25856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858 (eval $ac_try) 2>&5
25859 ac_status=$?
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; }; then
25862 ac_cv_func_shmat=yes
25863else
25864 echo "$as_me: failed program was:" >&5
25865sed 's/^/| /' conftest.$ac_ext >&5
25866
25867ac_cv_func_shmat=no
25868fi
ac1cb8d3
VS
25869rm -f conftest.err conftest.$ac_objext \
25870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25871fi
25872echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25873echo "${ECHO_T}$ac_cv_func_shmat" >&6
25874
25875 if test $ac_cv_func_shmat = no; then
25876 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25877echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25878if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25879 echo $ECHO_N "(cached) $ECHO_C" >&6
25880else
25881 ac_check_lib_save_LIBS=$LIBS
25882LIBS="-lipc $LIBS"
25883cat >conftest.$ac_ext <<_ACEOF
25884/* confdefs.h. */
25885_ACEOF
25886cat confdefs.h >>conftest.$ac_ext
25887cat >>conftest.$ac_ext <<_ACEOF
25888/* end confdefs.h. */
25889
25890/* Override any gcc2 internal prototype to avoid an error. */
25891#ifdef __cplusplus
25892extern "C"
25893#endif
25894/* We use char because int might match the return type of a gcc2
25895 builtin and then its argument prototype would still apply. */
25896char shmat ();
25897int
25898main ()
25899{
25900shmat ();
25901 ;
25902 return 0;
25903}
25904_ACEOF
25905rm -f conftest.$ac_objext conftest$ac_exeext
25906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25907 (eval $ac_link) 2>conftest.er1
a848cd7e 25908 ac_status=$?
ac1cb8d3
VS
25909 grep -v '^ *+' conftest.er1 >conftest.err
25910 rm -f conftest.er1
25911 cat conftest.err >&5
a848cd7e
SC
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); } &&
89be85c2
VS
25914 { ac_try='test -z "$ac_c_werror_flag"
25915 || test ! -s conftest.err'
ac1cb8d3
VS
25916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25917 (eval $ac_try) 2>&5
25918 ac_status=$?
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); }; } &&
25921 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25923 (eval $ac_try) 2>&5
25924 ac_status=$?
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); }; }; then
25927 ac_cv_lib_ipc_shmat=yes
25928else
25929 echo "$as_me: failed program was:" >&5
25930sed 's/^/| /' conftest.$ac_ext >&5
25931
25932ac_cv_lib_ipc_shmat=no
25933fi
ac1cb8d3
VS
25934rm -f conftest.err conftest.$ac_objext \
25935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25936LIBS=$ac_check_lib_save_LIBS
25937fi
25938echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25939echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25940if test $ac_cv_lib_ipc_shmat = yes; then
25941 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25942fi
25943
25944 fi
25945 fi
25946
25947 # Check for libraries that X11R6 Xt/Xaw programs need.
25948 ac_save_LDFLAGS=$LDFLAGS
25949 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25950 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25951 # check for ICE first), but we must link in the order -lSM -lICE or
25952 # we get undefined symbols. So assume we have SM if we have ICE.
25953 # These have to be linked with before -lX11, unlike the other
25954 # libraries we check for below, so use a different variable.
25955 # John Interrante, Karl Berry
25956 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25957echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25958if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25959 echo $ECHO_N "(cached) $ECHO_C" >&6
25960else
25961 ac_check_lib_save_LIBS=$LIBS
25962LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25963cat >conftest.$ac_ext <<_ACEOF
25964/* confdefs.h. */
25965_ACEOF
25966cat confdefs.h >>conftest.$ac_ext
25967cat >>conftest.$ac_ext <<_ACEOF
25968/* end confdefs.h. */
25969
25970/* Override any gcc2 internal prototype to avoid an error. */
25971#ifdef __cplusplus
25972extern "C"
25973#endif
25974/* We use char because int might match the return type of a gcc2
25975 builtin and then its argument prototype would still apply. */
25976char IceConnectionNumber ();
25977int
25978main ()
25979{
25980IceConnectionNumber ();
25981 ;
25982 return 0;
25983}
25984_ACEOF
25985rm -f conftest.$ac_objext conftest$ac_exeext
25986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25987 (eval $ac_link) 2>conftest.er1
a848cd7e 25988 ac_status=$?
ac1cb8d3
VS
25989 grep -v '^ *+' conftest.er1 >conftest.err
25990 rm -f conftest.er1
25991 cat conftest.err >&5
a848cd7e
SC
25992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993 (exit $ac_status); } &&
89be85c2
VS
25994 { ac_try='test -z "$ac_c_werror_flag"
25995 || test ! -s conftest.err'
ac1cb8d3
VS
25996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997 (eval $ac_try) 2>&5
25998 ac_status=$?
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); }; } &&
26001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); }; }; then
26007 ac_cv_lib_ICE_IceConnectionNumber=yes
26008else
26009 echo "$as_me: failed program was:" >&5
26010sed 's/^/| /' conftest.$ac_ext >&5
26011
26012ac_cv_lib_ICE_IceConnectionNumber=no
26013fi
ac1cb8d3
VS
26014rm -f conftest.err conftest.$ac_objext \
26015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26016LIBS=$ac_check_lib_save_LIBS
26017fi
26018echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26019echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26020if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26021 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26022fi
26023
26024 LDFLAGS=$ac_save_LDFLAGS
26025
26026fi
26027
26028
26029 if test "$no_x" = "yes"; then
26030 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26031echo "$as_me: error: X11 not found" >&2;}
26032 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26033 fi
26034
74b84332
VS
26035 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26036 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26037 AFMINSTALL=afminstall
26038 COMPILED_X_PROGRAM=0
26039
74b84332
VS
26040 fi
26041
26042 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26043 if test "$wxUSE_NANOX" = "yes"; then
26044 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26045echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26046 if test "x$MICROWIN" = x ; then
26047 echo "$as_me:$LINENO: result: not found" >&5
26048echo "${ECHO_T}not found" >&6
26049 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
26050echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
26051 { (exit 1); exit 1; }; }
26052 else
26053 echo "$as_me:$LINENO: result: $MICROWIN" >&5
26054echo "${ECHO_T}$MICROWIN" >&6
26055 cat >>confdefs.h <<\_ACEOF
26056#define wxUSE_NANOX 1
26057_ACEOF
26058
26059 fi
26060 fi
26061
26062 if test "$wxUSE_UNICODE" = "yes"; then
26063
26064 succeeded=no
26065
26066 if test -z "$PKG_CONFIG"; then
26067 # Extract the first word of "pkg-config", so it can be a program name with args.
26068set dummy pkg-config; ac_word=$2
26069echo "$as_me:$LINENO: checking for $ac_word" >&5
26070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26071if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26072 echo $ECHO_N "(cached) $ECHO_C" >&6
26073else
26074 case $PKG_CONFIG in
26075 [\\/]* | ?:[\\/]*)
26076 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26077 ;;
26078 *)
26079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26080for as_dir in $PATH
26081do
26082 IFS=$as_save_IFS
26083 test -z "$as_dir" && as_dir=.
26084 for ac_exec_ext in '' $ac_executable_extensions; do
26085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26086 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26088 break 2
26089 fi
26090done
26091done
26092
26093 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26094 ;;
26095esac
26096fi
26097PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26098
26099if test -n "$PKG_CONFIG"; then
26100 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26101echo "${ECHO_T}$PKG_CONFIG" >&6
26102else
26103 echo "$as_me:$LINENO: result: no" >&5
26104echo "${ECHO_T}no" >&6
26105fi
26106
26107 fi
26108
26109 if test "$PKG_CONFIG" = "no" ; then
26110 echo "*** The pkg-config script could not be found. Make sure it is"
26111 echo "*** in your path, or set the PKG_CONFIG environment variable"
26112 echo "*** to the full path to pkg-config."
26113 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26114 else
26115 PKG_CONFIG_MIN_VERSION=0.9.0
26116 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26117 echo "$as_me:$LINENO: checking for pangox" >&5
26118echo $ECHO_N "checking for pangox... $ECHO_C" >&6
26119
26120 if $PKG_CONFIG --exists "pangox" ; then
26121 echo "$as_me:$LINENO: result: yes" >&5
26122echo "${ECHO_T}yes" >&6
26123 succeeded=yes
26124
26125 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
26126echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
26127 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
26128 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
26129echo "${ECHO_T}$PANGOX_CFLAGS" >&6
26130
26131 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
26132echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
26133 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
26134 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
26135echo "${ECHO_T}$PANGOX_LIBS" >&6
26136 else
26137 PANGOX_CFLAGS=""
26138 PANGOX_LIBS=""
26139 ## If we have a custom action on failure, don't print errors, but
26140 ## do set a variable so people can do so.
26141 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
26142
26143 fi
26144
26145
26146
26147 else
26148 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26149 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26150 fi
26151 fi
26152
26153 if test $succeeded = yes; then
26154
26155 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
26156 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
26157
26158 else
26159
26160 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
26161echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
26162 { (exit 1); exit 1; }; }
26163
26164
26165 fi
26166
26167
26168 succeeded=no
26169
26170 if test -z "$PKG_CONFIG"; then
26171 # Extract the first word of "pkg-config", so it can be a program name with args.
26172set dummy pkg-config; ac_word=$2
26173echo "$as_me:$LINENO: checking for $ac_word" >&5
26174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26175if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26176 echo $ECHO_N "(cached) $ECHO_C" >&6
26177else
26178 case $PKG_CONFIG in
26179 [\\/]* | ?:[\\/]*)
26180 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26181 ;;
26182 *)
26183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26184for as_dir in $PATH
26185do
26186 IFS=$as_save_IFS
26187 test -z "$as_dir" && as_dir=.
26188 for ac_exec_ext in '' $ac_executable_extensions; do
26189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26190 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26192 break 2
26193 fi
26194done
26195done
26196
26197 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26198 ;;
26199esac
26200fi
26201PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26202
26203if test -n "$PKG_CONFIG"; then
26204 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26205echo "${ECHO_T}$PKG_CONFIG" >&6
26206else
26207 echo "$as_me:$LINENO: result: no" >&5
26208echo "${ECHO_T}no" >&6
26209fi
26210
26211 fi
26212
26213 if test "$PKG_CONFIG" = "no" ; then
26214 echo "*** The pkg-config script could not be found. Make sure it is"
26215 echo "*** in your path, or set the PKG_CONFIG environment variable"
26216 echo "*** to the full path to pkg-config."
26217 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26218 else
26219 PKG_CONFIG_MIN_VERSION=0.9.0
26220 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26221 echo "$as_me:$LINENO: checking for pangoft2" >&5
26222echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26223
26224 if $PKG_CONFIG --exists "pangoft2" ; then
26225 echo "$as_me:$LINENO: result: yes" >&5
26226echo "${ECHO_T}yes" >&6
26227 succeeded=yes
26228
26229 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26230echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26231 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26232 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26233echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26234
26235 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26236echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26237 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26238 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26239echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26240 else
26241 PANGOFT2_CFLAGS=""
26242 PANGOFT2_LIBS=""
26243 ## If we have a custom action on failure, don't print errors, but
26244 ## do set a variable so people can do so.
26245 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26246
26247 fi
26248
26249
26250
26251 else
26252 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26253 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26254 fi
26255 fi
26256
26257 if test $succeeded = yes; then
26258
26259 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26260 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26261
26262 else
26263
26264 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26265echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26266 wxUSE_PRINTING_ARCHITECTURE="no"
26267
26268
26269 fi
26270
26271
26272 succeeded=no
26273
26274 if test -z "$PKG_CONFIG"; then
26275 # Extract the first word of "pkg-config", so it can be a program name with args.
26276set dummy pkg-config; ac_word=$2
26277echo "$as_me:$LINENO: checking for $ac_word" >&5
26278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26279if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26281else
26282 case $PKG_CONFIG in
26283 [\\/]* | ?:[\\/]*)
26284 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26285 ;;
26286 *)
26287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26288for as_dir in $PATH
26289do
26290 IFS=$as_save_IFS
26291 test -z "$as_dir" && as_dir=.
26292 for ac_exec_ext in '' $ac_executable_extensions; do
26293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26294 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26296 break 2
26297 fi
26298done
26299done
26300
26301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26302 ;;
26303esac
26304fi
26305PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26306
26307if test -n "$PKG_CONFIG"; then
26308 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26309echo "${ECHO_T}$PKG_CONFIG" >&6
26310else
26311 echo "$as_me:$LINENO: result: no" >&5
26312echo "${ECHO_T}no" >&6
26313fi
26314
26315 fi
26316
26317 if test "$PKG_CONFIG" = "no" ; then
26318 echo "*** The pkg-config script could not be found. Make sure it is"
26319 echo "*** in your path, or set the PKG_CONFIG environment variable"
26320 echo "*** to the full path to pkg-config."
26321 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26322 else
26323 PKG_CONFIG_MIN_VERSION=0.9.0
26324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26325 echo "$as_me:$LINENO: checking for pangoxft" >&5
26326echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26327
26328 if $PKG_CONFIG --exists "pangoxft" ; then
26329 echo "$as_me:$LINENO: result: yes" >&5
26330echo "${ECHO_T}yes" >&6
26331 succeeded=yes
26332
26333 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26334echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26335 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26336 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26337echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26338
26339 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26340echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26341 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26342 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26343echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26344 else
26345 PANGOXFT_CFLAGS=""
26346 PANGOXFT_LIBS=""
26347 ## If we have a custom action on failure, don't print errors, but
26348 ## do set a variable so people can do so.
26349 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26350
26351 fi
26352
26353
26354
26355 else
26356 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26357 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26358 fi
26359 fi
26360
26361 if test $succeeded = yes; then
26362
4ae1af05
MB
26363 cat >>confdefs.h <<\_ACEOF
26364#define HAVE_PANGO_XFT 1
26365_ACEOF
26366
a848cd7e
SC
26367 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26368 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26369
26370 else
26371
26372 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26373echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26374
26375
26376 fi
26377
304205f1
VS
26378 save_CFLAGS="$CFLAGS"
26379 save_LIBS="$LIBS"
26380 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26381 LIBS="$LIBS $PANGOX_LIBS"
26382
26383for ac_func in pango_font_family_is_monospace
26384do
26385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26386echo "$as_me:$LINENO: checking for $ac_func" >&5
26387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26388if eval "test \"\${$as_ac_var+set}\" = set"; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26390else
26391 cat >conftest.$ac_ext <<_ACEOF
26392/* confdefs.h. */
26393_ACEOF
26394cat confdefs.h >>conftest.$ac_ext
26395cat >>conftest.$ac_ext <<_ACEOF
26396/* end confdefs.h. */
26397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26399#define $ac_func innocuous_$ac_func
26400
26401/* System header to define __stub macros and hopefully few prototypes,
26402 which can conflict with char $ac_func (); below.
26403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26404 <limits.h> exists even on freestanding compilers. */
26405
26406#ifdef __STDC__
26407# include <limits.h>
26408#else
26409# include <assert.h>
26410#endif
26411
26412#undef $ac_func
26413
26414/* Override any gcc2 internal prototype to avoid an error. */
26415#ifdef __cplusplus
26416extern "C"
26417{
26418#endif
26419/* We use char because int might match the return type of a gcc2
26420 builtin and then its argument prototype would still apply. */
26421char $ac_func ();
26422/* The GNU C library defines this for functions which it implements
26423 to always fail with ENOSYS. Some functions are actually named
26424 something starting with __ and the normal name is an alias. */
26425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26426choke me
26427#else
26428char (*f) () = $ac_func;
26429#endif
26430#ifdef __cplusplus
26431}
26432#endif
26433
26434int
26435main ()
26436{
26437return f != $ac_func;
26438 ;
26439 return 0;
26440}
26441_ACEOF
26442rm -f conftest.$ac_objext conftest$ac_exeext
26443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26444 (eval $ac_link) 2>conftest.er1
26445 ac_status=$?
26446 grep -v '^ *+' conftest.er1 >conftest.err
26447 rm -f conftest.er1
26448 cat conftest.err >&5
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); } &&
89be85c2
VS
26451 { ac_try='test -z "$ac_c_werror_flag"
26452 || test ! -s conftest.err'
304205f1
VS
26453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26454 (eval $ac_try) 2>&5
26455 ac_status=$?
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); }; } &&
26458 { ac_try='test -s conftest$ac_exeext'
26459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460 (eval $ac_try) 2>&5
26461 ac_status=$?
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); }; }; then
26464 eval "$as_ac_var=yes"
26465else
26466 echo "$as_me: failed program was:" >&5
26467sed 's/^/| /' conftest.$ac_ext >&5
26468
26469eval "$as_ac_var=no"
26470fi
26471rm -f conftest.err conftest.$ac_objext \
26472 conftest$ac_exeext conftest.$ac_ext
26473fi
26474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26476if test `eval echo '${'$as_ac_var'}'` = yes; then
26477 cat >>confdefs.h <<_ACEOF
26478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26479_ACEOF
26480
26481fi
26482done
26483
26484 CFLAGS="$save_CFLAGS"
26485 LIBS="$save_LIBS"
a848cd7e
SC
26486 fi
26487
26488 wxUSE_UNIVERSAL="yes"
26489
26490 if test "$wxUSE_NANOX" = "yes"; then
26491 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26492 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"
26493 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26494 else
26495 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26496 fi
26497
a848cd7e
SC
26498 TOOLKIT=X11
26499 GUIDIST=X11_DIST
26500 fi
26501
26502 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26503 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26504echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26505
74b84332
VS
26506ac_find_includes=
26507for ac_dir in $SEARCH_INCLUDE /usr/include;
26508 do
26509 if test -f "$ac_dir/Xm/Xm.h"; then
26510 ac_find_includes=$ac_dir
26511 break
26512 fi
26513 done
a848cd7e 26514
74b84332
VS
26515 if test "$ac_find_includes" != "" ; then
26516 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26517echo "${ECHO_T}found in $ac_find_includes" >&6
26518
26519 if test "x$ac_find_includes" = "x/usr/include"; then
26520 ac_path_to_include=""
26521 else
26522 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26523 result=$?
26524 if test $result = 0; then
26525 ac_path_to_include=""
26526 else
26527 ac_path_to_include=" -I$ac_find_includes"
26528 fi
a848cd7e
SC
26529 fi
26530
74b84332
VS
26531 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26532 else
26533 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26534/* confdefs.h. */
26535_ACEOF
26536cat confdefs.h >>conftest.$ac_ext
26537cat >>conftest.$ac_ext <<_ACEOF
26538/* end confdefs.h. */
26539
74b84332
VS
26540 #include <Xm/Xm.h>
26541
a848cd7e
SC
26542int
26543main ()
26544{
26545
74b84332
VS
26546 int version;
26547 version = xmUseVersion;
26548
a848cd7e
SC
26549 ;
26550 return 0;
26551}
26552_ACEOF
74b84332
VS
26553rm -f conftest.$ac_objext
26554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26555 (eval $ac_compile) 2>conftest.er1
a848cd7e 26556 ac_status=$?
ac1cb8d3
VS
26557 grep -v '^ *+' conftest.er1 >conftest.err
26558 rm -f conftest.er1
26559 cat conftest.err >&5
a848cd7e
SC
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); } &&
89be85c2
VS
26562 { ac_try='test -z "$ac_c_werror_flag"
26563 || test ! -s conftest.err'
ac1cb8d3
VS
26564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565 (eval $ac_try) 2>&5
26566 ac_status=$?
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); }; } &&
74b84332 26569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26571 (eval $ac_try) 2>&5
26572 ac_status=$?
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); }; }; then
74b84332
VS
26575
26576 echo "$as_me:$LINENO: result: found in default search path" >&5
26577echo "${ECHO_T}found in default search path" >&6
26578 COMPILED_X_PROGRAM=1
26579
a848cd7e
SC
26580else
26581 echo "$as_me: failed program was:" >&5
26582sed 's/^/| /' conftest.$ac_ext >&5
26583
a848cd7e 26584
74b84332
VS
26585 echo "$as_me:$LINENO: result: no" >&5
26586echo "${ECHO_T}no" >&6
26587 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26588echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26589 { (exit 1); exit 1; }; }
a848cd7e 26590
a848cd7e 26591
a848cd7e 26592fi
74b84332
VS
26593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26594 fi
26595
26596 if test "$COMPILED_X_PROGRAM" = 0; then
26597 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26598echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26599
26600ac_find_libraries=
26601for ac_dir in $SEARCH_LIB /usr/lib;
26602 do
26603 for ac_extension in a so sl dylib; do
26604 if test -f "$ac_dir/libXm.$ac_extension"; then
26605 ac_find_libraries=$ac_dir
26606 break 2
a848cd7e 26607 fi
74b84332
VS
26608 done
26609 done
a848cd7e 26610
74b84332
VS
26611 if test "$ac_find_libraries" != "" ; then
26612 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26613echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26614
74b84332
VS
26615
26616 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26617 result=$?
26618 if test $result = 0; then
26619 ac_path_to_link=""
a848cd7e 26620 else
74b84332
VS
26621 ac_path_to_link=" -L$ac_find_libraries"
26622 fi
26623
26624 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26625 else
26626 save_CFLAGS=$CFLAGS
26627 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26628
26629 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26630/* confdefs.h. */
26631_ACEOF
26632cat confdefs.h >>conftest.$ac_ext
26633cat >>conftest.$ac_ext <<_ACEOF
26634/* end confdefs.h. */
26635
74b84332
VS
26636 #include <Xm/Xm.h>
26637
a848cd7e
SC
26638int
26639main ()
26640{
74b84332
VS
26641
26642 int version;
26643 version = xmUseVersion;
26644
a848cd7e
SC
26645 ;
26646 return 0;
26647}
26648_ACEOF
74b84332
VS
26649rm -f conftest.$ac_objext
26650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26651 (eval $ac_compile) 2>conftest.er1
a848cd7e 26652 ac_status=$?
ac1cb8d3
VS
26653 grep -v '^ *+' conftest.er1 >conftest.err
26654 rm -f conftest.er1
26655 cat conftest.err >&5
a848cd7e
SC
26656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); } &&
89be85c2
VS
26658 { ac_try='test -z "$ac_c_werror_flag"
26659 || test ! -s conftest.err'
ac1cb8d3
VS
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; } &&
74b84332 26665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; }; then
74b84332
VS
26671
26672 echo "$as_me:$LINENO: result: found in default search path" >&5
26673echo "${ECHO_T}found in default search path" >&6
26674 COMPILED_X_PROGRAM=1
26675
a848cd7e
SC
26676else
26677 echo "$as_me: failed program was:" >&5
26678sed 's/^/| /' conftest.$ac_ext >&5
26679
74b84332
VS
26680
26681 echo "$as_me:$LINENO: result: no" >&5
26682echo "${ECHO_T}no" >&6
26683 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26684echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26685 { (exit 1); exit 1; }; }
26686
26687
26688fi
26689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26690
26691 CFLAGS=$save_CFLAGS
26692 fi
26693 fi
26694
26695 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26696echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26697 libp_link=""
26698 libsm_ice_link=""
26699 libs_found=0
26700 for libp in "" " -lXp"; do
26701 if test "$libs_found" = "0"; then
26702 for libsm_ice in "" " -lSM -lICE"; do
26703 if test "$libs_found" = "0"; then
26704 save_LIBS="$LIBS"
26705 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26706 save_CFLAGS=$CFLAGS
26707 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26708
26709 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26710/* confdefs.h. */
26711_ACEOF
26712cat confdefs.h >>conftest.$ac_ext
26713cat >>conftest.$ac_ext <<_ACEOF
26714/* end confdefs.h. */
26715
74b84332
VS
26716 #include <Xm/Xm.h>
26717 #include <Xm/List.h>
26718
a848cd7e
SC
26719int
26720main ()
26721{
74b84332
VS
26722
26723 XmString string = NULL;
26724 Widget w = NULL;
26725 int position = 0;
26726 XmListAddItem(w, string, position);
26727
a848cd7e
SC
26728 ;
26729 return 0;
26730}
26731_ACEOF
26732rm -f conftest.$ac_objext conftest$ac_exeext
26733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26734 (eval $ac_link) 2>conftest.er1
a848cd7e 26735 ac_status=$?
ac1cb8d3
VS
26736 grep -v '^ *+' conftest.er1 >conftest.err
26737 rm -f conftest.er1
26738 cat conftest.err >&5
a848cd7e
SC
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); } &&
89be85c2
VS
26741 { ac_try='test -z "$ac_c_werror_flag"
26742 || test ! -s conftest.err'
ac1cb8d3
VS
26743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); }; } &&
26748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
26754
26755 libp_link="$libp"
26756 libsm_ice_link="$libsm_ice"
26757 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26758echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26759 libs_found=1
26760
26761else
26762 echo "$as_me: failed program was:" >&5
26763sed 's/^/| /' conftest.$ac_ext >&5
26764
26765
26766
26767fi
ac1cb8d3
VS
26768rm -f conftest.err conftest.$ac_objext \
26769 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26770
26771 LIBS="$save_LIBS"
26772 CFLAGS=$save_CFLAGS
26773 fi
26774 done
26775 fi
26776 done
26777
26778 if test "$libs_found" = "0"; then
26779 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26780echo "${ECHO_T}can't find the right libraries" >&6
26781 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26782echo "$as_me: error: can't link a simple motif program" >&2;}
26783 { (exit 1); exit 1; }; }
26784 fi
26785
26786 save_CFLAGS=$CFLAGS
26787 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26788 echo "$as_me:$LINENO: checking for Motif 2" >&5
26789echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26790 cat >conftest.$ac_ext <<_ACEOF
26791/* confdefs.h. */
26792_ACEOF
26793cat confdefs.h >>conftest.$ac_ext
26794cat >>conftest.$ac_ext <<_ACEOF
26795/* end confdefs.h. */
26796
26797 #include <Xm/Xm.h>
26798
26799int
26800main ()
26801{
26802
26803 #if XmVersion < 2000
26804 #error "Not Motif 2"
26805 #endif
26806
26807 ;
26808 return 0;
26809}
26810_ACEOF
26811rm -f conftest.$ac_objext
26812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26813 (eval $ac_compile) 2>conftest.er1
a848cd7e 26814 ac_status=$?
ac1cb8d3
VS
26815 grep -v '^ *+' conftest.er1 >conftest.err
26816 rm -f conftest.er1
26817 cat conftest.err >&5
a848cd7e
SC
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); } &&
89be85c2
VS
26820 { ac_try='test -z "$ac_c_werror_flag"
26821 || test ! -s conftest.err'
ac1cb8d3
VS
26822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26823 (eval $ac_try) 2>&5
26824 ac_status=$?
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); }; } &&
26827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26829 (eval $ac_try) 2>&5
26830 ac_status=$?
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); }; }; then
26833
26834 cat >>confdefs.h <<\_ACEOF
26835#define __WXMOTIF20__ 1
26836_ACEOF
26837
26838 echo "$as_me:$LINENO: result: found" >&5
26839echo "${ECHO_T}found" >&6
26840
26841else
26842 echo "$as_me: failed program was:" >&5
26843sed 's/^/| /' conftest.$ac_ext >&5
26844
26845
26846 cat >>confdefs.h <<\_ACEOF
26847#define __WXMOTIF20__ 0
26848_ACEOF
26849
26850 echo "$as_me:$LINENO: result: not found" >&5
26851echo "${ECHO_T}not found" >&6
26852
26853fi
ac1cb8d3 26854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26855 CFLAGS=$save_CFLAGS
26856
26857 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26858 TOOLKIT=MOTIF
26859 GUIDIST=MOTIF_DIST
26860 fi
26861
74b84332 26862 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26863 if test "$wxUSE_LIBXPM" = "sys"; then
26864 echo "$as_me:$LINENO: checking for Xpm library" >&5
26865echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26866
26867ac_find_libraries=
26868for ac_dir in $SEARCH_LIB /usr/lib;
26869 do
26870 for ac_extension in a so sl dylib; do
26871 if test -f "$ac_dir/libXpm.$ac_extension"; then
26872 ac_find_libraries=$ac_dir
26873 break 2
26874 fi
26875 done
26876 done
26877
26878 if test "$ac_find_libraries" != "" ; then
26879
26880 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26881 result=$?
26882 if test $result = 0; then
26883 ac_path_to_link=""
26884 else
26885 ac_path_to_link=" -L$ac_find_libraries"
26886 fi
26887
26888 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26889 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26890echo "${ECHO_T}found at $ac_find_libraries" >&6
26891
26892 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26893echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26894if test "${wx_cv_x11_xpm_h+set}" = set; then
26895 echo $ECHO_N "(cached) $ECHO_C" >&6
26896else
26897
26898 save_CFLAGS=$CFLAGS
26899 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26900
26901 cat >conftest.$ac_ext <<_ACEOF
26902/* confdefs.h. */
26903_ACEOF
26904cat confdefs.h >>conftest.$ac_ext
26905cat >>conftest.$ac_ext <<_ACEOF
26906/* end confdefs.h. */
26907
26908 #include <X11/xpm.h>
26909
26910int
26911main ()
26912{
26913
26914 int version;
26915 version = XpmLibraryVersion();
26916
26917 ;
26918 return 0;
26919}
26920_ACEOF
26921rm -f conftest.$ac_objext
26922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26923 (eval $ac_compile) 2>conftest.er1
a848cd7e 26924 ac_status=$?
ac1cb8d3
VS
26925 grep -v '^ *+' conftest.er1 >conftest.err
26926 rm -f conftest.er1
26927 cat conftest.err >&5
a848cd7e
SC
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } &&
89be85c2
VS
26930 { ac_try='test -z "$ac_c_werror_flag"
26931 || test ! -s conftest.err'
ac1cb8d3
VS
26932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26933 (eval $ac_try) 2>&5
26934 ac_status=$?
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); }; } &&
26937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26939 (eval $ac_try) 2>&5
26940 ac_status=$?
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); }; }; then
26943 wx_cv_x11_xpm_h=yes
26944else
26945 echo "$as_me: failed program was:" >&5
26946sed 's/^/| /' conftest.$ac_ext >&5
26947
26948wx_cv_x11_xpm_h=no
26949
26950fi
ac1cb8d3 26951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26952
26953 CFLAGS=$save_CFLAGS
26954
26955
26956fi
26957echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26958echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26959
26960 if test $wx_cv_x11_xpm_h = "yes"; then
26961 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26962 cat >>confdefs.h <<\_ACEOF
26963#define wxHAVE_LIB_XPM 1
26964_ACEOF
26965
26966 else
26967 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26968echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26969 fi
26970 fi
26971
26972 fi
26973
26974 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26975echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26976if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26978else
26979 ac_check_lib_save_LIBS=$LIBS
26980LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26981cat >conftest.$ac_ext <<_ACEOF
26982/* confdefs.h. */
26983_ACEOF
26984cat confdefs.h >>conftest.$ac_ext
26985cat >>conftest.$ac_ext <<_ACEOF
26986/* end confdefs.h. */
26987
26988/* Override any gcc2 internal prototype to avoid an error. */
26989#ifdef __cplusplus
26990extern "C"
26991#endif
26992/* We use char because int might match the return type of a gcc2
26993 builtin and then its argument prototype would still apply. */
26994char XShapeQueryExtension ();
26995int
26996main ()
26997{
26998XShapeQueryExtension ();
26999 ;
27000 return 0;
27001}
27002_ACEOF
27003rm -f conftest.$ac_objext conftest$ac_exeext
27004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27005 (eval $ac_link) 2>conftest.er1
a848cd7e 27006 ac_status=$?
ac1cb8d3
VS
27007 grep -v '^ *+' conftest.er1 >conftest.err
27008 rm -f conftest.er1
27009 cat conftest.err >&5
a848cd7e
SC
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); } &&
89be85c2
VS
27012 { ac_try='test -z "$ac_c_werror_flag"
27013 || test ! -s conftest.err'
ac1cb8d3
VS
27014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27015 (eval $ac_try) 2>&5
27016 ac_status=$?
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); }; } &&
27019 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021 (eval $ac_try) 2>&5
27022 ac_status=$?
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; }; then
27025 ac_cv_lib_Xext_XShapeQueryExtension=yes
27026else
27027 echo "$as_me: failed program was:" >&5
27028sed 's/^/| /' conftest.$ac_ext >&5
27029
27030ac_cv_lib_Xext_XShapeQueryExtension=no
27031fi
ac1cb8d3
VS
27032rm -f conftest.err conftest.$ac_objext \
27033 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27034LIBS=$ac_check_lib_save_LIBS
27035fi
27036echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27037echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27038if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27039
27040 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27041 wxHAVE_XEXT_LIB=1
27042
27043fi
27044
27045
27046 if test "$wxHAVE_XEXT_LIB" = 1; then
27047 save_CFLAGS="$CFLAGS"
27048 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27049
27050 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27051echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27052 cat >conftest.$ac_ext <<_ACEOF
27053/* confdefs.h. */
27054_ACEOF
27055cat confdefs.h >>conftest.$ac_ext
27056cat >>conftest.$ac_ext <<_ACEOF
27057/* end confdefs.h. */
27058
27059 #include <X11/Xlib.h>
27060 #include <X11/extensions/shape.h>
27061
27062int
27063main ()
27064{
27065
27066 int dummy1, dummy2;
27067 XShapeQueryExtension((Display*)NULL,
27068 (int*)NULL, (int*)NULL);
27069
27070 ;
27071 return 0;
27072}
27073_ACEOF
27074rm -f conftest.$ac_objext
27075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27076 (eval $ac_compile) 2>conftest.er1
a848cd7e 27077 ac_status=$?
ac1cb8d3
VS
27078 grep -v '^ *+' conftest.er1 >conftest.err
27079 rm -f conftest.er1
27080 cat conftest.err >&5
a848cd7e
SC
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); } &&
89be85c2
VS
27083 { ac_try='test -z "$ac_c_werror_flag"
27084 || test ! -s conftest.err'
ac1cb8d3
VS
27085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27087 ac_status=$?
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; } &&
27090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092 (eval $ac_try) 2>&5
27093 ac_status=$?
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; }; then
27096
27097 cat >>confdefs.h <<\_ACEOF
27098#define HAVE_XSHAPE 1
27099_ACEOF
27100
27101 echo "$as_me:$LINENO: result: found" >&5
27102echo "${ECHO_T}found" >&6
27103
27104else
27105 echo "$as_me: failed program was:" >&5
27106sed 's/^/| /' conftest.$ac_ext >&5
27107
27108
27109 echo "$as_me:$LINENO: result: not found" >&5
27110echo "${ECHO_T}not found" >&6
27111
27112fi
ac1cb8d3 27113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27114 CFLAGS="$save_CFLAGS"
27115
27116 fi
27117 fi
27118
27119 if test "$wxUSE_MAC" = 1; then
27120 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
27121echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
27122 if test "$GCC" = yes; then
27123 echo "$as_me:$LINENO: result: gcc" >&5
27124echo "${ECHO_T}gcc" >&6
27125 CPPFLAGS_PASCAL="-fpascal-strings"
27126 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
27127 echo "$as_me:$LINENO: result: xlc" >&5
27128echo "${ECHO_T}xlc" >&6
27129 CPPFLAGS_PASCAL="-qmacpstr"
27130 else
27131 echo "$as_me:$LINENO: result: none" >&5
27132echo "${ECHO_T}none" >&6
27133 fi
27134
1e9e8aba
DE
27135 if test "x$wxUSE_UNIX" = "xyes"; then
27136 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
27137 else
27138 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
27139 fi
a848cd7e 27140
a848cd7e
SC
27141 TOOLKIT=MAC
27142 GUIDIST=MACX_DIST
dd21ced8 27143 WXBASEPORT="_carbon"
a848cd7e
SC
27144 fi
27145
27146 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
27147 TOOLKIT=COCOA
27148 GUIDIST=COCOA_DIST
27149 fi
27150
27151 if test "$wxUSE_PM" = 1; then
27152 TOOLKIT=PM
de59c161
RD
27153 GUIDIST=PM_DIST
27154 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
27155echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
27156if test "${wx_cv_spbcdata+set}" = set; then
27157 echo $ECHO_N "(cached) $ECHO_C" >&6
27158else
27159
27160 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
27161/* confdefs.h. */
27162_ACEOF
27163cat confdefs.h >>conftest.$ac_ext
27164cat >>conftest.$ac_ext <<_ACEOF
27165/* end confdefs.h. */
27166
27167 #define INCL_PM
27168 #include <os2.h>
27169
27170int
27171main ()
27172{
27173
27174 SPBCDATA test;
27175
27176 ;
27177 return 0;
27178}
27179_ACEOF
27180rm -f conftest.$ac_objext
27181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27182 (eval $ac_compile) 2>conftest.er1
de59c161 27183 ac_status=$?
ac1cb8d3
VS
27184 grep -v '^ *+' conftest.er1 >conftest.err
27185 rm -f conftest.er1
27186 cat conftest.err >&5
de59c161
RD
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } &&
89be85c2
VS
27189 { ac_try='test -z "$ac_c_werror_flag"
27190 || test ! -s conftest.err'
ac1cb8d3
VS
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27193 ac_status=$?
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; } &&
27196 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198 (eval $ac_try) 2>&5
27199 ac_status=$?
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); }; }; then
27202 wx_cv_spbcdata=yes
27203else
27204 echo "$as_me: failed program was:" >&5
27205sed 's/^/| /' conftest.$ac_ext >&5
27206
27207wx_cv_spbcdata=no
27208
27209fi
ac1cb8d3 27210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27211
27212
27213fi
27214echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27215echo "${ECHO_T}$wx_cv_spbcdata" >&6
27216
27217 if test $wx_cv_spbcdata = "yes"; then
27218 cat >>confdefs.h <<\_ACEOF
27219#define HAVE_SPBCDATA 1
27220_ACEOF
27221
27222 fi
a848cd7e
SC
27223 fi
27224
27225 if test "$TOOLKIT" = "PM" ; then
27226 TOOLKIT_DIR="os2"
27227 else
27228 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27229 fi
27230
a848cd7e 27231 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27232 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27233 WIDGET_SET=univ
a848cd7e
SC
27234 fi
27235
27236 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27237 DISTDIR="wx\$(TOOLKIT)"
27238else
27239 USE_GUI=0
27240
27241 TOOLKIT_DIR="base"
27242
27243 if test "$USE_WIN32" = 1 ; then
a848cd7e 27244 TOOLKIT="MSW"
a848cd7e
SC
27245 fi
27246
a848cd7e
SC
27247 GUIDIST="BASE_DIST"
27248 DISTDIR="wxBase"
27249fi
27250
27251
27252
27253
27254IODBC_C_SRC=""
27255
27256
27257if test "$TOOLKIT" != "MSW" ; then
27258
27259 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27260
27261 if test "${ac_cv_header_sql_h+set}" = set; then
27262 echo "$as_me:$LINENO: checking for sql.h" >&5
27263echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27264if test "${ac_cv_header_sql_h+set}" = set; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27266fi
27267echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27268echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27269else
27270 # Is the header compilable?
27271echo "$as_me:$LINENO: checking sql.h usability" >&5
27272echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27273cat >conftest.$ac_ext <<_ACEOF
27274/* confdefs.h. */
27275_ACEOF
27276cat confdefs.h >>conftest.$ac_ext
27277cat >>conftest.$ac_ext <<_ACEOF
27278/* end confdefs.h. */
27279$ac_includes_default
27280#include <sql.h>
27281_ACEOF
27282rm -f conftest.$ac_objext
27283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27284 (eval $ac_compile) 2>conftest.er1
a848cd7e 27285 ac_status=$?
ac1cb8d3
VS
27286 grep -v '^ *+' conftest.er1 >conftest.err
27287 rm -f conftest.er1
27288 cat conftest.err >&5
a848cd7e
SC
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } &&
89be85c2
VS
27291 { ac_try='test -z "$ac_c_werror_flag"
27292 || test ! -s conftest.err'
ac1cb8d3
VS
27293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294 (eval $ac_try) 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; } &&
27298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27300 (eval $ac_try) 2>&5
27301 ac_status=$?
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; }; then
27304 ac_header_compiler=yes
27305else
27306 echo "$as_me: failed program was:" >&5
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309ac_header_compiler=no
27310fi
ac1cb8d3 27311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27313echo "${ECHO_T}$ac_header_compiler" >&6
27314
27315# Is the header present?
27316echo "$as_me:$LINENO: checking sql.h presence" >&5
27317echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27318cat >conftest.$ac_ext <<_ACEOF
27319/* confdefs.h. */
27320_ACEOF
27321cat confdefs.h >>conftest.$ac_ext
27322cat >>conftest.$ac_ext <<_ACEOF
27323/* end confdefs.h. */
27324#include <sql.h>
27325_ACEOF
27326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27328 ac_status=$?
27329 grep -v '^ *+' conftest.er1 >conftest.err
27330 rm -f conftest.er1
27331 cat conftest.err >&5
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); } >/dev/null; then
27334 if test -s conftest.err; then
27335 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27337 else
27338 ac_cpp_err=
27339 fi
27340else
27341 ac_cpp_err=yes
27342fi
27343if test -z "$ac_cpp_err"; then
27344 ac_header_preproc=yes
27345else
27346 echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348
27349 ac_header_preproc=no
27350fi
27351rm -f conftest.err conftest.$ac_ext
27352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27353echo "${ECHO_T}$ac_header_preproc" >&6
27354
27355# So? What about this header?
ac1cb8d3
VS
27356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27357 yes:no: )
a848cd7e
SC
27358 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27359echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27360 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27361echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27362 ac_header_preproc=yes
a848cd7e 27363 ;;
ac1cb8d3 27364 no:yes:* )
a848cd7e
SC
27365 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27366echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27367 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27368echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27369 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27370echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27371 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27372echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27373 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27374echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27375 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27376echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27377 (
27378 cat <<\_ASBOX
ac1cb8d3
VS
27379## ----------------------------------------- ##
27380## Report this to wx-dev@lists.wxwidgets.org ##
27381## ----------------------------------------- ##
a848cd7e
SC
27382_ASBOX
27383 ) |
27384 sed "s/^/$as_me: WARNING: /" >&2
27385 ;;
27386esac
27387echo "$as_me:$LINENO: checking for sql.h" >&5
27388echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27389if test "${ac_cv_header_sql_h+set}" = set; then
27390 echo $ECHO_N "(cached) $ECHO_C" >&6
27391else
27392 ac_cv_header_sql_h=$ac_header_preproc
27393fi
27394echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27395echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27396
27397fi
27398if test $ac_cv_header_sql_h = yes; then
27399 found_sql_h=1
27400fi
27401
27402
27403 if test "x$found_sql_h" = "x1" ; then
27404 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27405echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27406if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27407 echo $ECHO_N "(cached) $ECHO_C" >&6
27408else
27409 ac_check_lib_save_LIBS=$LIBS
27410LIBS="-liodbc $LIBS"
27411cat >conftest.$ac_ext <<_ACEOF
27412/* confdefs.h. */
27413_ACEOF
27414cat confdefs.h >>conftest.$ac_ext
27415cat >>conftest.$ac_ext <<_ACEOF
27416/* end confdefs.h. */
27417
27418/* Override any gcc2 internal prototype to avoid an error. */
27419#ifdef __cplusplus
27420extern "C"
27421#endif
27422/* We use char because int might match the return type of a gcc2
27423 builtin and then its argument prototype would still apply. */
27424char SQLAllocEnv ();
27425int
27426main ()
27427{
27428SQLAllocEnv ();
27429 ;
27430 return 0;
27431}
27432_ACEOF
27433rm -f conftest.$ac_objext conftest$ac_exeext
27434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27435 (eval $ac_link) 2>conftest.er1
a848cd7e 27436 ac_status=$?
ac1cb8d3
VS
27437 grep -v '^ *+' conftest.er1 >conftest.err
27438 rm -f conftest.er1
27439 cat conftest.err >&5
a848cd7e
SC
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); } &&
89be85c2
VS
27442 { ac_try='test -z "$ac_c_werror_flag"
27443 || test ! -s conftest.err'
ac1cb8d3
VS
27444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445 (eval $ac_try) 2>&5
27446 ac_status=$?
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); }; } &&
27449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451 (eval $ac_try) 2>&5
27452 ac_status=$?
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; }; then
27455 ac_cv_lib_iodbc_SQLAllocEnv=yes
27456else
27457 echo "$as_me: failed program was:" >&5
27458sed 's/^/| /' conftest.$ac_ext >&5
27459
27460ac_cv_lib_iodbc_SQLAllocEnv=no
27461fi
ac1cb8d3
VS
27462rm -f conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27464LIBS=$ac_check_lib_save_LIBS
27465fi
27466echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27467echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27468if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27469 ODBC_LINK=" -liodbc"
27470else
27471
27472 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27473echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27474if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27475 echo $ECHO_N "(cached) $ECHO_C" >&6
27476else
27477 ac_check_lib_save_LIBS=$LIBS
27478LIBS="-lunixodbc $LIBS"
27479cat >conftest.$ac_ext <<_ACEOF
27480/* confdefs.h. */
27481_ACEOF
27482cat confdefs.h >>conftest.$ac_ext
27483cat >>conftest.$ac_ext <<_ACEOF
27484/* end confdefs.h. */
27485
27486/* Override any gcc2 internal prototype to avoid an error. */
27487#ifdef __cplusplus
27488extern "C"
27489#endif
27490/* We use char because int might match the return type of a gcc2
27491 builtin and then its argument prototype would still apply. */
27492char SQLAllocEnv ();
27493int
27494main ()
27495{
27496SQLAllocEnv ();
27497 ;
27498 return 0;
27499}
27500_ACEOF
27501rm -f conftest.$ac_objext conftest$ac_exeext
27502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27503 (eval $ac_link) 2>conftest.er1
a848cd7e 27504 ac_status=$?
ac1cb8d3
VS
27505 grep -v '^ *+' conftest.er1 >conftest.err
27506 rm -f conftest.er1
27507 cat conftest.err >&5
a848cd7e
SC
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); } &&
89be85c2
VS
27510 { ac_try='test -z "$ac_c_werror_flag"
27511 || test ! -s conftest.err'
ac1cb8d3
VS
27512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513 (eval $ac_try) 2>&5
27514 ac_status=$?
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; } &&
27517 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; }; then
27523 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27524else
27525 echo "$as_me: failed program was:" >&5
27526sed 's/^/| /' conftest.$ac_ext >&5
27527
27528ac_cv_lib_unixodbc_SQLAllocEnv=no
27529fi
ac1cb8d3
VS
27530rm -f conftest.err conftest.$ac_objext \
27531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27532LIBS=$ac_check_lib_save_LIBS
27533fi
27534echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27535echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27536if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27537 ODBC_LINK=" -lunixodbc"
27538else
27539
27540 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27541echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27542if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27543 echo $ECHO_N "(cached) $ECHO_C" >&6
27544else
27545 ac_check_lib_save_LIBS=$LIBS
27546LIBS="-lodbc $LIBS"
27547cat >conftest.$ac_ext <<_ACEOF
27548/* confdefs.h. */
27549_ACEOF
27550cat confdefs.h >>conftest.$ac_ext
27551cat >>conftest.$ac_ext <<_ACEOF
27552/* end confdefs.h. */
27553
27554/* Override any gcc2 internal prototype to avoid an error. */
27555#ifdef __cplusplus
27556extern "C"
27557#endif
27558/* We use char because int might match the return type of a gcc2
27559 builtin and then its argument prototype would still apply. */
27560char SQLAllocEnv ();
27561int
27562main ()
27563{
27564SQLAllocEnv ();
27565 ;
27566 return 0;
27567}
27568_ACEOF
27569rm -f conftest.$ac_objext conftest$ac_exeext
27570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27571 (eval $ac_link) 2>conftest.er1
a848cd7e 27572 ac_status=$?
ac1cb8d3
VS
27573 grep -v '^ *+' conftest.er1 >conftest.err
27574 rm -f conftest.er1
27575 cat conftest.err >&5
a848cd7e
SC
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); } &&
89be85c2
VS
27578 { ac_try='test -z "$ac_c_werror_flag"
27579 || test ! -s conftest.err'
ac1cb8d3
VS
27580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; } &&
27585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27587 (eval $ac_try) 2>&5
27588 ac_status=$?
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; }; then
27591 ac_cv_lib_odbc_SQLAllocEnv=yes
27592else
27593 echo "$as_me: failed program was:" >&5
27594sed 's/^/| /' conftest.$ac_ext >&5
27595
27596ac_cv_lib_odbc_SQLAllocEnv=no
27597fi
ac1cb8d3
VS
27598rm -f conftest.err conftest.$ac_objext \
27599 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27600LIBS=$ac_check_lib_save_LIBS
27601fi
27602echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27603echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27604if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27605 ODBC_LINK=" -lodbc"
27606fi
27607
27608
27609fi
27610
27611
27612fi
27613
27614 fi
27615 if test "x$ODBC_LINK" = "x" ; then
27616 if test "$wxUSE_ODBC" = "sys" ; then
27617 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27618echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27619 { (exit 1); exit 1; }; }
27620 else
27621 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27622echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27623 wxUSE_ODBC=builtin
27624 fi
27625 else
27626 wxUSE_ODBC=sys
27627 fi
27628 fi
27629 if test "$wxUSE_ODBC" != "no" ; then
27630 cat >>confdefs.h <<\_ACEOF
27631#define wxUSE_ODBC 1
27632_ACEOF
27633
27634 if test "$wxUSE_ODBC" = "builtin" ; then
27635 cat >>confdefs.h <<\_ACEOF
27636#define wxUSE_BUILTIN_IODBC 1
27637_ACEOF
27638
27639 fi
27640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27641
27642 WXODBCFLAG="-D_IODBC_"
27643 fi
27644fi
27645
a848cd7e 27646
01cb68df 27647
a848cd7e 27648if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27649 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27650 echo "$as_me:$LINENO: checking for Xinerama" >&5
27651echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27652
27653ac_find_libraries=
27654for ac_dir in $SEARCH_LIB /usr/lib;
27655 do
27656 for ac_extension in a so sl dylib; do
27657 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27658 ac_find_libraries=$ac_dir
27659 break 2
27660 fi
27661 done
27662 done
27663
27664 if test "$ac_find_libraries" != "" ; then
27665
27666 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27667 result=$?
27668 if test $result = 0; then
27669 ac_path_to_link=""
27670 else
27671 ac_path_to_link=" -L$ac_find_libraries"
27672 fi
27673
27674 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27675 LDFLAGS="$LDFLAGS $ac_path_to_link"
27676 fi
27677 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27678 echo "$as_me:$LINENO: result: yes" >&5
27679echo "${ECHO_T}yes" >&6
27680
27681 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27682echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27683
27684ac_find_libraries=
27685for ac_dir in $SEARCH_LIB /usr/lib;
27686 do
27687 for ac_extension in a so sl dylib; do
27688 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27689 ac_find_libraries=$ac_dir
27690 break 2
27691 fi
27692 done
27693 done
27694
27695 if test "$ac_find_libraries" != "" ; then
27696 echo "$as_me:$LINENO: result: yes" >&5
27697echo "${ECHO_T}yes" >&6
27698
27699for ac_header in X11/extensions/xf86vmode.h
27700do
27701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27702echo "$as_me:$LINENO: checking for $ac_header" >&5
27703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27704if eval "test \"\${$as_ac_Header+set}\" = set"; then
27705 echo $ECHO_N "(cached) $ECHO_C" >&6
27706else
27707 cat >conftest.$ac_ext <<_ACEOF
27708/* confdefs.h. */
27709_ACEOF
27710cat confdefs.h >>conftest.$ac_ext
27711cat >>conftest.$ac_ext <<_ACEOF
27712/* end confdefs.h. */
27713
27714 #if HAVE_X11_XLIB_H
27715 #include <X11/Xlib.h>
27716 #endif
27717
27718
27719#include <$ac_header>
27720_ACEOF
27721rm -f conftest.$ac_objext
27722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27723 (eval $ac_compile) 2>conftest.er1
a848cd7e 27724 ac_status=$?
ac1cb8d3
VS
27725 grep -v '^ *+' conftest.er1 >conftest.err
27726 rm -f conftest.er1
27727 cat conftest.err >&5
a848cd7e
SC
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); } &&
89be85c2
VS
27730 { ac_try='test -z "$ac_c_werror_flag"
27731 || test ! -s conftest.err'
ac1cb8d3
VS
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; } &&
27737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739 (eval $ac_try) 2>&5
27740 ac_status=$?
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; }; then
27743 eval "$as_ac_Header=yes"
27744else
27745 echo "$as_me: failed program was:" >&5
27746sed 's/^/| /' conftest.$ac_ext >&5
27747
27748eval "$as_ac_Header=no"
27749fi
ac1cb8d3 27750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27751fi
27752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27754if test `eval echo '${'$as_ac_Header'}'` = yes; then
27755 cat >>confdefs.h <<_ACEOF
27756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27757_ACEOF
27758
27759 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27760
27761fi
27762
27763done
27764
27765 else
27766 echo "$as_me:$LINENO: result: no" >&5
27767echo "${ECHO_T}no" >&6
27768 fi
27769
27770 else
27771 echo "$as_me:$LINENO: result: no" >&5
27772echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27773 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27774echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27775 wxUSE_DISPLAY="no"
27776 fi
01cb68df
RG
27777 elif test "$wxUSE_MSW" = 1; then
27778
27779
27780for ac_header in multimon.h ddraw.h
27781do
27782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27783echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27785if eval "test \"\${$as_ac_Header+set}\" = set"; then
27786 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27787else
5294a27e 27788 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27789/* confdefs.h. */
27790_ACEOF
27791cat confdefs.h >>conftest.$ac_ext
27792cat >>conftest.$ac_ext <<_ACEOF
27793/* end confdefs.h. */
5294a27e
VZ
27794#include <windows.h>
27795
01cb68df
RG
27796#include <$ac_header>
27797_ACEOF
27798rm -f conftest.$ac_objext
27799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27800 (eval $ac_compile) 2>conftest.er1
01cb68df 27801 ac_status=$?
ac1cb8d3
VS
27802 grep -v '^ *+' conftest.er1 >conftest.err
27803 rm -f conftest.er1
27804 cat conftest.err >&5
01cb68df
RG
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } &&
89be85c2
VS
27807 { ac_try='test -z "$ac_c_werror_flag"
27808 || test ! -s conftest.err'
ac1cb8d3
VS
27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; } &&
27814 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27817 ac_status=$?
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; }; then
5294a27e 27820 eval "$as_ac_Header=yes"
01cb68df
RG
27821else
27822 echo "$as_me: failed program was:" >&5
27823sed 's/^/| /' conftest.$ac_ext >&5
27824
5294a27e 27825eval "$as_ac_Header=no"
01cb68df 27826fi
ac1cb8d3 27827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27828fi
27829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27831if test `eval echo '${'$as_ac_Header'}'` = yes; then
27832 cat >>confdefs.h <<_ACEOF
27833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27834_ACEOF
27835
27836else
27837
5294a27e
VZ
27838 wxUSE_DISPLAY="no"
27839 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27840echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27841
27842fi
27843
27844done
27845
a848cd7e
SC
27846 fi
27847fi
27848
27849
27850USE_OPENGL=0
27851if test "$wxUSE_OPENGL" = "yes"; then
27852 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27853 OPENGL_LIBS="-framework OpenGL -framework AGL"
27854 elif test "$wxUSE_MSW" = 1; then
27855 OPENGL_LIBS="-lopengl32 -lglu32"
27856 else
27857
27858
27859ac_find_includes=
27860for ac_dir in $SEARCH_INCLUDE /usr/include;
27861 do
27862 if test -f "$ac_dir/GL/gl.h"; then
27863 ac_find_includes=$ac_dir
27864 break
27865 fi
27866 done
27867
27868 if test "$ac_find_includes" != "" ; then
27869 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27870echo "${ECHO_T}found in $ac_find_includes" >&6
27871
27872 if test "x$ac_find_includes" = "x/usr/include"; then
27873 ac_path_to_include=""
27874 else
27875 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27876 result=$?
27877 if test $result = 0; then
27878 ac_path_to_include=""
27879 else
27880 ac_path_to_include=" -I$ac_find_includes"
27881 fi
27882 fi
27883
27884 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27885 fi
27886
27887 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27888 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27889echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27890if test "${ac_cv_header_GL_gl_h+set}" = set; then
27891 echo $ECHO_N "(cached) $ECHO_C" >&6
27892fi
27893echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27894echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27895else
27896 # Is the header compilable?
27897echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27898echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27899cat >conftest.$ac_ext <<_ACEOF
27900/* confdefs.h. */
27901_ACEOF
27902cat confdefs.h >>conftest.$ac_ext
27903cat >>conftest.$ac_ext <<_ACEOF
27904/* end confdefs.h. */
27905$ac_includes_default
27906#include <GL/gl.h>
27907_ACEOF
27908rm -f conftest.$ac_objext
27909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27910 (eval $ac_compile) 2>conftest.er1
a848cd7e 27911 ac_status=$?
ac1cb8d3
VS
27912 grep -v '^ *+' conftest.er1 >conftest.err
27913 rm -f conftest.er1
27914 cat conftest.err >&5
a848cd7e
SC
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } &&
89be85c2
VS
27917 { ac_try='test -z "$ac_c_werror_flag"
27918 || test ! -s conftest.err'
ac1cb8d3
VS
27919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27920 (eval $ac_try) 2>&5
27921 ac_status=$?
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); }; } &&
27924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926 (eval $ac_try) 2>&5
27927 ac_status=$?
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); }; }; then
27930 ac_header_compiler=yes
27931else
27932 echo "$as_me: failed program was:" >&5
27933sed 's/^/| /' conftest.$ac_ext >&5
27934
27935ac_header_compiler=no
27936fi
ac1cb8d3 27937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27939echo "${ECHO_T}$ac_header_compiler" >&6
27940
27941# Is the header present?
27942echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27943echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27944cat >conftest.$ac_ext <<_ACEOF
27945/* confdefs.h. */
27946_ACEOF
27947cat confdefs.h >>conftest.$ac_ext
27948cat >>conftest.$ac_ext <<_ACEOF
27949/* end confdefs.h. */
27950#include <GL/gl.h>
27951_ACEOF
27952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27954 ac_status=$?
27955 grep -v '^ *+' conftest.er1 >conftest.err
27956 rm -f conftest.er1
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } >/dev/null; then
27960 if test -s conftest.err; then
27961 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27963 else
27964 ac_cpp_err=
27965 fi
27966else
27967 ac_cpp_err=yes
27968fi
27969if test -z "$ac_cpp_err"; then
27970 ac_header_preproc=yes
27971else
27972 echo "$as_me: failed program was:" >&5
27973sed 's/^/| /' conftest.$ac_ext >&5
27974
27975 ac_header_preproc=no
27976fi
27977rm -f conftest.err conftest.$ac_ext
27978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27979echo "${ECHO_T}$ac_header_preproc" >&6
27980
27981# So? What about this header?
ac1cb8d3
VS
27982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27983 yes:no: )
a848cd7e
SC
27984 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27985echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27986 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27987echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27988 ac_header_preproc=yes
a848cd7e 27989 ;;
ac1cb8d3 27990 no:yes:* )
a848cd7e
SC
27991 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27992echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27993 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27994echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27995 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27996echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27997 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27998echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27999 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28000echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28001 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28002echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28003 (
28004 cat <<\_ASBOX
ac1cb8d3
VS
28005## ----------------------------------------- ##
28006## Report this to wx-dev@lists.wxwidgets.org ##
28007## ----------------------------------------- ##
a848cd7e
SC
28008_ASBOX
28009 ) |
28010 sed "s/^/$as_me: WARNING: /" >&2
28011 ;;
28012esac
28013echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28014echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28015if test "${ac_cv_header_GL_gl_h+set}" = set; then
28016 echo $ECHO_N "(cached) $ECHO_C" >&6
28017else
28018 ac_cv_header_GL_gl_h=$ac_header_preproc
28019fi
28020echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28021echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28022
28023fi
28024if test $ac_cv_header_GL_gl_h = yes; then
28025
28026 found_gl=0
28027
28028 echo "$as_me:$LINENO: checking for -lGL" >&5
28029echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28030
28031ac_find_libraries=
28032for ac_dir in $SEARCH_LIB /usr/lib;
28033 do
28034 for ac_extension in a so sl dylib; do
28035 if test -f "$ac_dir/libGL.$ac_extension"; then
28036 ac_find_libraries=$ac_dir
28037 break 2
28038 fi
28039 done
28040 done
28041
28042 if test "$ac_find_libraries" != "" ; then
28043
28044 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28045 result=$?
28046 if test $result = 0; then
28047 ac_path_to_link=""
28048 else
28049 ac_path_to_link=" -L$ac_find_libraries"
28050 fi
28051
28052 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28053 LDFLAGS_GL="$ac_path_to_link"
28054 fi
28055
28056
28057ac_find_libraries=
28058for ac_dir in $SEARCH_LIB /usr/lib;
28059 do
28060 for ac_extension in a so sl dylib; do
28061 if test -f "$ac_dir/libGLU.$ac_extension"; then
28062 ac_find_libraries=$ac_dir
28063 break 2
28064 fi
28065 done
28066 done
28067
28068 if test "$ac_find_libraries" != "" ; then
28069
28070 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28071 result=$?
28072 if test $result = 0; then
28073 ac_path_to_link=""
28074 else
28075 ac_path_to_link=" -L$ac_find_libraries"
28076 fi
28077
28078 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28079 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28080 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28081 fi
28082
28083 found_gl=1
28084 OPENGL_LIBS="-lGL -lGLU"
28085 echo "$as_me:$LINENO: result: yes" >&5
28086echo "${ECHO_T}yes" >&6
28087 fi
28088 fi
28089
28090 if test "$found_gl" != 1; then
28091 echo "$as_me:$LINENO: result: no" >&5
28092echo "${ECHO_T}no" >&6
28093 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28094echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28095
28096ac_find_libraries=
28097for ac_dir in $SEARCH_LIB /usr/lib;
28098 do
28099 for ac_extension in a so sl dylib; do
28100 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28101 ac_find_libraries=$ac_dir
28102 break 2
28103 fi
28104 done
28105 done
28106
28107 if test "$ac_find_libraries" != "" ; then
28108
28109 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28110 result=$?
28111 if test $result = 0; then
28112 ac_path_to_link=""
28113 else
28114 ac_path_to_link=" -L$ac_find_libraries"
28115 fi
28116
28117 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28118 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28119 echo "$as_me:$LINENO: result: yes" >&5
28120echo "${ECHO_T}yes" >&6
28121 else
28122 echo "$as_me:$LINENO: result: no" >&5
28123echo "${ECHO_T}no" >&6
28124 fi
28125 fi
28126
28127fi
28128
28129
28130
28131 if test "x$OPENGL_LIBS" = "x"; then
28132 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28133echo "$as_me: error: OpenGL libraries not available" >&2;}
28134 { (exit 1); exit 1; }; }
28135 fi
28136 fi
28137
28138 if test "$wxUSE_OPENGL" = "yes"; then
28139 USE_OPENGL=1
28140 cat >>confdefs.h <<\_ACEOF
28141#define wxUSE_OPENGL 1
28142_ACEOF
28143
28144 cat >>confdefs.h <<\_ACEOF
28145#define wxUSE_GLCANVAS 1
28146_ACEOF
28147
28148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28149 fi
28150fi
28151
a848cd7e
SC
28152
28153if test -n "$TOOLKIT" ; then
28154 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28155fi
28156
a848cd7e
SC
28157
28158
28159if test "$wxUSE_SHARED" = "yes"; then
28160 case "${host}" in
28161 *-pc-msdosdjgpp )
28162 wxUSE_SHARED=no
28163 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28164echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28165 ;;
28166 esac
28167fi
28168
a848cd7e 28169if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28170
28171
28172 found_versioning=no
28173
28174
28175 if test $found_versioning = no ; then
28176 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28177echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28178if test "${wx_cv_version_script+set}" = set; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28180else
28181
28182 echo "VER_1 { *; };" >conftest.sym
28183 echo "int main() { return 0; }" >conftest.cpp
28184
28185 if { ac_try='
28186 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28187 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28189 (eval $ac_try) 2>&5
28190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } ; then
28193 if test -s conftest.stderr ; then
28194 wx_cv_version_script=no
28195 else
28196 wx_cv_version_script=yes
28197 fi
28198 else
28199 wx_cv_version_script=no
28200 fi
28201 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28202
28203fi
28204echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28205echo "${ECHO_T}$wx_cv_version_script" >&6
28206 if test $wx_cv_version_script = yes ; then
28207 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28208 fi
28209 fi
28210
28211
28212 case "${host}" in
28213 *-*-linux* | *-*-gnu* )
28214 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28215 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28216 ;;
28217
28218 *-*-solaris2* )
28219 if test "$GCC" = yes ; then
28220 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28221
28222 saveLdflags="$LDFLAGS"
28223 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28224 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28225echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28226 cat >conftest.$ac_ext <<_ACEOF
28227/* confdefs.h. */
28228_ACEOF
28229cat confdefs.h >>conftest.$ac_ext
28230cat >>conftest.$ac_ext <<_ACEOF
28231/* end confdefs.h. */
28232
28233int
28234main ()
28235{
28236
28237 ;
28238 return 0;
28239}
28240_ACEOF
28241rm -f conftest.$ac_objext conftest$ac_exeext
28242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28243 (eval $ac_link) 2>conftest.er1
a848cd7e 28244 ac_status=$?
ac1cb8d3
VS
28245 grep -v '^ *+' conftest.er1 >conftest.err
28246 rm -f conftest.er1
28247 cat conftest.err >&5
a848cd7e
SC
28248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249 (exit $ac_status); } &&
89be85c2
VS
28250 { ac_try='test -z "$ac_c_werror_flag"
28251 || test ! -s conftest.err'
ac1cb8d3
VS
28252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253 (eval $ac_try) 2>&5
28254 ac_status=$?
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; } &&
28257 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259 (eval $ac_try) 2>&5
28260 ac_status=$?
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; }; then
28263
28264 echo "$as_me:$LINENO: result: yes" >&5
28265echo "${ECHO_T}yes" >&6
28266 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28267 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28268
28269else
28270 echo "$as_me: failed program was:" >&5
28271sed 's/^/| /' conftest.$ac_ext >&5
28272
28273
28274 echo "$as_me:$LINENO: result: no" >&5
28275echo "${ECHO_T}no" >&6
28276 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28277echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28278 LDFLAGS="$saveLdflags -Wl,-R,/"
28279 cat >conftest.$ac_ext <<_ACEOF
28280/* confdefs.h. */
28281_ACEOF
28282cat confdefs.h >>conftest.$ac_ext
28283cat >>conftest.$ac_ext <<_ACEOF
28284/* end confdefs.h. */
28285
28286int
28287main ()
28288{
28289
28290 ;
28291 return 0;
28292}
28293_ACEOF
28294rm -f conftest.$ac_objext conftest$ac_exeext
28295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28296 (eval $ac_link) 2>conftest.er1
a848cd7e 28297 ac_status=$?
ac1cb8d3
VS
28298 grep -v '^ *+' conftest.er1 >conftest.err
28299 rm -f conftest.er1
28300 cat conftest.err >&5
a848cd7e
SC
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } &&
89be85c2
VS
28303 { ac_try='test -z "$ac_c_werror_flag"
28304 || test ! -s conftest.err'
ac1cb8d3
VS
28305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306 (eval $ac_try) 2>&5
28307 ac_status=$?
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; } &&
28310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312 (eval $ac_try) 2>&5
28313 ac_status=$?
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; }; then
28316
ffa0583f 28317 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28318echo "${ECHO_T}yes" >&6
ffa0583f
RL
28319 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28320 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28321
a848cd7e
SC
28322else
28323 echo "$as_me: failed program was:" >&5
28324sed 's/^/| /' conftest.$ac_ext >&5
28325
28326
28327 echo "$as_me:$LINENO: result: no" >&5
28328echo "${ECHO_T}no" >&6
28329
28330fi
ac1cb8d3
VS
28331rm -f conftest.err conftest.$ac_objext \
28332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28333
28334fi
ac1cb8d3
VS
28335rm -f conftest.err conftest.$ac_objext \
28336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28337 LDFLAGS="$saveLdflags"
28338 else
a848cd7e 28339 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28340 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28341 fi
28342 ;;
28343
28344 powerpc-*-darwin* )
28345 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28346 cat <<EOF >change-install-names
28347#!/bin/sh
28348libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28349inst_cmd="install_name_tool "
28350for i in \${libnames} ; do
28351 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28352done
28353\${inst_cmd} \${3}
28354EOF
28355 chmod +x change-install-names
28356 ;;
28357
28358 *-*-cygwin* | *-*-mingw32* )
28359 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28360 ;;
28361
81f90336
MW
28362 *-*-hpux* )
28363 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
28364 WXCONFIG_RPATH="-Wl,+b,\$libdir"
28365 ;;
28366
a848cd7e 28367 esac
ceec2216 28368
ffa0583f
RL
28369 if test $wxUSE_RPATH = "no"; then
28370 SAMPLES_RPATH_FLAG=''
28371 SAMPLES_RPATH_POSTLINK=''
28372 WXCONFIG_RPATH=''
28373 fi
28374
28375 SHARED=1
28376
28377else
28378
ceec2216
RL
28379 config_linkage_component="-static"
28380 SHARED=0
ffa0583f 28381
ceec2216 28382fi
a848cd7e 28383
a848cd7e 28384
ceec2216
RL
28385UNICODE=0
28386lib_unicode_suffix=
28387WX_CHARTYPE="ansi"
28388if test "$wxUSE_UNICODE" = "yes"; then
28389 lib_unicode_suffix=u
28390 WX_CHARTYPE="unicode"
28391 UNICODE=1
a848cd7e
SC
28392fi
28393
ceec2216
RL
28394lib_debug_suffix=
28395WX_DEBUGTYPE="release"
28396DEBUG_FLAG=0
28397if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28398 lib_debug_suffix=d
28399 WX_DEBUGTYPE="debug"
28400 DEBUG_FLAG=1
28401fi
a848cd7e 28402
ceec2216
RL
28403WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28404WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28405
ceec2216
RL
28406DEBUG_INFO=0
28407if test "$wxUSE_DEBUG_INFO" = "yes"; then
28408 DEBUG_INFO=1
28409fi
a848cd7e 28410
ceec2216 28411WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28412
ceec2216 28413TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28414
ceec2216 28415TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28416
ceec2216
RL
28417if test "$cross_compiling" = "yes"; then
28418 HOST_SUFFIX="-$host_alias"
28419 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28420 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28421fi
28422
dd21ced8 28423WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28424WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28425
28426
28427
a848cd7e 28428if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28429 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28430 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28431
a848cd7e 28432 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28433
28434 # Extract the first word of "Rez", so it can be a program name with args.
28435set dummy Rez; ac_word=$2
28436echo "$as_me:$LINENO: checking for $ac_word" >&5
28437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28438if test "${ac_cv_prog_RESCOMP+set}" = set; then
28439 echo $ECHO_N "(cached) $ECHO_C" >&6
28440else
28441 if test -n "$RESCOMP"; then
28442 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28443else
28444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28445for as_dir in $PATH
28446do
28447 IFS=$as_save_IFS
28448 test -z "$as_dir" && as_dir=.
28449 for ac_exec_ext in '' $ac_executable_extensions; do
28450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28451 ac_cv_prog_RESCOMP="Rez"
28452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28453 break 2
28454 fi
28455done
28456done
28457
28458 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28459fi
28460fi
28461RESCOMP=$ac_cv_prog_RESCOMP
28462if test -n "$RESCOMP"; then
28463 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28464echo "${ECHO_T}$RESCOMP" >&6
28465else
28466 echo "$as_me:$LINENO: result: no" >&5
28467echo "${ECHO_T}no" >&6
28468fi
28469
28470 # Extract the first word of "DeRez", so it can be a program name with args.
28471set dummy DeRez; ac_word=$2
28472echo "$as_me:$LINENO: checking for $ac_word" >&5
28473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28474if test "${ac_cv_prog_DEREZ+set}" = set; then
28475 echo $ECHO_N "(cached) $ECHO_C" >&6
28476else
28477 if test -n "$DEREZ"; then
28478 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28479else
28480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28481for as_dir in $PATH
28482do
28483 IFS=$as_save_IFS
28484 test -z "$as_dir" && as_dir=.
28485 for ac_exec_ext in '' $ac_executable_extensions; do
28486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28487 ac_cv_prog_DEREZ="DeRez"
28488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28489 break 2
28490 fi
28491done
28492done
28493
28494 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28495fi
28496fi
28497DEREZ=$ac_cv_prog_DEREZ
28498if test -n "$DEREZ"; then
28499 echo "$as_me:$LINENO: result: $DEREZ" >&5
28500echo "${ECHO_T}$DEREZ" >&6
28501else
28502 echo "$as_me:$LINENO: result: no" >&5
28503echo "${ECHO_T}no" >&6
28504fi
28505
28506 # Extract the first word of "SetFile", so it can be a program name with args.
28507set dummy SetFile; ac_word=$2
28508echo "$as_me:$LINENO: checking for $ac_word" >&5
28509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28510if test "${ac_cv_prog_SETFILE+set}" = set; then
28511 echo $ECHO_N "(cached) $ECHO_C" >&6
28512else
28513 if test -n "$SETFILE"; then
28514 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28515else
28516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28517for as_dir in $PATH
28518do
28519 IFS=$as_save_IFS
28520 test -z "$as_dir" && as_dir=.
28521 for ac_exec_ext in '' $ac_executable_extensions; do
28522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28523 ac_cv_prog_SETFILE="SetFile"
28524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28525 break 2
28526 fi
28527done
28528done
28529
28530 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28531fi
28532fi
28533SETFILE=$ac_cv_prog_SETFILE
28534if test -n "$SETFILE"; then
28535 echo "$as_me:$LINENO: result: $SETFILE" >&5
28536echo "${ECHO_T}$SETFILE" >&6
28537else
28538 echo "$as_me:$LINENO: result: no" >&5
28539echo "${ECHO_T}no" >&6
28540fi
28541
28542
28543 MACSETFILE="\$(SETFILE)"
28544
28545 if test "$wxUSE_MAC" = 1; then
28546 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28547
28548 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28549 else
28550 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28551 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28552 fi
28553else
ffa0583f
RL
28554 MACSETFILE="@true"
28555 MACRESWXCONFIG="@true"
a848cd7e
SC
28556
28557 if test "$wxUSE_PM" = 1; then
28558 MACRESCOMP="emxbind -ep"
28559 else
ffa0583f 28560 MACRESCOMP="@true"
a848cd7e
SC
28561 fi
28562fi
28563
28564
28565
28566echo "$as_me:$LINENO: checking for mode_t" >&5
28567echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28568if test "${ac_cv_type_mode_t+set}" = set; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28570else
28571 cat >conftest.$ac_ext <<_ACEOF
28572/* confdefs.h. */
28573_ACEOF
28574cat confdefs.h >>conftest.$ac_ext
28575cat >>conftest.$ac_ext <<_ACEOF
28576/* end confdefs.h. */
28577$ac_includes_default
28578int
28579main ()
28580{
28581if ((mode_t *) 0)
28582 return 0;
28583if (sizeof (mode_t))
28584 return 0;
28585 ;
28586 return 0;
28587}
28588_ACEOF
28589rm -f conftest.$ac_objext
28590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28591 (eval $ac_compile) 2>conftest.er1
a848cd7e 28592 ac_status=$?
ac1cb8d3
VS
28593 grep -v '^ *+' conftest.er1 >conftest.err
28594 rm -f conftest.er1
28595 cat conftest.err >&5
a848cd7e
SC
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); } &&
89be85c2
VS
28598 { ac_try='test -z "$ac_c_werror_flag"
28599 || test ! -s conftest.err'
ac1cb8d3
VS
28600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28601 (eval $ac_try) 2>&5
28602 ac_status=$?
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); }; } &&
28605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607 (eval $ac_try) 2>&5
28608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; }; then
28611 ac_cv_type_mode_t=yes
28612else
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616ac_cv_type_mode_t=no
28617fi
ac1cb8d3 28618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28619fi
28620echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28621echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28622if test $ac_cv_type_mode_t = yes; then
28623 :
28624else
28625
28626cat >>confdefs.h <<_ACEOF
28627#define mode_t int
28628_ACEOF
28629
28630fi
28631
28632echo "$as_me:$LINENO: checking for off_t" >&5
28633echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28634if test "${ac_cv_type_off_t+set}" = set; then
28635 echo $ECHO_N "(cached) $ECHO_C" >&6
28636else
28637 cat >conftest.$ac_ext <<_ACEOF
28638/* confdefs.h. */
28639_ACEOF
28640cat confdefs.h >>conftest.$ac_ext
28641cat >>conftest.$ac_ext <<_ACEOF
28642/* end confdefs.h. */
28643$ac_includes_default
28644int
28645main ()
28646{
28647if ((off_t *) 0)
28648 return 0;
28649if (sizeof (off_t))
28650 return 0;
28651 ;
28652 return 0;
28653}
28654_ACEOF
28655rm -f conftest.$ac_objext
28656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28657 (eval $ac_compile) 2>conftest.er1
a848cd7e 28658 ac_status=$?
ac1cb8d3
VS
28659 grep -v '^ *+' conftest.er1 >conftest.err
28660 rm -f conftest.er1
28661 cat conftest.err >&5
a848cd7e
SC
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); } &&
89be85c2
VS
28664 { ac_try='test -z "$ac_c_werror_flag"
28665 || test ! -s conftest.err'
ac1cb8d3
VS
28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28668 ac_status=$?
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; } &&
28671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28673 (eval $ac_try) 2>&5
28674 ac_status=$?
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; }; then
28677 ac_cv_type_off_t=yes
28678else
28679 echo "$as_me: failed program was:" >&5
28680sed 's/^/| /' conftest.$ac_ext >&5
28681
28682ac_cv_type_off_t=no
28683fi
ac1cb8d3 28684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28685fi
28686echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28687echo "${ECHO_T}$ac_cv_type_off_t" >&6
28688if test $ac_cv_type_off_t = yes; then
28689 :
28690else
28691
28692cat >>confdefs.h <<_ACEOF
28693#define off_t long
28694_ACEOF
28695
28696fi
28697
28698echo "$as_me:$LINENO: checking for pid_t" >&5
28699echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28700if test "${ac_cv_type_pid_t+set}" = set; then
28701 echo $ECHO_N "(cached) $ECHO_C" >&6
28702else
28703 cat >conftest.$ac_ext <<_ACEOF
28704/* confdefs.h. */
28705_ACEOF
28706cat confdefs.h >>conftest.$ac_ext
28707cat >>conftest.$ac_ext <<_ACEOF
28708/* end confdefs.h. */
28709$ac_includes_default
28710int
28711main ()
28712{
28713if ((pid_t *) 0)
28714 return 0;
28715if (sizeof (pid_t))
28716 return 0;
28717 ;
28718 return 0;
28719}
28720_ACEOF
28721rm -f conftest.$ac_objext
28722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28723 (eval $ac_compile) 2>conftest.er1
a848cd7e 28724 ac_status=$?
ac1cb8d3
VS
28725 grep -v '^ *+' conftest.er1 >conftest.err
28726 rm -f conftest.er1
28727 cat conftest.err >&5
a848cd7e
SC
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); } &&
89be85c2
VS
28730 { ac_try='test -z "$ac_c_werror_flag"
28731 || test ! -s conftest.err'
ac1cb8d3
VS
28732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733 (eval $ac_try) 2>&5
28734 ac_status=$?
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; } &&
28737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28740 ac_status=$?
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; }; then
28743 ac_cv_type_pid_t=yes
28744else
28745 echo "$as_me: failed program was:" >&5
28746sed 's/^/| /' conftest.$ac_ext >&5
28747
28748ac_cv_type_pid_t=no
28749fi
ac1cb8d3 28750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28751fi
28752echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28753echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28754if test $ac_cv_type_pid_t = yes; then
28755 :
28756else
28757
28758cat >>confdefs.h <<_ACEOF
28759#define pid_t int
28760_ACEOF
28761
28762fi
28763
28764echo "$as_me:$LINENO: checking for size_t" >&5
28765echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28766if test "${ac_cv_type_size_t+set}" = set; then
28767 echo $ECHO_N "(cached) $ECHO_C" >&6
28768else
28769 cat >conftest.$ac_ext <<_ACEOF
28770/* confdefs.h. */
28771_ACEOF
28772cat confdefs.h >>conftest.$ac_ext
28773cat >>conftest.$ac_ext <<_ACEOF
28774/* end confdefs.h. */
28775$ac_includes_default
28776int
28777main ()
28778{
28779if ((size_t *) 0)
28780 return 0;
28781if (sizeof (size_t))
28782 return 0;
28783 ;
28784 return 0;
28785}
28786_ACEOF
28787rm -f conftest.$ac_objext
28788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28789 (eval $ac_compile) 2>conftest.er1
a848cd7e 28790 ac_status=$?
ac1cb8d3
VS
28791 grep -v '^ *+' conftest.er1 >conftest.err
28792 rm -f conftest.er1
28793 cat conftest.err >&5
a848cd7e
SC
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); } &&
89be85c2
VS
28796 { ac_try='test -z "$ac_c_werror_flag"
28797 || test ! -s conftest.err'
ac1cb8d3
VS
28798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28799 (eval $ac_try) 2>&5
28800 ac_status=$?
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); }; } &&
28803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 (eval $ac_try) 2>&5
28806 ac_status=$?
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); }; }; then
28809 ac_cv_type_size_t=yes
28810else
28811 echo "$as_me: failed program was:" >&5
28812sed 's/^/| /' conftest.$ac_ext >&5
28813
28814ac_cv_type_size_t=no
28815fi
ac1cb8d3 28816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28817fi
28818echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28819echo "${ECHO_T}$ac_cv_type_size_t" >&6
28820if test $ac_cv_type_size_t = yes; then
28821 :
28822else
28823
28824cat >>confdefs.h <<_ACEOF
28825#define size_t unsigned
28826_ACEOF
28827
28828fi
28829
28830echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28831echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28832if test "${ac_cv_type_uid_t+set}" = set; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28834else
28835 cat >conftest.$ac_ext <<_ACEOF
28836/* confdefs.h. */
28837_ACEOF
28838cat confdefs.h >>conftest.$ac_ext
28839cat >>conftest.$ac_ext <<_ACEOF
28840/* end confdefs.h. */
28841#include <sys/types.h>
28842
28843_ACEOF
28844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28845 $EGREP "uid_t" >/dev/null 2>&1; then
28846 ac_cv_type_uid_t=yes
28847else
28848 ac_cv_type_uid_t=no
28849fi
28850rm -f conftest*
28851
28852fi
28853echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28854echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28855if test $ac_cv_type_uid_t = no; then
28856
28857cat >>confdefs.h <<\_ACEOF
28858#define uid_t int
28859_ACEOF
28860
28861
28862cat >>confdefs.h <<\_ACEOF
28863#define gid_t int
28864_ACEOF
28865
28866fi
28867
28868
d51253e8
RL
28869echo "$as_me:$LINENO: checking for ssize_t" >&5
28870echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28871if test "${ac_cv_type_ssize_t+set}" = set; then
28872 echo $ECHO_N "(cached) $ECHO_C" >&6
28873else
28874 cat >conftest.$ac_ext <<_ACEOF
28875/* confdefs.h. */
28876_ACEOF
28877cat confdefs.h >>conftest.$ac_ext
28878cat >>conftest.$ac_ext <<_ACEOF
28879/* end confdefs.h. */
28880$ac_includes_default
28881int
28882main ()
28883{
28884if ((ssize_t *) 0)
28885 return 0;
28886if (sizeof (ssize_t))
28887 return 0;
28888 ;
28889 return 0;
28890}
28891_ACEOF
28892rm -f conftest.$ac_objext
28893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28894 (eval $ac_compile) 2>conftest.er1
28895 ac_status=$?
28896 grep -v '^ *+' conftest.er1 >conftest.err
28897 rm -f conftest.er1
28898 cat conftest.err >&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } &&
89be85c2
VS
28901 { ac_try='test -z "$ac_c_werror_flag"
28902 || test ! -s conftest.err'
d51253e8
RL
28903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 (eval $ac_try) 2>&5
28905 ac_status=$?
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; } &&
28908 { ac_try='test -s conftest.$ac_objext'
28909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910 (eval $ac_try) 2>&5
28911 ac_status=$?
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; }; then
28914 ac_cv_type_ssize_t=yes
28915else
28916 echo "$as_me: failed program was:" >&5
28917sed 's/^/| /' conftest.$ac_ext >&5
28918
28919ac_cv_type_ssize_t=no
28920fi
28921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28922fi
28923echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28924echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28925if test $ac_cv_type_ssize_t = yes; then
28926
28927cat >>confdefs.h <<_ACEOF
28928#define HAVE_SSIZE_T 1
28929_ACEOF
28930
28931
28932fi
28933
28934
a848cd7e
SC
28935
28936
28937ac_ext=cc
28938ac_cpp='$CXXCPP $CPPFLAGS'
28939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28942
28943echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28944echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28945if test "${wx_cv_size_t_is_uint+set}" = set; then
28946 echo $ECHO_N "(cached) $ECHO_C" >&6
28947else
28948
28949 cat >conftest.$ac_ext <<_ACEOF
28950/* confdefs.h. */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h. */
28955#include <stddef.h>
28956int
28957main ()
28958{
28959
28960 return 0; }
28961
28962 struct Foo { void foo(size_t); void foo(unsigned int); };
28963
28964 int bar() {
28965
28966 ;
28967 return 0;
28968}
28969_ACEOF
28970rm -f conftest.$ac_objext
28971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28972 (eval $ac_compile) 2>conftest.er1
a848cd7e 28973 ac_status=$?
ac1cb8d3
VS
28974 grep -v '^ *+' conftest.er1 >conftest.err
28975 rm -f conftest.er1
28976 cat conftest.err >&5
a848cd7e
SC
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } &&
89be85c2
VS
28979 { ac_try='test -z "$ac_cxx_werror_flag"
28980 || test ! -s conftest.err'
ac1cb8d3
VS
28981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982 (eval $ac_try) 2>&5
28983 ac_status=$?
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; } &&
28986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988 (eval $ac_try) 2>&5
28989 ac_status=$?
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; }; then
28992 wx_cv_size_t_is_uint=no
28993else
28994 echo "$as_me: failed program was:" >&5
28995sed 's/^/| /' conftest.$ac_ext >&5
28996
28997wx_cv_size_t_is_uint=yes
28998
28999fi
ac1cb8d3 29000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29001
29002
29003fi
29004echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29005echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29006
29007if test "$wx_cv_size_t_is_uint" = "yes"; then
29008 cat >>confdefs.h <<\_ACEOF
29009#define wxSIZE_T_IS_UINT 1
29010_ACEOF
29011
29012else
29013 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29014echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29015if test "${wx_cv_size_t_is_ulong+set}" = set; then
29016 echo $ECHO_N "(cached) $ECHO_C" >&6
29017else
29018 cat >conftest.$ac_ext <<_ACEOF
29019/* confdefs.h. */
29020_ACEOF
29021cat confdefs.h >>conftest.$ac_ext
29022cat >>conftest.$ac_ext <<_ACEOF
29023/* end confdefs.h. */
29024#include <stddef.h>
29025int
29026main ()
29027{
29028
29029 return 0; }
29030
29031 struct Foo { void foo(size_t); void foo(unsigned long); };
29032
29033 int bar() {
29034
29035 ;
29036 return 0;
29037}
29038_ACEOF
29039rm -f conftest.$ac_objext
29040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29041 (eval $ac_compile) 2>conftest.er1
a848cd7e 29042 ac_status=$?
ac1cb8d3
VS
29043 grep -v '^ *+' conftest.er1 >conftest.err
29044 rm -f conftest.er1
29045 cat conftest.err >&5
a848cd7e
SC
29046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047 (exit $ac_status); } &&
89be85c2
VS
29048 { ac_try='test -z "$ac_cxx_werror_flag"
29049 || test ! -s conftest.err'
ac1cb8d3
VS
29050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29051 (eval $ac_try) 2>&5
29052 ac_status=$?
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; } &&
29055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29057 (eval $ac_try) 2>&5
29058 ac_status=$?
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); }; }; then
29061 wx_cv_size_t_is_ulong=no
29062else
29063 echo "$as_me: failed program was:" >&5
29064sed 's/^/| /' conftest.$ac_ext >&5
29065
29066wx_cv_size_t_is_ulong=yes
29067
29068fi
ac1cb8d3 29069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29070
29071fi
29072echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29073echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29074
29075 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29076 cat >>confdefs.h <<\_ACEOF
29077#define wxSIZE_T_IS_ULONG 1
29078_ACEOF
29079
29080 fi
29081fi
29082
29083ac_ext=c
29084ac_cpp='$CPP $CPPFLAGS'
29085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29087ac_compiler_gnu=$ac_cv_c_compiler_gnu
29088
29089
29090
29091echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29092echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29093if test "${wx_cv_struct_pw_gecos+set}" = set; then
29094 echo $ECHO_N "(cached) $ECHO_C" >&6
29095else
29096
29097 cat >conftest.$ac_ext <<_ACEOF
29098/* confdefs.h. */
29099_ACEOF
29100cat confdefs.h >>conftest.$ac_ext
29101cat >>conftest.$ac_ext <<_ACEOF
29102/* end confdefs.h. */
29103#include <pwd.h>
29104int
29105main ()
29106{
29107
29108 char *p;
29109 struct passwd *pw;
29110 p = pw->pw_gecos;
29111
29112 ;
29113 return 0;
29114}
29115_ACEOF
29116rm -f conftest.$ac_objext
29117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29118 (eval $ac_compile) 2>conftest.er1
a848cd7e 29119 ac_status=$?
ac1cb8d3
VS
29120 grep -v '^ *+' conftest.er1 >conftest.err
29121 rm -f conftest.er1
29122 cat conftest.err >&5
a848cd7e
SC
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); } &&
89be85c2
VS
29125 { ac_try='test -z "$ac_c_werror_flag"
29126 || test ! -s conftest.err'
ac1cb8d3
VS
29127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128 (eval $ac_try) 2>&5
29129 ac_status=$?
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; } &&
29132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29135 ac_status=$?
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
29138
29139 wx_cv_struct_pw_gecos=yes
29140
29141else
29142 echo "$as_me: failed program was:" >&5
29143sed 's/^/| /' conftest.$ac_ext >&5
29144
29145
29146 wx_cv_struct_pw_gecos=no
29147
29148
29149fi
ac1cb8d3 29150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29151
29152
29153fi
29154echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29155echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29156
29157if test "$wx_cv_struct_pw_gecos" = "yes"; then
29158 cat >>confdefs.h <<\_ACEOF
29159#define HAVE_PW_GECOS 1
29160_ACEOF
29161
29162fi
29163
29164
29165if test "$wx_cv_sizeof_wchar_t" != "0"; then
29166 cat >>confdefs.h <<\_ACEOF
29167#define wxUSE_WCHAR_T 1
29168_ACEOF
29169
29170
29171 WCSLEN_FOUND=0
29172 WCHAR_LINK=
29173
29174for ac_func in wcslen
29175do
29176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29177echo "$as_me:$LINENO: checking for $ac_func" >&5
29178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29179if eval "test \"\${$as_ac_var+set}\" = set"; then
29180 echo $ECHO_N "(cached) $ECHO_C" >&6
29181else
29182 cat >conftest.$ac_ext <<_ACEOF
29183/* confdefs.h. */
29184_ACEOF
29185cat confdefs.h >>conftest.$ac_ext
29186cat >>conftest.$ac_ext <<_ACEOF
29187/* end confdefs.h. */
ac1cb8d3
VS
29188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29190#define $ac_func innocuous_$ac_func
29191
a848cd7e
SC
29192/* System header to define __stub macros and hopefully few prototypes,
29193 which can conflict with char $ac_func (); below.
29194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29195 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29196
a848cd7e
SC
29197#ifdef __STDC__
29198# include <limits.h>
29199#else
29200# include <assert.h>
29201#endif
ac1cb8d3
VS
29202
29203#undef $ac_func
29204
a848cd7e
SC
29205/* Override any gcc2 internal prototype to avoid an error. */
29206#ifdef __cplusplus
29207extern "C"
29208{
29209#endif
29210/* We use char because int might match the return type of a gcc2
29211 builtin and then its argument prototype would still apply. */
29212char $ac_func ();
29213/* The GNU C library defines this for functions which it implements
29214 to always fail with ENOSYS. Some functions are actually named
29215 something starting with __ and the normal name is an alias. */
29216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29217choke me
29218#else
29219char (*f) () = $ac_func;
29220#endif
29221#ifdef __cplusplus
29222}
29223#endif
29224
29225int
29226main ()
29227{
29228return f != $ac_func;
29229 ;
29230 return 0;
29231}
29232_ACEOF
29233rm -f conftest.$ac_objext conftest$ac_exeext
29234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29235 (eval $ac_link) 2>conftest.er1
a848cd7e 29236 ac_status=$?
ac1cb8d3
VS
29237 grep -v '^ *+' conftest.er1 >conftest.err
29238 rm -f conftest.er1
29239 cat conftest.err >&5
a848cd7e
SC
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); } &&
89be85c2
VS
29242 { ac_try='test -z "$ac_c_werror_flag"
29243 || test ! -s conftest.err'
ac1cb8d3
VS
29244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245 (eval $ac_try) 2>&5
29246 ac_status=$?
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; } &&
29249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29251 (eval $ac_try) 2>&5
29252 ac_status=$?
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); }; }; then
29255 eval "$as_ac_var=yes"
29256else
29257 echo "$as_me: failed program was:" >&5
29258sed 's/^/| /' conftest.$ac_ext >&5
29259
29260eval "$as_ac_var=no"
29261fi
ac1cb8d3
VS
29262rm -f conftest.err conftest.$ac_objext \
29263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29264fi
29265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29267if test `eval echo '${'$as_ac_var'}'` = yes; then
29268 cat >>confdefs.h <<_ACEOF
29269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29270_ACEOF
29271 WCSLEN_FOUND=1
29272fi
29273done
29274
29275
29276 if test "$WCSLEN_FOUND" = 0; then
29277 if test "$TOOLKIT" = "MSW"; then
29278 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29279echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29280if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29282else
29283 ac_check_lib_save_LIBS=$LIBS
29284LIBS="-lmsvcrt $LIBS"
29285cat >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
29292/* Override any gcc2 internal prototype to avoid an error. */
29293#ifdef __cplusplus
29294extern "C"
29295#endif
29296/* We use char because int might match the return type of a gcc2
29297 builtin and then its argument prototype would still apply. */
29298char wcslen ();
29299int
29300main ()
29301{
29302wcslen ();
29303 ;
29304 return 0;
29305}
29306_ACEOF
29307rm -f conftest.$ac_objext conftest$ac_exeext
29308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29309 (eval $ac_link) 2>conftest.er1
a848cd7e 29310 ac_status=$?
ac1cb8d3
VS
29311 grep -v '^ *+' conftest.er1 >conftest.err
29312 rm -f conftest.er1
29313 cat conftest.err >&5
a848cd7e
SC
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); } &&
89be85c2
VS
29316 { ac_try='test -z "$ac_c_werror_flag"
29317 || test ! -s conftest.err'
ac1cb8d3
VS
29318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29319 (eval $ac_try) 2>&5
29320 ac_status=$?
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322 (exit $ac_status); }; } &&
29323 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29325 (eval $ac_try) 2>&5
29326 ac_status=$?
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; }; then
29329 ac_cv_lib_msvcrt_wcslen=yes
29330else
29331 echo "$as_me: failed program was:" >&5
29332sed 's/^/| /' conftest.$ac_ext >&5
29333
29334ac_cv_lib_msvcrt_wcslen=no
29335fi
ac1cb8d3
VS
29336rm -f conftest.err conftest.$ac_objext \
29337 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29338LIBS=$ac_check_lib_save_LIBS
29339fi
29340echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29341echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29342if test $ac_cv_lib_msvcrt_wcslen = yes; then
29343 WCHAR_OK=1
29344fi
29345
29346 else
29347 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29348echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29349if test "${ac_cv_lib_w_wcslen+set}" = set; then
29350 echo $ECHO_N "(cached) $ECHO_C" >&6
29351else
29352 ac_check_lib_save_LIBS=$LIBS
29353LIBS="-lw $LIBS"
29354cat >conftest.$ac_ext <<_ACEOF
29355/* confdefs.h. */
29356_ACEOF
29357cat confdefs.h >>conftest.$ac_ext
29358cat >>conftest.$ac_ext <<_ACEOF
29359/* end confdefs.h. */
29360
29361/* Override any gcc2 internal prototype to avoid an error. */
29362#ifdef __cplusplus
29363extern "C"
29364#endif
29365/* We use char because int might match the return type of a gcc2
29366 builtin and then its argument prototype would still apply. */
29367char wcslen ();
29368int
29369main ()
29370{
29371wcslen ();
29372 ;
29373 return 0;
29374}
29375_ACEOF
29376rm -f conftest.$ac_objext conftest$ac_exeext
29377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29378 (eval $ac_link) 2>conftest.er1
a848cd7e 29379 ac_status=$?
ac1cb8d3
VS
29380 grep -v '^ *+' conftest.er1 >conftest.err
29381 rm -f conftest.er1
29382 cat conftest.err >&5
a848cd7e
SC
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); } &&
89be85c2
VS
29385 { ac_try='test -z "$ac_c_werror_flag"
29386 || test ! -s conftest.err'
ac1cb8d3
VS
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29389 ac_status=$?
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; } &&
29392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29395 ac_status=$?
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; }; then
29398 ac_cv_lib_w_wcslen=yes
29399else
29400 echo "$as_me: failed program was:" >&5
29401sed 's/^/| /' conftest.$ac_ext >&5
29402
29403ac_cv_lib_w_wcslen=no
29404fi
ac1cb8d3
VS
29405rm -f conftest.err conftest.$ac_objext \
29406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29407LIBS=$ac_check_lib_save_LIBS
29408fi
29409echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29410echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29411if test $ac_cv_lib_w_wcslen = yes; then
29412
29413 WCHAR_LINK=" -lw"
29414 WCSLEN_FOUND=1
29415
29416fi
29417
29418 fi
29419 fi
29420
29421 if test "$WCSLEN_FOUND" = 1; then
29422 cat >>confdefs.h <<\_ACEOF
29423#define HAVE_WCSLEN 1
29424_ACEOF
29425
29426 fi
29427
81f90336 29428 if test "$USE_HPUX" = 1; then
473276a9
VS
29429 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29430 fi
29431
a848cd7e
SC
29432
29433for ac_func in wcsrtombs
29434do
29435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29436echo "$as_me:$LINENO: checking for $ac_func" >&5
29437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29438if eval "test \"\${$as_ac_var+set}\" = set"; then
29439 echo $ECHO_N "(cached) $ECHO_C" >&6
29440else
29441 cat >conftest.$ac_ext <<_ACEOF
29442/* confdefs.h. */
29443_ACEOF
29444cat confdefs.h >>conftest.$ac_ext
29445cat >>conftest.$ac_ext <<_ACEOF
29446/* end confdefs.h. */
ac1cb8d3
VS
29447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29449#define $ac_func innocuous_$ac_func
29450
a848cd7e
SC
29451/* System header to define __stub macros and hopefully few prototypes,
29452 which can conflict with char $ac_func (); below.
29453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29454 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29455
a848cd7e
SC
29456#ifdef __STDC__
29457# include <limits.h>
29458#else
29459# include <assert.h>
29460#endif
ac1cb8d3
VS
29461
29462#undef $ac_func
29463
a848cd7e
SC
29464/* Override any gcc2 internal prototype to avoid an error. */
29465#ifdef __cplusplus
29466extern "C"
29467{
29468#endif
29469/* We use char because int might match the return type of a gcc2
29470 builtin and then its argument prototype would still apply. */
29471char $ac_func ();
29472/* The GNU C library defines this for functions which it implements
29473 to always fail with ENOSYS. Some functions are actually named
29474 something starting with __ and the normal name is an alias. */
29475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29476choke me
29477#else
29478char (*f) () = $ac_func;
29479#endif
29480#ifdef __cplusplus
29481}
29482#endif
29483
29484int
29485main ()
29486{
29487return f != $ac_func;
29488 ;
29489 return 0;
29490}
29491_ACEOF
29492rm -f conftest.$ac_objext conftest$ac_exeext
29493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29494 (eval $ac_link) 2>conftest.er1
a848cd7e 29495 ac_status=$?
ac1cb8d3
VS
29496 grep -v '^ *+' conftest.er1 >conftest.err
29497 rm -f conftest.er1
29498 cat conftest.err >&5
a848cd7e
SC
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); } &&
89be85c2
VS
29501 { ac_try='test -z "$ac_c_werror_flag"
29502 || test ! -s conftest.err'
ac1cb8d3
VS
29503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29504 (eval $ac_try) 2>&5
29505 ac_status=$?
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); }; } &&
29508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29510 (eval $ac_try) 2>&5
29511 ac_status=$?
29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513 (exit $ac_status); }; }; then
29514 eval "$as_ac_var=yes"
29515else
29516 echo "$as_me: failed program was:" >&5
29517sed 's/^/| /' conftest.$ac_ext >&5
29518
29519eval "$as_ac_var=no"
29520fi
ac1cb8d3
VS
29521rm -f conftest.err conftest.$ac_objext \
29522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29523fi
29524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29526if test `eval echo '${'$as_ac_var'}'` = yes; then
29527 cat >>confdefs.h <<_ACEOF
29528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29529_ACEOF
29530
29531fi
29532done
29533
29534else
29535 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29536echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29537fi
29538
29539
29540
29541ac_ext=cc
29542ac_cpp='$CXXCPP $CPPFLAGS'
29543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29546
29547
29548
29549for ac_func in vsnprintf
29550do
29551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29552echo "$as_me:$LINENO: checking for $ac_func" >&5
29553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29554if eval "test \"\${$as_ac_var+set}\" = set"; then
29555 echo $ECHO_N "(cached) $ECHO_C" >&6
29556else
29557 cat >conftest.$ac_ext <<_ACEOF
29558/* confdefs.h. */
29559_ACEOF
29560cat confdefs.h >>conftest.$ac_ext
29561cat >>conftest.$ac_ext <<_ACEOF
29562/* end confdefs.h. */
ac1cb8d3
VS
29563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29565#define $ac_func innocuous_$ac_func
29566
a848cd7e
SC
29567/* System header to define __stub macros and hopefully few prototypes,
29568 which can conflict with char $ac_func (); below.
29569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29570 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29571
a848cd7e
SC
29572#ifdef __STDC__
29573# include <limits.h>
29574#else
29575# include <assert.h>
29576#endif
ac1cb8d3
VS
29577
29578#undef $ac_func
29579
a848cd7e
SC
29580/* Override any gcc2 internal prototype to avoid an error. */
29581#ifdef __cplusplus
29582extern "C"
29583{
29584#endif
29585/* We use char because int might match the return type of a gcc2
29586 builtin and then its argument prototype would still apply. */
29587char $ac_func ();
29588/* The GNU C library defines this for functions which it implements
29589 to always fail with ENOSYS. Some functions are actually named
29590 something starting with __ and the normal name is an alias. */
29591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29592choke me
29593#else
29594char (*f) () = $ac_func;
29595#endif
29596#ifdef __cplusplus
29597}
29598#endif
29599
29600int
29601main ()
29602{
29603return f != $ac_func;
29604 ;
29605 return 0;
29606}
29607_ACEOF
29608rm -f conftest.$ac_objext conftest$ac_exeext
29609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29610 (eval $ac_link) 2>conftest.er1
a848cd7e 29611 ac_status=$?
ac1cb8d3
VS
29612 grep -v '^ *+' conftest.er1 >conftest.err
29613 rm -f conftest.er1
29614 cat conftest.err >&5
a848cd7e
SC
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); } &&
89be85c2
VS
29617 { ac_try='test -z "$ac_cxx_werror_flag"
29618 || test ! -s conftest.err'
ac1cb8d3
VS
29619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620 (eval $ac_try) 2>&5
29621 ac_status=$?
29622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623 (exit $ac_status); }; } &&
29624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626 (eval $ac_try) 2>&5
29627 ac_status=$?
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); }; }; then
29630 eval "$as_ac_var=yes"
29631else
29632 echo "$as_me: failed program was:" >&5
29633sed 's/^/| /' conftest.$ac_ext >&5
29634
29635eval "$as_ac_var=no"
29636fi
ac1cb8d3
VS
29637rm -f conftest.err conftest.$ac_objext \
29638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29639fi
29640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29642if test `eval echo '${'$as_ac_var'}'` = yes; then
29643 cat >>confdefs.h <<_ACEOF
29644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29645_ACEOF
29646
29647fi
29648done
29649
29650
29651if test "$ac_cv_func_vsnprintf" = "yes"; then
29652 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29653echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29654if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29656else
29657
29658 cat >conftest.$ac_ext <<_ACEOF
29659/* confdefs.h. */
29660_ACEOF
29661cat confdefs.h >>conftest.$ac_ext
29662cat >>conftest.$ac_ext <<_ACEOF
29663/* end confdefs.h. */
29664
29665 #include <stdio.h>
29666 #include <stdarg.h>
29667
29668int
29669main ()
29670{
29671
29672 char *buf;
29673 va_list ap;
29674 vsnprintf(buf, 10u, "%s", ap);
29675
29676 ;
29677 return 0;
29678}
29679_ACEOF
29680rm -f conftest.$ac_objext
29681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29682 (eval $ac_compile) 2>conftest.er1
a848cd7e 29683 ac_status=$?
ac1cb8d3
VS
29684 grep -v '^ *+' conftest.er1 >conftest.err
29685 rm -f conftest.er1
29686 cat conftest.err >&5
a848cd7e
SC
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); } &&
89be85c2
VS
29689 { ac_try='test -z "$ac_cxx_werror_flag"
29690 || test ! -s conftest.err'
ac1cb8d3
VS
29691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29692 (eval $ac_try) 2>&5
29693 ac_status=$?
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; } &&
29696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29698 (eval $ac_try) 2>&5
29699 ac_status=$?
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); }; }; then
29702 wx_cv_func_vsnprintf_decl=yes
29703else
29704 echo "$as_me: failed program was:" >&5
29705sed 's/^/| /' conftest.$ac_ext >&5
29706
c122b164
DE
29707
29708 cat >conftest.$ac_ext <<_ACEOF
29709/* confdefs.h. */
29710_ACEOF
29711cat confdefs.h >>conftest.$ac_ext
29712cat >>conftest.$ac_ext <<_ACEOF
29713/* end confdefs.h. */
29714
29715 #include <stdio.h>
29716 #include <stdarg.h>
29717 using namespace std;
29718
29719int
29720main ()
29721{
29722
29723 char *buf;
29724 va_list ap;
29725 vsnprintf(buf, 10u, "%s", ap);
29726
29727 ;
29728 return 0;
29729}
29730_ACEOF
29731rm -f conftest.$ac_objext
29732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29733 (eval $ac_compile) 2>conftest.er1
29734 ac_status=$?
29735 grep -v '^ *+' conftest.er1 >conftest.err
29736 rm -f conftest.er1
29737 cat conftest.err >&5
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); } &&
89be85c2
VS
29740 { ac_try='test -z "$ac_cxx_werror_flag"
29741 || test ! -s conftest.err'
c122b164
DE
29742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743 (eval $ac_try) 2>&5
29744 ac_status=$?
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); }; } &&
29747 { ac_try='test -s conftest.$ac_objext'
29748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749 (eval $ac_try) 2>&5
29750 ac_status=$?
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); }; }; then
29753 wx_cv_func_vsnprintf_decl=yes
29754else
29755 echo "$as_me: failed program was:" >&5
29756sed 's/^/| /' conftest.$ac_ext >&5
29757
a848cd7e
SC
29758wx_cv_func_vsnprintf_decl=no
29759
29760fi
ac1cb8d3 29761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29762
29763
c122b164
DE
29764fi
29765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29766
29767
a848cd7e
SC
29768fi
29769echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29770echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29771
29772 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29773 cat >>confdefs.h <<\_ACEOF
29774#define HAVE_VSNPRINTF_DECL 1
29775_ACEOF
29776
29777 fi
29778fi
29779
29780if test "$wxUSE_UNICODE" = yes; then
29781
29782
29783
fbe47c7b
VS
29784
29785
29786
29787for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29788do
29789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29790echo "$as_me:$LINENO: checking for $ac_func" >&5
29791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29792if eval "test \"\${$as_ac_var+set}\" = set"; then
29793 echo $ECHO_N "(cached) $ECHO_C" >&6
29794else
29795 cat >conftest.$ac_ext <<_ACEOF
29796/* confdefs.h. */
29797_ACEOF
29798cat confdefs.h >>conftest.$ac_ext
29799cat >>conftest.$ac_ext <<_ACEOF
29800/* end confdefs.h. */
ac1cb8d3
VS
29801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29803#define $ac_func innocuous_$ac_func
29804
a848cd7e
SC
29805/* System header to define __stub macros and hopefully few prototypes,
29806 which can conflict with char $ac_func (); below.
29807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29808 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29809
a848cd7e
SC
29810#ifdef __STDC__
29811# include <limits.h>
29812#else
29813# include <assert.h>
29814#endif
ac1cb8d3
VS
29815
29816#undef $ac_func
29817
a848cd7e
SC
29818/* Override any gcc2 internal prototype to avoid an error. */
29819#ifdef __cplusplus
29820extern "C"
29821{
29822#endif
29823/* We use char because int might match the return type of a gcc2
29824 builtin and then its argument prototype would still apply. */
29825char $ac_func ();
29826/* The GNU C library defines this for functions which it implements
29827 to always fail with ENOSYS. Some functions are actually named
29828 something starting with __ and the normal name is an alias. */
29829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29830choke me
29831#else
29832char (*f) () = $ac_func;
29833#endif
29834#ifdef __cplusplus
29835}
29836#endif
29837
29838int
29839main ()
29840{
29841return f != $ac_func;
29842 ;
29843 return 0;
29844}
29845_ACEOF
29846rm -f conftest.$ac_objext conftest$ac_exeext
29847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29848 (eval $ac_link) 2>conftest.er1
a848cd7e 29849 ac_status=$?
ac1cb8d3
VS
29850 grep -v '^ *+' conftest.er1 >conftest.err
29851 rm -f conftest.er1
29852 cat conftest.err >&5
a848cd7e
SC
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } &&
89be85c2
VS
29855 { ac_try='test -z "$ac_cxx_werror_flag"
29856 || test ! -s conftest.err'
ac1cb8d3
VS
29857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858 (eval $ac_try) 2>&5
29859 ac_status=$?
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; } &&
29862 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29864 (eval $ac_try) 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; }; then
29868 eval "$as_ac_var=yes"
29869else
29870 echo "$as_me: failed program was:" >&5
29871sed 's/^/| /' conftest.$ac_ext >&5
29872
29873eval "$as_ac_var=no"
29874fi
ac1cb8d3
VS
29875rm -f conftest.err conftest.$ac_objext \
29876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29877fi
29878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29880if test `eval echo '${'$as_ac_var'}'` = yes; then
29881 cat >>confdefs.h <<_ACEOF
29882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29883_ACEOF
29884
29885fi
29886done
29887
29888
29889 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29890echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29891 cat >conftest.$ac_ext <<_ACEOF
29892/* confdefs.h. */
29893_ACEOF
29894cat confdefs.h >>conftest.$ac_ext
29895cat >>conftest.$ac_ext <<_ACEOF
29896/* end confdefs.h. */
29897#include <wchar.h>
29898int
29899main ()
29900{
29901&_vsnwprintf;
29902 ;
29903 return 0;
29904}
29905_ACEOF
29906rm -f conftest.$ac_objext
29907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29908 (eval $ac_compile) 2>conftest.er1
a848cd7e 29909 ac_status=$?
ac1cb8d3
VS
29910 grep -v '^ *+' conftest.er1 >conftest.err
29911 rm -f conftest.er1
29912 cat conftest.err >&5
a848cd7e
SC
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); } &&
89be85c2
VS
29915 { ac_try='test -z "$ac_cxx_werror_flag"
29916 || test ! -s conftest.err'
ac1cb8d3
VS
29917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918 (eval $ac_try) 2>&5
29919 ac_status=$?
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924 (eval $ac_try) 2>&5
29925 ac_status=$?
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; }; then
29928 echo "$as_me:$LINENO: result: yes" >&5
29929echo "${ECHO_T}yes" >&6
29930 cat >>confdefs.h <<\_ACEOF
29931#define HAVE__VSNWPRINTF 1
29932_ACEOF
29933
29934else
29935 echo "$as_me: failed program was:" >&5
29936sed 's/^/| /' conftest.$ac_ext >&5
29937
29938echo "$as_me:$LINENO: result: no" >&5
29939echo "${ECHO_T}no" >&6
29940fi
ac1cb8d3 29941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29942fi
29943
29944ac_ext=c
29945ac_cpp='$CPP $CPPFLAGS'
29946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29948ac_compiler_gnu=$ac_cv_c_compiler_gnu
29949
29950
29951
29952
29953if test "$TOOLKIT" != "MSW"; then
29954
29955
29956
29957
29958ac_ext=cc
29959ac_cpp='$CXXCPP $CPPFLAGS'
29960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29963
29964
29965
29966
29967# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29968if test "${with_libiconv_prefix+set}" = set; then
29969 withval="$with_libiconv_prefix"
29970
29971 for dir in `echo "$withval" | tr : ' '`; do
29972 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29973 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29974 done
29975
29976fi;
29977
29978 echo "$as_me:$LINENO: checking for iconv" >&5
29979echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29980if test "${am_cv_func_iconv+set}" = set; then
29981 echo $ECHO_N "(cached) $ECHO_C" >&6
29982else
29983
29984 am_cv_func_iconv="no, consider installing GNU libiconv"
29985 am_cv_lib_iconv=no
29986 cat >conftest.$ac_ext <<_ACEOF
29987/* confdefs.h. */
29988_ACEOF
29989cat confdefs.h >>conftest.$ac_ext
29990cat >>conftest.$ac_ext <<_ACEOF
29991/* end confdefs.h. */
29992#include <stdlib.h>
29993#include <iconv.h>
29994int
29995main ()
29996{
29997iconv_t cd = iconv_open("","");
29998 iconv(cd,NULL,NULL,NULL,NULL);
29999 iconv_close(cd);
30000 ;
30001 return 0;
30002}
30003_ACEOF
30004rm -f conftest.$ac_objext conftest$ac_exeext
30005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30006 (eval $ac_link) 2>conftest.er1
a848cd7e 30007 ac_status=$?
ac1cb8d3
VS
30008 grep -v '^ *+' conftest.er1 >conftest.err
30009 rm -f conftest.er1
30010 cat conftest.err >&5
a848cd7e
SC
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); } &&
89be85c2
VS
30013 { ac_try='test -z "$ac_cxx_werror_flag"
30014 || test ! -s conftest.err'
ac1cb8d3
VS
30015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30016 (eval $ac_try) 2>&5
30017 ac_status=$?
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); }; } &&
30020 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30022 (eval $ac_try) 2>&5
30023 ac_status=$?
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); }; }; then
30026 am_cv_func_iconv=yes
30027else
30028 echo "$as_me: failed program was:" >&5
30029sed 's/^/| /' conftest.$ac_ext >&5
30030
30031fi
ac1cb8d3
VS
30032rm -f conftest.err conftest.$ac_objext \
30033 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30034 if test "$am_cv_func_iconv" != yes; then
30035 am_save_LIBS="$LIBS"
30036 LIBS="$LIBS -liconv"
30037 cat >conftest.$ac_ext <<_ACEOF
30038/* confdefs.h. */
30039_ACEOF
30040cat confdefs.h >>conftest.$ac_ext
30041cat >>conftest.$ac_ext <<_ACEOF
30042/* end confdefs.h. */
30043#include <stdlib.h>
30044#include <iconv.h>
30045int
30046main ()
30047{
30048iconv_t cd = iconv_open("","");
30049 iconv(cd,NULL,NULL,NULL,NULL);
30050 iconv_close(cd);
30051 ;
30052 return 0;
30053}
30054_ACEOF
30055rm -f conftest.$ac_objext conftest$ac_exeext
30056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30057 (eval $ac_link) 2>conftest.er1
a848cd7e 30058 ac_status=$?
ac1cb8d3
VS
30059 grep -v '^ *+' conftest.er1 >conftest.err
30060 rm -f conftest.er1
30061 cat conftest.err >&5
a848cd7e
SC
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } &&
89be85c2
VS
30064 { ac_try='test -z "$ac_cxx_werror_flag"
30065 || test ! -s conftest.err'
ac1cb8d3
VS
30066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30067 (eval $ac_try) 2>&5
30068 ac_status=$?
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; } &&
30071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30073 (eval $ac_try) 2>&5
30074 ac_status=$?
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); }; }; then
30077 am_cv_lib_iconv=yes
30078 am_cv_func_iconv=yes
30079else
30080 echo "$as_me: failed program was:" >&5
30081sed 's/^/| /' conftest.$ac_ext >&5
30082
30083fi
ac1cb8d3
VS
30084rm -f conftest.err conftest.$ac_objext \
30085 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30086 LIBS="$am_save_LIBS"
30087 fi
30088
30089fi
30090echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30091echo "${ECHO_T}$am_cv_func_iconv" >&6
30092 if test "$am_cv_func_iconv" = yes; then
30093
30094cat >>confdefs.h <<\_ACEOF
30095#define HAVE_ICONV 1
30096_ACEOF
30097
30098 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30099echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30100if test "${wx_cv_func_iconv_const+set}" = set; then
30101 echo $ECHO_N "(cached) $ECHO_C" >&6
30102else
30103 cat >conftest.$ac_ext <<_ACEOF
30104/* confdefs.h. */
30105_ACEOF
30106cat confdefs.h >>conftest.$ac_ext
30107cat >>conftest.$ac_ext <<_ACEOF
30108/* end confdefs.h. */
30109
30110#include <stdlib.h>
30111#include <iconv.h>
30112extern
30113#ifdef __cplusplus
30114"C"
30115#endif
30116#if defined(__STDC__) || defined(__cplusplus)
30117size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30118#else
30119size_t iconv();
30120#endif
30121
30122int
30123main ()
30124{
30125
30126 ;
30127 return 0;
30128}
30129_ACEOF
30130rm -f conftest.$ac_objext
30131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30132 (eval $ac_compile) 2>conftest.er1
a848cd7e 30133 ac_status=$?
ac1cb8d3
VS
30134 grep -v '^ *+' conftest.er1 >conftest.err
30135 rm -f conftest.er1
30136 cat conftest.err >&5
a848cd7e
SC
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); } &&
89be85c2
VS
30139 { ac_try='test -z "$ac_cxx_werror_flag"
30140 || test ! -s conftest.err'
ac1cb8d3
VS
30141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142 (eval $ac_try) 2>&5
30143 ac_status=$?
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; } &&
30146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; }; then
30152 wx_cv_func_iconv_const="no"
30153else
30154 echo "$as_me: failed program was:" >&5
30155sed 's/^/| /' conftest.$ac_ext >&5
30156
30157wx_cv_func_iconv_const="yes"
30158
30159fi
ac1cb8d3 30160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30161
30162fi
30163echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30164echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30165
30166 iconv_const=
30167 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30168 iconv_const="const"
30169 fi
30170
30171
30172cat >>confdefs.h <<_ACEOF
30173#define ICONV_CONST $iconv_const
30174_ACEOF
30175
30176 fi
30177 LIBICONV=
30178 if test "$am_cv_lib_iconv" = yes; then
30179 LIBICONV="-liconv"
30180 fi
30181
30182
30183LIBS="$LIBICONV $LIBS"
30184ac_ext=c
30185ac_cpp='$CPP $CPPFLAGS'
30186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30188ac_compiler_gnu=$ac_cv_c_compiler_gnu
30189
30190
30191if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30192
30193for ac_func in sigaction
30194do
30195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196echo "$as_me:$LINENO: checking for $ac_func" >&5
30197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30198if eval "test \"\${$as_ac_var+set}\" = set"; then
30199 echo $ECHO_N "(cached) $ECHO_C" >&6
30200else
30201 cat >conftest.$ac_ext <<_ACEOF
30202/* confdefs.h. */
30203_ACEOF
30204cat confdefs.h >>conftest.$ac_ext
30205cat >>conftest.$ac_ext <<_ACEOF
30206/* end confdefs.h. */
ac1cb8d3
VS
30207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30209#define $ac_func innocuous_$ac_func
30210
a848cd7e
SC
30211/* System header to define __stub macros and hopefully few prototypes,
30212 which can conflict with char $ac_func (); below.
30213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30215
a848cd7e
SC
30216#ifdef __STDC__
30217# include <limits.h>
30218#else
30219# include <assert.h>
30220#endif
ac1cb8d3
VS
30221
30222#undef $ac_func
30223
a848cd7e
SC
30224/* Override any gcc2 internal prototype to avoid an error. */
30225#ifdef __cplusplus
30226extern "C"
30227{
30228#endif
30229/* We use char because int might match the return type of a gcc2
30230 builtin and then its argument prototype would still apply. */
30231char $ac_func ();
30232/* The GNU C library defines this for functions which it implements
30233 to always fail with ENOSYS. Some functions are actually named
30234 something starting with __ and the normal name is an alias. */
30235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30236choke me
30237#else
30238char (*f) () = $ac_func;
30239#endif
30240#ifdef __cplusplus
30241}
30242#endif
30243
30244int
30245main ()
30246{
30247return f != $ac_func;
30248 ;
30249 return 0;
30250}
30251_ACEOF
30252rm -f conftest.$ac_objext conftest$ac_exeext
30253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30254 (eval $ac_link) 2>conftest.er1
a848cd7e 30255 ac_status=$?
ac1cb8d3
VS
30256 grep -v '^ *+' conftest.er1 >conftest.err
30257 rm -f conftest.er1
30258 cat conftest.err >&5
a848cd7e
SC
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); } &&
89be85c2
VS
30261 { ac_try='test -z "$ac_c_werror_flag"
30262 || test ! -s conftest.err'
ac1cb8d3
VS
30263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264 (eval $ac_try) 2>&5
30265 ac_status=$?
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; } &&
30268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30270 (eval $ac_try) 2>&5
30271 ac_status=$?
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; }; then
30274 eval "$as_ac_var=yes"
30275else
30276 echo "$as_me: failed program was:" >&5
30277sed 's/^/| /' conftest.$ac_ext >&5
30278
30279eval "$as_ac_var=no"
30280fi
ac1cb8d3
VS
30281rm -f conftest.err conftest.$ac_objext \
30282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30283fi
30284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30285echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30286if test `eval echo '${'$as_ac_var'}'` = yes; then
30287 cat >>confdefs.h <<_ACEOF
30288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30289_ACEOF
30290
30291fi
30292done
30293
30294
30295 if test "$ac_cv_func_sigaction" = "no"; then
30296 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30297echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30298 wxUSE_ON_FATAL_EXCEPTION=no
30299 fi
30300
30301 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30302
30303
30304 ac_ext=cc
30305ac_cpp='$CXXCPP $CPPFLAGS'
30306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30309
30310
30311 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30312echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30313if test "${wx_cv_type_sa_handler+set}" = set; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
30315else
30316
30317 cat >conftest.$ac_ext <<_ACEOF
30318/* confdefs.h. */
30319_ACEOF
30320cat confdefs.h >>conftest.$ac_ext
30321cat >>conftest.$ac_ext <<_ACEOF
30322/* end confdefs.h. */
30323#include <signal.h>
30324int
30325main ()
30326{
30327
30328 extern void testSigHandler(int);
30329
30330 struct sigaction sa;
30331 sa.sa_handler = testSigHandler;
30332
30333 ;
30334 return 0;
30335}
30336_ACEOF
30337rm -f conftest.$ac_objext
30338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30339 (eval $ac_compile) 2>conftest.er1
a848cd7e 30340 ac_status=$?
ac1cb8d3
VS
30341 grep -v '^ *+' conftest.er1 >conftest.err
30342 rm -f conftest.er1
30343 cat conftest.err >&5
a848cd7e
SC
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } &&
89be85c2
VS
30346 { ac_try='test -z "$ac_cxx_werror_flag"
30347 || test ! -s conftest.err'
ac1cb8d3
VS
30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349 (eval $ac_try) 2>&5
30350 ac_status=$?
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; } &&
30353 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; }; then
30359
30360 wx_cv_type_sa_handler=int
30361
30362else
30363 echo "$as_me: failed program was:" >&5
30364sed 's/^/| /' conftest.$ac_ext >&5
30365
30366
30367 wx_cv_type_sa_handler=void
30368
30369fi
ac1cb8d3 30370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30371
30372fi
30373echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30374echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30375
30376 ac_ext=c
30377ac_cpp='$CPP $CPPFLAGS'
30378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30380ac_compiler_gnu=$ac_cv_c_compiler_gnu
30381
30382
30383 cat >>confdefs.h <<_ACEOF
30384#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30385_ACEOF
30386
30387 fi
30388fi
30389
eaff0f0d
VZ
30390if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30391
30392
30393 ac_ext=cc
30394ac_cpp='$CXXCPP $CPPFLAGS'
30395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30398
30399
30400 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30401echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30402if test "${wx_cv_func_backtrace+set}" = set; then
30403 echo $ECHO_N "(cached) $ECHO_C" >&6
30404else
30405
30406 cat >conftest.$ac_ext <<_ACEOF
30407/* confdefs.h. */
30408_ACEOF
30409cat confdefs.h >>conftest.$ac_ext
30410cat >>conftest.$ac_ext <<_ACEOF
30411/* end confdefs.h. */
30412#include <execinfo.h>
30413int
30414main ()
30415{
30416
30417 void *trace[1];
30418 char **messages;
30419
30420 backtrace(trace, 1);
30421 messages = backtrace_symbols(trace, 1);
30422
30423 ;
30424 return 0;
30425}
30426_ACEOF
30427rm -f conftest.$ac_objext
30428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30429 (eval $ac_compile) 2>conftest.er1
30430 ac_status=$?
30431 grep -v '^ *+' conftest.er1 >conftest.err
30432 rm -f conftest.er1
30433 cat conftest.err >&5
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); } &&
89be85c2
VS
30436 { ac_try='test -z "$ac_cxx_werror_flag"
30437 || test ! -s conftest.err'
eaff0f0d
VZ
30438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439 (eval $ac_try) 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; } &&
30443 { ac_try='test -s conftest.$ac_objext'
30444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30445 (eval $ac_try) 2>&5
30446 ac_status=$?
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; }; then
30449 wx_cv_func_backtrace=yes
30450else
30451 echo "$as_me: failed program was:" >&5
30452sed 's/^/| /' conftest.$ac_ext >&5
30453
30454wx_cv_func_backtrace=no
30455
30456fi
30457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30458
30459
30460fi
30461echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30462echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30463
30464
30465 if test "$wx_cv_func_backtrace" = "no"; then
30466 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30467echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30468 wxUSE_STACKWALKER=no
30469 else
30470 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30471echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30472if test "${wx_cv_func_cxa_demangle+set}" = set; then
30473 echo $ECHO_N "(cached) $ECHO_C" >&6
30474else
30475
30476 cat >conftest.$ac_ext <<_ACEOF
30477/* confdefs.h. */
30478_ACEOF
30479cat confdefs.h >>conftest.$ac_ext
30480cat >>conftest.$ac_ext <<_ACEOF
30481/* end confdefs.h. */
30482#include <cxxabi.h>
30483int
30484main ()
30485{
30486
30487 int rc;
30488 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30489
30490 ;
30491 return 0;
30492}
30493_ACEOF
30494rm -f conftest.$ac_objext
30495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30496 (eval $ac_compile) 2>conftest.er1
30497 ac_status=$?
30498 grep -v '^ *+' conftest.er1 >conftest.err
30499 rm -f conftest.er1
30500 cat conftest.err >&5
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); } &&
89be85c2
VS
30503 { ac_try='test -z "$ac_cxx_werror_flag"
30504 || test ! -s conftest.err'
eaff0f0d
VZ
30505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30506 (eval $ac_try) 2>&5
30507 ac_status=$?
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); }; } &&
30510 { ac_try='test -s conftest.$ac_objext'
30511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30512 (eval $ac_try) 2>&5
30513 ac_status=$?
30514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515 (exit $ac_status); }; }; then
30516 wx_cv_func_cxa_demangle=yes
30517else
30518 echo "$as_me: failed program was:" >&5
30519sed 's/^/| /' conftest.$ac_ext >&5
30520
30521wx_cv_func_cxa_demangle=no
30522
30523fi
30524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30525
30526
30527fi
30528echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30529echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30530
30531 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30532 cat >>confdefs.h <<\_ACEOF
30533#define HAVE_CXA_DEMANGLE 1
30534_ACEOF
30535
30536 fi
30537 fi
30538
30539 ac_ext=c
30540ac_cpp='$CPP $CPPFLAGS'
30541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30543ac_compiler_gnu=$ac_cv_c_compiler_gnu
30544
30545fi
30546
a848cd7e
SC
30547
30548
30549for ac_func in mkstemp mktemp
30550do
30551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30552echo "$as_me:$LINENO: checking for $ac_func" >&5
30553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30554if eval "test \"\${$as_ac_var+set}\" = set"; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30556else
30557 cat >conftest.$ac_ext <<_ACEOF
30558/* confdefs.h. */
30559_ACEOF
30560cat confdefs.h >>conftest.$ac_ext
30561cat >>conftest.$ac_ext <<_ACEOF
30562/* end confdefs.h. */
ac1cb8d3
VS
30563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30565#define $ac_func innocuous_$ac_func
30566
a848cd7e
SC
30567/* System header to define __stub macros and hopefully few prototypes,
30568 which can conflict with char $ac_func (); below.
30569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30570 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30571
a848cd7e
SC
30572#ifdef __STDC__
30573# include <limits.h>
30574#else
30575# include <assert.h>
30576#endif
ac1cb8d3
VS
30577
30578#undef $ac_func
30579
a848cd7e
SC
30580/* Override any gcc2 internal prototype to avoid an error. */
30581#ifdef __cplusplus
30582extern "C"
30583{
30584#endif
30585/* We use char because int might match the return type of a gcc2
30586 builtin and then its argument prototype would still apply. */
30587char $ac_func ();
30588/* The GNU C library defines this for functions which it implements
30589 to always fail with ENOSYS. Some functions are actually named
30590 something starting with __ and the normal name is an alias. */
30591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30592choke me
30593#else
30594char (*f) () = $ac_func;
30595#endif
30596#ifdef __cplusplus
30597}
30598#endif
30599
30600int
30601main ()
30602{
30603return f != $ac_func;
30604 ;
30605 return 0;
30606}
30607_ACEOF
30608rm -f conftest.$ac_objext conftest$ac_exeext
30609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30610 (eval $ac_link) 2>conftest.er1
a848cd7e 30611 ac_status=$?
ac1cb8d3
VS
30612 grep -v '^ *+' conftest.er1 >conftest.err
30613 rm -f conftest.er1
30614 cat conftest.err >&5
a848cd7e
SC
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } &&
89be85c2
VS
30617 { ac_try='test -z "$ac_c_werror_flag"
30618 || test ! -s conftest.err'
ac1cb8d3
VS
30619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620 (eval $ac_try) 2>&5
30621 ac_status=$?
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; } &&
30624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; }; then
30630 eval "$as_ac_var=yes"
30631else
30632 echo "$as_me: failed program was:" >&5
30633sed 's/^/| /' conftest.$ac_ext >&5
30634
30635eval "$as_ac_var=no"
30636fi
ac1cb8d3
VS
30637rm -f conftest.err conftest.$ac_objext \
30638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30639fi
30640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30642if test `eval echo '${'$as_ac_var'}'` = yes; then
30643 cat >>confdefs.h <<_ACEOF
30644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30645_ACEOF
30646 break
30647fi
30648done
30649
30650
30651echo "$as_me:$LINENO: checking for statfs" >&5
30652echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30653if test "${wx_cv_func_statfs+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30655else
30656 cat >conftest.$ac_ext <<_ACEOF
30657/* confdefs.h. */
30658_ACEOF
30659cat confdefs.h >>conftest.$ac_ext
30660cat >>conftest.$ac_ext <<_ACEOF
30661/* end confdefs.h. */
30662
30663 #if defined(__BSD__)
30664 #include <sys/param.h>
30665 #include <sys/mount.h>
30666 #else
30667 #include <sys/vfs.h>
30668 #endif
30669
30670int
30671main ()
30672{
30673
30674 long l;
30675 struct statfs fs;
30676 statfs("/", &fs);
30677 l = fs.f_bsize;
30678 l += fs.f_blocks;
30679 l += fs.f_bavail;
30680
30681 ;
30682 return 0;
30683}
30684_ACEOF
30685rm -f conftest.$ac_objext
30686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30687 (eval $ac_compile) 2>conftest.er1
a848cd7e 30688 ac_status=$?
ac1cb8d3
VS
30689 grep -v '^ *+' conftest.er1 >conftest.err
30690 rm -f conftest.er1
30691 cat conftest.err >&5
a848cd7e
SC
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } &&
89be85c2
VS
30694 { ac_try='test -z "$ac_c_werror_flag"
30695 || test ! -s conftest.err'
ac1cb8d3
VS
30696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697 (eval $ac_try) 2>&5
30698 ac_status=$?
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); }; } &&
30701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30703 (eval $ac_try) 2>&5
30704 ac_status=$?
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; }; then
30707
30708 wx_cv_func_statfs=yes
30709
30710else
30711 echo "$as_me: failed program was:" >&5
30712sed 's/^/| /' conftest.$ac_ext >&5
30713
30714
30715 wx_cv_func_statfs=no
30716
30717
30718fi
ac1cb8d3 30719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30720
30721fi
30722echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30723echo "${ECHO_T}$wx_cv_func_statfs" >&6
30724
30725if test "$wx_cv_func_statfs" = "yes"; then
30726 wx_cv_type_statvfs_t="struct statfs"
30727 cat >>confdefs.h <<\_ACEOF
30728#define HAVE_STATFS 1
30729_ACEOF
30730
30731else
30732 echo "$as_me:$LINENO: checking for statvfs" >&5
30733echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30734if test "${wx_cv_func_statvfs+set}" = set; then
30735 echo $ECHO_N "(cached) $ECHO_C" >&6
30736else
30737 cat >conftest.$ac_ext <<_ACEOF
30738/* confdefs.h. */
30739_ACEOF
30740cat confdefs.h >>conftest.$ac_ext
30741cat >>conftest.$ac_ext <<_ACEOF
30742/* end confdefs.h. */
30743
30744 #include <stddef.h>
30745 #include <sys/statvfs.h>
30746
30747int
30748main ()
30749{
30750
30751 statvfs("/", NULL);
30752
30753 ;
30754 return 0;
30755}
30756_ACEOF
30757rm -f conftest.$ac_objext
30758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30759 (eval $ac_compile) 2>conftest.er1
a848cd7e 30760 ac_status=$?
ac1cb8d3
VS
30761 grep -v '^ *+' conftest.er1 >conftest.err
30762 rm -f conftest.er1
30763 cat conftest.err >&5
a848cd7e
SC
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } &&
89be85c2
VS
30766 { ac_try='test -z "$ac_c_werror_flag"
30767 || test ! -s conftest.err'
ac1cb8d3
VS
30768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769 (eval $ac_try) 2>&5
30770 ac_status=$?
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); }; } &&
30773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775 (eval $ac_try) 2>&5
30776 ac_status=$?
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; }; then
30779 wx_cv_func_statvfs=yes
30780else
30781 echo "$as_me: failed program was:" >&5
30782sed 's/^/| /' conftest.$ac_ext >&5
30783
30784wx_cv_func_statvfs=no
30785
30786fi
ac1cb8d3 30787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30788
30789fi
30790echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30791echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30792
30793 if test "$wx_cv_func_statvfs" = "yes"; then
30794
30795
30796 ac_ext=cc
30797ac_cpp='$CXXCPP $CPPFLAGS'
30798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30801
30802
30803 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30804echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30805if test "${wx_cv_type_statvfs_t+set}" = set; then
30806 echo $ECHO_N "(cached) $ECHO_C" >&6
30807else
30808 cat >conftest.$ac_ext <<_ACEOF
30809/* confdefs.h. */
30810_ACEOF
30811cat confdefs.h >>conftest.$ac_ext
30812cat >>conftest.$ac_ext <<_ACEOF
30813/* end confdefs.h. */
30814
30815 #include <sys/statvfs.h>
30816
30817int
30818main ()
30819{
30820
30821 long l;
30822 statvfs_t fs;
30823 statvfs("/", &fs);
30824 l = fs.f_bsize;
30825 l += fs.f_blocks;
30826 l += fs.f_bavail;
30827
30828 ;
30829 return 0;
30830}
30831_ACEOF
30832rm -f conftest.$ac_objext
30833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30834 (eval $ac_compile) 2>conftest.er1
a848cd7e 30835 ac_status=$?
ac1cb8d3
VS
30836 grep -v '^ *+' conftest.er1 >conftest.err
30837 rm -f conftest.er1
30838 cat conftest.err >&5
a848cd7e
SC
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); } &&
89be85c2
VS
30841 { ac_try='test -z "$ac_cxx_werror_flag"
30842 || test ! -s conftest.err'
ac1cb8d3
VS
30843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30844 (eval $ac_try) 2>&5
30845 ac_status=$?
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); }; } &&
30848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30850 (eval $ac_try) 2>&5
30851 ac_status=$?
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); }; }; then
30854 wx_cv_type_statvfs_t=statvfs_t
30855else
30856 echo "$as_me: failed program was:" >&5
30857sed 's/^/| /' conftest.$ac_ext >&5
30858
30859
30860 cat >conftest.$ac_ext <<_ACEOF
30861/* confdefs.h. */
30862_ACEOF
30863cat confdefs.h >>conftest.$ac_ext
30864cat >>conftest.$ac_ext <<_ACEOF
30865/* end confdefs.h. */
30866
30867 #include <sys/statvfs.h>
30868
30869int
30870main ()
30871{
30872
30873 long l;
30874 struct statvfs fs;
30875 statvfs("/", &fs);
30876 l = fs.f_bsize;
30877 l += fs.f_blocks;
30878 l += fs.f_bavail;
30879
30880 ;
30881 return 0;
30882}
30883_ACEOF
30884rm -f conftest.$ac_objext
30885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30886 (eval $ac_compile) 2>conftest.er1
a848cd7e 30887 ac_status=$?
ac1cb8d3
VS
30888 grep -v '^ *+' conftest.er1 >conftest.err
30889 rm -f conftest.er1
30890 cat conftest.err >&5
a848cd7e
SC
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); } &&
89be85c2
VS
30893 { ac_try='test -z "$ac_cxx_werror_flag"
30894 || test ! -s conftest.err'
ac1cb8d3
VS
30895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30896 (eval $ac_try) 2>&5
30897 ac_status=$?
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); }; } &&
30900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30902 (eval $ac_try) 2>&5
30903 ac_status=$?
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; }; then
30906 wx_cv_type_statvfs_t="struct statvfs"
30907else
30908 echo "$as_me: failed program was:" >&5
30909sed 's/^/| /' conftest.$ac_ext >&5
30910
30911wx_cv_type_statvfs_t="unknown"
30912
30913fi
ac1cb8d3 30914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30915
30916
30917fi
ac1cb8d3 30918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30919
30920fi
30921echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30922echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30923
30924 ac_ext=c
30925ac_cpp='$CPP $CPPFLAGS'
30926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30928ac_compiler_gnu=$ac_cv_c_compiler_gnu
30929
30930
30931 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30932 cat >>confdefs.h <<\_ACEOF
30933#define HAVE_STATVFS 1
30934_ACEOF
30935
30936 fi
30937 else
30938 wx_cv_type_statvfs_t="unknown"
30939 fi
30940fi
30941
30942if test "$wx_cv_type_statvfs_t" != "unknown"; then
30943 cat >>confdefs.h <<_ACEOF
30944#define WX_STATFS_T $wx_cv_type_statvfs_t
30945_ACEOF
30946
30947else
30948 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30949echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30950fi
30951
30952if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30953
30954
30955for ac_func in fcntl flock
30956do
30957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30958echo "$as_me:$LINENO: checking for $ac_func" >&5
30959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30960if eval "test \"\${$as_ac_var+set}\" = set"; then
30961 echo $ECHO_N "(cached) $ECHO_C" >&6
30962else
30963 cat >conftest.$ac_ext <<_ACEOF
30964/* confdefs.h. */
30965_ACEOF
30966cat confdefs.h >>conftest.$ac_ext
30967cat >>conftest.$ac_ext <<_ACEOF
30968/* end confdefs.h. */
ac1cb8d3
VS
30969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30971#define $ac_func innocuous_$ac_func
30972
a848cd7e
SC
30973/* System header to define __stub macros and hopefully few prototypes,
30974 which can conflict with char $ac_func (); below.
30975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30976 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30977
a848cd7e
SC
30978#ifdef __STDC__
30979# include <limits.h>
30980#else
30981# include <assert.h>
30982#endif
ac1cb8d3
VS
30983
30984#undef $ac_func
30985
a848cd7e
SC
30986/* Override any gcc2 internal prototype to avoid an error. */
30987#ifdef __cplusplus
30988extern "C"
30989{
30990#endif
30991/* We use char because int might match the return type of a gcc2
30992 builtin and then its argument prototype would still apply. */
30993char $ac_func ();
30994/* The GNU C library defines this for functions which it implements
30995 to always fail with ENOSYS. Some functions are actually named
30996 something starting with __ and the normal name is an alias. */
30997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30998choke me
30999#else
31000char (*f) () = $ac_func;
31001#endif
31002#ifdef __cplusplus
31003}
31004#endif
31005
31006int
31007main ()
31008{
31009return f != $ac_func;
31010 ;
31011 return 0;
31012}
31013_ACEOF
31014rm -f conftest.$ac_objext conftest$ac_exeext
31015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31016 (eval $ac_link) 2>conftest.er1
a848cd7e 31017 ac_status=$?
ac1cb8d3
VS
31018 grep -v '^ *+' conftest.er1 >conftest.err
31019 rm -f conftest.er1
31020 cat conftest.err >&5
a848cd7e
SC
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); } &&
89be85c2
VS
31023 { ac_try='test -z "$ac_c_werror_flag"
31024 || test ! -s conftest.err'
ac1cb8d3
VS
31025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31026 (eval $ac_try) 2>&5
31027 ac_status=$?
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); }; } &&
31030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032 (eval $ac_try) 2>&5
31033 ac_status=$?
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; }; then
31036 eval "$as_ac_var=yes"
31037else
31038 echo "$as_me: failed program was:" >&5
31039sed 's/^/| /' conftest.$ac_ext >&5
31040
31041eval "$as_ac_var=no"
31042fi
ac1cb8d3
VS
31043rm -f conftest.err conftest.$ac_objext \
31044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31045fi
31046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31047echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31048if test `eval echo '${'$as_ac_var'}'` = yes; then
31049 cat >>confdefs.h <<_ACEOF
31050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31051_ACEOF
31052 break
31053fi
31054done
31055
31056
31057 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31058 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31059echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31060 wxUSE_SNGLINST_CHECKER=no
31061 fi
31062fi
31063
31064
31065for ac_func in timegm
31066do
31067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31068echo "$as_me:$LINENO: checking for $ac_func" >&5
31069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31070if eval "test \"\${$as_ac_var+set}\" = set"; then
31071 echo $ECHO_N "(cached) $ECHO_C" >&6
31072else
31073 cat >conftest.$ac_ext <<_ACEOF
31074/* confdefs.h. */
31075_ACEOF
31076cat confdefs.h >>conftest.$ac_ext
31077cat >>conftest.$ac_ext <<_ACEOF
31078/* end confdefs.h. */
ac1cb8d3
VS
31079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31081#define $ac_func innocuous_$ac_func
31082
a848cd7e
SC
31083/* System header to define __stub macros and hopefully few prototypes,
31084 which can conflict with char $ac_func (); below.
31085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31086 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31087
a848cd7e
SC
31088#ifdef __STDC__
31089# include <limits.h>
31090#else
31091# include <assert.h>
31092#endif
ac1cb8d3
VS
31093
31094#undef $ac_func
31095
a848cd7e
SC
31096/* Override any gcc2 internal prototype to avoid an error. */
31097#ifdef __cplusplus
31098extern "C"
31099{
31100#endif
31101/* We use char because int might match the return type of a gcc2
31102 builtin and then its argument prototype would still apply. */
31103char $ac_func ();
31104/* The GNU C library defines this for functions which it implements
31105 to always fail with ENOSYS. Some functions are actually named
31106 something starting with __ and the normal name is an alias. */
31107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31108choke me
31109#else
31110char (*f) () = $ac_func;
31111#endif
31112#ifdef __cplusplus
31113}
31114#endif
31115
31116int
31117main ()
31118{
31119return f != $ac_func;
31120 ;
31121 return 0;
31122}
31123_ACEOF
31124rm -f conftest.$ac_objext conftest$ac_exeext
31125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31126 (eval $ac_link) 2>conftest.er1
a848cd7e 31127 ac_status=$?
ac1cb8d3
VS
31128 grep -v '^ *+' conftest.er1 >conftest.err
31129 rm -f conftest.er1
31130 cat conftest.err >&5
a848cd7e
SC
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); } &&
89be85c2
VS
31133 { ac_try='test -z "$ac_c_werror_flag"
31134 || test ! -s conftest.err'
ac1cb8d3
VS
31135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31136 (eval $ac_try) 2>&5
31137 ac_status=$?
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); }; } &&
31140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142 (eval $ac_try) 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
31146 eval "$as_ac_var=yes"
31147else
31148 echo "$as_me: failed program was:" >&5
31149sed 's/^/| /' conftest.$ac_ext >&5
31150
31151eval "$as_ac_var=no"
31152fi
ac1cb8d3
VS
31153rm -f conftest.err conftest.$ac_objext \
31154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31155fi
31156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31158if test `eval echo '${'$as_ac_var'}'` = yes; then
31159 cat >>confdefs.h <<_ACEOF
31160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31161_ACEOF
31162
31163fi
31164done
31165
31166
31167
31168
31169for ac_func in putenv setenv
31170do
31171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31172echo "$as_me:$LINENO: checking for $ac_func" >&5
31173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31174if eval "test \"\${$as_ac_var+set}\" = set"; then
31175 echo $ECHO_N "(cached) $ECHO_C" >&6
31176else
31177 cat >conftest.$ac_ext <<_ACEOF
31178/* confdefs.h. */
31179_ACEOF
31180cat confdefs.h >>conftest.$ac_ext
31181cat >>conftest.$ac_ext <<_ACEOF
31182/* end confdefs.h. */
ac1cb8d3
VS
31183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31185#define $ac_func innocuous_$ac_func
31186
a848cd7e
SC
31187/* System header to define __stub macros and hopefully few prototypes,
31188 which can conflict with char $ac_func (); below.
31189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31190 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31191
a848cd7e
SC
31192#ifdef __STDC__
31193# include <limits.h>
31194#else
31195# include <assert.h>
31196#endif
ac1cb8d3
VS
31197
31198#undef $ac_func
31199
a848cd7e
SC
31200/* Override any gcc2 internal prototype to avoid an error. */
31201#ifdef __cplusplus
31202extern "C"
31203{
31204#endif
31205/* We use char because int might match the return type of a gcc2
31206 builtin and then its argument prototype would still apply. */
31207char $ac_func ();
31208/* The GNU C library defines this for functions which it implements
31209 to always fail with ENOSYS. Some functions are actually named
31210 something starting with __ and the normal name is an alias. */
31211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31212choke me
31213#else
31214char (*f) () = $ac_func;
31215#endif
31216#ifdef __cplusplus
31217}
31218#endif
31219
31220int
31221main ()
31222{
31223return f != $ac_func;
31224 ;
31225 return 0;
31226}
31227_ACEOF
31228rm -f conftest.$ac_objext conftest$ac_exeext
31229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31230 (eval $ac_link) 2>conftest.er1
a848cd7e 31231 ac_status=$?
ac1cb8d3
VS
31232 grep -v '^ *+' conftest.er1 >conftest.err
31233 rm -f conftest.er1
31234 cat conftest.err >&5
a848cd7e
SC
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } &&
89be85c2
VS
31237 { ac_try='test -z "$ac_c_werror_flag"
31238 || test ! -s conftest.err'
ac1cb8d3
VS
31239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31240 (eval $ac_try) 2>&5
31241 ac_status=$?
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); }; } &&
31244 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31246 (eval $ac_try) 2>&5
31247 ac_status=$?
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; }; then
31250 eval "$as_ac_var=yes"
31251else
31252 echo "$as_me: failed program was:" >&5
31253sed 's/^/| /' conftest.$ac_ext >&5
31254
31255eval "$as_ac_var=no"
31256fi
ac1cb8d3
VS
31257rm -f conftest.err conftest.$ac_objext \
31258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31259fi
31260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31262if test `eval echo '${'$as_ac_var'}'` = yes; then
31263 cat >>confdefs.h <<_ACEOF
31264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31265_ACEOF
31266 break
31267fi
31268done
31269
31270
31271HAVE_SOME_SLEEP_FUNC=0
31272if test "$USE_BEOS" = 1; then
31273 cat >>confdefs.h <<\_ACEOF
31274#define HAVE_SLEEP 1
31275_ACEOF
31276
31277 HAVE_SOME_SLEEP_FUNC=1
31278fi
31279
31280if test "$USE_DARWIN" = 1; then
31281 cat >>confdefs.h <<\_ACEOF
31282#define HAVE_USLEEP 1
31283_ACEOF
31284
31285 HAVE_SOME_SLEEP_FUNC=1
31286fi
31287
31288if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31289 POSIX4_LINK=
31290
31291for ac_func in nanosleep
31292do
31293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31294echo "$as_me:$LINENO: checking for $ac_func" >&5
31295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31296if eval "test \"\${$as_ac_var+set}\" = set"; then
31297 echo $ECHO_N "(cached) $ECHO_C" >&6
31298else
31299 cat >conftest.$ac_ext <<_ACEOF
31300/* confdefs.h. */
31301_ACEOF
31302cat confdefs.h >>conftest.$ac_ext
31303cat >>conftest.$ac_ext <<_ACEOF
31304/* end confdefs.h. */
ac1cb8d3
VS
31305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31307#define $ac_func innocuous_$ac_func
31308
a848cd7e
SC
31309/* System header to define __stub macros and hopefully few prototypes,
31310 which can conflict with char $ac_func (); below.
31311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31312 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31313
a848cd7e
SC
31314#ifdef __STDC__
31315# include <limits.h>
31316#else
31317# include <assert.h>
31318#endif
ac1cb8d3
VS
31319
31320#undef $ac_func
31321
a848cd7e
SC
31322/* Override any gcc2 internal prototype to avoid an error. */
31323#ifdef __cplusplus
31324extern "C"
31325{
31326#endif
31327/* We use char because int might match the return type of a gcc2
31328 builtin and then its argument prototype would still apply. */
31329char $ac_func ();
31330/* The GNU C library defines this for functions which it implements
31331 to always fail with ENOSYS. Some functions are actually named
31332 something starting with __ and the normal name is an alias. */
31333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31334choke me
31335#else
31336char (*f) () = $ac_func;
31337#endif
31338#ifdef __cplusplus
31339}
31340#endif
31341
31342int
31343main ()
31344{
31345return f != $ac_func;
31346 ;
31347 return 0;
31348}
31349_ACEOF
31350rm -f conftest.$ac_objext conftest$ac_exeext
31351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31352 (eval $ac_link) 2>conftest.er1
a848cd7e 31353 ac_status=$?
ac1cb8d3
VS
31354 grep -v '^ *+' conftest.er1 >conftest.err
31355 rm -f conftest.er1
31356 cat conftest.err >&5
a848cd7e
SC
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); } &&
89be85c2
VS
31359 { ac_try='test -z "$ac_c_werror_flag"
31360 || test ! -s conftest.err'
ac1cb8d3
VS
31361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31362 (eval $ac_try) 2>&5
31363 ac_status=$?
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31368 (eval $ac_try) 2>&5
31369 ac_status=$?
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); }; }; then
31372 eval "$as_ac_var=yes"
31373else
31374 echo "$as_me: failed program was:" >&5
31375sed 's/^/| /' conftest.$ac_ext >&5
31376
31377eval "$as_ac_var=no"
31378fi
ac1cb8d3
VS
31379rm -f conftest.err conftest.$ac_objext \
31380 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31381fi
31382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31384if test `eval echo '${'$as_ac_var'}'` = yes; then
31385 cat >>confdefs.h <<_ACEOF
31386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31387_ACEOF
31388 cat >>confdefs.h <<\_ACEOF
31389#define HAVE_NANOSLEEP 1
31390_ACEOF
31391
31392else
31393
31394 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31395echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31396if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31398else
31399 ac_check_lib_save_LIBS=$LIBS
31400LIBS="-lposix4 $LIBS"
31401cat >conftest.$ac_ext <<_ACEOF
31402/* confdefs.h. */
31403_ACEOF
31404cat confdefs.h >>conftest.$ac_ext
31405cat >>conftest.$ac_ext <<_ACEOF
31406/* end confdefs.h. */
31407
31408/* Override any gcc2 internal prototype to avoid an error. */
31409#ifdef __cplusplus
31410extern "C"
31411#endif
31412/* We use char because int might match the return type of a gcc2
31413 builtin and then its argument prototype would still apply. */
31414char nanosleep ();
31415int
31416main ()
31417{
31418nanosleep ();
31419 ;
31420 return 0;
31421}
31422_ACEOF
31423rm -f conftest.$ac_objext conftest$ac_exeext
31424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31425 (eval $ac_link) 2>conftest.er1
a848cd7e 31426 ac_status=$?
ac1cb8d3
VS
31427 grep -v '^ *+' conftest.er1 >conftest.err
31428 rm -f conftest.er1
31429 cat conftest.err >&5
a848cd7e
SC
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); } &&
89be85c2
VS
31432 { ac_try='test -z "$ac_c_werror_flag"
31433 || test ! -s conftest.err'
ac1cb8d3
VS
31434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31435 (eval $ac_try) 2>&5
31436 ac_status=$?
31437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438 (exit $ac_status); }; } &&
31439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31441 (eval $ac_try) 2>&5
31442 ac_status=$?
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); }; }; then
31445 ac_cv_lib_posix4_nanosleep=yes
31446else
31447 echo "$as_me: failed program was:" >&5
31448sed 's/^/| /' conftest.$ac_ext >&5
31449
31450ac_cv_lib_posix4_nanosleep=no
31451fi
ac1cb8d3
VS
31452rm -f conftest.err conftest.$ac_objext \
31453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31454LIBS=$ac_check_lib_save_LIBS
31455fi
31456echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31457echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31458if test $ac_cv_lib_posix4_nanosleep = yes; then
31459
31460 cat >>confdefs.h <<\_ACEOF
31461#define HAVE_NANOSLEEP 1
31462_ACEOF
31463
31464 POSIX4_LINK=" -lposix4"
31465
31466else
31467
31468
31469for ac_func in usleep
31470do
31471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31472echo "$as_me:$LINENO: checking for $ac_func" >&5
31473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31474if eval "test \"\${$as_ac_var+set}\" = set"; then
31475 echo $ECHO_N "(cached) $ECHO_C" >&6
31476else
31477 cat >conftest.$ac_ext <<_ACEOF
31478/* confdefs.h. */
31479_ACEOF
31480cat confdefs.h >>conftest.$ac_ext
31481cat >>conftest.$ac_ext <<_ACEOF
31482/* end confdefs.h. */
ac1cb8d3
VS
31483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31485#define $ac_func innocuous_$ac_func
31486
a848cd7e
SC
31487/* System header to define __stub macros and hopefully few prototypes,
31488 which can conflict with char $ac_func (); below.
31489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31490 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31491
a848cd7e
SC
31492#ifdef __STDC__
31493# include <limits.h>
31494#else
31495# include <assert.h>
31496#endif
ac1cb8d3
VS
31497
31498#undef $ac_func
31499
a848cd7e
SC
31500/* Override any gcc2 internal prototype to avoid an error. */
31501#ifdef __cplusplus
31502extern "C"
31503{
31504#endif
31505/* We use char because int might match the return type of a gcc2
31506 builtin and then its argument prototype would still apply. */
31507char $ac_func ();
31508/* The GNU C library defines this for functions which it implements
31509 to always fail with ENOSYS. Some functions are actually named
31510 something starting with __ and the normal name is an alias. */
31511#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31512choke me
31513#else
31514char (*f) () = $ac_func;
31515#endif
31516#ifdef __cplusplus
31517}
31518#endif
31519
31520int
31521main ()
31522{
31523return f != $ac_func;
31524 ;
31525 return 0;
31526}
31527_ACEOF
31528rm -f conftest.$ac_objext conftest$ac_exeext
31529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31530 (eval $ac_link) 2>conftest.er1
a848cd7e 31531 ac_status=$?
ac1cb8d3
VS
31532 grep -v '^ *+' conftest.er1 >conftest.err
31533 rm -f conftest.er1
31534 cat conftest.err >&5
a848cd7e
SC
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); } &&
89be85c2
VS
31537 { ac_try='test -z "$ac_c_werror_flag"
31538 || test ! -s conftest.err'
ac1cb8d3
VS
31539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540 (eval $ac_try) 2>&5
31541 ac_status=$?
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; } &&
31544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31546 (eval $ac_try) 2>&5
31547 ac_status=$?
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; }; then
31550 eval "$as_ac_var=yes"
31551else
31552 echo "$as_me: failed program was:" >&5
31553sed 's/^/| /' conftest.$ac_ext >&5
31554
31555eval "$as_ac_var=no"
31556fi
ac1cb8d3
VS
31557rm -f conftest.err conftest.$ac_objext \
31558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31559fi
31560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31562if test `eval echo '${'$as_ac_var'}'` = yes; then
31563 cat >>confdefs.h <<_ACEOF
31564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31565_ACEOF
31566 cat >>confdefs.h <<\_ACEOF
31567#define HAVE_USLEEP 1
31568_ACEOF
31569
31570else
31571 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31572echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31573
31574fi
31575done
31576
31577
31578
31579fi
31580
31581
31582
31583fi
31584done
31585
31586fi
31587
31588
31589
31590for ac_func in uname gethostname
31591do
31592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31593echo "$as_me:$LINENO: checking for $ac_func" >&5
31594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31595if eval "test \"\${$as_ac_var+set}\" = set"; then
31596 echo $ECHO_N "(cached) $ECHO_C" >&6
31597else
31598 cat >conftest.$ac_ext <<_ACEOF
31599/* confdefs.h. */
31600_ACEOF
31601cat confdefs.h >>conftest.$ac_ext
31602cat >>conftest.$ac_ext <<_ACEOF
31603/* end confdefs.h. */
ac1cb8d3
VS
31604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31606#define $ac_func innocuous_$ac_func
31607
a848cd7e
SC
31608/* System header to define __stub macros and hopefully few prototypes,
31609 which can conflict with char $ac_func (); below.
31610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31611 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31612
a848cd7e
SC
31613#ifdef __STDC__
31614# include <limits.h>
31615#else
31616# include <assert.h>
31617#endif
ac1cb8d3
VS
31618
31619#undef $ac_func
31620
a848cd7e
SC
31621/* Override any gcc2 internal prototype to avoid an error. */
31622#ifdef __cplusplus
31623extern "C"
31624{
31625#endif
31626/* We use char because int might match the return type of a gcc2
31627 builtin and then its argument prototype would still apply. */
31628char $ac_func ();
31629/* The GNU C library defines this for functions which it implements
31630 to always fail with ENOSYS. Some functions are actually named
31631 something starting with __ and the normal name is an alias. */
31632#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31633choke me
31634#else
31635char (*f) () = $ac_func;
31636#endif
31637#ifdef __cplusplus
31638}
31639#endif
31640
31641int
31642main ()
31643{
31644return f != $ac_func;
31645 ;
31646 return 0;
31647}
31648_ACEOF
31649rm -f conftest.$ac_objext conftest$ac_exeext
31650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31651 (eval $ac_link) 2>conftest.er1
a848cd7e 31652 ac_status=$?
ac1cb8d3
VS
31653 grep -v '^ *+' conftest.er1 >conftest.err
31654 rm -f conftest.er1
31655 cat conftest.err >&5
a848cd7e
SC
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); } &&
89be85c2
VS
31658 { ac_try='test -z "$ac_c_werror_flag"
31659 || test ! -s conftest.err'
ac1cb8d3
VS
31660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31661 (eval $ac_try) 2>&5
31662 ac_status=$?
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); }; } &&
31665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31667 (eval $ac_try) 2>&5
31668 ac_status=$?
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; }; then
31671 eval "$as_ac_var=yes"
31672else
31673 echo "$as_me: failed program was:" >&5
31674sed 's/^/| /' conftest.$ac_ext >&5
31675
31676eval "$as_ac_var=no"
31677fi
ac1cb8d3
VS
31678rm -f conftest.err conftest.$ac_objext \
31679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31680fi
31681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31683if test `eval echo '${'$as_ac_var'}'` = yes; then
31684 cat >>confdefs.h <<_ACEOF
31685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31686_ACEOF
31687 break
31688fi
31689done
31690
31691
31692
31693
31694ac_ext=cc
31695ac_cpp='$CXXCPP $CPPFLAGS'
31696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31699
31700
31701
31702for ac_func in strtok_r
31703do
31704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31705echo "$as_me:$LINENO: checking for $ac_func" >&5
31706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31707if eval "test \"\${$as_ac_var+set}\" = set"; then
31708 echo $ECHO_N "(cached) $ECHO_C" >&6
31709else
31710 cat >conftest.$ac_ext <<_ACEOF
31711/* confdefs.h. */
31712_ACEOF
31713cat confdefs.h >>conftest.$ac_ext
31714cat >>conftest.$ac_ext <<_ACEOF
31715/* end confdefs.h. */
ac1cb8d3
VS
31716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31718#define $ac_func innocuous_$ac_func
31719
a848cd7e
SC
31720/* System header to define __stub macros and hopefully few prototypes,
31721 which can conflict with char $ac_func (); below.
31722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31723 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31724
a848cd7e
SC
31725#ifdef __STDC__
31726# include <limits.h>
31727#else
31728# include <assert.h>
31729#endif
ac1cb8d3
VS
31730
31731#undef $ac_func
31732
a848cd7e
SC
31733/* Override any gcc2 internal prototype to avoid an error. */
31734#ifdef __cplusplus
31735extern "C"
31736{
31737#endif
31738/* We use char because int might match the return type of a gcc2
31739 builtin and then its argument prototype would still apply. */
31740char $ac_func ();
31741/* The GNU C library defines this for functions which it implements
31742 to always fail with ENOSYS. Some functions are actually named
31743 something starting with __ and the normal name is an alias. */
31744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31745choke me
31746#else
31747char (*f) () = $ac_func;
31748#endif
31749#ifdef __cplusplus
31750}
31751#endif
31752
31753int
31754main ()
31755{
31756return f != $ac_func;
31757 ;
31758 return 0;
31759}
31760_ACEOF
31761rm -f conftest.$ac_objext conftest$ac_exeext
31762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31763 (eval $ac_link) 2>conftest.er1
a848cd7e 31764 ac_status=$?
ac1cb8d3
VS
31765 grep -v '^ *+' conftest.er1 >conftest.err
31766 rm -f conftest.er1
31767 cat conftest.err >&5
a848cd7e
SC
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); } &&
89be85c2
VS
31770 { ac_try='test -z "$ac_cxx_werror_flag"
31771 || test ! -s conftest.err'
ac1cb8d3
VS
31772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31773 (eval $ac_try) 2>&5
31774 ac_status=$?
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); }; } &&
31777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779 (eval $ac_try) 2>&5
31780 ac_status=$?
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); }; }; then
31783 eval "$as_ac_var=yes"
31784else
31785 echo "$as_me: failed program was:" >&5
31786sed 's/^/| /' conftest.$ac_ext >&5
31787
31788eval "$as_ac_var=no"
31789fi
ac1cb8d3
VS
31790rm -f conftest.err conftest.$ac_objext \
31791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31792fi
31793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31794echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31795if test `eval echo '${'$as_ac_var'}'` = yes; then
31796 cat >>confdefs.h <<_ACEOF
31797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31798_ACEOF
31799
31800fi
31801done
31802
31803
31804ac_ext=c
31805ac_cpp='$CPP $CPPFLAGS'
31806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31808ac_compiler_gnu=$ac_cv_c_compiler_gnu
31809
31810
31811INET_LINK=
31812
31813for ac_func in inet_addr
31814do
31815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31816echo "$as_me:$LINENO: checking for $ac_func" >&5
31817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31818if eval "test \"\${$as_ac_var+set}\" = set"; then
31819 echo $ECHO_N "(cached) $ECHO_C" >&6
31820else
31821 cat >conftest.$ac_ext <<_ACEOF
31822/* confdefs.h. */
31823_ACEOF
31824cat confdefs.h >>conftest.$ac_ext
31825cat >>conftest.$ac_ext <<_ACEOF
31826/* end confdefs.h. */
ac1cb8d3
VS
31827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31829#define $ac_func innocuous_$ac_func
31830
a848cd7e
SC
31831/* System header to define __stub macros and hopefully few prototypes,
31832 which can conflict with char $ac_func (); below.
31833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31834 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31835
a848cd7e
SC
31836#ifdef __STDC__
31837# include <limits.h>
31838#else
31839# include <assert.h>
31840#endif
ac1cb8d3
VS
31841
31842#undef $ac_func
31843
a848cd7e
SC
31844/* Override any gcc2 internal prototype to avoid an error. */
31845#ifdef __cplusplus
31846extern "C"
31847{
31848#endif
31849/* We use char because int might match the return type of a gcc2
31850 builtin and then its argument prototype would still apply. */
31851char $ac_func ();
31852/* The GNU C library defines this for functions which it implements
31853 to always fail with ENOSYS. Some functions are actually named
31854 something starting with __ and the normal name is an alias. */
31855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31856choke me
31857#else
31858char (*f) () = $ac_func;
31859#endif
31860#ifdef __cplusplus
31861}
31862#endif
31863
31864int
31865main ()
31866{
31867return f != $ac_func;
31868 ;
31869 return 0;
31870}
31871_ACEOF
31872rm -f conftest.$ac_objext conftest$ac_exeext
31873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31874 (eval $ac_link) 2>conftest.er1
a848cd7e 31875 ac_status=$?
ac1cb8d3
VS
31876 grep -v '^ *+' conftest.er1 >conftest.err
31877 rm -f conftest.er1
31878 cat conftest.err >&5
a848cd7e
SC
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
89be85c2
VS
31881 { ac_try='test -z "$ac_c_werror_flag"
31882 || test ! -s conftest.err'
ac1cb8d3
VS
31883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884 (eval $ac_try) 2>&5
31885 ac_status=$?
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; } &&
31888 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31891 ac_status=$?
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; }; then
31894 eval "$as_ac_var=yes"
31895else
31896 echo "$as_me: failed program was:" >&5
31897sed 's/^/| /' conftest.$ac_ext >&5
31898
31899eval "$as_ac_var=no"
31900fi
ac1cb8d3
VS
31901rm -f conftest.err conftest.$ac_objext \
31902 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31903fi
31904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31906if test `eval echo '${'$as_ac_var'}'` = yes; then
31907 cat >>confdefs.h <<_ACEOF
31908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31909_ACEOF
31910 cat >>confdefs.h <<\_ACEOF
31911#define HAVE_INET_ADDR 1
31912_ACEOF
31913
31914else
31915
31916 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31917echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31918if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31919 echo $ECHO_N "(cached) $ECHO_C" >&6
31920else
31921 ac_check_lib_save_LIBS=$LIBS
31922LIBS="-lnsl $LIBS"
31923cat >conftest.$ac_ext <<_ACEOF
31924/* confdefs.h. */
31925_ACEOF
31926cat confdefs.h >>conftest.$ac_ext
31927cat >>conftest.$ac_ext <<_ACEOF
31928/* end confdefs.h. */
31929
31930/* Override any gcc2 internal prototype to avoid an error. */
31931#ifdef __cplusplus
31932extern "C"
31933#endif
31934/* We use char because int might match the return type of a gcc2
31935 builtin and then its argument prototype would still apply. */
31936char inet_addr ();
31937int
31938main ()
31939{
31940inet_addr ();
31941 ;
31942 return 0;
31943}
31944_ACEOF
31945rm -f conftest.$ac_objext conftest$ac_exeext
31946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31947 (eval $ac_link) 2>conftest.er1
a848cd7e 31948 ac_status=$?
ac1cb8d3
VS
31949 grep -v '^ *+' conftest.er1 >conftest.err
31950 rm -f conftest.er1
31951 cat conftest.err >&5
a848cd7e
SC
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); } &&
89be85c2
VS
31954 { ac_try='test -z "$ac_c_werror_flag"
31955 || test ! -s conftest.err'
ac1cb8d3
VS
31956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31957 (eval $ac_try) 2>&5
31958 ac_status=$?
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); }; } &&
31961 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31963 (eval $ac_try) 2>&5
31964 ac_status=$?
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); }; }; then
31967 ac_cv_lib_nsl_inet_addr=yes
31968else
31969 echo "$as_me: failed program was:" >&5
31970sed 's/^/| /' conftest.$ac_ext >&5
31971
31972ac_cv_lib_nsl_inet_addr=no
31973fi
ac1cb8d3
VS
31974rm -f conftest.err conftest.$ac_objext \
31975 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31976LIBS=$ac_check_lib_save_LIBS
31977fi
31978echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31979echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31980if test $ac_cv_lib_nsl_inet_addr = yes; then
31981 INET_LINK="nsl"
31982else
31983
31984 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31985echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31986if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31987 echo $ECHO_N "(cached) $ECHO_C" >&6
31988else
31989 ac_check_lib_save_LIBS=$LIBS
31990LIBS="-lresolv $LIBS"
31991cat >conftest.$ac_ext <<_ACEOF
31992/* confdefs.h. */
31993_ACEOF
31994cat confdefs.h >>conftest.$ac_ext
31995cat >>conftest.$ac_ext <<_ACEOF
31996/* end confdefs.h. */
31997
31998/* Override any gcc2 internal prototype to avoid an error. */
31999#ifdef __cplusplus
32000extern "C"
32001#endif
32002/* We use char because int might match the return type of a gcc2
32003 builtin and then its argument prototype would still apply. */
32004char inet_addr ();
32005int
32006main ()
32007{
32008inet_addr ();
32009 ;
32010 return 0;
32011}
32012_ACEOF
32013rm -f conftest.$ac_objext conftest$ac_exeext
32014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32015 (eval $ac_link) 2>conftest.er1
a848cd7e 32016 ac_status=$?
ac1cb8d3
VS
32017 grep -v '^ *+' conftest.er1 >conftest.err
32018 rm -f conftest.er1
32019 cat conftest.err >&5
a848cd7e
SC
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); } &&
89be85c2
VS
32022 { ac_try='test -z "$ac_c_werror_flag"
32023 || test ! -s conftest.err'
ac1cb8d3
VS
32024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32025 (eval $ac_try) 2>&5
32026 ac_status=$?
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; } &&
32029 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32031 (eval $ac_try) 2>&5
32032 ac_status=$?
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; }; then
32035 ac_cv_lib_resolv_inet_addr=yes
32036else
32037 echo "$as_me: failed program was:" >&5
32038sed 's/^/| /' conftest.$ac_ext >&5
32039
32040ac_cv_lib_resolv_inet_addr=no
32041fi
ac1cb8d3
VS
32042rm -f conftest.err conftest.$ac_objext \
32043 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32044LIBS=$ac_check_lib_save_LIBS
32045fi
32046echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32047echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32048if test $ac_cv_lib_resolv_inet_addr = yes; then
32049 INET_LINK="resolv"
32050else
32051
32052 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32053echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32054if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32055 echo $ECHO_N "(cached) $ECHO_C" >&6
32056else
32057 ac_check_lib_save_LIBS=$LIBS
32058LIBS="-lsocket $LIBS"
32059cat >conftest.$ac_ext <<_ACEOF
32060/* confdefs.h. */
32061_ACEOF
32062cat confdefs.h >>conftest.$ac_ext
32063cat >>conftest.$ac_ext <<_ACEOF
32064/* end confdefs.h. */
32065
32066/* Override any gcc2 internal prototype to avoid an error. */
32067#ifdef __cplusplus
32068extern "C"
32069#endif
32070/* We use char because int might match the return type of a gcc2
32071 builtin and then its argument prototype would still apply. */
32072char inet_addr ();
32073int
32074main ()
32075{
32076inet_addr ();
32077 ;
32078 return 0;
32079}
32080_ACEOF
32081rm -f conftest.$ac_objext conftest$ac_exeext
32082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32083 (eval $ac_link) 2>conftest.er1
a848cd7e 32084 ac_status=$?
ac1cb8d3
VS
32085 grep -v '^ *+' conftest.er1 >conftest.err
32086 rm -f conftest.er1
32087 cat conftest.err >&5
a848cd7e
SC
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); } &&
89be85c2
VS
32090 { ac_try='test -z "$ac_c_werror_flag"
32091 || test ! -s conftest.err'
ac1cb8d3
VS
32092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32093 (eval $ac_try) 2>&5
32094 ac_status=$?
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); }; } &&
32097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32099 (eval $ac_try) 2>&5
32100 ac_status=$?
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; }; then
32103 ac_cv_lib_socket_inet_addr=yes
32104else
32105 echo "$as_me: failed program was:" >&5
32106sed 's/^/| /' conftest.$ac_ext >&5
32107
32108ac_cv_lib_socket_inet_addr=no
32109fi
ac1cb8d3
VS
32110rm -f conftest.err conftest.$ac_objext \
32111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32112LIBS=$ac_check_lib_save_LIBS
32113fi
32114echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32115echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32116if test $ac_cv_lib_socket_inet_addr = yes; then
32117 INET_LINK="socket"
32118
32119fi
32120
32121
32122
32123fi
32124
32125
32126
32127fi
32128
32129
32130
32131fi
32132done
32133
32134
32135
32136for ac_func in inet_aton
32137do
32138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32139echo "$as_me:$LINENO: checking for $ac_func" >&5
32140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32141if eval "test \"\${$as_ac_var+set}\" = set"; then
32142 echo $ECHO_N "(cached) $ECHO_C" >&6
32143else
32144 cat >conftest.$ac_ext <<_ACEOF
32145/* confdefs.h. */
32146_ACEOF
32147cat confdefs.h >>conftest.$ac_ext
32148cat >>conftest.$ac_ext <<_ACEOF
32149/* end confdefs.h. */
ac1cb8d3
VS
32150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32152#define $ac_func innocuous_$ac_func
32153
a848cd7e
SC
32154/* System header to define __stub macros and hopefully few prototypes,
32155 which can conflict with char $ac_func (); below.
32156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32157 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32158
a848cd7e
SC
32159#ifdef __STDC__
32160# include <limits.h>
32161#else
32162# include <assert.h>
32163#endif
ac1cb8d3
VS
32164
32165#undef $ac_func
32166
a848cd7e
SC
32167/* Override any gcc2 internal prototype to avoid an error. */
32168#ifdef __cplusplus
32169extern "C"
32170{
32171#endif
32172/* We use char because int might match the return type of a gcc2
32173 builtin and then its argument prototype would still apply. */
32174char $ac_func ();
32175/* The GNU C library defines this for functions which it implements
32176 to always fail with ENOSYS. Some functions are actually named
32177 something starting with __ and the normal name is an alias. */
32178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32179choke me
32180#else
32181char (*f) () = $ac_func;
32182#endif
32183#ifdef __cplusplus
32184}
32185#endif
32186
32187int
32188main ()
32189{
32190return f != $ac_func;
32191 ;
32192 return 0;
32193}
32194_ACEOF
32195rm -f conftest.$ac_objext conftest$ac_exeext
32196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32197 (eval $ac_link) 2>conftest.er1
a848cd7e 32198 ac_status=$?
ac1cb8d3
VS
32199 grep -v '^ *+' conftest.er1 >conftest.err
32200 rm -f conftest.er1
32201 cat conftest.err >&5
a848cd7e
SC
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } &&
89be85c2
VS
32204 { ac_try='test -z "$ac_c_werror_flag"
32205 || test ! -s conftest.err'
ac1cb8d3
VS
32206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207 (eval $ac_try) 2>&5
32208 ac_status=$?
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); }; } &&
32211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32213 (eval $ac_try) 2>&5
32214 ac_status=$?
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; }; then
32217 eval "$as_ac_var=yes"
32218else
32219 echo "$as_me: failed program was:" >&5
32220sed 's/^/| /' conftest.$ac_ext >&5
32221
32222eval "$as_ac_var=no"
32223fi
ac1cb8d3
VS
32224rm -f conftest.err conftest.$ac_objext \
32225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32226fi
32227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32228echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32229if test `eval echo '${'$as_ac_var'}'` = yes; then
32230 cat >>confdefs.h <<_ACEOF
32231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32232_ACEOF
32233 cat >>confdefs.h <<\_ACEOF
32234#define HAVE_INET_ATON 1
32235_ACEOF
32236
32237else
32238
32239 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32240echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32241echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32242if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32243 echo $ECHO_N "(cached) $ECHO_C" >&6
32244else
32245 ac_check_lib_save_LIBS=$LIBS
32246LIBS="-l$INET_LINK $LIBS"
32247cat >conftest.$ac_ext <<_ACEOF
32248/* confdefs.h. */
32249_ACEOF
32250cat confdefs.h >>conftest.$ac_ext
32251cat >>conftest.$ac_ext <<_ACEOF
32252/* end confdefs.h. */
32253
32254/* Override any gcc2 internal prototype to avoid an error. */
32255#ifdef __cplusplus
32256extern "C"
32257#endif
32258/* We use char because int might match the return type of a gcc2
32259 builtin and then its argument prototype would still apply. */
32260char inet_aton ();
32261int
32262main ()
32263{
32264inet_aton ();
32265 ;
32266 return 0;
32267}
32268_ACEOF
32269rm -f conftest.$ac_objext conftest$ac_exeext
32270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32271 (eval $ac_link) 2>conftest.er1
a848cd7e 32272 ac_status=$?
ac1cb8d3
VS
32273 grep -v '^ *+' conftest.er1 >conftest.err
32274 rm -f conftest.er1
32275 cat conftest.err >&5
a848cd7e
SC
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); } &&
89be85c2
VS
32278 { ac_try='test -z "$ac_c_werror_flag"
32279 || test ! -s conftest.err'
ac1cb8d3
VS
32280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281 (eval $ac_try) 2>&5
32282 ac_status=$?
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); }; } &&
32285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32287 (eval $ac_try) 2>&5
32288 ac_status=$?
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); }; }; then
32291 eval "$as_ac_Lib=yes"
32292else
32293 echo "$as_me: failed program was:" >&5
32294sed 's/^/| /' conftest.$ac_ext >&5
32295
32296eval "$as_ac_Lib=no"
32297fi
ac1cb8d3
VS
32298rm -f conftest.err conftest.$ac_objext \
32299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32300LIBS=$ac_check_lib_save_LIBS
32301fi
32302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32303echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32304if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32305 cat >>confdefs.h <<\_ACEOF
32306#define HAVE_INET_ATON 1
32307_ACEOF
32308
32309fi
32310
32311
32312fi
32313done
32314
32315
32316if test "x$INET_LINK" != "x"; then
32317 cat >>confdefs.h <<\_ACEOF
32318#define HAVE_INET_ADDR 1
32319_ACEOF
32320
32321 INET_LINK=" -l$INET_LINK"
32322fi
32323
32324fi
32325
32326
32327
32328EXTRALIBS_ESD=
32329echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32330echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32331if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32332 echo $ECHO_N "(cached) $ECHO_C" >&6
32333else
32334 ac_check_lib_save_LIBS=$LIBS
32335LIBS="-lesd $LIBS"
32336cat >conftest.$ac_ext <<_ACEOF
32337/* confdefs.h. */
32338_ACEOF
32339cat confdefs.h >>conftest.$ac_ext
32340cat >>conftest.$ac_ext <<_ACEOF
32341/* end confdefs.h. */
32342
32343/* Override any gcc2 internal prototype to avoid an error. */
32344#ifdef __cplusplus
32345extern "C"
32346#endif
32347/* We use char because int might match the return type of a gcc2
32348 builtin and then its argument prototype would still apply. */
32349char esd_close ();
32350int
32351main ()
32352{
32353esd_close ();
32354 ;
32355 return 0;
32356}
32357_ACEOF
32358rm -f conftest.$ac_objext conftest$ac_exeext
32359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32360 (eval $ac_link) 2>conftest.er1
a848cd7e 32361 ac_status=$?
ac1cb8d3
VS
32362 grep -v '^ *+' conftest.er1 >conftest.err
32363 rm -f conftest.er1
32364 cat conftest.err >&5
a848cd7e
SC
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); } &&
89be85c2
VS
32367 { ac_try='test -z "$ac_c_werror_flag"
32368 || test ! -s conftest.err'
ac1cb8d3
VS
32369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32370 (eval $ac_try) 2>&5
32371 ac_status=$?
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); }; } &&
32374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32376 (eval $ac_try) 2>&5
32377 ac_status=$?
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379 (exit $ac_status); }; }; then
32380 ac_cv_lib_esd_esd_close=yes
32381else
32382 echo "$as_me: failed program was:" >&5
32383sed 's/^/| /' conftest.$ac_ext >&5
32384
32385ac_cv_lib_esd_esd_close=no
32386fi
ac1cb8d3
VS
32387rm -f conftest.err conftest.$ac_objext \
32388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32389LIBS=$ac_check_lib_save_LIBS
32390fi
32391echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32392echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32393if test $ac_cv_lib_esd_esd_close = yes; then
32394
32395
32396for ac_header in esd.h
32397do
32398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32399if eval "test \"\${$as_ac_Header+set}\" = set"; then
32400 echo "$as_me:$LINENO: checking for $ac_header" >&5
32401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32402if eval "test \"\${$as_ac_Header+set}\" = set"; then
32403 echo $ECHO_N "(cached) $ECHO_C" >&6
32404fi
32405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32407else
32408 # Is the header compilable?
32409echo "$as_me:$LINENO: checking $ac_header usability" >&5
32410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32411cat >conftest.$ac_ext <<_ACEOF
32412/* confdefs.h. */
32413_ACEOF
32414cat confdefs.h >>conftest.$ac_ext
32415cat >>conftest.$ac_ext <<_ACEOF
32416/* end confdefs.h. */
32417$ac_includes_default
32418#include <$ac_header>
32419_ACEOF
32420rm -f conftest.$ac_objext
32421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32422 (eval $ac_compile) 2>conftest.er1
a848cd7e 32423 ac_status=$?
ac1cb8d3
VS
32424 grep -v '^ *+' conftest.er1 >conftest.err
32425 rm -f conftest.er1
32426 cat conftest.err >&5
a848cd7e
SC
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); } &&
89be85c2
VS
32429 { ac_try='test -z "$ac_c_werror_flag"
32430 || test ! -s conftest.err'
ac1cb8d3
VS
32431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32432 (eval $ac_try) 2>&5
32433 ac_status=$?
32434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435 (exit $ac_status); }; } &&
32436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32438 (eval $ac_try) 2>&5
32439 ac_status=$?
32440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441 (exit $ac_status); }; }; then
32442 ac_header_compiler=yes
32443else
32444 echo "$as_me: failed program was:" >&5
32445sed 's/^/| /' conftest.$ac_ext >&5
32446
32447ac_header_compiler=no
32448fi
ac1cb8d3 32449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32451echo "${ECHO_T}$ac_header_compiler" >&6
32452
32453# Is the header present?
32454echo "$as_me:$LINENO: checking $ac_header presence" >&5
32455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32456cat >conftest.$ac_ext <<_ACEOF
32457/* confdefs.h. */
32458_ACEOF
32459cat confdefs.h >>conftest.$ac_ext
32460cat >>conftest.$ac_ext <<_ACEOF
32461/* end confdefs.h. */
32462#include <$ac_header>
32463_ACEOF
32464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32466 ac_status=$?
32467 grep -v '^ *+' conftest.er1 >conftest.err
32468 rm -f conftest.er1
32469 cat conftest.err >&5
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); } >/dev/null; then
32472 if test -s conftest.err; then
32473 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32475 else
32476 ac_cpp_err=
32477 fi
32478else
32479 ac_cpp_err=yes
32480fi
32481if test -z "$ac_cpp_err"; then
32482 ac_header_preproc=yes
32483else
32484 echo "$as_me: failed program was:" >&5
32485sed 's/^/| /' conftest.$ac_ext >&5
32486
32487 ac_header_preproc=no
32488fi
32489rm -f conftest.err conftest.$ac_ext
32490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32491echo "${ECHO_T}$ac_header_preproc" >&6
32492
32493# So? What about this header?
ac1cb8d3
VS
32494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32495 yes:no: )
a848cd7e
SC
32496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32500 ac_header_preproc=yes
a848cd7e 32501 ;;
ac1cb8d3 32502 no:yes:* )
a848cd7e
SC
32503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32510echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32515 (
32516 cat <<\_ASBOX
ac1cb8d3
VS
32517## ----------------------------------------- ##
32518## Report this to wx-dev@lists.wxwidgets.org ##
32519## ----------------------------------------- ##
a848cd7e
SC
32520_ASBOX
32521 ) |
32522 sed "s/^/$as_me: WARNING: /" >&2
32523 ;;
32524esac
32525echo "$as_me:$LINENO: checking for $ac_header" >&5
32526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32527if eval "test \"\${$as_ac_Header+set}\" = set"; then
32528 echo $ECHO_N "(cached) $ECHO_C" >&6
32529else
ac1cb8d3 32530 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32531fi
32532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32534
32535fi
32536if test `eval echo '${'$as_ac_Header'}'` = yes; then
32537 cat >>confdefs.h <<_ACEOF
32538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32539_ACEOF
32540
32541 EXTRALIBS_ESD="-lesd"
32542
32543fi
32544
32545done
32546
32547
32548fi
32549
32550
32551
32552echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32553echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32554cat >conftest.$ac_ext <<_ACEOF
32555/* confdefs.h. */
32556_ACEOF
32557cat confdefs.h >>conftest.$ac_ext
32558cat >>conftest.$ac_ext <<_ACEOF
32559/* end confdefs.h. */
32560#ifdef __linux__
32561 #include <linux/cdrom.h>
32562 #else
32563 /* For Solaris */
32564 #include <sys/cdio.h>
32565 #endif
32566
32567int
32568main ()
32569{
32570struct cdrom_tocentry entry, old_entry;
32571 ;
32572 return 0;
32573}
32574_ACEOF
32575rm -f conftest.$ac_objext
32576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32577 (eval $ac_compile) 2>conftest.er1
a848cd7e 32578 ac_status=$?
ac1cb8d3
VS
32579 grep -v '^ *+' conftest.er1 >conftest.err
32580 rm -f conftest.er1
32581 cat conftest.err >&5
a848cd7e
SC
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); } &&
89be85c2
VS
32584 { ac_try='test -z "$ac_c_werror_flag"
32585 || test ! -s conftest.err'
ac1cb8d3
VS
32586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32587 (eval $ac_try) 2>&5
32588 ac_status=$?
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); }; } &&
32591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32593 (eval $ac_try) 2>&5
32594 ac_status=$?
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; }; then
32597 echo "$as_me:$LINENO: result: yes" >&5
32598echo "${ECHO_T}yes" >&6
32599 cat >>confdefs.h <<\_ACEOF
32600#define HAVE_KNOWN_CDROM_INTERFACE 1
32601_ACEOF
32602
32603else
32604 echo "$as_me: failed program was:" >&5
32605sed 's/^/| /' conftest.$ac_ext >&5
32606
32607echo "$as_me:$LINENO: result: no" >&5
32608echo "${ECHO_T}no" >&6
32609fi
ac1cb8d3 32610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32611
32612
32613cat >confcache <<\_ACEOF
32614# This file is a shell script that caches the results of configure
32615# tests run on this system so they can be shared between configure
32616# scripts and configure runs, see configure's option --config-cache.
32617# It is not useful on other systems. If it contains results you don't
32618# want to keep, you may remove or edit it.
32619#
32620# config.status only pays attention to the cache file if you give it
32621# the --recheck option to rerun configure.
32622#
32623# `ac_cv_env_foo' variables (set or unset) will be overridden when
32624# loading this file, other *unset* `ac_cv_foo' will be assigned the
32625# following values.
32626
32627_ACEOF
32628
32629# The following way of writing the cache mishandles newlines in values,
32630# but we know of no workaround that is simple, portable, and efficient.
32631# So, don't put newlines in cache variables' values.
32632# Ultrix sh set writes to stderr and can't be redirected directly,
32633# and sets the high bit in the cache file unless we assign to the vars.
32634{
32635 (set) 2>&1 |
32636 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32637 *ac_space=\ *)
32638 # `set' does not quote correctly, so add quotes (double-quote
32639 # substitution turns \\\\ into \\, and sed turns \\ into \).
32640 sed -n \
ac1cb8d3
VS
32641 "s/'/'\\\\''/g;
32642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32643 ;;
32644 *)
32645 # `set' quotes correctly as required by POSIX, so do not add quotes.
32646 sed -n \
ac1cb8d3 32647 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32648 ;;
32649 esac;
32650} |
32651 sed '
32652 t clear
32653 : clear
32654 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32655 t end
32656 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32657 : end' >>confcache
32658if diff $cache_file confcache >/dev/null 2>&1; then :; else
32659 if test -w $cache_file; then
32660 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32661 cat confcache >$cache_file
32662 else
32663 echo "not updating unwritable cache $cache_file"
32664 fi
32665fi
32666rm -f confcache
32667
32668
32669CPP_MT_FLAG=
32670if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32671
32672
32673 THREADS_LINK=
32674 THREADS_CFLAGS=
32675
32676 if test "$wxUSE_THREADS" = "yes" ; then
32677 if test "$USE_BEOS" = 1; then
32678 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32679echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32680 wxUSE_THREADS="no"
32681 fi
32682 fi
32683
32684 if test "$wxUSE_THREADS" = "yes" ; then
32685
32686
32687 THREAD_OPTS="-pthread"
32688 case "${host}" in
32689 *-*-solaris2* | *-*-sunos4* )
32690 if test "x$GCC" = "xyes"; then
32691 THREAD_OPTS="-pthreads $THREAD_OPTS"
32692 else
32693 THREAD_OPTS="-mt $THREAD_OPTS"
32694 fi
32695 ;;
32696 *-*-freebsd*)
32697 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32698 ;;
32699 *-*-darwin* | *-*-cygwin* )
32700 THREAD_OPTS=""
32701 ;;
32702 *-*-aix*)
32703 THREAD_OPTS="pthreads"
32704 ;;
32705 *-hp-hpux* )
32706 if test "x$GCC" != "xyes"; then
32707 THREAD_OPTS=""
32708 fi
32709 ;;
32710
32711 *-*-irix* )
32712 if test "x$GCC" = "xyes"; then
32713 THREAD_OPTS=""
32714 fi
32715 ;;
32716
32717 *-*-*UnixWare*)
32718 if test "x$GCC" != "xyes"; then
32719 THREAD_OPTS="-Ethread"
32720 fi
32721 ;;
32722 esac
32723
32724 THREAD_OPTS="$THREAD_OPTS pthread none"
32725
32726 THREADS_OK=no
32727 for flag in $THREAD_OPTS; do
32728 case $flag in
32729 none)
32730 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32731echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32732 ;;
32733
32734 -*)
32735 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32736echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32737 THREADS_CFLAGS="$flag"
32738 ;;
32739
32740 *)
32741 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32742echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32743 THREADS_LINK="-l$flag"
32744 ;;
32745 esac
32746
32747 save_LIBS="$LIBS"
32748 save_CFLAGS="$CFLAGS"
32749 LIBS="$THREADS_LINK $LIBS"
32750 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32751
32752 cat >conftest.$ac_ext <<_ACEOF
32753/* confdefs.h. */
32754_ACEOF
32755cat confdefs.h >>conftest.$ac_ext
32756cat >>conftest.$ac_ext <<_ACEOF
32757/* end confdefs.h. */
32758#include <pthread.h>
32759int
32760main ()
32761{
32762pthread_create(0,0,0,0);
32763 ;
32764 return 0;
32765}
32766_ACEOF
32767rm -f conftest.$ac_objext conftest$ac_exeext
32768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32769 (eval $ac_link) 2>conftest.er1
a848cd7e 32770 ac_status=$?
ac1cb8d3
VS
32771 grep -v '^ *+' conftest.er1 >conftest.err
32772 rm -f conftest.er1
32773 cat conftest.err >&5
a848cd7e
SC
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); } &&
89be85c2
VS
32776 { ac_try='test -z "$ac_c_werror_flag"
32777 || test ! -s conftest.err'
ac1cb8d3
VS
32778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32779 (eval $ac_try) 2>&5
32780 ac_status=$?
32781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782 (exit $ac_status); }; } &&
32783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32785 (eval $ac_try) 2>&5
32786 ac_status=$?
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; }; then
32789 THREADS_OK=yes
32790else
32791 echo "$as_me: failed program was:" >&5
32792sed 's/^/| /' conftest.$ac_ext >&5
32793
32794fi
ac1cb8d3
VS
32795rm -f conftest.err conftest.$ac_objext \
32796 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32797
32798 LIBS="$save_LIBS"
32799 CFLAGS="$save_CFLAGS"
32800
32801 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32802echo "${ECHO_T}$THREADS_OK" >&6
32803 if test "x$THREADS_OK" = "xyes"; then
32804 break;
32805 fi
32806
32807 THREADS_LINK=""
32808 THREADS_CFLAGS=""
32809 done
32810
32811 if test "x$THREADS_OK" != "xyes"; then
32812 wxUSE_THREADS=no
32813 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32814echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32815 else
32816 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32817 LIBS="$THREADS_LINK $LIBS"
32818
32819 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32820echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32821 flag=no
32822 case "${host}" in
32823 *-aix*)
32824 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32825 flag="-D_THREAD_SAFE"
32826 ;;
32827 *-freebsd*)
32828 flag="-D_THREAD_SAFE"
32829 ;;
32830 *-hp-hpux* )
32831 flag="-D_REENTRANT"
32832 if test "x$GCC" != "xyes"; then
32833 flag="$flag -D_RWSTD_MULTI_THREAD"
32834 fi
32835 ;;
32836 *solaris* | alpha*-osf*)
32837 flag="-D_REENTRANT"
32838 ;;
32839 esac
32840 echo "$as_me:$LINENO: result: ${flag}" >&5
32841echo "${ECHO_T}${flag}" >&6
32842 if test "x$flag" != xno; then
32843 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32844 fi
32845
32846 if test "x$THREADS_CFLAGS" != "x"; then
32847 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32848 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32849 fi
32850 fi
32851 fi
32852
32853 if test "$wxUSE_THREADS" = "yes" ; then
32854
32855for ac_func in thr_setconcurrency
32856do
32857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32858echo "$as_me:$LINENO: checking for $ac_func" >&5
32859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32860if eval "test \"\${$as_ac_var+set}\" = set"; then
32861 echo $ECHO_N "(cached) $ECHO_C" >&6
32862else
32863 cat >conftest.$ac_ext <<_ACEOF
32864/* confdefs.h. */
32865_ACEOF
32866cat confdefs.h >>conftest.$ac_ext
32867cat >>conftest.$ac_ext <<_ACEOF
32868/* end confdefs.h. */
ac1cb8d3
VS
32869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32871#define $ac_func innocuous_$ac_func
32872
a848cd7e
SC
32873/* System header to define __stub macros and hopefully few prototypes,
32874 which can conflict with char $ac_func (); below.
32875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32876 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32877
a848cd7e
SC
32878#ifdef __STDC__
32879# include <limits.h>
32880#else
32881# include <assert.h>
32882#endif
ac1cb8d3
VS
32883
32884#undef $ac_func
32885
a848cd7e
SC
32886/* Override any gcc2 internal prototype to avoid an error. */
32887#ifdef __cplusplus
32888extern "C"
32889{
32890#endif
32891/* We use char because int might match the return type of a gcc2
32892 builtin and then its argument prototype would still apply. */
32893char $ac_func ();
32894/* The GNU C library defines this for functions which it implements
32895 to always fail with ENOSYS. Some functions are actually named
32896 something starting with __ and the normal name is an alias. */
32897#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32898choke me
32899#else
32900char (*f) () = $ac_func;
32901#endif
32902#ifdef __cplusplus
32903}
32904#endif
32905
32906int
32907main ()
32908{
32909return f != $ac_func;
32910 ;
32911 return 0;
32912}
32913_ACEOF
32914rm -f conftest.$ac_objext conftest$ac_exeext
32915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32916 (eval $ac_link) 2>conftest.er1
a848cd7e 32917 ac_status=$?
ac1cb8d3
VS
32918 grep -v '^ *+' conftest.er1 >conftest.err
32919 rm -f conftest.er1
32920 cat conftest.err >&5
a848cd7e
SC
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); } &&
89be85c2
VS
32923 { ac_try='test -z "$ac_c_werror_flag"
32924 || test ! -s conftest.err'
ac1cb8d3
VS
32925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32926 (eval $ac_try) 2>&5
32927 ac_status=$?
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; } &&
32930 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32932 (eval $ac_try) 2>&5
32933 ac_status=$?
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); }; }; then
32936 eval "$as_ac_var=yes"
32937else
32938 echo "$as_me: failed program was:" >&5
32939sed 's/^/| /' conftest.$ac_ext >&5
32940
32941eval "$as_ac_var=no"
32942fi
ac1cb8d3
VS
32943rm -f conftest.err conftest.$ac_objext \
32944 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32945fi
32946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32947echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32948if test `eval echo '${'$as_ac_var'}'` = yes; then
32949 cat >>confdefs.h <<_ACEOF
32950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32951_ACEOF
32952
32953fi
32954done
32955
32956
32957
32958for ac_header in sched.h
32959do
32960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32961if eval "test \"\${$as_ac_Header+set}\" = set"; then
32962 echo "$as_me:$LINENO: checking for $ac_header" >&5
32963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32964if eval "test \"\${$as_ac_Header+set}\" = set"; then
32965 echo $ECHO_N "(cached) $ECHO_C" >&6
32966fi
32967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32969else
32970 # Is the header compilable?
32971echo "$as_me:$LINENO: checking $ac_header usability" >&5
32972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32973cat >conftest.$ac_ext <<_ACEOF
32974/* confdefs.h. */
32975_ACEOF
32976cat confdefs.h >>conftest.$ac_ext
32977cat >>conftest.$ac_ext <<_ACEOF
32978/* end confdefs.h. */
32979$ac_includes_default
32980#include <$ac_header>
32981_ACEOF
32982rm -f conftest.$ac_objext
32983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32984 (eval $ac_compile) 2>conftest.er1
a848cd7e 32985 ac_status=$?
ac1cb8d3
VS
32986 grep -v '^ *+' conftest.er1 >conftest.err
32987 rm -f conftest.er1
32988 cat conftest.err >&5
a848cd7e
SC
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); } &&
89be85c2
VS
32991 { ac_try='test -z "$ac_c_werror_flag"
32992 || test ! -s conftest.err'
ac1cb8d3
VS
32993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32994 (eval $ac_try) 2>&5
32995 ac_status=$?
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); }; } &&
32998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33000 (eval $ac_try) 2>&5
33001 ac_status=$?
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; }; then
33004 ac_header_compiler=yes
33005else
33006 echo "$as_me: failed program was:" >&5
33007sed 's/^/| /' conftest.$ac_ext >&5
33008
33009ac_header_compiler=no
33010fi
ac1cb8d3 33011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33013echo "${ECHO_T}$ac_header_compiler" >&6
33014
33015# Is the header present?
33016echo "$as_me:$LINENO: checking $ac_header presence" >&5
33017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33018cat >conftest.$ac_ext <<_ACEOF
33019/* confdefs.h. */
33020_ACEOF
33021cat confdefs.h >>conftest.$ac_ext
33022cat >>conftest.$ac_ext <<_ACEOF
33023/* end confdefs.h. */
33024#include <$ac_header>
33025_ACEOF
33026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33028 ac_status=$?
33029 grep -v '^ *+' conftest.er1 >conftest.err
33030 rm -f conftest.er1
33031 cat conftest.err >&5
33032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033 (exit $ac_status); } >/dev/null; then
33034 if test -s conftest.err; then
33035 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33037 else
33038 ac_cpp_err=
33039 fi
33040else
33041 ac_cpp_err=yes
33042fi
33043if test -z "$ac_cpp_err"; then
33044 ac_header_preproc=yes
33045else
33046 echo "$as_me: failed program was:" >&5
33047sed 's/^/| /' conftest.$ac_ext >&5
33048
33049 ac_header_preproc=no
33050fi
33051rm -f conftest.err conftest.$ac_ext
33052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33053echo "${ECHO_T}$ac_header_preproc" >&6
33054
33055# So? What about this header?
ac1cb8d3
VS
33056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33057 yes:no: )
a848cd7e
SC
33058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33059echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33061echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33062 ac_header_preproc=yes
a848cd7e 33063 ;;
ac1cb8d3 33064 no:yes:* )
a848cd7e
SC
33065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33066echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33068echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33070echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33072echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33076echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33077 (
33078 cat <<\_ASBOX
ac1cb8d3
VS
33079## ----------------------------------------- ##
33080## Report this to wx-dev@lists.wxwidgets.org ##
33081## ----------------------------------------- ##
a848cd7e
SC
33082_ASBOX
33083 ) |
33084 sed "s/^/$as_me: WARNING: /" >&2
33085 ;;
33086esac
33087echo "$as_me:$LINENO: checking for $ac_header" >&5
33088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33089if eval "test \"\${$as_ac_Header+set}\" = set"; then
33090 echo $ECHO_N "(cached) $ECHO_C" >&6
33091else
ac1cb8d3 33092 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33093fi
33094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33096
33097fi
33098if test `eval echo '${'$as_ac_Header'}'` = yes; then
33099 cat >>confdefs.h <<_ACEOF
33100#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33101_ACEOF
33102
33103fi
33104
33105done
33106
33107 if test "$ac_cv_header_sched_h" = "yes"; then
33108 echo "$as_me:$LINENO: checking for sched_yield" >&5
33109echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33110if test "${ac_cv_func_sched_yield+set}" = set; then
33111 echo $ECHO_N "(cached) $ECHO_C" >&6
33112else
33113 cat >conftest.$ac_ext <<_ACEOF
33114/* confdefs.h. */
33115_ACEOF
33116cat confdefs.h >>conftest.$ac_ext
33117cat >>conftest.$ac_ext <<_ACEOF
33118/* end confdefs.h. */
ac1cb8d3
VS
33119/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33121#define sched_yield innocuous_sched_yield
33122
a848cd7e
SC
33123/* System header to define __stub macros and hopefully few prototypes,
33124 which can conflict with char sched_yield (); below.
33125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33126 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33127
a848cd7e
SC
33128#ifdef __STDC__
33129# include <limits.h>
33130#else
33131# include <assert.h>
33132#endif
ac1cb8d3
VS
33133
33134#undef sched_yield
33135
a848cd7e
SC
33136/* Override any gcc2 internal prototype to avoid an error. */
33137#ifdef __cplusplus
33138extern "C"
33139{
33140#endif
33141/* We use char because int might match the return type of a gcc2
33142 builtin and then its argument prototype would still apply. */
33143char sched_yield ();
33144/* The GNU C library defines this for functions which it implements
33145 to always fail with ENOSYS. Some functions are actually named
33146 something starting with __ and the normal name is an alias. */
33147#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33148choke me
33149#else
33150char (*f) () = sched_yield;
33151#endif
33152#ifdef __cplusplus
33153}
33154#endif
33155
33156int
33157main ()
33158{
33159return f != sched_yield;
33160 ;
33161 return 0;
33162}
33163_ACEOF
33164rm -f conftest.$ac_objext conftest$ac_exeext
33165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33166 (eval $ac_link) 2>conftest.er1
a848cd7e 33167 ac_status=$?
ac1cb8d3
VS
33168 grep -v '^ *+' conftest.er1 >conftest.err
33169 rm -f conftest.er1
33170 cat conftest.err >&5
a848cd7e
SC
33171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33172 (exit $ac_status); } &&
89be85c2
VS
33173 { ac_try='test -z "$ac_c_werror_flag"
33174 || test ! -s conftest.err'
ac1cb8d3
VS
33175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33176 (eval $ac_try) 2>&5
33177 ac_status=$?
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); }; } &&
33180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182 (eval $ac_try) 2>&5
33183 ac_status=$?
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; }; then
33186 ac_cv_func_sched_yield=yes
33187else
33188 echo "$as_me: failed program was:" >&5
33189sed 's/^/| /' conftest.$ac_ext >&5
33190
33191ac_cv_func_sched_yield=no
33192fi
ac1cb8d3
VS
33193rm -f conftest.err conftest.$ac_objext \
33194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33195fi
33196echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33197echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33198if test $ac_cv_func_sched_yield = yes; then
33199 cat >>confdefs.h <<\_ACEOF
33200#define HAVE_SCHED_YIELD 1
33201_ACEOF
33202
33203else
33204
33205 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33206echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33207if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33208 echo $ECHO_N "(cached) $ECHO_C" >&6
33209else
33210 ac_check_lib_save_LIBS=$LIBS
33211LIBS="-lposix4 $LIBS"
33212cat >conftest.$ac_ext <<_ACEOF
33213/* confdefs.h. */
33214_ACEOF
33215cat confdefs.h >>conftest.$ac_ext
33216cat >>conftest.$ac_ext <<_ACEOF
33217/* end confdefs.h. */
33218
33219/* Override any gcc2 internal prototype to avoid an error. */
33220#ifdef __cplusplus
33221extern "C"
33222#endif
33223/* We use char because int might match the return type of a gcc2
33224 builtin and then its argument prototype would still apply. */
33225char sched_yield ();
33226int
33227main ()
33228{
33229sched_yield ();
33230 ;
33231 return 0;
33232}
33233_ACEOF
33234rm -f conftest.$ac_objext conftest$ac_exeext
33235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33236 (eval $ac_link) 2>conftest.er1
a848cd7e 33237 ac_status=$?
ac1cb8d3
VS
33238 grep -v '^ *+' conftest.er1 >conftest.err
33239 rm -f conftest.er1
33240 cat conftest.err >&5
a848cd7e
SC
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); } &&
89be85c2
VS
33243 { ac_try='test -z "$ac_c_werror_flag"
33244 || test ! -s conftest.err'
ac1cb8d3
VS
33245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33246 (eval $ac_try) 2>&5
33247 ac_status=$?
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); }; } &&
33250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33252 (eval $ac_try) 2>&5
33253 ac_status=$?
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); }; }; then
33256 ac_cv_lib_posix4_sched_yield=yes
33257else
33258 echo "$as_me: failed program was:" >&5
33259sed 's/^/| /' conftest.$ac_ext >&5
33260
33261ac_cv_lib_posix4_sched_yield=no
33262fi
ac1cb8d3
VS
33263rm -f conftest.err conftest.$ac_objext \
33264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33265LIBS=$ac_check_lib_save_LIBS
33266fi
33267echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33268echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33269if test $ac_cv_lib_posix4_sched_yield = yes; then
33270 cat >>confdefs.h <<\_ACEOF
33271#define HAVE_SCHED_YIELD 1
33272_ACEOF
33273 POSIX4_LINK=" -lposix4"
33274else
33275 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33276echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33277
33278fi
33279
33280
33281
33282fi
33283
33284 fi
33285
33286 HAVE_PRIOR_FUNCS=0
33287 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33288echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33289if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33290 echo $ECHO_N "(cached) $ECHO_C" >&6
33291else
33292 cat >conftest.$ac_ext <<_ACEOF
33293/* confdefs.h. */
33294_ACEOF
33295cat confdefs.h >>conftest.$ac_ext
33296cat >>conftest.$ac_ext <<_ACEOF
33297/* end confdefs.h. */
ac1cb8d3
VS
33298/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33300#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33301
a848cd7e
SC
33302/* System header to define __stub macros and hopefully few prototypes,
33303 which can conflict with char pthread_attr_getschedpolicy (); below.
33304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33305 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33306
a848cd7e
SC
33307#ifdef __STDC__
33308# include <limits.h>
33309#else
33310# include <assert.h>
33311#endif
ac1cb8d3
VS
33312
33313#undef pthread_attr_getschedpolicy
33314
a848cd7e
SC
33315/* Override any gcc2 internal prototype to avoid an error. */
33316#ifdef __cplusplus
33317extern "C"
33318{
33319#endif
33320/* We use char because int might match the return type of a gcc2
33321 builtin and then its argument prototype would still apply. */
33322char pthread_attr_getschedpolicy ();
33323/* The GNU C library defines this for functions which it implements
33324 to always fail with ENOSYS. Some functions are actually named
33325 something starting with __ and the normal name is an alias. */
33326#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33327choke me
33328#else
33329char (*f) () = pthread_attr_getschedpolicy;
33330#endif
33331#ifdef __cplusplus
33332}
33333#endif
33334
33335int
33336main ()
33337{
33338return f != pthread_attr_getschedpolicy;
33339 ;
33340 return 0;
33341}
33342_ACEOF
33343rm -f conftest.$ac_objext conftest$ac_exeext
33344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33345 (eval $ac_link) 2>conftest.er1
a848cd7e 33346 ac_status=$?
ac1cb8d3
VS
33347 grep -v '^ *+' conftest.er1 >conftest.err
33348 rm -f conftest.er1
33349 cat conftest.err >&5
a848cd7e
SC
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); } &&
89be85c2
VS
33352 { ac_try='test -z "$ac_c_werror_flag"
33353 || test ! -s conftest.err'
ac1cb8d3
VS
33354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33355 (eval $ac_try) 2>&5
33356 ac_status=$?
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; } &&
33359 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33361 (eval $ac_try) 2>&5
33362 ac_status=$?
33363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); }; }; then
33365 ac_cv_func_pthread_attr_getschedpolicy=yes
33366else
33367 echo "$as_me: failed program was:" >&5
33368sed 's/^/| /' conftest.$ac_ext >&5
33369
33370ac_cv_func_pthread_attr_getschedpolicy=no
33371fi
ac1cb8d3
VS
33372rm -f conftest.err conftest.$ac_objext \
33373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33374fi
33375echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33376echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33377if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33378 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33379echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33380if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33381 echo $ECHO_N "(cached) $ECHO_C" >&6
33382else
33383 cat >conftest.$ac_ext <<_ACEOF
33384/* confdefs.h. */
33385_ACEOF
33386cat confdefs.h >>conftest.$ac_ext
33387cat >>conftest.$ac_ext <<_ACEOF
33388/* end confdefs.h. */
ac1cb8d3
VS
33389/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33391#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33392
a848cd7e
SC
33393/* System header to define __stub macros and hopefully few prototypes,
33394 which can conflict with char pthread_attr_setschedparam (); below.
33395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33396 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33397
a848cd7e
SC
33398#ifdef __STDC__
33399# include <limits.h>
33400#else
33401# include <assert.h>
33402#endif
ac1cb8d3
VS
33403
33404#undef pthread_attr_setschedparam
33405
a848cd7e
SC
33406/* Override any gcc2 internal prototype to avoid an error. */
33407#ifdef __cplusplus
33408extern "C"
33409{
33410#endif
33411/* We use char because int might match the return type of a gcc2
33412 builtin and then its argument prototype would still apply. */
33413char pthread_attr_setschedparam ();
33414/* The GNU C library defines this for functions which it implements
33415 to always fail with ENOSYS. Some functions are actually named
33416 something starting with __ and the normal name is an alias. */
33417#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33418choke me
33419#else
33420char (*f) () = pthread_attr_setschedparam;
33421#endif
33422#ifdef __cplusplus
33423}
33424#endif
33425
33426int
33427main ()
33428{
33429return f != pthread_attr_setschedparam;
33430 ;
33431 return 0;
33432}
33433_ACEOF
33434rm -f conftest.$ac_objext conftest$ac_exeext
33435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33436 (eval $ac_link) 2>conftest.er1
a848cd7e 33437 ac_status=$?
ac1cb8d3
VS
33438 grep -v '^ *+' conftest.er1 >conftest.err
33439 rm -f conftest.er1
33440 cat conftest.err >&5
a848cd7e
SC
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); } &&
89be85c2
VS
33443 { ac_try='test -z "$ac_c_werror_flag"
33444 || test ! -s conftest.err'
ac1cb8d3
VS
33445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33446 (eval $ac_try) 2>&5
33447 ac_status=$?
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); }; } &&
33450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33452 (eval $ac_try) 2>&5
33453 ac_status=$?
33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455 (exit $ac_status); }; }; then
33456 ac_cv_func_pthread_attr_setschedparam=yes
33457else
33458 echo "$as_me: failed program was:" >&5
33459sed 's/^/| /' conftest.$ac_ext >&5
33460
33461ac_cv_func_pthread_attr_setschedparam=no
33462fi
ac1cb8d3
VS
33463rm -f conftest.err conftest.$ac_objext \
33464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33465fi
33466echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33467echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33468if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33469 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33470echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33471if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33472 echo $ECHO_N "(cached) $ECHO_C" >&6
33473else
33474 cat >conftest.$ac_ext <<_ACEOF
33475/* confdefs.h. */
33476_ACEOF
33477cat confdefs.h >>conftest.$ac_ext
33478cat >>conftest.$ac_ext <<_ACEOF
33479/* end confdefs.h. */
ac1cb8d3
VS
33480/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33482#define sched_get_priority_max innocuous_sched_get_priority_max
33483
a848cd7e
SC
33484/* System header to define __stub macros and hopefully few prototypes,
33485 which can conflict with char sched_get_priority_max (); below.
33486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33487 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33488
a848cd7e
SC
33489#ifdef __STDC__
33490# include <limits.h>
33491#else
33492# include <assert.h>
33493#endif
ac1cb8d3
VS
33494
33495#undef sched_get_priority_max
33496
a848cd7e
SC
33497/* Override any gcc2 internal prototype to avoid an error. */
33498#ifdef __cplusplus
33499extern "C"
33500{
33501#endif
33502/* We use char because int might match the return type of a gcc2
33503 builtin and then its argument prototype would still apply. */
33504char sched_get_priority_max ();
33505/* The GNU C library defines this for functions which it implements
33506 to always fail with ENOSYS. Some functions are actually named
33507 something starting with __ and the normal name is an alias. */
33508#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33509choke me
33510#else
33511char (*f) () = sched_get_priority_max;
33512#endif
33513#ifdef __cplusplus
33514}
33515#endif
33516
33517int
33518main ()
33519{
33520return f != sched_get_priority_max;
33521 ;
33522 return 0;
33523}
33524_ACEOF
33525rm -f conftest.$ac_objext conftest$ac_exeext
33526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33527 (eval $ac_link) 2>conftest.er1
a848cd7e 33528 ac_status=$?
ac1cb8d3
VS
33529 grep -v '^ *+' conftest.er1 >conftest.err
33530 rm -f conftest.er1
33531 cat conftest.err >&5
a848cd7e
SC
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); } &&
89be85c2
VS
33534 { ac_try='test -z "$ac_c_werror_flag"
33535 || test ! -s conftest.err'
ac1cb8d3
VS
33536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33537 (eval $ac_try) 2>&5
33538 ac_status=$?
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); }; } &&
33541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; }; then
33547 ac_cv_func_sched_get_priority_max=yes
33548else
33549 echo "$as_me: failed program was:" >&5
33550sed 's/^/| /' conftest.$ac_ext >&5
33551
33552ac_cv_func_sched_get_priority_max=no
33553fi
ac1cb8d3
VS
33554rm -f conftest.err conftest.$ac_objext \
33555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33556fi
33557echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33558echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33559if test $ac_cv_func_sched_get_priority_max = yes; then
33560 HAVE_PRIOR_FUNCS=1
33561else
33562 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33563echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33564if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33565 echo $ECHO_N "(cached) $ECHO_C" >&6
33566else
33567 ac_check_lib_save_LIBS=$LIBS
33568LIBS="-lposix4 $LIBS"
33569cat >conftest.$ac_ext <<_ACEOF
33570/* confdefs.h. */
33571_ACEOF
33572cat confdefs.h >>conftest.$ac_ext
33573cat >>conftest.$ac_ext <<_ACEOF
33574/* end confdefs.h. */
33575
33576/* Override any gcc2 internal prototype to avoid an error. */
33577#ifdef __cplusplus
33578extern "C"
33579#endif
33580/* We use char because int might match the return type of a gcc2
33581 builtin and then its argument prototype would still apply. */
33582char sched_get_priority_max ();
33583int
33584main ()
33585{
33586sched_get_priority_max ();
33587 ;
33588 return 0;
33589}
33590_ACEOF
33591rm -f conftest.$ac_objext conftest$ac_exeext
33592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33593 (eval $ac_link) 2>conftest.er1
a848cd7e 33594 ac_status=$?
ac1cb8d3
VS
33595 grep -v '^ *+' conftest.er1 >conftest.err
33596 rm -f conftest.er1
33597 cat conftest.err >&5
a848cd7e
SC
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); } &&
89be85c2
VS
33600 { ac_try='test -z "$ac_c_werror_flag"
33601 || test ! -s conftest.err'
ac1cb8d3
VS
33602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33603 (eval $ac_try) 2>&5
33604 ac_status=$?
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); }; } &&
33607 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609 (eval $ac_try) 2>&5
33610 ac_status=$?
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 ac_cv_lib_posix4_sched_get_priority_max=yes
33614else
33615 echo "$as_me: failed program was:" >&5
33616sed 's/^/| /' conftest.$ac_ext >&5
33617
33618ac_cv_lib_posix4_sched_get_priority_max=no
33619fi
ac1cb8d3
VS
33620rm -f conftest.err conftest.$ac_objext \
33621 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33622LIBS=$ac_check_lib_save_LIBS
33623fi
33624echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33625echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33626if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33627
33628 HAVE_PRIOR_FUNCS=1
33629 POSIX4_LINK=" -lposix4"
33630
33631fi
33632
33633
33634fi
33635
33636
33637fi
33638
33639
33640fi
33641
33642
33643 if test "$HAVE_PRIOR_FUNCS" = 1; then
33644 cat >>confdefs.h <<\_ACEOF
33645#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33646_ACEOF
33647
33648 else
33649 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33650echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33651 fi
33652
33653 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33654echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33655if test "${ac_cv_func_pthread_cancel+set}" = set; then
33656 echo $ECHO_N "(cached) $ECHO_C" >&6
33657else
33658 cat >conftest.$ac_ext <<_ACEOF
33659/* confdefs.h. */
33660_ACEOF
33661cat confdefs.h >>conftest.$ac_ext
33662cat >>conftest.$ac_ext <<_ACEOF
33663/* end confdefs.h. */
ac1cb8d3
VS
33664/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33666#define pthread_cancel innocuous_pthread_cancel
33667
a848cd7e
SC
33668/* System header to define __stub macros and hopefully few prototypes,
33669 which can conflict with char pthread_cancel (); below.
33670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33671 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33672
a848cd7e
SC
33673#ifdef __STDC__
33674# include <limits.h>
33675#else
33676# include <assert.h>
33677#endif
ac1cb8d3
VS
33678
33679#undef pthread_cancel
33680
a848cd7e
SC
33681/* Override any gcc2 internal prototype to avoid an error. */
33682#ifdef __cplusplus
33683extern "C"
33684{
33685#endif
33686/* We use char because int might match the return type of a gcc2
33687 builtin and then its argument prototype would still apply. */
33688char pthread_cancel ();
33689/* The GNU C library defines this for functions which it implements
33690 to always fail with ENOSYS. Some functions are actually named
33691 something starting with __ and the normal name is an alias. */
33692#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33693choke me
33694#else
33695char (*f) () = pthread_cancel;
33696#endif
33697#ifdef __cplusplus
33698}
33699#endif
33700
33701int
33702main ()
33703{
33704return f != pthread_cancel;
33705 ;
33706 return 0;
33707}
33708_ACEOF
33709rm -f conftest.$ac_objext conftest$ac_exeext
33710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33711 (eval $ac_link) 2>conftest.er1
a848cd7e 33712 ac_status=$?
ac1cb8d3
VS
33713 grep -v '^ *+' conftest.er1 >conftest.err
33714 rm -f conftest.er1
33715 cat conftest.err >&5
a848cd7e
SC
33716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717 (exit $ac_status); } &&
89be85c2
VS
33718 { ac_try='test -z "$ac_c_werror_flag"
33719 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
33725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727 (eval $ac_try) 2>&5
33728 ac_status=$?
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; }; then
33731 ac_cv_func_pthread_cancel=yes
33732else
33733 echo "$as_me: failed program was:" >&5
33734sed 's/^/| /' conftest.$ac_ext >&5
33735
33736ac_cv_func_pthread_cancel=no
33737fi
ac1cb8d3
VS
33738rm -f conftest.err conftest.$ac_objext \
33739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33740fi
33741echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33742echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33743if test $ac_cv_func_pthread_cancel = yes; then
33744 cat >>confdefs.h <<\_ACEOF
33745#define HAVE_PTHREAD_CANCEL 1
33746_ACEOF
33747
33748else
33749 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33750echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33751fi
33752
33753
33754
33755
33756 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33757echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33758if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33759 echo $ECHO_N "(cached) $ECHO_C" >&6
33760else
33761
33762 cat >conftest.$ac_ext <<_ACEOF
33763/* confdefs.h. */
33764_ACEOF
33765cat confdefs.h >>conftest.$ac_ext
33766cat >>conftest.$ac_ext <<_ACEOF
33767/* end confdefs.h. */
33768#include <pthread.h>
33769int
33770main ()
33771{
33772
33773 pthread_mutexattr_t attr;
33774 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33775
33776 ;
33777 return 0;
33778}
33779_ACEOF
33780rm -f conftest.$ac_objext
33781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33782 (eval $ac_compile) 2>conftest.er1
a848cd7e 33783 ac_status=$?
ac1cb8d3
VS
33784 grep -v '^ *+' conftest.er1 >conftest.err
33785 rm -f conftest.er1
33786 cat conftest.err >&5
a848cd7e
SC
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); } &&
89be85c2
VS
33789 { ac_try='test -z "$ac_c_werror_flag"
33790 || test ! -s conftest.err'
ac1cb8d3
VS
33791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792 (eval $ac_try) 2>&5
33793 ac_status=$?
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; } &&
33796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798 (eval $ac_try) 2>&5
33799 ac_status=$?
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); }; }; then
33802
33803 wx_cv_type_pthread_mutexattr_t=yes
33804
33805else
33806 echo "$as_me: failed program was:" >&5
33807sed 's/^/| /' conftest.$ac_ext >&5
33808
33809
33810 wx_cv_type_pthread_mutexattr_t=no
33811
33812
33813fi
ac1cb8d3 33814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33815
33816fi
33817echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33818echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33819
33820 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33821 cat >>confdefs.h <<\_ACEOF
33822#define HAVE_PTHREAD_MUTEXATTR_T 1
33823_ACEOF
33824
33825 else
33826 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33827echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33828if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33829 echo $ECHO_N "(cached) $ECHO_C" >&6
33830else
33831
33832 cat >conftest.$ac_ext <<_ACEOF
33833/* confdefs.h. */
33834_ACEOF
33835cat confdefs.h >>conftest.$ac_ext
33836cat >>conftest.$ac_ext <<_ACEOF
33837/* end confdefs.h. */
33838#include <pthread.h>
33839int
33840main ()
33841{
33842
33843 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33844
33845 ;
33846 return 0;
33847}
33848_ACEOF
33849rm -f conftest.$ac_objext
33850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33851 (eval $ac_compile) 2>conftest.er1
a848cd7e 33852 ac_status=$?
ac1cb8d3
VS
33853 grep -v '^ *+' conftest.er1 >conftest.err
33854 rm -f conftest.er1
33855 cat conftest.err >&5
a848cd7e
SC
33856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857 (exit $ac_status); } &&
89be85c2
VS
33858 { ac_try='test -z "$ac_c_werror_flag"
33859 || test ! -s conftest.err'
ac1cb8d3
VS
33860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33861 (eval $ac_try) 2>&5
33862 ac_status=$?
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); }; } &&
33865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33867 (eval $ac_try) 2>&5
33868 ac_status=$?
33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870 (exit $ac_status); }; }; then
33871
33872 wx_cv_type_pthread_rec_mutex_init=yes
33873
33874else
33875 echo "$as_me: failed program was:" >&5
33876sed 's/^/| /' conftest.$ac_ext >&5
33877
33878
33879 wx_cv_type_pthread_rec_mutex_init=no
33880
33881
33882fi
ac1cb8d3 33883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33884
33885fi
33886echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33887echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33888 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33889 cat >>confdefs.h <<\_ACEOF
33890#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33891_ACEOF
33892
33893 else
33894 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33895echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33896 fi
33897 fi
33898 fi
33899
33900else
33901 if test "$wxUSE_THREADS" = "yes" ; then
33902 case "${host}" in
33903 *-*-mingw32* )
33904 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33905echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33906if test "${wx_cv_cflags_mthread+set}" = set; then
33907 echo $ECHO_N "(cached) $ECHO_C" >&6
33908else
33909
33910 CFLAGS_OLD="$CFLAGS"
33911 CFLAGS="$CFLAGS -mthreads"
33912 cat >conftest.$ac_ext <<_ACEOF
33913/* confdefs.h. */
33914_ACEOF
33915cat confdefs.h >>conftest.$ac_ext
33916cat >>conftest.$ac_ext <<_ACEOF
33917/* end confdefs.h. */
33918
33919int
33920main ()
33921{
33922
33923 ;
33924 return 0;
33925}
33926_ACEOF
33927rm -f conftest.$ac_objext
33928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33929 (eval $ac_compile) 2>conftest.er1
a848cd7e 33930 ac_status=$?
ac1cb8d3
VS
33931 grep -v '^ *+' conftest.er1 >conftest.err
33932 rm -f conftest.er1
33933 cat conftest.err >&5
a848cd7e
SC
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); } &&
89be85c2
VS
33936 { ac_try='test -z "$ac_c_werror_flag"
33937 || test ! -s conftest.err'
ac1cb8d3
VS
33938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939 (eval $ac_try) 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; } &&
33943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945 (eval $ac_try) 2>&5
33946 ac_status=$?
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); }; }; then
33949 wx_cv_cflags_mthread=yes
33950else
33951 echo "$as_me: failed program was:" >&5
33952sed 's/^/| /' conftest.$ac_ext >&5
33953
33954wx_cv_cflags_mthread=no
33955
33956fi
ac1cb8d3 33957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33958
33959
33960fi
33961echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33962echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33963
33964 if test "$wx_cv_cflags_mthread" = "yes"; then
33965 CXXFLAGS="$CXXFLAGS -mthreads"
33966 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33967 LDFLAGS="$LDFLAGS -mthreads"
33968 else
33969 CFLAGS="$CFLAGS_OLD"
33970 fi
33971 ;;
33972 *-pc-os2*emx )
33973 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33974 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33975 LDFLAGS="$LDFLAGS -Zmt"
33976 ;;
33977 esac
33978 fi
33979fi
33980
33981if test "$wxUSE_THREADS" = "yes"; then
33982 cat >>confdefs.h <<\_ACEOF
33983#define wxUSE_THREADS 1
33984_ACEOF
33985
33986
33987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33988else
33989 if test "$ac_cv_func_strtok_r" = "yes"; then
33990 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33991echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33992 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33993 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33994 echo "$as_me:$LINENO: result: yes" >&5
33995echo "${ECHO_T}yes" >&6
33996 else
33997 echo "$as_me:$LINENO: result: no" >&5
33998echo "${ECHO_T}no" >&6
33999 fi
34000 fi
34001fi
34002
34003if test "$WXGTK20" = 1 ; then
34004 cat >>confdefs.h <<_ACEOF
34005#define __WXGTK20__ $WXGTK20
34006_ACEOF
34007
34008 WXGTK12=1
34009fi
34010
34011if test "$WXGTK12" = 1 ; then
34012 cat >>confdefs.h <<_ACEOF
34013#define __WXGTK12__ $WXGTK12
34014_ACEOF
34015
34016fi
34017
34018if test "$WXGTK127" = 1 ; then
34019 cat >>confdefs.h <<_ACEOF
34020#define __WXGTK127__ $WXGTK127
34021_ACEOF
34022
34023fi
34024
34025if test "$WXGPE" = 1 ; then
34026 cat >>confdefs.h <<_ACEOF
34027#define __WXGPE__ $WXGPE
34028_ACEOF
34029
34030fi
34031
34032WXDEBUG=
34033
34034if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34035 WXDEBUG="-g"
34036 wxUSE_OPTIMISE=no
34037fi
34038
34039if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34040 wxUSE_DEBUG_INFO=yes
34041 WXDEBUG="-ggdb"
34042fi
34043
34044if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34045 cat >>confdefs.h <<\_ACEOF
34046#define WXDEBUG 1
34047_ACEOF
34048
34049 WXDEBUG_DEFINE="-D__WXDEBUG__"
34050else
34051 if test "$wxUSE_GTK" = 1 ; then
34052 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34053 fi
34054fi
34055
34056if test "$wxUSE_MEM_TRACING" = "yes" ; then
34057 cat >>confdefs.h <<\_ACEOF
34058#define wxUSE_MEMORY_TRACING 1
34059_ACEOF
34060
34061 cat >>confdefs.h <<\_ACEOF
34062#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34063_ACEOF
34064
34065 cat >>confdefs.h <<\_ACEOF
34066#define wxUSE_DEBUG_NEW_ALWAYS 1
34067_ACEOF
34068
34069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34070fi
34071
34072if test "$wxUSE_DMALLOC" = "yes" ; then
34073 DMALLOC_LIBS="-ldmalloc"
34074fi
34075
34076PROFILE=
34077if test "$wxUSE_PROFILE" = "yes" ; then
34078 PROFILE=" -pg"
34079fi
34080
34081CODE_GEN_FLAGS=
34082CODE_GEN_FLAGS_CXX=
34083if test "$GCC" = "yes" ; then
34084 if test "$wxUSE_NO_RTTI" = "yes" ; then
34085 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34086 fi
34087 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34088 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34089 fi
34090 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34091 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34092 fi
34093
34094 case "${host}" in
34095 powerpc*-*-aix* )
34096 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34097 ;;
34098 *-hppa* )
34099 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34100 ;;
34101 esac
34102fi
34103
34104OPTIMISE=
34105if test "$wxUSE_OPTIMISE" = "no" ; then
34106 if test "$GCC" = yes ; then
34107 OPTIMISE="-O0"
34108 fi
34109else
34110 if test "$GCC" = yes ; then
34111 OPTIMISE="-O2"
34112
34113 case "${host}" in
34114 i586-*-*|i686-*-* )
34115 OPTIMISE="${OPTIMISE} "
34116 ;;
34117 esac
34118 else
34119 OPTIMISE="-O"
34120 fi
34121fi
34122
34123
34124if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34125 cat >>confdefs.h <<\_ACEOF
34126#define WXWIN_COMPATIBILITY_2_2 1
34127_ACEOF
34128
34129
34130 WXWIN_COMPATIBILITY_2_4="yes"
34131fi
34132
34133if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34134 cat >>confdefs.h <<\_ACEOF
34135#define WXWIN_COMPATIBILITY_2_4 1
34136_ACEOF
34137
34138fi
34139
34140
34141if test "$wxUSE_GUI" = "yes"; then
881bfcd6 34142 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34143#define wxUSE_GUI 1
34144_ACEOF
34145
34146
370fd4c2 34147 fi
a848cd7e
SC
34148
34149
34150if test "$wxUSE_UNIX" = "yes"; then
34151 cat >>confdefs.h <<\_ACEOF
34152#define wxUSE_UNIX 1
34153_ACEOF
34154
34155fi
34156
34157
34158if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34159
34160 HAVE_DL_FUNCS=0
34161 HAVE_SHL_FUNCS=0
34162 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34163 if test "$USE_DARWIN" = 1; then
34164 HAVE_DL_FUNCS=1
34165 else
34166
34167for ac_func in dlopen
34168do
34169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34170echo "$as_me:$LINENO: checking for $ac_func" >&5
34171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34172if eval "test \"\${$as_ac_var+set}\" = set"; then
34173 echo $ECHO_N "(cached) $ECHO_C" >&6
34174else
34175 cat >conftest.$ac_ext <<_ACEOF
34176/* confdefs.h. */
34177_ACEOF
34178cat confdefs.h >>conftest.$ac_ext
34179cat >>conftest.$ac_ext <<_ACEOF
34180/* end confdefs.h. */
ac1cb8d3
VS
34181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34183#define $ac_func innocuous_$ac_func
34184
a848cd7e
SC
34185/* System header to define __stub macros and hopefully few prototypes,
34186 which can conflict with char $ac_func (); below.
34187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34188 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34189
a848cd7e
SC
34190#ifdef __STDC__
34191# include <limits.h>
34192#else
34193# include <assert.h>
34194#endif
ac1cb8d3
VS
34195
34196#undef $ac_func
34197
a848cd7e
SC
34198/* Override any gcc2 internal prototype to avoid an error. */
34199#ifdef __cplusplus
34200extern "C"
34201{
34202#endif
34203/* We use char because int might match the return type of a gcc2
34204 builtin and then its argument prototype would still apply. */
34205char $ac_func ();
34206/* The GNU C library defines this for functions which it implements
34207 to always fail with ENOSYS. Some functions are actually named
34208 something starting with __ and the normal name is an alias. */
34209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34210choke me
34211#else
34212char (*f) () = $ac_func;
34213#endif
34214#ifdef __cplusplus
34215}
34216#endif
34217
34218int
34219main ()
34220{
34221return f != $ac_func;
34222 ;
34223 return 0;
34224}
34225_ACEOF
34226rm -f conftest.$ac_objext conftest$ac_exeext
34227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34228 (eval $ac_link) 2>conftest.er1
a848cd7e 34229 ac_status=$?
ac1cb8d3
VS
34230 grep -v '^ *+' conftest.er1 >conftest.err
34231 rm -f conftest.er1
34232 cat conftest.err >&5
a848cd7e
SC
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); } &&
89be85c2
VS
34235 { ac_try='test -z "$ac_c_werror_flag"
34236 || test ! -s conftest.err'
ac1cb8d3
VS
34237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34238 (eval $ac_try) 2>&5
34239 ac_status=$?
34240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241 (exit $ac_status); }; } &&
34242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34244 (eval $ac_try) 2>&5
34245 ac_status=$?
34246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34247 (exit $ac_status); }; }; then
34248 eval "$as_ac_var=yes"
34249else
34250 echo "$as_me: failed program was:" >&5
34251sed 's/^/| /' conftest.$ac_ext >&5
34252
34253eval "$as_ac_var=no"
34254fi
ac1cb8d3
VS
34255rm -f conftest.err conftest.$ac_objext \
34256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34257fi
34258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34259echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34260if test `eval echo '${'$as_ac_var'}'` = yes; then
34261 cat >>confdefs.h <<_ACEOF
34262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34263_ACEOF
34264
34265 cat >>confdefs.h <<\_ACEOF
34266#define HAVE_DLOPEN 1
34267_ACEOF
34268
34269 HAVE_DL_FUNCS=1
34270
34271else
34272
34273 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34274echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34275if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34276 echo $ECHO_N "(cached) $ECHO_C" >&6
34277else
34278 ac_check_lib_save_LIBS=$LIBS
34279LIBS="-ldl $LIBS"
34280cat >conftest.$ac_ext <<_ACEOF
34281/* confdefs.h. */
34282_ACEOF
34283cat confdefs.h >>conftest.$ac_ext
34284cat >>conftest.$ac_ext <<_ACEOF
34285/* end confdefs.h. */
34286
34287/* Override any gcc2 internal prototype to avoid an error. */
34288#ifdef __cplusplus
34289extern "C"
34290#endif
34291/* We use char because int might match the return type of a gcc2
34292 builtin and then its argument prototype would still apply. */
34293char dlopen ();
34294int
34295main ()
34296{
34297dlopen ();
34298 ;
34299 return 0;
34300}
34301_ACEOF
34302rm -f conftest.$ac_objext conftest$ac_exeext
34303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34304 (eval $ac_link) 2>conftest.er1
a848cd7e 34305 ac_status=$?
ac1cb8d3
VS
34306 grep -v '^ *+' conftest.er1 >conftest.err
34307 rm -f conftest.er1
34308 cat conftest.err >&5
a848cd7e
SC
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); } &&
89be85c2
VS
34311 { ac_try='test -z "$ac_c_werror_flag"
34312 || test ! -s conftest.err'
ac1cb8d3
VS
34313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34314 (eval $ac_try) 2>&5
34315 ac_status=$?
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); }; } &&
34318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34320 (eval $ac_try) 2>&5
34321 ac_status=$?
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323 (exit $ac_status); }; }; then
34324 ac_cv_lib_dl_dlopen=yes
34325else
34326 echo "$as_me: failed program was:" >&5
34327sed 's/^/| /' conftest.$ac_ext >&5
34328
34329ac_cv_lib_dl_dlopen=no
34330fi
ac1cb8d3
VS
34331rm -f conftest.err conftest.$ac_objext \
34332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34333LIBS=$ac_check_lib_save_LIBS
34334fi
34335echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34336echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34337if test $ac_cv_lib_dl_dlopen = yes; then
34338
34339 cat >>confdefs.h <<\_ACEOF
34340#define HAVE_DLOPEN 1
34341_ACEOF
34342
34343 HAVE_DL_FUNCS=1
34344 DL_LINK=" -ldl$DL_LINK"
34345
34346else
34347
34348
34349for ac_func in shl_load
34350do
34351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34352echo "$as_me:$LINENO: checking for $ac_func" >&5
34353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34354if eval "test \"\${$as_ac_var+set}\" = set"; then
34355 echo $ECHO_N "(cached) $ECHO_C" >&6
34356else
34357 cat >conftest.$ac_ext <<_ACEOF
34358/* confdefs.h. */
34359_ACEOF
34360cat confdefs.h >>conftest.$ac_ext
34361cat >>conftest.$ac_ext <<_ACEOF
34362/* end confdefs.h. */
ac1cb8d3
VS
34363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34365#define $ac_func innocuous_$ac_func
34366
a848cd7e
SC
34367/* System header to define __stub macros and hopefully few prototypes,
34368 which can conflict with char $ac_func (); below.
34369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34370 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34371
a848cd7e
SC
34372#ifdef __STDC__
34373# include <limits.h>
34374#else
34375# include <assert.h>
34376#endif
ac1cb8d3
VS
34377
34378#undef $ac_func
34379
a848cd7e
SC
34380/* Override any gcc2 internal prototype to avoid an error. */
34381#ifdef __cplusplus
34382extern "C"
34383{
34384#endif
34385/* We use char because int might match the return type of a gcc2
34386 builtin and then its argument prototype would still apply. */
34387char $ac_func ();
34388/* The GNU C library defines this for functions which it implements
34389 to always fail with ENOSYS. Some functions are actually named
34390 something starting with __ and the normal name is an alias. */
34391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34392choke me
34393#else
34394char (*f) () = $ac_func;
34395#endif
34396#ifdef __cplusplus
34397}
34398#endif
34399
34400int
34401main ()
34402{
34403return f != $ac_func;
34404 ;
34405 return 0;
34406}
34407_ACEOF
34408rm -f conftest.$ac_objext conftest$ac_exeext
34409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34410 (eval $ac_link) 2>conftest.er1
a848cd7e 34411 ac_status=$?
ac1cb8d3
VS
34412 grep -v '^ *+' conftest.er1 >conftest.err
34413 rm -f conftest.er1
34414 cat conftest.err >&5
a848cd7e
SC
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); } &&
89be85c2
VS
34417 { ac_try='test -z "$ac_c_werror_flag"
34418 || test ! -s conftest.err'
ac1cb8d3
VS
34419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34420 (eval $ac_try) 2>&5
34421 ac_status=$?
34422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423 (exit $ac_status); }; } &&
34424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34426 (eval $ac_try) 2>&5
34427 ac_status=$?
34428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429 (exit $ac_status); }; }; then
34430 eval "$as_ac_var=yes"
34431else
34432 echo "$as_me: failed program was:" >&5
34433sed 's/^/| /' conftest.$ac_ext >&5
34434
34435eval "$as_ac_var=no"
34436fi
ac1cb8d3
VS
34437rm -f conftest.err conftest.$ac_objext \
34438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34439fi
34440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34442if test `eval echo '${'$as_ac_var'}'` = yes; then
34443 cat >>confdefs.h <<_ACEOF
34444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34445_ACEOF
34446
34447 cat >>confdefs.h <<\_ACEOF
34448#define HAVE_SHL_LOAD 1
34449_ACEOF
34450
34451 HAVE_SHL_FUNCS=1
34452
34453else
34454
34455 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34456echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34457if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34458 echo $ECHO_N "(cached) $ECHO_C" >&6
34459else
34460 ac_check_lib_save_LIBS=$LIBS
34461LIBS="-lshl_load $LIBS"
34462cat >conftest.$ac_ext <<_ACEOF
34463/* confdefs.h. */
34464_ACEOF
34465cat confdefs.h >>conftest.$ac_ext
34466cat >>conftest.$ac_ext <<_ACEOF
34467/* end confdefs.h. */
34468
34469/* Override any gcc2 internal prototype to avoid an error. */
34470#ifdef __cplusplus
34471extern "C"
34472#endif
34473/* We use char because int might match the return type of a gcc2
34474 builtin and then its argument prototype would still apply. */
34475char dld ();
34476int
34477main ()
34478{
34479dld ();
34480 ;
34481 return 0;
34482}
34483_ACEOF
34484rm -f conftest.$ac_objext conftest$ac_exeext
34485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34486 (eval $ac_link) 2>conftest.er1
a848cd7e 34487 ac_status=$?
ac1cb8d3
VS
34488 grep -v '^ *+' conftest.er1 >conftest.err
34489 rm -f conftest.er1
34490 cat conftest.err >&5
a848cd7e
SC
34491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492 (exit $ac_status); } &&
89be85c2
VS
34493 { ac_try='test -z "$ac_c_werror_flag"
34494 || test ! -s conftest.err'
ac1cb8d3
VS
34495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34496 (eval $ac_try) 2>&5
34497 ac_status=$?
34498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); }; } &&
34500 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34502 (eval $ac_try) 2>&5
34503 ac_status=$?
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); }; }; then
34506 ac_cv_lib_shl_load_dld=yes
34507else
34508 echo "$as_me: failed program was:" >&5
34509sed 's/^/| /' conftest.$ac_ext >&5
34510
34511ac_cv_lib_shl_load_dld=no
34512fi
ac1cb8d3
VS
34513rm -f conftest.err conftest.$ac_objext \
34514 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34515LIBS=$ac_check_lib_save_LIBS
34516fi
34517echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34518echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34519if test $ac_cv_lib_shl_load_dld = yes; then
34520
34521 HAVE_SHL_FUNCS=1
34522 DL_LINK=" -ldld$DL_LINK"
34523
34524fi
34525
34526
34527fi
34528done
34529
34530
34531fi
34532
34533
34534fi
34535done
34536
34537
34538 if test "$HAVE_DL_FUNCS" = 1; then
34539
34540for ac_func in dlerror
34541do
34542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34543echo "$as_me:$LINENO: checking for $ac_func" >&5
34544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34545if eval "test \"\${$as_ac_var+set}\" = set"; then
34546 echo $ECHO_N "(cached) $ECHO_C" >&6
34547else
34548 cat >conftest.$ac_ext <<_ACEOF
34549/* confdefs.h. */
34550_ACEOF
34551cat confdefs.h >>conftest.$ac_ext
34552cat >>conftest.$ac_ext <<_ACEOF
34553/* end confdefs.h. */
ac1cb8d3
VS
34554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34556#define $ac_func innocuous_$ac_func
34557
a848cd7e
SC
34558/* System header to define __stub macros and hopefully few prototypes,
34559 which can conflict with char $ac_func (); below.
34560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34561 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34562
a848cd7e
SC
34563#ifdef __STDC__
34564# include <limits.h>
34565#else
34566# include <assert.h>
34567#endif
ac1cb8d3
VS
34568
34569#undef $ac_func
34570
a848cd7e
SC
34571/* Override any gcc2 internal prototype to avoid an error. */
34572#ifdef __cplusplus
34573extern "C"
34574{
34575#endif
34576/* We use char because int might match the return type of a gcc2
34577 builtin and then its argument prototype would still apply. */
34578char $ac_func ();
34579/* The GNU C library defines this for functions which it implements
34580 to always fail with ENOSYS. Some functions are actually named
34581 something starting with __ and the normal name is an alias. */
34582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34583choke me
34584#else
34585char (*f) () = $ac_func;
34586#endif
34587#ifdef __cplusplus
34588}
34589#endif
34590
34591int
34592main ()
34593{
34594return f != $ac_func;
34595 ;
34596 return 0;
34597}
34598_ACEOF
34599rm -f conftest.$ac_objext conftest$ac_exeext
34600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34601 (eval $ac_link) 2>conftest.er1
a848cd7e 34602 ac_status=$?
ac1cb8d3
VS
34603 grep -v '^ *+' conftest.er1 >conftest.err
34604 rm -f conftest.er1
34605 cat conftest.err >&5
a848cd7e
SC
34606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); } &&
89be85c2
VS
34608 { ac_try='test -z "$ac_c_werror_flag"
34609 || test ! -s conftest.err'
ac1cb8d3
VS
34610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34611 (eval $ac_try) 2>&5
34612 ac_status=$?
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); }; } &&
34615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617 (eval $ac_try) 2>&5
34618 ac_status=$?
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); }; }; then
34621 eval "$as_ac_var=yes"
34622else
34623 echo "$as_me: failed program was:" >&5
34624sed 's/^/| /' conftest.$ac_ext >&5
34625
34626eval "$as_ac_var=no"
34627fi
ac1cb8d3
VS
34628rm -f conftest.err conftest.$ac_objext \
34629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34630fi
34631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34633if test `eval echo '${'$as_ac_var'}'` = yes; then
34634 cat >>confdefs.h <<_ACEOF
34635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34636_ACEOF
34637 cat >>confdefs.h <<\_ACEOF
34638#define HAVE_DLERROR 1
34639_ACEOF
34640
34641else
34642
34643 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34644echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34645if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34646 echo $ECHO_N "(cached) $ECHO_C" >&6
34647else
34648 ac_check_lib_save_LIBS=$LIBS
34649LIBS="-ldl $LIBS"
34650cat >conftest.$ac_ext <<_ACEOF
34651/* confdefs.h. */
34652_ACEOF
34653cat confdefs.h >>conftest.$ac_ext
34654cat >>conftest.$ac_ext <<_ACEOF
34655/* end confdefs.h. */
34656
34657/* Override any gcc2 internal prototype to avoid an error. */
34658#ifdef __cplusplus
34659extern "C"
34660#endif
34661/* We use char because int might match the return type of a gcc2
34662 builtin and then its argument prototype would still apply. */
34663char dlerror ();
34664int
34665main ()
34666{
34667dlerror ();
34668 ;
34669 return 0;
34670}
34671_ACEOF
34672rm -f conftest.$ac_objext conftest$ac_exeext
34673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34674 (eval $ac_link) 2>conftest.er1
a848cd7e 34675 ac_status=$?
ac1cb8d3
VS
34676 grep -v '^ *+' conftest.er1 >conftest.err
34677 rm -f conftest.er1
34678 cat conftest.err >&5
a848cd7e
SC
34679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); } &&
89be85c2
VS
34681 { ac_try='test -z "$ac_c_werror_flag"
34682 || test ! -s conftest.err'
ac1cb8d3
VS
34683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34684 (eval $ac_try) 2>&5
34685 ac_status=$?
34686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); }; } &&
34688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34690 (eval $ac_try) 2>&5
34691 ac_status=$?
34692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34693 (exit $ac_status); }; }; then
34694 ac_cv_lib_dl_dlerror=yes
34695else
34696 echo "$as_me: failed program was:" >&5
34697sed 's/^/| /' conftest.$ac_ext >&5
34698
34699ac_cv_lib_dl_dlerror=no
34700fi
ac1cb8d3
VS
34701rm -f conftest.err conftest.$ac_objext \
34702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34703LIBS=$ac_check_lib_save_LIBS
34704fi
34705echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34706echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34707if test $ac_cv_lib_dl_dlerror = yes; then
34708 cat >>confdefs.h <<\_ACEOF
34709#define HAVE_DLERROR 1
34710_ACEOF
34711
34712fi
34713
34714
34715
34716fi
34717done
34718
34719 fi
34720 fi
34721
34722 if test "$HAVE_DL_FUNCS" = 0; then
34723 if test "$HAVE_SHL_FUNCS" = 0; then
34724 if test "$USE_UNIX" = 1; then
34725 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34726echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34727 wxUSE_DYNAMIC_LOADER=no
34728 wxUSE_DYNLIB_CLASS=no
34729 else
34730 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34731echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34732 fi
34733 fi
34734 fi
34735 fi
34736fi
34737
34738if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34739 cat >>confdefs.h <<\_ACEOF
34740#define wxUSE_DYNAMIC_LOADER 1
34741_ACEOF
34742
34743fi
34744if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34745 cat >>confdefs.h <<\_ACEOF
34746#define wxUSE_DYNLIB_CLASS 1
34747_ACEOF
34748
34749fi
34750
34751
34752
34753if test "$wxUSE_PLUGINS" = "yes" ; then
34754 if test "$wxUSE_SHARED" = "no" ; then
34755 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34756echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34757 wxUSE_PLUGINS=no
34758 fi
34759 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34760 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34761echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34762 wxUSE_PLUGINS=no
34763 fi
34764 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34765 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34766echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34767 wxUSE_PLUGINS=no
34768 fi
34769 if test "$wxUSE_PLUGINS" = "yes" ; then
34770 cat >>confdefs.h <<\_ACEOF
34771#define wxUSE_PLUGINS 1
34772_ACEOF
34773
34774 fi
34775fi
34776
34777
34778if test "$wxUSE_STL" = "yes"; then
34779 cat >>confdefs.h <<\_ACEOF
34780#define wxUSE_STL 1
34781_ACEOF
34782
34783fi
34784
34785if test "$wxUSE_APPLE_IEEE" = "yes"; then
34786 cat >>confdefs.h <<\_ACEOF
34787#define wxUSE_APPLE_IEEE 1
34788_ACEOF
34789
34790fi
34791
34792if test "$wxUSE_TIMER" = "yes"; then
34793 cat >>confdefs.h <<\_ACEOF
34794#define wxUSE_TIMER 1
34795_ACEOF
34796
34797fi
34798
34799WITH_PLUGIN_SDL=0
34800if test "$wxUSE_SOUND" = "yes"; then
34801 if test "$USE_UNIX" = "1" ; then
34802
34803for ac_header in sys/soundcard.h
34804do
34805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34806if eval "test \"\${$as_ac_Header+set}\" = set"; then
34807 echo "$as_me:$LINENO: checking for $ac_header" >&5
34808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34809if eval "test \"\${$as_ac_Header+set}\" = set"; then
34810 echo $ECHO_N "(cached) $ECHO_C" >&6
34811fi
34812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34814else
34815 # Is the header compilable?
34816echo "$as_me:$LINENO: checking $ac_header usability" >&5
34817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34818cat >conftest.$ac_ext <<_ACEOF
34819/* confdefs.h. */
34820_ACEOF
34821cat confdefs.h >>conftest.$ac_ext
34822cat >>conftest.$ac_ext <<_ACEOF
34823/* end confdefs.h. */
34824$ac_includes_default
34825#include <$ac_header>
34826_ACEOF
34827rm -f conftest.$ac_objext
34828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34829 (eval $ac_compile) 2>conftest.er1
a848cd7e 34830 ac_status=$?
ac1cb8d3
VS
34831 grep -v '^ *+' conftest.er1 >conftest.err
34832 rm -f conftest.er1
34833 cat conftest.err >&5
a848cd7e
SC
34834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835 (exit $ac_status); } &&
89be85c2
VS
34836 { ac_try='test -z "$ac_c_werror_flag"
34837 || test ! -s conftest.err'
ac1cb8d3
VS
34838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34839 (eval $ac_try) 2>&5
34840 ac_status=$?
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); }; } &&
34843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34845 (eval $ac_try) 2>&5
34846 ac_status=$?
34847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); }; }; then
34849 ac_header_compiler=yes
34850else
34851 echo "$as_me: failed program was:" >&5
34852sed 's/^/| /' conftest.$ac_ext >&5
34853
34854ac_header_compiler=no
34855fi
ac1cb8d3 34856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34858echo "${ECHO_T}$ac_header_compiler" >&6
34859
34860# Is the header present?
34861echo "$as_me:$LINENO: checking $ac_header presence" >&5
34862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34863cat >conftest.$ac_ext <<_ACEOF
34864/* confdefs.h. */
34865_ACEOF
34866cat confdefs.h >>conftest.$ac_ext
34867cat >>conftest.$ac_ext <<_ACEOF
34868/* end confdefs.h. */
34869#include <$ac_header>
34870_ACEOF
34871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34873 ac_status=$?
34874 grep -v '^ *+' conftest.er1 >conftest.err
34875 rm -f conftest.er1
34876 cat conftest.err >&5
34877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34878 (exit $ac_status); } >/dev/null; then
34879 if test -s conftest.err; then
34880 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34882 else
34883 ac_cpp_err=
34884 fi
34885else
34886 ac_cpp_err=yes
34887fi
34888if test -z "$ac_cpp_err"; then
34889 ac_header_preproc=yes
34890else
34891 echo "$as_me: failed program was:" >&5
34892sed 's/^/| /' conftest.$ac_ext >&5
34893
34894 ac_header_preproc=no
34895fi
34896rm -f conftest.err conftest.$ac_ext
34897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34898echo "${ECHO_T}$ac_header_preproc" >&6
34899
34900# So? What about this header?
ac1cb8d3
VS
34901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34902 yes:no: )
a848cd7e
SC
34903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34907 ac_header_preproc=yes
a848cd7e 34908 ;;
ac1cb8d3 34909 no:yes:* )
a848cd7e
SC
34910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34922 (
34923 cat <<\_ASBOX
ac1cb8d3
VS
34924## ----------------------------------------- ##
34925## Report this to wx-dev@lists.wxwidgets.org ##
34926## ----------------------------------------- ##
a848cd7e
SC
34927_ASBOX
34928 ) |
34929 sed "s/^/$as_me: WARNING: /" >&2
34930 ;;
34931esac
34932echo "$as_me:$LINENO: checking for $ac_header" >&5
34933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34934if eval "test \"\${$as_ac_Header+set}\" = set"; then
34935 echo $ECHO_N "(cached) $ECHO_C" >&6
34936else
ac1cb8d3 34937 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34938fi
34939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34941
34942fi
34943if test `eval echo '${'$as_ac_Header'}'` = yes; then
34944 cat >>confdefs.h <<_ACEOF
34945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34946_ACEOF
34947
34948fi
34949
34950done
34951
34952
34953 if test "$wxUSE_LIBSDL" != "no"; then
34954
34955# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34956if test "${with_sdl_prefix+set}" = set; then
34957 withval="$with_sdl_prefix"
34958 sdl_prefix="$withval"
34959else
34960 sdl_prefix=""
34961fi;
34962
34963# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34964if test "${with_sdl_exec_prefix+set}" = set; then
34965 withval="$with_sdl_exec_prefix"
34966 sdl_exec_prefix="$withval"
34967else
34968 sdl_exec_prefix=""
34969fi;
34970# Check whether --enable-sdltest or --disable-sdltest was given.
34971if test "${enable_sdltest+set}" = set; then
34972 enableval="$enable_sdltest"
34973
34974else
34975 enable_sdltest=yes
34976fi;
34977
34978 if test x$sdl_exec_prefix != x ; then
34979 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34980 if test x${SDL_CONFIG+set} != xset ; then
34981 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34982 fi
34983 fi
34984 if test x$sdl_prefix != x ; then
34985 sdl_args="$sdl_args --prefix=$sdl_prefix"
34986 if test x${SDL_CONFIG+set} != xset ; then
34987 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34988 fi
34989 fi
34990
34991
34992 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34993 # Extract the first word of "sdl-config", so it can be a program name with args.
34994set dummy sdl-config; ac_word=$2
34995echo "$as_me:$LINENO: checking for $ac_word" >&5
34996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34997if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34998 echo $ECHO_N "(cached) $ECHO_C" >&6
34999else
35000 case $SDL_CONFIG in
35001 [\\/]* | ?:[\\/]*)
35002 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35003 ;;
35004 *)
35005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35006for as_dir in $PATH
35007do
35008 IFS=$as_save_IFS
35009 test -z "$as_dir" && as_dir=.
35010 for ac_exec_ext in '' $ac_executable_extensions; do
35011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35012 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35014 break 2
35015 fi
35016done
35017done
35018
35019 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35020 ;;
35021esac
35022fi
35023SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35024
35025if test -n "$SDL_CONFIG"; then
35026 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35027echo "${ECHO_T}$SDL_CONFIG" >&6
35028else
35029 echo "$as_me:$LINENO: result: no" >&5
35030echo "${ECHO_T}no" >&6
35031fi
35032
35033 min_sdl_version=1.2.0
35034 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35035echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35036 no_sdl=""
35037 if test "$SDL_CONFIG" = "no" ; then
35038 no_sdl=yes
35039 else
35040 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35041 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35042
35043 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35044 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35045 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35046 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35047 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35048 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35049 if test "x$enable_sdltest" = "xyes" ; then
35050 ac_save_CFLAGS="$CFLAGS"
94acd38e 35051 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
35052 ac_save_LIBS="$LIBS"
35053 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35054 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35055 LIBS="$LIBS $SDL_LIBS"
35056 rm -f conf.sdltest
35057 if test "$cross_compiling" = yes; then
35058 echo $ac_n "cross compiling; assumed OK... $ac_c"
35059else
35060 cat >conftest.$ac_ext <<_ACEOF
35061/* confdefs.h. */
35062_ACEOF
35063cat confdefs.h >>conftest.$ac_ext
35064cat >>conftest.$ac_ext <<_ACEOF
35065/* end confdefs.h. */
35066
35067#include <stdio.h>
35068#include <stdlib.h>
35069#include <string.h>
35070#include "SDL.h"
35071
35072char*
35073my_strdup (char *str)
35074{
35075 char *new_str;
35076
35077 if (str)
35078 {
35079 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35080 strcpy (new_str, str);
35081 }
35082 else
35083 new_str = NULL;
35084
35085 return new_str;
35086}
35087
35088int main (int argc, char *argv[])
35089{
35090 int major, minor, micro;
35091 char *tmp_version;
35092
35093 /* This hangs on some systems (?)
35094 system ("touch conf.sdltest");
35095 */
35096 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35097
35098 /* HP/UX 9 (%@#!) writes to sscanf strings */
35099 tmp_version = my_strdup("$min_sdl_version");
35100 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35101 printf("%s, bad version string\n", "$min_sdl_version");
35102 exit(1);
35103 }
35104
35105 if (($sdl_major_version > major) ||
35106 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35107 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35108 {
35109 return 0;
35110 }
35111 else
35112 {
35113 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35114 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35115 printf("*** best to upgrade to the required version.\n");
35116 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35117 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35118 printf("*** config.cache before re-running configure\n");
35119 return 1;
35120 }
35121}
35122
35123
35124_ACEOF
35125rm -f conftest$ac_exeext
35126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35127 (eval $ac_link) 2>&5
35128 ac_status=$?
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35132 (eval $ac_try) 2>&5
35133 ac_status=$?
35134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35135 (exit $ac_status); }; }; then
35136 :
35137else
35138 echo "$as_me: program exited with status $ac_status" >&5
35139echo "$as_me: failed program was:" >&5
35140sed 's/^/| /' conftest.$ac_ext >&5
35141
35142( exit $ac_status )
35143no_sdl=yes
35144fi
ac1cb8d3 35145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35146fi
35147 CFLAGS="$ac_save_CFLAGS"
94acd38e 35148 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
35149 LIBS="$ac_save_LIBS"
35150 fi
35151 fi
35152 if test "x$no_sdl" = x ; then
35153 echo "$as_me:$LINENO: result: yes" >&5
35154echo "${ECHO_T}yes" >&6
35155
35156 EXTRALIBS_SDL="$SDL_LIBS"
35157 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35158 cat >>confdefs.h <<\_ACEOF
35159#define wxUSE_LIBSDL 1
35160_ACEOF
35161
35162
35163 else
35164 echo "$as_me:$LINENO: result: no" >&5
35165echo "${ECHO_T}no" >&6
35166 if test "$SDL_CONFIG" = "no" ; then
35167 echo "*** The sdl-config script installed by SDL could not be found"
35168 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35169 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35170 echo "*** full path to sdl-config."
35171 else
35172 if test -f conf.sdltest ; then
35173 :
35174 else
35175 echo "*** Could not run SDL test program, checking why..."
35176 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35177 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35178 LIBS="$LIBS $SDL_LIBS"
35179 cat >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 <stdio.h>
35187#include "SDL.h"
35188
35189int main(int argc, char *argv[])
35190{ return 0; }
35191#undef main
35192#define main K_and_R_C_main
35193
35194int
35195main ()
35196{
35197 return 0;
35198 ;
35199 return 0;
35200}
35201_ACEOF
35202rm -f conftest.$ac_objext conftest$ac_exeext
35203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35204 (eval $ac_link) 2>conftest.er1
a848cd7e 35205 ac_status=$?
ac1cb8d3
VS
35206 grep -v '^ *+' conftest.er1 >conftest.err
35207 rm -f conftest.er1
35208 cat conftest.err >&5
a848cd7e
SC
35209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210 (exit $ac_status); } &&
89be85c2
VS
35211 { ac_try='test -z "$ac_c_werror_flag"
35212 || test ! -s conftest.err'
ac1cb8d3
VS
35213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35214 (eval $ac_try) 2>&5
35215 ac_status=$?
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); }; } &&
35218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35220 (eval $ac_try) 2>&5
35221 ac_status=$?
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); }; }; then
35224 echo "*** The test program compiled, but did not run. This usually means"
35225 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35226 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35227 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35228 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35229 echo "*** is required on your system"
35230 echo "***"
35231 echo "*** If you have an old version installed, it is best to remove it, although"
35232 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35233else
35234 echo "$as_me: failed program was:" >&5
35235sed 's/^/| /' conftest.$ac_ext >&5
35236
35237 echo "*** The test program failed to compile or link. See the file config.log for the"
35238 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35239 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35240 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35241fi
ac1cb8d3
VS
35242rm -f conftest.err conftest.$ac_objext \
35243 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35244 CFLAGS="$ac_save_CFLAGS"
94acd38e 35245 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
35246 LIBS="$ac_save_LIBS"
35247 fi
35248 fi
35249 SDL_CFLAGS=""
35250 SDL_LIBS=""
35251 wxUSE_LIBSDL="no"
35252 fi
35253
35254
35255 rm -f conf.sdltest
35256
35257 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35258 WITH_PLUGIN_SDL=1
35259 fi
35260 fi
35261 fi
35262
35263 cat >>confdefs.h <<\_ACEOF
35264#define wxUSE_SOUND 1
35265_ACEOF
35266
35267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35268fi
35269
d1c38808
VZ
35270if test "$WXGTK20" = 1; then
35271 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35272 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35273
35274
35275 succeeded=no
35276
35277 if test -z "$PKG_CONFIG"; then
35278 # Extract the first word of "pkg-config", so it can be a program name with args.
35279set dummy pkg-config; ac_word=$2
35280echo "$as_me:$LINENO: checking for $ac_word" >&5
35281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35282if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35283 echo $ECHO_N "(cached) $ECHO_C" >&6
35284else
35285 case $PKG_CONFIG in
35286 [\\/]* | ?:[\\/]*)
35287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35288 ;;
35289 *)
35290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35291for as_dir in $PATH
35292do
35293 IFS=$as_save_IFS
35294 test -z "$as_dir" && as_dir=.
35295 for ac_exec_ext in '' $ac_executable_extensions; do
35296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35299 break 2
35300 fi
35301done
35302done
35303
35304 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35305 ;;
35306esac
35307fi
35308PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35309
35310if test -n "$PKG_CONFIG"; then
35311 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35312echo "${ECHO_T}$PKG_CONFIG" >&6
35313else
35314 echo "$as_me:$LINENO: result: no" >&5
35315echo "${ECHO_T}no" >&6
35316fi
35317
35318 fi
35319
35320 if test "$PKG_CONFIG" = "no" ; then
35321 echo "*** The pkg-config script could not be found. Make sure it is"
35322 echo "*** in your path, or set the PKG_CONFIG environment variable"
35323 echo "*** to the full path to pkg-config."
35324 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35325 else
35326 PKG_CONFIG_MIN_VERSION=0.9.0
35327 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35328 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35329echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35330
ffa762ff 35331 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35332 echo "$as_me:$LINENO: result: yes" >&5
35333echo "${ECHO_T}yes" >&6
35334 succeeded=yes
35335
35336 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35337echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35338 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35339 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35340echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35341
35342 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35343echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35344 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35345 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35346echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35347 else
35348 LIBGNOMEPRINTUI_CFLAGS=""
35349 LIBGNOMEPRINTUI_LIBS=""
35350 ## If we have a custom action on failure, don't print errors, but
35351 ## do set a variable so people can do so.
ffa762ff 35352 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35353
35354 fi
35355
35356
35357
35358 else
35359 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35360 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35361 fi
35362 fi
35363
35364 if test $succeeded = yes; then
35365
d1c38808
VZ
35366 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35367 cat >>confdefs.h <<\_ACEOF
35368#define wxUSE_LIBGNOMEPRINT 1
35369_ACEOF
35370
35371
35372 else
35373
35374 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35375echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35376 wxUSE_LIBGNOMEPRINT="no"
35377
35378
35379 fi
35380
35381 fi
35382 fi
35383fi
35384
35385
a848cd7e
SC
35386if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35387 cat >>confdefs.h <<\_ACEOF
35388#define wxUSE_CMDLINE_PARSER 1
35389_ACEOF
35390
35391fi
35392
35393if test "$wxUSE_STOPWATCH" = "yes"; then
35394 cat >>confdefs.h <<\_ACEOF
35395#define wxUSE_STOPWATCH 1
35396_ACEOF
35397
35398fi
35399
35400if test "$wxUSE_DATETIME" = "yes"; then
35401 cat >>confdefs.h <<\_ACEOF
35402#define wxUSE_DATETIME 1
35403_ACEOF
35404
35405fi
35406
35407if test "$wxUSE_FILE" = "yes"; then
35408 cat >>confdefs.h <<\_ACEOF
35409#define wxUSE_FILE 1
35410_ACEOF
35411
35412fi
35413
35414if test "$wxUSE_FFILE" = "yes"; then
35415 cat >>confdefs.h <<\_ACEOF
35416#define wxUSE_FFILE 1
35417_ACEOF
35418
35419fi
35420
35421if test "$wxUSE_FILESYSTEM" = "yes"; then
35422 cat >>confdefs.h <<\_ACEOF
35423#define wxUSE_FILESYSTEM 1
35424_ACEOF
35425
35426fi
35427
35428if test "$wxUSE_FS_ZIP" = "yes"; then
35429 cat >>confdefs.h <<\_ACEOF
35430#define wxUSE_FS_ZIP 1
35431_ACEOF
35432
35433fi
35434
9e8e867f 35435if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 35436 cat >>confdefs.h <<\_ACEOF
9e8e867f 35437#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
35438_ACEOF
35439
35440fi
35441
35442if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 35443 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
35444 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
35445echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
35446 elif test "$wxUSE_ZLIB" = "no"; then
35447 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
35448echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
35449 else
35450 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35451#define wxUSE_ZIPSTREAM 1
35452_ACEOF
35453
81f90336 35454 fi
a848cd7e
SC
35455fi
35456
a848cd7e
SC
35457if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35458 cat >>confdefs.h <<\_ACEOF
35459#define wxUSE_ON_FATAL_EXCEPTION 1
35460_ACEOF
35461
35462fi
35463
eaff0f0d
VZ
35464if test "$wxUSE_STACKWALKER" = "yes"; then
35465 cat >>confdefs.h <<\_ACEOF
35466#define wxUSE_STACKWALKER 1
35467_ACEOF
35468
35469fi
35470
a848cd7e
SC
35471if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35472 cat >>confdefs.h <<\_ACEOF
35473#define wxUSE_SNGLINST_CHECKER 1
35474_ACEOF
35475
35476fi
35477
35478if test "$wxUSE_BUSYINFO" = "yes"; then
35479 cat >>confdefs.h <<\_ACEOF
35480#define wxUSE_BUSYINFO 1
35481_ACEOF
35482
35483fi
35484
35485if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35486 cat >>confdefs.h <<\_ACEOF
35487#define wxUSE_STD_IOSTREAM 1
35488_ACEOF
35489
35490fi
35491
35492if test "$wxUSE_TEXTBUFFER" = "yes"; then
35493 cat >>confdefs.h <<\_ACEOF
35494#define wxUSE_TEXTBUFFER 1
35495_ACEOF
35496
35497fi
35498
35499if test "$wxUSE_TEXTFILE" = "yes"; then
35500 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35501 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35502echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35503 else
35504 cat >>confdefs.h <<\_ACEOF
35505#define wxUSE_TEXTFILE 1
35506_ACEOF
35507
35508 fi
35509fi
35510
35511if test "$wxUSE_CONFIG" = "yes" ; then
35512 if test "$wxUSE_TEXTFILE" != "yes"; then
35513 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35514echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35515 else
35516 cat >>confdefs.h <<\_ACEOF
35517#define wxUSE_CONFIG 1
89be85c2
VS
35518_ACEOF
35519
35520 cat >>confdefs.h <<\_ACEOF
35521#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
35522_ACEOF
35523
35524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35525 fi
35526fi
35527
35528if test "$wxUSE_INTL" = "yes" ; then
35529 if test "$wxUSE_FILE" != "yes"; then
35530 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35531echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35532 else
35533 cat >>confdefs.h <<\_ACEOF
35534#define wxUSE_INTL 1
35535_ACEOF
35536
35537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35538 GUIDIST="$GUIDIST INTL_DIST"
35539 fi
35540fi
35541
35542if test "$wxUSE_LOG" = "yes"; then
35543 cat >>confdefs.h <<\_ACEOF
35544#define wxUSE_LOG 1
35545_ACEOF
35546
35547
35548 if test "$wxUSE_LOGGUI" = "yes"; then
35549 cat >>confdefs.h <<\_ACEOF
35550#define wxUSE_LOGGUI 1
35551_ACEOF
35552
35553 fi
35554
35555 if test "$wxUSE_LOGWINDOW" = "yes"; then
35556 cat >>confdefs.h <<\_ACEOF
35557#define wxUSE_LOGWINDOW 1
35558_ACEOF
35559
35560 fi
35561
35562 if test "$wxUSE_LOGDIALOG" = "yes"; then
35563 cat >>confdefs.h <<\_ACEOF
35564#define wxUSE_LOG_DIALOG 1
35565_ACEOF
35566
35567 fi
35568fi
35569
35570if test "$wxUSE_LONGLONG" = "yes"; then
35571 cat >>confdefs.h <<\_ACEOF
35572#define wxUSE_LONGLONG 1
35573_ACEOF
35574
35575fi
35576
35577if test "$wxUSE_GEOMETRY" = "yes"; then
35578 cat >>confdefs.h <<\_ACEOF
35579#define wxUSE_GEOMETRY 1
35580_ACEOF
35581
35582fi
35583
a848cd7e
SC
35584if test "$wxUSE_STREAMS" = "yes" ; then
35585 cat >>confdefs.h <<\_ACEOF
35586#define wxUSE_STREAMS 1
35587_ACEOF
35588
35589fi
35590
35591
35592if test "$wxUSE_DATETIME" = "yes"; then
35593
35594for ac_func in strptime
35595do
35596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35597echo "$as_me:$LINENO: checking for $ac_func" >&5
35598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35599if eval "test \"\${$as_ac_var+set}\" = set"; then
35600 echo $ECHO_N "(cached) $ECHO_C" >&6
35601else
35602 cat >conftest.$ac_ext <<_ACEOF
35603/* confdefs.h. */
35604_ACEOF
35605cat confdefs.h >>conftest.$ac_ext
35606cat >>conftest.$ac_ext <<_ACEOF
35607/* end confdefs.h. */
ac1cb8d3
VS
35608/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35610#define $ac_func innocuous_$ac_func
35611
a848cd7e
SC
35612/* System header to define __stub macros and hopefully few prototypes,
35613 which can conflict with char $ac_func (); below.
35614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35615 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35616
a848cd7e
SC
35617#ifdef __STDC__
35618# include <limits.h>
35619#else
35620# include <assert.h>
35621#endif
ac1cb8d3
VS
35622
35623#undef $ac_func
35624
a848cd7e
SC
35625/* Override any gcc2 internal prototype to avoid an error. */
35626#ifdef __cplusplus
35627extern "C"
35628{
35629#endif
35630/* We use char because int might match the return type of a gcc2
35631 builtin and then its argument prototype would still apply. */
35632char $ac_func ();
35633/* The GNU C library defines this for functions which it implements
35634 to always fail with ENOSYS. Some functions are actually named
35635 something starting with __ and the normal name is an alias. */
35636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35637choke me
35638#else
35639char (*f) () = $ac_func;
35640#endif
35641#ifdef __cplusplus
35642}
35643#endif
35644
35645int
35646main ()
35647{
35648return f != $ac_func;
35649 ;
35650 return 0;
35651}
35652_ACEOF
35653rm -f conftest.$ac_objext conftest$ac_exeext
35654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35655 (eval $ac_link) 2>conftest.er1
a848cd7e 35656 ac_status=$?
ac1cb8d3
VS
35657 grep -v '^ *+' conftest.er1 >conftest.err
35658 rm -f conftest.er1
35659 cat conftest.err >&5
a848cd7e
SC
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); } &&
89be85c2
VS
35662 { ac_try='test -z "$ac_c_werror_flag"
35663 || test ! -s conftest.err'
ac1cb8d3
VS
35664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35665 (eval $ac_try) 2>&5
35666 ac_status=$?
35667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35668 (exit $ac_status); }; } &&
35669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35671 (eval $ac_try) 2>&5
35672 ac_status=$?
35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674 (exit $ac_status); }; }; then
35675 eval "$as_ac_var=yes"
35676else
35677 echo "$as_me: failed program was:" >&5
35678sed 's/^/| /' conftest.$ac_ext >&5
35679
35680eval "$as_ac_var=no"
35681fi
ac1cb8d3
VS
35682rm -f conftest.err conftest.$ac_objext \
35683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35684fi
35685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35686echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35687if test `eval echo '${'$as_ac_var'}'` = yes; then
35688 cat >>confdefs.h <<_ACEOF
35689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35690_ACEOF
35691
35692fi
35693done
35694
35695
35696 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35697echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35698if test "${wx_cv_var_timezone+set}" = set; then
35699 echo $ECHO_N "(cached) $ECHO_C" >&6
35700else
35701
35702 cat >conftest.$ac_ext <<_ACEOF
35703/* confdefs.h. */
35704_ACEOF
35705cat confdefs.h >>conftest.$ac_ext
35706cat >>conftest.$ac_ext <<_ACEOF
35707/* end confdefs.h. */
35708
35709 #include <time.h>
35710
35711int
35712main ()
35713{
35714
35715 int tz;
35716 tz = timezone;
35717
35718 ;
35719 return 0;
35720}
35721_ACEOF
35722rm -f conftest.$ac_objext
35723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35724 (eval $ac_compile) 2>conftest.er1
a848cd7e 35725 ac_status=$?
ac1cb8d3
VS
35726 grep -v '^ *+' conftest.er1 >conftest.err
35727 rm -f conftest.er1
35728 cat conftest.err >&5
a848cd7e
SC
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); } &&
89be85c2
VS
35731 { ac_try='test -z "$ac_c_werror_flag"
35732 || test ! -s conftest.err'
ac1cb8d3
VS
35733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734 (eval $ac_try) 2>&5
35735 ac_status=$?
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; } &&
35738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740 (eval $ac_try) 2>&5
35741 ac_status=$?
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); }; }; then
35744
35745 wx_cv_var_timezone=timezone
35746
35747else
35748 echo "$as_me: failed program was:" >&5
35749sed 's/^/| /' conftest.$ac_ext >&5
35750
35751
35752 cat >conftest.$ac_ext <<_ACEOF
35753/* confdefs.h. */
35754_ACEOF
35755cat confdefs.h >>conftest.$ac_ext
35756cat >>conftest.$ac_ext <<_ACEOF
35757/* end confdefs.h. */
35758
35759 #include <time.h>
35760
35761int
35762main ()
35763{
35764
35765 int tz;
35766 tz = _timezone;
35767
35768 ;
35769 return 0;
35770}
35771_ACEOF
35772rm -f conftest.$ac_objext
35773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35774 (eval $ac_compile) 2>conftest.er1
a848cd7e 35775 ac_status=$?
ac1cb8d3
VS
35776 grep -v '^ *+' conftest.er1 >conftest.err
35777 rm -f conftest.er1
35778 cat conftest.err >&5
a848cd7e
SC
35779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35780 (exit $ac_status); } &&
89be85c2
VS
35781 { ac_try='test -z "$ac_c_werror_flag"
35782 || test ! -s conftest.err'
ac1cb8d3
VS
35783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35784 (eval $ac_try) 2>&5
35785 ac_status=$?
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; } &&
35788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790 (eval $ac_try) 2>&5
35791 ac_status=$?
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); }; }; then
35794
35795 wx_cv_var_timezone=_timezone
35796
35797else
35798 echo "$as_me: failed program was:" >&5
35799sed 's/^/| /' conftest.$ac_ext >&5
35800
35801
35802 cat >conftest.$ac_ext <<_ACEOF
35803/* confdefs.h. */
35804_ACEOF
35805cat confdefs.h >>conftest.$ac_ext
35806cat >>conftest.$ac_ext <<_ACEOF
35807/* end confdefs.h. */
35808
35809 #include <time.h>
35810
35811int
35812main ()
35813{
35814
35815 int tz;
35816 tz = __timezone;
35817
35818 ;
35819 return 0;
35820}
35821_ACEOF
35822rm -f conftest.$ac_objext
35823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35824 (eval $ac_compile) 2>conftest.er1
a848cd7e 35825 ac_status=$?
ac1cb8d3
VS
35826 grep -v '^ *+' conftest.er1 >conftest.err
35827 rm -f conftest.er1
35828 cat conftest.err >&5
a848cd7e
SC
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); } &&
89be85c2
VS
35831 { ac_try='test -z "$ac_c_werror_flag"
35832 || test ! -s conftest.err'
ac1cb8d3
VS
35833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35834 (eval $ac_try) 2>&5
35835 ac_status=$?
35836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837 (exit $ac_status); }; } &&
35838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35841 ac_status=$?
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; }; then
35844
35845 wx_cv_var_timezone=__timezone
35846
35847else
35848 echo "$as_me: failed program was:" >&5
35849sed 's/^/| /' conftest.$ac_ext >&5
35850
35851
35852 if test "$USE_DOS" = 0 ; then
35853 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35854echo "$as_me: WARNING: no timezone variable" >&2;}
35855 fi
35856
35857
35858fi
ac1cb8d3 35859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35860
35861
35862fi
ac1cb8d3 35863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35864
35865
35866fi
ac1cb8d3 35867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35868
35869
35870fi
35871echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35872echo "${ECHO_T}$wx_cv_var_timezone" >&6
35873
35874 if test "x$wx_cv_var_timezone" != x ; then
35875 cat >>confdefs.h <<_ACEOF
35876#define WX_TIMEZONE $wx_cv_var_timezone
35877_ACEOF
35878
35879 fi
35880
35881
35882for ac_func in localtime
35883do
35884as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35885echo "$as_me:$LINENO: checking for $ac_func" >&5
35886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35887if eval "test \"\${$as_ac_var+set}\" = set"; then
35888 echo $ECHO_N "(cached) $ECHO_C" >&6
35889else
35890 cat >conftest.$ac_ext <<_ACEOF
35891/* confdefs.h. */
35892_ACEOF
35893cat confdefs.h >>conftest.$ac_ext
35894cat >>conftest.$ac_ext <<_ACEOF
35895/* end confdefs.h. */
ac1cb8d3
VS
35896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35898#define $ac_func innocuous_$ac_func
35899
a848cd7e
SC
35900/* System header to define __stub macros and hopefully few prototypes,
35901 which can conflict with char $ac_func (); below.
35902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35903 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35904
a848cd7e
SC
35905#ifdef __STDC__
35906# include <limits.h>
35907#else
35908# include <assert.h>
35909#endif
ac1cb8d3
VS
35910
35911#undef $ac_func
35912
a848cd7e
SC
35913/* Override any gcc2 internal prototype to avoid an error. */
35914#ifdef __cplusplus
35915extern "C"
35916{
35917#endif
35918/* We use char because int might match the return type of a gcc2
35919 builtin and then its argument prototype would still apply. */
35920char $ac_func ();
35921/* The GNU C library defines this for functions which it implements
35922 to always fail with ENOSYS. Some functions are actually named
35923 something starting with __ and the normal name is an alias. */
35924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35925choke me
35926#else
35927char (*f) () = $ac_func;
35928#endif
35929#ifdef __cplusplus
35930}
35931#endif
35932
35933int
35934main ()
35935{
35936return f != $ac_func;
35937 ;
35938 return 0;
35939}
35940_ACEOF
35941rm -f conftest.$ac_objext conftest$ac_exeext
35942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35943 (eval $ac_link) 2>conftest.er1
a848cd7e 35944 ac_status=$?
ac1cb8d3
VS
35945 grep -v '^ *+' conftest.er1 >conftest.err
35946 rm -f conftest.er1
35947 cat conftest.err >&5
a848cd7e
SC
35948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949 (exit $ac_status); } &&
89be85c2
VS
35950 { ac_try='test -z "$ac_c_werror_flag"
35951 || test ! -s conftest.err'
ac1cb8d3
VS
35952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35953 (eval $ac_try) 2>&5
35954 ac_status=$?
35955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); }; } &&
35957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35959 (eval $ac_try) 2>&5
35960 ac_status=$?
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); }; }; then
35963 eval "$as_ac_var=yes"
35964else
35965 echo "$as_me: failed program was:" >&5
35966sed 's/^/| /' conftest.$ac_ext >&5
35967
35968eval "$as_ac_var=no"
35969fi
ac1cb8d3
VS
35970rm -f conftest.err conftest.$ac_objext \
35971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35972fi
35973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35974echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35975if test `eval echo '${'$as_ac_var'}'` = yes; then
35976 cat >>confdefs.h <<_ACEOF
35977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35978_ACEOF
35979
35980fi
35981done
35982
35983
35984 if test "$ac_cv_func_localtime" = "yes"; then
35985 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35986echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35987if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35988 echo $ECHO_N "(cached) $ECHO_C" >&6
35989else
35990
35991 cat >conftest.$ac_ext <<_ACEOF
35992/* confdefs.h. */
35993_ACEOF
35994cat confdefs.h >>conftest.$ac_ext
35995cat >>conftest.$ac_ext <<_ACEOF
35996/* end confdefs.h. */
35997
35998 #include <time.h>
35999
36000int
36001main ()
36002{
36003
36004 struct tm tm;
36005 tm.tm_gmtoff++;
36006
36007 ;
36008 return 0;
36009}
36010_ACEOF
36011rm -f conftest.$ac_objext
36012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36013 (eval $ac_compile) 2>conftest.er1
a848cd7e 36014 ac_status=$?
ac1cb8d3
VS
36015 grep -v '^ *+' conftest.er1 >conftest.err
36016 rm -f conftest.er1
36017 cat conftest.err >&5
a848cd7e
SC
36018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019 (exit $ac_status); } &&
89be85c2
VS
36020 { ac_try='test -z "$ac_c_werror_flag"
36021 || test ! -s conftest.err'
ac1cb8d3
VS
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36024 ac_status=$?
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; } &&
36027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36029 (eval $ac_try) 2>&5
36030 ac_status=$?
36031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032 (exit $ac_status); }; }; then
36033
36034 wx_cv_struct_tm_has_gmtoff=yes
36035
36036else
36037 echo "$as_me: failed program was:" >&5
36038sed 's/^/| /' conftest.$ac_ext >&5
36039
36040wx_cv_struct_tm_has_gmtoff=no
36041
36042fi
ac1cb8d3 36043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36044
36045fi
36046echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36047echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36048 fi
36049
36050 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36051 cat >>confdefs.h <<\_ACEOF
36052#define WX_GMTOFF_IN_TM 1
36053_ACEOF
36054
36055 fi
36056
36057
36058
36059for ac_func in gettimeofday ftime
36060do
36061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36062echo "$as_me:$LINENO: checking for $ac_func" >&5
36063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36064if eval "test \"\${$as_ac_var+set}\" = set"; then
36065 echo $ECHO_N "(cached) $ECHO_C" >&6
36066else
36067 cat >conftest.$ac_ext <<_ACEOF
36068/* confdefs.h. */
36069_ACEOF
36070cat confdefs.h >>conftest.$ac_ext
36071cat >>conftest.$ac_ext <<_ACEOF
36072/* end confdefs.h. */
ac1cb8d3
VS
36073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36075#define $ac_func innocuous_$ac_func
36076
a848cd7e
SC
36077/* System header to define __stub macros and hopefully few prototypes,
36078 which can conflict with char $ac_func (); below.
36079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36080 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36081
a848cd7e
SC
36082#ifdef __STDC__
36083# include <limits.h>
36084#else
36085# include <assert.h>
36086#endif
ac1cb8d3
VS
36087
36088#undef $ac_func
36089
a848cd7e
SC
36090/* Override any gcc2 internal prototype to avoid an error. */
36091#ifdef __cplusplus
36092extern "C"
36093{
36094#endif
36095/* We use char because int might match the return type of a gcc2
36096 builtin and then its argument prototype would still apply. */
36097char $ac_func ();
36098/* The GNU C library defines this for functions which it implements
36099 to always fail with ENOSYS. Some functions are actually named
36100 something starting with __ and the normal name is an alias. */
36101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36102choke me
36103#else
36104char (*f) () = $ac_func;
36105#endif
36106#ifdef __cplusplus
36107}
36108#endif
36109
36110int
36111main ()
36112{
36113return f != $ac_func;
36114 ;
36115 return 0;
36116}
36117_ACEOF
36118rm -f conftest.$ac_objext conftest$ac_exeext
36119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36120 (eval $ac_link) 2>conftest.er1
a848cd7e 36121 ac_status=$?
ac1cb8d3
VS
36122 grep -v '^ *+' conftest.er1 >conftest.err
36123 rm -f conftest.er1
36124 cat conftest.err >&5
a848cd7e
SC
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); } &&
89be85c2
VS
36127 { ac_try='test -z "$ac_c_werror_flag"
36128 || test ! -s conftest.err'
ac1cb8d3
VS
36129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 (eval $ac_try) 2>&5
36131 ac_status=$?
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); }; } &&
36134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36136 (eval $ac_try) 2>&5
36137 ac_status=$?
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); }; }; then
36140 eval "$as_ac_var=yes"
36141else
36142 echo "$as_me: failed program was:" >&5
36143sed 's/^/| /' conftest.$ac_ext >&5
36144
36145eval "$as_ac_var=no"
36146fi
ac1cb8d3
VS
36147rm -f conftest.err conftest.$ac_objext \
36148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36149fi
36150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36152if test `eval echo '${'$as_ac_var'}'` = yes; then
36153 cat >>confdefs.h <<_ACEOF
36154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36155_ACEOF
36156 break
36157fi
36158done
36159
36160
36161 if test "$ac_cv_func_gettimeofday" = "yes"; then
36162 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36163echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36164if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36165 echo $ECHO_N "(cached) $ECHO_C" >&6
36166else
36167
36168
36169
36170 ac_ext=cc
36171ac_cpp='$CXXCPP $CPPFLAGS'
36172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36175
36176
36177 cat >conftest.$ac_ext <<_ACEOF
36178/* confdefs.h. */
36179_ACEOF
36180cat confdefs.h >>conftest.$ac_ext
36181cat >>conftest.$ac_ext <<_ACEOF
36182/* end confdefs.h. */
36183
36184 #include <sys/time.h>
36185 #include <unistd.h>
36186
36187int
36188main ()
36189{
36190
36191 struct timeval tv;
36192 gettimeofday(&tv, NULL);
36193
36194 ;
36195 return 0;
36196}
36197_ACEOF
36198rm -f conftest.$ac_objext
36199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36200 (eval $ac_compile) 2>conftest.er1
a848cd7e 36201 ac_status=$?
ac1cb8d3
VS
36202 grep -v '^ *+' conftest.er1 >conftest.err
36203 rm -f conftest.er1
36204 cat conftest.err >&5
a848cd7e
SC
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); } &&
89be85c2
VS
36207 { ac_try='test -z "$ac_cxx_werror_flag"
36208 || test ! -s conftest.err'
ac1cb8d3
VS
36209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36210 (eval $ac_try) 2>&5
36211 ac_status=$?
36212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36213 (exit $ac_status); }; } &&
36214 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36216 (eval $ac_try) 2>&5
36217 ac_status=$?
36218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219 (exit $ac_status); }; }; then
36220 wx_cv_func_gettimeofday_has_2_args=yes
36221else
36222 echo "$as_me: failed program was:" >&5
36223sed 's/^/| /' conftest.$ac_ext >&5
36224
36225cat >conftest.$ac_ext <<_ACEOF
36226/* confdefs.h. */
36227_ACEOF
36228cat confdefs.h >>conftest.$ac_ext
36229cat >>conftest.$ac_ext <<_ACEOF
36230/* end confdefs.h. */
36231
36232 #include <sys/time.h>
36233 #include <unistd.h>
36234
36235int
36236main ()
36237{
36238
36239 struct timeval tv;
36240 gettimeofday(&tv);
36241
36242 ;
36243 return 0;
36244}
36245_ACEOF
36246rm -f conftest.$ac_objext
36247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36248 (eval $ac_compile) 2>conftest.er1
a848cd7e 36249 ac_status=$?
ac1cb8d3
VS
36250 grep -v '^ *+' conftest.er1 >conftest.err
36251 rm -f conftest.er1
36252 cat conftest.err >&5
a848cd7e
SC
36253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254 (exit $ac_status); } &&
89be85c2
VS
36255 { ac_try='test -z "$ac_cxx_werror_flag"
36256 || test ! -s conftest.err'
ac1cb8d3
VS
36257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36258 (eval $ac_try) 2>&5
36259 ac_status=$?
36260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261 (exit $ac_status); }; } &&
36262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36264 (eval $ac_try) 2>&5
36265 ac_status=$?
36266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267 (exit $ac_status); }; }; then
36268 wx_cv_func_gettimeofday_has_2_args=no
36269else
36270 echo "$as_me: failed program was:" >&5
36271sed 's/^/| /' conftest.$ac_ext >&5
36272
36273
36274 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36275echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36276 wx_cv_func_gettimeofday_has_2_args=unknown
36277
36278
36279fi
ac1cb8d3 36280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36281
36282fi
ac1cb8d3 36283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36284 ac_ext=c
36285ac_cpp='$CPP $CPPFLAGS'
36286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36288ac_compiler_gnu=$ac_cv_c_compiler_gnu
36289
36290
36291fi
36292echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36293echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36294
36295 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36296 cat >>confdefs.h <<\_ACEOF
36297#define WX_GETTIMEOFDAY_NO_TZ 1
36298_ACEOF
36299
36300 fi
36301 fi
36302
36303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36304fi
36305
36306
36307if test "$wxUSE_SOCKETS" = "yes"; then
36308 if test "$wxUSE_MGL" = "1"; then
36309 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36310echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36311 wxUSE_SOCKETS="no"
36312 fi
36313fi
36314
36315if test "$wxUSE_SOCKETS" = "yes"; then
36316 if test "$TOOLKIT" != "MSW"; then
36317 echo "$as_me:$LINENO: checking for socket" >&5
36318echo $ECHO_N "checking for socket... $ECHO_C" >&6
36319if test "${ac_cv_func_socket+set}" = set; then
36320 echo $ECHO_N "(cached) $ECHO_C" >&6
36321else
36322 cat >conftest.$ac_ext <<_ACEOF
36323/* confdefs.h. */
36324_ACEOF
36325cat confdefs.h >>conftest.$ac_ext
36326cat >>conftest.$ac_ext <<_ACEOF
36327/* end confdefs.h. */
ac1cb8d3
VS
36328/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36330#define socket innocuous_socket
36331
a848cd7e
SC
36332/* System header to define __stub macros and hopefully few prototypes,
36333 which can conflict with char socket (); below.
36334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36335 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36336
a848cd7e
SC
36337#ifdef __STDC__
36338# include <limits.h>
36339#else
36340# include <assert.h>
36341#endif
ac1cb8d3
VS
36342
36343#undef socket
36344
a848cd7e
SC
36345/* Override any gcc2 internal prototype to avoid an error. */
36346#ifdef __cplusplus
36347extern "C"
36348{
36349#endif
36350/* We use char because int might match the return type of a gcc2
36351 builtin and then its argument prototype would still apply. */
36352char socket ();
36353/* The GNU C library defines this for functions which it implements
36354 to always fail with ENOSYS. Some functions are actually named
36355 something starting with __ and the normal name is an alias. */
36356#if defined (__stub_socket) || defined (__stub___socket)
36357choke me
36358#else
36359char (*f) () = socket;
36360#endif
36361#ifdef __cplusplus
36362}
36363#endif
36364
36365int
36366main ()
36367{
36368return f != socket;
36369 ;
36370 return 0;
36371}
36372_ACEOF
36373rm -f conftest.$ac_objext conftest$ac_exeext
36374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36375 (eval $ac_link) 2>conftest.er1
a848cd7e 36376 ac_status=$?
ac1cb8d3
VS
36377 grep -v '^ *+' conftest.er1 >conftest.err
36378 rm -f conftest.er1
36379 cat conftest.err >&5
a848cd7e
SC
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); } &&
89be85c2
VS
36382 { ac_try='test -z "$ac_c_werror_flag"
36383 || test ! -s conftest.err'
ac1cb8d3
VS
36384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36385 (eval $ac_try) 2>&5
36386 ac_status=$?
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); }; } &&
36389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36391 (eval $ac_try) 2>&5
36392 ac_status=$?
36393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36394 (exit $ac_status); }; }; then
36395 ac_cv_func_socket=yes
36396else
36397 echo "$as_me: failed program was:" >&5
36398sed 's/^/| /' conftest.$ac_ext >&5
36399
36400ac_cv_func_socket=no
36401fi
ac1cb8d3
VS
36402rm -f conftest.err conftest.$ac_objext \
36403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36404fi
36405echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36406echo "${ECHO_T}$ac_cv_func_socket" >&6
36407if test $ac_cv_func_socket = yes; then
36408 :
36409else
36410
36411 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36412echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36413if test "${ac_cv_lib_socket_socket+set}" = set; then
36414 echo $ECHO_N "(cached) $ECHO_C" >&6
36415else
36416 ac_check_lib_save_LIBS=$LIBS
36417LIBS="-lsocket $LIBS"
36418cat >conftest.$ac_ext <<_ACEOF
36419/* confdefs.h. */
36420_ACEOF
36421cat confdefs.h >>conftest.$ac_ext
36422cat >>conftest.$ac_ext <<_ACEOF
36423/* end confdefs.h. */
36424
36425/* Override any gcc2 internal prototype to avoid an error. */
36426#ifdef __cplusplus
36427extern "C"
36428#endif
36429/* We use char because int might match the return type of a gcc2
36430 builtin and then its argument prototype would still apply. */
36431char socket ();
36432int
36433main ()
36434{
36435socket ();
36436 ;
36437 return 0;
36438}
36439_ACEOF
36440rm -f conftest.$ac_objext conftest$ac_exeext
36441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36442 (eval $ac_link) 2>conftest.er1
a848cd7e 36443 ac_status=$?
ac1cb8d3
VS
36444 grep -v '^ *+' conftest.er1 >conftest.err
36445 rm -f conftest.er1
36446 cat conftest.err >&5
a848cd7e
SC
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); } &&
89be85c2
VS
36449 { ac_try='test -z "$ac_c_werror_flag"
36450 || test ! -s conftest.err'
ac1cb8d3
VS
36451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36452 (eval $ac_try) 2>&5
36453 ac_status=$?
36454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36455 (exit $ac_status); }; } &&
36456 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36458 (eval $ac_try) 2>&5
36459 ac_status=$?
36460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461 (exit $ac_status); }; }; then
36462 ac_cv_lib_socket_socket=yes
36463else
36464 echo "$as_me: failed program was:" >&5
36465sed 's/^/| /' conftest.$ac_ext >&5
36466
36467ac_cv_lib_socket_socket=no
36468fi
ac1cb8d3
VS
36469rm -f conftest.err conftest.$ac_objext \
36470 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36471LIBS=$ac_check_lib_save_LIBS
36472fi
36473echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36474echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36475if test $ac_cv_lib_socket_socket = yes; then
36476 if test "$INET_LINK" != " -lsocket"; then
36477 INET_LINK="$INET_LINK -lsocket"
36478 fi
36479else
36480
36481 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36482echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36483 wxUSE_SOCKETS=no
36484
36485
36486fi
36487
36488
36489
36490fi
36491
36492 fi
36493fi
36494
36495if test "$wxUSE_SOCKETS" = "yes" ; then
36496 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36497 ac_ext=cc
36498ac_cpp='$CXXCPP $CPPFLAGS'
36499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36502
36503 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36504echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36505if test "${wx_cv_type_getsockname3+set}" = set; then
36506 echo $ECHO_N "(cached) $ECHO_C" >&6
36507else
36508
36509 cat >conftest.$ac_ext <<_ACEOF
36510/* confdefs.h. */
36511_ACEOF
36512cat confdefs.h >>conftest.$ac_ext
36513cat >>conftest.$ac_ext <<_ACEOF
36514/* end confdefs.h. */
36515
36516 #include <sys/types.h>
36517 #include <sys/socket.h>
36518
36519int
36520main ()
36521{
36522
36523 socklen_t len;
36524 getsockname(0, 0, &len);
36525
36526 ;
36527 return 0;
36528}
36529_ACEOF
36530rm -f conftest.$ac_objext
36531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36532 (eval $ac_compile) 2>conftest.er1
a848cd7e 36533 ac_status=$?
ac1cb8d3
VS
36534 grep -v '^ *+' conftest.er1 >conftest.err
36535 rm -f conftest.er1
36536 cat conftest.err >&5
a848cd7e
SC
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); } &&
89be85c2
VS
36539 { ac_try='test -z "$ac_cxx_werror_flag"
36540 || test ! -s conftest.err'
ac1cb8d3
VS
36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542 (eval $ac_try) 2>&5
36543 ac_status=$?
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; } &&
36546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548 (eval $ac_try) 2>&5
36549 ac_status=$?
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); }; }; then
36552 wx_cv_type_getsockname3=socklen_t
36553else
36554 echo "$as_me: failed program was:" >&5
36555sed 's/^/| /' conftest.$ac_ext >&5
36556
36557
36558 CFLAGS_OLD="$CFLAGS"
36559 if test "$GCC" = yes ; then
36560 CFLAGS="$CFLAGS -Werror"
36561 fi
36562
36563 cat >conftest.$ac_ext <<_ACEOF
36564/* confdefs.h. */
36565_ACEOF
36566cat confdefs.h >>conftest.$ac_ext
36567cat >>conftest.$ac_ext <<_ACEOF
36568/* end confdefs.h. */
36569
36570 #include <sys/types.h>
36571 #include <sys/socket.h>
36572
36573int
36574main ()
36575{
36576
36577 size_t len;
36578 getsockname(0, 0, &len);
36579
36580 ;
36581 return 0;
36582}
36583_ACEOF
36584rm -f conftest.$ac_objext
36585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36586 (eval $ac_compile) 2>conftest.er1
a848cd7e 36587 ac_status=$?
ac1cb8d3
VS
36588 grep -v '^ *+' conftest.er1 >conftest.err
36589 rm -f conftest.er1
36590 cat conftest.err >&5
a848cd7e
SC
36591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592 (exit $ac_status); } &&
89be85c2
VS
36593 { ac_try='test -z "$ac_cxx_werror_flag"
36594 || test ! -s conftest.err'
ac1cb8d3
VS
36595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36596 (eval $ac_try) 2>&5
36597 ac_status=$?
36598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36599 (exit $ac_status); }; } &&
36600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602 (eval $ac_try) 2>&5
36603 ac_status=$?
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); }; }; then
36606 wx_cv_type_getsockname3=size_t
36607else
36608 echo "$as_me: failed program was:" >&5
36609sed 's/^/| /' conftest.$ac_ext >&5
36610
36611cat >conftest.$ac_ext <<_ACEOF
36612/* confdefs.h. */
36613_ACEOF
36614cat confdefs.h >>conftest.$ac_ext
36615cat >>conftest.$ac_ext <<_ACEOF
36616/* end confdefs.h. */
36617
36618 #include <sys/types.h>
36619 #include <sys/socket.h>
36620
36621int
36622main ()
36623{
36624
36625 int len;
36626 getsockname(0, 0, &len);
36627
36628 ;
36629 return 0;
36630}
36631_ACEOF
36632rm -f conftest.$ac_objext
36633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36634 (eval $ac_compile) 2>conftest.er1
a848cd7e 36635 ac_status=$?
ac1cb8d3
VS
36636 grep -v '^ *+' conftest.er1 >conftest.err
36637 rm -f conftest.er1
36638 cat conftest.err >&5
a848cd7e
SC
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); } &&
89be85c2
VS
36641 { ac_try='test -z "$ac_cxx_werror_flag"
36642 || test ! -s conftest.err'
ac1cb8d3
VS
36643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36644 (eval $ac_try) 2>&5
36645 ac_status=$?
36646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36647 (exit $ac_status); }; } &&
36648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36650 (eval $ac_try) 2>&5
36651 ac_status=$?
36652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36653 (exit $ac_status); }; }; then
36654 wx_cv_type_getsockname3=int
36655else
36656 echo "$as_me: failed program was:" >&5
36657sed 's/^/| /' conftest.$ac_ext >&5
36658
36659wx_cv_type_getsockname3=unknown
36660
36661fi
ac1cb8d3 36662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36663
36664fi
ac1cb8d3 36665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36666
36667 CFLAGS="$CFLAGS_OLD"
36668
36669
36670fi
ac1cb8d3 36671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36672
36673fi
36674echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36675echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36676
36677 if test "$wx_cv_type_getsockname3" = "unknown"; then
36678 wxUSE_SOCKETS=no
36679 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36680echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36681 else
36682 cat >>confdefs.h <<_ACEOF
36683#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36684_ACEOF
36685
36686 fi
36687 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36688echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36689if test "${wx_cv_type_getsockopt5+set}" = set; then
36690 echo $ECHO_N "(cached) $ECHO_C" >&6
36691else
36692
36693 cat >conftest.$ac_ext <<_ACEOF
36694/* confdefs.h. */
36695_ACEOF
36696cat confdefs.h >>conftest.$ac_ext
36697cat >>conftest.$ac_ext <<_ACEOF
36698/* end confdefs.h. */
36699
36700 #include <sys/types.h>
36701 #include <sys/socket.h>
36702
36703int
36704main ()
36705{
36706
36707 socklen_t len;
36708 getsockopt(0, 0, 0, 0, &len);
36709
36710 ;
36711 return 0;
36712}
36713_ACEOF
36714rm -f conftest.$ac_objext
36715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36716 (eval $ac_compile) 2>conftest.er1
36717 ac_status=$?
36718 grep -v '^ *+' conftest.er1 >conftest.err
36719 rm -f conftest.er1
36720 cat conftest.err >&5
36721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722 (exit $ac_status); } &&
89be85c2
VS
36723 { ac_try='test -z "$ac_cxx_werror_flag"
36724 || test ! -s conftest.err'
5b674b9d
DE
36725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36726 (eval $ac_try) 2>&5
36727 ac_status=$?
36728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729 (exit $ac_status); }; } &&
36730 { ac_try='test -s conftest.$ac_objext'
36731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732 (eval $ac_try) 2>&5
36733 ac_status=$?
36734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 (exit $ac_status); }; }; then
36736 wx_cv_type_getsockopt5=socklen_t
36737else
36738 echo "$as_me: failed program was:" >&5
36739sed 's/^/| /' conftest.$ac_ext >&5
36740
36741
36742 CFLAGS_OLD="$CFLAGS"
36743 if test "$GCC" = yes ; then
36744 CFLAGS="$CFLAGS -Werror"
36745 fi
36746
36747 cat >conftest.$ac_ext <<_ACEOF
36748/* confdefs.h. */
36749_ACEOF
36750cat confdefs.h >>conftest.$ac_ext
36751cat >>conftest.$ac_ext <<_ACEOF
36752/* end confdefs.h. */
36753
36754 #include <sys/types.h>
36755 #include <sys/socket.h>
36756
36757int
36758main ()
36759{
36760
36761 size_t len;
36762 getsockopt(0, 0, 0, 0, &len);
36763
36764 ;
36765 return 0;
36766}
36767_ACEOF
36768rm -f conftest.$ac_objext
36769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36770 (eval $ac_compile) 2>conftest.er1
36771 ac_status=$?
36772 grep -v '^ *+' conftest.er1 >conftest.err
36773 rm -f conftest.er1
36774 cat conftest.err >&5
36775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36776 (exit $ac_status); } &&
89be85c2
VS
36777 { ac_try='test -z "$ac_cxx_werror_flag"
36778 || test ! -s conftest.err'
5b674b9d
DE
36779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36780 (eval $ac_try) 2>&5
36781 ac_status=$?
36782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); }; } &&
36784 { ac_try='test -s conftest.$ac_objext'
36785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36786 (eval $ac_try) 2>&5
36787 ac_status=$?
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); }; }; then
36790 wx_cv_type_getsockopt5=size_t
36791else
36792 echo "$as_me: failed program was:" >&5
36793sed 's/^/| /' conftest.$ac_ext >&5
36794
36795cat >conftest.$ac_ext <<_ACEOF
36796/* confdefs.h. */
36797_ACEOF
36798cat confdefs.h >>conftest.$ac_ext
36799cat >>conftest.$ac_ext <<_ACEOF
36800/* end confdefs.h. */
36801
36802 #include <sys/types.h>
36803 #include <sys/socket.h>
36804
36805int
36806main ()
36807{
36808
36809 int len;
36810 getsockopt(0, 0, 0, 0, &len);
36811
36812 ;
36813 return 0;
36814}
36815_ACEOF
36816rm -f conftest.$ac_objext
36817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36818 (eval $ac_compile) 2>conftest.er1
36819 ac_status=$?
36820 grep -v '^ *+' conftest.er1 >conftest.err
36821 rm -f conftest.er1
36822 cat conftest.err >&5
36823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824 (exit $ac_status); } &&
89be85c2
VS
36825 { ac_try='test -z "$ac_cxx_werror_flag"
36826 || test ! -s conftest.err'
5b674b9d
DE
36827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36828 (eval $ac_try) 2>&5
36829 ac_status=$?
36830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36831 (exit $ac_status); }; } &&
36832 { ac_try='test -s conftest.$ac_objext'
36833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36834 (eval $ac_try) 2>&5
36835 ac_status=$?
36836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837 (exit $ac_status); }; }; then
36838 wx_cv_type_getsockopt5=int
36839else
36840 echo "$as_me: failed program was:" >&5
36841sed 's/^/| /' conftest.$ac_ext >&5
36842
36843wx_cv_type_getsockopt5=unknown
36844
36845fi
36846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36847
36848fi
36849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36850
36851 CFLAGS="$CFLAGS_OLD"
36852
36853
36854fi
36855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36856
36857fi
36858echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36859echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36860
36861 if test "$wx_cv_type_getsockopt5" = "unknown"; then
36862 wxUSE_SOCKETS=no
36863 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36864echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36865 else
36866 cat >>confdefs.h <<_ACEOF
36867#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
36868_ACEOF
36869
36870 fi
4d4ff94c
VZ
36871 ac_ext=c
36872ac_cpp='$CPP $CPPFLAGS'
36873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36875ac_compiler_gnu=$ac_cv_c_compiler_gnu
36876
a848cd7e
SC
36877 fi
36878fi
36879
36880if test "$wxUSE_SOCKETS" = "yes" ; then
36881 cat >>confdefs.h <<\_ACEOF
36882#define wxUSE_SOCKETS 1
36883_ACEOF
36884
36885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36886fi
36887
36888if test "$wxUSE_PROTOCOL" = "yes"; then
36889 if test "$wxUSE_SOCKETS" != "yes"; then
36890 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36891echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36892 wxUSE_PROTOCOL=no
36893 fi
36894fi
36895
36896if test "$wxUSE_PROTOCOL" = "yes"; then
36897 cat >>confdefs.h <<\_ACEOF
36898#define wxUSE_PROTOCOL 1
36899_ACEOF
36900
36901
36902 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36903 cat >>confdefs.h <<\_ACEOF
36904#define wxUSE_PROTOCOL_HTTP 1
36905_ACEOF
36906
36907 fi
36908 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36909 cat >>confdefs.h <<\_ACEOF
36910#define wxUSE_PROTOCOL_FTP 1
36911_ACEOF
36912
36913 fi
36914 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36915 cat >>confdefs.h <<\_ACEOF
36916#define wxUSE_PROTOCOL_FILE 1
36917_ACEOF
36918
36919 fi
36920else
36921 if test "$wxUSE_FS_INET" = "yes"; then
36922 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36923echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36924 wxUSE_FS_INET="no"
36925 fi
36926fi
36927
36928if test "$wxUSE_URL" = "yes"; then
36929 if test "$wxUSE_PROTOCOL" != "yes"; then
36930 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36931echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36932 wxUSE_URL=no
36933 fi
36934 if test "$wxUSE_URL" = "yes"; then
36935 cat >>confdefs.h <<\_ACEOF
36936#define wxUSE_URL 1
36937_ACEOF
36938
36939 fi
36940fi
36941
36942if test "$wxUSE_FS_INET" = "yes"; then
36943 cat >>confdefs.h <<\_ACEOF
36944#define wxUSE_FS_INET 1
36945_ACEOF
36946
36947fi
36948
36949
36950if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 36951 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 36952
4cb1d3da 36953 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
36954
36955for ac_header in linux/joystick.h
36956do
36957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36958if eval "test \"\${$as_ac_Header+set}\" = set"; then
36959 echo "$as_me:$LINENO: checking for $ac_header" >&5
36960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36961if eval "test \"\${$as_ac_Header+set}\" = set"; then
36962 echo $ECHO_N "(cached) $ECHO_C" >&6
36963fi
36964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36966else
36967 # Is the header compilable?
36968echo "$as_me:$LINENO: checking $ac_header usability" >&5
36969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36970cat >conftest.$ac_ext <<_ACEOF
36971/* confdefs.h. */
36972_ACEOF
36973cat confdefs.h >>conftest.$ac_ext
36974cat >>conftest.$ac_ext <<_ACEOF
36975/* end confdefs.h. */
36976$ac_includes_default
36977#include <$ac_header>
36978_ACEOF
36979rm -f conftest.$ac_objext
36980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36981 (eval $ac_compile) 2>conftest.er1
a848cd7e 36982 ac_status=$?
ac1cb8d3
VS
36983 grep -v '^ *+' conftest.er1 >conftest.err
36984 rm -f conftest.er1
36985 cat conftest.err >&5
a848cd7e
SC
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); } &&
89be85c2
VS
36988 { ac_try='test -z "$ac_c_werror_flag"
36989 || test ! -s conftest.err'
ac1cb8d3
VS
36990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36991 (eval $ac_try) 2>&5
36992 ac_status=$?
36993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36994 (exit $ac_status); }; } &&
36995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36997 (eval $ac_try) 2>&5
36998 ac_status=$?
36999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000 (exit $ac_status); }; }; then
37001 ac_header_compiler=yes
37002else
37003 echo "$as_me: failed program was:" >&5
37004sed 's/^/| /' conftest.$ac_ext >&5
37005
37006ac_header_compiler=no
37007fi
ac1cb8d3 37008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37010echo "${ECHO_T}$ac_header_compiler" >&6
37011
37012# Is the header present?
37013echo "$as_me:$LINENO: checking $ac_header presence" >&5
37014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37015cat >conftest.$ac_ext <<_ACEOF
37016/* confdefs.h. */
37017_ACEOF
37018cat confdefs.h >>conftest.$ac_ext
37019cat >>conftest.$ac_ext <<_ACEOF
37020/* end confdefs.h. */
37021#include <$ac_header>
37022_ACEOF
37023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37025 ac_status=$?
37026 grep -v '^ *+' conftest.er1 >conftest.err
37027 rm -f conftest.er1
37028 cat conftest.err >&5
37029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030 (exit $ac_status); } >/dev/null; then
37031 if test -s conftest.err; then
37032 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37034 else
37035 ac_cpp_err=
37036 fi
37037else
37038 ac_cpp_err=yes
37039fi
37040if test -z "$ac_cpp_err"; then
37041 ac_header_preproc=yes
37042else
37043 echo "$as_me: failed program was:" >&5
37044sed 's/^/| /' conftest.$ac_ext >&5
37045
37046 ac_header_preproc=no
37047fi
37048rm -f conftest.err conftest.$ac_ext
37049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37050echo "${ECHO_T}$ac_header_preproc" >&6
37051
37052# So? What about this header?
ac1cb8d3
VS
37053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37054 yes:no: )
a848cd7e
SC
37055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37059 ac_header_preproc=yes
a848cd7e 37060 ;;
ac1cb8d3 37061 no:yes:* )
a848cd7e
SC
37062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37074 (
37075 cat <<\_ASBOX
ac1cb8d3
VS
37076## ----------------------------------------- ##
37077## Report this to wx-dev@lists.wxwidgets.org ##
37078## ----------------------------------------- ##
a848cd7e
SC
37079_ASBOX
37080 ) |
37081 sed "s/^/$as_me: WARNING: /" >&2
37082 ;;
37083esac
37084echo "$as_me:$LINENO: checking for $ac_header" >&5
37085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37086if eval "test \"\${$as_ac_Header+set}\" = set"; then
37087 echo $ECHO_N "(cached) $ECHO_C" >&6
37088else
ac1cb8d3 37089 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37090fi
37091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37093
37094fi
37095if test `eval echo '${'$as_ac_Header'}'` = yes; then
37096 cat >>confdefs.h <<_ACEOF
37097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37098_ACEOF
37099
37100fi
37101
37102done
37103
37104 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37105 wxUSE_JOYSTICK=no
37106 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37107echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37108 fi
4cb1d3da
RN
37109 else
37110 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
37111 wxUSE_JOYSTICK=no
37112 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37113echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37114 fi
a848cd7e 37115 fi
a848cd7e 37116
4cb1d3da
RN
37117
37118 if test "$wxUSE_JOYSTICK" = "yes"; then
37119 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37120#define wxUSE_JOYSTICK 1
37121_ACEOF
37122
4cb1d3da
RN
37123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37124 fi
a848cd7e
SC
37125 fi
37126fi
37127
37128
37129
37130if test "$wxUSE_FONTMAP" = "yes" ; then
37131 cat >>confdefs.h <<\_ACEOF
37132#define wxUSE_FONTMAP 1
37133_ACEOF
37134
37135fi
37136
37137if test "$wxUSE_UNICODE" = "yes" ; then
37138 cat >>confdefs.h <<\_ACEOF
37139#define wxUSE_UNICODE 1
37140_ACEOF
37141
37142
37143 if test "$USE_WIN32" != 1; then
37144 wxUSE_UNICODE_MSLU=no
37145 fi
37146
37147 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37148 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37149echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37150if test "${ac_cv_lib_unicows_main+set}" = set; then
37151 echo $ECHO_N "(cached) $ECHO_C" >&6
37152else
37153 ac_check_lib_save_LIBS=$LIBS
37154LIBS="-lunicows $LIBS"
37155cat >conftest.$ac_ext <<_ACEOF
37156/* confdefs.h. */
37157_ACEOF
37158cat confdefs.h >>conftest.$ac_ext
37159cat >>conftest.$ac_ext <<_ACEOF
37160/* end confdefs.h. */
37161
37162
37163int
37164main ()
37165{
37166main ();
37167 ;
37168 return 0;
37169}
37170_ACEOF
37171rm -f conftest.$ac_objext conftest$ac_exeext
37172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37173 (eval $ac_link) 2>conftest.er1
a848cd7e 37174 ac_status=$?
ac1cb8d3
VS
37175 grep -v '^ *+' conftest.er1 >conftest.err
37176 rm -f conftest.er1
37177 cat conftest.err >&5
a848cd7e
SC
37178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37179 (exit $ac_status); } &&
89be85c2
VS
37180 { ac_try='test -z "$ac_c_werror_flag"
37181 || test ! -s conftest.err'
ac1cb8d3
VS
37182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37183 (eval $ac_try) 2>&5
37184 ac_status=$?
37185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186 (exit $ac_status); }; } &&
37187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37189 (eval $ac_try) 2>&5
37190 ac_status=$?
37191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192 (exit $ac_status); }; }; then
37193 ac_cv_lib_unicows_main=yes
37194else
37195 echo "$as_me: failed program was:" >&5
37196sed 's/^/| /' conftest.$ac_ext >&5
37197
37198ac_cv_lib_unicows_main=no
37199fi
ac1cb8d3
VS
37200rm -f conftest.err conftest.$ac_objext \
37201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37202LIBS=$ac_check_lib_save_LIBS
37203fi
37204echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37205echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37206if test $ac_cv_lib_unicows_main = yes; then
37207
37208 cat >>confdefs.h <<\_ACEOF
37209#define wxUSE_UNICODE_MSLU 1
37210_ACEOF
37211
37212
37213else
37214
37215 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37216 Applications will only run on Windows NT/2000/XP!" >&5
37217echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37218 Applications will only run on Windows NT/2000/XP!" >&2;}
37219 wxUSE_UNICODE_MSLU=no
37220
37221fi
37222
37223 fi
37224fi
37225
37226if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37227 cat >>confdefs.h <<\_ACEOF
37228#define wxUSE_EXPERIMENTAL_PRINTF 1
37229_ACEOF
37230
37231fi
37232
37233
37234if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37235 cat >>confdefs.h <<\_ACEOF
37236#define wxUSE_POSTSCRIPT 1
37237_ACEOF
37238
37239fi
37240
37241cat >>confdefs.h <<\_ACEOF
37242#define wxUSE_AFM_FOR_POSTSCRIPT 1
37243_ACEOF
37244
37245
37246cat >>confdefs.h <<\_ACEOF
37247#define wxUSE_NORMALIZED_PS_FONTS 1
37248_ACEOF
37249
37250
37251
37252if test "$wxUSE_CONSTRAINTS" = "yes"; then
37253 cat >>confdefs.h <<\_ACEOF
37254#define wxUSE_CONSTRAINTS 1
37255_ACEOF
37256
37257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37258fi
37259
8a7b1113
VZ
37260if test "$wxUSE_MDI" = "yes"; then
37261 cat >>confdefs.h <<\_ACEOF
37262#define wxUSE_MDI 1
37263_ACEOF
37264
37265
37266 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37267 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37268#define wxUSE_MDI_ARCHITECTURE 1
37269_ACEOF
37270
8a7b1113
VZ
37271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37272 fi
a848cd7e
SC
37273fi
37274
37275if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37276 cat >>confdefs.h <<\_ACEOF
37277#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37278_ACEOF
37279
37280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37281 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37283 fi
37284fi
37285
37286if test "$wxUSE_HELP" = "yes"; then
37287 cat >>confdefs.h <<\_ACEOF
37288#define wxUSE_HELP 1
37289_ACEOF
37290
37291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37292
37293 if test "$wxUSE_MSW" = 1; then
37294 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37295 cat >>confdefs.h <<\_ACEOF
37296#define wxUSE_MS_HTML_HELP 1
37297_ACEOF
37298
37299 fi
37300 fi
37301
37302 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37303 if test "$wxUSE_HTML" = "yes"; then
37304 cat >>confdefs.h <<\_ACEOF
37305#define wxUSE_WXHTML_HELP 1
37306_ACEOF
37307
37308 else
37309 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37310echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37311 wxUSE_WXHTML_HELP=no
37312 fi
37313 fi
37314fi
37315
37316if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37317 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37318 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37319echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37320 else
37321 cat >>confdefs.h <<\_ACEOF
37322#define wxUSE_PRINTING_ARCHITECTURE 1
37323_ACEOF
37324
37325 fi
37326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37327fi
37328
37329if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37330 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37331echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37332 { (exit 1); exit 1; }; }
37333fi
37334
37335
37336if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37337 -o "$wxUSE_CLIPBOARD" = "yes" \
37338 -o "$wxUSE_OLE" = "yes" \
37339 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37340
37341for ac_header in ole2.h
37342do
37343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37344if eval "test \"\${$as_ac_Header+set}\" = set"; then
37345 echo "$as_me:$LINENO: checking for $ac_header" >&5
37346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37347if eval "test \"\${$as_ac_Header+set}\" = set"; then
37348 echo $ECHO_N "(cached) $ECHO_C" >&6
37349fi
37350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37352else
37353 # Is the header compilable?
37354echo "$as_me:$LINENO: checking $ac_header usability" >&5
37355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37356cat >conftest.$ac_ext <<_ACEOF
37357/* confdefs.h. */
37358_ACEOF
37359cat confdefs.h >>conftest.$ac_ext
37360cat >>conftest.$ac_ext <<_ACEOF
37361/* end confdefs.h. */
37362$ac_includes_default
37363#include <$ac_header>
37364_ACEOF
37365rm -f conftest.$ac_objext
37366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37367 (eval $ac_compile) 2>conftest.er1
a848cd7e 37368 ac_status=$?
ac1cb8d3
VS
37369 grep -v '^ *+' conftest.er1 >conftest.err
37370 rm -f conftest.er1
37371 cat conftest.err >&5
a848cd7e
SC
37372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37373 (exit $ac_status); } &&
89be85c2
VS
37374 { ac_try='test -z "$ac_c_werror_flag"
37375 || test ! -s conftest.err'
ac1cb8d3
VS
37376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37377 (eval $ac_try) 2>&5
37378 ac_status=$?
37379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380 (exit $ac_status); }; } &&
37381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37383 (eval $ac_try) 2>&5
37384 ac_status=$?
37385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386 (exit $ac_status); }; }; then
37387 ac_header_compiler=yes
37388else
37389 echo "$as_me: failed program was:" >&5
37390sed 's/^/| /' conftest.$ac_ext >&5
37391
37392ac_header_compiler=no
37393fi
ac1cb8d3 37394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37395echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37396echo "${ECHO_T}$ac_header_compiler" >&6
37397
37398# Is the header present?
37399echo "$as_me:$LINENO: checking $ac_header presence" >&5
37400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37401cat >conftest.$ac_ext <<_ACEOF
37402/* confdefs.h. */
37403_ACEOF
37404cat confdefs.h >>conftest.$ac_ext
37405cat >>conftest.$ac_ext <<_ACEOF
37406/* end confdefs.h. */
37407#include <$ac_header>
37408_ACEOF
37409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37411 ac_status=$?
37412 grep -v '^ *+' conftest.er1 >conftest.err
37413 rm -f conftest.er1
37414 cat conftest.err >&5
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); } >/dev/null; then
37417 if test -s conftest.err; then
37418 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37420 else
37421 ac_cpp_err=
37422 fi
37423else
37424 ac_cpp_err=yes
37425fi
37426if test -z "$ac_cpp_err"; then
37427 ac_header_preproc=yes
37428else
37429 echo "$as_me: failed program was:" >&5
37430sed 's/^/| /' conftest.$ac_ext >&5
37431
37432 ac_header_preproc=no
37433fi
37434rm -f conftest.err conftest.$ac_ext
37435echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37436echo "${ECHO_T}$ac_header_preproc" >&6
37437
37438# So? What about this header?
ac1cb8d3
VS
37439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37440 yes:no: )
a848cd7e
SC
37441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37445 ac_header_preproc=yes
a848cd7e 37446 ;;
ac1cb8d3 37447 no:yes:* )
a848cd7e
SC
37448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37460 (
37461 cat <<\_ASBOX
ac1cb8d3
VS
37462## ----------------------------------------- ##
37463## Report this to wx-dev@lists.wxwidgets.org ##
37464## ----------------------------------------- ##
a848cd7e
SC
37465_ASBOX
37466 ) |
37467 sed "s/^/$as_me: WARNING: /" >&2
37468 ;;
37469esac
37470echo "$as_me:$LINENO: checking for $ac_header" >&5
37471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37472if eval "test \"\${$as_ac_Header+set}\" = set"; then
37473 echo $ECHO_N "(cached) $ECHO_C" >&6
37474else
ac1cb8d3 37475 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37476fi
37477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37479
37480fi
37481if test `eval echo '${'$as_ac_Header'}'` = yes; then
37482 cat >>confdefs.h <<_ACEOF
37483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37484_ACEOF
37485
37486fi
37487
37488done
37489
37490
37491 if test "$ac_cv_header_ole2_h" = "yes" ; then
37492 if test "$GCC" = yes ; then
37493
37494
37495 ac_ext=cc
37496ac_cpp='$CXXCPP $CPPFLAGS'
37497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37500
37501
37502 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37503echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37504 cat >conftest.$ac_ext <<_ACEOF
37505/* confdefs.h. */
37506_ACEOF
37507cat confdefs.h >>conftest.$ac_ext
37508cat >>conftest.$ac_ext <<_ACEOF
37509/* end confdefs.h. */
37510#include <windows.h>
37511 #include <ole2.h>
37512int
37513main ()
37514{
37515
37516 ;
37517 return 0;
37518}
37519_ACEOF
37520rm -f conftest.$ac_objext
37521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37522 (eval $ac_compile) 2>conftest.er1
a848cd7e 37523 ac_status=$?
ac1cb8d3
VS
37524 grep -v '^ *+' conftest.er1 >conftest.err
37525 rm -f conftest.er1
37526 cat conftest.err >&5
a848cd7e
SC
37527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37528 (exit $ac_status); } &&
89be85c2
VS
37529 { ac_try='test -z "$ac_cxx_werror_flag"
37530 || test ! -s conftest.err'
ac1cb8d3
VS
37531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37532 (eval $ac_try) 2>&5
37533 ac_status=$?
37534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535 (exit $ac_status); }; } &&
37536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538 (eval $ac_try) 2>&5
37539 ac_status=$?
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); }; }; then
37542 echo "$as_me:$LINENO: result: no" >&5
37543echo "${ECHO_T}no" >&6
37544else
37545 echo "$as_me: failed program was:" >&5
37546sed 's/^/| /' conftest.$ac_ext >&5
37547
37548echo "$as_me:$LINENO: result: yes" >&5
37549echo "${ECHO_T}yes" >&6
37550 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37551fi
ac1cb8d3 37552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37553 ac_ext=c
37554ac_cpp='$CPP $CPPFLAGS'
37555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37557ac_compiler_gnu=$ac_cv_c_compiler_gnu
37558
a848cd7e
SC
37559 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37560 if test "$wxUSE_OLE" = "yes" ; then
37561 cat >>confdefs.h <<\_ACEOF
37562#define wxUSE_OLE 1
37563_ACEOF
37564
37565 fi
37566 fi
37567
37568 if test "$wxUSE_DATAOBJ" = "yes" ; then
37569 cat >>confdefs.h <<\_ACEOF
37570#define wxUSE_DATAOBJ 1
37571_ACEOF
37572
37573 fi
37574 else
37575 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37576echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37577
37578 wxUSE_CLIPBOARD=no
37579 wxUSE_DRAG_AND_DROP=no
37580 wxUSE_DATAOBJ=no
37581 wxUSE_OLE=no
37582 fi
37583
37584 if test "$wxUSE_METAFILE" = "yes"; then
37585 cat >>confdefs.h <<\_ACEOF
37586#define wxUSE_METAFILE 1
37587_ACEOF
37588
37589
37590 cat >>confdefs.h <<\_ACEOF
37591#define wxUSE_ENH_METAFILE 1
37592_ACEOF
37593
37594 fi
37595fi
37596
37597if test "$wxUSE_IPC" = "yes"; then
37598 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37599 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37600echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37601 fi
37602
37603 cat >>confdefs.h <<\_ACEOF
37604#define wxUSE_IPC 1
37605_ACEOF
37606
37607fi
37608
37609if test "$wxUSE_CLIPBOARD" = "yes"; then
37610 if test "$wxUSE_MGL" = 1; then
37611 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37612echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37613 wxUSE_CLIPBOARD=no
37614 fi
37615
37616 if test "$wxUSE_CLIPBOARD" = "yes"; then
37617 cat >>confdefs.h <<\_ACEOF
37618#define wxUSE_CLIPBOARD 1
37619_ACEOF
37620
37621
37622 cat >>confdefs.h <<\_ACEOF
37623#define wxUSE_DATAOBJ 1
37624_ACEOF
37625
37626 fi
37627fi
37628
37629if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37630 if test "$wxUSE_GTK" = 1; then
37631 if test "$WXGTK12" != 1; then
37632 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37633echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37634 wxUSE_DRAG_AND_DROP=no
37635 fi
37636 fi
37637
37638 if test "$wxUSE_MOTIF" = 1; then
37639 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37640echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37641 wxUSE_DRAG_AND_DROP=no
37642 fi
37643
37644 if test "$wxUSE_X11" = 1; then
37645 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37646echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37647 wxUSE_DRAG_AND_DROP=no
37648 fi
37649
37650 if test "$wxUSE_MGL" = 1; then
37651 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37652echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37653 wxUSE_DRAG_AND_DROP=no
37654 fi
37655
37656 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37657 cat >>confdefs.h <<\_ACEOF
37658#define wxUSE_DRAG_AND_DROP 1
37659_ACEOF
37660
37661 fi
37662
37663fi
37664
37665if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37667fi
37668
37669if test "$wxUSE_SPLINES" = "yes" ; then
37670 cat >>confdefs.h <<\_ACEOF
37671#define wxUSE_SPLINES 1
37672_ACEOF
37673
37674fi
37675
37676
37677USES_CONTROLS=0
37678if test "$wxUSE_CONTROLS" = "yes"; then
37679 USES_CONTROLS=1
37680fi
37681
37682if test "$wxUSE_ACCEL" = "yes"; then
37683 cat >>confdefs.h <<\_ACEOF
37684#define wxUSE_ACCEL 1
37685_ACEOF
37686
37687 USES_CONTROLS=1
37688fi
37689
37690if test "$wxUSE_BUTTON" = "yes"; then
37691 cat >>confdefs.h <<\_ACEOF
37692#define wxUSE_BUTTON 1
37693_ACEOF
37694
37695 USES_CONTROLS=1
37696fi
37697
37698if test "$wxUSE_BMPBUTTON" = "yes"; then
37699 cat >>confdefs.h <<\_ACEOF
37700#define wxUSE_BMPBUTTON 1
37701_ACEOF
37702
37703 USES_CONTROLS=1
37704fi
37705
37706if test "$wxUSE_CALCTRL" = "yes"; then
37707 cat >>confdefs.h <<\_ACEOF
37708#define wxUSE_CALENDARCTRL 1
37709_ACEOF
37710
37711 USES_CONTROLS=1
37712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37713fi
37714
37715if test "$wxUSE_CARET" = "yes"; then
37716 cat >>confdefs.h <<\_ACEOF
37717#define wxUSE_CARET 1
37718_ACEOF
37719
37720 USES_CONTROLS=1
37721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37722fi
37723
37724if test "$wxUSE_COMBOBOX" = "yes"; then
37725 cat >>confdefs.h <<\_ACEOF
37726#define wxUSE_COMBOBOX 1
37727_ACEOF
37728
37729 USES_CONTROLS=1
37730fi
37731
37732if test "$wxUSE_CHOICE" = "yes"; then
37733 cat >>confdefs.h <<\_ACEOF
37734#define wxUSE_CHOICE 1
37735_ACEOF
37736
37737 USES_CONTROLS=1
37738fi
37739
92bbdbcd
WS
37740if test "$wxUSE_CHOICEBOOK" = "yes"; then
37741 cat >>confdefs.h <<\_ACEOF
37742#define wxUSE_CHOICEBOOK 1
37743_ACEOF
37744
37745 USES_CONTROLS=1
37746fi
37747
a848cd7e
SC
37748if test "$wxUSE_CHECKBOX" = "yes"; then
37749 cat >>confdefs.h <<\_ACEOF
37750#define wxUSE_CHECKBOX 1
37751_ACEOF
37752
37753 USES_CONTROLS=1
37754fi
37755
37756if test "$wxUSE_CHECKLST" = "yes"; then
37757 cat >>confdefs.h <<\_ACEOF
37758#define wxUSE_CHECKLISTBOX 1
37759_ACEOF
37760
37761 USES_CONTROLS=1
37762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37763fi
37764
da98e9be
VZ
37765if test "$wxUSE_DATEPICKCTRL" = "yes"; then
37766 cat >>confdefs.h <<\_ACEOF
37767#define wxUSE_DATEPICKCTRL 1
37768_ACEOF
37769
37770 USES_CONTROLS=1
37771fi
37772
a848cd7e
SC
37773if test "$wxUSE_DISPLAY" = "yes"; then
37774 cat >>confdefs.h <<\_ACEOF
37775#define wxUSE_DISPLAY 1
37776_ACEOF
37777
37778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37779fi
37780
37781if test "$wxUSE_GAUGE" = "yes"; then
37782 cat >>confdefs.h <<\_ACEOF
37783#define wxUSE_GAUGE 1
37784_ACEOF
37785
37786 USES_CONTROLS=1
37787fi
37788
37789if test "$wxUSE_GRID" = "yes"; then
37790 cat >>confdefs.h <<\_ACEOF
37791#define wxUSE_GRID 1
37792_ACEOF
37793
37794 USES_CONTROLS=1
37795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37796fi
37797
37798if test "$wxUSE_IMAGLIST" = "yes"; then
37799 cat >>confdefs.h <<\_ACEOF
37800#define wxUSE_IMAGLIST 1
37801_ACEOF
37802
37803fi
37804
37805if test "$wxUSE_LISTBOOK" = "yes"; then
37806 cat >>confdefs.h <<\_ACEOF
37807#define wxUSE_LISTBOOK 1
37808_ACEOF
37809
37810 USES_CONTROLS=1
37811fi
37812
37813if test "$wxUSE_LISTBOX" = "yes"; then
37814 cat >>confdefs.h <<\_ACEOF
37815#define wxUSE_LISTBOX 1
37816_ACEOF
37817
37818 USES_CONTROLS=1
37819fi
37820
37821if test "$wxUSE_LISTCTRL" = "yes"; then
37822 if test "$wxUSE_IMAGLIST" = "yes"; then
37823 cat >>confdefs.h <<\_ACEOF
37824#define wxUSE_LISTCTRL 1
37825_ACEOF
37826
37827 USES_CONTROLS=1
37828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37829 else
37830 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37831echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37832 fi
37833fi
37834
37835if test "$wxUSE_NOTEBOOK" = "yes"; then
37836 cat >>confdefs.h <<\_ACEOF
37837#define wxUSE_NOTEBOOK 1
37838_ACEOF
37839
37840 USES_CONTROLS=1
37841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37842fi
37843
37844
37845if test "$wxUSE_RADIOBOX" = "yes"; then
37846 cat >>confdefs.h <<\_ACEOF
37847#define wxUSE_RADIOBOX 1
37848_ACEOF
37849
37850 USES_CONTROLS=1
37851fi
37852
37853if test "$wxUSE_RADIOBTN" = "yes"; then
37854 cat >>confdefs.h <<\_ACEOF
37855#define wxUSE_RADIOBTN 1
37856_ACEOF
37857
37858 USES_CONTROLS=1
37859fi
37860
37861if test "$wxUSE_SASH" = "yes"; then
37862 cat >>confdefs.h <<\_ACEOF
37863#define wxUSE_SASH 1
37864_ACEOF
37865
37866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37867fi
37868
37869if test "$wxUSE_SCROLLBAR" = "yes"; then
37870 cat >>confdefs.h <<\_ACEOF
37871#define wxUSE_SCROLLBAR 1
37872_ACEOF
37873
37874 USES_CONTROLS=1
37875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37876fi
37877
37878if test "$wxUSE_SLIDER" = "yes"; then
37879 cat >>confdefs.h <<\_ACEOF
37880#define wxUSE_SLIDER 1
37881_ACEOF
37882
37883 USES_CONTROLS=1
37884fi
37885
37886if test "$wxUSE_SPINBTN" = "yes"; then
37887 cat >>confdefs.h <<\_ACEOF
37888#define wxUSE_SPINBTN 1
37889_ACEOF
37890
37891 USES_CONTROLS=1
37892fi
37893
37894if test "$wxUSE_SPINCTRL" = "yes"; then
37895 cat >>confdefs.h <<\_ACEOF
37896#define wxUSE_SPINCTRL 1
37897_ACEOF
37898
37899 USES_CONTROLS=1
37900fi
37901
37902if test "$wxUSE_SPLITTER" = "yes"; then
37903 cat >>confdefs.h <<\_ACEOF
37904#define wxUSE_SPLITTER 1
37905_ACEOF
37906
37907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37908fi
37909
37910if test "$wxUSE_STATBMP" = "yes"; then
37911 cat >>confdefs.h <<\_ACEOF
37912#define wxUSE_STATBMP 1
37913_ACEOF
37914
37915 USES_CONTROLS=1
37916fi
37917
37918if test "$wxUSE_STATBOX" = "yes"; then
37919 cat >>confdefs.h <<\_ACEOF
37920#define wxUSE_STATBOX 1
37921_ACEOF
37922
37923 USES_CONTROLS=1
37924fi
37925
37926if test "$wxUSE_STATTEXT" = "yes"; then
37927 cat >>confdefs.h <<\_ACEOF
37928#define wxUSE_STATTEXT 1
37929_ACEOF
37930
37931 USES_CONTROLS=1
37932fi
37933
37934if test "$wxUSE_STATLINE" = "yes"; then
37935 cat >>confdefs.h <<\_ACEOF
37936#define wxUSE_STATLINE 1
37937_ACEOF
37938
37939 USES_CONTROLS=1
37940fi
37941
37942if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
37943 cat >>confdefs.h <<\_ACEOF
37944#define wxUSE_NATIVE_STATUSBAR 1
37945_ACEOF
37946
a848cd7e
SC
37947 cat >>confdefs.h <<\_ACEOF
37948#define wxUSE_STATUSBAR 1
37949_ACEOF
37950
37951 USES_CONTROLS=1
37952
37953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37954fi
37955
37956if test "$wxUSE_TABDIALOG" = "yes"; then
37957 cat >>confdefs.h <<\_ACEOF
37958#define wxUSE_TAB_DIALOG 1
37959_ACEOF
37960
a848cd7e
SC
37961fi
37962
37963if test "$wxUSE_TEXTCTRL" = "yes"; then
37964 cat >>confdefs.h <<\_ACEOF
37965#define wxUSE_TEXTCTRL 1
37966_ACEOF
37967
37968 USES_CONTROLS=1
37969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37970fi
37971
37972if test "$wxUSE_TOGGLEBTN" = "yes"; then
37973 if test "$wxUSE_COCOA" = 1 ; then
37974 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37975echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37976 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37977 else
37978 if test "$wxUSE_PM" = 1; then
37979 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37980echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37981 wxUSE_TOGGLEBTN=no
37982 fi
a848cd7e
SC
37983 fi
37984 if test "$wxUSE_UNIVERSAL" = "yes"; then
37985 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37986echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37987 wxUSE_TOGGLEBTN=no
37988 fi
37989
37990 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37991 cat >>confdefs.h <<\_ACEOF
37992#define wxUSE_TOGGLEBTN 1
37993_ACEOF
37994
37995 USES_CONTROLS=1
37996 fi
37997fi
37998
37999if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
38000 cat >>confdefs.h <<\_ACEOF
38001#define wxUSE_TOOLBAR_SIMPLE 1
38002_ACEOF
38003
38004 wxUSE_TOOLBAR="yes"
38005 USES_CONTROLS=1
38006fi
38007
38008if test "$wxUSE_TOOLBAR" = "yes"; then
38009 cat >>confdefs.h <<\_ACEOF
38010#define wxUSE_TOOLBAR 1
38011_ACEOF
38012
38013 USES_CONTROLS=1
38014
38015 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
38016 wxUSE_TOOLBAR_NATIVE="yes"
38017 fi
38018
38019 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
38020 cat >>confdefs.h <<\_ACEOF
38021#define wxUSE_TOOLBAR_NATIVE 1
38022_ACEOF
38023
38024 USES_CONTROLS=1
38025 fi
38026
38027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
38028fi
38029
38030if test "$wxUSE_TOOLTIPS" = "yes"; then
38031 if test "$wxUSE_MOTIF" = 1; then
38032 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
38033echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
38034 else
38035 if test "$wxUSE_UNIVERSAL" = "yes"; then
38036 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
38037echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
38038 else
38039 cat >>confdefs.h <<\_ACEOF
38040#define wxUSE_TOOLTIPS 1
38041_ACEOF
38042
38043 fi
38044 fi
38045fi
38046
38047if test "$wxUSE_TREECTRL" = "yes"; then
38048 if test "$wxUSE_IMAGLIST" = "yes"; then
38049 cat >>confdefs.h <<\_ACEOF
38050#define wxUSE_TREECTRL 1
38051_ACEOF
38052
38053 USES_CONTROLS=1
38054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
38055 else
38056 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
38057echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
38058 fi
38059fi
38060
38061if test "$wxUSE_POPUPWIN" = "yes"; then
38062 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38063 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
38064echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
38065 else
38066 if test "$wxUSE_PM" = 1; then
38067 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
38068echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
38069 else
38070 cat >>confdefs.h <<\_ACEOF
38071#define wxUSE_POPUPWIN 1
38072_ACEOF
38073
38074
38075 USES_CONTROLS=1
38076 fi
38077 fi
38078fi
38079
0dcd06dd 38080if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
38081 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38082 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
38083echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
38084 else
38085 cat >>confdefs.h <<\_ACEOF
38086#define wxUSE_DIALUP_MANAGER 1
38087_ACEOF
38088
38089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
38090 fi
38091fi
38092
a848cd7e
SC
38093if test "$wxUSE_TIPWINDOW" = "yes"; then
38094 if test "$wxUSE_PM" = 1; then
38095 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38096echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38097 else
38098 cat >>confdefs.h <<\_ACEOF
38099#define wxUSE_TIPWINDOW 1
38100_ACEOF
38101
38102 fi
38103fi
38104
38105if test "$USES_CONTROLS" = 1; then
38106 cat >>confdefs.h <<\_ACEOF
38107#define wxUSE_CONTROLS 1
38108_ACEOF
38109
38110fi
38111
38112
38113if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38114 cat >>confdefs.h <<\_ACEOF
38115#define wxUSE_ACCESSIBILITY 1
38116_ACEOF
38117
38118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38119fi
38120
38121if test "$wxUSE_DRAGIMAGE" = "yes"; then
38122 cat >>confdefs.h <<\_ACEOF
38123#define wxUSE_DRAGIMAGE 1
38124_ACEOF
38125
38126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38127fi
38128
38129if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
38130 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38131 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
38132echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
38133 else
38134 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38135#define wxUSE_EXCEPTIONS 1
38136_ACEOF
38137
07bea8f0
VS
38138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
38139 fi
a848cd7e
SC
38140fi
38141
38142USE_HTML=0
38143if test "$wxUSE_HTML" = "yes"; then
38144 cat >>confdefs.h <<\_ACEOF
38145#define wxUSE_HTML 1
38146_ACEOF
38147
38148 USE_HTML=1
38149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38150 if test "$wxUSE_MAC" = 1; then
38151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38152 fi
a848cd7e 38153fi
646b6ec1 38154if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 38155 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
38156 old_CPPFLAGS="$CPPFLAGS"
38157 CPPFLAGS="$CPPFLAGS -x objective-c++"
38158 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
38159echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
38160if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
38161 echo $ECHO_N "(cached) $ECHO_C" >&6
38162else
38163 cat >conftest.$ac_ext <<_ACEOF
38164/* confdefs.h. */
38165_ACEOF
38166cat confdefs.h >>conftest.$ac_ext
38167cat >>conftest.$ac_ext <<_ACEOF
38168/* end confdefs.h. */
38169#include <Carbon/Carbon.h>
38170
38171#include <WebKit/HIWebView.h>
38172_ACEOF
38173rm -f conftest.$ac_objext
38174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38175 (eval $ac_compile) 2>conftest.er1
38176 ac_status=$?
38177 grep -v '^ *+' conftest.er1 >conftest.err
38178 rm -f conftest.er1
38179 cat conftest.err >&5
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); } &&
89be85c2
VS
38182 { ac_try='test -z "$ac_c_werror_flag"
38183 || test ! -s conftest.err'
07bea8f0
VS
38184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185 (eval $ac_try) 2>&5
38186 ac_status=$?
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); }; } &&
38189 { ac_try='test -s conftest.$ac_objext'
38190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38191 (eval $ac_try) 2>&5
38192 ac_status=$?
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); }; }; then
38195 ac_cv_header_WebKit_HIWebView_h=yes
38196else
38197 echo "$as_me: failed program was:" >&5
38198sed 's/^/| /' conftest.$ac_ext >&5
38199
38200ac_cv_header_WebKit_HIWebView_h=no
38201fi
38202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38203fi
38204echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
38205echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
38206if test $ac_cv_header_WebKit_HIWebView_h = yes; then
38207
38208 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
38209#define wxUSE_WEBKIT 1
38210_ACEOF
38211
07bea8f0
VS
38212 WEBKIT_LINK="-framework WebKit"
38213
38214else
38215
38216 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38217echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38218 wxUSE_WEBKIT=no
38219
646b6ec1
VS
38220fi
38221
07bea8f0
VS
38222
38223 CPPFLAGS="$old_CPPFLAGS"
38224 elif test "$wxUSE_COCOA" = 1; then
38225 cat >>confdefs.h <<\_ACEOF
38226#define wxUSE_WEBKIT 1
38227_ACEOF
38228
38229 else
38230 wxUSE_WEBKIT=no
38231 fi
38232fi
38233
9a8f0513
VS
38234USE_XRC=0
38235if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
38236 if test "$wxUSE_XML" != "yes"; then
38237 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38238echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38239 wxUSE_XRC=no
38240 else
38241 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
38242#define wxUSE_XRC 1
38243_ACEOF
38244
d2ebf0b7
VS
38245 USE_XRC=1
38246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38247 fi
9a8f0513 38248fi
07bea8f0 38249
a848cd7e
SC
38250if test "$wxUSE_MENUS" = "yes"; then
38251 cat >>confdefs.h <<\_ACEOF
38252#define wxUSE_MENUS 1
38253_ACEOF
38254
38255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38256fi
38257
38258if test "$wxUSE_METAFILE" = "yes"; then
38259 cat >>confdefs.h <<\_ACEOF
38260#define wxUSE_METAFILE 1
38261_ACEOF
38262
38263fi
38264
38265if test "$wxUSE_MIMETYPE" = "yes"; then
38266 cat >>confdefs.h <<\_ACEOF
38267#define wxUSE_MIMETYPE 1
38268_ACEOF
38269
38270fi
38271
38272if test "$wxUSE_MINIFRAME" = "yes"; then
38273 cat >>confdefs.h <<\_ACEOF
38274#define wxUSE_MINIFRAME 1
38275_ACEOF
38276
38277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38278fi
38279
38280if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38281 cat >>confdefs.h <<\_ACEOF
38282#define wxUSE_SYSTEM_OPTIONS 1
38283_ACEOF
38284
38285 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38286 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38288 fi
38289fi
38290
38291
38292if test "$wxUSE_VALIDATORS" = "yes"; then
38293 cat >>confdefs.h <<\_ACEOF
38294#define wxUSE_VALIDATORS 1
38295_ACEOF
38296
38297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38298fi
38299
38300if test "$wxUSE_PALETTE" = "yes" ; then
38301 cat >>confdefs.h <<\_ACEOF
38302#define wxUSE_PALETTE 1
38303_ACEOF
38304
38305fi
38306
38307if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38308 LIBS=" -lunicows $LIBS"
38309fi
38310
38311
38312if test "$wxUSE_IMAGE" = "yes" ; then
38313 cat >>confdefs.h <<\_ACEOF
38314#define wxUSE_IMAGE 1
38315_ACEOF
38316
38317
38318 if test "$wxUSE_GIF" = "yes" ; then
38319 cat >>confdefs.h <<\_ACEOF
38320#define wxUSE_GIF 1
38321_ACEOF
38322
38323 fi
38324
38325 if test "$wxUSE_PCX" = "yes" ; then
38326 cat >>confdefs.h <<\_ACEOF
38327#define wxUSE_PCX 1
38328_ACEOF
38329
38330 fi
38331
38332 if test "$wxUSE_IFF" = "yes" ; then
38333 cat >>confdefs.h <<\_ACEOF
38334#define wxUSE_IFF 1
38335_ACEOF
38336
38337 fi
38338
38339 if test "$wxUSE_PNM" = "yes" ; then
38340 cat >>confdefs.h <<\_ACEOF
38341#define wxUSE_PNM 1
38342_ACEOF
38343
38344 fi
38345
38346 if test "$wxUSE_XPM" = "yes" ; then
38347 cat >>confdefs.h <<\_ACEOF
38348#define wxUSE_XPM 1
38349_ACEOF
38350
38351 fi
38352
38353 if test "$wxUSE_ICO_CUR" = "yes" ; then
38354 cat >>confdefs.h <<\_ACEOF
38355#define wxUSE_ICO_CUR 1
38356_ACEOF
38357
38358 fi
38359fi
38360
38361
38362if test "$wxUSE_CHOICEDLG" = "yes"; then
38363 cat >>confdefs.h <<\_ACEOF
38364#define wxUSE_CHOICEDLG 1
38365_ACEOF
38366
38367fi
38368
38369if test "$wxUSE_COLOURDLG" = "yes"; then
38370 cat >>confdefs.h <<\_ACEOF
38371#define wxUSE_COLOURDLG 1
38372_ACEOF
38373
38374fi
38375
38376if test "$wxUSE_FILEDLG" = "yes"; then
38377 cat >>confdefs.h <<\_ACEOF
38378#define wxUSE_FILEDLG 1
38379_ACEOF
38380
38381fi
38382
38383if test "$wxUSE_FINDREPLDLG" = "yes"; then
38384 cat >>confdefs.h <<\_ACEOF
38385#define wxUSE_FINDREPLDLG 1
38386_ACEOF
38387
38388fi
38389
38390if test "$wxUSE_FONTDLG" = "yes"; then
38391 cat >>confdefs.h <<\_ACEOF
38392#define wxUSE_FONTDLG 1
38393_ACEOF
38394
38395fi
38396
38397if test "$wxUSE_DIRDLG" = "yes"; then
38398 if test "$wxUSE_TREECTRL" != "yes"; then
38399 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38400echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38401 else
38402 cat >>confdefs.h <<\_ACEOF
38403#define wxUSE_DIRDLG 1
38404_ACEOF
38405
38406 fi
38407fi
38408
38409if test "$wxUSE_MSGDLG" = "yes"; then
38410 cat >>confdefs.h <<\_ACEOF
38411#define wxUSE_MSGDLG 1
38412_ACEOF
38413
38414fi
38415
38416if test "$wxUSE_NUMBERDLG" = "yes"; then
38417 cat >>confdefs.h <<\_ACEOF
38418#define wxUSE_NUMBERDLG 1
38419_ACEOF
38420
38421fi
38422
38423if test "$wxUSE_PROGRESSDLG" = "yes"; then
38424 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38425 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38426echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38427 else
38428 cat >>confdefs.h <<\_ACEOF
38429#define wxUSE_PROGRESSDLG 1
38430_ACEOF
38431
38432 fi
38433fi
38434
38435if test "$wxUSE_SPLASH" = "yes"; then
38436 cat >>confdefs.h <<\_ACEOF
38437#define wxUSE_SPLASH 1
38438_ACEOF
38439
2057db16 38440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38441fi
38442
38443if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38444 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38445 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38446echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38447 else
38448 cat >>confdefs.h <<\_ACEOF
38449#define wxUSE_STARTUP_TIPS 1
38450_ACEOF
38451
38452 fi
38453fi
38454
38455if test "$wxUSE_TEXTDLG" = "yes"; then
38456 cat >>confdefs.h <<\_ACEOF
38457#define wxUSE_TEXTDLG 1
38458_ACEOF
38459
38460fi
38461
38462if test "$wxUSE_WIZARDDLG" = "yes"; then
38463 cat >>confdefs.h <<\_ACEOF
38464#define wxUSE_WIZARDDLG 1
38465_ACEOF
38466
38467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38468fi
38469
38470
ce756cb0
RN
38471if test "$wxUSE_MEDIACTRL" = "yes"; then
38472 if test "$wxUSE_MSW" = 1; then
38473 wxUSE_DIRECTSHOW="yes"
38474
38475for ac_header in dshow.h
38476do
38477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38478echo "$as_me:$LINENO: checking for $ac_header" >&5
38479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38480if eval "test \"\${$as_ac_Header+set}\" = set"; then
38481 echo $ECHO_N "(cached) $ECHO_C" >&6
38482else
38483 cat >conftest.$ac_ext <<_ACEOF
38484/* confdefs.h. */
38485_ACEOF
38486cat confdefs.h >>conftest.$ac_ext
38487cat >>conftest.$ac_ext <<_ACEOF
38488/* end confdefs.h. */
38489#include <windows.h>
38490
38491#include <$ac_header>
38492_ACEOF
38493rm -f conftest.$ac_objext
38494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38495 (eval $ac_compile) 2>conftest.er1
38496 ac_status=$?
38497 grep -v '^ *+' conftest.er1 >conftest.err
38498 rm -f conftest.er1
38499 cat conftest.err >&5
38500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38501 (exit $ac_status); } &&
38502 { ac_try='test -z "$ac_c_werror_flag"
38503 || test ! -s conftest.err'
38504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38505 (eval $ac_try) 2>&5
38506 ac_status=$?
38507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38508 (exit $ac_status); }; } &&
38509 { ac_try='test -s conftest.$ac_objext'
38510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38511 (eval $ac_try) 2>&5
38512 ac_status=$?
38513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); }; }; then
38515 eval "$as_ac_Header=yes"
38516else
38517 echo "$as_me: failed program was:" >&5
38518sed 's/^/| /' conftest.$ac_ext >&5
38519
38520eval "$as_ac_Header=no"
38521fi
38522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38523fi
38524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38526if test `eval echo '${'$as_ac_Header'}'` = yes; then
38527 cat >>confdefs.h <<_ACEOF
38528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38529_ACEOF
38530
38531else
38532
38533 wxUSE_DIRECTSHOW="no"
38534 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
38535echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
38536
38537fi
38538
38539done
38540
38541
38542 if test "$wxUSE_DIRECTSHOW" = "yes"; then
38543 cat >>confdefs.h <<\_ACEOF
38544#define wxUSE_DIRECTSHOW 1
38545_ACEOF
38546
38547 LIBS="$LIBS -lstrmiids"
38548 fi
38549 fi
38550
38551 if test "$wxUSE_GTK" = 1; then
38552 wxUSE_GSTREAMER="yes"
38553
ce756cb0 38554
dae87f93 38555 succeeded=no
ce756cb0 38556
dae87f93
RN
38557 if test -z "$PKG_CONFIG"; then
38558 # Extract the first word of "pkg-config", so it can be a program name with args.
38559set dummy pkg-config; ac_word=$2
38560echo "$as_me:$LINENO: checking for $ac_word" >&5
38561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38562if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38563 echo $ECHO_N "(cached) $ECHO_C" >&6
38564else
38565 case $PKG_CONFIG in
38566 [\\/]* | ?:[\\/]*)
38567 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38568 ;;
38569 *)
38570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38571for as_dir in $PATH
38572do
38573 IFS=$as_save_IFS
38574 test -z "$as_dir" && as_dir=.
38575 for ac_exec_ext in '' $ac_executable_extensions; do
38576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38577 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38579 break 2
38580 fi
38581done
38582done
38583
38584 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38585 ;;
38586esac
38587fi
38588PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38589
38590if test -n "$PKG_CONFIG"; then
38591 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
38592echo "${ECHO_T}$PKG_CONFIG" >&6
38593else
38594 echo "$as_me:$LINENO: result: no" >&5
38595echo "${ECHO_T}no" >&6
38596fi
38597
38598 fi
38599
38600 if test "$PKG_CONFIG" = "no" ; then
38601 echo "*** The pkg-config script could not be found. Make sure it is"
38602 echo "*** in your path, or set the PKG_CONFIG environment variable"
38603 echo "*** to the full path to pkg-config."
38604 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
38605 else
38606 PKG_CONFIG_MIN_VERSION=0.9.0
38607 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
38608 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
38609echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
38610
38611 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
38612 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 38613echo "${ECHO_T}yes" >&6
dae87f93 38614 succeeded=yes
ce756cb0 38615
dae87f93
RN
38616 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
38617echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
38618 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
38619 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
38620echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
38621
38622 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
38623echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
38624 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
38625 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
38626echo "${ECHO_T}$GSTREAMER_LIBS" >&6
38627 else
38628 GSTREAMER_CFLAGS=""
38629 GSTREAMER_LIBS=""
38630 ## If we have a custom action on failure, don't print errors, but
38631 ## do set a variable so people can do so.
38632 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 38633
dae87f93
RN
38634 fi
38635
38636
38637
38638 else
38639 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
38640 echo "*** See http://www.freedesktop.org/software/pkgconfig"
38641 fi
38642 fi
38643
38644 if test $succeeded = yes; then
38645
38646 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
38647 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 38648
ce756cb0 38649 else
dae87f93
RN
38650
38651 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
38652echo "$as_me: WARNING: GStreamer installation not found" >&2;}
38653 wxUSE_GSTREAMER="no"
38654
38655 fi
38656
38657
38658
38659
38660
38661 if test "x$GST_INSPECT" == "x"; then
38662 # Extract the first word of "gst-inspect", so it can be a program name with args.
38663set dummy gst-inspect; ac_word=$2
38664echo "$as_me:$LINENO: checking for $ac_word" >&5
38665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38666if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
38667 echo $ECHO_N "(cached) $ECHO_C" >&6
38668else
38669 if test -n "$GST_INSPECT"; then
38670 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
38671else
38672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38673for as_dir in $PATH
38674do
38675 IFS=$as_save_IFS
38676 test -z "$as_dir" && as_dir=.
38677 for ac_exec_ext in '' $ac_executable_extensions; do
38678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38679 ac_cv_prog_GST_INSPECT="gst-inspect"
38680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38681 break 2
ce756cb0 38682 fi
dae87f93
RN
38683done
38684done
38685
38686fi
38687fi
38688GST_INSPECT=$ac_cv_prog_GST_INSPECT
38689if test -n "$GST_INSPECT"; then
38690 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
38691echo "${ECHO_T}$GST_INSPECT" >&6
38692else
38693 echo "$as_me:$LINENO: result: no" >&5
38694echo "${ECHO_T}no" >&6
38695fi
38696
38697 fi
38698
38699 if test "x$GST_INSPECT" != "x"; then
38700 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
38701echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
38702 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
38703 echo "$as_me:$LINENO: result: found." >&5
38704echo "${ECHO_T}found." >&6
ce756cb0 38705
ce756cb0 38706 else
dae87f93
RN
38707 echo "$as_me:$LINENO: result: not found." >&5
38708echo "${ECHO_T}not found." >&6
38709
38710 wxUSE_GSTREAMER="no"
38711 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
38712echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
38713
38714 fi
38715 fi
38716
38717
38718 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
38719echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
38720if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
38721 echo $ECHO_N "(cached) $ECHO_C" >&6
38722else
38723 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
38724/* confdefs.h. */
38725_ACEOF
38726cat confdefs.h >>conftest.$ac_ext
38727cat >>conftest.$ac_ext <<_ACEOF
38728/* end confdefs.h. */
dae87f93 38729#include <gst/gst.h>
ce756cb0 38730
dae87f93 38731#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
38732_ACEOF
38733rm -f conftest.$ac_objext
38734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38735 (eval $ac_compile) 2>conftest.er1
38736 ac_status=$?
38737 grep -v '^ *+' conftest.er1 >conftest.err
38738 rm -f conftest.er1
38739 cat conftest.err >&5
38740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741 (exit $ac_status); } &&
38742 { ac_try='test -z "$ac_c_werror_flag"
38743 || test ! -s conftest.err'
38744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38745 (eval $ac_try) 2>&5
38746 ac_status=$?
38747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38748 (exit $ac_status); }; } &&
38749 { ac_try='test -s conftest.$ac_objext'
38750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38751 (eval $ac_try) 2>&5
38752 ac_status=$?
38753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38754 (exit $ac_status); }; }; then
dae87f93 38755 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
38756else
38757 echo "$as_me: failed program was:" >&5
38758sed 's/^/| /' conftest.$ac_ext >&5
38759
dae87f93 38760ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
38761fi
38762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
38763fi
38764echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
38765echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
38766if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
38767 :
38768else
ce756cb0 38769
dae87f93
RN
38770 wxUSE_GSTREAMER="no"
38771 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
38772echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 38773
dae87f93 38774fi
ce756cb0 38775
dae87f93
RN
38776
38777
38778 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
38779echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
38780
38781ac_find_libraries=
38782for ac_dir in $SEARCH_LIB /usr/lib;
38783 do
38784 for ac_extension in a so sl dylib; do
38785 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
38786 ac_find_libraries=$ac_dir
38787 break 2
38788 fi
38789 done
38790 done
38791
ce756cb0 38792
dae87f93
RN
38793 if test "$ac_find_libraries" = "" ; then
38794 echo "$as_me:$LINENO: result: no" >&5
38795echo "${ECHO_T}no" >&6
38796 wxUSE_GSTREAMER="no"
38797 else
38798 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 38799echo "${ECHO_T}yes" >&6
dae87f93 38800 fi
ce756cb0 38801
dae87f93
RN
38802 if test "$wxUSE_GSTREAMER" = "yes"; then
38803 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
38804#define wxUSE_GSTREAMER 1
38805_ACEOF
38806
dae87f93
RN
38807 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
38808echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
38809 fi
38810 fi
38811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
38812 cat >>confdefs.h <<\_ACEOF
38813#define wxUSE_MEDIACTRL 1
38814_ACEOF
38815
38816fi
38817
38818
a848cd7e
SC
38819if test "$cross_compiling" = "yes"; then
38820 OSINFO="\"$host\""
38821else
38822 OSINFO=`uname -s -r -m`
38823 OSINFO="\"$OSINFO\""
38824fi
38825
38826cat >>confdefs.h <<_ACEOF
38827#define WXWIN_OS_DESCRIPTION $OSINFO
38828_ACEOF
38829
38830
38831
38832if test "x$prefix" != "xNONE"; then
38833 wxPREFIX=$prefix
38834else
38835 wxPREFIX=$ac_default_prefix
38836fi
38837
38838cat >>confdefs.h <<_ACEOF
38839#define wxINSTALL_PREFIX "$wxPREFIX"
38840_ACEOF
38841
38842
a848cd7e
SC
38843
38844
38845CORE_BASE_LIBS="net base"
38846CORE_GUI_LIBS="adv core"
38847
38848if test "$wxUSE_XML" = "yes" ; then
38849 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38850fi
38851if test "$wxUSE_ODBC" != "no" ; then
38852 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38853 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38854fi
38855if test "$wxUSE_HTML" = "yes" ; then
38856 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38857fi
9a8f0513
VS
38858if test "$wxUSE_XRC" = "yes" ; then
38859 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
38860fi
a848cd7e
SC
38861
38862if test "$wxUSE_GUI" != "yes"; then
38863 CORE_GUI_LIBS=""
38864fi
38865
38866
38867
38868
38869
38870
38871
38872
38873if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 38874 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
38875 if test "$USE_DARWIN" = 1; then
38876 LDFLAGS="$LDFLAGS -framework QuickTime"
38877 else
38878 LDFLAGS="$LDFLAGS -lQuickTimeLib"
38879 fi
07bea8f0 38880 fi
5dcf30a0 38881 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
38882 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
38883 else
38884 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 38885 fi
a848cd7e
SC
38886fi
38887if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 38888 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
38889 if test "$wxUSE_MEDIACTRL" = "yes"; then
38890 LDFLAGS="$LDFLAGS -framework QuickTime"
38891 fi
a848cd7e
SC
38892fi
38893
38894
38895LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38896
38897have_cos=0
38898have_floor=0
38899
38900for ac_func in cos
38901do
38902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38903echo "$as_me:$LINENO: checking for $ac_func" >&5
38904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38905if eval "test \"\${$as_ac_var+set}\" = set"; then
38906 echo $ECHO_N "(cached) $ECHO_C" >&6
38907else
38908 cat >conftest.$ac_ext <<_ACEOF
38909/* confdefs.h. */
38910_ACEOF
38911cat confdefs.h >>conftest.$ac_ext
38912cat >>conftest.$ac_ext <<_ACEOF
38913/* end confdefs.h. */
ac1cb8d3
VS
38914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38916#define $ac_func innocuous_$ac_func
38917
a848cd7e
SC
38918/* System header to define __stub macros and hopefully few prototypes,
38919 which can conflict with char $ac_func (); below.
38920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38921 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38922
a848cd7e
SC
38923#ifdef __STDC__
38924# include <limits.h>
38925#else
38926# include <assert.h>
38927#endif
ac1cb8d3
VS
38928
38929#undef $ac_func
38930
a848cd7e
SC
38931/* Override any gcc2 internal prototype to avoid an error. */
38932#ifdef __cplusplus
38933extern "C"
38934{
38935#endif
38936/* We use char because int might match the return type of a gcc2
38937 builtin and then its argument prototype would still apply. */
38938char $ac_func ();
38939/* The GNU C library defines this for functions which it implements
38940 to always fail with ENOSYS. Some functions are actually named
38941 something starting with __ and the normal name is an alias. */
38942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38943choke me
38944#else
38945char (*f) () = $ac_func;
38946#endif
38947#ifdef __cplusplus
38948}
38949#endif
38950
38951int
38952main ()
38953{
38954return f != $ac_func;
38955 ;
38956 return 0;
38957}
38958_ACEOF
38959rm -f conftest.$ac_objext conftest$ac_exeext
38960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38961 (eval $ac_link) 2>conftest.er1
a848cd7e 38962 ac_status=$?
ac1cb8d3
VS
38963 grep -v '^ *+' conftest.er1 >conftest.err
38964 rm -f conftest.er1
38965 cat conftest.err >&5
a848cd7e
SC
38966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38967 (exit $ac_status); } &&
89be85c2
VS
38968 { ac_try='test -z "$ac_c_werror_flag"
38969 || test ! -s conftest.err'
ac1cb8d3
VS
38970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38971 (eval $ac_try) 2>&5
38972 ac_status=$?
38973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38974 (exit $ac_status); }; } &&
38975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38977 (eval $ac_try) 2>&5
38978 ac_status=$?
38979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980 (exit $ac_status); }; }; then
38981 eval "$as_ac_var=yes"
38982else
38983 echo "$as_me: failed program was:" >&5
38984sed 's/^/| /' conftest.$ac_ext >&5
38985
38986eval "$as_ac_var=no"
38987fi
ac1cb8d3
VS
38988rm -f conftest.err conftest.$ac_objext \
38989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38990fi
38991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38992echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38993if test `eval echo '${'$as_ac_var'}'` = yes; then
38994 cat >>confdefs.h <<_ACEOF
38995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38996_ACEOF
38997 have_cos=1
38998fi
38999done
39000
39001
39002for ac_func in floor
39003do
39004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39005echo "$as_me:$LINENO: checking for $ac_func" >&5
39006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39007if eval "test \"\${$as_ac_var+set}\" = set"; then
39008 echo $ECHO_N "(cached) $ECHO_C" >&6
39009else
39010 cat >conftest.$ac_ext <<_ACEOF
39011/* confdefs.h. */
39012_ACEOF
39013cat confdefs.h >>conftest.$ac_ext
39014cat >>conftest.$ac_ext <<_ACEOF
39015/* end confdefs.h. */
ac1cb8d3
VS
39016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39018#define $ac_func innocuous_$ac_func
39019
a848cd7e
SC
39020/* System header to define __stub macros and hopefully few prototypes,
39021 which can conflict with char $ac_func (); below.
39022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39023 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39024
a848cd7e
SC
39025#ifdef __STDC__
39026# include <limits.h>
39027#else
39028# include <assert.h>
39029#endif
ac1cb8d3
VS
39030
39031#undef $ac_func
39032
a848cd7e
SC
39033/* Override any gcc2 internal prototype to avoid an error. */
39034#ifdef __cplusplus
39035extern "C"
39036{
39037#endif
39038/* We use char because int might match the return type of a gcc2
39039 builtin and then its argument prototype would still apply. */
39040char $ac_func ();
39041/* The GNU C library defines this for functions which it implements
39042 to always fail with ENOSYS. Some functions are actually named
39043 something starting with __ and the normal name is an alias. */
39044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39045choke me
39046#else
39047char (*f) () = $ac_func;
39048#endif
39049#ifdef __cplusplus
39050}
39051#endif
39052
39053int
39054main ()
39055{
39056return f != $ac_func;
39057 ;
39058 return 0;
39059}
39060_ACEOF
39061rm -f conftest.$ac_objext conftest$ac_exeext
39062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39063 (eval $ac_link) 2>conftest.er1
a848cd7e 39064 ac_status=$?
ac1cb8d3
VS
39065 grep -v '^ *+' conftest.er1 >conftest.err
39066 rm -f conftest.er1
39067 cat conftest.err >&5
a848cd7e
SC
39068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069 (exit $ac_status); } &&
89be85c2
VS
39070 { ac_try='test -z "$ac_c_werror_flag"
39071 || test ! -s conftest.err'
ac1cb8d3
VS
39072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39073 (eval $ac_try) 2>&5
39074 ac_status=$?
39075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076 (exit $ac_status); }; } &&
39077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39079 (eval $ac_try) 2>&5
39080 ac_status=$?
39081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082 (exit $ac_status); }; }; then
39083 eval "$as_ac_var=yes"
39084else
39085 echo "$as_me: failed program was:" >&5
39086sed 's/^/| /' conftest.$ac_ext >&5
39087
39088eval "$as_ac_var=no"
39089fi
ac1cb8d3
VS
39090rm -f conftest.err conftest.$ac_objext \
39091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39092fi
39093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39095if test `eval echo '${'$as_ac_var'}'` = yes; then
39096 cat >>confdefs.h <<_ACEOF
39097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39098_ACEOF
39099 have_floor=1
39100fi
39101done
39102
39103echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
39104echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
39105if test "$have_cos" = 1 -a "$have_floor" = 1; then
39106 echo "$as_me:$LINENO: result: yes" >&5
39107echo "${ECHO_T}yes" >&6
39108else
39109 echo "$as_me:$LINENO: result: no" >&5
39110echo "${ECHO_T}no" >&6
39111 LIBS="$LIBS -lm"
39112 # use different functions to avoid configure caching
39113 have_sin=0
39114 have_ceil=0
39115
39116for ac_func in sin
39117do
39118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39119echo "$as_me:$LINENO: checking for $ac_func" >&5
39120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39121if eval "test \"\${$as_ac_var+set}\" = set"; then
39122 echo $ECHO_N "(cached) $ECHO_C" >&6
39123else
39124 cat >conftest.$ac_ext <<_ACEOF
39125/* confdefs.h. */
39126_ACEOF
39127cat confdefs.h >>conftest.$ac_ext
39128cat >>conftest.$ac_ext <<_ACEOF
39129/* end confdefs.h. */
ac1cb8d3
VS
39130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39132#define $ac_func innocuous_$ac_func
39133
a848cd7e
SC
39134/* System header to define __stub macros and hopefully few prototypes,
39135 which can conflict with char $ac_func (); below.
39136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39137 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39138
a848cd7e
SC
39139#ifdef __STDC__
39140# include <limits.h>
39141#else
39142# include <assert.h>
39143#endif
ac1cb8d3
VS
39144
39145#undef $ac_func
39146
a848cd7e
SC
39147/* Override any gcc2 internal prototype to avoid an error. */
39148#ifdef __cplusplus
39149extern "C"
39150{
39151#endif
39152/* We use char because int might match the return type of a gcc2
39153 builtin and then its argument prototype would still apply. */
39154char $ac_func ();
39155/* The GNU C library defines this for functions which it implements
39156 to always fail with ENOSYS. Some functions are actually named
39157 something starting with __ and the normal name is an alias. */
39158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39159choke me
39160#else
39161char (*f) () = $ac_func;
39162#endif
39163#ifdef __cplusplus
39164}
39165#endif
39166
39167int
39168main ()
39169{
39170return f != $ac_func;
39171 ;
39172 return 0;
39173}
39174_ACEOF
39175rm -f conftest.$ac_objext conftest$ac_exeext
39176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39177 (eval $ac_link) 2>conftest.er1
a848cd7e 39178 ac_status=$?
ac1cb8d3
VS
39179 grep -v '^ *+' conftest.er1 >conftest.err
39180 rm -f conftest.er1
39181 cat conftest.err >&5
a848cd7e
SC
39182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39183 (exit $ac_status); } &&
89be85c2
VS
39184 { ac_try='test -z "$ac_c_werror_flag"
39185 || test ! -s conftest.err'
ac1cb8d3
VS
39186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39187 (eval $ac_try) 2>&5
39188 ac_status=$?
39189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190 (exit $ac_status); }; } &&
39191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39193 (eval $ac_try) 2>&5
39194 ac_status=$?
39195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39196 (exit $ac_status); }; }; then
39197 eval "$as_ac_var=yes"
39198else
39199 echo "$as_me: failed program was:" >&5
39200sed 's/^/| /' conftest.$ac_ext >&5
39201
39202eval "$as_ac_var=no"
39203fi
ac1cb8d3
VS
39204rm -f conftest.err conftest.$ac_objext \
39205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39206fi
39207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39209if test `eval echo '${'$as_ac_var'}'` = yes; then
39210 cat >>confdefs.h <<_ACEOF
39211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39212_ACEOF
39213 have_sin=1
39214fi
39215done
39216
39217
39218for ac_func in ceil
39219do
39220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39221echo "$as_me:$LINENO: checking for $ac_func" >&5
39222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39223if eval "test \"\${$as_ac_var+set}\" = set"; then
39224 echo $ECHO_N "(cached) $ECHO_C" >&6
39225else
39226 cat >conftest.$ac_ext <<_ACEOF
39227/* confdefs.h. */
39228_ACEOF
39229cat confdefs.h >>conftest.$ac_ext
39230cat >>conftest.$ac_ext <<_ACEOF
39231/* end confdefs.h. */
ac1cb8d3
VS
39232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39234#define $ac_func innocuous_$ac_func
39235
a848cd7e
SC
39236/* System header to define __stub macros and hopefully few prototypes,
39237 which can conflict with char $ac_func (); below.
39238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39239 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39240
a848cd7e
SC
39241#ifdef __STDC__
39242# include <limits.h>
39243#else
39244# include <assert.h>
39245#endif
ac1cb8d3
VS
39246
39247#undef $ac_func
39248
a848cd7e
SC
39249/* Override any gcc2 internal prototype to avoid an error. */
39250#ifdef __cplusplus
39251extern "C"
39252{
39253#endif
39254/* We use char because int might match the return type of a gcc2
39255 builtin and then its argument prototype would still apply. */
39256char $ac_func ();
39257/* The GNU C library defines this for functions which it implements
39258 to always fail with ENOSYS. Some functions are actually named
39259 something starting with __ and the normal name is an alias. */
39260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39261choke me
39262#else
39263char (*f) () = $ac_func;
39264#endif
39265#ifdef __cplusplus
39266}
39267#endif
39268
39269int
39270main ()
39271{
39272return f != $ac_func;
39273 ;
39274 return 0;
39275}
39276_ACEOF
39277rm -f conftest.$ac_objext conftest$ac_exeext
39278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39279 (eval $ac_link) 2>conftest.er1
a848cd7e 39280 ac_status=$?
ac1cb8d3
VS
39281 grep -v '^ *+' conftest.er1 >conftest.err
39282 rm -f conftest.er1
39283 cat conftest.err >&5
a848cd7e
SC
39284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 (exit $ac_status); } &&
89be85c2
VS
39286 { ac_try='test -z "$ac_c_werror_flag"
39287 || test ! -s conftest.err'
ac1cb8d3
VS
39288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39289 (eval $ac_try) 2>&5
39290 ac_status=$?
39291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292 (exit $ac_status); }; } &&
39293 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39295 (eval $ac_try) 2>&5
39296 ac_status=$?
39297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298 (exit $ac_status); }; }; then
39299 eval "$as_ac_var=yes"
39300else
39301 echo "$as_me: failed program was:" >&5
39302sed 's/^/| /' conftest.$ac_ext >&5
39303
39304eval "$as_ac_var=no"
39305fi
ac1cb8d3
VS
39306rm -f conftest.err conftest.$ac_objext \
39307 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39308fi
39309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39311if test `eval echo '${'$as_ac_var'}'` = yes; then
39312 cat >>confdefs.h <<_ACEOF
39313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39314_ACEOF
39315 have_ceil=1
39316fi
39317done
39318
39319 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
39320echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
39321 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
39322 echo "$as_me:$LINENO: result: yes" >&5
39323echo "${ECHO_T}yes" >&6
39324 else
39325 echo "$as_me:$LINENO: result: no" >&5
39326echo "${ECHO_T}no" >&6
39327 # not sure we should warn the user, crash, etc.
39328 fi
39329fi
39330
39331if test "$wxUSE_GUI" = "yes"; then
39332
39333
39334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
39335 drawing dynamic erase event exec font image \
39336 minimal propsize rotate shaped widgets render"
39337
39338 if test "$wxUSE_MONOLITHIC" != "yes"; then
39339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
39340 fi
39341else
39342 SAMPLES_SUBDIRS="console"
39343fi
39344
39345
ceec2216 39346INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
39347-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
39348
39349if test "$GXX" = yes ; then
5294a27e
VZ
39350 CWARNINGS="-Wall"
39351 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
39352 fi
39353
39354EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
39355
0c3c69fc 39356CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 39357CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 39358CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 39359
95986553
DE
39360if test "x$MWCC" = "xyes"; then
39361
39362 CC="$CC -cwd source -I-"
39363 CXX="$CXX -cwd source -I-"
39364fi
39365
a848cd7e 39366
0c3c69fc 39367LIBS=`echo $LIBS`
a848cd7e
SC
39368EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
39369EXTRALIBS_XML="$EXPAT_LINK"
39370EXTRALIBS_HTML="$MSPACK_LINK"
39371EXTRALIBS_ODBC="$ODBC_LINK"
39372if test "$wxUSE_GUI" = "yes"; then
2e350179 39373 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
39374fi
39375if test "$wxUSE_OPENGL" = "yes"; then
39376 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
39377fi
39378
39379LDFLAGS="$LDFLAGS $PROFILE"
39380
39381if test "$wxUSE_GTK" = 1; then
39382 WXCONFIG_INCLUDE=
39383else
39384 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
39385fi
39386
39387WXCONFIG_EXTRALIBS="$LIBS"
39388
39389if test "$wxUSE_REGEX" = "builtin" ; then
39390 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
39391fi
39392if test "$wxUSE_EXPAT" = "builtin" ; then
39393 wxconfig_3rdparty="$wxconfig_3rdparty expat"
39394fi
39395if test "$wxUSE_ODBC" = "builtin" ; then
39396 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39397fi
39398if test "$wxUSE_LIBTIFF" = "builtin" ; then
39399 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
39400fi
39401if test "$wxUSE_LIBJPEG" = "builtin" ; then
39402 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
39403fi
39404if test "$wxUSE_LIBPNG" = "builtin" ; then
39405 wxconfig_3rdparty="$wxconfig_3rdparty png"
39406fi
39407if test "$wxUSE_ZLIB" = "builtin" ; then
39408 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
39409fi
39410if test "$wxUSE_ODBC" = "builtin" ; then
39411 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39412fi
39413
39414for i in $wxconfig_3rdparty ; do
ceec2216 39415 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
39416done
39417
39418
39419if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
39420 WXUNIV=1
39421else
39422 WXUNIV=0
39423fi
39424
39425
39426
39427
39428
39429
39430
39431
39432
39433if test $wxUSE_MONOLITHIC = "yes" ; then
39434 MONOLITHIC=1
39435else
39436 MONOLITHIC=0
39437fi
39438
39439if test $wxUSE_PLUGINS = "yes" ; then
39440 USE_PLUGINS=1
39441else
39442 USE_PLUGINS=0
39443fi
39444
39445if test $wxUSE_ODBC != "no" ; then
39446 USE_ODBC=1
39447else
39448 USE_ODBC=0
39449fi
39450
39451if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
39452 OFFICIAL_BUILD=1
39453else
39454 OFFICIAL_BUILD=0
39455fi
39456
39457
39458
39459
39460
39461
39462
39463
39464
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474
ceec2216 39475
d1c38808 39476
a848cd7e
SC
39477
39478
39479TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
39480
39481
39482
39483
39484
39485
39486
39487
4d4ff94c
VZ
39488case "$TOOLKIT" in
39489 GTK)
39490 TOOLKIT_USER="GTK+"
39491 if test "$WXGTK20" = 1; then
39492 TOOLKIT_USER="$TOOLKIT_USER 2"
39493 fi
9a8f0513 39494 ;;
4d4ff94c
VZ
39495
39496 *)
39497 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 39498 ;;
4d4ff94c 39499esac
a848cd7e 39500
9a8f0513 39501
1e9e8aba
DE
39502
39503
a848cd7e
SC
39504 if test "x$BAKEFILE_HOST" = "x"; then
39505 BAKEFILE_HOST="${host}"
39506 fi
39507
39508 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
39509
39510 if test -n "$ac_tool_prefix"; then
39511 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
39512set dummy ${ac_tool_prefix}ranlib; ac_word=$2
39513echo "$as_me:$LINENO: checking for $ac_word" >&5
39514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39515if test "${ac_cv_prog_RANLIB+set}" = set; then
39516 echo $ECHO_N "(cached) $ECHO_C" >&6
39517else
39518 if test -n "$RANLIB"; then
39519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
39520else
39521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39522for as_dir in $PATH
39523do
39524 IFS=$as_save_IFS
39525 test -z "$as_dir" && as_dir=.
39526 for ac_exec_ext in '' $ac_executable_extensions; do
39527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39528 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
39529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39530 break 2
39531 fi
39532done
39533done
39534
39535fi
39536fi
39537RANLIB=$ac_cv_prog_RANLIB
39538if test -n "$RANLIB"; then
39539 echo "$as_me:$LINENO: result: $RANLIB" >&5
39540echo "${ECHO_T}$RANLIB" >&6
39541else
39542 echo "$as_me:$LINENO: result: no" >&5
39543echo "${ECHO_T}no" >&6
39544fi
39545
39546fi
39547if test -z "$ac_cv_prog_RANLIB"; then
39548 ac_ct_RANLIB=$RANLIB
39549 # Extract the first word of "ranlib", so it can be a program name with args.
39550set dummy ranlib; ac_word=$2
39551echo "$as_me:$LINENO: checking for $ac_word" >&5
39552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39553if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
39554 echo $ECHO_N "(cached) $ECHO_C" >&6
39555else
39556 if test -n "$ac_ct_RANLIB"; then
39557 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
39558else
39559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39560for as_dir in $PATH
39561do
39562 IFS=$as_save_IFS
39563 test -z "$as_dir" && as_dir=.
39564 for ac_exec_ext in '' $ac_executable_extensions; do
39565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39566 ac_cv_prog_ac_ct_RANLIB="ranlib"
39567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39568 break 2
39569 fi
39570done
39571done
39572
39573 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
39574fi
39575fi
39576ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
39577if test -n "$ac_ct_RANLIB"; then
39578 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
39579echo "${ECHO_T}$ac_ct_RANLIB" >&6
39580else
39581 echo "$as_me:$LINENO: result: no" >&5
39582echo "${ECHO_T}no" >&6
39583fi
39584
39585 RANLIB=$ac_ct_RANLIB
39586else
39587 RANLIB="$ac_cv_prog_RANLIB"
39588fi
39589
39590 # Find a good install program. We prefer a C program (faster),
39591# so one script is as good as another. But avoid the broken or
39592# incompatible versions:
39593# SysV /etc/install, /usr/sbin/install
39594# SunOS /usr/etc/install
39595# IRIX /sbin/install
39596# AIX /bin/install
39597# AmigaOS /C/install, which installs bootblocks on floppy discs
39598# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
39599# AFS /usr/afsws/bin/install, which mishandles nonexistent args
39600# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 39601# OS/2's system install, which has a completely different semantic
a848cd7e
SC
39602# ./install, which can be erroneously created by make from ./install.sh.
39603echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
39604echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
39605if test -z "$INSTALL"; then
39606if test "${ac_cv_path_install+set}" = set; then
39607 echo $ECHO_N "(cached) $ECHO_C" >&6
39608else
39609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39610for as_dir in $PATH
39611do
39612 IFS=$as_save_IFS
39613 test -z "$as_dir" && as_dir=.
39614 # Account for people who put trailing slashes in PATH elements.
39615case $as_dir/ in
39616 ./ | .// | /cC/* | \
39617 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 39618 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
39619 /usr/ucb/* ) ;;
39620 *)
39621 # OSF1 and SCO ODT 3.0 have their own names for install.
39622 # Don't use installbsd from OSF since it installs stuff as root
39623 # by default.
39624 for ac_prog in ginstall scoinst install; do
39625 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39626 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39627 if test $ac_prog = install &&
39628 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39629 # AIX install. It has an incompatible calling convention.
39630 :
39631 elif test $ac_prog = install &&
39632 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39633 # program-specific install script used by HP pwplus--don't use.
39634 :
39635 else
39636 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39637 break 3
39638 fi
39639 fi
a848cd7e
SC
39640 done
39641 done
39642 ;;
39643esac
39644done
39645
39646
39647fi
39648 if test "${ac_cv_path_install+set}" = set; then
39649 INSTALL=$ac_cv_path_install
39650 else
39651 # As a last resort, use the slow shell script. We don't cache a
39652 # path for INSTALL within a source directory, because that will
39653 # break other packages using the cache if that directory is
39654 # removed, or if the path is relative.
39655 INSTALL=$ac_install_sh
39656 fi
39657fi
39658echo "$as_me:$LINENO: result: $INSTALL" >&5
39659echo "${ECHO_T}$INSTALL" >&6
39660
39661# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39662# It thinks the first close brace ends the variable substitution.
39663test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39664
39665test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39666
39667test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39668
39669 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39670echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39671LN_S=$as_ln_s
39672if test "$LN_S" = "ln -s"; then
39673 echo "$as_me:$LINENO: result: yes" >&5
39674echo "${ECHO_T}yes" >&6
39675else
39676 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39677echo "${ECHO_T}no, using $LN_S" >&6
39678fi
39679
39680
39681 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39682echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39683set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39684if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39685 echo $ECHO_N "(cached) $ECHO_C" >&6
39686else
39687 cat >conftest.make <<\_ACEOF
39688all:
39689 @echo 'ac_maketemp="$(MAKE)"'
39690_ACEOF
39691# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39692eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39693if test -n "$ac_maketemp"; then
39694 eval ac_cv_prog_make_${ac_make}_set=yes
39695else
39696 eval ac_cv_prog_make_${ac_make}_set=no
39697fi
39698rm -f conftest.make
39699fi
39700if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39701 echo "$as_me:$LINENO: result: yes" >&5
39702echo "${ECHO_T}yes" >&6
39703 SET_MAKE=
39704else
39705 echo "$as_me:$LINENO: result: no" >&5
39706echo "${ECHO_T}no" >&6
39707 SET_MAKE="MAKE=${MAKE-make}"
39708fi
39709
39710
39711
39712 if test -n "$ac_tool_prefix"; then
39713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39714set dummy ${ac_tool_prefix}ar; ac_word=$2
39715echo "$as_me:$LINENO: checking for $ac_word" >&5
39716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39717if test "${ac_cv_prog_AR+set}" = set; then
39718 echo $ECHO_N "(cached) $ECHO_C" >&6
39719else
39720 if test -n "$AR"; then
39721 ac_cv_prog_AR="$AR" # Let the user override the test.
39722else
39723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39724for as_dir in $PATH
39725do
39726 IFS=$as_save_IFS
39727 test -z "$as_dir" && as_dir=.
39728 for ac_exec_ext in '' $ac_executable_extensions; do
39729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39730 ac_cv_prog_AR="${ac_tool_prefix}ar"
39731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39732 break 2
39733 fi
39734done
39735done
39736
39737fi
39738fi
39739AR=$ac_cv_prog_AR
39740if test -n "$AR"; then
39741 echo "$as_me:$LINENO: result: $AR" >&5
39742echo "${ECHO_T}$AR" >&6
39743else
39744 echo "$as_me:$LINENO: result: no" >&5
39745echo "${ECHO_T}no" >&6
39746fi
39747
39748fi
39749if test -z "$ac_cv_prog_AR"; then
39750 ac_ct_AR=$AR
39751 # Extract the first word of "ar", so it can be a program name with args.
39752set dummy ar; ac_word=$2
39753echo "$as_me:$LINENO: checking for $ac_word" >&5
39754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39755if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39756 echo $ECHO_N "(cached) $ECHO_C" >&6
39757else
39758 if test -n "$ac_ct_AR"; then
39759 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39760else
39761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39762for as_dir in $PATH
39763do
39764 IFS=$as_save_IFS
39765 test -z "$as_dir" && as_dir=.
39766 for ac_exec_ext in '' $ac_executable_extensions; do
39767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39768 ac_cv_prog_ac_ct_AR="ar"
39769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39770 break 2
39771 fi
39772done
39773done
39774
39775 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39776fi
39777fi
39778ac_ct_AR=$ac_cv_prog_ac_ct_AR
39779if test -n "$ac_ct_AR"; then
39780 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39781echo "${ECHO_T}$ac_ct_AR" >&6
39782else
39783 echo "$as_me:$LINENO: result: no" >&5
39784echo "${ECHO_T}no" >&6
39785fi
39786
39787 AR=$ac_ct_AR
39788else
39789 AR="$ac_cv_prog_AR"
39790fi
39791
39792 if test -n "$ac_tool_prefix"; then
39793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39794set dummy ${ac_tool_prefix}strip; ac_word=$2
39795echo "$as_me:$LINENO: checking for $ac_word" >&5
39796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39797if test "${ac_cv_prog_STRIP+set}" = set; then
39798 echo $ECHO_N "(cached) $ECHO_C" >&6
39799else
39800 if test -n "$STRIP"; then
39801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39802else
39803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39804for as_dir in $PATH
39805do
39806 IFS=$as_save_IFS
39807 test -z "$as_dir" && as_dir=.
39808 for ac_exec_ext in '' $ac_executable_extensions; do
39809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39812 break 2
39813 fi
39814done
39815done
39816
39817fi
39818fi
39819STRIP=$ac_cv_prog_STRIP
39820if test -n "$STRIP"; then
39821 echo "$as_me:$LINENO: result: $STRIP" >&5
39822echo "${ECHO_T}$STRIP" >&6
39823else
39824 echo "$as_me:$LINENO: result: no" >&5
39825echo "${ECHO_T}no" >&6
39826fi
39827
39828fi
39829if test -z "$ac_cv_prog_STRIP"; then
39830 ac_ct_STRIP=$STRIP
39831 # Extract the first word of "strip", so it can be a program name with args.
39832set dummy strip; ac_word=$2
39833echo "$as_me:$LINENO: checking for $ac_word" >&5
39834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39835if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39836 echo $ECHO_N "(cached) $ECHO_C" >&6
39837else
39838 if test -n "$ac_ct_STRIP"; then
39839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39840else
39841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39842for as_dir in $PATH
39843do
39844 IFS=$as_save_IFS
39845 test -z "$as_dir" && as_dir=.
39846 for ac_exec_ext in '' $ac_executable_extensions; do
39847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39848 ac_cv_prog_ac_ct_STRIP="strip"
39849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39850 break 2
39851 fi
39852done
39853done
39854
39855 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39856fi
39857fi
39858ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39859if test -n "$ac_ct_STRIP"; then
39860 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39861echo "${ECHO_T}$ac_ct_STRIP" >&6
39862else
39863 echo "$as_me:$LINENO: result: no" >&5
39864echo "${ECHO_T}no" >&6
39865fi
39866
39867 STRIP=$ac_ct_STRIP
39868else
39869 STRIP="$ac_cv_prog_STRIP"
39870fi
39871
39872 if test -n "$ac_tool_prefix"; then
39873 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39874set dummy ${ac_tool_prefix}nm; ac_word=$2
39875echo "$as_me:$LINENO: checking for $ac_word" >&5
39876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39877if test "${ac_cv_prog_NM+set}" = set; then
39878 echo $ECHO_N "(cached) $ECHO_C" >&6
39879else
39880 if test -n "$NM"; then
39881 ac_cv_prog_NM="$NM" # Let the user override the test.
39882else
39883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39884for as_dir in $PATH
39885do
39886 IFS=$as_save_IFS
39887 test -z "$as_dir" && as_dir=.
39888 for ac_exec_ext in '' $ac_executable_extensions; do
39889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39890 ac_cv_prog_NM="${ac_tool_prefix}nm"
39891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39892 break 2
39893 fi
39894done
39895done
39896
39897fi
39898fi
39899NM=$ac_cv_prog_NM
39900if test -n "$NM"; then
39901 echo "$as_me:$LINENO: result: $NM" >&5
39902echo "${ECHO_T}$NM" >&6
39903else
39904 echo "$as_me:$LINENO: result: no" >&5
39905echo "${ECHO_T}no" >&6
39906fi
39907
39908fi
39909if test -z "$ac_cv_prog_NM"; then
39910 ac_ct_NM=$NM
39911 # Extract the first word of "nm", so it can be a program name with args.
39912set dummy nm; ac_word=$2
39913echo "$as_me:$LINENO: checking for $ac_word" >&5
39914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39915if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39916 echo $ECHO_N "(cached) $ECHO_C" >&6
39917else
39918 if test -n "$ac_ct_NM"; then
39919 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39920else
39921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39922for as_dir in $PATH
39923do
39924 IFS=$as_save_IFS
39925 test -z "$as_dir" && as_dir=.
39926 for ac_exec_ext in '' $ac_executable_extensions; do
39927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39928 ac_cv_prog_ac_ct_NM="nm"
39929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39930 break 2
39931 fi
39932done
39933done
39934
39935 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39936fi
39937fi
39938ac_ct_NM=$ac_cv_prog_ac_ct_NM
39939if test -n "$ac_ct_NM"; then
39940 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39941echo "${ECHO_T}$ac_ct_NM" >&6
39942else
39943 echo "$as_me:$LINENO: result: no" >&5
39944echo "${ECHO_T}no" >&6
39945fi
39946
39947 NM=$ac_ct_NM
39948else
39949 NM="$ac_cv_prog_NM"
39950fi
39951
39952
39953 case ${BAKEFILE_HOST} in
39954 *-hp-hpux* )
1e9e8aba 39955 INSTALL_DIR="mkdir -p"
a848cd7e
SC
39956 ;;
39957 *) INSTALL_DIR="$INSTALL -d"
39958 ;;
39959 esac
39960
39961
39962 LDFLAGS_GUI=
39963 case ${BAKEFILE_HOST} in
39964 *-*-cygwin* | *-*-mingw32* )
39965 LDFLAGS_GUI="-mwindows"
39966 esac
39967
39968
39969 fi
39970
39971 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39972echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39973if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39974 echo $ECHO_N "(cached) $ECHO_C" >&6
39975else
39976
39977 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39978 egrep -s GNU > /dev/null); then
39979 bakefile_cv_prog_makeisgnu="yes"
39980 else
39981 bakefile_cv_prog_makeisgnu="no"
39982 fi
39983
39984fi
39985echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39986echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39987
39988 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39989 IF_GNU_MAKE=""
39990 else
39991 IF_GNU_MAKE="#"
39992 fi
39993
39994
39995
39996 PLATFORM_UNIX=0
39997 PLATFORM_WIN32=0
39998 PLATFORM_MSDOS=0
39999 PLATFORM_MAC=0
1e9e8aba 40000 PLATFORM_MACOS=0
a848cd7e
SC
40001 PLATFORM_MACOSX=0
40002 PLATFORM_OS2=0
1e9e8aba 40003 PLATFORM_BEOS=0
a848cd7e
SC
40004
40005 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
40006 case "${BAKEFILE_HOST}" in
40007 *-*-cygwin* | *-*-mingw32* )
40008 PLATFORM_WIN32=1
40009 ;;
40010 *-pc-msdosdjgpp )
40011 PLATFORM_MSDOS=1
40012 ;;
40013 *-pc-os2_emx | *-pc-os2-emx )
40014 PLATFORM_OS2=1
40015 ;;
40016 powerpc-*-darwin* )
40017 PLATFORM_MAC=1
40018 PLATFORM_MACOSX=1
40019 ;;
1e9e8aba
DE
40020 *-*-beos* )
40021 PLATFORM_BEOS=1
40022 ;;
40023 powerpc-apple-macos* )
40024 PLATFORM_MAC=1
40025 PLATFORM_MACOS=1
40026 ;;
a848cd7e
SC
40027 * )
40028 PLATFORM_UNIX=1
40029 ;;
40030 esac
40031 else
40032 case "$BAKEFILE_FORCE_PLATFORM" in
40033 win32 )
40034 PLATFORM_WIN32=1
40035 ;;
40036 msdos )
40037 PLATFORM_MSDOS=1
40038 ;;
40039 os2 )
40040 PLATFORM_OS2=1
40041 ;;
40042 darwin )
40043 PLATFORM_MAC=1
40044 PLATFORM_MACOSX=1
40045 ;;
40046 unix )
40047 PLATFORM_UNIX=1
40048 ;;
1e9e8aba
DE
40049 beos )
40050 PLATFORM_BEOS=1
40051 ;;
a848cd7e
SC
40052 * )
40053 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
40054echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
40055 { (exit 1); exit 1; }; }
40056 ;;
40057 esac
40058 fi
40059
40060
40061
40062
40063
40064
40065
40066
40067
1e9e8aba
DE
40068
40069
a848cd7e
SC
40070 # Check whether --enable-omf or --disable-omf was given.
40071if test "${enable_omf+set}" = set; then
40072 enableval="$enable_omf"
40073 bk_os2_use_omf="$enableval"
40074fi;
40075
40076 case "${BAKEFILE_HOST}" in
40077 *-*-darwin* )
40078 CFLAGS="$CFLAGS -fno-common"
40079 CXXFLAGS="$CXXFLAGS -fno-common"
40080 ;;
40081
40082 *-pc-os2_emx | *-pc-os2-emx )
40083 if test "x$bk_os2_use_omf" = "xyes" ; then
40084 AR=emxomfar
40085 RANLIB=:
40086 LDFLAGS="-Zomf $LDFLAGS"
40087 CFLAGS="-Zomf $CFLAGS"
40088 CXXFLAGS="-Zomf $CXXFLAGS"
40089 OS2_LIBEXT="lib"
40090 else
40091 OS2_LIBEXT="a"
40092 fi
40093 ;;
1e9e8aba
DE
40094
40095 i*86-*-beos* )
40096 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
40097 ;;
a848cd7e
SC
40098 esac
40099
40100
40101 SO_SUFFIX="so"
40102 SO_SUFFIX_MODULE="so"
40103 EXEEXT=""
40104 LIBPREFIX="lib"
40105 LIBEXT=".a"
40106 DLLPREFIX="lib"
40107 DLLPREFIX_MODULE=""
40108 DLLIMP_SUFFIX=""
40109
40110 case "${BAKEFILE_HOST}" in
40111 *-hp-hpux* )
40112 SO_SUFFIX="sl"
40113 SO_SUFFIX_MODULE="sl"
40114 ;;
40115 *-*-aix* )
40116 SO_SUFFIX="a"
40117 SO_SUFFIX_MODULE="a"
40118 ;;
40119 *-*-cygwin* | *-*-mingw32* )
40120 SO_SUFFIX="dll"
40121 SO_SUFFIX_MODULE="dll"
40122 DLLIMP_SUFFIX="dll.a"
40123 EXEEXT=".exe"
40124 DLLPREFIX=""
40125 ;;
40126 *-pc-msdosdjgpp )
40127 EXEEXT=".exe"
40128 DLLPREFIX=""
40129 ;;
40130 *-pc-os2_emx | *-pc-os2-emx )
40131 SO_SUFFIX="dll"
40132 SO_SUFFIX_MODULE="dll"
40133 DLLIMP_SUFFIX=$OS2_LIBEXT
40134 EXEEXT=".exe"
40135 DLLPREFIX=""
40136 LIBPREFIX=""
40137 LIBEXT=".$OS2_LIBEXT"
40138 ;;
40139 powerpc-*-darwin* )
40140 SO_SUFFIX="dylib"
40141 SO_SUFFIX_MODULE="bundle"
40142 ;;
40143 esac
40144
40145 if test "x$DLLIMP_SUFFIX" = "x" ; then
40146 DLLIMP_SUFFIX="$SO_SUFFIX"
40147 fi
40148
40149
40150
40151
40152
40153
40154
40155
40156
40157
40158
1e9e8aba
DE
40159 PIC_FLAG=""
40160 if test "x$GCC" = "xyes"; then
a848cd7e
SC
40161 PIC_FLAG="-fPIC"
40162 fi
40163
1e9e8aba
DE
40164 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
40165 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
40166
a848cd7e
SC
40167 case "${BAKEFILE_HOST}" in
40168 *-hp-hpux* )
1e9e8aba 40169 if test "x$GCC" != "xyes"; then
a848cd7e
SC
40170 LDFLAGS="$LDFLAGS -L/usr/lib"
40171
40172 SHARED_LD_CC="${CC} -b -o"
40173 SHARED_LD_CXX="${CXX} -b -o"
40174 PIC_FLAG="+Z"
40175 fi
40176 ;;
40177
40178 *-*-linux* )
40179 if test "x$GCC" != "xyes"; then
40180 echo "$as_me:$LINENO: checking for Intel compiler" >&5
40181echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
40182if test "${bakefile_cv_prog_icc+set}" = set; then
40183 echo $ECHO_N "(cached) $ECHO_C" >&6
40184else
40185
40186 cat >conftest.$ac_ext <<_ACEOF
40187/* confdefs.h. */
40188_ACEOF
40189cat confdefs.h >>conftest.$ac_ext
40190cat >>conftest.$ac_ext <<_ACEOF
40191/* end confdefs.h. */
40192
40193int
40194main ()
40195{
40196
40197 #ifndef __INTEL_COMPILER
40198 #error Not icc
40199 #endif
40200
40201 ;
40202 return 0;
40203}
40204_ACEOF
40205rm -f conftest.$ac_objext
40206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40207 (eval $ac_compile) 2>conftest.er1
a848cd7e 40208 ac_status=$?
ac1cb8d3
VS
40209 grep -v '^ *+' conftest.er1 >conftest.err
40210 rm -f conftest.er1
40211 cat conftest.err >&5
a848cd7e
SC
40212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213 (exit $ac_status); } &&
89be85c2
VS
40214 { ac_try='test -z "$ac_c_werror_flag"
40215 || test ! -s conftest.err'
ac1cb8d3
VS
40216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40217 (eval $ac_try) 2>&5
40218 ac_status=$?
40219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220 (exit $ac_status); }; } &&
40221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40223 (eval $ac_try) 2>&5
40224 ac_status=$?
40225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40226 (exit $ac_status); }; }; then
40227 bakefile_cv_prog_icc=yes
40228else
40229 echo "$as_me: failed program was:" >&5
40230sed 's/^/| /' conftest.$ac_ext >&5
40231
40232bakefile_cv_prog_icc=no
40233
40234fi
ac1cb8d3 40235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40236
40237fi
40238echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
40239echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
40240 if test "$bakefile_cv_prog_icc" = "yes"; then
40241 PIC_FLAG="-KPIC"
40242 fi
40243 fi
40244 ;;
40245
40246 *-*-solaris2* )
40247 if test "x$GCC" != xyes ; then
40248 SHARED_LD_CC="${CC} -G -o"
40249 SHARED_LD_CXX="${CXX} -G -o"
40250 PIC_FLAG="-KPIC"
40251 fi
40252 ;;
40253
40254 *-*-darwin* )
40255
40256 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
40257echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
40258if test "${wx_cv_gcc31+set}" = set; then
40259 echo $ECHO_N "(cached) $ECHO_C" >&6
40260else
40261
40262 cat >conftest.$ac_ext <<_ACEOF
40263/* confdefs.h. */
40264_ACEOF
40265cat confdefs.h >>conftest.$ac_ext
40266cat >>conftest.$ac_ext <<_ACEOF
40267/* end confdefs.h. */
40268
40269int
40270main ()
40271{
40272
40273 #if (__GNUC__ < 3) || \
40274 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
40275 #error old gcc
40276 #endif
40277
40278 ;
40279 return 0;
40280}
40281_ACEOF
40282rm -f conftest.$ac_objext
40283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40284 (eval $ac_compile) 2>conftest.er1
a848cd7e 40285 ac_status=$?
ac1cb8d3
VS
40286 grep -v '^ *+' conftest.er1 >conftest.err
40287 rm -f conftest.er1
40288 cat conftest.err >&5
a848cd7e
SC
40289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290 (exit $ac_status); } &&
89be85c2
VS
40291 { ac_try='test -z "$ac_c_werror_flag"
40292 || test ! -s conftest.err'
ac1cb8d3
VS
40293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40294 (eval $ac_try) 2>&5
40295 ac_status=$?
40296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40297 (exit $ac_status); }; } &&
40298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40300 (eval $ac_try) 2>&5
40301 ac_status=$?
40302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40303 (exit $ac_status); }; }; then
40304
40305 wx_cv_gcc31=yes
40306
40307else
40308 echo "$as_me: failed program was:" >&5
40309sed 's/^/| /' conftest.$ac_ext >&5
40310
40311
40312 wx_cv_gcc31=no
40313
40314
40315fi
ac1cb8d3 40316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40317
40318fi
40319echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
40320echo "${ECHO_T}$wx_cv_gcc31" >&6
40321 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
40322
40323D='$'
40324cat <<EOF >shared-ld-sh
a848cd7e
SC
40325#!/bin/sh
40326#-----------------------------------------------------------------------------
40327#-- Name: distrib/mac/shared-ld-sh
40328#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
40329#-- Author: Gilles Depeyrot
40330#-- Copyright: (c) 2002 Gilles Depeyrot
40331#-- Licence: any use permitted
40332#-----------------------------------------------------------------------------
40333
40334verbose=0
40335args=""
40336objects=""
40337linking_flag="-dynamiclib"
40338
473276a9
VS
40339while test ${D}# -gt 0; do
40340 case ${D}1 in
a848cd7e
SC
40341
40342 -v)
40343 verbose=1
40344 ;;
40345
40346 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
40347 # collect these options and values
473276a9 40348 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
40349 shift
40350 ;;
40351
40352 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
40353 # collect these options
473276a9 40354 args="${D}{args} ${D}1"
a848cd7e
SC
40355 ;;
40356
40357 -dynamiclib|-bundle)
473276a9 40358 linking_flag="${D}1"
a848cd7e
SC
40359 ;;
40360
40361 -*)
473276a9 40362 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
40363 exit 1
40364 ;;
40365
40366 *.o | *.a | *.dylib)
40367 # collect object files
473276a9 40368 objects="${D}{objects} ${D}1"
a848cd7e
SC
40369 ;;
40370
40371 *)
473276a9 40372 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
40373 exit 1
40374 ;;
40375
40376 esac
40377 shift
40378done
40379
40380#
40381# Link one module containing all the others
40382#
473276a9
VS
40383if test ${D}{verbose} = 1; then
40384 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 40385fi
473276a9
VS
40386c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
40387status=${D}?
40388if test ${D}{status} != 0; then
40389 exit ${D}{status}
a848cd7e
SC
40390fi
40391
40392#
40393# Link the shared library from the single module created
40394#
473276a9
VS
40395if test ${D}{verbose} = 1; then
40396 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 40397fi
473276a9
VS
40398c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
40399status=${D}?
40400if test ${D}{status} != 0; then
40401 exit ${D}{status}
a848cd7e
SC
40402fi
40403
40404#
40405# Remove intermediate module
40406#
473276a9 40407rm -f master.${D}${D}.o
a848cd7e
SC
40408
40409exit 0
40410EOF
473276a9 40411
a848cd7e
SC
40412 chmod +x shared-ld-sh
40413
40414 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
40415 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
40416 SHARED_LD_CXX="$SHARED_LD_CC"
40417 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
40418 else
40419 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
40420 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
40421 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
40422 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
40423 fi
40424
40425 PIC_FLAG="-dynamic -fPIC"
40426 ;;
40427
40428 *-*-aix* )
40429 if test "x$GCC" != "xyes"; then
40430 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
40431set dummy makeC++SharedLib; ac_word=$2
40432echo "$as_me:$LINENO: checking for $ac_word" >&5
40433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40434if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
40435 echo $ECHO_N "(cached) $ECHO_C" >&6
40436else
40437 if test -n "$AIX_CXX_LD"; then
40438 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
40439else
40440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40441for as_dir in $PATH
40442do
40443 IFS=$as_save_IFS
40444 test -z "$as_dir" && as_dir=.
40445 for ac_exec_ext in '' $ac_executable_extensions; do
40446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40447 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
40448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40449 break 2
40450 fi
40451done
40452done
40453
40454 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
40455fi
40456fi
40457AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
40458if test -n "$AIX_CXX_LD"; then
40459 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
40460echo "${ECHO_T}$AIX_CXX_LD" >&6
40461else
40462 echo "$as_me:$LINENO: result: no" >&5
40463echo "${ECHO_T}no" >&6
40464fi
40465
40466 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
40467 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
40468 fi
40469 ;;
40470
40471 *-*-beos* )
1e9e8aba
DE
40472 SHARED_LD_CC="${LD} -nostart -o"
40473 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
40474 ;;
40475
40476 *-*-irix* )
40477 if test "x$GCC" != "xyes"; then
40478 PIC_FLAG="-KPIC"
40479 fi
40480 ;;
40481
40482 *-*-cygwin* | *-*-mingw32* )
40483 PIC_FLAG=""
1e9e8aba
DE
40484 SHARED_LD_CC="\$(CC) -shared -o"
40485 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
40486 ;;
40487
40488 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
40489 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
40490 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 40491 PIC_FLAG=""
473276a9
VS
40492
40493D='$'
40494cat <<EOF >dllar.sh
40495#!/bin/sh
40496#
40497# dllar - a tool to build both a .dll and an .a file
40498# from a set of object (.o) files for EMX/OS2.
40499#
40500# Written by Andrew Zabolotny, bit@freya.etu.ru
40501# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
40502#
40503# This script will accept a set of files on the command line.
40504# All the public symbols from the .o files will be exported into
40505# a .DEF file, then linker will be run (through gcc) against them to
40506# build a shared library consisting of all given .o files. All libraries
40507# (.a) will be first decompressed into component .o files then act as
40508# described above. You can optionally give a description (-d "description")
40509# which will be put into .DLL. To see the list of accepted options (as well
40510# as command-line format) simply run this program without options. The .DLL
40511# is built to be imported by name (there is no guarantee that new versions
40512# of the library you build will have same ordinals for same symbols).
40513#
40514# dllar is free software; you can redistribute it and/or modify
40515# it under the terms of the GNU General Public License as published by
40516# the Free Software Foundation; either version 2, or (at your option)
40517# any later version.
40518#
40519# dllar is distributed in the hope that it will be useful,
40520# but WITHOUT ANY WARRANTY; without even the implied warranty of
40521# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40522# GNU General Public License for more details.
40523#
40524# You should have received a copy of the GNU General Public License
40525# along with dllar; see the file COPYING. If not, write to the Free
40526# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
40527# 02111-1307, USA.
40528
40529# To successfuly run this program you will need:
40530# - Current drive should have LFN support (HPFS, ext2, network, etc)
40531# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
40532# - gcc
40533# (used to build the .dll)
40534# - emxexp
40535# (used to create .def file from .o files)
40536# - emximp
40537# (used to create .a file from .def file)
40538# - GNU text utilites (cat, sort, uniq)
40539# used to process emxexp output
40540# - GNU file utilities (mv, rm)
40541# - GNU sed
40542# - lxlite (optional, see flag below)
40543# (used for general .dll cleanup)
40544#
40545
40546flag_USE_LXLITE=1;
40547
40548#
40549# helper functions
40550# basnam, variant of basename, which does _not_ remove the path, _iff_
40551# second argument (suffix to remove) is given
40552basnam(){
40553 case ${D}# in
40554 1)
1e9e8aba 40555 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
40556 ;;
40557 2)
40558 echo ${D}1 | sed 's/'${D}2'${D}//'
40559 ;;
40560 *)
40561 echo "error in basnam ${D}*"
40562 exit 8
40563 ;;
40564 esac
40565}
40566
40567# Cleanup temporary files and output
40568CleanUp() {
40569 cd ${D}curDir
40570 for i in ${D}inputFiles ; do
40571 case ${D}i in
40572 *!)
40573 rm -rf \`basnam ${D}i !\`
40574 ;;
40575 *)
40576 ;;
40577 esac
40578 done
40579
40580 # Kill result in case of failure as there is just to many stupid make/nmake
40581 # things out there which doesn't do this.
1e9e8aba 40582 if [ ${D}# -eq 0 ]; then
473276a9
VS
40583 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
40584 fi
40585}
40586
40587# Print usage and exit script with rc=1.
40588PrintHelp() {
b1d22ded
DE
40589 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
40590 echo ' [-name-mangler-script script.sh]'
40591 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
40592 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
40593 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 40594 echo ' [*.o] [*.a]'
473276a9
VS
40595 echo '*> "output_file" should have no extension.'
40596 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
40597 echo ' The import library name is derived from this and is set to "name".a,'
40598 echo ' unless overridden by -import'
40599 echo '*> "importlib_name" should have no extension.'
40600 echo ' If it has the .o, or .a extension, it is automatically removed.'
40601 echo ' This name is used as the import library name and may be longer and'
40602 echo ' more descriptive than the DLL name which has to follow the old '
40603 echo ' 8.3 convention of FAT.'
b1d22ded
DE
40604 echo '*> "script.sh may be given to override the output_file name by a'
40605 echo ' different name. It is mainly useful if the regular make process'
40606 echo ' of some package does not take into account OS/2 restriction of'
40607 echo ' DLL name lengths. It takes the importlib name as input and is'
40608 echo ' supposed to procude a shorter name as output. The script should'
40609 echo ' expect to get importlib_name without extension and should produce'
40610 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
40611 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
40612 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
40613 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
40614 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
40615 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
40616 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
40617 echo ' If the last character of a symbol is "*", all symbols beginning'
40618 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 40619 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 40620 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 40621 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 40622 echo ' C runtime DLLs.'
b1d22ded 40623 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
40624 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40625 echo ' unchanged to GCC at the end of command line.'
40626 echo '*> If you create a DLL from a library and you do not specify -o,'
40627 echo ' the basename for DLL and import library will be set to library name,'
40628 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
40629 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40630 echo ' library will be renamed into gcc_s.a.'
40631 echo '--------'
40632 echo 'Example:'
40633 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40634 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40635 CleanUp
40636 exit 1
40637}
40638
40639# Execute a command.
40640# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40641# @Uses Whatever CleanUp() uses.
40642doCommand() {
40643 echo "${D}*"
40644 eval ${D}*
40645 rcCmd=${D}?
40646
1e9e8aba 40647 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
40648 echo "command failed, exit code="${D}rcCmd
40649 CleanUp
40650 exit ${D}rcCmd
40651 fi
40652}
40653
40654# main routine
40655# setup globals
40656cmdLine=${D}*
40657outFile=""
40658outimpFile=""
40659inputFiles=""
b1d22ded 40660renameScript=""
473276a9
VS
40661description=""
40662CC=gcc.exe
40663CFLAGS="-s -Zcrtdll"
40664EXTRA_CFLAGS=""
40665EXPORT_BY_ORDINALS=0
40666exclude_symbols=""
40667library_flags=""
40668curDir=\`pwd\`
40669curDirS=curDir
40670case ${D}curDirS in
40671*/)
40672 ;;
40673*)
40674 curDirS=${D}{curDirS}"/"
40675 ;;
40676esac
40677# Parse commandline
40678libsToLink=0
b1d22ded 40679omfLinking=0
1e9e8aba 40680while [ ${D}1 ]; do
473276a9
VS
40681 case ${D}1 in
40682 -ord*)
40683 EXPORT_BY_ORDINALS=1;
40684 ;;
40685 -o*)
40686 shift
40687 outFile=${D}1
40688 ;;
40689 -i*)
40690 shift
40691 outimpFile=${D}1
40692 ;;
b1d22ded
DE
40693 -name-mangler-script)
40694 shift
40695 renameScript=${D}1
40696 ;;
473276a9
VS
40697 -d*)
40698 shift
40699 description=${D}1
40700 ;;
40701 -f*)
40702 shift
40703 CFLAGS=${D}1
40704 ;;
40705 -c*)
40706 shift
40707 CC=${D}1
40708 ;;
40709 -h*)
40710 PrintHelp
40711 ;;
40712 -ex*)
40713 shift
40714 exclude_symbols=${D}{exclude_symbols}${D}1" "
40715 ;;
40716 -libf*)
40717 shift
40718 library_flags=${D}{library_flags}${D}1" "
40719 ;;
40720 -nocrt*)
40721 CFLAGS="-s"
40722 ;;
40723 -nolxl*)
40724 flag_USE_LXLITE=0
40725 ;;
40726 -* | /*)
40727 case ${D}1 in
40728 -L* | -l*)
40729 libsToLink=1
40730 ;;
b1d22ded
DE
40731 -Zomf)
40732 omfLinking=1
40733 ;;
473276a9
VS
40734 *)
40735 ;;
40736 esac
40737 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40738 ;;
b1d22ded
DE
40739 *.dll)
40740 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
40741 if [ ${D}omfLinking -eq 1 ]; then
40742 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
40743 else
40744 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
40745 fi
40746 ;;
473276a9
VS
40747 *)
40748 found=0;
1e9e8aba 40749 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
40750 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40751 else
40752 for file in ${D}1 ; do
1e9e8aba 40753 if [ -f ${D}file ]; then
473276a9
VS
40754 inputFiles="${D}{inputFiles} ${D}file"
40755 found=1
40756 fi
40757 done
1e9e8aba 40758 if [ ${D}found -eq 0 ]; then
473276a9
VS
40759 echo "ERROR: No file(s) found: "${D}1
40760 exit 8
40761 fi
40762 fi
40763 ;;
40764 esac
40765 shift
40766done # iterate cmdline words
40767
40768#
1e9e8aba 40769if [ -z "${D}inputFiles" ]; then
473276a9
VS
40770 echo "dllar: no input files"
40771 PrintHelp
40772fi
40773
40774# Now extract all .o files from .a files
40775newInputFiles=""
40776for file in ${D}inputFiles ; do
40777 case ${D}file in
40778 *.a | *.lib)
40779 case ${D}file in
40780 *.a)
40781 suffix=".a"
40782 AR="ar"
40783 ;;
40784 *.lib)
40785 suffix=".lib"
40786 AR="emxomfar"
40787 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40788 ;;
40789 *)
40790 ;;
40791 esac
40792 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40793 mkdir ${D}dirname
1e9e8aba 40794 if [ ${D}? -ne 0 ]; then
473276a9
VS
40795 echo "Failed to create subdirectory ./${D}dirname"
40796 CleanUp
40797 exit 8;
40798 fi
40799 # Append '!' to indicate archive
40800 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40801 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40802 cd ${D}curDir
40803 found=0;
40804 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 40805 if [ -f ${D}subfile ]; then
473276a9 40806 found=1
1e9e8aba 40807 if [ -s ${D}subfile ]; then
473276a9
VS
40808 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40809 newInputFiles="${D}newInputFiles ${D}subfile"
40810 fi
40811 fi
40812 done
1e9e8aba
DE
40813 if [ ${D}found -eq 0 ]; then
40814 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
40815 fi
40816 ;;
40817 *)
40818 newInputFiles="${D}{newInputFiles} ${D}file"
40819 ;;
40820 esac
40821done
40822inputFiles="${D}newInputFiles"
40823
40824# Output filename(s).
40825do_backup=0;
1e9e8aba 40826if [ -z ${D}outFile ]; then
473276a9
VS
40827 do_backup=1;
40828 set outFile ${D}inputFiles; outFile=${D}2
40829fi
40830
40831# If it is an archive, remove the '!' and the '_%' suffixes
40832case ${D}outFile in
40833*_%!)
40834 outFile=\`basnam ${D}outFile _%!\`
40835 ;;
40836*)
40837 ;;
40838esac
40839case ${D}outFile in
40840*.dll)
40841 outFile=\`basnam ${D}outFile .dll\`
40842 ;;
40843*.DLL)
40844 outFile=\`basnam ${D}outFile .DLL\`
40845 ;;
40846*.o)
40847 outFile=\`basnam ${D}outFile .o\`
40848 ;;
40849*.obj)
40850 outFile=\`basnam ${D}outFile .obj\`
40851 ;;
40852*.a)
40853 outFile=\`basnam ${D}outFile .a\`
40854 ;;
40855*.lib)
40856 outFile=\`basnam ${D}outFile .lib\`
40857 ;;
40858*)
40859 ;;
40860esac
40861case ${D}outimpFile in
40862*.a)
40863 outimpFile=\`basnam ${D}outimpFile .a\`
40864 ;;
40865*.lib)
40866 outimpFile=\`basnam ${D}outimpFile .lib\`
40867 ;;
40868*)
40869 ;;
40870esac
1e9e8aba 40871if [ -z ${D}outimpFile ]; then
473276a9
VS
40872 outimpFile=${D}outFile
40873fi
40874defFile="${D}{outFile}.def"
40875arcFile="${D}{outimpFile}.a"
40876arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
40877
40878#create ${D}dllFile as something matching 8.3 restrictions,
40879if [ -z ${D}renameScript ] ; then
40880 dllFile="${D}outFile"
40881else
40882 dllFile=\`${D}renameScript ${D}outimpFile\`
40883fi
473276a9 40884
1e9e8aba
DE
40885if [ ${D}do_backup -ne 0 ] ; then
40886 if [ -f ${D}arcFile ] ; then
473276a9
VS
40887 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40888 fi
1e9e8aba 40889 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
40890 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40891 fi
40892fi
40893
40894# Extract public symbols from all the object files.
40895tmpdefFile=${D}{defFile}_%
40896rm -f ${D}tmpdefFile
40897for file in ${D}inputFiles ; do
40898 case ${D}file in
40899 *!)
40900 ;;
40901 *)
40902 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40903 ;;
40904 esac
40905done
40906
40907# Create the def file.
40908rm -f ${D}defFile
40909echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
40910dllFile="${D}{dllFile}.dll"
40911if [ ! -z ${D}description ]; then
1e9e8aba 40912 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
40913fi
40914echo "EXPORTS" >> ${D}defFile
40915
40916doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40917grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40918
40919# Checks if the export is ok or not.
40920for word in ${D}exclude_symbols; do
40921 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40922 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40923done
40924
40925
1e9e8aba
DE
40926if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40927 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
40928 sed '
40929 N
40930 : loop
1e9e8aba 40931 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
40932 t loop
40933 ' > ${D}{tmpdefFile}%
40934 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40935else
40936 rm -f ${D}{tmpdefFile}%
40937fi
40938cat ${D}tmpdefFile >> ${D}defFile
40939rm -f ${D}tmpdefFile
40940
40941# Do linking, create implib, and apply lxlite.
40942gccCmdl="";
40943for file in ${D}inputFiles ; do
40944 case ${D}file in
40945 *!)
40946 ;;
40947 *)
40948 gccCmdl="${D}gccCmdl ${D}file"
40949 ;;
40950 esac
40951done
40952doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40953touch "${D}{outFile}.dll"
40954
40955doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 40956if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 40957 add_flags="";
1e9e8aba 40958 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
40959 add_flags="-ynd"
40960 fi
40961 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40962fi
40963doCommand "emxomf -s -l ${D}arcFile"
40964
40965# Successful exit.
40966CleanUp 1
40967exit 0
40968EOF
40969
40970 chmod +x dllar.sh
a848cd7e
SC
40971 ;;
40972
1e9e8aba 40973 powerpc-apple-macos* | \
a848cd7e
SC
40974 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40975 *-*-sunos4* | \
40976 *-*-osf* | \
40977 *-*-dgux5* | \
40978 *-*-sysv5* )
40979 ;;
40980
40981 *)
40982 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40983echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40984 { (exit 1); exit 1; }; }
40985 esac
40986
2057db16
VS
40987 if test "x$PIC_FLAG" != "x" ; then
40988 PIC_FLAG="$PIC_FLAG -DPIC"
40989 fi
40990
a848cd7e
SC
40991 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40992 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40993 fi
40994 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40995 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40996 fi
40997
40998
40999
41000
41001
41002
41003
41004
41005 USE_SOVERSION=0
41006 USE_SOVERLINUX=0
41007 USE_SOVERSOLARIS=0
41008 USE_SOSYMLINKS=0
41009 USE_MACVERSION=0
41010 SONAME_FLAG=
41011
41012 case "${BAKEFILE_HOST}" in
b1d22ded 41013 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
41014 SONAME_FLAG="-Wl,-soname,"
41015 USE_SOVERSION=1
41016 USE_SOVERLINUX=1
41017 USE_SOSYMLINKS=1
41018 ;;
41019
a848cd7e
SC
41020 *-*-solaris2* )
41021 SONAME_FLAG="-h "
41022 USE_SOVERSION=1
41023 USE_SOVERSOLARIS=1
41024 USE_SOSYMLINKS=1
41025 ;;
41026
41027 *-*-darwin* )
41028 USE_MACVERSION=1
41029 USE_SOVERSION=1
41030 USE_SOSYMLINKS=1
41031 ;;
41032 esac
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
41043echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
41044 DEPS_TRACKING=0
41045
41046 if test "x$GCC" = "xyes"; then
41047 DEPSMODE=gcc
41048 DEPS_TRACKING=1
41049 case "${BAKEFILE_HOST}" in
41050 powerpc-*-darwin* )
41051 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
41052 ;;
41053 * )
41054 DEPSFLAG_GCC="-MMD"
41055 ;;
41056 esac
41057 echo "$as_me:$LINENO: result: gcc" >&5
41058echo "${ECHO_T}gcc" >&6
b1d22ded 41059 elif test "x$MWCC" = "xyes"; then
81f90336 41060 DEPSMODE=mwcc
b1d22ded 41061 DEPS_TRACKING=1
81f90336 41062 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
41063 echo "$as_me:$LINENO: result: mwcc" >&5
41064echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
41065 else
41066 echo "$as_me:$LINENO: result: none" >&5
41067echo "${ECHO_T}none" >&6
41068 fi
41069
41070 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
41071
41072D='$'
41073cat <<EOF >bk-deps
a848cd7e
SC
41074#!/bin/sh
41075
41076# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41077# script. It is used to track C/C++ files dependencies in portable way.
41078#
41079# Permission is given to use this file in any way.
41080
473276a9 41081DEPSMODE=${DEPSMODE}
a848cd7e 41082DEPSDIR=.deps
473276a9 41083DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 41084DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 41085
473276a9 41086mkdir -p ${D}DEPSDIR
a848cd7e 41087
473276a9
VS
41088if test ${D}DEPSMODE = gcc ; then
41089 ${D}* ${D}{DEPSFLAG_GCC}
41090 status=${D}?
41091 if test ${D}{status} != 0 ; then
41092 exit ${D}{status}
a848cd7e
SC
41093 fi
41094 # move created file to the location we want it in:
473276a9
VS
41095 while test ${D}# -gt 0; do
41096 case "${D}1" in
a848cd7e
SC
41097 -o )
41098 shift
473276a9 41099 objfile=${D}1
a848cd7e
SC
41100 ;;
41101 -* )
41102 ;;
41103 * )
473276a9 41104 srcfile=${D}1
a848cd7e
SC
41105 ;;
41106 esac
41107 shift
41108 done
1e9e8aba
DE
41109 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
41110 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
41111 if test -f ${D}depfile ; then
41112 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41113 rm -f ${D}depfile
a848cd7e 41114 else
1e9e8aba 41115 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
41116 if test -f ${D}depfile ; then
41117 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41118 rm -f ${D}depfile
a848cd7e
SC
41119 fi
41120 fi
41121 exit 0
81f90336
MW
41122elif test ${D}DEPSMODE = mwcc ; then
41123 ${D}*
41124 status=${D}?
41125 if test ${D}{status} != 0 ; then
41126 exit ${D}{status}
41127 fi
41128 # Run mwcc again with -MM and redirect into the dep file we want
41129 # NOTE: We can't use shift here because we need ${D}* to be valid
41130 prevarg=
41131 for arg in ${D}* ; do
41132 if test "${D}prevarg" = "-o"; then
41133 objfile=${D}arg
41134 else
41135 case "${D}arg" in
41136 -* )
41137 ;;
41138 * )
41139 srcfile=${D}arg
41140 ;;
41141 esac
41142 fi
41143 prevarg="${D}arg"
41144 done
41145 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
41146 exit 0
a848cd7e 41147else
473276a9
VS
41148 ${D}*
41149 exit ${D}?
a848cd7e
SC
41150fi
41151EOF
473276a9 41152
a848cd7e
SC
41153 chmod +x bk-deps
41154 fi
41155
41156
41157
41158
41159 RESCOMP=
41160 SETFILE=
41161
41162 case ${BAKEFILE_HOST} in
41163 *-*-cygwin* | *-*-mingw32* )
41164 if test "$build" != "$host" ; then
41165 RESCOMP=$host_alias-windres
41166 else
41167 # Extract the first word of "windres", so it can be a program name with args.
41168set dummy windres; ac_word=$2
41169echo "$as_me:$LINENO: checking for $ac_word" >&5
41170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41171if test "${ac_cv_prog_RESCOMP+set}" = set; then
41172 echo $ECHO_N "(cached) $ECHO_C" >&6
41173else
41174 if test -n "$RESCOMP"; then
41175 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41176else
41177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41178for as_dir in $PATH
41179do
41180 IFS=$as_save_IFS
41181 test -z "$as_dir" && as_dir=.
41182 for ac_exec_ext in '' $ac_executable_extensions; do
41183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41184 ac_cv_prog_RESCOMP="windres"
41185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41186 break 2
41187 fi
41188done
41189done
41190
41191 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
41192fi
41193fi
41194RESCOMP=$ac_cv_prog_RESCOMP
41195if test -n "$RESCOMP"; then
41196 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41197echo "${ECHO_T}$RESCOMP" >&6
41198else
41199 echo "$as_me:$LINENO: result: no" >&5
41200echo "${ECHO_T}no" >&6
41201fi
41202
41203 fi
41204 ;;
41205
1e9e8aba 41206 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
41207 # Extract the first word of "Rez", so it can be a program name with args.
41208set dummy Rez; ac_word=$2
41209echo "$as_me:$LINENO: checking for $ac_word" >&5
41210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41211if test "${ac_cv_prog_RESCOMP+set}" = set; then
41212 echo $ECHO_N "(cached) $ECHO_C" >&6
41213else
41214 if test -n "$RESCOMP"; then
41215 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41216else
41217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41218for as_dir in $PATH
41219do
41220 IFS=$as_save_IFS
41221 test -z "$as_dir" && as_dir=.
41222 for ac_exec_ext in '' $ac_executable_extensions; do
41223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41224 ac_cv_prog_RESCOMP="Rez"
41225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41226 break 2
41227 fi
41228done
41229done
41230
41231 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
41232fi
41233fi
41234RESCOMP=$ac_cv_prog_RESCOMP
41235if test -n "$RESCOMP"; then
41236 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41237echo "${ECHO_T}$RESCOMP" >&6
41238else
41239 echo "$as_me:$LINENO: result: no" >&5
41240echo "${ECHO_T}no" >&6
41241fi
41242
41243 # Extract the first word of "SetFile", so it can be a program name with args.
41244set dummy SetFile; ac_word=$2
41245echo "$as_me:$LINENO: checking for $ac_word" >&5
41246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41247if test "${ac_cv_prog_SETFILE+set}" = set; then
41248 echo $ECHO_N "(cached) $ECHO_C" >&6
41249else
41250 if test -n "$SETFILE"; then
41251 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
41252else
41253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41254for as_dir in $PATH
41255do
41256 IFS=$as_save_IFS
41257 test -z "$as_dir" && as_dir=.
41258 for ac_exec_ext in '' $ac_executable_extensions; do
41259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41260 ac_cv_prog_SETFILE="SetFile"
41261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41262 break 2
41263 fi
41264done
41265done
41266
41267 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
41268fi
41269fi
41270SETFILE=$ac_cv_prog_SETFILE
41271if test -n "$SETFILE"; then
41272 echo "$as_me:$LINENO: result: $SETFILE" >&5
41273echo "${ECHO_T}$SETFILE" >&6
41274else
41275 echo "$as_me:$LINENO: result: no" >&5
41276echo "${ECHO_T}no" >&6
41277fi
41278
41279 ;;
41280 esac
41281
41282
41283
41284
41285
94acd38e 41286 BAKEFILE_BAKEFILE_M4_VERSION="0.1.7"
a848cd7e 41287
dcc1b6ad 41288
94acd38e 41289BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7"
a848cd7e 41290
646b6ec1 41291
74b84332 41292
a848cd7e
SC
41293 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
41294if test "${enable_precomp_headers+set}" = set; then
41295 enableval="$enable_precomp_headers"
41296 bk_use_pch="$enableval"
41297fi;
41298
41299 GCC_PCH=0
41300
41301 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
41302 if test "x$GCC" = "xyes"; then
41303 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
41304echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
41305 cat >conftest.$ac_ext <<_ACEOF
41306/* confdefs.h. */
41307_ACEOF
41308cat confdefs.h >>conftest.$ac_ext
41309cat >>conftest.$ac_ext <<_ACEOF
41310/* end confdefs.h. */
41311
41312int
41313main ()
41314{
41315
41316 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
41317 #error "no pch support"
41318 #endif
41319 #if (__GNUC__ < 3)
41320 #error "no pch support"
41321 #endif
41322 #if (__GNUC__ == 3) && \
41323 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
41324 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
41325 #error "no pch support"
41326 #endif
41327
41328 ;
41329 return 0;
41330}
41331_ACEOF
41332rm -f conftest.$ac_objext
41333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41334 (eval $ac_compile) 2>conftest.er1
a848cd7e 41335 ac_status=$?
ac1cb8d3
VS
41336 grep -v '^ *+' conftest.er1 >conftest.err
41337 rm -f conftest.er1
41338 cat conftest.err >&5
a848cd7e
SC
41339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41340 (exit $ac_status); } &&
89be85c2
VS
41341 { ac_try='test -z "$ac_c_werror_flag"
41342 || test ! -s conftest.err'
ac1cb8d3
VS
41343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41344 (eval $ac_try) 2>&5
41345 ac_status=$?
41346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41347 (exit $ac_status); }; } &&
41348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41350 (eval $ac_try) 2>&5
41351 ac_status=$?
41352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41353 (exit $ac_status); }; }; then
41354
41355 echo "$as_me:$LINENO: result: yes" >&5
41356echo "${ECHO_T}yes" >&6
a848cd7e
SC
41357 GCC_PCH=1
41358
41359else
41360 echo "$as_me: failed program was:" >&5
41361sed 's/^/| /' conftest.$ac_ext >&5
41362
41363
41364 echo "$as_me:$LINENO: result: no" >&5
41365echo "${ECHO_T}no" >&6
41366
41367fi
ac1cb8d3 41368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41369 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
41370
41371D='$'
41372cat <<EOF >bk-make-pch
a848cd7e
SC
41373#!/bin/sh
41374
41375# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41376# script. It is used to generated precompiled headers.
41377#
41378# Permission is given to use this file in any way.
41379
1e9e8aba
DE
41380outfile="${D}{1}"
41381header="${D}{2}"
a848cd7e
SC
41382shift
41383shift
41384
41385compiler=
41386headerfile=
1e9e8aba
DE
41387while test ${D}{#} -gt 0; do
41388 case "${D}{1}" in
a848cd7e 41389 -I* )
1e9e8aba
DE
41390 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
41391 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
41392 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
41393 fi
41394 ;;
41395 esac
1e9e8aba 41396 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
41397 shift
41398done
41399
1e9e8aba
DE
41400if test "x${D}{headerfile}" = "x" ; then
41401 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 41402else
1e9e8aba
DE
41403 if test -f ${D}{outfile} ; then
41404 rm -f ${D}{outfile}
a848cd7e 41405 else
1e9e8aba 41406 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 41407 fi
1e9e8aba 41408 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
41409 mkdir -p .deps
41410 # can do this because gcc is >= 3.4:
1e9e8aba
DE
41411 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
41412 exit ${D}{?}
a848cd7e
SC
41413fi
41414EOF
1e9e8aba 41415
a848cd7e
SC
41416 chmod +x bk-make-pch
41417 fi
41418 fi
41419 fi
41420
41421
41422
a848cd7e
SC
41423 COND_BUILD_DEBUG="#"
41424 if test "x$BUILD" = "xdebug" ; then
41425 COND_BUILD_DEBUG=""
41426 fi
41427
41428 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41429 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41430 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41431 fi
41432
41433 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41434 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41435 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41436 fi
41437
41438 COND_BUILD_DEBUG_UNICODE_0="#"
41439 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41440 COND_BUILD_DEBUG_UNICODE_0=""
41441 fi
41442
41443 COND_BUILD_DEBUG_UNICODE_1="#"
41444 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41445 COND_BUILD_DEBUG_UNICODE_1=""
41446 fi
41447
41448 COND_BUILD_RELEASE="#"
41449 if test "x$BUILD" = "xrelease" ; then
41450 COND_BUILD_RELEASE=""
41451 fi
41452
41453 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41454 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41455 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41456 fi
41457
41458 COND_BUILD_RELEASE_UNICODE_0="#"
41459 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41460 COND_BUILD_RELEASE_UNICODE_0=""
41461 fi
41462
41463 COND_BUILD_RELEASE_UNICODE_1="#"
41464 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41465 COND_BUILD_RELEASE_UNICODE_1=""
41466 fi
41467
41468 COND_DEBUG_FLAG_1="#"
41469 if test "x$DEBUG_FLAG" = "x1" ; then
41470 COND_DEBUG_FLAG_1=""
41471 fi
41472
41473 COND_DEBUG_INFO_0="#"
41474 if test "x$DEBUG_INFO" = "x0" ; then
41475 COND_DEBUG_INFO_0=""
41476 fi
41477
41478 COND_DEBUG_INFO_1="#"
41479 if test "x$DEBUG_INFO" = "x1" ; then
41480 COND_DEBUG_INFO_1=""
41481 fi
41482
41483 COND_DEPS_TRACKING_0="#"
41484 if test "x$DEPS_TRACKING" = "x0" ; then
41485 COND_DEPS_TRACKING_0=""
41486 fi
41487
41488 COND_DEPS_TRACKING_1="#"
41489 if test "x$DEPS_TRACKING" = "x1" ; then
41490 COND_DEPS_TRACKING_1=""
41491 fi
41492
41493 COND_GCC_PCH_1="#"
41494 if test "x$GCC_PCH" = "x1" ; then
41495 COND_GCC_PCH_1=""
41496 fi
41497
41498 COND_MONOLITHIC_0="#"
41499 if test "x$MONOLITHIC" = "x0" ; then
41500 COND_MONOLITHIC_0=""
41501 fi
41502
41503 COND_MONOLITHIC_0_SHARED_0="#"
41504 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41505 COND_MONOLITHIC_0_SHARED_0=""
41506 fi
41507
41508 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41509 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41510 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41511 fi
41512
90970d69
DE
41513 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
41514 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41515 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
41516 fi
41517
a848cd7e
SC
41518 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41519 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41520 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41521 fi
41522
a848cd7e
SC
41523 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41524 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41525 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41526 fi
41527
ceec2216
RL
41528 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
41529 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
41530 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
41531 fi
41532
a848cd7e
SC
41533 COND_MONOLITHIC_0_SHARED_1="#"
41534 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41535 COND_MONOLITHIC_0_SHARED_1=""
41536 fi
41537
41538 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41539 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41540 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41541 fi
41542
90970d69
DE
41543 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
41544 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41545 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
41546 fi
41547
a848cd7e
SC
41548 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41549 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41550 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41551 fi
41552
a848cd7e
SC
41553 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41554 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41555 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41556 fi
41557
ceec2216
RL
41558 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
41559 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
41560 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
41561 fi
41562
a848cd7e
SC
41563 COND_MONOLITHIC_0_USE_ODBC_1="#"
41564 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41565 COND_MONOLITHIC_0_USE_ODBC_1=""
41566 fi
41567
41568 COND_MONOLITHIC_1="#"
41569 if test "x$MONOLITHIC" = "x1" ; then
41570 COND_MONOLITHIC_1=""
41571 fi
41572
41573 COND_MONOLITHIC_1_SHARED_0="#"
41574 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41575 COND_MONOLITHIC_1_SHARED_0=""
41576 fi
41577
41578 COND_MONOLITHIC_1_SHARED_1="#"
41579 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41580 COND_MONOLITHIC_1_SHARED_1=""
41581 fi
41582
41583 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41584 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41585 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41586 fi
41587
41588 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41589 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41590 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41591 fi
41592
41593 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41594 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41595 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41596 fi
41597
41598 COND_PLATFORM_MACOSX_1="#"
41599 if test "x$PLATFORM_MACOSX" = "x1" ; then
41600 COND_PLATFORM_MACOSX_1=""
41601 fi
41602
a30f955f
VS
41603 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41604 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41605 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41606 fi
41607
a848cd7e
SC
41608 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41609 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41610 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41611 fi
41612
41613 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41614 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41615 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41616 fi
41617
41618 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41619 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41620 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41621 fi
41622
fc480dc1
DE
41623 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41624 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41625 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41626 fi
41627
1e9e8aba
DE
41628 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41629 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41630 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41631 fi
41632
ebee3cd0
VS
41633 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41634 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41635 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41636 fi
41637
41638 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41639 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41640 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41641 fi
41642
a848cd7e
SC
41643 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41644 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41645 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41646 fi
41647
41648 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41649 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41650 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41651 fi
41652
b48a2016
DE
41653 COND_PLATFORM_MACOS_1="#"
41654 if test "x$PLATFORM_MACOS" = "x1" ; then
41655 COND_PLATFORM_MACOS_1=""
41656 fi
41657
a848cd7e
SC
41658 COND_PLATFORM_MAC_1="#"
41659 if test "x$PLATFORM_MAC" = "x1" ; then
41660 COND_PLATFORM_MAC_1=""
41661 fi
41662
41663 COND_PLATFORM_OS2_1="#"
41664 if test "x$PLATFORM_OS2" = "x1" ; then
41665 COND_PLATFORM_OS2_1=""
41666 fi
41667
41668 COND_PLATFORM_UNIX_0="#"
41669 if test "x$PLATFORM_UNIX" = "x0" ; then
41670 COND_PLATFORM_UNIX_0=""
41671 fi
41672
41673 COND_PLATFORM_UNIX_1="#"
41674 if test "x$PLATFORM_UNIX" = "x1" ; then
41675 COND_PLATFORM_UNIX_1=""
41676 fi
41677
41678 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41679 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41680 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41681 fi
41682
41683 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41684 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41685 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41686 fi
41687
41688 COND_PLATFORM_WIN32_0="#"
41689 if test "x$PLATFORM_WIN32" = "x0" ; then
41690 COND_PLATFORM_WIN32_0=""
41691 fi
41692
41693 COND_PLATFORM_WIN32_1="#"
41694 if test "x$PLATFORM_WIN32" = "x1" ; then
41695 COND_PLATFORM_WIN32_1=""
41696 fi
41697
41698 COND_SHARED_0="#"
41699 if test "x$SHARED" = "x0" ; then
41700 COND_SHARED_0=""
41701 fi
41702
ceec2216
RL
41703 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
41704 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41705 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
41706 fi
41707
41708 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
41709 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41710 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
41711 fi
41712
41713 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
41714 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41715 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
41716 fi
41717
a848cd7e
SC
41718 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41719 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41720 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41721 fi
41722
41723 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41724 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41725 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41726 fi
41727
41728 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41729 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41730 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41731 fi
41732
41733 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41734 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41735 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41736 fi
41737
41738 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41739 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41740 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41741 fi
41742
41743 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41744 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41745 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41746 fi
41747
41748 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41749 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41750 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41751 fi
41752
41753 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41754 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41755 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41756 fi
41757
41758 COND_SHARED_1="#"
41759 if test "x$SHARED" = "x1" ; then
41760 COND_SHARED_1=""
41761 fi
41762
41763 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41764 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41765 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41766 fi
41767
a30f955f
VS
41768 COND_TOOLKIT_="#"
41769 if test "x$TOOLKIT" = "x" ; then
41770 COND_TOOLKIT_=""
41771 fi
41772
a848cd7e
SC
41773 COND_TOOLKIT_COCOA="#"
41774 if test "x$TOOLKIT" = "xCOCOA" ; then
41775 COND_TOOLKIT_COCOA=""
41776 fi
41777
a49baeab
DE
41778 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41779 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41780 COND_TOOLKIT_COCOA_USE_GUI_1=""
41781 fi
41782
a848cd7e
SC
41783 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41784 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41785 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41786 fi
41787
41788 COND_TOOLKIT_GTK="#"
41789 if test "x$TOOLKIT" = "xGTK" ; then
41790 COND_TOOLKIT_GTK=""
41791 fi
41792
41793 COND_TOOLKIT_GTK_USE_GUI_1="#"
41794 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41795 COND_TOOLKIT_GTK_USE_GUI_1=""
41796 fi
41797
41798 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41799 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41800 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41801 fi
41802
41803 COND_TOOLKIT_MAC="#"
41804 if test "x$TOOLKIT" = "xMAC" ; then
41805 COND_TOOLKIT_MAC=""
41806 fi
41807
41808 COND_TOOLKIT_MAC_USE_GUI_1="#"
41809 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41810 COND_TOOLKIT_MAC_USE_GUI_1=""
41811 fi
41812
41813 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41814 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41815 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41816 fi
41817
41818 COND_TOOLKIT_MGL="#"
41819 if test "x$TOOLKIT" = "xMGL" ; then
41820 COND_TOOLKIT_MGL=""
41821 fi
41822
41823 COND_TOOLKIT_MGL_USE_GUI_1="#"
41824 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41825 COND_TOOLKIT_MGL_USE_GUI_1=""
41826 fi
41827
41828 COND_TOOLKIT_MOTIF="#"
41829 if test "x$TOOLKIT" = "xMOTIF" ; then
41830 COND_TOOLKIT_MOTIF=""
41831 fi
41832
41833 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41834 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41835 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41836 fi
41837
41838 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41839 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41840 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41841 fi
41842
41843 COND_TOOLKIT_MSW="#"
41844 if test "x$TOOLKIT" = "xMSW" ; then
41845 COND_TOOLKIT_MSW=""
41846 fi
41847
41848 COND_TOOLKIT_MSW_USE_GUI_1="#"
41849 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41850 COND_TOOLKIT_MSW_USE_GUI_1=""
41851 fi
41852
41853 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41854 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41855 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41856 fi
41857
41858 COND_TOOLKIT_PM="#"
41859 if test "x$TOOLKIT" = "xPM" ; then
41860 COND_TOOLKIT_PM=""
41861 fi
41862
41863 COND_TOOLKIT_PM_USE_GUI_1="#"
41864 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41865 COND_TOOLKIT_PM_USE_GUI_1=""
41866 fi
41867
41868 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41869 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41870 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41871 fi
41872
3fd9c298
DE
41873 COND_TOOLKIT_WINCE="#"
41874 if test "x$TOOLKIT" = "xWINCE" ; then
41875 COND_TOOLKIT_WINCE=""
41876 fi
41877
41878 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41879 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41880 COND_TOOLKIT_WINCE_USE_GUI_1=""
41881 fi
41882
41883 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41884 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41885 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41886 fi
41887
a848cd7e
SC
41888 COND_TOOLKIT_X11="#"
41889 if test "x$TOOLKIT" = "xX11" ; then
41890 COND_TOOLKIT_X11=""
41891 fi
41892
41893 COND_TOOLKIT_X11_USE_GUI_1="#"
41894 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41895 COND_TOOLKIT_X11_USE_GUI_1=""
41896 fi
41897
41898 COND_UNICODE_1="#"
41899 if test "x$UNICODE" = "x1" ; then
41900 COND_UNICODE_1=""
41901 fi
41902
41903 COND_USE_EXCEPTIONS_0="#"
41904 if test "x$USE_EXCEPTIONS" = "x0" ; then
41905 COND_USE_EXCEPTIONS_0=""
41906 fi
41907
41908 COND_USE_EXCEPTIONS_1="#"
41909 if test "x$USE_EXCEPTIONS" = "x1" ; then
41910 COND_USE_EXCEPTIONS_1=""
41911 fi
41912
41913 COND_USE_GUI_0="#"
41914 if test "x$USE_GUI" = "x0" ; then
41915 COND_USE_GUI_0=""
41916 fi
41917
41918 COND_USE_GUI_1="#"
41919 if test "x$USE_GUI" = "x1" ; then
41920 COND_USE_GUI_1=""
41921 fi
41922
41923 COND_USE_GUI_1_WXUNIV_0="#"
41924 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41925 COND_USE_GUI_1_WXUNIV_0=""
41926 fi
41927
41928 COND_USE_GUI_1_WXUNIV_1="#"
41929 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41930 COND_USE_GUI_1_WXUNIV_1=""
41931 fi
41932
41933 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41934 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41935 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41936 fi
41937
41938 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41939 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41940 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41941 fi
41942
41943 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41944 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41945 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41946 fi
41947
ceec2216
RL
41948 COND_USE_ODBC_1="#"
41949 if test "x$USE_ODBC" = "x1" ; then
41950 COND_USE_ODBC_1=""
41951 fi
41952
ffa0583f
RL
41953 COND_USE_OPENGL_1="#"
41954 if test "x$USE_OPENGL" = "x1" ; then
41955 COND_USE_OPENGL_1=""
41956 fi
41957
a848cd7e
SC
41958 COND_USE_PLUGINS_0="#"
41959 if test "x$USE_PLUGINS" = "x0" ; then
41960 COND_USE_PLUGINS_0=""
41961 fi
41962
41963 COND_USE_SOSYMLINKS_1="#"
41964 if test "x$USE_SOSYMLINKS" = "x1" ; then
41965 COND_USE_SOSYMLINKS_1=""
41966 fi
41967
41968 COND_USE_SOVERLINUX_1="#"
41969 if test "x$USE_SOVERLINUX" = "x1" ; then
41970 COND_USE_SOVERLINUX_1=""
41971 fi
41972
41973 COND_USE_SOVERSION_0="#"
41974 if test "x$USE_SOVERSION" = "x0" ; then
41975 COND_USE_SOVERSION_0=""
41976 fi
41977
41978 COND_USE_SOVERSOLARIS_1="#"
41979 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41980 COND_USE_SOVERSOLARIS_1=""
41981 fi
41982
a13a7f89
RL
41983 COND_USE_XRC_1="#"
41984 if test "x$USE_XRC" = "x1" ; then
41985 COND_USE_XRC_1=""
41986 fi
41987
a848cd7e
SC
41988 COND_WITH_PLUGIN_SDL_1="#"
41989 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41990 COND_WITH_PLUGIN_SDL_1=""
41991 fi
41992
1e6eb025
VZ
41993 COND_WXUNIV_0="#"
41994 if test "x$WXUNIV" = "x0" ; then
41995 COND_WXUNIV_0=""
41996 fi
41997
a848cd7e
SC
41998 COND_WXUNIV_1="#"
41999 if test "x$WXUNIV" = "x1" ; then
42000 COND_WXUNIV_1=""
42001 fi
42002
42003 COND_WXUSE_EXPAT_BUILTIN="#"
42004 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
42005 COND_WXUSE_EXPAT_BUILTIN=""
42006 fi
42007
42008 COND_WXUSE_LIBJPEG_BUILTIN="#"
42009 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42010 COND_WXUSE_LIBJPEG_BUILTIN=""
42011 fi
42012
42013 COND_WXUSE_LIBPNG_BUILTIN="#"
42014 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42015 COND_WXUSE_LIBPNG_BUILTIN=""
42016 fi
42017
42018 COND_WXUSE_LIBTIFF_BUILTIN="#"
42019 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42020 COND_WXUSE_LIBTIFF_BUILTIN=""
42021 fi
42022
42023 COND_WXUSE_ODBC_BUILTIN="#"
42024 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
42025 COND_WXUSE_ODBC_BUILTIN=""
42026 fi
42027
42028 COND_WXUSE_REGEX_BUILTIN="#"
42029 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
42030 COND_WXUSE_REGEX_BUILTIN=""
42031 fi
42032
42033 COND_WXUSE_ZLIB_BUILTIN="#"
42034 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
42035 COND_WXUSE_ZLIB_BUILTIN=""
42036 fi
42037
42038
42039
2057db16
VS
42040 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
42041 { { 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
42042echo "$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;}
42043 { (exit 1); exit 1; }; }
42044 fi
42045
a848cd7e 42046
ceec2216
RL
42047if test "$wxUSE_SHARED" = "yes"; then
42048
42049 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
42050 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
42051
5b674b9d
DE
42052 case "${host}" in
42053 *-pc-os2_emx | *-pc-os2-emx )
42054 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42055 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42056 cp -p ${srcdir}/src/os2/dllnames.sh .
42057 cp -p ${srcdir}/src/os2/dllar.sh .
42058 ;;
42059 esac
ceec2216
RL
42060else
42061
42062 EXE_LINKER="$CXX -o"
42063
42064fi
a848cd7e 42065
74b84332 42066GCC_PRAGMA_FLAGS=""
c08ebc62
DE
42067PCH_FLAGS=""
42068if test $GCC_PCH = 1 ; then
42069 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42070 PCH_FLAGS="-DWX_PRECOMP"
42071else
a848cd7e
SC
42072 case "${host}" in
42073 powerpc-*-darwin* )
74b84332 42074 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 42075 ;;
bea8e651 42076 *-*-mingw32* )
1f344abf
VS
42077 if test "$wxUSE_STL" = "yes" -o \
42078 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
42079 "$wxUSE_NO_RTTI" != "yes"; then
42080 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
42081echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
42082 cat >conftest.$ac_ext <<_ACEOF
42083/* confdefs.h. */
42084_ACEOF
42085cat confdefs.h >>conftest.$ac_ext
42086cat >>conftest.$ac_ext <<_ACEOF
42087/* end confdefs.h. */
42088
3314e67b
RR
42089int
42090main ()
42091{
42092#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
42093 #error "Not GCC 3.2 or greater"
42094 #endif
42095
42096 ;
42097 return 0;
42098}
42099_ACEOF
42100rm -f conftest.$ac_objext
42101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42102 (eval $ac_compile) 2>conftest.er1
42103 ac_status=$?
42104 grep -v '^ *+' conftest.er1 >conftest.err
42105 rm -f conftest.er1
42106 cat conftest.err >&5
42107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42108 (exit $ac_status); } &&
89be85c2
VS
42109 { ac_try='test -z "$ac_c_werror_flag"
42110 || test ! -s conftest.err'
3314e67b
RR
42111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42112 (eval $ac_try) 2>&5
42113 ac_status=$?
42114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42115 (exit $ac_status); }; } &&
42116 { ac_try='test -s conftest.$ac_objext'
42117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42118 (eval $ac_try) 2>&5
42119 ac_status=$?
42120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42121 (exit $ac_status); }; }; then
42122 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42123 echo "$as_me:$LINENO: result: yes" >&5
42124echo "${ECHO_T}yes" >&6
42125else
42126 echo "$as_me: failed program was:" >&5
42127sed 's/^/| /' conftest.$ac_ext >&5
42128
42129echo "$as_me:$LINENO: result: no" >&5
42130echo "${ECHO_T}no" >&6
42131fi
42132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42133 fi
42134 ;;
42135 *-pc-os2_emx | *-pc-os2-emx )
42136 if test "$wxUSE_STL" = "yes"; then
42137 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
42138echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
42139 cat >conftest.$ac_ext <<_ACEOF
42140/* confdefs.h. */
42141_ACEOF
42142cat confdefs.h >>conftest.$ac_ext
42143cat >>conftest.$ac_ext <<_ACEOF
42144/* end confdefs.h. */
42145
bea8e651
MB
42146int
42147main ()
42148{
1f344abf 42149#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
42150 #error "Not GCC 3.2 or greater"
42151 #endif
42152
42153 ;
42154 return 0;
42155}
42156_ACEOF
42157rm -f conftest.$ac_objext
42158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42159 (eval $ac_compile) 2>conftest.er1
bea8e651 42160 ac_status=$?
ac1cb8d3
VS
42161 grep -v '^ *+' conftest.er1 >conftest.err
42162 rm -f conftest.er1
42163 cat conftest.err >&5
bea8e651
MB
42164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165 (exit $ac_status); } &&
89be85c2
VS
42166 { ac_try='test -z "$ac_c_werror_flag"
42167 || test ! -s conftest.err'
ac1cb8d3
VS
42168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42169 (eval $ac_try) 2>&5
42170 ac_status=$?
42171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42172 (exit $ac_status); }; } &&
42173 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
42174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42175 (eval $ac_try) 2>&5
42176 ac_status=$?
42177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42178 (exit $ac_status); }; }; then
74b84332 42179 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
42180 echo "$as_me:$LINENO: result: yes" >&5
42181echo "${ECHO_T}yes" >&6
42182else
42183 echo "$as_me: failed program was:" >&5
42184sed 's/^/| /' conftest.$ac_ext >&5
42185
42186echo "$as_me:$LINENO: result: no" >&5
42187echo "${ECHO_T}no" >&6
42188fi
ac1cb8d3 42189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
42190 fi
42191 ;;
a848cd7e
SC
42192 esac
42193fi
d2083416 42194CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
42195
42196
42197SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
42198
42199
42200
42201
42202
42203
42204
42205
42206
42207
42208
42209
42210
42211
42212
42213
42214
42215
42216
42217
42218
42219
42220
42221
42222
42223
42224
42225
42226
42227
42228
42229
42230
42231
42232
42233
42234
42235
42236
42237
42238
42239
a848cd7e
SC
42240
42241
42242
42243
42244
42245
42246
42247
42248
42249
42250
42251
42252
42253
42254
42255
42256
42257
74b84332 42258
a848cd7e
SC
42259
42260
42261echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42262echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42263set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42264if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42265 echo $ECHO_N "(cached) $ECHO_C" >&6
42266else
42267 cat >conftest.make <<\_ACEOF
42268all:
42269 @echo 'ac_maketemp="$(MAKE)"'
42270_ACEOF
42271# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42272eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42273if test -n "$ac_maketemp"; then
42274 eval ac_cv_prog_make_${ac_make}_set=yes
42275else
42276 eval ac_cv_prog_make_${ac_make}_set=no
42277fi
42278rm -f conftest.make
42279fi
42280if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42281 echo "$as_me:$LINENO: result: yes" >&5
42282echo "${ECHO_T}yes" >&6
42283 SET_MAKE=
42284else
42285 echo "$as_me:$LINENO: result: no" >&5
42286echo "${ECHO_T}no" >&6
42287 SET_MAKE="MAKE=${MAKE-make}"
42288fi
42289
42290
a848cd7e 42291
ceec2216
RL
42292 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
42293
a848cd7e 42294
ceec2216 42295 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 42296
a848cd7e 42297
ceec2216 42298 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 42299
ceec2216
RL
42300
42301 ac_config_files="$ac_config_files version-script Makefile"
42302
42303
42304 ac_config_commands="$ac_config_commands wx-config
42305 "
a848cd7e
SC
42306
42307
9103d280
RL
42308
42309
a848cd7e
SC
42310if test "$wxUSE_GUI" = "yes"; then
42311 SUBDIRS="samples demos utils contrib"
42312else SUBDIRS="samples utils"
42313fi
42314
42315
42316
42317# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42318if test "${with_cppunit_prefix+set}" = set; then
42319 withval="$with_cppunit_prefix"
42320 cppunit_config_prefix="$withval"
42321else
42322 cppunit_config_prefix=""
42323fi;
42324
42325# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42326if test "${with_cppunit_exec_prefix+set}" = set; then
42327 withval="$with_cppunit_exec_prefix"
42328 cppunit_config_exec_prefix="$withval"
42329else
42330 cppunit_config_exec_prefix=""
42331fi;
42332
42333 if test x$cppunit_config_exec_prefix != x ; then
42334 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42335 if test x${CPPUNIT_CONFIG+set} != xset ; then
42336 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42337 fi
42338 fi
42339 if test x$cppunit_config_prefix != x ; then
42340 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42341 if test x${CPPUNIT_CONFIG+set} != xset ; then
42342 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42343 fi
42344 fi
42345
42346 # Extract the first word of "cppunit-config", so it can be a program name with args.
42347set dummy cppunit-config; ac_word=$2
42348echo "$as_me:$LINENO: checking for $ac_word" >&5
42349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42350if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42351 echo $ECHO_N "(cached) $ECHO_C" >&6
42352else
42353 case $CPPUNIT_CONFIG in
42354 [\\/]* | ?:[\\/]*)
42355 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42356 ;;
42357 *)
42358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42359for as_dir in $PATH
42360do
42361 IFS=$as_save_IFS
42362 test -z "$as_dir" && as_dir=.
42363 for ac_exec_ext in '' $ac_executable_extensions; do
42364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42365 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42367 break 2
42368 fi
42369done
42370done
42371
42372 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42373 ;;
42374esac
42375fi
42376CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42377
42378if test -n "$CPPUNIT_CONFIG"; then
42379 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42380echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42381else
42382 echo "$as_me:$LINENO: result: no" >&5
42383echo "${ECHO_T}no" >&6
42384fi
42385
42386 cppunit_version_min=1.8.0
42387
42388 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42389echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42390 no_cppunit=""
42391 if test "$CPPUNIT_CONFIG" = "no" ; then
42392 no_cppunit=yes
42393 else
42394 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42395 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42396 cppunit_version=`$CPPUNIT_CONFIG --version`
42397
42398 cppunit_major_version=`echo $cppunit_version | \
42399 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42400 cppunit_minor_version=`echo $cppunit_version | \
42401 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42402 cppunit_micro_version=`echo $cppunit_version | \
42403 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42404
42405 cppunit_major_min=`echo $cppunit_version_min | \
42406 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42407 cppunit_minor_min=`echo $cppunit_version_min | \
42408 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42409 cppunit_micro_min=`echo $cppunit_version_min | \
42410 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42411
42412 cppunit_version_proper=`expr \
42413 $cppunit_major_version \> $cppunit_major_min \| \
42414 $cppunit_major_version \= $cppunit_major_min \& \
42415 $cppunit_minor_version \> $cppunit_minor_min \| \
42416 $cppunit_major_version \= $cppunit_major_min \& \
42417 $cppunit_minor_version \= $cppunit_minor_min \& \
42418 $cppunit_micro_version \>= $cppunit_micro_min `
42419
42420 if test "$cppunit_version_proper" = "1" ; then
42421 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
42422echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
42423 else
42424 echo "$as_me:$LINENO: result: no" >&5
42425echo "${ECHO_T}no" >&6
42426 no_cppunit=yes
42427 fi
42428 fi
42429
42430 if test "x$no_cppunit" = x ; then
c2218763 42431 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
42432 else
42433 CPPUNIT_CFLAGS=""
42434 CPPUNIT_LIBS=""
c2218763 42435 :
a848cd7e
SC
42436 fi
42437
42438
42439
42440
42441
42442for subdir in `echo $SUBDIRS`; do
42443 if test -d ${srcdir}/${subdir} ; then
42444 if test "$wxUSE_GUI" = "yes"; then
42445 if test ${subdir} = "samples"; then
42446 makefiles="samples/Makefile.in $makefiles"
42447 for sample in `echo $SAMPLES_SUBDIRS`; do
42448 if test -d $srcdir/samples/$sample; then
42449 makefiles="samples/$sample/Makefile.in $makefiles"
42450 fi
42451 done
42452 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42453 fi
42454 else if test ${subdir} = "samples"; then
42455 makefiles="samples/Makefile.in samples/console/Makefile.in"
42456 elif test ${subdir} = "utils"; then
6537ccf8
VS
42457 makefiles=""
42458 for util in HelpGen tex2rtf ; do
42459 if test -d $srcdir/utils/$util ; then
42460 makefiles="utils/$util/Makefile.in \
42461 utils/$util/src/Makefile.in \
42462 $makefiles"
42463 fi
42464 done
a848cd7e
SC
42465 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42466 fi
42467 fi
42468
42469 for mkin in $makefiles ; do
42470 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42471 ac_config_files="$ac_config_files $mk"
42472
42473 done
42474 fi
42475done
42476
42477
42478cat >confcache <<\_ACEOF
42479# This file is a shell script that caches the results of configure
42480# tests run on this system so they can be shared between configure
42481# scripts and configure runs, see configure's option --config-cache.
42482# It is not useful on other systems. If it contains results you don't
42483# want to keep, you may remove or edit it.
42484#
42485# config.status only pays attention to the cache file if you give it
42486# the --recheck option to rerun configure.
42487#
42488# `ac_cv_env_foo' variables (set or unset) will be overridden when
42489# loading this file, other *unset* `ac_cv_foo' will be assigned the
42490# following values.
42491
42492_ACEOF
42493
42494# The following way of writing the cache mishandles newlines in values,
42495# but we know of no workaround that is simple, portable, and efficient.
42496# So, don't put newlines in cache variables' values.
42497# Ultrix sh set writes to stderr and can't be redirected directly,
42498# and sets the high bit in the cache file unless we assign to the vars.
42499{
42500 (set) 2>&1 |
42501 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42502 *ac_space=\ *)
42503 # `set' does not quote correctly, so add quotes (double-quote
42504 # substitution turns \\\\ into \\, and sed turns \\ into \).
42505 sed -n \
ac1cb8d3
VS
42506 "s/'/'\\\\''/g;
42507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42508 ;;
42509 *)
42510 # `set' quotes correctly as required by POSIX, so do not add quotes.
42511 sed -n \
ac1cb8d3 42512 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42513 ;;
42514 esac;
42515} |
42516 sed '
42517 t clear
42518 : clear
42519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42520 t end
42521 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42522 : end' >>confcache
42523if diff $cache_file confcache >/dev/null 2>&1; then :; else
42524 if test -w $cache_file; then
42525 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42526 cat confcache >$cache_file
42527 else
42528 echo "not updating unwritable cache $cache_file"
42529 fi
42530fi
42531rm -f confcache
42532
42533test "x$prefix" = xNONE && prefix=$ac_default_prefix
42534# Let make expand exec_prefix.
42535test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42536
42537# VPATH may cause trouble with some makes, so we remove $(srcdir),
42538# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42539# trailing colons and then remove the whole line if VPATH becomes empty
42540# (actually we leave an empty line to preserve line numbers).
42541if test "x$srcdir" = x.; then
ac1cb8d3 42542 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42543s/:*\$(srcdir):*/:/;
42544s/:*\${srcdir}:*/:/;
42545s/:*@srcdir@:*/:/;
ac1cb8d3 42546s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42547s/:*$//;
ac1cb8d3 42548s/^[^=]*=[ ]*$//;
a848cd7e
SC
42549}'
42550fi
42551
42552DEFS=-DHAVE_CONFIG_H
42553
42554ac_libobjs=
42555ac_ltlibobjs=
42556for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42557 # 1. Remove the extension, and $U if already installed.
42558 ac_i=`echo "$ac_i" |
ac1cb8d3 42559 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42560 # 2. Add them.
42561 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42562 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42563done
42564LIBOBJS=$ac_libobjs
42565
42566LTLIBOBJS=$ac_ltlibobjs
42567
42568
42569
42570: ${CONFIG_STATUS=./config.status}
42571ac_clean_files_save=$ac_clean_files
42572ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42573{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42574echo "$as_me: creating $CONFIG_STATUS" >&6;}
42575cat >$CONFIG_STATUS <<_ACEOF
42576#! $SHELL
42577# Generated by $as_me.
42578# Run this file to recreate the current configuration.
42579# Compiler output produced by configure, useful for debugging
42580# configure, is in config.log if it exists.
42581
42582debug=false
42583ac_cs_recheck=false
42584ac_cs_silent=false
42585SHELL=\${CONFIG_SHELL-$SHELL}
42586_ACEOF
42587
42588cat >>$CONFIG_STATUS <<\_ACEOF
42589## --------------------- ##
42590## M4sh Initialization. ##
42591## --------------------- ##
42592
42593# Be Bourne compatible
42594if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42595 emulate sh
42596 NULLCMD=:
42597 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42598 # is contrary to our usage. Disable this feature.
42599 alias -g '${1+"$@"}'='"$@"'
42600elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42601 set -o posix
42602fi
ac1cb8d3 42603DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42604
42605# Support unset when possible.
ac1cb8d3 42606if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42607 as_unset=unset
42608else
42609 as_unset=false
42610fi
42611
42612
42613# Work around bugs in pre-3.0 UWIN ksh.
42614$as_unset ENV MAIL MAILPATH
42615PS1='$ '
42616PS2='> '
42617PS4='+ '
42618
42619# NLS nuisances.
42620for as_var in \
42621 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42622 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42623 LC_TELEPHONE LC_TIME
42624do
ac1cb8d3 42625 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42626 eval $as_var=C; export $as_var
42627 else
42628 $as_unset $as_var
42629 fi
42630done
42631
42632# Required to use basename.
42633if expr a : '\(a\)' >/dev/null 2>&1; then
42634 as_expr=expr
42635else
42636 as_expr=false
42637fi
42638
42639if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42640 as_basename=basename
42641else
42642 as_basename=false
42643fi
42644
42645
42646# Name of the executable.
42647as_me=`$as_basename "$0" ||
42648$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42649 X"$0" : 'X\(//\)$' \| \
42650 X"$0" : 'X\(/\)$' \| \
42651 . : '\(.\)' 2>/dev/null ||
42652echo X/"$0" |
42653 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42654 /^X\/\(\/\/\)$/{ s//\1/; q; }
42655 /^X\/\(\/\).*/{ s//\1/; q; }
42656 s/.*/./; q'`
42657
42658
42659# PATH needs CR, and LINENO needs CR and PATH.
42660# Avoid depending upon Character Ranges.
42661as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42662as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42663as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42664as_cr_digits='0123456789'
42665as_cr_alnum=$as_cr_Letters$as_cr_digits
42666
42667# The user is always right.
42668if test "${PATH_SEPARATOR+set}" != set; then
42669 echo "#! /bin/sh" >conf$$.sh
42670 echo "exit 0" >>conf$$.sh
42671 chmod +x conf$$.sh
42672 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42673 PATH_SEPARATOR=';'
42674 else
42675 PATH_SEPARATOR=:
42676 fi
42677 rm -f conf$$.sh
42678fi
42679
42680
42681 as_lineno_1=$LINENO
42682 as_lineno_2=$LINENO
42683 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42684 test "x$as_lineno_1" != "x$as_lineno_2" &&
42685 test "x$as_lineno_3" = "x$as_lineno_2" || {
42686 # Find who we are. Look in the path if we contain no path at all
42687 # relative or not.
42688 case $0 in
42689 *[\\/]* ) as_myself=$0 ;;
42690 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42691for as_dir in $PATH
42692do
42693 IFS=$as_save_IFS
42694 test -z "$as_dir" && as_dir=.
42695 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42696done
42697
42698 ;;
42699 esac
42700 # We did not find ourselves, most probably we were run as `sh COMMAND'
42701 # in which case we are not to be found in the path.
42702 if test "x$as_myself" = x; then
42703 as_myself=$0
42704 fi
42705 if test ! -f "$as_myself"; then
42706 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42707echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42708 { (exit 1); exit 1; }; }
42709 fi
42710 case $CONFIG_SHELL in
42711 '')
42712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42713for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42714do
42715 IFS=$as_save_IFS
42716 test -z "$as_dir" && as_dir=.
42717 for as_base in sh bash ksh sh5; do
42718 case $as_dir in
42719 /*)
42720 if ("$as_dir/$as_base" -c '
42721 as_lineno_1=$LINENO
42722 as_lineno_2=$LINENO
42723 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42724 test "x$as_lineno_1" != "x$as_lineno_2" &&
42725 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42726 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42727 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42728 CONFIG_SHELL=$as_dir/$as_base
42729 export CONFIG_SHELL
42730 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42731 fi;;
42732 esac
42733 done
42734done
42735;;
42736 esac
42737
42738 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42739 # uniformly replaced by the line number. The first 'sed' inserts a
42740 # line-number line before each line; the second 'sed' does the real
42741 # work. The second script uses 'N' to pair each line-number line
42742 # with the numbered line, and appends trailing '-' during
42743 # substitution so that $LINENO is not a special case at line end.
42744 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42745 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42746 sed '=' <$as_myself |
42747 sed '
42748 N
42749 s,$,-,
42750 : loop
42751 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42752 t loop
42753 s,-$,,
42754 s,^['$as_cr_digits']*\n,,
42755 ' >$as_me.lineno &&
42756 chmod +x $as_me.lineno ||
42757 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42758echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42759 { (exit 1); exit 1; }; }
42760
42761 # Don't try to exec as it changes $[0], causing all sort of problems
42762 # (the dirname of $[0] is not the place where we might find the
42763 # original and so on. Autoconf is especially sensible to this).
42764 . ./$as_me.lineno
42765 # Exit status is that of the last command.
42766 exit
42767}
42768
42769
42770case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42771 *c*,-n*) ECHO_N= ECHO_C='
42772' ECHO_T=' ' ;;
42773 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42774 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42775esac
42776
42777if expr a : '\(a\)' >/dev/null 2>&1; then
42778 as_expr=expr
42779else
42780 as_expr=false
42781fi
42782
42783rm -f conf$$ conf$$.exe conf$$.file
42784echo >conf$$.file
42785if ln -s conf$$.file conf$$ 2>/dev/null; then
42786 # We could just check for DJGPP; but this test a) works b) is more generic
42787 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42788 if test -f conf$$.exe; then
42789 # Don't use ln at all; we don't have any links
42790 as_ln_s='cp -p'
42791 else
42792 as_ln_s='ln -s'
42793 fi
42794elif ln conf$$.file conf$$ 2>/dev/null; then
42795 as_ln_s=ln
42796else
42797 as_ln_s='cp -p'
42798fi
42799rm -f conf$$ conf$$.exe conf$$.file
42800
42801if mkdir -p . 2>/dev/null; then
42802 as_mkdir_p=:
42803else
ac1cb8d3 42804 test -d ./-p && rmdir ./-p
a848cd7e
SC
42805 as_mkdir_p=false
42806fi
42807
42808as_executable_p="test -f"
42809
42810# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42811as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42812
42813# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42814as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42815
42816
42817# IFS
42818# We need space, tab and new line, in precisely that order.
42819as_nl='
42820'
42821IFS=" $as_nl"
42822
42823# CDPATH.
42824$as_unset CDPATH
42825
42826exec 6>&1
42827
42828# Open the log real soon, to keep \$[0] and so on meaningful, and to
42829# report actual input values of CONFIG_FILES etc. instead of their
42830# values after options handling. Logging --version etc. is OK.
42831exec 5>>config.log
42832{
42833 echo
42834 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42835## Running $as_me. ##
42836_ASBOX
42837} >&5
42838cat >&5 <<_CSEOF
42839
81f90336 42840This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 42841generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42842
42843 CONFIG_FILES = $CONFIG_FILES
42844 CONFIG_HEADERS = $CONFIG_HEADERS
42845 CONFIG_LINKS = $CONFIG_LINKS
42846 CONFIG_COMMANDS = $CONFIG_COMMANDS
42847 $ $0 $@
42848
42849_CSEOF
42850echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42851echo >&5
42852_ACEOF
42853
42854# Files that config.status was made for.
42855if test -n "$ac_config_files"; then
42856 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42857fi
42858
42859if test -n "$ac_config_headers"; then
42860 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42861fi
42862
42863if test -n "$ac_config_links"; then
42864 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42865fi
42866
42867if test -n "$ac_config_commands"; then
42868 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42869fi
42870
42871cat >>$CONFIG_STATUS <<\_ACEOF
42872
42873ac_cs_usage="\
42874\`$as_me' instantiates files from templates according to the
42875current configuration.
42876
42877Usage: $0 [OPTIONS] [FILE]...
42878
42879 -h, --help print this help, then exit
42880 -V, --version print version number, then exit
42881 -q, --quiet do not print progress messages
42882 -d, --debug don't remove temporary files
42883 --recheck update $as_me by reconfiguring in the same conditions
42884 --file=FILE[:TEMPLATE]
ac1cb8d3 42885 instantiate the configuration file FILE
a848cd7e 42886 --header=FILE[:TEMPLATE]
ac1cb8d3 42887 instantiate the configuration header FILE
a848cd7e
SC
42888
42889Configuration files:
42890$config_files
42891
42892Configuration headers:
42893$config_headers
42894
42895Configuration commands:
42896$config_commands
42897
42898Report bugs to <bug-autoconf@gnu.org>."
42899_ACEOF
42900
42901cat >>$CONFIG_STATUS <<_ACEOF
42902ac_cs_version="\\
81f90336 42903wxWidgets config.status 2.5.4
ac1cb8d3 42904configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42905 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42906
ac1cb8d3 42907Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42908This config.status script is free software; the Free Software Foundation
42909gives unlimited permission to copy, distribute and modify it."
42910srcdir=$srcdir
42911INSTALL="$INSTALL"
42912_ACEOF
42913
42914cat >>$CONFIG_STATUS <<\_ACEOF
42915# If no file are specified by the user, then we need to provide default
42916# value. By we need to know if files were specified by the user.
42917ac_need_defaults=:
42918while test $# != 0
42919do
42920 case $1 in
42921 --*=*)
42922 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42923 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42924 ac_shift=:
42925 ;;
42926 -*)
42927 ac_option=$1
42928 ac_optarg=$2
42929 ac_shift=shift
42930 ;;
42931 *) # This is not an option, so the user has probably given explicit
42932 # arguments.
42933 ac_option=$1
42934 ac_need_defaults=false;;
42935 esac
42936
42937 case $ac_option in
42938 # Handling of the options.
42939_ACEOF
42940cat >>$CONFIG_STATUS <<\_ACEOF
42941 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42942 ac_cs_recheck=: ;;
42943 --version | --vers* | -V )
42944 echo "$ac_cs_version"; exit 0 ;;
42945 --he | --h)
42946 # Conflict between --help and --header
42947 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42948Try \`$0 --help' for more information." >&5
42949echo "$as_me: error: ambiguous option: $1
42950Try \`$0 --help' for more information." >&2;}
42951 { (exit 1); exit 1; }; };;
42952 --help | --hel | -h )
42953 echo "$ac_cs_usage"; exit 0 ;;
42954 --debug | --d* | -d )
42955 debug=: ;;
42956 --file | --fil | --fi | --f )
42957 $ac_shift
42958 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42959 ac_need_defaults=false;;
42960 --header | --heade | --head | --hea )
42961 $ac_shift
42962 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42963 ac_need_defaults=false;;
42964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42965 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42966 ac_cs_silent=: ;;
42967
42968 # This is an error.
42969 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42970Try \`$0 --help' for more information." >&5
42971echo "$as_me: error: unrecognized option: $1
42972Try \`$0 --help' for more information." >&2;}
42973 { (exit 1); exit 1; }; } ;;
42974
42975 *) ac_config_targets="$ac_config_targets $1" ;;
42976
42977 esac
42978 shift
42979done
42980
42981ac_configure_extra_args=
42982
42983if $ac_cs_silent; then
42984 exec 6>/dev/null
42985 ac_configure_extra_args="$ac_configure_extra_args --silent"
42986fi
42987
42988_ACEOF
42989cat >>$CONFIG_STATUS <<_ACEOF
42990if \$ac_cs_recheck; then
42991 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42992 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42993fi
42994
42995_ACEOF
42996
42997cat >>$CONFIG_STATUS <<_ACEOF
42998#
42999# INIT-COMMANDS section.
43000#
43001
ceec2216
RL
43002 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43003 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43004 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43005 LN_S="${LN_S}"
a848cd7e
SC
43006
43007
43008_ACEOF
43009
43010
43011
43012cat >>$CONFIG_STATUS <<\_ACEOF
43013for ac_config_target in $ac_config_targets
43014do
43015 case "$ac_config_target" in
43016 # Handling of arguments.
ceec2216
RL
43017 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
43018 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
43019 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
43020 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43021 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
43022 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
43023 "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
43024 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43025echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43026 { (exit 1); exit 1; }; };;
43027 esac
43028done
43029
43030# If the user did not use the arguments to specify the items to instantiate,
43031# then the envvar interface is used. Set only those that are not.
43032# We use the long form for the default assignment because of an extremely
43033# bizarre bug on SunOS 4.1.3.
43034if $ac_need_defaults; then
43035 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43036 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43037 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43038fi
43039
43040# Have a temporary directory for convenience. Make it in the build tree
43041# simply because there is no reason to put it here, and in addition,
43042# creating and moving files from /tmp can sometimes cause problems.
43043# Create a temporary directory, and hook for its removal unless debugging.
43044$debug ||
43045{
43046 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43047 trap '{ (exit 1); exit 1; }' 1 2 13 15
43048}
43049
43050# Create a (secure) tmp directory for tmp files.
43051
43052{
43053 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43054 test -n "$tmp" && test -d "$tmp"
43055} ||
43056{
43057 tmp=./confstat$$-$RANDOM
43058 (umask 077 && mkdir $tmp)
43059} ||
43060{
43061 echo "$me: cannot create a temporary directory in ." >&2
43062 { (exit 1); exit 1; }
43063}
43064
43065_ACEOF
43066
43067cat >>$CONFIG_STATUS <<_ACEOF
43068
43069#
43070# CONFIG_FILES section.
43071#
43072
43073# No need to generate the scripts if there are no CONFIG_FILES.
43074# This happens for instance when ./config.status config.h
43075if test -n "\$CONFIG_FILES"; then
43076 # Protect against being on the right side of a sed subst in config.status.
43077 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43078 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43079s,@SHELL@,$SHELL,;t t
43080s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43081s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43082s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43083s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43084s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43085s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43086s,@exec_prefix@,$exec_prefix,;t t
43087s,@prefix@,$prefix,;t t
43088s,@program_transform_name@,$program_transform_name,;t t
43089s,@bindir@,$bindir,;t t
43090s,@sbindir@,$sbindir,;t t
43091s,@libexecdir@,$libexecdir,;t t
43092s,@datadir@,$datadir,;t t
43093s,@sysconfdir@,$sysconfdir,;t t
43094s,@sharedstatedir@,$sharedstatedir,;t t
43095s,@localstatedir@,$localstatedir,;t t
43096s,@libdir@,$libdir,;t t
43097s,@includedir@,$includedir,;t t
43098s,@oldincludedir@,$oldincludedir,;t t
43099s,@infodir@,$infodir,;t t
43100s,@mandir@,$mandir,;t t
43101s,@build_alias@,$build_alias,;t t
43102s,@host_alias@,$host_alias,;t t
43103s,@target_alias@,$target_alias,;t t
43104s,@DEFS@,$DEFS,;t t
43105s,@ECHO_C@,$ECHO_C,;t t
43106s,@ECHO_N@,$ECHO_N,;t t
43107s,@ECHO_T@,$ECHO_T,;t t
43108s,@LIBS@,$LIBS,;t t
43109s,@build@,$build,;t t
43110s,@build_cpu@,$build_cpu,;t t
43111s,@build_vendor@,$build_vendor,;t t
43112s,@build_os@,$build_os,;t t
43113s,@host@,$host,;t t
43114s,@host_cpu@,$host_cpu,;t t
43115s,@host_vendor@,$host_vendor,;t t
43116s,@host_os@,$host_os,;t t
43117s,@target@,$target,;t t
43118s,@target_cpu@,$target_cpu,;t t
43119s,@target_vendor@,$target_vendor,;t t
43120s,@target_os@,$target_os,;t t
43121s,@CC@,$CC,;t t
43122s,@CFLAGS@,$CFLAGS,;t t
43123s,@LDFLAGS@,$LDFLAGS,;t t
43124s,@CPPFLAGS@,$CPPFLAGS,;t t
43125s,@ac_ct_CC@,$ac_ct_CC,;t t
43126s,@EXEEXT@,$EXEEXT,;t t
43127s,@OBJEXT@,$OBJEXT,;t t
43128s,@CPP@,$CPP,;t t
43129s,@EGREP@,$EGREP,;t t
43130s,@CXX@,$CXX,;t t
43131s,@CXXFLAGS@,$CXXFLAGS,;t t
43132s,@ac_ct_CXX@,$ac_ct_CXX,;t t
43133s,@RANLIB@,$RANLIB,;t t
43134s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43135s,@AR@,$AR,;t t
43136s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43137s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43138s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43139s,@STRIP@,$STRIP,;t t
43140s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
43141s,@LN_S@,$LN_S,;t t
43142s,@CXXCPP@,$CXXCPP,;t t
43143s,@subdirs@,$subdirs,;t t
43144s,@PKG_CONFIG@,$PKG_CONFIG,;t t
43145s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
43146s,@GTK_LIBS@,$GTK_LIBS,;t t
43147s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
43148s,@X_CFLAGS@,$X_CFLAGS,;t t
43149s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
43150s,@X_LIBS@,$X_LIBS,;t t
43151s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
43152s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
43153s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
43154s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
43155s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
43156s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
43157s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
43158s,@RESCOMP@,$RESCOMP,;t t
43159s,@DEREZ@,$DEREZ,;t t
43160s,@SETFILE@,$SETFILE,;t t
43161s,@LIBICONV@,$LIBICONV,;t t
43162s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
43163s,@SDL_CONFIG@,$SDL_CONFIG,;t t
43164s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
43165s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
43166s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
43167s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
43168s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
43169s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
43170s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
43171s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
43172s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
43173s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
43174s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
43175s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
43176s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
43177s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
43178s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
43179s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
43180s,@VENDOR@,$VENDOR,;t t
43181s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
43182s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
43183s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
43184s,@WXUNIV@,$WXUNIV,;t t
43185s,@MONOLITHIC@,$MONOLITHIC,;t t
43186s,@USE_PLUGINS@,$USE_PLUGINS,;t t
43187s,@EXTRALIBS@,$EXTRALIBS,;t t
43188s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
43189s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
43190s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
43191s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
43192s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
43193s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
43194s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 43195s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
43196s,@UNICODE@,$UNICODE,;t t
43197s,@BUILD@,$BUILD,;t t
43198s,@DEBUG_INFO@,$DEBUG_INFO,;t t
43199s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
43200s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
43201s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
43202s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
43203s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
43204s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
43205s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
43206s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
43207s,@SET_MAKE@,$SET_MAKE,;t t
43208s,@MAKE_SET@,$MAKE_SET,;t t
43209s,@ac_ct_AR@,$ac_ct_AR,;t t
43210s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43211s,@NM@,$NM,;t t
43212s,@ac_ct_NM@,$ac_ct_NM,;t t
43213s,@INSTALL_DIR@,$INSTALL_DIR,;t t
43214s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
43215s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
43216s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
43217s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
43218s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 43219s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
43220s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
43221s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 43222s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
43223s,@SO_SUFFIX@,$SO_SUFFIX,;t t
43224s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
43225s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
43226s,@LIBPREFIX@,$LIBPREFIX,;t t
43227s,@LIBEXT@,$LIBEXT,;t t
43228s,@DLLPREFIX@,$DLLPREFIX,;t t
43229s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
43230s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
43231s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
43232s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
43233s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
43234s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
43235s,@PIC_FLAG@,$PIC_FLAG,;t t
43236s,@USE_SOVERSION@,$USE_SOVERSION,;t t
43237s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
43238s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
43239s,@USE_MACVERSION@,$USE_MACVERSION,;t t
43240s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
43241s,@SONAME_FLAG@,$SONAME_FLAG,;t t
43242s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
43243s,@GCC_PCH@,$GCC_PCH,;t t
43244s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
43245s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
43246s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
43247s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
43248s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
43249s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
43250s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
43251s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
43252s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
43253s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
43254s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
43255s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
43256s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
43257s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
43258s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
43259s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
43260s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
43261s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 43262s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 43263s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 43264s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 43265s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
43266s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
43267s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 43268s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 43269s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 43270s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 43271s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
43272s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
43273s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
43274s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
43275s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
43276s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
43277s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
43278s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
43279s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 43280s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
43281s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
43282s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
43283s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 43284s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 43285s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
43286s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
43287s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
43288s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
43289s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 43290s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
43291s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
43292s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
43293s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
43294s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
43295s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
43296s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
43297s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
43298s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
43299s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
43300s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
43301s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
43302s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
43303s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
43304s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43305s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43306s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43307s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
43308s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
43309s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
43310s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
43311s,@COND_SHARED_1@,$COND_SHARED_1,;t t
43312s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 43313s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 43314s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 43315s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
43316s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43317s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43318s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43319s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43320s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43321s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43322s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
43323s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43324s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43325s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43326s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43327s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43328s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43329s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43330s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
43331s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43332s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43333s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
43334s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43335s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43336s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43337s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43338s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43339s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43340s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43341s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43342s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43343s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43344s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43345s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43346s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43347s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43348s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 43349s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 43350s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
43351s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43352s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43353s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43354s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43355s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 43356s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 43357s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 43358s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
43359s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43360s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43361s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43362s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43363s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43364s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43365s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43366s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 43367s,@SHARED@,$SHARED,;t t
a848cd7e
SC
43368s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43369s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
43370s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43371s,@USE_GUI@,$USE_GUI,;t t
43372s,@AFMINSTALL@,$AFMINSTALL,;t t
43373s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43374s,@TOOLKIT@,$TOOLKIT,;t t
43375s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 43376s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 43377s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
43378s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43379s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 43380s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
43381s,@WIDGET_SET@,$WIDGET_SET,;t t
43382s,@WX_RELEASE@,$WX_RELEASE,;t t
43383s,@WX_VERSION@,$WX_VERSION,;t t
43384s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
43385s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
43386s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 43387s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
43388s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43389s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43390s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43391s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 43392s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
43393s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43394s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 43395s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 43396s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
43397s,@DISTDIR@,$DISTDIR,;t t
43398s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43399s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
43400s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43401s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43402s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43403s,@RESFLAGS@,$RESFLAGS,;t t
43404s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43405s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43406s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43407s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43408s,@MACRESCOMP@,$MACRESCOMP,;t t
43409s,@MACSETFILE@,$MACSETFILE,;t t
43410s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43411s,@GCC@,$GCC,;t t
a848cd7e 43412s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
43413s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43414s,@LIBOBJS@,$LIBOBJS,;t t
43415s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43416CEOF
43417
43418_ACEOF
43419
43420 cat >>$CONFIG_STATUS <<\_ACEOF
43421 # Split the substitutions into bite-sized pieces for seds with
43422 # small command number limits, like on Digital OSF/1 and HP-UX.
43423 ac_max_sed_lines=48
43424 ac_sed_frag=1 # Number of current file.
43425 ac_beg=1 # First line for current file.
43426 ac_end=$ac_max_sed_lines # Line after last line for current file.
43427 ac_more_lines=:
43428 ac_sed_cmds=
43429 while $ac_more_lines; do
43430 if test $ac_beg -gt 1; then
43431 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43432 else
43433 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43434 fi
43435 if test ! -s $tmp/subs.frag; then
43436 ac_more_lines=false
43437 else
43438 # The purpose of the label and of the branching condition is to
43439 # speed up the sed processing (if there are no `@' at all, there
43440 # is no need to browse any of the substitutions).
43441 # These are the two extra sed commands mentioned above.
43442 (echo ':t
43443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43444 if test -z "$ac_sed_cmds"; then
ac1cb8d3 43445 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 43446 else
ac1cb8d3 43447 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43448 fi
43449 ac_sed_frag=`expr $ac_sed_frag + 1`
43450 ac_beg=$ac_end
43451 ac_end=`expr $ac_end + $ac_max_sed_lines`
43452 fi
43453 done
43454 if test -z "$ac_sed_cmds"; then
43455 ac_sed_cmds=cat
43456 fi
43457fi # test -n "$CONFIG_FILES"
43458
43459_ACEOF
43460cat >>$CONFIG_STATUS <<\_ACEOF
43461for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43462 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43463 case $ac_file in
43464 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43465 cat >$tmp/stdin
43466 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43467 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43468 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43469 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43470 * ) ac_file_in=$ac_file.in ;;
43471 esac
43472
43473 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43474 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43475$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43476 X"$ac_file" : 'X\(//\)[^/]' \| \
43477 X"$ac_file" : 'X\(//\)$' \| \
43478 X"$ac_file" : 'X\(/\)' \| \
43479 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43480echo X"$ac_file" |
43481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43483 /^X\(\/\/\)$/{ s//\1/; q; }
43484 /^X\(\/\).*/{ s//\1/; q; }
43485 s/.*/./; q'`
43486 { if $as_mkdir_p; then
43487 mkdir -p "$ac_dir"
43488 else
43489 as_dir="$ac_dir"
43490 as_dirs=
43491 while test ! -d "$as_dir"; do
43492 as_dirs="$as_dir $as_dirs"
43493 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43494$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43495 X"$as_dir" : 'X\(//\)[^/]' \| \
43496 X"$as_dir" : 'X\(//\)$' \| \
43497 X"$as_dir" : 'X\(/\)' \| \
43498 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43499echo X"$as_dir" |
43500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43502 /^X\(\/\/\)$/{ s//\1/; q; }
43503 /^X\(\/\).*/{ s//\1/; q; }
43504 s/.*/./; q'`
43505 done
43506 test ! -n "$as_dirs" || mkdir $as_dirs
43507 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43508echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43509 { (exit 1); exit 1; }; }; }
43510
43511 ac_builddir=.
43512
43513if test "$ac_dir" != .; then
43514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43515 # A "../" for each directory in $ac_dir_suffix.
43516 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43517else
43518 ac_dir_suffix= ac_top_builddir=
43519fi
43520
43521case $srcdir in
43522 .) # No --srcdir option. We are building in place.
43523 ac_srcdir=.
43524 if test -z "$ac_top_builddir"; then
43525 ac_top_srcdir=.
43526 else
43527 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43528 fi ;;
43529 [\\/]* | ?:[\\/]* ) # Absolute path.
43530 ac_srcdir=$srcdir$ac_dir_suffix;
43531 ac_top_srcdir=$srcdir ;;
43532 *) # Relative path.
43533 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43534 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43535esac
ac1cb8d3
VS
43536
43537# Do not use `cd foo && pwd` to compute absolute paths, because
43538# the directories may not exist.
43539case `pwd` in
43540.) ac_abs_builddir="$ac_dir";;
43541*)
43542 case "$ac_dir" in
43543 .) ac_abs_builddir=`pwd`;;
43544 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43545 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43546 esac;;
43547esac
43548case $ac_abs_builddir in
43549.) ac_abs_top_builddir=${ac_top_builddir}.;;
43550*)
43551 case ${ac_top_builddir}. in
43552 .) ac_abs_top_builddir=$ac_abs_builddir;;
43553 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43554 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43555 esac;;
43556esac
43557case $ac_abs_builddir in
43558.) ac_abs_srcdir=$ac_srcdir;;
43559*)
43560 case $ac_srcdir in
43561 .) ac_abs_srcdir=$ac_abs_builddir;;
43562 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43563 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43564 esac;;
43565esac
43566case $ac_abs_builddir in
43567.) ac_abs_top_srcdir=$ac_top_srcdir;;
43568*)
43569 case $ac_top_srcdir in
43570 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43571 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43572 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43573 esac;;
43574esac
a848cd7e
SC
43575
43576
43577 case $INSTALL in
43578 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43579 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43580 esac
43581
89be85c2
VS
43582 if test x"$ac_file" != x-; then
43583 { echo "$as_me:$LINENO: creating $ac_file" >&5
43584echo "$as_me: creating $ac_file" >&6;}
43585 rm -f "$ac_file"
43586 fi
a848cd7e
SC
43587 # Let's still pretend it is `configure' which instantiates (i.e., don't
43588 # use $as_me), people would be surprised to read:
43589 # /* config.h. Generated by config.status. */
43590 if test x"$ac_file" = x-; then
43591 configure_input=
43592 else
43593 configure_input="$ac_file. "
43594 fi
43595 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43596 sed 's,.*/,,'` by configure."
a848cd7e
SC
43597
43598 # First look for the input files in the build tree, otherwise in the
43599 # src tree.
43600 ac_file_inputs=`IFS=:
43601 for f in $ac_file_in; do
43602 case $f in
43603 -) echo $tmp/stdin ;;
43604 [\\/$]*)
ac1cb8d3
VS
43605 # Absolute (can't be DOS-style, as IFS=:)
43606 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43607echo "$as_me: error: cannot find input file: $f" >&2;}
43608 { (exit 1); exit 1; }; }
ac1cb8d3 43609 echo "$f";;
a848cd7e 43610 *) # Relative
ac1cb8d3
VS
43611 if test -f "$f"; then
43612 # Build tree
43613 echo "$f"
43614 elif test -f "$srcdir/$f"; then
43615 # Source tree
43616 echo "$srcdir/$f"
43617 else
43618 # /dev/null tree
43619 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43620echo "$as_me: error: cannot find input file: $f" >&2;}
43621 { (exit 1); exit 1; }; }
ac1cb8d3 43622 fi;;
a848cd7e
SC
43623 esac
43624 done` || { (exit 1); exit 1; }
43625_ACEOF
43626cat >>$CONFIG_STATUS <<_ACEOF
43627 sed "$ac_vpsub
43628$extrasub
43629_ACEOF
43630cat >>$CONFIG_STATUS <<\_ACEOF
43631:t
43632/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43633s,@configure_input@,$configure_input,;t t
43634s,@srcdir@,$ac_srcdir,;t t
43635s,@abs_srcdir@,$ac_abs_srcdir,;t t
43636s,@top_srcdir@,$ac_top_srcdir,;t t
43637s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43638s,@builddir@,$ac_builddir,;t t
43639s,@abs_builddir@,$ac_abs_builddir,;t t
43640s,@top_builddir@,$ac_top_builddir,;t t
43641s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43642s,@INSTALL@,$ac_INSTALL,;t t
43643" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43644 rm -f $tmp/stdin
43645 if test x"$ac_file" != x-; then
43646 mv $tmp/out $ac_file
43647 else
43648 cat $tmp/out
43649 rm -f $tmp/out
43650 fi
43651
ceec2216
RL
43652 # Run the commands associated with the file.
43653 case $ac_file in
43654 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43655 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43656 esac
a848cd7e
SC
43657done
43658_ACEOF
43659cat >>$CONFIG_STATUS <<\_ACEOF
43660
43661#
43662# CONFIG_HEADER section.
43663#
43664
43665# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43666# NAME is the cpp macro being defined and VALUE is the value it is being given.
43667#
43668# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43669ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43670ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43671ac_dC=' '
43672ac_dD=',;t'
43673# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43674ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43675ac_uB='$,\1#\2define\3'
43676ac_uC=' '
43677ac_uD=',;t'
43678
43679for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43681 case $ac_file in
43682 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43683 cat >$tmp/stdin
43684 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43686 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43688 * ) ac_file_in=$ac_file.in ;;
43689 esac
43690
43691 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43692echo "$as_me: creating $ac_file" >&6;}
43693
43694 # First look for the input files in the build tree, otherwise in the
43695 # src tree.
43696 ac_file_inputs=`IFS=:
43697 for f in $ac_file_in; do
43698 case $f in
43699 -) echo $tmp/stdin ;;
43700 [\\/$]*)
ac1cb8d3
VS
43701 # Absolute (can't be DOS-style, as IFS=:)
43702 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43703echo "$as_me: error: cannot find input file: $f" >&2;}
43704 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43705 # Do quote $f, to prevent DOS paths from being IFS'd.
43706 echo "$f";;
a848cd7e 43707 *) # Relative
ac1cb8d3
VS
43708 if test -f "$f"; then
43709 # Build tree
43710 echo "$f"
43711 elif test -f "$srcdir/$f"; then
43712 # Source tree
43713 echo "$srcdir/$f"
43714 else
43715 # /dev/null tree
43716 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43717echo "$as_me: error: cannot find input file: $f" >&2;}
43718 { (exit 1); exit 1; }; }
ac1cb8d3 43719 fi;;
a848cd7e
SC
43720 esac
43721 done` || { (exit 1); exit 1; }
43722 # Remove the trailing spaces.
ac1cb8d3 43723 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43724
43725_ACEOF
43726
43727# Transform confdefs.h into two sed scripts, `conftest.defines' and
43728# `conftest.undefs', that substitutes the proper values into
43729# config.h.in to produce config.h. The first handles `#define'
43730# templates, and the second `#undef' templates.
43731# And first: Protect against being on the right side of a sed subst in
43732# config.status. Protect against being in an unquoted here document
43733# in config.status.
43734rm -f conftest.defines conftest.undefs
43735# Using a here document instead of a string reduces the quoting nightmare.
43736# Putting comments in sed scripts is not portable.
43737#
43738# `end' is used to avoid that the second main sed command (meant for
43739# 0-ary CPP macros) applies to n-ary macro definitions.
43740# See the Autoconf documentation for `clear'.
43741cat >confdef2sed.sed <<\_ACEOF
43742s/[\\&,]/\\&/g
43743s,[\\$`],\\&,g
43744t clear
43745: clear
ac1cb8d3 43746s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43747t end
ac1cb8d3 43748s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43749: end
43750_ACEOF
43751# If some macros were called several times there might be several times
43752# the same #defines, which is useless. Nevertheless, we may not want to
43753# sort them, since we want the *last* AC-DEFINE to be honored.
43754uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43755sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43756rm -f confdef2sed.sed
43757
43758# This sed command replaces #undef with comments. This is necessary, for
43759# example, in the case of _POSIX_SOURCE, which is predefined and required
43760# on some systems where configure will not decide to define it.
43761cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43762s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43763_ACEOF
43764
43765# Break up conftest.defines because some shells have a limit on the size
43766# of here documents, and old seds have small limits too (100 cmds).
43767echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43768echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43769echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43770echo ' :' >>$CONFIG_STATUS
43771rm -f conftest.tail
43772while grep . conftest.defines >/dev/null
43773do
43774 # Write a limited-size here document to $tmp/defines.sed.
43775 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43776 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43777 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43778 # Work around the forget-to-reset-the-flag bug.
43779 echo 't clr' >>$CONFIG_STATUS
43780 echo ': clr' >>$CONFIG_STATUS
43781 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43782 echo 'CEOF
43783 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43784 rm -f $tmp/in
43785 mv $tmp/out $tmp/in
43786' >>$CONFIG_STATUS
43787 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43788 rm -f conftest.defines
43789 mv conftest.tail conftest.defines
43790done
43791rm -f conftest.defines
43792echo ' fi # grep' >>$CONFIG_STATUS
43793echo >>$CONFIG_STATUS
43794
43795# Break up conftest.undefs because some shells have a limit on the size
43796# of here documents, and old seds have small limits too (100 cmds).
43797echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43798rm -f conftest.tail
43799while grep . conftest.undefs >/dev/null
43800do
43801 # Write a limited-size here document to $tmp/undefs.sed.
43802 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43803 # Speed up: don't consider the non `#undef'
ac1cb8d3 43804 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43805 # Work around the forget-to-reset-the-flag bug.
43806 echo 't clr' >>$CONFIG_STATUS
43807 echo ': clr' >>$CONFIG_STATUS
43808 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43809 echo 'CEOF
43810 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43811 rm -f $tmp/in
43812 mv $tmp/out $tmp/in
43813' >>$CONFIG_STATUS
43814 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43815 rm -f conftest.undefs
43816 mv conftest.tail conftest.undefs
43817done
43818rm -f conftest.undefs
43819
43820cat >>$CONFIG_STATUS <<\_ACEOF
43821 # Let's still pretend it is `configure' which instantiates (i.e., don't
43822 # use $as_me), people would be surprised to read:
43823 # /* config.h. Generated by config.status. */
43824 if test x"$ac_file" = x-; then
43825 echo "/* Generated by configure. */" >$tmp/config.h
43826 else
43827 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43828 fi
43829 cat $tmp/in >>$tmp/config.h
43830 rm -f $tmp/in
43831 if test x"$ac_file" != x-; then
43832 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43833 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43834echo "$as_me: $ac_file is unchanged" >&6;}
43835 else
43836 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43837$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43838 X"$ac_file" : 'X\(//\)[^/]' \| \
43839 X"$ac_file" : 'X\(//\)$' \| \
43840 X"$ac_file" : 'X\(/\)' \| \
43841 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43842echo X"$ac_file" |
43843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43845 /^X\(\/\/\)$/{ s//\1/; q; }
43846 /^X\(\/\).*/{ s//\1/; q; }
43847 s/.*/./; q'`
43848 { if $as_mkdir_p; then
43849 mkdir -p "$ac_dir"
43850 else
43851 as_dir="$ac_dir"
43852 as_dirs=
43853 while test ! -d "$as_dir"; do
43854 as_dirs="$as_dir $as_dirs"
43855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43857 X"$as_dir" : 'X\(//\)[^/]' \| \
43858 X"$as_dir" : 'X\(//\)$' \| \
43859 X"$as_dir" : 'X\(/\)' \| \
43860 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43861echo X"$as_dir" |
43862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43864 /^X\(\/\/\)$/{ s//\1/; q; }
43865 /^X\(\/\).*/{ s//\1/; q; }
43866 s/.*/./; q'`
43867 done
43868 test ! -n "$as_dirs" || mkdir $as_dirs
43869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43870echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43871 { (exit 1); exit 1; }; }; }
43872
43873 rm -f $ac_file
43874 mv $tmp/config.h $ac_file
43875 fi
43876 else
43877 cat $tmp/config.h
43878 rm -f $tmp/config.h
43879 fi
43880done
43881_ACEOF
43882cat >>$CONFIG_STATUS <<\_ACEOF
43883
43884#
43885# CONFIG_COMMANDS section.
43886#
43887for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43888 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43889 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43890 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43891$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43892 X"$ac_dest" : 'X\(//\)[^/]' \| \
43893 X"$ac_dest" : 'X\(//\)$' \| \
43894 X"$ac_dest" : 'X\(/\)' \| \
43895 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43896echo X"$ac_dest" |
43897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43899 /^X\(\/\/\)$/{ s//\1/; q; }
43900 /^X\(\/\).*/{ s//\1/; q; }
43901 s/.*/./; q'`
ac1cb8d3
VS
43902 { if $as_mkdir_p; then
43903 mkdir -p "$ac_dir"
43904 else
43905 as_dir="$ac_dir"
43906 as_dirs=
43907 while test ! -d "$as_dir"; do
43908 as_dirs="$as_dir $as_dirs"
43909 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43911 X"$as_dir" : 'X\(//\)[^/]' \| \
43912 X"$as_dir" : 'X\(//\)$' \| \
43913 X"$as_dir" : 'X\(/\)' \| \
43914 . : '\(.\)' 2>/dev/null ||
43915echo X"$as_dir" |
43916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43918 /^X\(\/\/\)$/{ s//\1/; q; }
43919 /^X\(\/\).*/{ s//\1/; q; }
43920 s/.*/./; q'`
43921 done
43922 test ! -n "$as_dirs" || mkdir $as_dirs
43923 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43924echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43925 { (exit 1); exit 1; }; }; }
43926
a848cd7e
SC
43927 ac_builddir=.
43928
43929if test "$ac_dir" != .; then
43930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43931 # A "../" for each directory in $ac_dir_suffix.
43932 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43933else
43934 ac_dir_suffix= ac_top_builddir=
43935fi
43936
43937case $srcdir in
43938 .) # No --srcdir option. We are building in place.
43939 ac_srcdir=.
43940 if test -z "$ac_top_builddir"; then
43941 ac_top_srcdir=.
43942 else
43943 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43944 fi ;;
43945 [\\/]* | ?:[\\/]* ) # Absolute path.
43946 ac_srcdir=$srcdir$ac_dir_suffix;
43947 ac_top_srcdir=$srcdir ;;
43948 *) # Relative path.
43949 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43950 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43951esac
ac1cb8d3
VS
43952
43953# Do not use `cd foo && pwd` to compute absolute paths, because
43954# the directories may not exist.
43955case `pwd` in
43956.) ac_abs_builddir="$ac_dir";;
43957*)
43958 case "$ac_dir" in
43959 .) ac_abs_builddir=`pwd`;;
43960 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43961 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43962 esac;;
43963esac
43964case $ac_abs_builddir in
43965.) ac_abs_top_builddir=${ac_top_builddir}.;;
43966*)
43967 case ${ac_top_builddir}. in
43968 .) ac_abs_top_builddir=$ac_abs_builddir;;
43969 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43970 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43971 esac;;
43972esac
43973case $ac_abs_builddir in
43974.) ac_abs_srcdir=$ac_srcdir;;
43975*)
43976 case $ac_srcdir in
43977 .) ac_abs_srcdir=$ac_abs_builddir;;
43978 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43979 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43980 esac;;
43981esac
43982case $ac_abs_builddir in
43983.) ac_abs_top_srcdir=$ac_top_srcdir;;
43984*)
43985 case $ac_top_srcdir in
43986 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43987 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43988 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43989 esac;;
43990esac
a848cd7e
SC
43991
43992
43993 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43994echo "$as_me: executing $ac_dest commands" >&6;}
43995 case $ac_dest in
ceec2216
RL
43996 wx-config ) rm -f wx-config
43997 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43998 ;;
a848cd7e
SC
43999 esac
44000done
44001_ACEOF
44002
44003cat >>$CONFIG_STATUS <<\_ACEOF
44004
44005{ (exit 0); exit 0; }
44006_ACEOF
44007chmod +x $CONFIG_STATUS
44008ac_clean_files=$ac_clean_files_save
44009
44010
44011# configure is writing to config.log, and then calls config.status.
44012# config.status does its own redirection, appending to config.log.
44013# Unfortunately, on DOS this fails, as config.log is still kept open
44014# by configure, so config.status won't be able to write to it; its
44015# output is simply discarded. So we exec the FD to /dev/null,
44016# effectively closing config.log, so it can be properly (re)opened and
44017# appended to by config.status. When coming back to configure, we
44018# need to make the FD available again.
44019if test "$no_create" != yes; then
44020 ac_cs_success=:
44021 ac_config_status_args=
44022 test "$silent" = yes &&
44023 ac_config_status_args="$ac_config_status_args --quiet"
44024 exec 5>/dev/null
44025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44026 exec 5>>config.log
44027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44028 # would make configure fail if this is the last instruction.
44029 $ac_cs_success || { (exit 1); exit 1; }
44030fi
44031
44032#
44033# CONFIG_SUBDIRS section.
44034#
44035if test "$no_recursion" != yes; then
44036
44037 # Remove --cache-file and --srcdir arguments so they do not pile up.
44038 ac_sub_configure_args=
44039 ac_prev=
44040 for ac_arg in $ac_configure_args; do
44041 if test -n "$ac_prev"; then
44042 ac_prev=
44043 continue
44044 fi
44045 case $ac_arg in
44046 -cache-file | --cache-file | --cache-fil | --cache-fi \
44047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44048 ac_prev=cache_file ;;
44049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44051 | --c=*)
44052 ;;
44053 --config-cache | -C)
44054 ;;
44055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44056 ac_prev=srcdir ;;
44057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44058 ;;
44059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44060 ac_prev=prefix ;;
44061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44062 ;;
44063 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
44064 esac
44065 done
44066
44067 # Always prepend --prefix to ensure using the same prefix
44068 # in subdir configurations.
44069 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
44070
44071 ac_popdir=`pwd`
44072 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44073
44074 # Do not complain, so a configure script can configure whichever
44075 # parts of a large source tree are present.
44076 test -d $srcdir/$ac_dir || continue
44077
44078 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
44079echo "$as_me: configuring in $ac_dir" >&6;}
44080 { if $as_mkdir_p; then
44081 mkdir -p "$ac_dir"
44082 else
44083 as_dir="$ac_dir"
44084 as_dirs=
44085 while test ! -d "$as_dir"; do
44086 as_dirs="$as_dir $as_dirs"
44087 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44088$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44089 X"$as_dir" : 'X\(//\)[^/]' \| \
44090 X"$as_dir" : 'X\(//\)$' \| \
44091 X"$as_dir" : 'X\(/\)' \| \
44092 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44093echo X"$as_dir" |
44094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44096 /^X\(\/\/\)$/{ s//\1/; q; }
44097 /^X\(\/\).*/{ s//\1/; q; }
44098 s/.*/./; q'`
44099 done
44100 test ! -n "$as_dirs" || mkdir $as_dirs
44101 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44102echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44103 { (exit 1); exit 1; }; }; }
44104
44105 ac_builddir=.
44106
44107if test "$ac_dir" != .; then
44108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44109 # A "../" for each directory in $ac_dir_suffix.
44110 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44111else
44112 ac_dir_suffix= ac_top_builddir=
44113fi
44114
44115case $srcdir in
44116 .) # No --srcdir option. We are building in place.
44117 ac_srcdir=.
44118 if test -z "$ac_top_builddir"; then
44119 ac_top_srcdir=.
44120 else
44121 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44122 fi ;;
44123 [\\/]* | ?:[\\/]* ) # Absolute path.
44124 ac_srcdir=$srcdir$ac_dir_suffix;
44125 ac_top_srcdir=$srcdir ;;
44126 *) # Relative path.
44127 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44128 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44129esac
ac1cb8d3
VS
44130
44131# Do not use `cd foo && pwd` to compute absolute paths, because
44132# the directories may not exist.
44133case `pwd` in
44134.) ac_abs_builddir="$ac_dir";;
44135*)
44136 case "$ac_dir" in
44137 .) ac_abs_builddir=`pwd`;;
44138 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44139 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44140 esac;;
44141esac
44142case $ac_abs_builddir in
44143.) ac_abs_top_builddir=${ac_top_builddir}.;;
44144*)
44145 case ${ac_top_builddir}. in
44146 .) ac_abs_top_builddir=$ac_abs_builddir;;
44147 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44148 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44149 esac;;
44150esac
44151case $ac_abs_builddir in
44152.) ac_abs_srcdir=$ac_srcdir;;
44153*)
44154 case $ac_srcdir in
44155 .) ac_abs_srcdir=$ac_abs_builddir;;
44156 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44157 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44158 esac;;
44159esac
44160case $ac_abs_builddir in
44161.) ac_abs_top_srcdir=$ac_top_srcdir;;
44162*)
44163 case $ac_top_srcdir in
44164 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44165 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44166 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44167 esac;;
44168esac
a848cd7e
SC
44169
44170
44171 cd $ac_dir
44172
44173 # Check for guested configure; otherwise get Cygnus style configure.
44174 if test -f $ac_srcdir/configure.gnu; then
44175 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
44176 elif test -f $ac_srcdir/configure; then
44177 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
44178 elif test -f $ac_srcdir/configure.in; then
44179 ac_sub_configure=$ac_configure
44180 else
44181 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44182echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44183 ac_sub_configure=
44184 fi
44185
44186 # The recursion is here.
44187 if test -n "$ac_sub_configure"; then
44188 # Make the cache file name correct relative to the subdirectory.
44189 case $cache_file in
44190 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44191 *) # Relative path.
ac1cb8d3 44192 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
44193 esac
44194
44195 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44196echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44197 # The eval makes quoting arguments work.
44198 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
44199 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
44200 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
44201echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44202 { (exit 1); exit 1; }; }
44203 fi
44204
89be85c2 44205 cd $ac_popdir
a848cd7e
SC
44206 done
44207fi
44208
44209
44210echo
77ffb593 44211echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 44212echo ""
4d4ff94c 44213echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 44214echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 44215
77ffb593
JS
44216echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
44217echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
44218echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 44219
77ffb593
JS
44220echo " What level of wxWidgets compatibility should be enabled?"
44221echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
44222echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 44223
77ffb593 44224echo " Which libraries should wxWidgets use?"
a848cd7e
SC
44225echo " jpeg ${wxUSE_LIBJPEG-none}"
44226echo " png ${wxUSE_LIBPNG-none}"
44227echo " regex ${wxUSE_REGEX}"
44228echo " tiff ${wxUSE_LIBTIFF-none}"
44229if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
44230echo " xpm ${wxUSE_LIBXPM-none}"
44231fi
44232echo " zlib ${wxUSE_ZLIB}"
44233echo " odbc ${wxUSE_ODBC}"
44234echo " expat ${wxUSE_EXPAT}"
44235echo " libmspack ${wxUSE_LIBMSPACK}"
44236echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 44237echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
44238
44239echo ""
44240