]> git.saurik.com Git - wxWidgets.git/blame - configure
Force OMF mode for DLL builds.
[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
1027 --enable-joystick use wxJoystick (Linux only)
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
12782 if test "$wxUSE_OMF" = "yes"; then
de59c161 12783 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12784 fi
12785 ;;
12786 *)
12787
12788
12789
12790 ac_ext=cc
12791ac_cpp='$CXXCPP $CPPFLAGS'
12792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12795
12796
95986553 12797 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
12798echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12799if test "${ac_cv_string_strcasecmp+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801else
12802
12803 cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h. */
12809
12810 #include <string.h>
12811
12812int
12813main ()
12814{
12815
12816 strcasecmp("foo", "bar");
12817
12818 ;
12819 return 0;
12820}
12821_ACEOF
12822rm -f conftest.$ac_objext conftest$ac_exeext
12823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12824 (eval $ac_link) 2>conftest.er1
a848cd7e 12825 ac_status=$?
ac1cb8d3
VS
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
a848cd7e
SC
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
89be85c2
VS
12831 { ac_try='test -z "$ac_cxx_werror_flag"
12832 || test ! -s conftest.err'
ac1cb8d3
VS
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 ac_cv_string_strcasecmp=yes
12845else
12846 echo "$as_me: failed program was:" >&5
12847sed 's/^/| /' conftest.$ac_ext >&5
12848
12849ac_cv_string_strcasecmp=no
12850
12851fi
ac1cb8d3
VS
12852rm -f conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12854
12855fi
12856echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12857echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12858
12859 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12860 cat >>confdefs.h <<\_ACEOF
12861#define HAVE_STRCASECMP_IN_STRING_H 1
12862_ACEOF
12863
12864 else
12865 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12866echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12867if test "${ac_cv_strings_strcasecmp+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869else
12870
12871 cat >conftest.$ac_ext <<_ACEOF
12872/* confdefs.h. */
12873_ACEOF
12874cat confdefs.h >>conftest.$ac_ext
12875cat >>conftest.$ac_ext <<_ACEOF
12876/* end confdefs.h. */
12877
12878 #include <strings.h>
12879
12880int
12881main ()
12882{
12883
12884 strcasecmp("foo", "bar");
12885
12886 ;
12887 return 0;
12888}
12889_ACEOF
12890rm -f conftest.$ac_objext conftest$ac_exeext
12891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12892 (eval $ac_link) 2>conftest.er1
a848cd7e 12893 ac_status=$?
ac1cb8d3
VS
12894 grep -v '^ *+' conftest.er1 >conftest.err
12895 rm -f conftest.er1
12896 cat conftest.err >&5
a848cd7e
SC
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
89be85c2
VS
12899 { ac_try='test -z "$ac_cxx_werror_flag"
12900 || test ! -s conftest.err'
ac1cb8d3
VS
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_cv_strings_strcasecmp=yes
12913else
12914 echo "$as_me: failed program was:" >&5
12915sed 's/^/| /' conftest.$ac_ext >&5
12916
12917ac_cv_strings_strcasecmp=no
12918
12919fi
ac1cb8d3
VS
12920rm -f conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12922
12923fi
12924echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12925echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12926
0c3c69fc 12927 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12928 cat >>confdefs.h <<\_ACEOF
12929#define HAVE_STRCASECMP_IN_STRINGS_H 1
12930_ACEOF
12931
12932 else
12933 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12934echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12935 { (exit 1); exit 1; }; }
12936 fi
12937 fi
12938
12939 ac_ext=c
12940ac_cpp='$CPP $CPPFLAGS'
12941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945 ;;
12946esac
12947
12948
12949echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12950echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12951if test "${ac_cv_header_stdc+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12953else
12954 cat >conftest.$ac_ext <<_ACEOF
12955/* confdefs.h. */
12956_ACEOF
12957cat confdefs.h >>conftest.$ac_ext
12958cat >>conftest.$ac_ext <<_ACEOF
12959/* end confdefs.h. */
12960#include <stdlib.h>
12961#include <stdarg.h>
12962#include <string.h>
12963#include <float.h>
12964
12965int
12966main ()
12967{
12968
12969 ;
12970 return 0;
12971}
12972_ACEOF
12973rm -f conftest.$ac_objext
12974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12975 (eval $ac_compile) 2>conftest.er1
a848cd7e 12976 ac_status=$?
ac1cb8d3
VS
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
a848cd7e
SC
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } &&
89be85c2
VS
12982 { ac_try='test -z "$ac_c_werror_flag"
12983 || test ! -s conftest.err'
ac1cb8d3
VS
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; } &&
12989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_cv_header_stdc=yes
12996else
12997 echo "$as_me: failed program was:" >&5
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
13000ac_cv_header_stdc=no
13001fi
ac1cb8d3 13002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13003
13004if test $ac_cv_header_stdc = yes; then
13005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13006 cat >conftest.$ac_ext <<_ACEOF
13007/* confdefs.h. */
13008_ACEOF
13009cat confdefs.h >>conftest.$ac_ext
13010cat >>conftest.$ac_ext <<_ACEOF
13011/* end confdefs.h. */
13012#include <string.h>
13013
13014_ACEOF
13015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13016 $EGREP "memchr" >/dev/null 2>&1; then
13017 :
13018else
13019 ac_cv_header_stdc=no
13020fi
13021rm -f conftest*
13022
13023fi
13024
13025if test $ac_cv_header_stdc = yes; then
13026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13027 cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033#include <stdlib.h>
13034
13035_ACEOF
13036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13037 $EGREP "free" >/dev/null 2>&1; then
13038 :
13039else
13040 ac_cv_header_stdc=no
13041fi
13042rm -f conftest*
13043
13044fi
13045
13046if test $ac_cv_header_stdc = yes; then
13047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13048 if test "$cross_compiling" = yes; then
13049 :
13050else
13051 cat >conftest.$ac_ext <<_ACEOF
13052/* confdefs.h. */
13053_ACEOF
13054cat confdefs.h >>conftest.$ac_ext
13055cat >>conftest.$ac_ext <<_ACEOF
13056/* end confdefs.h. */
13057#include <ctype.h>
13058#if ((' ' & 0x0FF) == 0x020)
13059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13061#else
13062# define ISLOWER(c) \
ac1cb8d3
VS
13063 (('a' <= (c) && (c) <= 'i') \
13064 || ('j' <= (c) && (c) <= 'r') \
13065 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13067#endif
13068
13069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13070int
13071main ()
13072{
13073 int i;
13074 for (i = 0; i < 256; i++)
13075 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13076 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13077 exit(2);
13078 exit (0);
13079}
13080_ACEOF
13081rm -f conftest$ac_exeext
13082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13083 (eval $ac_link) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092 :
13093else
13094 echo "$as_me: program exited with status $ac_status" >&5
13095echo "$as_me: failed program was:" >&5
13096sed 's/^/| /' conftest.$ac_ext >&5
13097
13098( exit $ac_status )
13099ac_cv_header_stdc=no
13100fi
ac1cb8d3 13101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13102fi
13103fi
13104fi
13105echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13106echo "${ECHO_T}$ac_cv_header_stdc" >&6
13107if test $ac_cv_header_stdc = yes; then
13108
13109cat >>confdefs.h <<\_ACEOF
13110#define STDC_HEADERS 1
13111_ACEOF
13112
13113fi
13114
13115# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13126 inttypes.h stdint.h unistd.h
a848cd7e
SC
13127do
13128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13129echo "$as_me:$LINENO: checking for $ac_header" >&5
13130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13131if eval "test \"\${$as_ac_Header+set}\" = set"; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else
13134 cat >conftest.$ac_ext <<_ACEOF
13135/* confdefs.h. */
13136_ACEOF
13137cat confdefs.h >>conftest.$ac_ext
13138cat >>conftest.$ac_ext <<_ACEOF
13139/* end confdefs.h. */
13140$ac_includes_default
13141
13142#include <$ac_header>
13143_ACEOF
13144rm -f conftest.$ac_objext
13145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13146 (eval $ac_compile) 2>conftest.er1
a848cd7e 13147 ac_status=$?
ac1cb8d3
VS
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
a848cd7e
SC
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
89be85c2
VS
13153 { ac_try='test -z "$ac_c_werror_flag"
13154 || test ! -s conftest.err'
ac1cb8d3
VS
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; } &&
13160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 eval "$as_ac_Header=yes"
13167else
13168 echo "$as_me: failed program was:" >&5
13169sed 's/^/| /' conftest.$ac_ext >&5
13170
13171eval "$as_ac_Header=no"
13172fi
ac1cb8d3 13173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13174fi
13175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13177if test `eval echo '${'$as_ac_Header'}'` = yes; then
13178 cat >>confdefs.h <<_ACEOF
13179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13180_ACEOF
13181
13182fi
13183
13184done
13185
13186
13187
13188for ac_header in stdlib.h
13189do
13190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13191if eval "test \"\${$as_ac_Header+set}\" = set"; then
13192 echo "$as_me:$LINENO: checking for $ac_header" >&5
13193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13194if eval "test \"\${$as_ac_Header+set}\" = set"; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13196fi
13197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13199else
13200 # Is the header compilable?
13201echo "$as_me:$LINENO: checking $ac_header usability" >&5
13202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13203cat >conftest.$ac_ext <<_ACEOF
13204/* confdefs.h. */
13205_ACEOF
13206cat confdefs.h >>conftest.$ac_ext
13207cat >>conftest.$ac_ext <<_ACEOF
13208/* end confdefs.h. */
13209$ac_includes_default
13210#include <$ac_header>
13211_ACEOF
13212rm -f conftest.$ac_objext
13213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13214 (eval $ac_compile) 2>conftest.er1
a848cd7e 13215 ac_status=$?
ac1cb8d3
VS
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
a848cd7e
SC
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
89be85c2
VS
13221 { ac_try='test -z "$ac_c_werror_flag"
13222 || test ! -s conftest.err'
ac1cb8d3
VS
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; } &&
13228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }; then
13234 ac_header_compiler=yes
13235else
13236 echo "$as_me: failed program was:" >&5
13237sed 's/^/| /' conftest.$ac_ext >&5
13238
13239ac_header_compiler=no
13240fi
ac1cb8d3 13241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13243echo "${ECHO_T}$ac_header_compiler" >&6
13244
13245# Is the header present?
13246echo "$as_me:$LINENO: checking $ac_header presence" >&5
13247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13248cat >conftest.$ac_ext <<_ACEOF
13249/* confdefs.h. */
13250_ACEOF
13251cat confdefs.h >>conftest.$ac_ext
13252cat >>conftest.$ac_ext <<_ACEOF
13253/* end confdefs.h. */
13254#include <$ac_header>
13255_ACEOF
13256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13258 ac_status=$?
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } >/dev/null; then
13264 if test -s conftest.err; then
13265 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13267 else
13268 ac_cpp_err=
13269 fi
13270else
13271 ac_cpp_err=yes
13272fi
13273if test -z "$ac_cpp_err"; then
13274 ac_header_preproc=yes
13275else
13276 echo "$as_me: failed program was:" >&5
13277sed 's/^/| /' conftest.$ac_ext >&5
13278
13279 ac_header_preproc=no
13280fi
13281rm -f conftest.err conftest.$ac_ext
13282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13283echo "${ECHO_T}$ac_header_preproc" >&6
13284
13285# So? What about this header?
ac1cb8d3
VS
13286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13287 yes:no: )
a848cd7e
SC
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13292 ac_header_preproc=yes
a848cd7e 13293 ;;
ac1cb8d3 13294 no:yes:* )
a848cd7e
SC
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13302echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13307 (
13308 cat <<\_ASBOX
ac1cb8d3
VS
13309## ----------------------------------------- ##
13310## Report this to wx-dev@lists.wxwidgets.org ##
13311## ----------------------------------------- ##
a848cd7e
SC
13312_ASBOX
13313 ) |
13314 sed "s/^/$as_me: WARNING: /" >&2
13315 ;;
13316esac
13317echo "$as_me:$LINENO: checking for $ac_header" >&5
13318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13319if eval "test \"\${$as_ac_Header+set}\" = set"; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321else
ac1cb8d3 13322 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13323fi
13324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13326
13327fi
13328if test `eval echo '${'$as_ac_Header'}'` = yes; then
13329 cat >>confdefs.h <<_ACEOF
13330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13331_ACEOF
13332
13333fi
13334
13335done
13336
13337
13338for ac_header in malloc.h
13339do
13340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13341if eval "test \"\${$as_ac_Header+set}\" = set"; then
13342 echo "$as_me:$LINENO: checking for $ac_header" >&5
13343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13344if eval "test \"\${$as_ac_Header+set}\" = set"; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13346fi
13347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13349else
13350 # Is the header compilable?
13351echo "$as_me:$LINENO: checking $ac_header usability" >&5
13352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13353cat >conftest.$ac_ext <<_ACEOF
13354/* confdefs.h. */
13355_ACEOF
13356cat confdefs.h >>conftest.$ac_ext
13357cat >>conftest.$ac_ext <<_ACEOF
13358/* end confdefs.h. */
13359$ac_includes_default
13360#include <$ac_header>
13361_ACEOF
13362rm -f conftest.$ac_objext
13363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13364 (eval $ac_compile) 2>conftest.er1
a848cd7e 13365 ac_status=$?
ac1cb8d3
VS
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
a848cd7e
SC
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
89be85c2
VS
13371 { ac_try='test -z "$ac_c_werror_flag"
13372 || test ! -s conftest.err'
ac1cb8d3
VS
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; } &&
13378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 ac_header_compiler=yes
13385else
13386 echo "$as_me: failed program was:" >&5
13387sed 's/^/| /' conftest.$ac_ext >&5
13388
13389ac_header_compiler=no
13390fi
ac1cb8d3 13391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13393echo "${ECHO_T}$ac_header_compiler" >&6
13394
13395# Is the header present?
13396echo "$as_me:$LINENO: checking $ac_header presence" >&5
13397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13398cat >conftest.$ac_ext <<_ACEOF
13399/* confdefs.h. */
13400_ACEOF
13401cat confdefs.h >>conftest.$ac_ext
13402cat >>conftest.$ac_ext <<_ACEOF
13403/* end confdefs.h. */
13404#include <$ac_header>
13405_ACEOF
13406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } >/dev/null; then
13414 if test -s conftest.err; then
13415 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13417 else
13418 ac_cpp_err=
13419 fi
13420else
13421 ac_cpp_err=yes
13422fi
13423if test -z "$ac_cpp_err"; then
13424 ac_header_preproc=yes
13425else
13426 echo "$as_me: failed program was:" >&5
13427sed 's/^/| /' conftest.$ac_ext >&5
13428
13429 ac_header_preproc=no
13430fi
13431rm -f conftest.err conftest.$ac_ext
13432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13433echo "${ECHO_T}$ac_header_preproc" >&6
13434
13435# So? What about this header?
ac1cb8d3
VS
13436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13437 yes:no: )
a848cd7e
SC
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13442 ac_header_preproc=yes
a848cd7e 13443 ;;
ac1cb8d3 13444 no:yes:* )
a848cd7e
SC
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13457 (
13458 cat <<\_ASBOX
ac1cb8d3
VS
13459## ----------------------------------------- ##
13460## Report this to wx-dev@lists.wxwidgets.org ##
13461## ----------------------------------------- ##
a848cd7e
SC
13462_ASBOX
13463 ) |
13464 sed "s/^/$as_me: WARNING: /" >&2
13465 ;;
13466esac
13467echo "$as_me:$LINENO: checking for $ac_header" >&5
13468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13469if eval "test \"\${$as_ac_Header+set}\" = set"; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471else
ac1cb8d3 13472 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13473fi
13474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13476
13477fi
13478if test `eval echo '${'$as_ac_Header'}'` = yes; then
13479 cat >>confdefs.h <<_ACEOF
13480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13481_ACEOF
13482
13483fi
13484
13485done
13486
13487
13488for ac_header in unistd.h
13489do
13490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13491if eval "test \"\${$as_ac_Header+set}\" = set"; then
13492 echo "$as_me:$LINENO: checking for $ac_header" >&5
13493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13494if eval "test \"\${$as_ac_Header+set}\" = set"; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13496fi
13497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13499else
13500 # Is the header compilable?
13501echo "$as_me:$LINENO: checking $ac_header usability" >&5
13502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13503cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h. */
13509$ac_includes_default
13510#include <$ac_header>
13511_ACEOF
13512rm -f conftest.$ac_objext
13513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13514 (eval $ac_compile) 2>conftest.er1
a848cd7e 13515 ac_status=$?
ac1cb8d3
VS
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
a848cd7e
SC
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
89be85c2
VS
13521 { ac_try='test -z "$ac_c_werror_flag"
13522 || test ! -s conftest.err'
ac1cb8d3
VS
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_header_compiler=yes
13535else
13536 echo "$as_me: failed program was:" >&5
13537sed 's/^/| /' conftest.$ac_ext >&5
13538
13539ac_header_compiler=no
13540fi
ac1cb8d3 13541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13543echo "${ECHO_T}$ac_header_compiler" >&6
13544
13545# Is the header present?
13546echo "$as_me:$LINENO: checking $ac_header presence" >&5
13547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13548cat >conftest.$ac_ext <<_ACEOF
13549/* confdefs.h. */
13550_ACEOF
13551cat confdefs.h >>conftest.$ac_ext
13552cat >>conftest.$ac_ext <<_ACEOF
13553/* end confdefs.h. */
13554#include <$ac_header>
13555_ACEOF
13556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } >/dev/null; then
13564 if test -s conftest.err; then
13565 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13567 else
13568 ac_cpp_err=
13569 fi
13570else
13571 ac_cpp_err=yes
13572fi
13573if test -z "$ac_cpp_err"; then
13574 ac_header_preproc=yes
13575else
13576 echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 ac_header_preproc=no
13580fi
13581rm -f conftest.err conftest.$ac_ext
13582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13583echo "${ECHO_T}$ac_header_preproc" >&6
13584
13585# So? What about this header?
ac1cb8d3
VS
13586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13587 yes:no: )
a848cd7e
SC
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13592 ac_header_preproc=yes
a848cd7e 13593 ;;
ac1cb8d3 13594 no:yes:* )
a848cd7e
SC
13595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13598echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13602echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13607 (
13608 cat <<\_ASBOX
ac1cb8d3
VS
13609## ----------------------------------------- ##
13610## Report this to wx-dev@lists.wxwidgets.org ##
13611## ----------------------------------------- ##
a848cd7e
SC
13612_ASBOX
13613 ) |
13614 sed "s/^/$as_me: WARNING: /" >&2
13615 ;;
13616esac
13617echo "$as_me:$LINENO: checking for $ac_header" >&5
13618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13619if eval "test \"\${$as_ac_Header+set}\" = set"; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
ac1cb8d3 13622 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13623fi
13624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13626
13627fi
13628if test `eval echo '${'$as_ac_Header'}'` = yes; then
13629 cat >>confdefs.h <<_ACEOF
13630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13631_ACEOF
13632
13633fi
13634
13635done
13636
13637
13638for ac_header in wchar.h
13639do
13640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13641if eval "test \"\${$as_ac_Header+set}\" = set"; then
13642 echo "$as_me:$LINENO: checking for $ac_header" >&5
13643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13644if eval "test \"\${$as_ac_Header+set}\" = set"; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646fi
13647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13649else
13650 # Is the header compilable?
13651echo "$as_me:$LINENO: checking $ac_header usability" >&5
13652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13653cat >conftest.$ac_ext <<_ACEOF
13654/* confdefs.h. */
13655_ACEOF
13656cat confdefs.h >>conftest.$ac_ext
13657cat >>conftest.$ac_ext <<_ACEOF
13658/* end confdefs.h. */
13659$ac_includes_default
13660#include <$ac_header>
13661_ACEOF
13662rm -f conftest.$ac_objext
13663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13664 (eval $ac_compile) 2>conftest.er1
a848cd7e 13665 ac_status=$?
ac1cb8d3
VS
13666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
a848cd7e
SC
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
89be85c2
VS
13671 { ac_try='test -z "$ac_c_werror_flag"
13672 || test ! -s conftest.err'
ac1cb8d3
VS
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 ac_header_compiler=yes
13685else
13686 echo "$as_me: failed program was:" >&5
13687sed 's/^/| /' conftest.$ac_ext >&5
13688
13689ac_header_compiler=no
13690fi
ac1cb8d3 13691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13692echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13693echo "${ECHO_T}$ac_header_compiler" >&6
13694
13695# Is the header present?
13696echo "$as_me:$LINENO: checking $ac_header presence" >&5
13697echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13698cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704#include <$ac_header>
13705_ACEOF
13706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13708 ac_status=$?
13709 grep -v '^ *+' conftest.er1 >conftest.err
13710 rm -f conftest.er1
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } >/dev/null; then
13714 if test -s conftest.err; then
13715 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13717 else
13718 ac_cpp_err=
13719 fi
13720else
13721 ac_cpp_err=yes
13722fi
13723if test -z "$ac_cpp_err"; then
13724 ac_header_preproc=yes
13725else
13726 echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
13729 ac_header_preproc=no
13730fi
13731rm -f conftest.err conftest.$ac_ext
13732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13733echo "${ECHO_T}$ac_header_preproc" >&6
13734
13735# So? What about this header?
ac1cb8d3
VS
13736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13737 yes:no: )
a848cd7e
SC
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13742 ac_header_preproc=yes
a848cd7e 13743 ;;
ac1cb8d3 13744 no:yes:* )
a848cd7e
SC
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13748echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13752echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13757 (
13758 cat <<\_ASBOX
ac1cb8d3
VS
13759## ----------------------------------------- ##
13760## Report this to wx-dev@lists.wxwidgets.org ##
13761## ----------------------------------------- ##
a848cd7e
SC
13762_ASBOX
13763 ) |
13764 sed "s/^/$as_me: WARNING: /" >&2
13765 ;;
13766esac
13767echo "$as_me:$LINENO: checking for $ac_header" >&5
13768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13769if eval "test \"\${$as_ac_Header+set}\" = set"; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
ac1cb8d3 13772 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13773fi
13774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13776
13777fi
13778if test `eval echo '${'$as_ac_Header'}'` = yes; then
13779 cat >>confdefs.h <<_ACEOF
13780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13781_ACEOF
13782
13783fi
13784
13785done
13786
13787
13788if test "$ac_cv_header_wchar_h" != "yes"; then
13789
13790for ac_header in wcstr.h
13791do
13792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13793if eval "test \"\${$as_ac_Header+set}\" = set"; then
13794 echo "$as_me:$LINENO: checking for $ac_header" >&5
13795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13796if eval "test \"\${$as_ac_Header+set}\" = set"; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13798fi
13799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13801else
13802 # Is the header compilable?
13803echo "$as_me:$LINENO: checking $ac_header usability" >&5
13804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13805cat >conftest.$ac_ext <<_ACEOF
13806/* confdefs.h. */
13807_ACEOF
13808cat confdefs.h >>conftest.$ac_ext
13809cat >>conftest.$ac_ext <<_ACEOF
13810/* end confdefs.h. */
13811$ac_includes_default
13812#include <$ac_header>
13813_ACEOF
13814rm -f conftest.$ac_objext
13815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13816 (eval $ac_compile) 2>conftest.er1
a848cd7e 13817 ac_status=$?
ac1cb8d3
VS
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
a848cd7e
SC
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
89be85c2
VS
13823 { ac_try='test -z "$ac_c_werror_flag"
13824 || test ! -s conftest.err'
ac1cb8d3
VS
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_header_compiler=yes
13837else
13838 echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
13840
13841ac_header_compiler=no
13842fi
ac1cb8d3 13843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13845echo "${ECHO_T}$ac_header_compiler" >&6
13846
13847# Is the header present?
13848echo "$as_me:$LINENO: checking $ac_header presence" >&5
13849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13850cat >conftest.$ac_ext <<_ACEOF
13851/* confdefs.h. */
13852_ACEOF
13853cat confdefs.h >>conftest.$ac_ext
13854cat >>conftest.$ac_ext <<_ACEOF
13855/* end confdefs.h. */
13856#include <$ac_header>
13857_ACEOF
13858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13860 ac_status=$?
13861 grep -v '^ *+' conftest.er1 >conftest.err
13862 rm -f conftest.er1
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } >/dev/null; then
13866 if test -s conftest.err; then
13867 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13869 else
13870 ac_cpp_err=
13871 fi
13872else
13873 ac_cpp_err=yes
13874fi
13875if test -z "$ac_cpp_err"; then
13876 ac_header_preproc=yes
13877else
13878 echo "$as_me: failed program was:" >&5
13879sed 's/^/| /' conftest.$ac_ext >&5
13880
13881 ac_header_preproc=no
13882fi
13883rm -f conftest.err conftest.$ac_ext
13884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13885echo "${ECHO_T}$ac_header_preproc" >&6
13886
13887# So? What about this header?
ac1cb8d3
VS
13888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13889 yes:no: )
a848cd7e
SC
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13894 ac_header_preproc=yes
a848cd7e 13895 ;;
ac1cb8d3 13896 no:yes:* )
a848cd7e
SC
13897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13909 (
13910 cat <<\_ASBOX
ac1cb8d3
VS
13911## ----------------------------------------- ##
13912## Report this to wx-dev@lists.wxwidgets.org ##
13913## ----------------------------------------- ##
a848cd7e
SC
13914_ASBOX
13915 ) |
13916 sed "s/^/$as_me: WARNING: /" >&2
13917 ;;
13918esac
13919echo "$as_me:$LINENO: checking for $ac_header" >&5
13920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13921if eval "test \"\${$as_ac_Header+set}\" = set"; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923else
ac1cb8d3 13924 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13925fi
13926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13928
13929fi
13930if test `eval echo '${'$as_ac_Header'}'` = yes; then
13931 cat >>confdefs.h <<_ACEOF
13932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13933_ACEOF
13934
13935fi
13936
13937done
13938
13939fi
13940
13941
13942for ac_header in fnmatch.h
13943do
13944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13945if eval "test \"\${$as_ac_Header+set}\" = set"; then
13946 echo "$as_me:$LINENO: checking for $ac_header" >&5
13947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13948if eval "test \"\${$as_ac_Header+set}\" = set"; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950fi
13951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13953else
13954 # Is the header compilable?
13955echo "$as_me:$LINENO: checking $ac_header usability" >&5
13956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13957cat >conftest.$ac_ext <<_ACEOF
13958/* confdefs.h. */
13959_ACEOF
13960cat confdefs.h >>conftest.$ac_ext
13961cat >>conftest.$ac_ext <<_ACEOF
13962/* end confdefs.h. */
13963$ac_includes_default
13964#include <$ac_header>
13965_ACEOF
13966rm -f conftest.$ac_objext
13967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13968 (eval $ac_compile) 2>conftest.er1
a848cd7e 13969 ac_status=$?
ac1cb8d3
VS
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
a848cd7e
SC
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
89be85c2
VS
13975 { ac_try='test -z "$ac_c_werror_flag"
13976 || test ! -s conftest.err'
ac1cb8d3
VS
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; } &&
13982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 ac_header_compiler=yes
13989else
13990 echo "$as_me: failed program was:" >&5
13991sed 's/^/| /' conftest.$ac_ext >&5
13992
13993ac_header_compiler=no
13994fi
ac1cb8d3 13995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13997echo "${ECHO_T}$ac_header_compiler" >&6
13998
13999# Is the header present?
14000echo "$as_me:$LINENO: checking $ac_header presence" >&5
14001echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14002cat >conftest.$ac_ext <<_ACEOF
14003/* confdefs.h. */
14004_ACEOF
14005cat confdefs.h >>conftest.$ac_ext
14006cat >>conftest.$ac_ext <<_ACEOF
14007/* end confdefs.h. */
14008#include <$ac_header>
14009_ACEOF
14010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } >/dev/null; then
14018 if test -s conftest.err; then
14019 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14021 else
14022 ac_cpp_err=
14023 fi
14024else
14025 ac_cpp_err=yes
14026fi
14027if test -z "$ac_cpp_err"; then
14028 ac_header_preproc=yes
14029else
14030 echo "$as_me: failed program was:" >&5
14031sed 's/^/| /' conftest.$ac_ext >&5
14032
14033 ac_header_preproc=no
14034fi
14035rm -f conftest.err conftest.$ac_ext
14036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14037echo "${ECHO_T}$ac_header_preproc" >&6
14038
14039# So? What about this header?
ac1cb8d3
VS
14040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14041 yes:no: )
a848cd7e
SC
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14046 ac_header_preproc=yes
a848cd7e 14047 ;;
ac1cb8d3 14048 no:yes:* )
a848cd7e
SC
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14061 (
14062 cat <<\_ASBOX
ac1cb8d3
VS
14063## ----------------------------------------- ##
14064## Report this to wx-dev@lists.wxwidgets.org ##
14065## ----------------------------------------- ##
a848cd7e
SC
14066_ASBOX
14067 ) |
14068 sed "s/^/$as_me: WARNING: /" >&2
14069 ;;
14070esac
14071echo "$as_me:$LINENO: checking for $ac_header" >&5
14072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14073if eval "test \"\${$as_ac_Header+set}\" = set"; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075else
ac1cb8d3 14076 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14077fi
14078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14080
14081fi
14082if test `eval echo '${'$as_ac_Header'}'` = yes; then
14083 cat >>confdefs.h <<_ACEOF
14084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14085_ACEOF
14086
14087fi
14088
14089done
14090
14091
14092if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14093
14094for ac_func in fnmatch
14095do
14096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14097echo "$as_me:$LINENO: checking for $ac_func" >&5
14098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14099if eval "test \"\${$as_ac_var+set}\" = set"; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102 cat >conftest.$ac_ext <<_ACEOF
14103/* confdefs.h. */
14104_ACEOF
14105cat confdefs.h >>conftest.$ac_ext
14106cat >>conftest.$ac_ext <<_ACEOF
14107/* end confdefs.h. */
ac1cb8d3
VS
14108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14110#define $ac_func innocuous_$ac_func
14111
a848cd7e
SC
14112/* System header to define __stub macros and hopefully few prototypes,
14113 which can conflict with char $ac_func (); below.
14114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14115 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14116
a848cd7e
SC
14117#ifdef __STDC__
14118# include <limits.h>
14119#else
14120# include <assert.h>
14121#endif
ac1cb8d3
VS
14122
14123#undef $ac_func
14124
a848cd7e
SC
14125/* Override any gcc2 internal prototype to avoid an error. */
14126#ifdef __cplusplus
14127extern "C"
14128{
14129#endif
14130/* We use char because int might match the return type of a gcc2
14131 builtin and then its argument prototype would still apply. */
14132char $ac_func ();
14133/* The GNU C library defines this for functions which it implements
14134 to always fail with ENOSYS. Some functions are actually named
14135 something starting with __ and the normal name is an alias. */
14136#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14137choke me
14138#else
14139char (*f) () = $ac_func;
14140#endif
14141#ifdef __cplusplus
14142}
14143#endif
14144
14145int
14146main ()
14147{
14148return f != $ac_func;
14149 ;
14150 return 0;
14151}
14152_ACEOF
14153rm -f conftest.$ac_objext conftest$ac_exeext
14154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14155 (eval $ac_link) 2>conftest.er1
a848cd7e 14156 ac_status=$?
ac1cb8d3
VS
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
a848cd7e
SC
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
89be85c2
VS
14162 { ac_try='test -z "$ac_c_werror_flag"
14163 || test ! -s conftest.err'
ac1cb8d3
VS
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; } &&
14169 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 eval "$as_ac_var=yes"
14176else
14177 echo "$as_me: failed program was:" >&5
14178sed 's/^/| /' conftest.$ac_ext >&5
14179
14180eval "$as_ac_var=no"
14181fi
ac1cb8d3
VS
14182rm -f conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14184fi
14185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14186echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14187if test `eval echo '${'$as_ac_var'}'` = yes; then
14188 cat >>confdefs.h <<_ACEOF
14189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14190_ACEOF
14191
14192fi
14193done
14194
14195fi
14196
14197
14198for ac_header in langinfo.h
14199do
14200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14201if eval "test \"\${$as_ac_Header+set}\" = set"; then
14202 echo "$as_me:$LINENO: checking for $ac_header" >&5
14203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14204if eval "test \"\${$as_ac_Header+set}\" = set"; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14206fi
14207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14209else
14210 # Is the header compilable?
14211echo "$as_me:$LINENO: checking $ac_header usability" >&5
14212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14213cat >conftest.$ac_ext <<_ACEOF
14214/* confdefs.h. */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h. */
14219$ac_includes_default
14220#include <$ac_header>
14221_ACEOF
14222rm -f conftest.$ac_objext
14223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14224 (eval $ac_compile) 2>conftest.er1
a848cd7e 14225 ac_status=$?
ac1cb8d3
VS
14226 grep -v '^ *+' conftest.er1 >conftest.err
14227 rm -f conftest.er1
14228 cat conftest.err >&5
a848cd7e
SC
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
89be85c2
VS
14231 { ac_try='test -z "$ac_c_werror_flag"
14232 || test ! -s conftest.err'
ac1cb8d3
VS
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_header_compiler=yes
14245else
14246 echo "$as_me: failed program was:" >&5
14247sed 's/^/| /' conftest.$ac_ext >&5
14248
14249ac_header_compiler=no
14250fi
ac1cb8d3 14251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14252echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14253echo "${ECHO_T}$ac_header_compiler" >&6
14254
14255# Is the header present?
14256echo "$as_me:$LINENO: checking $ac_header presence" >&5
14257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14258cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h. */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h. */
14264#include <$ac_header>
14265_ACEOF
14266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } >/dev/null; then
14274 if test -s conftest.err; then
14275 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14277 else
14278 ac_cpp_err=
14279 fi
14280else
14281 ac_cpp_err=yes
14282fi
14283if test -z "$ac_cpp_err"; then
14284 ac_header_preproc=yes
14285else
14286 echo "$as_me: failed program was:" >&5
14287sed 's/^/| /' conftest.$ac_ext >&5
14288
14289 ac_header_preproc=no
14290fi
14291rm -f conftest.err conftest.$ac_ext
14292echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14293echo "${ECHO_T}$ac_header_preproc" >&6
14294
14295# So? What about this header?
ac1cb8d3
VS
14296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14297 yes:no: )
a848cd7e
SC
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14299echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14301echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14302 ac_header_preproc=yes
a848cd7e 14303 ;;
ac1cb8d3 14304 no:yes:* )
a848cd7e
SC
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14306echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14308echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14310echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14312echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14314echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14316echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14317 (
14318 cat <<\_ASBOX
ac1cb8d3
VS
14319## ----------------------------------------- ##
14320## Report this to wx-dev@lists.wxwidgets.org ##
14321## ----------------------------------------- ##
a848cd7e
SC
14322_ASBOX
14323 ) |
14324 sed "s/^/$as_me: WARNING: /" >&2
14325 ;;
14326esac
14327echo "$as_me:$LINENO: checking for $ac_header" >&5
14328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14329if eval "test \"\${$as_ac_Header+set}\" = set"; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331else
ac1cb8d3 14332 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14333fi
14334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14336
14337fi
14338if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339 cat >>confdefs.h <<_ACEOF
14340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341_ACEOF
14342
14343fi
14344
14345done
14346
14347
14348case "${host}" in
14349 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14350 if test $ac_cv_header_langinfo_h = "yes" \
14351 -a \( "$wx_cv_gccversion" = "EMX2" \
14352 -o "$wx_cv_gccversion" = "EMX3" \
14353 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14354 LIBS="$LIBS -lintl"
14355 fi
14356 ;;
14357esac
14358
14359if test "$wxUSE_GUI" = "yes"; then
14360 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14361
14362for ac_header in X11/Xlib.h
14363do
14364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14365if eval "test \"\${$as_ac_Header+set}\" = set"; then
14366 echo "$as_me:$LINENO: checking for $ac_header" >&5
14367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14368if eval "test \"\${$as_ac_Header+set}\" = set"; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370fi
14371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14373else
14374 # Is the header compilable?
14375echo "$as_me:$LINENO: checking $ac_header usability" >&5
14376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14377cat >conftest.$ac_ext <<_ACEOF
14378/* confdefs.h. */
14379_ACEOF
14380cat confdefs.h >>conftest.$ac_ext
14381cat >>conftest.$ac_ext <<_ACEOF
14382/* end confdefs.h. */
14383$ac_includes_default
14384#include <$ac_header>
14385_ACEOF
14386rm -f conftest.$ac_objext
14387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14388 (eval $ac_compile) 2>conftest.er1
a848cd7e 14389 ac_status=$?
ac1cb8d3
VS
14390 grep -v '^ *+' conftest.er1 >conftest.err
14391 rm -f conftest.er1
14392 cat conftest.err >&5
a848cd7e
SC
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
89be85c2
VS
14395 { ac_try='test -z "$ac_c_werror_flag"
14396 || test ! -s conftest.err'
ac1cb8d3
VS
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14408 ac_header_compiler=yes
14409else
14410 echo "$as_me: failed program was:" >&5
14411sed 's/^/| /' conftest.$ac_ext >&5
14412
14413ac_header_compiler=no
14414fi
ac1cb8d3 14415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14417echo "${ECHO_T}$ac_header_compiler" >&6
14418
14419# Is the header present?
14420echo "$as_me:$LINENO: checking $ac_header presence" >&5
14421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14422cat >conftest.$ac_ext <<_ACEOF
14423/* confdefs.h. */
14424_ACEOF
14425cat confdefs.h >>conftest.$ac_ext
14426cat >>conftest.$ac_ext <<_ACEOF
14427/* end confdefs.h. */
14428#include <$ac_header>
14429_ACEOF
14430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } >/dev/null; then
14438 if test -s conftest.err; then
14439 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14441 else
14442 ac_cpp_err=
14443 fi
14444else
14445 ac_cpp_err=yes
14446fi
14447if test -z "$ac_cpp_err"; then
14448 ac_header_preproc=yes
14449else
14450 echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
14453 ac_header_preproc=no
14454fi
14455rm -f conftest.err conftest.$ac_ext
14456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14457echo "${ECHO_T}$ac_header_preproc" >&6
14458
14459# So? What about this header?
ac1cb8d3
VS
14460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14461 yes:no: )
a848cd7e
SC
14462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14466 ac_header_preproc=yes
a848cd7e 14467 ;;
ac1cb8d3 14468 no:yes:* )
a848cd7e
SC
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14481 (
14482 cat <<\_ASBOX
ac1cb8d3
VS
14483## ----------------------------------------- ##
14484## Report this to wx-dev@lists.wxwidgets.org ##
14485## ----------------------------------------- ##
a848cd7e
SC
14486_ASBOX
14487 ) |
14488 sed "s/^/$as_me: WARNING: /" >&2
14489 ;;
14490esac
14491echo "$as_me:$LINENO: checking for $ac_header" >&5
14492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14493if eval "test \"\${$as_ac_Header+set}\" = set"; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14495else
ac1cb8d3 14496 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14497fi
14498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14500
14501fi
14502if test `eval echo '${'$as_ac_Header'}'` = yes; then
14503 cat >>confdefs.h <<_ACEOF
14504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14505_ACEOF
14506
14507fi
14508
14509done
14510
14511
14512for ac_header in X11/XKBlib.h
14513do
14514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14515echo "$as_me:$LINENO: checking for $ac_header" >&5
14516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14517if eval "test \"\${$as_ac_Header+set}\" = set"; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14519else
14520 cat >conftest.$ac_ext <<_ACEOF
14521/* confdefs.h. */
14522_ACEOF
14523cat confdefs.h >>conftest.$ac_ext
14524cat >>conftest.$ac_ext <<_ACEOF
14525/* end confdefs.h. */
14526
14527 #if HAVE_X11_XLIB_H
14528 #include <X11/Xlib.h>
14529 #endif
14530
14531
14532#include <$ac_header>
14533_ACEOF
14534rm -f conftest.$ac_objext
14535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14536 (eval $ac_compile) 2>conftest.er1
a848cd7e 14537 ac_status=$?
ac1cb8d3
VS
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
a848cd7e
SC
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
89be85c2
VS
14543 { ac_try='test -z "$ac_c_werror_flag"
14544 || test ! -s conftest.err'
ac1cb8d3
VS
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; } &&
14550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 eval "$as_ac_Header=yes"
14557else
14558 echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561eval "$as_ac_Header=no"
14562fi
ac1cb8d3 14563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14564fi
14565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14567if test `eval echo '${'$as_ac_Header'}'` = yes; then
14568 cat >>confdefs.h <<_ACEOF
14569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14570_ACEOF
14571
14572fi
14573
14574done
14575
14576 fi
14577fi
14578
14579
14580echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14581echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14582if test "${ac_cv_c_const+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14584else
14585 cat >conftest.$ac_ext <<_ACEOF
14586/* confdefs.h. */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
14590/* end confdefs.h. */
14591
14592int
14593main ()
14594{
14595/* FIXME: Include the comments suggested by Paul. */
14596#ifndef __cplusplus
14597 /* Ultrix mips cc rejects this. */
14598 typedef int charset[2];
14599 const charset x;
14600 /* SunOS 4.1.1 cc rejects this. */
14601 char const *const *ccp;
14602 char **p;
14603 /* NEC SVR4.0.2 mips cc rejects this. */
14604 struct point {int x, y;};
14605 static struct point const zero = {0,0};
14606 /* AIX XL C 1.02.0.0 rejects this.
14607 It does not let you subtract one const X* pointer from another in
14608 an arm of an if-expression whose if-part is not a constant
14609 expression */
14610 const char *g = "string";
14611 ccp = &g + (g ? g-g : 0);
14612 /* HPUX 7.0 cc rejects these. */
14613 ++ccp;
14614 p = (char**) ccp;
14615 ccp = (char const *const *) p;
14616 { /* SCO 3.2v4 cc rejects this. */
14617 char *t;
14618 char const *s = 0 ? (char *) 0 : (char const *) 0;
14619
14620 *t++ = 0;
14621 }
14622 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14623 int x[] = {25, 17};
14624 const int *foo = &x[0];
14625 ++foo;
14626 }
14627 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14628 typedef const int *iptr;
14629 iptr p = 0;
14630 ++p;
14631 }
14632 { /* AIX XL C 1.02.0.0 rejects this saying
14633 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14634 struct s { int j; const int *ap[3]; };
14635 struct s *b; b->j = 5;
14636 }
14637 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14638 const int foo = 10;
14639 }
14640#endif
14641
14642 ;
14643 return 0;
14644}
14645_ACEOF
14646rm -f conftest.$ac_objext
14647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14648 (eval $ac_compile) 2>conftest.er1
a848cd7e 14649 ac_status=$?
ac1cb8d3
VS
14650 grep -v '^ *+' conftest.er1 >conftest.err
14651 rm -f conftest.er1
14652 cat conftest.err >&5
a848cd7e
SC
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
89be85c2
VS
14655 { ac_try='test -z "$ac_c_werror_flag"
14656 || test ! -s conftest.err'
ac1cb8d3
VS
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_cv_c_const=yes
14669else
14670 echo "$as_me: failed program was:" >&5
14671sed 's/^/| /' conftest.$ac_ext >&5
14672
14673ac_cv_c_const=no
14674fi
ac1cb8d3 14675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14676fi
14677echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14678echo "${ECHO_T}$ac_cv_c_const" >&6
14679if test $ac_cv_c_const = no; then
14680
14681cat >>confdefs.h <<\_ACEOF
14682#define const
14683_ACEOF
14684
14685fi
14686
14687echo "$as_me:$LINENO: checking for inline" >&5
14688echo $ECHO_N "checking for inline... $ECHO_C" >&6
14689if test "${ac_cv_c_inline+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 ac_cv_c_inline=no
14693for ac_kw in inline __inline__ __inline; do
14694 cat >conftest.$ac_ext <<_ACEOF
14695/* confdefs.h. */
14696_ACEOF
14697cat confdefs.h >>conftest.$ac_ext
14698cat >>conftest.$ac_ext <<_ACEOF
14699/* end confdefs.h. */
14700#ifndef __cplusplus
14701typedef int foo_t;
14702static $ac_kw foo_t static_foo () {return 0; }
14703$ac_kw foo_t foo () {return 0; }
14704#endif
14705
14706_ACEOF
14707rm -f conftest.$ac_objext
14708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14709 (eval $ac_compile) 2>conftest.er1
a848cd7e 14710 ac_status=$?
ac1cb8d3
VS
14711 grep -v '^ *+' conftest.er1 >conftest.err
14712 rm -f conftest.er1
14713 cat conftest.err >&5
a848cd7e
SC
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
89be85c2
VS
14716 { ac_try='test -z "$ac_c_werror_flag"
14717 || test ! -s conftest.err'
ac1cb8d3
VS
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; } &&
14723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; }; then
14729 ac_cv_c_inline=$ac_kw; break
14730else
14731 echo "$as_me: failed program was:" >&5
14732sed 's/^/| /' conftest.$ac_ext >&5
14733
14734fi
ac1cb8d3 14735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14736done
14737
14738fi
14739echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14740echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14741
14742
a848cd7e
SC
14743case $ac_cv_c_inline in
14744 inline | yes) ;;
ac1cb8d3
VS
14745 *)
14746 case $ac_cv_c_inline in
14747 no) ac_val=;;
14748 *) ac_val=$ac_cv_c_inline;;
14749 esac
14750 cat >>confdefs.h <<_ACEOF
14751#ifndef __cplusplus
14752#define inline $ac_val
14753#endif
de59c161 14754_ACEOF
ac1cb8d3 14755 ;;
a848cd7e
SC
14756esac
14757
14758
14759echo "$as_me:$LINENO: checking for char" >&5
14760echo $ECHO_N "checking for char... $ECHO_C" >&6
14761if test "${ac_cv_type_char+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14763else
14764 cat >conftest.$ac_ext <<_ACEOF
14765/* confdefs.h. */
14766_ACEOF
14767cat confdefs.h >>conftest.$ac_ext
14768cat >>conftest.$ac_ext <<_ACEOF
14769/* end confdefs.h. */
14770$ac_includes_default
14771int
14772main ()
14773{
14774if ((char *) 0)
14775 return 0;
14776if (sizeof (char))
14777 return 0;
14778 ;
14779 return 0;
14780}
14781_ACEOF
14782rm -f conftest.$ac_objext
14783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14784 (eval $ac_compile) 2>conftest.er1
a848cd7e 14785 ac_status=$?
ac1cb8d3
VS
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
a848cd7e
SC
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
89be85c2
VS
14791 { ac_try='test -z "$ac_c_werror_flag"
14792 || test ! -s conftest.err'
ac1cb8d3
VS
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_cv_type_char=yes
14805else
14806 echo "$as_me: failed program was:" >&5
14807sed 's/^/| /' conftest.$ac_ext >&5
14808
14809ac_cv_type_char=no
14810fi
ac1cb8d3 14811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14812fi
14813echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14814echo "${ECHO_T}$ac_cv_type_char" >&6
14815
14816echo "$as_me:$LINENO: checking size of char" >&5
14817echo $ECHO_N "checking size of char... $ECHO_C" >&6
14818if test "${ac_cv_sizeof_char+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820else
14821 if test "$ac_cv_type_char" = yes; then
14822 # The cast to unsigned long works around a bug in the HP C Compiler
14823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14825 # This bug is HP SR number 8606223364.
14826 if test "$cross_compiling" = yes; then
14827 # Depending upon the size, compute the lo and hi bounds.
14828cat >conftest.$ac_ext <<_ACEOF
14829/* confdefs.h. */
14830_ACEOF
14831cat confdefs.h >>conftest.$ac_ext
14832cat >>conftest.$ac_ext <<_ACEOF
14833/* end confdefs.h. */
14834$ac_includes_default
14835int
14836main ()
14837{
14838static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14839test_array [0] = 0
14840
14841 ;
14842 return 0;
14843}
14844_ACEOF
14845rm -f conftest.$ac_objext
14846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14847 (eval $ac_compile) 2>conftest.er1
a848cd7e 14848 ac_status=$?
ac1cb8d3
VS
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
a848cd7e
SC
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
89be85c2
VS
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
ac1cb8d3
VS
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_lo=0 ac_mid=0
14868 while :; do
14869 cat >conftest.$ac_ext <<_ACEOF
14870/* confdefs.h. */
14871_ACEOF
14872cat confdefs.h >>conftest.$ac_ext
14873cat >>conftest.$ac_ext <<_ACEOF
14874/* end confdefs.h. */
14875$ac_includes_default
14876int
14877main ()
14878{
14879static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14880test_array [0] = 0
14881
14882 ;
14883 return 0;
14884}
14885_ACEOF
14886rm -f conftest.$ac_objext
14887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14888 (eval $ac_compile) 2>conftest.er1
a848cd7e 14889 ac_status=$?
ac1cb8d3
VS
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
a848cd7e
SC
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
89be85c2
VS
14895 { ac_try='test -z "$ac_c_werror_flag"
14896 || test ! -s conftest.err'
ac1cb8d3
VS
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 ac_hi=$ac_mid; break
14909else
14910 echo "$as_me: failed program was:" >&5
14911sed 's/^/| /' conftest.$ac_ext >&5
14912
14913ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14914 if test $ac_lo -le $ac_mid; then
14915 ac_lo= ac_hi=
14916 break
14917 fi
14918 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14919fi
ac1cb8d3 14920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14921 done
14922else
14923 echo "$as_me: failed program was:" >&5
14924sed 's/^/| /' conftest.$ac_ext >&5
14925
14926cat >conftest.$ac_ext <<_ACEOF
14927/* confdefs.h. */
14928_ACEOF
14929cat confdefs.h >>conftest.$ac_ext
14930cat >>conftest.$ac_ext <<_ACEOF
14931/* end confdefs.h. */
14932$ac_includes_default
14933int
14934main ()
14935{
14936static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14937test_array [0] = 0
14938
14939 ;
14940 return 0;
14941}
14942_ACEOF
14943rm -f conftest.$ac_objext
14944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14945 (eval $ac_compile) 2>conftest.er1
a848cd7e 14946 ac_status=$?
ac1cb8d3
VS
14947 grep -v '^ *+' conftest.er1 >conftest.err
14948 rm -f conftest.er1
14949 cat conftest.err >&5
a848cd7e
SC
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
89be85c2
VS
14952 { ac_try='test -z "$ac_c_werror_flag"
14953 || test ! -s conftest.err'
ac1cb8d3
VS
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_hi=-1 ac_mid=-1
14966 while :; do
14967 cat >conftest.$ac_ext <<_ACEOF
14968/* confdefs.h. */
14969_ACEOF
14970cat confdefs.h >>conftest.$ac_ext
14971cat >>conftest.$ac_ext <<_ACEOF
14972/* end confdefs.h. */
14973$ac_includes_default
14974int
14975main ()
14976{
14977static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14978test_array [0] = 0
14979
14980 ;
14981 return 0;
14982}
14983_ACEOF
14984rm -f conftest.$ac_objext
14985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14986 (eval $ac_compile) 2>conftest.er1
a848cd7e 14987 ac_status=$?
ac1cb8d3
VS
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
a848cd7e
SC
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
89be85c2
VS
14993 { ac_try='test -z "$ac_c_werror_flag"
14994 || test ! -s conftest.err'
ac1cb8d3
VS
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_lo=$ac_mid; break
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15012 if test $ac_mid -le $ac_hi; then
15013 ac_lo= ac_hi=
15014 break
15015 fi
15016 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15017fi
ac1cb8d3 15018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15019 done
15020else
15021 echo "$as_me: failed program was:" >&5
15022sed 's/^/| /' conftest.$ac_ext >&5
15023
15024ac_lo= ac_hi=
15025fi
ac1cb8d3 15026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15027fi
ac1cb8d3 15028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15029# Binary search between lo and hi bounds.
15030while test "x$ac_lo" != "x$ac_hi"; do
15031 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15032 cat >conftest.$ac_ext <<_ACEOF
15033/* confdefs.h. */
15034_ACEOF
15035cat confdefs.h >>conftest.$ac_ext
15036cat >>conftest.$ac_ext <<_ACEOF
15037/* end confdefs.h. */
15038$ac_includes_default
15039int
15040main ()
15041{
15042static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15043test_array [0] = 0
15044
15045 ;
15046 return 0;
15047}
15048_ACEOF
15049rm -f conftest.$ac_objext
15050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15051 (eval $ac_compile) 2>conftest.er1
a848cd7e 15052 ac_status=$?
ac1cb8d3
VS
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
a848cd7e
SC
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
89be85c2
VS
15058 { ac_try='test -z "$ac_c_werror_flag"
15059 || test ! -s conftest.err'
ac1cb8d3
VS
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; } &&
15065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_hi=$ac_mid
15072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076ac_lo=`expr '(' $ac_mid ')' + 1`
15077fi
ac1cb8d3 15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15079done
15080case $ac_lo in
15081?*) ac_cv_sizeof_char=$ac_lo;;
15082'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15083See \`config.log' for more details." >&5
15084echo "$as_me: error: cannot compute sizeof (char), 77
15085See \`config.log' for more details." >&2;}
15086 { (exit 1); exit 1; }; } ;;
15087esac
15088else
15089 if test "$cross_compiling" = yes; then
89be85c2
VS
15090 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15091See \`config.log' for more details." >&5
15092echo "$as_me: error: cannot run test program while cross compiling
15093See \`config.log' for more details." >&2;}
a848cd7e
SC
15094 { (exit 1); exit 1; }; }
15095else
15096 cat >conftest.$ac_ext <<_ACEOF
15097/* confdefs.h. */
15098_ACEOF
15099cat confdefs.h >>conftest.$ac_ext
15100cat >>conftest.$ac_ext <<_ACEOF
15101/* end confdefs.h. */
15102$ac_includes_default
15103long longval () { return (long) (sizeof (char)); }
15104unsigned long ulongval () { return (long) (sizeof (char)); }
15105#include <stdio.h>
15106#include <stdlib.h>
15107int
15108main ()
15109{
15110
15111 FILE *f = fopen ("conftest.val", "w");
15112 if (! f)
15113 exit (1);
15114 if (((long) (sizeof (char))) < 0)
15115 {
15116 long i = longval ();
15117 if (i != ((long) (sizeof (char))))
15118 exit (1);
15119 fprintf (f, "%ld\n", i);
15120 }
15121 else
15122 {
15123 unsigned long i = ulongval ();
15124 if (i != ((long) (sizeof (char))))
15125 exit (1);
15126 fprintf (f, "%lu\n", i);
15127 }
15128 exit (ferror (f) || fclose (f) != 0);
15129
15130 ;
15131 return 0;
15132}
15133_ACEOF
15134rm -f conftest$ac_exeext
15135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15136 (eval $ac_link) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_sizeof_char=`cat conftest.val`
15146else
15147 echo "$as_me: program exited with status $ac_status" >&5
15148echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
15151( exit $ac_status )
15152{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15153See \`config.log' for more details." >&5
15154echo "$as_me: error: cannot compute sizeof (char), 77
15155See \`config.log' for more details." >&2;}
15156 { (exit 1); exit 1; }; }
15157fi
ac1cb8d3 15158rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15159fi
15160fi
15161rm -f conftest.val
15162else
15163 ac_cv_sizeof_char=0
15164fi
15165fi
15166echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15167echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15168cat >>confdefs.h <<_ACEOF
15169#define SIZEOF_CHAR $ac_cv_sizeof_char
15170_ACEOF
15171
15172
15173echo "$as_me:$LINENO: checking for short" >&5
15174echo $ECHO_N "checking for short... $ECHO_C" >&6
15175if test "${ac_cv_type_short+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15177else
15178 cat >conftest.$ac_ext <<_ACEOF
15179/* confdefs.h. */
15180_ACEOF
15181cat confdefs.h >>conftest.$ac_ext
15182cat >>conftest.$ac_ext <<_ACEOF
15183/* end confdefs.h. */
15184$ac_includes_default
15185int
15186main ()
15187{
15188if ((short *) 0)
15189 return 0;
15190if (sizeof (short))
15191 return 0;
15192 ;
15193 return 0;
15194}
15195_ACEOF
15196rm -f conftest.$ac_objext
15197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15198 (eval $ac_compile) 2>conftest.er1
a848cd7e 15199 ac_status=$?
ac1cb8d3
VS
15200 grep -v '^ *+' conftest.er1 >conftest.err
15201 rm -f conftest.er1
15202 cat conftest.err >&5
a848cd7e
SC
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
89be85c2
VS
15205 { ac_try='test -z "$ac_c_werror_flag"
15206 || test ! -s conftest.err'
ac1cb8d3
VS
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; } &&
15212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
15218 ac_cv_type_short=yes
15219else
15220 echo "$as_me: failed program was:" >&5
15221sed 's/^/| /' conftest.$ac_ext >&5
15222
15223ac_cv_type_short=no
15224fi
ac1cb8d3 15225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15226fi
15227echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15228echo "${ECHO_T}$ac_cv_type_short" >&6
15229
15230echo "$as_me:$LINENO: checking size of short" >&5
15231echo $ECHO_N "checking size of short... $ECHO_C" >&6
15232if test "${ac_cv_sizeof_short+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234else
15235 if test "$ac_cv_type_short" = yes; then
15236 # The cast to unsigned long works around a bug in the HP C Compiler
15237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15239 # This bug is HP SR number 8606223364.
15240 if test "$cross_compiling" = yes; then
15241 # Depending upon the size, compute the lo and hi bounds.
15242cat >conftest.$ac_ext <<_ACEOF
15243/* confdefs.h. */
15244_ACEOF
15245cat confdefs.h >>conftest.$ac_ext
15246cat >>conftest.$ac_ext <<_ACEOF
15247/* end confdefs.h. */
15248$ac_includes_default
15249int
15250main ()
15251{
15252static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15253test_array [0] = 0
15254
15255 ;
15256 return 0;
15257}
15258_ACEOF
15259rm -f conftest.$ac_objext
15260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15261 (eval $ac_compile) 2>conftest.er1
a848cd7e 15262 ac_status=$?
ac1cb8d3
VS
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
a848cd7e
SC
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
89be85c2
VS
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
ac1cb8d3
VS
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_lo=0 ac_mid=0
15282 while :; do
15283 cat >conftest.$ac_ext <<_ACEOF
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
15289$ac_includes_default
15290int
15291main ()
15292{
15293static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15294test_array [0] = 0
15295
15296 ;
15297 return 0;
15298}
15299_ACEOF
15300rm -f conftest.$ac_objext
15301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15302 (eval $ac_compile) 2>conftest.er1
a848cd7e 15303 ac_status=$?
ac1cb8d3
VS
15304 grep -v '^ *+' conftest.er1 >conftest.err
15305 rm -f conftest.er1
15306 cat conftest.err >&5
a848cd7e
SC
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
89be85c2
VS
15309 { ac_try='test -z "$ac_c_werror_flag"
15310 || test ! -s conftest.err'
ac1cb8d3
VS
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; } &&
15316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
15322 ac_hi=$ac_mid; break
15323else
15324 echo "$as_me: failed program was:" >&5
15325sed 's/^/| /' conftest.$ac_ext >&5
15326
15327ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15328 if test $ac_lo -le $ac_mid; then
15329 ac_lo= ac_hi=
15330 break
15331 fi
15332 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15333fi
ac1cb8d3 15334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15335 done
15336else
15337 echo "$as_me: failed program was:" >&5
15338sed 's/^/| /' conftest.$ac_ext >&5
15339
15340cat >conftest.$ac_ext <<_ACEOF
15341/* confdefs.h. */
15342_ACEOF
15343cat confdefs.h >>conftest.$ac_ext
15344cat >>conftest.$ac_ext <<_ACEOF
15345/* end confdefs.h. */
15346$ac_includes_default
15347int
15348main ()
15349{
15350static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15351test_array [0] = 0
15352
15353 ;
15354 return 0;
15355}
15356_ACEOF
15357rm -f conftest.$ac_objext
15358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15359 (eval $ac_compile) 2>conftest.er1
a848cd7e 15360 ac_status=$?
ac1cb8d3
VS
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
a848cd7e
SC
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
89be85c2
VS
15366 { ac_try='test -z "$ac_c_werror_flag"
15367 || test ! -s conftest.err'
ac1cb8d3
VS
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_hi=-1 ac_mid=-1
15380 while :; do
15381 cat >conftest.$ac_ext <<_ACEOF
15382/* confdefs.h. */
15383_ACEOF
15384cat confdefs.h >>conftest.$ac_ext
15385cat >>conftest.$ac_ext <<_ACEOF
15386/* end confdefs.h. */
15387$ac_includes_default
15388int
15389main ()
15390{
15391static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15392test_array [0] = 0
15393
15394 ;
15395 return 0;
15396}
15397_ACEOF
15398rm -f conftest.$ac_objext
15399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15400 (eval $ac_compile) 2>conftest.er1
a848cd7e 15401 ac_status=$?
ac1cb8d3
VS
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
a848cd7e
SC
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
89be85c2
VS
15407 { ac_try='test -z "$ac_c_werror_flag"
15408 || test ! -s conftest.err'
ac1cb8d3
VS
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_lo=$ac_mid; break
15421else
15422 echo "$as_me: failed program was:" >&5
15423sed 's/^/| /' conftest.$ac_ext >&5
15424
15425ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15426 if test $ac_mid -le $ac_hi; then
15427 ac_lo= ac_hi=
15428 break
15429 fi
15430 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15431fi
ac1cb8d3 15432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15433 done
15434else
15435 echo "$as_me: failed program was:" >&5
15436sed 's/^/| /' conftest.$ac_ext >&5
15437
15438ac_lo= ac_hi=
15439fi
ac1cb8d3 15440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15441fi
ac1cb8d3 15442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15443# Binary search between lo and hi bounds.
15444while test "x$ac_lo" != "x$ac_hi"; do
15445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15446 cat >conftest.$ac_ext <<_ACEOF
15447/* confdefs.h. */
15448_ACEOF
15449cat confdefs.h >>conftest.$ac_ext
15450cat >>conftest.$ac_ext <<_ACEOF
15451/* end confdefs.h. */
15452$ac_includes_default
15453int
15454main ()
15455{
15456static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15457test_array [0] = 0
15458
15459 ;
15460 return 0;
15461}
15462_ACEOF
15463rm -f conftest.$ac_objext
15464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15465 (eval $ac_compile) 2>conftest.er1
a848cd7e 15466 ac_status=$?
ac1cb8d3
VS
15467 grep -v '^ *+' conftest.er1 >conftest.err
15468 rm -f conftest.er1
15469 cat conftest.err >&5
a848cd7e
SC
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
89be85c2
VS
15472 { ac_try='test -z "$ac_c_werror_flag"
15473 || test ! -s conftest.err'
ac1cb8d3
VS
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; } &&
15479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15485 ac_hi=$ac_mid
15486else
15487 echo "$as_me: failed program was:" >&5
15488sed 's/^/| /' conftest.$ac_ext >&5
15489
15490ac_lo=`expr '(' $ac_mid ')' + 1`
15491fi
ac1cb8d3 15492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15493done
15494case $ac_lo in
15495?*) ac_cv_sizeof_short=$ac_lo;;
15496'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15497See \`config.log' for more details." >&5
15498echo "$as_me: error: cannot compute sizeof (short), 77
15499See \`config.log' for more details." >&2;}
15500 { (exit 1); exit 1; }; } ;;
15501esac
15502else
15503 if test "$cross_compiling" = yes; then
89be85c2
VS
15504 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15505See \`config.log' for more details." >&5
15506echo "$as_me: error: cannot run test program while cross compiling
15507See \`config.log' for more details." >&2;}
a848cd7e
SC
15508 { (exit 1); exit 1; }; }
15509else
15510 cat >conftest.$ac_ext <<_ACEOF
15511/* confdefs.h. */
15512_ACEOF
15513cat confdefs.h >>conftest.$ac_ext
15514cat >>conftest.$ac_ext <<_ACEOF
15515/* end confdefs.h. */
15516$ac_includes_default
15517long longval () { return (long) (sizeof (short)); }
15518unsigned long ulongval () { return (long) (sizeof (short)); }
15519#include <stdio.h>
15520#include <stdlib.h>
15521int
15522main ()
15523{
15524
15525 FILE *f = fopen ("conftest.val", "w");
15526 if (! f)
15527 exit (1);
15528 if (((long) (sizeof (short))) < 0)
15529 {
15530 long i = longval ();
15531 if (i != ((long) (sizeof (short))))
15532 exit (1);
15533 fprintf (f, "%ld\n", i);
15534 }
15535 else
15536 {
15537 unsigned long i = ulongval ();
15538 if (i != ((long) (sizeof (short))))
15539 exit (1);
15540 fprintf (f, "%lu\n", i);
15541 }
15542 exit (ferror (f) || fclose (f) != 0);
15543
15544 ;
15545 return 0;
15546}
15547_ACEOF
15548rm -f conftest$ac_exeext
15549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15550 (eval $ac_link) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_sizeof_short=`cat conftest.val`
15560else
15561 echo "$as_me: program exited with status $ac_status" >&5
15562echo "$as_me: failed program was:" >&5
15563sed 's/^/| /' conftest.$ac_ext >&5
15564
15565( exit $ac_status )
15566{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15567See \`config.log' for more details." >&5
15568echo "$as_me: error: cannot compute sizeof (short), 77
15569See \`config.log' for more details." >&2;}
15570 { (exit 1); exit 1; }; }
15571fi
ac1cb8d3 15572rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15573fi
15574fi
15575rm -f conftest.val
15576else
15577 ac_cv_sizeof_short=0
15578fi
15579fi
15580echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15581echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15582cat >>confdefs.h <<_ACEOF
15583#define SIZEOF_SHORT $ac_cv_sizeof_short
15584_ACEOF
15585
15586
15587echo "$as_me:$LINENO: checking for void *" >&5
15588echo $ECHO_N "checking for void *... $ECHO_C" >&6
15589if test "${ac_cv_type_void_p+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15591else
15592 cat >conftest.$ac_ext <<_ACEOF
15593/* confdefs.h. */
15594_ACEOF
15595cat confdefs.h >>conftest.$ac_ext
15596cat >>conftest.$ac_ext <<_ACEOF
15597/* end confdefs.h. */
15598$ac_includes_default
15599int
15600main ()
15601{
15602if ((void * *) 0)
15603 return 0;
15604if (sizeof (void *))
15605 return 0;
15606 ;
15607 return 0;
15608}
15609_ACEOF
15610rm -f conftest.$ac_objext
15611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15612 (eval $ac_compile) 2>conftest.er1
a848cd7e 15613 ac_status=$?
ac1cb8d3
VS
15614 grep -v '^ *+' conftest.er1 >conftest.err
15615 rm -f conftest.er1
15616 cat conftest.err >&5
a848cd7e
SC
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
89be85c2
VS
15619 { ac_try='test -z "$ac_c_werror_flag"
15620 || test ! -s conftest.err'
ac1cb8d3
VS
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15632 ac_cv_type_void_p=yes
15633else
15634 echo "$as_me: failed program was:" >&5
15635sed 's/^/| /' conftest.$ac_ext >&5
15636
15637ac_cv_type_void_p=no
15638fi
ac1cb8d3 15639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15640fi
15641echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15642echo "${ECHO_T}$ac_cv_type_void_p" >&6
15643
15644echo "$as_me:$LINENO: checking size of void *" >&5
15645echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15646if test "${ac_cv_sizeof_void_p+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648else
15649 if test "$ac_cv_type_void_p" = yes; then
15650 # The cast to unsigned long works around a bug in the HP C Compiler
15651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15653 # This bug is HP SR number 8606223364.
15654 if test "$cross_compiling" = yes; then
15655 # Depending upon the size, compute the lo and hi bounds.
15656cat >conftest.$ac_ext <<_ACEOF
15657/* confdefs.h. */
15658_ACEOF
15659cat confdefs.h >>conftest.$ac_ext
15660cat >>conftest.$ac_ext <<_ACEOF
15661/* end confdefs.h. */
15662$ac_includes_default
15663int
15664main ()
15665{
15666static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15667test_array [0] = 0
15668
15669 ;
15670 return 0;
15671}
15672_ACEOF
15673rm -f conftest.$ac_objext
15674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15675 (eval $ac_compile) 2>conftest.er1
a848cd7e 15676 ac_status=$?
ac1cb8d3
VS
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
a848cd7e
SC
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
89be85c2
VS
15682 { ac_try='test -z "$ac_c_werror_flag"
15683 || test ! -s conftest.err'
ac1cb8d3
VS
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_lo=0 ac_mid=0
15696 while :; do
15697 cat >conftest.$ac_ext <<_ACEOF
15698/* confdefs.h. */
15699_ACEOF
15700cat confdefs.h >>conftest.$ac_ext
15701cat >>conftest.$ac_ext <<_ACEOF
15702/* end confdefs.h. */
15703$ac_includes_default
15704int
15705main ()
15706{
15707static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15708test_array [0] = 0
15709
15710 ;
15711 return 0;
15712}
15713_ACEOF
15714rm -f conftest.$ac_objext
15715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15716 (eval $ac_compile) 2>conftest.er1
a848cd7e 15717 ac_status=$?
ac1cb8d3
VS
15718 grep -v '^ *+' conftest.er1 >conftest.err
15719 rm -f conftest.er1
15720 cat conftest.err >&5
a848cd7e
SC
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
89be85c2
VS
15723 { ac_try='test -z "$ac_c_werror_flag"
15724 || test ! -s conftest.err'
ac1cb8d3
VS
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_hi=$ac_mid; break
15737else
15738 echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15742 if test $ac_lo -le $ac_mid; then
15743 ac_lo= ac_hi=
15744 break
15745 fi
15746 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15747fi
ac1cb8d3 15748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15749 done
15750else
15751 echo "$as_me: failed program was:" >&5
15752sed 's/^/| /' conftest.$ac_ext >&5
15753
15754cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
15760$ac_includes_default
15761int
15762main ()
15763{
15764static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15765test_array [0] = 0
15766
15767 ;
15768 return 0;
15769}
15770_ACEOF
15771rm -f conftest.$ac_objext
15772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15773 (eval $ac_compile) 2>conftest.er1
a848cd7e 15774 ac_status=$?
ac1cb8d3
VS
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
a848cd7e
SC
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
89be85c2
VS
15780 { ac_try='test -z "$ac_c_werror_flag"
15781 || test ! -s conftest.err'
ac1cb8d3
VS
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; } &&
15787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_hi=-1 ac_mid=-1
15794 while :; do
15795 cat >conftest.$ac_ext <<_ACEOF
15796/* confdefs.h. */
15797_ACEOF
15798cat confdefs.h >>conftest.$ac_ext
15799cat >>conftest.$ac_ext <<_ACEOF
15800/* end confdefs.h. */
15801$ac_includes_default
15802int
15803main ()
15804{
15805static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15806test_array [0] = 0
15807
15808 ;
15809 return 0;
15810}
15811_ACEOF
15812rm -f conftest.$ac_objext
15813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15814 (eval $ac_compile) 2>conftest.er1
a848cd7e 15815 ac_status=$?
ac1cb8d3
VS
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
a848cd7e
SC
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
89be85c2
VS
15821 { ac_try='test -z "$ac_c_werror_flag"
15822 || test ! -s conftest.err'
ac1cb8d3
VS
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_lo=$ac_mid; break
15835else
15836 echo "$as_me: failed program was:" >&5
15837sed 's/^/| /' conftest.$ac_ext >&5
15838
15839ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15840 if test $ac_mid -le $ac_hi; then
15841 ac_lo= ac_hi=
15842 break
15843 fi
15844 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15845fi
ac1cb8d3 15846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15847 done
15848else
15849 echo "$as_me: failed program was:" >&5
15850sed 's/^/| /' conftest.$ac_ext >&5
15851
15852ac_lo= ac_hi=
15853fi
ac1cb8d3 15854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15855fi
ac1cb8d3 15856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15857# Binary search between lo and hi bounds.
15858while test "x$ac_lo" != "x$ac_hi"; do
15859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15860 cat >conftest.$ac_ext <<_ACEOF
15861/* confdefs.h. */
15862_ACEOF
15863cat confdefs.h >>conftest.$ac_ext
15864cat >>conftest.$ac_ext <<_ACEOF
15865/* end confdefs.h. */
15866$ac_includes_default
15867int
15868main ()
15869{
15870static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15871test_array [0] = 0
15872
15873 ;
15874 return 0;
15875}
15876_ACEOF
15877rm -f conftest.$ac_objext
15878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15879 (eval $ac_compile) 2>conftest.er1
a848cd7e 15880 ac_status=$?
ac1cb8d3
VS
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
a848cd7e
SC
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } &&
89be85c2
VS
15886 { ac_try='test -z "$ac_c_werror_flag"
15887 || test ! -s conftest.err'
ac1cb8d3
VS
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; } &&
15893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_hi=$ac_mid
15900else
15901 echo "$as_me: failed program was:" >&5
15902sed 's/^/| /' conftest.$ac_ext >&5
15903
15904ac_lo=`expr '(' $ac_mid ')' + 1`
15905fi
ac1cb8d3 15906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15907done
15908case $ac_lo in
15909?*) ac_cv_sizeof_void_p=$ac_lo;;
15910'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15911See \`config.log' for more details." >&5
15912echo "$as_me: error: cannot compute sizeof (void *), 77
15913See \`config.log' for more details." >&2;}
15914 { (exit 1); exit 1; }; } ;;
15915esac
15916else
15917 if test "$cross_compiling" = yes; then
89be85c2
VS
15918 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15919See \`config.log' for more details." >&5
15920echo "$as_me: error: cannot run test program while cross compiling
15921See \`config.log' for more details." >&2;}
a848cd7e
SC
15922 { (exit 1); exit 1; }; }
15923else
15924 cat >conftest.$ac_ext <<_ACEOF
15925/* confdefs.h. */
15926_ACEOF
15927cat confdefs.h >>conftest.$ac_ext
15928cat >>conftest.$ac_ext <<_ACEOF
15929/* end confdefs.h. */
15930$ac_includes_default
15931long longval () { return (long) (sizeof (void *)); }
15932unsigned long ulongval () { return (long) (sizeof (void *)); }
15933#include <stdio.h>
15934#include <stdlib.h>
15935int
15936main ()
15937{
15938
15939 FILE *f = fopen ("conftest.val", "w");
15940 if (! f)
15941 exit (1);
15942 if (((long) (sizeof (void *))) < 0)
15943 {
15944 long i = longval ();
15945 if (i != ((long) (sizeof (void *))))
15946 exit (1);
15947 fprintf (f, "%ld\n", i);
15948 }
15949 else
15950 {
15951 unsigned long i = ulongval ();
15952 if (i != ((long) (sizeof (void *))))
15953 exit (1);
15954 fprintf (f, "%lu\n", i);
15955 }
15956 exit (ferror (f) || fclose (f) != 0);
15957
15958 ;
15959 return 0;
15960}
15961_ACEOF
15962rm -f conftest$ac_exeext
15963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15964 (eval $ac_link) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; }; then
15973 ac_cv_sizeof_void_p=`cat conftest.val`
15974else
15975 echo "$as_me: program exited with status $ac_status" >&5
15976echo "$as_me: failed program was:" >&5
15977sed 's/^/| /' conftest.$ac_ext >&5
15978
15979( exit $ac_status )
15980{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15981See \`config.log' for more details." >&5
15982echo "$as_me: error: cannot compute sizeof (void *), 77
15983See \`config.log' for more details." >&2;}
15984 { (exit 1); exit 1; }; }
15985fi
ac1cb8d3 15986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15987fi
15988fi
15989rm -f conftest.val
15990else
15991 ac_cv_sizeof_void_p=0
15992fi
15993fi
15994echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15995echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15996cat >>confdefs.h <<_ACEOF
15997#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15998_ACEOF
15999
16000
16001echo "$as_me:$LINENO: checking for int" >&5
16002echo $ECHO_N "checking for int... $ECHO_C" >&6
16003if test "${ac_cv_type_int+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16005else
16006 cat >conftest.$ac_ext <<_ACEOF
16007/* confdefs.h. */
16008_ACEOF
16009cat confdefs.h >>conftest.$ac_ext
16010cat >>conftest.$ac_ext <<_ACEOF
16011/* end confdefs.h. */
16012$ac_includes_default
16013int
16014main ()
16015{
16016if ((int *) 0)
16017 return 0;
16018if (sizeof (int))
16019 return 0;
16020 ;
16021 return 0;
16022}
16023_ACEOF
16024rm -f conftest.$ac_objext
16025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16026 (eval $ac_compile) 2>conftest.er1
a848cd7e 16027 ac_status=$?
ac1cb8d3
VS
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
a848cd7e
SC
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
89be85c2
VS
16033 { ac_try='test -z "$ac_c_werror_flag"
16034 || test ! -s conftest.err'
ac1cb8d3
VS
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; } &&
16040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_cv_type_int=yes
16047else
16048 echo "$as_me: failed program was:" >&5
16049sed 's/^/| /' conftest.$ac_ext >&5
16050
16051ac_cv_type_int=no
16052fi
ac1cb8d3 16053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16054fi
16055echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16056echo "${ECHO_T}$ac_cv_type_int" >&6
16057
16058echo "$as_me:$LINENO: checking size of int" >&5
16059echo $ECHO_N "checking size of int... $ECHO_C" >&6
16060if test "${ac_cv_sizeof_int+set}" = set; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062else
16063 if test "$ac_cv_type_int" = yes; then
16064 # The cast to unsigned long works around a bug in the HP C Compiler
16065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16067 # This bug is HP SR number 8606223364.
16068 if test "$cross_compiling" = yes; then
16069 # Depending upon the size, compute the lo and hi bounds.
16070cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076$ac_includes_default
16077int
16078main ()
16079{
16080static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16081test_array [0] = 0
16082
16083 ;
16084 return 0;
16085}
16086_ACEOF
16087rm -f conftest.$ac_objext
16088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16089 (eval $ac_compile) 2>conftest.er1
a848cd7e 16090 ac_status=$?
ac1cb8d3
VS
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
a848cd7e
SC
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
89be85c2
VS
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
ac1cb8d3
VS
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_lo=0 ac_mid=0
16110 while :; do
16111 cat >conftest.$ac_ext <<_ACEOF
16112/* confdefs.h. */
16113_ACEOF
16114cat confdefs.h >>conftest.$ac_ext
16115cat >>conftest.$ac_ext <<_ACEOF
16116/* end confdefs.h. */
16117$ac_includes_default
16118int
16119main ()
16120{
16121static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16122test_array [0] = 0
16123
16124 ;
16125 return 0;
16126}
16127_ACEOF
16128rm -f conftest.$ac_objext
16129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16130 (eval $ac_compile) 2>conftest.er1
a848cd7e 16131 ac_status=$?
ac1cb8d3
VS
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
a848cd7e
SC
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
89be85c2
VS
16137 { ac_try='test -z "$ac_c_werror_flag"
16138 || test ! -s conftest.err'
ac1cb8d3
VS
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 ac_hi=$ac_mid; break
16151else
16152 echo "$as_me: failed program was:" >&5
16153sed 's/^/| /' conftest.$ac_ext >&5
16154
16155ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16156 if test $ac_lo -le $ac_mid; then
16157 ac_lo= ac_hi=
16158 break
16159 fi
16160 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16161fi
ac1cb8d3 16162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16163 done
16164else
16165 echo "$as_me: failed program was:" >&5
16166sed 's/^/| /' conftest.$ac_ext >&5
16167
16168cat >conftest.$ac_ext <<_ACEOF
16169/* confdefs.h. */
16170_ACEOF
16171cat confdefs.h >>conftest.$ac_ext
16172cat >>conftest.$ac_ext <<_ACEOF
16173/* end confdefs.h. */
16174$ac_includes_default
16175int
16176main ()
16177{
16178static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16179test_array [0] = 0
16180
16181 ;
16182 return 0;
16183}
16184_ACEOF
16185rm -f conftest.$ac_objext
16186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16187 (eval $ac_compile) 2>conftest.er1
a848cd7e 16188 ac_status=$?
ac1cb8d3
VS
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
a848cd7e
SC
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
89be85c2
VS
16194 { ac_try='test -z "$ac_c_werror_flag"
16195 || test ! -s conftest.err'
ac1cb8d3
VS
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ac_hi=-1 ac_mid=-1
16208 while :; do
16209 cat >conftest.$ac_ext <<_ACEOF
16210/* confdefs.h. */
16211_ACEOF
16212cat confdefs.h >>conftest.$ac_ext
16213cat >>conftest.$ac_ext <<_ACEOF
16214/* end confdefs.h. */
16215$ac_includes_default
16216int
16217main ()
16218{
16219static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16220test_array [0] = 0
16221
16222 ;
16223 return 0;
16224}
16225_ACEOF
16226rm -f conftest.$ac_objext
16227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16228 (eval $ac_compile) 2>conftest.er1
a848cd7e 16229 ac_status=$?
ac1cb8d3
VS
16230 grep -v '^ *+' conftest.er1 >conftest.err
16231 rm -f conftest.er1
16232 cat conftest.err >&5
a848cd7e
SC
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
89be85c2
VS
16235 { ac_try='test -z "$ac_c_werror_flag"
16236 || test ! -s conftest.err'
ac1cb8d3
VS
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_lo=$ac_mid; break
16249else
16250 echo "$as_me: failed program was:" >&5
16251sed 's/^/| /' conftest.$ac_ext >&5
16252
16253ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16254 if test $ac_mid -le $ac_hi; then
16255 ac_lo= ac_hi=
16256 break
16257 fi
16258 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16259fi
ac1cb8d3 16260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16261 done
16262else
16263 echo "$as_me: failed program was:" >&5
16264sed 's/^/| /' conftest.$ac_ext >&5
16265
16266ac_lo= ac_hi=
16267fi
ac1cb8d3 16268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16269fi
ac1cb8d3 16270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16271# Binary search between lo and hi bounds.
16272while test "x$ac_lo" != "x$ac_hi"; do
16273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16274 cat >conftest.$ac_ext <<_ACEOF
16275/* confdefs.h. */
16276_ACEOF
16277cat confdefs.h >>conftest.$ac_ext
16278cat >>conftest.$ac_ext <<_ACEOF
16279/* end confdefs.h. */
16280$ac_includes_default
16281int
16282main ()
16283{
16284static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16285test_array [0] = 0
16286
16287 ;
16288 return 0;
16289}
16290_ACEOF
16291rm -f conftest.$ac_objext
16292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16293 (eval $ac_compile) 2>conftest.er1
a848cd7e 16294 ac_status=$?
ac1cb8d3
VS
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
a848cd7e
SC
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
89be85c2
VS
16300 { ac_try='test -z "$ac_c_werror_flag"
16301 || test ! -s conftest.err'
ac1cb8d3
VS
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_hi=$ac_mid
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318ac_lo=`expr '(' $ac_mid ')' + 1`
16319fi
ac1cb8d3 16320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16321done
16322case $ac_lo in
16323?*) ac_cv_sizeof_int=$ac_lo;;
16324'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16325See \`config.log' for more details." >&5
16326echo "$as_me: error: cannot compute sizeof (int), 77
16327See \`config.log' for more details." >&2;}
16328 { (exit 1); exit 1; }; } ;;
16329esac
16330else
16331 if test "$cross_compiling" = yes; then
89be85c2
VS
16332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16333See \`config.log' for more details." >&5
16334echo "$as_me: error: cannot run test program while cross compiling
16335See \`config.log' for more details." >&2;}
a848cd7e
SC
16336 { (exit 1); exit 1; }; }
16337else
16338 cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
16344$ac_includes_default
16345long longval () { return (long) (sizeof (int)); }
16346unsigned long ulongval () { return (long) (sizeof (int)); }
16347#include <stdio.h>
16348#include <stdlib.h>
16349int
16350main ()
16351{
16352
16353 FILE *f = fopen ("conftest.val", "w");
16354 if (! f)
16355 exit (1);
16356 if (((long) (sizeof (int))) < 0)
16357 {
16358 long i = longval ();
16359 if (i != ((long) (sizeof (int))))
16360 exit (1);
16361 fprintf (f, "%ld\n", i);
16362 }
16363 else
16364 {
16365 unsigned long i = ulongval ();
16366 if (i != ((long) (sizeof (int))))
16367 exit (1);
16368 fprintf (f, "%lu\n", i);
16369 }
16370 exit (ferror (f) || fclose (f) != 0);
16371
16372 ;
16373 return 0;
16374}
16375_ACEOF
16376rm -f conftest$ac_exeext
16377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16378 (eval $ac_link) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_cv_sizeof_int=`cat conftest.val`
16388else
16389 echo "$as_me: program exited with status $ac_status" >&5
16390echo "$as_me: failed program was:" >&5
16391sed 's/^/| /' conftest.$ac_ext >&5
16392
16393( exit $ac_status )
16394{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16395See \`config.log' for more details." >&5
16396echo "$as_me: error: cannot compute sizeof (int), 77
16397See \`config.log' for more details." >&2;}
16398 { (exit 1); exit 1; }; }
16399fi
ac1cb8d3 16400rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16401fi
16402fi
16403rm -f conftest.val
16404else
16405 ac_cv_sizeof_int=0
16406fi
16407fi
16408echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16409echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16410cat >>confdefs.h <<_ACEOF
16411#define SIZEOF_INT $ac_cv_sizeof_int
16412_ACEOF
16413
16414
16415echo "$as_me:$LINENO: checking for long" >&5
16416echo $ECHO_N "checking for long... $ECHO_C" >&6
16417if test "${ac_cv_type_long+set}" = set; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16419else
16420 cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
16426$ac_includes_default
16427int
16428main ()
16429{
16430if ((long *) 0)
16431 return 0;
16432if (sizeof (long))
16433 return 0;
16434 ;
16435 return 0;
16436}
16437_ACEOF
16438rm -f conftest.$ac_objext
16439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16440 (eval $ac_compile) 2>conftest.er1
a848cd7e 16441 ac_status=$?
ac1cb8d3
VS
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
a848cd7e
SC
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
89be85c2
VS
16447 { ac_try='test -z "$ac_c_werror_flag"
16448 || test ! -s conftest.err'
ac1cb8d3
VS
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; } &&
16454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_type_long=yes
16461else
16462 echo "$as_me: failed program was:" >&5
16463sed 's/^/| /' conftest.$ac_ext >&5
16464
16465ac_cv_type_long=no
16466fi
ac1cb8d3 16467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16468fi
16469echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16470echo "${ECHO_T}$ac_cv_type_long" >&6
16471
16472echo "$as_me:$LINENO: checking size of long" >&5
16473echo $ECHO_N "checking size of long... $ECHO_C" >&6
16474if test "${ac_cv_sizeof_long+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476else
16477 if test "$ac_cv_type_long" = yes; then
16478 # The cast to unsigned long works around a bug in the HP C Compiler
16479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16481 # This bug is HP SR number 8606223364.
16482 if test "$cross_compiling" = yes; then
16483 # Depending upon the size, compute the lo and hi bounds.
16484cat >conftest.$ac_ext <<_ACEOF
16485/* confdefs.h. */
16486_ACEOF
16487cat confdefs.h >>conftest.$ac_ext
16488cat >>conftest.$ac_ext <<_ACEOF
16489/* end confdefs.h. */
16490$ac_includes_default
16491int
16492main ()
16493{
16494static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16495test_array [0] = 0
16496
16497 ;
16498 return 0;
16499}
16500_ACEOF
16501rm -f conftest.$ac_objext
16502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16503 (eval $ac_compile) 2>conftest.er1
a848cd7e 16504 ac_status=$?
ac1cb8d3
VS
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
a848cd7e
SC
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
89be85c2
VS
16510 { ac_try='test -z "$ac_c_werror_flag"
16511 || test ! -s conftest.err'
ac1cb8d3
VS
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_lo=0 ac_mid=0
16524 while :; do
16525 cat >conftest.$ac_ext <<_ACEOF
16526/* confdefs.h. */
16527_ACEOF
16528cat confdefs.h >>conftest.$ac_ext
16529cat >>conftest.$ac_ext <<_ACEOF
16530/* end confdefs.h. */
16531$ac_includes_default
16532int
16533main ()
16534{
16535static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16536test_array [0] = 0
16537
16538 ;
16539 return 0;
16540}
16541_ACEOF
16542rm -f conftest.$ac_objext
16543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16544 (eval $ac_compile) 2>conftest.er1
a848cd7e 16545 ac_status=$?
ac1cb8d3
VS
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
a848cd7e
SC
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
89be85c2
VS
16551 { ac_try='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
ac1cb8d3
VS
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_hi=$ac_mid; break
16565else
16566 echo "$as_me: failed program was:" >&5
16567sed 's/^/| /' conftest.$ac_ext >&5
16568
16569ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16570 if test $ac_lo -le $ac_mid; then
16571 ac_lo= ac_hi=
16572 break
16573 fi
16574 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16575fi
ac1cb8d3 16576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16577 done
16578else
16579 echo "$as_me: failed program was:" >&5
16580sed 's/^/| /' conftest.$ac_ext >&5
16581
16582cat >conftest.$ac_ext <<_ACEOF
16583/* confdefs.h. */
16584_ACEOF
16585cat confdefs.h >>conftest.$ac_ext
16586cat >>conftest.$ac_ext <<_ACEOF
16587/* end confdefs.h. */
16588$ac_includes_default
16589int
16590main ()
16591{
16592static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16593test_array [0] = 0
16594
16595 ;
16596 return 0;
16597}
16598_ACEOF
16599rm -f conftest.$ac_objext
16600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16601 (eval $ac_compile) 2>conftest.er1
a848cd7e 16602 ac_status=$?
ac1cb8d3
VS
16603 grep -v '^ *+' conftest.er1 >conftest.err
16604 rm -f conftest.er1
16605 cat conftest.err >&5
a848cd7e
SC
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
89be85c2
VS
16608 { ac_try='test -z "$ac_c_werror_flag"
16609 || test ! -s conftest.err'
ac1cb8d3
VS
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 ac_hi=-1 ac_mid=-1
16622 while :; do
16623 cat >conftest.$ac_ext <<_ACEOF
16624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h. */
16629$ac_includes_default
16630int
16631main ()
16632{
16633static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16634test_array [0] = 0
16635
16636 ;
16637 return 0;
16638}
16639_ACEOF
16640rm -f conftest.$ac_objext
16641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16642 (eval $ac_compile) 2>conftest.er1
a848cd7e 16643 ac_status=$?
ac1cb8d3
VS
16644 grep -v '^ *+' conftest.er1 >conftest.err
16645 rm -f conftest.er1
16646 cat conftest.err >&5
a848cd7e
SC
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
89be85c2
VS
16649 { ac_try='test -z "$ac_c_werror_flag"
16650 || test ! -s conftest.err'
ac1cb8d3
VS
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_lo=$ac_mid; break
16663else
16664 echo "$as_me: failed program was:" >&5
16665sed 's/^/| /' conftest.$ac_ext >&5
16666
16667ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16668 if test $ac_mid -le $ac_hi; then
16669 ac_lo= ac_hi=
16670 break
16671 fi
16672 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16673fi
ac1cb8d3 16674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16675 done
16676else
16677 echo "$as_me: failed program was:" >&5
16678sed 's/^/| /' conftest.$ac_ext >&5
16679
16680ac_lo= ac_hi=
16681fi
ac1cb8d3 16682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16683fi
ac1cb8d3 16684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16685# Binary search between lo and hi bounds.
16686while test "x$ac_lo" != "x$ac_hi"; do
16687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16688 cat >conftest.$ac_ext <<_ACEOF
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
16694$ac_includes_default
16695int
16696main ()
16697{
16698static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16699test_array [0] = 0
16700
16701 ;
16702 return 0;
16703}
16704_ACEOF
16705rm -f conftest.$ac_objext
16706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16707 (eval $ac_compile) 2>conftest.er1
a848cd7e 16708 ac_status=$?
ac1cb8d3
VS
16709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
a848cd7e
SC
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
89be85c2
VS
16714 { ac_try='test -z "$ac_c_werror_flag"
16715 || test ! -s conftest.err'
ac1cb8d3
VS
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 ac_hi=$ac_mid
16728else
16729 echo "$as_me: failed program was:" >&5
16730sed 's/^/| /' conftest.$ac_ext >&5
16731
16732ac_lo=`expr '(' $ac_mid ')' + 1`
16733fi
ac1cb8d3 16734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16735done
16736case $ac_lo in
16737?*) ac_cv_sizeof_long=$ac_lo;;
16738'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16739See \`config.log' for more details." >&5
16740echo "$as_me: error: cannot compute sizeof (long), 77
16741See \`config.log' for more details." >&2;}
16742 { (exit 1); exit 1; }; } ;;
16743esac
16744else
16745 if test "$cross_compiling" = yes; then
89be85c2
VS
16746 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16747See \`config.log' for more details." >&5
16748echo "$as_me: error: cannot run test program while cross compiling
16749See \`config.log' for more details." >&2;}
a848cd7e
SC
16750 { (exit 1); exit 1; }; }
16751else
16752 cat >conftest.$ac_ext <<_ACEOF
16753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
16758$ac_includes_default
16759long longval () { return (long) (sizeof (long)); }
16760unsigned long ulongval () { return (long) (sizeof (long)); }
16761#include <stdio.h>
16762#include <stdlib.h>
16763int
16764main ()
16765{
16766
16767 FILE *f = fopen ("conftest.val", "w");
16768 if (! f)
16769 exit (1);
16770 if (((long) (sizeof (long))) < 0)
16771 {
16772 long i = longval ();
16773 if (i != ((long) (sizeof (long))))
16774 exit (1);
16775 fprintf (f, "%ld\n", i);
16776 }
16777 else
16778 {
16779 unsigned long i = ulongval ();
16780 if (i != ((long) (sizeof (long))))
16781 exit (1);
16782 fprintf (f, "%lu\n", i);
16783 }
16784 exit (ferror (f) || fclose (f) != 0);
16785
16786 ;
16787 return 0;
16788}
16789_ACEOF
16790rm -f conftest$ac_exeext
16791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16792 (eval $ac_link) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 ac_cv_sizeof_long=`cat conftest.val`
16802else
16803 echo "$as_me: program exited with status $ac_status" >&5
16804echo "$as_me: failed program was:" >&5
16805sed 's/^/| /' conftest.$ac_ext >&5
16806
16807( exit $ac_status )
16808{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16809See \`config.log' for more details." >&5
16810echo "$as_me: error: cannot compute sizeof (long), 77
16811See \`config.log' for more details." >&2;}
16812 { (exit 1); exit 1; }; }
16813fi
ac1cb8d3 16814rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16815fi
16816fi
16817rm -f conftest.val
16818else
16819 ac_cv_sizeof_long=0
16820fi
16821fi
16822echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16823echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16824cat >>confdefs.h <<_ACEOF
16825#define SIZEOF_LONG $ac_cv_sizeof_long
16826_ACEOF
16827
16828
16829echo "$as_me:$LINENO: checking for size_t" >&5
16830echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16831if test "${ac_cv_type_size_t+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833else
16834 cat >conftest.$ac_ext <<_ACEOF
16835/* confdefs.h. */
16836_ACEOF
16837cat confdefs.h >>conftest.$ac_ext
16838cat >>conftest.$ac_ext <<_ACEOF
16839/* end confdefs.h. */
16840$ac_includes_default
16841int
16842main ()
16843{
16844if ((size_t *) 0)
16845 return 0;
16846if (sizeof (size_t))
16847 return 0;
16848 ;
16849 return 0;
16850}
16851_ACEOF
16852rm -f conftest.$ac_objext
16853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16854 (eval $ac_compile) 2>conftest.er1
a848cd7e 16855 ac_status=$?
ac1cb8d3
VS
16856 grep -v '^ *+' conftest.er1 >conftest.err
16857 rm -f conftest.er1
16858 cat conftest.err >&5
a848cd7e
SC
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
89be85c2
VS
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
ac1cb8d3
VS
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_type_size_t=yes
16875else
16876 echo "$as_me: failed program was:" >&5
16877sed 's/^/| /' conftest.$ac_ext >&5
16878
16879ac_cv_type_size_t=no
16880fi
ac1cb8d3 16881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16882fi
16883echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16884echo "${ECHO_T}$ac_cv_type_size_t" >&6
16885
16886echo "$as_me:$LINENO: checking size of size_t" >&5
16887echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16888if test "${ac_cv_sizeof_size_t+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890else
16891 if test "$ac_cv_type_size_t" = yes; then
16892 # The cast to unsigned long works around a bug in the HP C Compiler
16893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16895 # This bug is HP SR number 8606223364.
16896 if test "$cross_compiling" = yes; then
16897 # Depending upon the size, compute the lo and hi bounds.
16898cat >conftest.$ac_ext <<_ACEOF
16899/* confdefs.h. */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h. */
16904$ac_includes_default
16905int
16906main ()
16907{
16908static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16909test_array [0] = 0
16910
16911 ;
16912 return 0;
16913}
16914_ACEOF
16915rm -f conftest.$ac_objext
16916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16917 (eval $ac_compile) 2>conftest.er1
a848cd7e 16918 ac_status=$?
ac1cb8d3
VS
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
a848cd7e
SC
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
89be85c2
VS
16924 { ac_try='test -z "$ac_c_werror_flag"
16925 || test ! -s conftest.err'
ac1cb8d3
VS
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; }; then
16937 ac_lo=0 ac_mid=0
16938 while :; do
16939 cat >conftest.$ac_ext <<_ACEOF
16940/* confdefs.h. */
16941_ACEOF
16942cat confdefs.h >>conftest.$ac_ext
16943cat >>conftest.$ac_ext <<_ACEOF
16944/* end confdefs.h. */
16945$ac_includes_default
16946int
16947main ()
16948{
16949static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16950test_array [0] = 0
16951
16952 ;
16953 return 0;
16954}
16955_ACEOF
16956rm -f conftest.$ac_objext
16957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16958 (eval $ac_compile) 2>conftest.er1
a848cd7e 16959 ac_status=$?
ac1cb8d3
VS
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
a848cd7e
SC
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
89be85c2
VS
16965 { ac_try='test -z "$ac_c_werror_flag"
16966 || test ! -s conftest.err'
ac1cb8d3
VS
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_hi=$ac_mid; break
16979else
16980 echo "$as_me: failed program was:" >&5
16981sed 's/^/| /' conftest.$ac_ext >&5
16982
16983ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16984 if test $ac_lo -le $ac_mid; then
16985 ac_lo= ac_hi=
16986 break
16987 fi
16988 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16989fi
ac1cb8d3 16990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16991 done
16992else
16993 echo "$as_me: failed program was:" >&5
16994sed 's/^/| /' conftest.$ac_ext >&5
16995
16996cat >conftest.$ac_ext <<_ACEOF
16997/* confdefs.h. */
16998_ACEOF
16999cat confdefs.h >>conftest.$ac_ext
17000cat >>conftest.$ac_ext <<_ACEOF
17001/* end confdefs.h. */
17002$ac_includes_default
17003int
17004main ()
17005{
17006static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17007test_array [0] = 0
17008
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013rm -f conftest.$ac_objext
17014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17015 (eval $ac_compile) 2>conftest.er1
a848cd7e 17016 ac_status=$?
ac1cb8d3
VS
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
a848cd7e
SC
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
89be85c2
VS
17022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
ac1cb8d3
VS
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_hi=-1 ac_mid=-1
17036 while :; do
17037 cat >conftest.$ac_ext <<_ACEOF
17038/* confdefs.h. */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h. */
17043$ac_includes_default
17044int
17045main ()
17046{
17047static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17048test_array [0] = 0
17049
17050 ;
17051 return 0;
17052}
17053_ACEOF
17054rm -f conftest.$ac_objext
17055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17056 (eval $ac_compile) 2>conftest.er1
a848cd7e 17057 ac_status=$?
ac1cb8d3
VS
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
a848cd7e
SC
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
89be85c2
VS
17063 { ac_try='test -z "$ac_c_werror_flag"
17064 || test ! -s conftest.err'
ac1cb8d3
VS
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; } &&
17070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 ac_lo=$ac_mid; break
17077else
17078 echo "$as_me: failed program was:" >&5
17079sed 's/^/| /' conftest.$ac_ext >&5
17080
17081ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17082 if test $ac_mid -le $ac_hi; then
17083 ac_lo= ac_hi=
17084 break
17085 fi
17086 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17087fi
ac1cb8d3 17088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17089 done
17090else
17091 echo "$as_me: failed program was:" >&5
17092sed 's/^/| /' conftest.$ac_ext >&5
17093
17094ac_lo= ac_hi=
17095fi
ac1cb8d3 17096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17097fi
ac1cb8d3 17098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17099# Binary search between lo and hi bounds.
17100while test "x$ac_lo" != "x$ac_hi"; do
17101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17102 cat >conftest.$ac_ext <<_ACEOF
17103/* confdefs.h. */
17104_ACEOF
17105cat confdefs.h >>conftest.$ac_ext
17106cat >>conftest.$ac_ext <<_ACEOF
17107/* end confdefs.h. */
17108$ac_includes_default
17109int
17110main ()
17111{
17112static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17113test_array [0] = 0
17114
17115 ;
17116 return 0;
17117}
17118_ACEOF
17119rm -f conftest.$ac_objext
17120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17121 (eval $ac_compile) 2>conftest.er1
a848cd7e 17122 ac_status=$?
ac1cb8d3
VS
17123 grep -v '^ *+' conftest.er1 >conftest.err
17124 rm -f conftest.er1
17125 cat conftest.err >&5
a848cd7e
SC
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
89be85c2
VS
17128 { ac_try='test -z "$ac_c_werror_flag"
17129 || test ! -s conftest.err'
ac1cb8d3
VS
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_hi=$ac_mid
17142else
17143 echo "$as_me: failed program was:" >&5
17144sed 's/^/| /' conftest.$ac_ext >&5
17145
17146ac_lo=`expr '(' $ac_mid ')' + 1`
17147fi
ac1cb8d3 17148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17149done
17150case $ac_lo in
17151?*) ac_cv_sizeof_size_t=$ac_lo;;
17152'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17153See \`config.log' for more details." >&5
17154echo "$as_me: error: cannot compute sizeof (size_t), 77
17155See \`config.log' for more details." >&2;}
17156 { (exit 1); exit 1; }; } ;;
17157esac
17158else
17159 if test "$cross_compiling" = yes; then
89be85c2
VS
17160 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17161See \`config.log' for more details." >&5
17162echo "$as_me: error: cannot run test program while cross compiling
17163See \`config.log' for more details." >&2;}
a848cd7e
SC
17164 { (exit 1); exit 1; }; }
17165else
17166 cat >conftest.$ac_ext <<_ACEOF
17167/* confdefs.h. */
17168_ACEOF
17169cat confdefs.h >>conftest.$ac_ext
17170cat >>conftest.$ac_ext <<_ACEOF
17171/* end confdefs.h. */
17172$ac_includes_default
17173long longval () { return (long) (sizeof (size_t)); }
17174unsigned long ulongval () { return (long) (sizeof (size_t)); }
17175#include <stdio.h>
17176#include <stdlib.h>
17177int
17178main ()
17179{
17180
17181 FILE *f = fopen ("conftest.val", "w");
17182 if (! f)
17183 exit (1);
17184 if (((long) (sizeof (size_t))) < 0)
17185 {
17186 long i = longval ();
17187 if (i != ((long) (sizeof (size_t))))
17188 exit (1);
17189 fprintf (f, "%ld\n", i);
17190 }
17191 else
17192 {
17193 unsigned long i = ulongval ();
17194 if (i != ((long) (sizeof (size_t))))
17195 exit (1);
17196 fprintf (f, "%lu\n", i);
17197 }
17198 exit (ferror (f) || fclose (f) != 0);
17199
17200 ;
17201 return 0;
17202}
17203_ACEOF
17204rm -f conftest$ac_exeext
17205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17206 (eval $ac_link) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_cv_sizeof_size_t=`cat conftest.val`
17216else
17217 echo "$as_me: program exited with status $ac_status" >&5
17218echo "$as_me: failed program was:" >&5
17219sed 's/^/| /' conftest.$ac_ext >&5
17220
17221( exit $ac_status )
17222{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17223See \`config.log' for more details." >&5
17224echo "$as_me: error: cannot compute sizeof (size_t), 77
17225See \`config.log' for more details." >&2;}
17226 { (exit 1); exit 1; }; }
17227fi
ac1cb8d3 17228rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17229fi
17230fi
17231rm -f conftest.val
17232else
17233 ac_cv_sizeof_size_t=0
17234fi
17235fi
17236echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17237echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17238cat >>confdefs.h <<_ACEOF
17239#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17240_ACEOF
17241
17242
17243
17244case "${host}" in
17245 arm-*-linux* )
17246 echo "$as_me:$LINENO: checking for long long" >&5
17247echo $ECHO_N "checking for long long... $ECHO_C" >&6
17248if test "${ac_cv_type_long_long+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250else
17251 cat >conftest.$ac_ext <<_ACEOF
17252/* confdefs.h. */
17253_ACEOF
17254cat confdefs.h >>conftest.$ac_ext
17255cat >>conftest.$ac_ext <<_ACEOF
17256/* end confdefs.h. */
17257$ac_includes_default
17258int
17259main ()
17260{
17261if ((long long *) 0)
17262 return 0;
17263if (sizeof (long long))
17264 return 0;
17265 ;
17266 return 0;
17267}
17268_ACEOF
17269rm -f conftest.$ac_objext
17270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17271 (eval $ac_compile) 2>conftest.er1
a848cd7e 17272 ac_status=$?
ac1cb8d3
VS
17273 grep -v '^ *+' conftest.er1 >conftest.err
17274 rm -f conftest.er1
17275 cat conftest.err >&5
a848cd7e
SC
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } &&
89be85c2
VS
17278 { ac_try='test -z "$ac_c_werror_flag"
17279 || test ! -s conftest.err'
ac1cb8d3
VS
17280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281 (eval $ac_try) 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; } &&
17285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; }; then
17291 ac_cv_type_long_long=yes
17292else
17293 echo "$as_me: failed program was:" >&5
17294sed 's/^/| /' conftest.$ac_ext >&5
17295
17296ac_cv_type_long_long=no
17297fi
ac1cb8d3 17298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17299fi
17300echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17301echo "${ECHO_T}$ac_cv_type_long_long" >&6
17302
17303echo "$as_me:$LINENO: checking size of long long" >&5
17304echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17305if test "${ac_cv_sizeof_long_long+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307else
17308 if test "$ac_cv_type_long_long" = yes; then
17309 # The cast to unsigned long works around a bug in the HP C Compiler
17310 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17311 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17312 # This bug is HP SR number 8606223364.
17313 if test "$cross_compiling" = yes; then
17314 # Depending upon the size, compute the lo and hi bounds.
17315cat >conftest.$ac_ext <<_ACEOF
17316/* confdefs.h. */
17317_ACEOF
17318cat confdefs.h >>conftest.$ac_ext
17319cat >>conftest.$ac_ext <<_ACEOF
17320/* end confdefs.h. */
17321$ac_includes_default
17322int
17323main ()
17324{
17325static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17326test_array [0] = 0
17327
17328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext
17333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17334 (eval $ac_compile) 2>conftest.er1
a848cd7e 17335 ac_status=$?
ac1cb8d3
VS
17336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
a848cd7e
SC
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
89be85c2
VS
17341 { ac_try='test -z "$ac_c_werror_flag"
17342 || test ! -s conftest.err'
ac1cb8d3
VS
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_lo=0 ac_mid=0
17355 while :; do
17356 cat >conftest.$ac_ext <<_ACEOF
17357/* confdefs.h. */
17358_ACEOF
17359cat confdefs.h >>conftest.$ac_ext
17360cat >>conftest.$ac_ext <<_ACEOF
17361/* end confdefs.h. */
17362$ac_includes_default
17363int
17364main ()
17365{
17366static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17367test_array [0] = 0
17368
17369 ;
17370 return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext
17374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17375 (eval $ac_compile) 2>conftest.er1
a848cd7e 17376 ac_status=$?
ac1cb8d3
VS
17377 grep -v '^ *+' conftest.er1 >conftest.err
17378 rm -f conftest.er1
17379 cat conftest.err >&5
a848cd7e
SC
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
89be85c2
VS
17382 { ac_try='test -z "$ac_c_werror_flag"
17383 || test ! -s conftest.err'
ac1cb8d3
VS
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_hi=$ac_mid; break
17396else
17397 echo "$as_me: failed program was:" >&5
17398sed 's/^/| /' conftest.$ac_ext >&5
17399
17400ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17401 if test $ac_lo -le $ac_mid; then
17402 ac_lo= ac_hi=
17403 break
17404 fi
17405 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17406fi
ac1cb8d3 17407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17408 done
17409else
17410 echo "$as_me: failed program was:" >&5
17411sed 's/^/| /' conftest.$ac_ext >&5
17412
17413cat >conftest.$ac_ext <<_ACEOF
17414/* confdefs.h. */
17415_ACEOF
17416cat confdefs.h >>conftest.$ac_ext
17417cat >>conftest.$ac_ext <<_ACEOF
17418/* end confdefs.h. */
17419$ac_includes_default
17420int
17421main ()
17422{
17423static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17424test_array [0] = 0
17425
17426 ;
17427 return 0;
17428}
17429_ACEOF
17430rm -f conftest.$ac_objext
17431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17432 (eval $ac_compile) 2>conftest.er1
a848cd7e 17433 ac_status=$?
ac1cb8d3
VS
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
a848cd7e
SC
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
89be85c2
VS
17439 { ac_try='test -z "$ac_c_werror_flag"
17440 || test ! -s conftest.err'
ac1cb8d3
VS
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_hi=-1 ac_mid=-1
17453 while :; do
17454 cat >conftest.$ac_ext <<_ACEOF
17455/* confdefs.h. */
17456_ACEOF
17457cat confdefs.h >>conftest.$ac_ext
17458cat >>conftest.$ac_ext <<_ACEOF
17459/* end confdefs.h. */
17460$ac_includes_default
17461int
17462main ()
17463{
17464static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17465test_array [0] = 0
17466
17467 ;
17468 return 0;
17469}
17470_ACEOF
17471rm -f conftest.$ac_objext
17472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17473 (eval $ac_compile) 2>conftest.er1
a848cd7e 17474 ac_status=$?
ac1cb8d3
VS
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
a848cd7e
SC
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
89be85c2
VS
17480 { ac_try='test -z "$ac_c_werror_flag"
17481 || test ! -s conftest.err'
ac1cb8d3
VS
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_lo=$ac_mid; break
17494else
17495 echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17499 if test $ac_mid -le $ac_hi; then
17500 ac_lo= ac_hi=
17501 break
17502 fi
17503 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17504fi
ac1cb8d3 17505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17506 done
17507else
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511ac_lo= ac_hi=
17512fi
ac1cb8d3 17513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17514fi
ac1cb8d3 17515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17516# Binary search between lo and hi bounds.
17517while test "x$ac_lo" != "x$ac_hi"; do
17518 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17519 cat >conftest.$ac_ext <<_ACEOF
17520/* confdefs.h. */
17521_ACEOF
17522cat confdefs.h >>conftest.$ac_ext
17523cat >>conftest.$ac_ext <<_ACEOF
17524/* end confdefs.h. */
17525$ac_includes_default
17526int
17527main ()
17528{
17529static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17530test_array [0] = 0
17531
17532 ;
17533 return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext
17537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17538 (eval $ac_compile) 2>conftest.er1
a848cd7e 17539 ac_status=$?
ac1cb8d3
VS
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
a848cd7e
SC
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
89be85c2
VS
17545 { ac_try='test -z "$ac_c_werror_flag"
17546 || test ! -s conftest.err'
ac1cb8d3
VS
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_hi=$ac_mid
17559else
17560 echo "$as_me: failed program was:" >&5
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
17563ac_lo=`expr '(' $ac_mid ')' + 1`
17564fi
ac1cb8d3 17565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17566done
17567case $ac_lo in
17568?*) ac_cv_sizeof_long_long=$ac_lo;;
17569'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17570See \`config.log' for more details." >&5
17571echo "$as_me: error: cannot compute sizeof (long long), 77
17572See \`config.log' for more details." >&2;}
17573 { (exit 1); exit 1; }; } ;;
17574esac
17575else
17576 if test "$cross_compiling" = yes; then
89be85c2
VS
17577 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17578See \`config.log' for more details." >&5
17579echo "$as_me: error: cannot run test program while cross compiling
17580See \`config.log' for more details." >&2;}
a848cd7e
SC
17581 { (exit 1); exit 1; }; }
17582else
17583 cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h. */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h. */
17589$ac_includes_default
17590long longval () { return (long) (sizeof (long long)); }
17591unsigned long ulongval () { return (long) (sizeof (long long)); }
17592#include <stdio.h>
17593#include <stdlib.h>
17594int
17595main ()
17596{
17597
17598 FILE *f = fopen ("conftest.val", "w");
17599 if (! f)
17600 exit (1);
17601 if (((long) (sizeof (long long))) < 0)
17602 {
17603 long i = longval ();
17604 if (i != ((long) (sizeof (long long))))
17605 exit (1);
17606 fprintf (f, "%ld\n", i);
17607 }
17608 else
17609 {
17610 unsigned long i = ulongval ();
17611 if (i != ((long) (sizeof (long long))))
17612 exit (1);
17613 fprintf (f, "%lu\n", i);
17614 }
17615 exit (ferror (f) || fclose (f) != 0);
17616
17617 ;
17618 return 0;
17619}
17620_ACEOF
17621rm -f conftest$ac_exeext
17622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17623 (eval $ac_link) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 ac_cv_sizeof_long_long=`cat conftest.val`
17633else
17634 echo "$as_me: program exited with status $ac_status" >&5
17635echo "$as_me: failed program was:" >&5
17636sed 's/^/| /' conftest.$ac_ext >&5
17637
17638( exit $ac_status )
17639{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17640See \`config.log' for more details." >&5
17641echo "$as_me: error: cannot compute sizeof (long long), 77
17642See \`config.log' for more details." >&2;}
17643 { (exit 1); exit 1; }; }
17644fi
ac1cb8d3 17645rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17646fi
17647fi
17648rm -f conftest.val
17649else
17650 ac_cv_sizeof_long_long=0
17651fi
17652fi
17653echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17654echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17655cat >>confdefs.h <<_ACEOF
17656#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17657_ACEOF
17658
17659
17660 ;;
17661 *-hp-hpux* )
17662 echo "$as_me:$LINENO: checking for long long" >&5
17663echo $ECHO_N "checking for long long... $ECHO_C" >&6
17664if test "${ac_cv_type_long_long+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666else
17667 cat >conftest.$ac_ext <<_ACEOF
17668/* confdefs.h. */
17669_ACEOF
17670cat confdefs.h >>conftest.$ac_ext
17671cat >>conftest.$ac_ext <<_ACEOF
17672/* end confdefs.h. */
17673$ac_includes_default
17674int
17675main ()
17676{
17677if ((long long *) 0)
17678 return 0;
17679if (sizeof (long long))
17680 return 0;
17681 ;
17682 return 0;
17683}
17684_ACEOF
17685rm -f conftest.$ac_objext
17686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17687 (eval $ac_compile) 2>conftest.er1
a848cd7e 17688 ac_status=$?
ac1cb8d3
VS
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
a848cd7e
SC
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
89be85c2
VS
17694 { ac_try='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
ac1cb8d3
VS
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_type_long_long=yes
17708else
17709 echo "$as_me: failed program was:" >&5
17710sed 's/^/| /' conftest.$ac_ext >&5
17711
17712ac_cv_type_long_long=no
17713fi
ac1cb8d3 17714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17715fi
17716echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17717echo "${ECHO_T}$ac_cv_type_long_long" >&6
17718
17719echo "$as_me:$LINENO: checking size of long long" >&5
17720echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17721if test "${ac_cv_sizeof_long_long+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724 if test "$ac_cv_type_long_long" = yes; then
17725 # The cast to unsigned long works around a bug in the HP C Compiler
17726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17728 # This bug is HP SR number 8606223364.
17729 if test "$cross_compiling" = yes; then
17730 # Depending upon the size, compute the lo and hi bounds.
17731cat >conftest.$ac_ext <<_ACEOF
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737$ac_includes_default
17738int
17739main ()
17740{
17741static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17742test_array [0] = 0
17743
17744 ;
17745 return 0;
17746}
17747_ACEOF
17748rm -f conftest.$ac_objext
17749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17750 (eval $ac_compile) 2>conftest.er1
a848cd7e 17751 ac_status=$?
ac1cb8d3
VS
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
a848cd7e
SC
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
89be85c2
VS
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
ac1cb8d3
VS
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 ac_lo=0 ac_mid=0
17771 while :; do
17772 cat >conftest.$ac_ext <<_ACEOF
17773/* confdefs.h. */
17774_ACEOF
17775cat confdefs.h >>conftest.$ac_ext
17776cat >>conftest.$ac_ext <<_ACEOF
17777/* end confdefs.h. */
17778$ac_includes_default
17779int
17780main ()
17781{
17782static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17783test_array [0] = 0
17784
17785 ;
17786 return 0;
17787}
17788_ACEOF
17789rm -f conftest.$ac_objext
17790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17791 (eval $ac_compile) 2>conftest.er1
a848cd7e 17792 ac_status=$?
ac1cb8d3
VS
17793 grep -v '^ *+' conftest.er1 >conftest.err
17794 rm -f conftest.er1
17795 cat conftest.err >&5
a848cd7e
SC
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
89be85c2
VS
17798 { ac_try='test -z "$ac_c_werror_flag"
17799 || test ! -s conftest.err'
ac1cb8d3
VS
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } &&
17805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; }; then
17811 ac_hi=$ac_mid; break
17812else
17813 echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
17815
17816ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17817 if test $ac_lo -le $ac_mid; then
17818 ac_lo= ac_hi=
17819 break
17820 fi
17821 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17822fi
ac1cb8d3 17823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17824 done
17825else
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829cat >conftest.$ac_ext <<_ACEOF
17830/* confdefs.h. */
17831_ACEOF
17832cat confdefs.h >>conftest.$ac_ext
17833cat >>conftest.$ac_ext <<_ACEOF
17834/* end confdefs.h. */
17835$ac_includes_default
17836int
17837main ()
17838{
17839static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17840test_array [0] = 0
17841
17842 ;
17843 return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext
17847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17848 (eval $ac_compile) 2>conftest.er1
a848cd7e 17849 ac_status=$?
ac1cb8d3
VS
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
a848cd7e
SC
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
89be85c2
VS
17855 { ac_try='test -z "$ac_c_werror_flag"
17856 || test ! -s conftest.err'
ac1cb8d3
VS
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_hi=-1 ac_mid=-1
17869 while :; do
17870 cat >conftest.$ac_ext <<_ACEOF
17871/* confdefs.h. */
17872_ACEOF
17873cat confdefs.h >>conftest.$ac_ext
17874cat >>conftest.$ac_ext <<_ACEOF
17875/* end confdefs.h. */
17876$ac_includes_default
17877int
17878main ()
17879{
17880static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17881test_array [0] = 0
17882
17883 ;
17884 return 0;
17885}
17886_ACEOF
17887rm -f conftest.$ac_objext
17888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17889 (eval $ac_compile) 2>conftest.er1
a848cd7e 17890 ac_status=$?
ac1cb8d3
VS
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
a848cd7e
SC
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
89be85c2
VS
17896 { ac_try='test -z "$ac_c_werror_flag"
17897 || test ! -s conftest.err'
ac1cb8d3
VS
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 ac_lo=$ac_mid; break
17910else
17911 echo "$as_me: failed program was:" >&5
17912sed 's/^/| /' conftest.$ac_ext >&5
17913
17914ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17915 if test $ac_mid -le $ac_hi; then
17916 ac_lo= ac_hi=
17917 break
17918 fi
17919 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17920fi
ac1cb8d3 17921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17922 done
17923else
17924 echo "$as_me: failed program was:" >&5
17925sed 's/^/| /' conftest.$ac_ext >&5
17926
17927ac_lo= ac_hi=
17928fi
ac1cb8d3 17929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17930fi
ac1cb8d3 17931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17932# Binary search between lo and hi bounds.
17933while test "x$ac_lo" != "x$ac_hi"; do
17934 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17935 cat >conftest.$ac_ext <<_ACEOF
17936/* confdefs.h. */
17937_ACEOF
17938cat confdefs.h >>conftest.$ac_ext
17939cat >>conftest.$ac_ext <<_ACEOF
17940/* end confdefs.h. */
17941$ac_includes_default
17942int
17943main ()
17944{
17945static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17946test_array [0] = 0
17947
17948 ;
17949 return 0;
17950}
17951_ACEOF
17952rm -f conftest.$ac_objext
17953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17954 (eval $ac_compile) 2>conftest.er1
a848cd7e 17955 ac_status=$?
ac1cb8d3
VS
17956 grep -v '^ *+' conftest.er1 >conftest.err
17957 rm -f conftest.er1
17958 cat conftest.err >&5
a848cd7e
SC
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } &&
89be85c2
VS
17961 { ac_try='test -z "$ac_c_werror_flag"
17962 || test ! -s conftest.err'
ac1cb8d3
VS
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17974 ac_hi=$ac_mid
17975else
17976 echo "$as_me: failed program was:" >&5
17977sed 's/^/| /' conftest.$ac_ext >&5
17978
17979ac_lo=`expr '(' $ac_mid ')' + 1`
17980fi
ac1cb8d3 17981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17982done
17983case $ac_lo in
17984?*) ac_cv_sizeof_long_long=$ac_lo;;
17985'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17986See \`config.log' for more details." >&5
17987echo "$as_me: error: cannot compute sizeof (long long), 77
17988See \`config.log' for more details." >&2;}
17989 { (exit 1); exit 1; }; } ;;
17990esac
17991else
17992 if test "$cross_compiling" = yes; then
89be85c2
VS
17993 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17994See \`config.log' for more details." >&5
17995echo "$as_me: error: cannot run test program while cross compiling
17996See \`config.log' for more details." >&2;}
a848cd7e
SC
17997 { (exit 1); exit 1; }; }
17998else
17999 cat >conftest.$ac_ext <<_ACEOF
18000/* confdefs.h. */
18001_ACEOF
18002cat confdefs.h >>conftest.$ac_ext
18003cat >>conftest.$ac_ext <<_ACEOF
18004/* end confdefs.h. */
18005$ac_includes_default
18006long longval () { return (long) (sizeof (long long)); }
18007unsigned long ulongval () { return (long) (sizeof (long long)); }
18008#include <stdio.h>
18009#include <stdlib.h>
18010int
18011main ()
18012{
18013
18014 FILE *f = fopen ("conftest.val", "w");
18015 if (! f)
18016 exit (1);
18017 if (((long) (sizeof (long long))) < 0)
18018 {
18019 long i = longval ();
18020 if (i != ((long) (sizeof (long long))))
18021 exit (1);
18022 fprintf (f, "%ld\n", i);
18023 }
18024 else
18025 {
18026 unsigned long i = ulongval ();
18027 if (i != ((long) (sizeof (long long))))
18028 exit (1);
18029 fprintf (f, "%lu\n", i);
18030 }
18031 exit (ferror (f) || fclose (f) != 0);
18032
18033 ;
18034 return 0;
18035}
18036_ACEOF
18037rm -f conftest$ac_exeext
18038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039 (eval $ac_link) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 ac_cv_sizeof_long_long=`cat conftest.val`
18049else
18050 echo "$as_me: program exited with status $ac_status" >&5
18051echo "$as_me: failed program was:" >&5
18052sed 's/^/| /' conftest.$ac_ext >&5
18053
18054( exit $ac_status )
18055{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18056See \`config.log' for more details." >&5
18057echo "$as_me: error: cannot compute sizeof (long long), 77
18058See \`config.log' for more details." >&2;}
18059 { (exit 1); exit 1; }; }
18060fi
ac1cb8d3 18061rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18062fi
18063fi
18064rm -f conftest.val
18065else
18066 ac_cv_sizeof_long_long=0
18067fi
18068fi
18069echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18070echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18071cat >>confdefs.h <<_ACEOF
18072#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18073_ACEOF
18074
18075
18076 if test "$ac_cv_sizeof_long_long" != "0"; then
18077 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18078 fi
18079 ;;
18080 * )
18081 echo "$as_me:$LINENO: checking for long long" >&5
18082echo $ECHO_N "checking for long long... $ECHO_C" >&6
18083if test "${ac_cv_type_long_long+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18085else
18086 cat >conftest.$ac_ext <<_ACEOF
18087/* confdefs.h. */
18088_ACEOF
18089cat confdefs.h >>conftest.$ac_ext
18090cat >>conftest.$ac_ext <<_ACEOF
18091/* end confdefs.h. */
18092$ac_includes_default
18093int
18094main ()
18095{
18096if ((long long *) 0)
18097 return 0;
18098if (sizeof (long long))
18099 return 0;
18100 ;
18101 return 0;
18102}
18103_ACEOF
18104rm -f conftest.$ac_objext
18105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18106 (eval $ac_compile) 2>conftest.er1
a848cd7e 18107 ac_status=$?
ac1cb8d3
VS
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
a848cd7e
SC
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
89be85c2
VS
18113 { ac_try='test -z "$ac_c_werror_flag"
18114 || test ! -s conftest.err'
ac1cb8d3
VS
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 ac_cv_type_long_long=yes
18127else
18128 echo "$as_me: failed program was:" >&5
18129sed 's/^/| /' conftest.$ac_ext >&5
18130
18131ac_cv_type_long_long=no
18132fi
ac1cb8d3 18133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18134fi
18135echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18136echo "${ECHO_T}$ac_cv_type_long_long" >&6
18137
18138echo "$as_me:$LINENO: checking size of long long" >&5
18139echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18140if test "${ac_cv_sizeof_long_long+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18142else
18143 if test "$ac_cv_type_long_long" = yes; then
18144 # The cast to unsigned long works around a bug in the HP C Compiler
18145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18147 # This bug is HP SR number 8606223364.
18148 if test "$cross_compiling" = yes; then
18149 # Depending upon the size, compute the lo and hi bounds.
18150cat >conftest.$ac_ext <<_ACEOF
18151/* confdefs.h. */
18152_ACEOF
18153cat confdefs.h >>conftest.$ac_ext
18154cat >>conftest.$ac_ext <<_ACEOF
18155/* end confdefs.h. */
18156$ac_includes_default
18157int
18158main ()
18159{
18160static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18161test_array [0] = 0
18162
18163 ;
18164 return 0;
18165}
18166_ACEOF
18167rm -f conftest.$ac_objext
18168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18169 (eval $ac_compile) 2>conftest.er1
a848cd7e 18170 ac_status=$?
ac1cb8d3
VS
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
a848cd7e
SC
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
89be85c2
VS
18176 { ac_try='test -z "$ac_c_werror_flag"
18177 || test ! -s conftest.err'
ac1cb8d3
VS
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; } &&
18183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_lo=0 ac_mid=0
18190 while :; do
18191 cat >conftest.$ac_ext <<_ACEOF
18192/* confdefs.h. */
18193_ACEOF
18194cat confdefs.h >>conftest.$ac_ext
18195cat >>conftest.$ac_ext <<_ACEOF
18196/* end confdefs.h. */
18197$ac_includes_default
18198int
18199main ()
18200{
18201static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18202test_array [0] = 0
18203
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest.$ac_objext
18209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18210 (eval $ac_compile) 2>conftest.er1
a848cd7e 18211 ac_status=$?
ac1cb8d3
VS
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
a848cd7e
SC
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
89be85c2
VS
18217 { ac_try='test -z "$ac_c_werror_flag"
18218 || test ! -s conftest.err'
ac1cb8d3
VS
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 ac_hi=$ac_mid; break
18231else
18232 echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18236 if test $ac_lo -le $ac_mid; then
18237 ac_lo= ac_hi=
18238 break
18239 fi
18240 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18241fi
ac1cb8d3 18242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18243 done
18244else
18245 echo "$as_me: failed program was:" >&5
18246sed 's/^/| /' conftest.$ac_ext >&5
18247
18248cat >conftest.$ac_ext <<_ACEOF
18249/* confdefs.h. */
18250_ACEOF
18251cat confdefs.h >>conftest.$ac_ext
18252cat >>conftest.$ac_ext <<_ACEOF
18253/* end confdefs.h. */
18254$ac_includes_default
18255int
18256main ()
18257{
18258static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18259test_array [0] = 0
18260
18261 ;
18262 return 0;
18263}
18264_ACEOF
18265rm -f conftest.$ac_objext
18266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18267 (eval $ac_compile) 2>conftest.er1
a848cd7e 18268 ac_status=$?
ac1cb8d3
VS
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
a848cd7e
SC
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
89be85c2
VS
18274 { ac_try='test -z "$ac_c_werror_flag"
18275 || test ! -s conftest.err'
ac1cb8d3
VS
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18287 ac_hi=-1 ac_mid=-1
18288 while :; do
18289 cat >conftest.$ac_ext <<_ACEOF
18290/* confdefs.h. */
18291_ACEOF
18292cat confdefs.h >>conftest.$ac_ext
18293cat >>conftest.$ac_ext <<_ACEOF
18294/* end confdefs.h. */
18295$ac_includes_default
18296int
18297main ()
18298{
18299static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18300test_array [0] = 0
18301
18302 ;
18303 return 0;
18304}
18305_ACEOF
18306rm -f conftest.$ac_objext
18307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18308 (eval $ac_compile) 2>conftest.er1
a848cd7e 18309 ac_status=$?
ac1cb8d3
VS
18310 grep -v '^ *+' conftest.er1 >conftest.err
18311 rm -f conftest.er1
18312 cat conftest.err >&5
a848cd7e
SC
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
89be85c2
VS
18315 { ac_try='test -z "$ac_c_werror_flag"
18316 || test ! -s conftest.err'
ac1cb8d3
VS
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; } &&
18322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; }; then
18328 ac_lo=$ac_mid; break
18329else
18330 echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18334 if test $ac_mid -le $ac_hi; then
18335 ac_lo= ac_hi=
18336 break
18337 fi
18338 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18339fi
ac1cb8d3 18340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18341 done
18342else
18343 echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346ac_lo= ac_hi=
18347fi
ac1cb8d3 18348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18349fi
ac1cb8d3 18350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18351# Binary search between lo and hi bounds.
18352while test "x$ac_lo" != "x$ac_hi"; do
18353 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18354 cat >conftest.$ac_ext <<_ACEOF
18355/* confdefs.h. */
18356_ACEOF
18357cat confdefs.h >>conftest.$ac_ext
18358cat >>conftest.$ac_ext <<_ACEOF
18359/* end confdefs.h. */
18360$ac_includes_default
18361int
18362main ()
18363{
18364static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18365test_array [0] = 0
18366
18367 ;
18368 return 0;
18369}
18370_ACEOF
18371rm -f conftest.$ac_objext
18372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18373 (eval $ac_compile) 2>conftest.er1
a848cd7e 18374 ac_status=$?
ac1cb8d3
VS
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
a848cd7e
SC
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
89be85c2
VS
18380 { ac_try='test -z "$ac_c_werror_flag"
18381 || test ! -s conftest.err'
ac1cb8d3
VS
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
18393 ac_hi=$ac_mid
18394else
18395 echo "$as_me: failed program was:" >&5
18396sed 's/^/| /' conftest.$ac_ext >&5
18397
18398ac_lo=`expr '(' $ac_mid ')' + 1`
18399fi
ac1cb8d3 18400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18401done
18402case $ac_lo in
18403?*) ac_cv_sizeof_long_long=$ac_lo;;
18404'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18405See \`config.log' for more details." >&5
18406echo "$as_me: error: cannot compute sizeof (long long), 77
18407See \`config.log' for more details." >&2;}
18408 { (exit 1); exit 1; }; } ;;
18409esac
18410else
18411 if test "$cross_compiling" = yes; then
89be85c2
VS
18412 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18413See \`config.log' for more details." >&5
18414echo "$as_me: error: cannot run test program while cross compiling
18415See \`config.log' for more details." >&2;}
a848cd7e
SC
18416 { (exit 1); exit 1; }; }
18417else
18418 cat >conftest.$ac_ext <<_ACEOF
18419/* confdefs.h. */
18420_ACEOF
18421cat confdefs.h >>conftest.$ac_ext
18422cat >>conftest.$ac_ext <<_ACEOF
18423/* end confdefs.h. */
18424$ac_includes_default
18425long longval () { return (long) (sizeof (long long)); }
18426unsigned long ulongval () { return (long) (sizeof (long long)); }
18427#include <stdio.h>
18428#include <stdlib.h>
18429int
18430main ()
18431{
18432
18433 FILE *f = fopen ("conftest.val", "w");
18434 if (! f)
18435 exit (1);
18436 if (((long) (sizeof (long long))) < 0)
18437 {
18438 long i = longval ();
18439 if (i != ((long) (sizeof (long long))))
18440 exit (1);
18441 fprintf (f, "%ld\n", i);
18442 }
18443 else
18444 {
18445 unsigned long i = ulongval ();
18446 if (i != ((long) (sizeof (long long))))
18447 exit (1);
18448 fprintf (f, "%lu\n", i);
18449 }
18450 exit (ferror (f) || fclose (f) != 0);
18451
18452 ;
18453 return 0;
18454}
18455_ACEOF
18456rm -f conftest$ac_exeext
18457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18458 (eval $ac_link) 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 ac_cv_sizeof_long_long=`cat conftest.val`
18468else
18469 echo "$as_me: program exited with status $ac_status" >&5
18470echo "$as_me: failed program was:" >&5
18471sed 's/^/| /' conftest.$ac_ext >&5
18472
18473( exit $ac_status )
18474{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18475See \`config.log' for more details." >&5
18476echo "$as_me: error: cannot compute sizeof (long long), 77
18477See \`config.log' for more details." >&2;}
18478 { (exit 1); exit 1; }; }
18479fi
ac1cb8d3 18480rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18481fi
18482fi
18483rm -f conftest.val
18484else
18485 ac_cv_sizeof_long_long=0
18486fi
18487fi
18488echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18489echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18490cat >>confdefs.h <<_ACEOF
18491#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18492_ACEOF
18493
18494
18495esac
18496
18497echo "$as_me:$LINENO: checking size of wchar_t" >&5
18498echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18499if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18501else
18502
18503 if test "$cross_compiling" = yes; then
18504
18505 case "${host}" in
18506 *-pc-msdosdjgpp )
18507 wx_cv_sizeof_wchar_t=0
18508 ;;
18509 * )
18510 wx_cv_sizeof_wchar_t=4
18511 ;;
18512 esac
18513
18514
18515else
18516 cat >conftest.$ac_ext <<_ACEOF
18517/* confdefs.h. */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h. */
18522
18523 /* DJGPP only has fake wchar_t: */
18524 #ifdef __DJGPP__
18525 # error "fake wchar_t"
18526 #endif
18527 #ifdef HAVE_WCHAR_H
18528 # ifdef __CYGWIN__
18529 # include <stddef.h>
18530 # endif
18531 # include <wchar.h>
18532 #endif
18533 #ifdef HAVE_STDLIB_H
18534 # include <stdlib.h>
18535 #endif
18536 #include <stdio.h>
18537 int main()
18538 {
18539 FILE *f=fopen("conftestval", "w");
18540 if (!f) exit(1);
18541 fprintf(f, "%i", sizeof(wchar_t));
18542 exit(0);
18543 }
18544
18545_ACEOF
18546rm -f conftest$ac_exeext
18547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 (eval $ac_link) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 wx_cv_sizeof_wchar_t=`cat conftestval`
18558else
18559 echo "$as_me: program exited with status $ac_status" >&5
18560echo "$as_me: failed program was:" >&5
18561sed 's/^/| /' conftest.$ac_ext >&5
18562
18563( exit $ac_status )
18564wx_cv_sizeof_wchar_t=0
18565fi
ac1cb8d3 18566rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18567fi
18568
18569fi
18570echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18571echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18572
18573cat >>confdefs.h <<_ACEOF
18574#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18575_ACEOF
18576
18577
ba3d13e1
VZ
18578echo "$as_me:$LINENO: checking for va_copy" >&5
18579echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18580if test "${wx_cv_func_va_copy+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18582else
18583
18584 cat >conftest.$ac_ext <<_ACEOF
18585
18586 #include <stdarg.h>
18587 void foo(char *f, ...)
18588 {
18589 va_list ap1, ap2;
18590 va_start(ap1, f);
18591 va_copy(ap2, ap1);
18592 va_end(ap2);
18593 va_end(ap1);
18594 }
5886b072
VZ
18595 int main()
18596 {
b902e639
VZ
18597 foo("hi", 17);
18598 return 0;
5886b072 18599 }
ba3d13e1
VZ
18600_ACEOF
18601rm -f conftest.$ac_objext conftest$ac_exeext
18602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18603 (eval $ac_link) 2>conftest.er1
18604 ac_status=$?
18605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
89be85c2
VS
18610 { ac_try='test -z "$ac_c_werror_flag"
18611 || test ! -s conftest.err'
ba3d13e1
VZ
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest$ac_exeext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 wx_cv_func_va_copy=yes
18624else
18625 echo "$as_me: failed program was:" >&5
18626sed 's/^/| /' conftest.$ac_ext >&5
18627
18628wx_cv_func_va_copy=no
18629
18630fi
18631rm -f conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
18633
18634
18635fi
18636echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18637echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18638
18639if test $wx_cv_func_va_copy = "yes"; then
18640 cat >>confdefs.h <<\_ACEOF
18641#define HAVE_VA_COPY 1
18642_ACEOF
18643
18644else
18645 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18646echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18647if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18649else
18650
18651 if test "$cross_compiling" = yes; then
18652 wx_cv_type_va_list_lvalue=yes
18653
18654else
18655 cat >conftest.$ac_ext <<_ACEOF
18656
18657 #include <stdarg.h>
18658 int foo(char *f, ...)
18659 {
18660 va_list ap1, ap2;
18661 va_start(ap1, f);
18662 ap2 = ap1;
18663 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18664 return 1;
18665 va_end(ap2);
18666 va_end(ap1);
18667 return 0;
18668 }
18669 int main()
18670 {
18671 return foo("hi", 17);
18672 }
18673_ACEOF
18674rm -f conftest$ac_exeext
18675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676 (eval $ac_link) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }; then
18685 wx_cv_type_va_list_lvalue=yes
18686else
18687 echo "$as_me: program exited with status $ac_status" >&5
18688echo "$as_me: failed program was:" >&5
18689sed 's/^/| /' conftest.$ac_ext >&5
18690
18691( exit $ac_status )
18692wx_cv_type_va_list_lvalue=no
18693fi
18694rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18695fi
18696
18697
18698fi
18699echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18700echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18701
18702 if test $wx_cv_type_va_list_lvalue != "yes"; then
18703 cat >>confdefs.h <<\_ACEOF
18704#define VA_LIST_IS_ARRAY 1
18705_ACEOF
18706
18707 fi
18708fi
18709
a848cd7e
SC
18710# Check whether --enable-largefile or --disable-largefile was given.
18711if test "${enable_largefile+set}" = set; then
18712 enableval="$enable_largefile"
18713
18714fi;
18715if test "$enable_largefile" != no; then
18716 wx_largefile=no
18717
18718 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18719echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18720if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18722else
18723
18724 cat >conftest.$ac_ext <<_ACEOF
18725/* confdefs.h. */
18726_ACEOF
18727cat confdefs.h >>conftest.$ac_ext
18728cat >>conftest.$ac_ext <<_ACEOF
18729/* end confdefs.h. */
18730#define _FILE_OFFSET_BITS 64
18731 #include <sys/types.h>
18732int
18733main ()
18734{
18735typedef struct {
18736 unsigned int field: sizeof(off_t) == 8;
18737} wxlf;
18738
18739 ;
18740 return 0;
18741}
18742_ACEOF
18743rm -f conftest.$ac_objext
18744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18745 (eval $ac_compile) 2>conftest.er1
a848cd7e 18746 ac_status=$?
ac1cb8d3
VS
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
a848cd7e
SC
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
89be85c2
VS
18752 { ac_try='test -z "$ac_c_werror_flag"
18753 || test ! -s conftest.err'
ac1cb8d3
VS
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18765 ac_cv_sys_file_offset_bits=64
18766else
18767 echo "$as_me: failed program was:" >&5
18768sed 's/^/| /' conftest.$ac_ext >&5
18769
18770ac_cv_sys_file_offset_bits=no
18771fi
ac1cb8d3 18772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18773
18774
18775fi
18776echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18777echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18778
18779 if test "$ac_cv_sys_file_offset_bits" != no; then
18780 wx_largefile=yes
18781 cat >>confdefs.h <<_ACEOF
18782#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18783_ACEOF
18784
18785 fi
18786
18787 if test "x$wx_largefile" != "xyes"; then
18788
18789 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18790echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18791if test "${ac_cv_sys_large_files+set}" = set; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18793else
18794
18795 cat >conftest.$ac_ext <<_ACEOF
18796/* confdefs.h. */
18797_ACEOF
18798cat confdefs.h >>conftest.$ac_ext
18799cat >>conftest.$ac_ext <<_ACEOF
18800/* end confdefs.h. */
18801#define _LARGE_FILES 1
18802 #include <sys/types.h>
18803int
18804main ()
18805{
18806typedef struct {
18807 unsigned int field: sizeof(off_t) == 8;
18808} wxlf;
18809
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814rm -f conftest.$ac_objext
18815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18816 (eval $ac_compile) 2>conftest.er1
a848cd7e 18817 ac_status=$?
ac1cb8d3
VS
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
a848cd7e
SC
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } &&
89be85c2
VS
18823 { ac_try='test -z "$ac_c_werror_flag"
18824 || test ! -s conftest.err'
ac1cb8d3
VS
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } &&
18830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_sys_large_files=1
18837else
18838 echo "$as_me: failed program was:" >&5
18839sed 's/^/| /' conftest.$ac_ext >&5
18840
18841ac_cv_sys_large_files=no
18842fi
ac1cb8d3 18843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18844
18845
18846fi
18847echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18848echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18849
18850 if test "$ac_cv_sys_large_files" != no; then
18851 wx_largefile=yes
18852 cat >>confdefs.h <<_ACEOF
18853#define _LARGE_FILES $ac_cv_sys_large_files
18854_ACEOF
18855
18856 fi
18857
18858 fi
18859
18860 echo "$as_me:$LINENO: checking if large file support is available" >&5
18861echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18862 if test "x$wx_largefile" = "xyes"; then
18863 cat >>confdefs.h <<\_ACEOF
18864#define HAVE_LARGEFILE_SUPPORT 1
18865_ACEOF
18866
18867 fi
18868 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18869echo "${ECHO_T}$wx_largefile" >&6
18870fi
18871
5b674b9d
DE
18872
18873if test "x$wx_largefile" = "xyes"; then
18874 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18875 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18876 else
18877 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18878 fi
18879 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
18880echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18881if test "${ac_cv_sys_largefile_source+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18883else
18884 while :; do
18885 ac_cv_sys_largefile_source=no
18886 cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h. */
18892#include <stdio.h>
18893int
18894main ()
18895{
18896return !fseeko;
18897 ;
18898 return 0;
18899}
18900_ACEOF
18901rm -f conftest.$ac_objext
18902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18903 (eval $ac_compile) 2>conftest.er1
18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } &&
89be85c2
VS
18910 { ac_try='test -z "$ac_c_werror_flag"
18911 || test ! -s conftest.err'
5294a27e
VZ
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; } &&
18917 { ac_try='test -s conftest.$ac_objext'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 break
18924else
18925 echo "$as_me: failed program was:" >&5
18926sed 's/^/| /' conftest.$ac_ext >&5
18927
18928fi
18929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18930 cat >conftest.$ac_ext <<_ACEOF
18931/* confdefs.h. */
18932_ACEOF
18933cat confdefs.h >>conftest.$ac_ext
18934cat >>conftest.$ac_ext <<_ACEOF
18935/* end confdefs.h. */
18936#define _LARGEFILE_SOURCE 1
18937#include <stdio.h>
18938int
18939main ()
18940{
18941return !fseeko;
18942 ;
18943 return 0;
18944}
18945_ACEOF
18946rm -f conftest.$ac_objext
18947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948 (eval $ac_compile) 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
89be85c2
VS
18955 { ac_try='test -z "$ac_c_werror_flag"
18956 || test ! -s conftest.err'
5294a27e
VZ
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest.$ac_objext'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 ac_cv_sys_largefile_source=1; break
18969else
18970 echo "$as_me: failed program was:" >&5
18971sed 's/^/| /' conftest.$ac_ext >&5
18972
18973fi
18974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18975 break
18976done
18977fi
18978echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18979echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18980if test "$ac_cv_sys_largefile_source" != no; then
18981
18982cat >>confdefs.h <<_ACEOF
18983#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18984_ACEOF
18985
18986fi
18987rm -f conftest*
18988
18989# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18990# in glibc 2.1.3, but that breaks too many other things.
18991# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18992echo "$as_me:$LINENO: checking for fseeko" >&5
18993echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18994if test "${ac_cv_func_fseeko+set}" = set; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18996else
18997 cat >conftest.$ac_ext <<_ACEOF
18998/* confdefs.h. */
18999_ACEOF
19000cat confdefs.h >>conftest.$ac_ext
19001cat >>conftest.$ac_ext <<_ACEOF
19002/* end confdefs.h. */
19003#include <stdio.h>
19004int
19005main ()
19006{
19007return fseeko && fseeko (stdin, 0, 0);
19008 ;
19009 return 0;
19010}
19011_ACEOF
19012rm -f conftest.$ac_objext conftest$ac_exeext
19013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014 (eval $ac_link) 2>conftest.er1
19015 ac_status=$?
19016 grep -v '^ *+' conftest.er1 >conftest.err
19017 rm -f conftest.er1
19018 cat conftest.err >&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } &&
89be85c2
VS
19021 { ac_try='test -z "$ac_c_werror_flag"
19022 || test ! -s conftest.err'
5294a27e
VZ
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest$ac_exeext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_func_fseeko=yes
19035else
19036 echo "$as_me: failed program was:" >&5
19037sed 's/^/| /' conftest.$ac_ext >&5
19038
19039ac_cv_func_fseeko=no
19040fi
19041rm -f conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043fi
19044echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
19045echo "${ECHO_T}$ac_cv_func_fseeko" >&6
19046if test $ac_cv_func_fseeko = yes; then
19047
19048cat >>confdefs.h <<\_ACEOF
19049#define HAVE_FSEEKO 1
19050_ACEOF
19051
19052fi
19053
5b674b9d
DE
19054 if test "$ac_cv_sys_largefile_source" != no; then
19055 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
19056 fi
19057 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
19058fi
19059
19060echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19061echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19062if test "${ac_cv_c_bigendian+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064else
19065 ac_cv_c_bigendian=unknown
19066# See if sys/param.h defines the BYTE_ORDER macro.
19067cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
19073#include <sys/types.h>
19074#include <sys/param.h>
19075int
19076main ()
19077{
19078
19079#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19080 bogus endian macros
19081#endif
19082 ;
19083 return 0;
19084}
19085_ACEOF
19086rm -f conftest.$ac_objext
19087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19088 (eval $ac_compile) 2>conftest.er1
a848cd7e 19089 ac_status=$?
ac1cb8d3
VS
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
a848cd7e
SC
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } &&
89be85c2
VS
19095 { ac_try='test -z "$ac_c_werror_flag"
19096 || test ! -s conftest.err'
ac1cb8d3
VS
19097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098 (eval $ac_try) 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; } &&
19102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; }; then
19108 # It does; now see whether it defined to BIG_ENDIAN or not.
19109cat >conftest.$ac_ext <<_ACEOF
19110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
19115#include <sys/types.h>
19116#include <sys/param.h>
19117int
19118main ()
19119{
19120
19121#if BYTE_ORDER != BIG_ENDIAN
19122 not big endian
19123#endif
19124 ;
19125 return 0;
19126}
19127_ACEOF
19128rm -f conftest.$ac_objext
19129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19130 (eval $ac_compile) 2>conftest.er1
a848cd7e 19131 ac_status=$?
ac1cb8d3
VS
19132 grep -v '^ *+' conftest.er1 >conftest.err
19133 rm -f conftest.er1
19134 cat conftest.err >&5
a848cd7e
SC
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
89be85c2
VS
19137 { ac_try='test -z "$ac_c_werror_flag"
19138 || test ! -s conftest.err'
ac1cb8d3
VS
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_cv_c_bigendian=yes
19151else
19152 echo "$as_me: failed program was:" >&5
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
19155ac_cv_c_bigendian=no
19156fi
ac1cb8d3 19157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19158else
19159 echo "$as_me: failed program was:" >&5
19160sed 's/^/| /' conftest.$ac_ext >&5
19161
19162fi
ac1cb8d3 19163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19164if test $ac_cv_c_bigendian = unknown; then
19165if test "$cross_compiling" = yes; then
19166 ac_cv_c_bigendian=unknown
19167else
19168 cat >conftest.$ac_ext <<_ACEOF
19169/* confdefs.h. */
19170_ACEOF
19171cat confdefs.h >>conftest.$ac_ext
19172cat >>conftest.$ac_ext <<_ACEOF
19173/* end confdefs.h. */
19174main () {
19175 /* Are we little or big endian? From Harbison&Steele. */
19176 union
19177 {
19178 long l;
19179 char c[sizeof (long)];
19180 } u;
19181 u.l = 1;
19182 exit (u.c[sizeof (long) - 1] == 1);
19183}
19184_ACEOF
19185rm -f conftest$ac_exeext
19186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19187 (eval $ac_link) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_c_bigendian=no
19197else
19198 echo "$as_me: program exited with status $ac_status" >&5
19199echo "$as_me: failed program was:" >&5
19200sed 's/^/| /' conftest.$ac_ext >&5
19201
19202( exit $ac_status )
19203ac_cv_c_bigendian=yes
19204fi
ac1cb8d3 19205rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19206fi
19207fi
19208fi
19209echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19210echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19211if test $ac_cv_c_bigendian = unknown; then
19212 { 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
19213echo "$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;}
19214fi
19215if test $ac_cv_c_bigendian = yes; then
19216 cat >>confdefs.h <<\_ACEOF
19217#define WORDS_BIGENDIAN 1
19218_ACEOF
19219
19220fi
19221
19222
19223ac_ext=cc
19224ac_cpp='$CXXCPP $CPPFLAGS'
19225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19228echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19229echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19230if test -z "$CXXCPP"; then
19231 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19233else
19234 # Double quotes because CXXCPP needs to be expanded
19235 for CXXCPP in "$CXX -E" "/lib/cpp"
19236 do
19237 ac_preproc_ok=false
19238for ac_cxx_preproc_warn_flag in '' yes
19239do
19240 # Use a header file that comes with gcc, so configuring glibc
19241 # with a fresh cross-compiler works.
19242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19243 # <limits.h> exists even on freestanding compilers.
19244 # On the NeXT, cc -E runs the code through the compiler's parser,
19245 # not just through cpp. "Syntax error" is here to catch this case.
19246 cat >conftest.$ac_ext <<_ACEOF
19247/* confdefs.h. */
19248_ACEOF
19249cat confdefs.h >>conftest.$ac_ext
19250cat >>conftest.$ac_ext <<_ACEOF
19251/* end confdefs.h. */
19252#ifdef __STDC__
19253# include <limits.h>
19254#else
19255# include <assert.h>
19256#endif
ac1cb8d3 19257 Syntax error
a848cd7e
SC
19258_ACEOF
19259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } >/dev/null; then
19267 if test -s conftest.err; then
19268 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19269 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19270 else
19271 ac_cpp_err=
19272 fi
19273else
19274 ac_cpp_err=yes
19275fi
19276if test -z "$ac_cpp_err"; then
19277 :
19278else
19279 echo "$as_me: failed program was:" >&5
19280sed 's/^/| /' conftest.$ac_ext >&5
19281
19282 # Broken: fails on valid input.
19283continue
19284fi
19285rm -f conftest.err conftest.$ac_ext
19286
19287 # OK, works on sane cases. Now check whether non-existent headers
19288 # can be detected and how.
19289 cat >conftest.$ac_ext <<_ACEOF
19290/* confdefs.h. */
19291_ACEOF
19292cat confdefs.h >>conftest.$ac_ext
19293cat >>conftest.$ac_ext <<_ACEOF
19294/* end confdefs.h. */
19295#include <ac_nonexistent.h>
19296_ACEOF
19297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } >/dev/null; then
19305 if test -s conftest.err; then
19306 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19307 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19308 else
19309 ac_cpp_err=
19310 fi
19311else
19312 ac_cpp_err=yes
19313fi
19314if test -z "$ac_cpp_err"; then
19315 # Broken: success on invalid input.
19316continue
19317else
19318 echo "$as_me: failed program was:" >&5
19319sed 's/^/| /' conftest.$ac_ext >&5
19320
19321 # Passes both tests.
19322ac_preproc_ok=:
19323break
19324fi
19325rm -f conftest.err conftest.$ac_ext
19326
19327done
19328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19329rm -f conftest.err conftest.$ac_ext
19330if $ac_preproc_ok; then
19331 break
19332fi
19333
19334 done
19335 ac_cv_prog_CXXCPP=$CXXCPP
19336
19337fi
19338 CXXCPP=$ac_cv_prog_CXXCPP
19339else
19340 ac_cv_prog_CXXCPP=$CXXCPP
19341fi
19342echo "$as_me:$LINENO: result: $CXXCPP" >&5
19343echo "${ECHO_T}$CXXCPP" >&6
19344ac_preproc_ok=false
19345for ac_cxx_preproc_warn_flag in '' yes
19346do
19347 # Use a header file that comes with gcc, so configuring glibc
19348 # with a fresh cross-compiler works.
19349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19350 # <limits.h> exists even on freestanding compilers.
19351 # On the NeXT, cc -E runs the code through the compiler's parser,
19352 # not just through cpp. "Syntax error" is here to catch this case.
19353 cat >conftest.$ac_ext <<_ACEOF
19354/* confdefs.h. */
19355_ACEOF
19356cat confdefs.h >>conftest.$ac_ext
19357cat >>conftest.$ac_ext <<_ACEOF
19358/* end confdefs.h. */
19359#ifdef __STDC__
19360# include <limits.h>
19361#else
19362# include <assert.h>
19363#endif
ac1cb8d3 19364 Syntax error
a848cd7e
SC
19365_ACEOF
19366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } >/dev/null; then
19374 if test -s conftest.err; then
19375 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19376 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19377 else
19378 ac_cpp_err=
19379 fi
19380else
19381 ac_cpp_err=yes
19382fi
19383if test -z "$ac_cpp_err"; then
19384 :
19385else
19386 echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389 # Broken: fails on valid input.
19390continue
19391fi
19392rm -f conftest.err conftest.$ac_ext
19393
19394 # OK, works on sane cases. Now check whether non-existent headers
19395 # can be detected and how.
19396 cat >conftest.$ac_ext <<_ACEOF
19397/* confdefs.h. */
19398_ACEOF
19399cat confdefs.h >>conftest.$ac_ext
19400cat >>conftest.$ac_ext <<_ACEOF
19401/* end confdefs.h. */
19402#include <ac_nonexistent.h>
19403_ACEOF
19404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } >/dev/null; then
19412 if test -s conftest.err; then
19413 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19414 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19415 else
19416 ac_cpp_err=
19417 fi
19418else
19419 ac_cpp_err=yes
19420fi
19421if test -z "$ac_cpp_err"; then
19422 # Broken: success on invalid input.
19423continue
19424else
19425 echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 # Passes both tests.
19429ac_preproc_ok=:
19430break
19431fi
19432rm -f conftest.err conftest.$ac_ext
19433
19434done
19435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19436rm -f conftest.err conftest.$ac_ext
19437if $ac_preproc_ok; then
19438 :
19439else
19440 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19441See \`config.log' for more details." >&5
19442echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19443See \`config.log' for more details." >&2;}
19444 { (exit 1); exit 1; }; }
19445fi
19446
19447ac_ext=cc
19448ac_cpp='$CXXCPP $CPPFLAGS'
19449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19452
19453
19454
19455
19456
19457 ac_ext=cc
19458ac_cpp='$CXXCPP $CPPFLAGS'
19459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19462
19463
19464
19465for ac_header in iostream
19466do
19467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19468if eval "test \"\${$as_ac_Header+set}\" = set"; then
19469 echo "$as_me:$LINENO: checking for $ac_header" >&5
19470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19471if eval "test \"\${$as_ac_Header+set}\" = set"; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473fi
19474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19476else
19477 # Is the header compilable?
19478echo "$as_me:$LINENO: checking $ac_header usability" >&5
19479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19480cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
19486$ac_includes_default
19487#include <$ac_header>
19488_ACEOF
19489rm -f conftest.$ac_objext
19490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19491 (eval $ac_compile) 2>conftest.er1
a848cd7e 19492 ac_status=$?
ac1cb8d3
VS
19493 grep -v '^ *+' conftest.er1 >conftest.err
19494 rm -f conftest.er1
19495 cat conftest.err >&5
a848cd7e
SC
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } &&
89be85c2
VS
19498 { ac_try='test -z "$ac_cxx_werror_flag"
19499 || test ! -s conftest.err'
ac1cb8d3
VS
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
19511 ac_header_compiler=yes
19512else
19513 echo "$as_me: failed program was:" >&5
19514sed 's/^/| /' conftest.$ac_ext >&5
19515
19516ac_header_compiler=no
19517fi
ac1cb8d3 19518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19520echo "${ECHO_T}$ac_header_compiler" >&6
19521
19522# Is the header present?
19523echo "$as_me:$LINENO: checking $ac_header presence" >&5
19524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19525cat >conftest.$ac_ext <<_ACEOF
19526/* confdefs.h. */
19527_ACEOF
19528cat confdefs.h >>conftest.$ac_ext
19529cat >>conftest.$ac_ext <<_ACEOF
19530/* end confdefs.h. */
19531#include <$ac_header>
19532_ACEOF
19533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19535 ac_status=$?
19536 grep -v '^ *+' conftest.er1 >conftest.err
19537 rm -f conftest.er1
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } >/dev/null; then
19541 if test -s conftest.err; then
19542 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19543 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19544 else
19545 ac_cpp_err=
19546 fi
19547else
19548 ac_cpp_err=yes
19549fi
19550if test -z "$ac_cpp_err"; then
19551 ac_header_preproc=yes
19552else
19553 echo "$as_me: failed program was:" >&5
19554sed 's/^/| /' conftest.$ac_ext >&5
19555
19556 ac_header_preproc=no
19557fi
19558rm -f conftest.err conftest.$ac_ext
19559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19560echo "${ECHO_T}$ac_header_preproc" >&6
19561
19562# So? What about this header?
ac1cb8d3
VS
19563case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19564 yes:no: )
a848cd7e
SC
19565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19569 ac_header_preproc=yes
a848cd7e 19570 ;;
ac1cb8d3 19571 no:yes:* )
a848cd7e
SC
19572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19584 (
19585 cat <<\_ASBOX
ac1cb8d3
VS
19586## ----------------------------------------- ##
19587## Report this to wx-dev@lists.wxwidgets.org ##
19588## ----------------------------------------- ##
a848cd7e
SC
19589_ASBOX
19590 ) |
19591 sed "s/^/$as_me: WARNING: /" >&2
19592 ;;
19593esac
19594echo "$as_me:$LINENO: checking for $ac_header" >&5
19595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19596if eval "test \"\${$as_ac_Header+set}\" = set"; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598else
ac1cb8d3 19599 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19600fi
19601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19603
19604fi
19605if test `eval echo '${'$as_ac_Header'}'` = yes; then
19606 cat >>confdefs.h <<_ACEOF
19607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19608_ACEOF
19609
19610fi
19611
19612done
19613
19614
19615 if test "$ac_cv_header_iostream" = "yes" ; then
19616 :
19617 else
19618 cat >>confdefs.h <<\_ACEOF
19619#define wxUSE_IOSTREAMH 1
19620_ACEOF
19621
19622 fi
19623
19624 ac_ext=c
19625ac_cpp='$CPP $CPPFLAGS'
19626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19628ac_compiler_gnu=$ac_cv_c_compiler_gnu
19629
19630
19631
19632
19633 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19634echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19635if test "${wx_cv_cpp_bool+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637else
19638
19639
19640
19641 ac_ext=cc
19642ac_cpp='$CXXCPP $CPPFLAGS'
19643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19646
19647
19648 cat >conftest.$ac_ext <<_ACEOF
19649/* confdefs.h. */
19650_ACEOF
19651cat confdefs.h >>conftest.$ac_ext
19652cat >>conftest.$ac_ext <<_ACEOF
19653/* end confdefs.h. */
19654
19655
19656int
19657main ()
19658{
19659
19660 bool b = true;
19661
19662 return 0;
19663
19664 ;
19665 return 0;
19666}
19667_ACEOF
19668rm -f conftest.$ac_objext
19669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19670 (eval $ac_compile) 2>conftest.er1
a848cd7e 19671 ac_status=$?
ac1cb8d3
VS
19672 grep -v '^ *+' conftest.er1 >conftest.err
19673 rm -f conftest.er1
19674 cat conftest.err >&5
a848cd7e
SC
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
89be85c2
VS
19677 { ac_try='test -z "$ac_cxx_werror_flag"
19678 || test ! -s conftest.err'
ac1cb8d3
VS
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690
19691 wx_cv_cpp_bool=yes
19692
19693else
19694 echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
19697
19698 wx_cv_cpp_bool=no
19699
19700
19701fi
ac1cb8d3 19702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19703
19704 ac_ext=c
19705ac_cpp='$CPP $CPPFLAGS'
19706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19708ac_compiler_gnu=$ac_cv_c_compiler_gnu
19709
19710
19711fi
19712echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19713echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19714
19715 if test "$wx_cv_cpp_bool" = "yes"; then
19716 cat >>confdefs.h <<\_ACEOF
19717#define HAVE_BOOL 1
19718_ACEOF
19719
19720 fi
19721
19722
19723
19724 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19725echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19726if test "${wx_cv_explicit+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19728else
19729
19730
19731
19732 ac_ext=cc
19733ac_cpp='$CXXCPP $CPPFLAGS'
19734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19737
19738
19739 cat >conftest.$ac_ext <<_ACEOF
19740/* confdefs.h. */
19741_ACEOF
19742cat confdefs.h >>conftest.$ac_ext
19743cat >>conftest.$ac_ext <<_ACEOF
19744/* end confdefs.h. */
19745
19746 class Foo { public: explicit Foo(int) {} };
19747
19748int
19749main ()
19750{
19751
19752 return 0;
19753
19754 ;
19755 return 0;
19756}
19757_ACEOF
19758rm -f conftest.$ac_objext
19759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19760 (eval $ac_compile) 2>conftest.er1
a848cd7e 19761 ac_status=$?
ac1cb8d3
VS
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
a848cd7e
SC
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
89be85c2
VS
19767 { ac_try='test -z "$ac_cxx_werror_flag"
19768 || test ! -s conftest.err'
ac1cb8d3
VS
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19771 ac_status=$?
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780
19781 cat >conftest.$ac_ext <<_ACEOF
19782/* confdefs.h. */
19783_ACEOF
19784cat confdefs.h >>conftest.$ac_ext
19785cat >>conftest.$ac_ext <<_ACEOF
19786/* end confdefs.h. */
19787
19788 class Foo { public: explicit Foo(int) {} };
19789 static void TakeFoo(const Foo& foo) { }
19790
19791int
19792main ()
19793{
19794
19795 TakeFoo(17);
19796 return 0;
19797
19798 ;
19799 return 0;
19800}
19801_ACEOF
19802rm -f conftest.$ac_objext
19803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19804 (eval $ac_compile) 2>conftest.er1
a848cd7e 19805 ac_status=$?
ac1cb8d3
VS
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
a848cd7e
SC
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
89be85c2
VS
19811 { ac_try='test -z "$ac_cxx_werror_flag"
19812 || test ! -s conftest.err'
ac1cb8d3
VS
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 wx_cv_explicit=no
19825else
19826 echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829wx_cv_explicit=yes
19830
19831fi
ac1cb8d3 19832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19833
19834else
19835 echo "$as_me: failed program was:" >&5
19836sed 's/^/| /' conftest.$ac_ext >&5
19837
19838wx_cv_explicit=no
19839
19840fi
ac1cb8d3 19841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19842
19843 ac_ext=c
19844ac_cpp='$CPP $CPPFLAGS'
19845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847ac_compiler_gnu=$ac_cv_c_compiler_gnu
19848
19849
19850fi
19851echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19852echo "${ECHO_T}$wx_cv_explicit" >&6
19853
19854 if test "$wx_cv_explicit" = "yes"; then
19855 cat >>confdefs.h <<\_ACEOF
19856#define HAVE_EXPLICIT 1
19857_ACEOF
19858
19859 fi
19860
19861
19862echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19863echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19864if test "${ac_cv_cxx_const_cast+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19866else
19867
19868
19869 ac_ext=cc
19870ac_cpp='$CXXCPP $CPPFLAGS'
19871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19874
19875 cat >conftest.$ac_ext <<_ACEOF
19876/* confdefs.h. */
19877_ACEOF
19878cat confdefs.h >>conftest.$ac_ext
19879cat >>conftest.$ac_ext <<_ACEOF
19880/* end confdefs.h. */
19881
19882int
19883main ()
19884{
19885int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19886 ;
19887 return 0;
19888}
19889_ACEOF
19890rm -f conftest.$ac_objext
19891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19892 (eval $ac_compile) 2>conftest.er1
a848cd7e 19893 ac_status=$?
ac1cb8d3
VS
19894 grep -v '^ *+' conftest.er1 >conftest.err
19895 rm -f conftest.er1
19896 cat conftest.err >&5
a848cd7e
SC
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } &&
89be85c2
VS
19899 { ac_try='test -z "$ac_cxx_werror_flag"
19900 || test ! -s conftest.err'
ac1cb8d3
VS
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; } &&
19906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; }; then
19912 ac_cv_cxx_const_cast=yes
19913else
19914 echo "$as_me: failed program was:" >&5
19915sed 's/^/| /' conftest.$ac_ext >&5
19916
19917ac_cv_cxx_const_cast=no
19918fi
ac1cb8d3 19919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19920 ac_ext=c
19921ac_cpp='$CPP $CPPFLAGS'
19922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924ac_compiler_gnu=$ac_cv_c_compiler_gnu
19925
19926
19927fi
19928echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19929echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19930if test "$ac_cv_cxx_const_cast" = yes; then
19931
19932cat >>confdefs.h <<\_ACEOF
19933#define HAVE_CONST_CAST
19934_ACEOF
19935
19936fi
19937
7714864e
RL
19938echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19939echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19940if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942else
19943
19944
19945 ac_ext=cc
19946ac_cpp='$CXXCPP $CPPFLAGS'
19947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19950
19951 cat >conftest.$ac_ext <<_ACEOF
19952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
19957#include <typeinfo>
19958class Base { public : Base () {} virtual void f () = 0;};
19959class Derived : public Base { public : Derived () {} virtual void f () {} };
19960class Unrelated { public : Unrelated () {} };
19961int g (Unrelated&) { return 0; }
19962int
19963main ()
19964{
19965
19966Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19967 ;
19968 return 0;
19969}
19970_ACEOF
19971rm -f conftest.$ac_objext
19972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19973 (eval $ac_compile) 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
89be85c2
VS
19980 { ac_try='test -z "$ac_cxx_werror_flag"
19981 || test ! -s conftest.err'
7714864e
RL
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try='test -s conftest.$ac_objext'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; }; then
19993 ac_cv_cxx_reinterpret_cast=yes
19994else
19995 echo "$as_me: failed program was:" >&5
19996sed 's/^/| /' conftest.$ac_ext >&5
19997
19998ac_cv_cxx_reinterpret_cast=no
19999fi
20000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20001 ac_ext=c
20002ac_cpp='$CPP $CPPFLAGS'
20003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20005ac_compiler_gnu=$ac_cv_c_compiler_gnu
20006
20007
20008fi
20009echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
20010echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
20011if test "$ac_cv_cxx_reinterpret_cast" = yes; then
20012
20013cat >>confdefs.h <<\_ACEOF
20014#define HAVE_REINTERPRET_CAST
20015_ACEOF
20016
20017fi
20018
a848cd7e
SC
20019echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
20020echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
20021if test "${ac_cv_cxx_static_cast+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024
20025
20026 ac_ext=cc
20027ac_cpp='$CXXCPP $CPPFLAGS'
20028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20031
20032 cat >conftest.$ac_ext <<_ACEOF
20033/* confdefs.h. */
20034_ACEOF
20035cat confdefs.h >>conftest.$ac_ext
20036cat >>conftest.$ac_ext <<_ACEOF
20037/* end confdefs.h. */
20038#include <typeinfo>
20039class Base { public : Base () {} virtual void f () = 0; };
20040class Derived : public Base { public : Derived () {} virtual void f () {} };
20041int g (Derived&) { return 0; }
20042int
20043main ()
20044{
20045
20046Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20053 (eval $ac_compile) 2>conftest.er1
a848cd7e 20054 ac_status=$?
ac1cb8d3
VS
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
a848cd7e
SC
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
89be85c2
VS
20060 { ac_try='test -z "$ac_cxx_werror_flag"
20061 || test ! -s conftest.err'
ac1cb8d3
VS
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_cxx_static_cast=yes
20074else
20075 echo "$as_me: failed program was:" >&5
20076sed 's/^/| /' conftest.$ac_ext >&5
20077
20078ac_cv_cxx_static_cast=no
20079fi
ac1cb8d3 20080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20081 ac_ext=c
20082ac_cpp='$CPP $CPPFLAGS'
20083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085ac_compiler_gnu=$ac_cv_c_compiler_gnu
20086
20087
20088fi
20089echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
20090echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
20091if test "$ac_cv_cxx_static_cast" = yes; then
20092
20093cat >>confdefs.h <<\_ACEOF
20094#define HAVE_STATIC_CAST
20095_ACEOF
20096
20097fi
20098
20099
20100if test "$wxUSE_STL" = "yes"; then
20101 ac_ext=cc
20102ac_cpp='$CXXCPP $CPPFLAGS'
20103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20106
20107
20108 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
20109echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
20110 cat >conftest.$ac_ext <<_ACEOF
20111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */
20116#include <string>
20117 #include <functional>
20118 #include <algorithm>
20119 #include <vector>
20120 #include <list>
20121int
20122main ()
20123{
20124std::vector<int> moo;
20125 std::list<int> foo;
20126 std::vector<int>::iterator it =
20127 std::find_if(moo.begin(), moo.end(),
20128 std::bind2nd(std::less<int>(), 3));
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext
20134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20135 (eval $ac_compile) 2>conftest.er1
a848cd7e 20136 ac_status=$?
ac1cb8d3
VS
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
a848cd7e
SC
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
89be85c2
VS
20142 { ac_try='test -z "$ac_cxx_werror_flag"
20143 || test ! -s conftest.err'
ac1cb8d3
VS
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 echo "$as_me:$LINENO: result: yes" >&5
20156echo "${ECHO_T}yes" >&6
20157else
20158 echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161echo "$as_me:$LINENO: result: no" >&5
20162echo "${ECHO_T}no" >&6
20163 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20164echo "$as_me: error: Basic STL functionality missing" >&2;}
20165 { (exit 1); exit 1; }; }
20166fi
ac1cb8d3 20167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20168
20169 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20170echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20171 cat >conftest.$ac_ext <<_ACEOF
20172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h. */
20177#include <string>
20178int
20179main ()
20180{
20181std::wstring foo;
20182 ;
20183 return 0;
20184}
20185_ACEOF
20186rm -f conftest.$ac_objext
20187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20188 (eval $ac_compile) 2>conftest.er1
a848cd7e 20189 ac_status=$?
ac1cb8d3
VS
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
a848cd7e
SC
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
89be85c2
VS
20195 { ac_try='test -z "$ac_cxx_werror_flag"
20196 || test ! -s conftest.err'
ac1cb8d3
VS
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 echo "$as_me:$LINENO: result: yes" >&5
20209echo "${ECHO_T}yes" >&6
20210 cat >>confdefs.h <<\_ACEOF
20211#define HAVE_STD_WSTRING 1
20212_ACEOF
20213
20214else
20215 echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
20217
20218echo "$as_me:$LINENO: result: no" >&5
20219echo "${ECHO_T}no" >&6
20220fi
ac1cb8d3 20221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20222
20223 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20224echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20225 cat >conftest.$ac_ext <<_ACEOF
20226/* confdefs.h. */
20227_ACEOF
20228cat confdefs.h >>conftest.$ac_ext
20229cat >>conftest.$ac_ext <<_ACEOF
20230/* end confdefs.h. */
20231#include <string>
20232int
20233main ()
20234{
20235std::string foo, bar;
20236 foo.compare(bar);
20237 foo.compare(1, 1, bar);
20238 foo.compare(1, 1, bar, 1, 1);
20239 foo.compare("");
20240 foo.compare(1, 1, "");
20241 foo.compare(1, 1, "", 2);
20242 ;
20243 return 0;
20244}
20245_ACEOF
20246rm -f conftest.$ac_objext
20247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20248 (eval $ac_compile) 2>conftest.er1
a848cd7e 20249 ac_status=$?
ac1cb8d3
VS
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
a848cd7e
SC
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
89be85c2
VS
20255 { ac_try='test -z "$ac_cxx_werror_flag"
20256 || test ! -s conftest.err'
ac1cb8d3
VS
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; } &&
20262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268 echo "$as_me:$LINENO: result: yes" >&5
20269echo "${ECHO_T}yes" >&6
20270 cat >>confdefs.h <<\_ACEOF
20271#define HAVE_STD_STRING_COMPARE 1
20272_ACEOF
20273
20274else
20275 echo "$as_me: failed program was:" >&5
20276sed 's/^/| /' conftest.$ac_ext >&5
20277
20278echo "$as_me:$LINENO: result: no" >&5
20279echo "${ECHO_T}no" >&6
20280fi
ac1cb8d3 20281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20282
20283 if test "${ac_cv_header_hash_map+set}" = set; then
20284 echo "$as_me:$LINENO: checking for hash_map" >&5
20285echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20286if test "${ac_cv_header_hash_map+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20288fi
20289echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20290echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20291else
20292 # Is the header compilable?
20293echo "$as_me:$LINENO: checking hash_map usability" >&5
20294echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20295cat >conftest.$ac_ext <<_ACEOF
20296/* confdefs.h. */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h. */
20301$ac_includes_default
20302#include <hash_map>
20303_ACEOF
20304rm -f conftest.$ac_objext
20305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20306 (eval $ac_compile) 2>conftest.er1
bdcade0a 20307 ac_status=$?
ac1cb8d3
VS
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
bdcade0a
MB
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
89be85c2
VS
20313 { ac_try='test -z "$ac_cxx_werror_flag"
20314 || test ! -s conftest.err'
ac1cb8d3
VS
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 ac_header_compiler=yes
20327else
20328 echo "$as_me: failed program was:" >&5
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
20331ac_header_compiler=no
20332fi
ac1cb8d3 20333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20335echo "${ECHO_T}$ac_header_compiler" >&6
20336
20337# Is the header present?
20338echo "$as_me:$LINENO: checking hash_map presence" >&5
20339echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20340cat >conftest.$ac_ext <<_ACEOF
20341/* confdefs.h. */
20342_ACEOF
20343cat confdefs.h >>conftest.$ac_ext
20344cat >>conftest.$ac_ext <<_ACEOF
20345/* end confdefs.h. */
20346#include <hash_map>
20347_ACEOF
20348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } >/dev/null; then
20356 if test -s conftest.err; then
20357 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20358 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20359 else
20360 ac_cpp_err=
20361 fi
20362else
20363 ac_cpp_err=yes
20364fi
20365if test -z "$ac_cpp_err"; then
20366 ac_header_preproc=yes
20367else
20368 echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 ac_header_preproc=no
20372fi
20373rm -f conftest.err conftest.$ac_ext
20374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20375echo "${ECHO_T}$ac_header_preproc" >&6
20376
20377# So? What about this header?
ac1cb8d3
VS
20378case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20379 yes:no: )
bdcade0a
MB
20380 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20381echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20382 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20383echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20384 ac_header_preproc=yes
bdcade0a 20385 ;;
ac1cb8d3 20386 no:yes:* )
bdcade0a
MB
20387 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20388echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20389 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20390echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20391 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20392echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20394echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20395 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20396echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20397 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20398echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20399 (
20400 cat <<\_ASBOX
ac1cb8d3
VS
20401## ----------------------------------------- ##
20402## Report this to wx-dev@lists.wxwidgets.org ##
20403## ----------------------------------------- ##
bdcade0a
MB
20404_ASBOX
20405 ) |
20406 sed "s/^/$as_me: WARNING: /" >&2
20407 ;;
20408esac
20409echo "$as_me:$LINENO: checking for hash_map" >&5
20410echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20411if test "${ac_cv_header_hash_map+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20413else
20414 ac_cv_header_hash_map=$ac_header_preproc
20415fi
20416echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20417echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20418
20419fi
20420if test $ac_cv_header_hash_map = yes; then
20421 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20422echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20423 cat >conftest.$ac_ext <<_ACEOF
20424/* confdefs.h. */
20425_ACEOF
20426cat confdefs.h >>conftest.$ac_ext
20427cat >>conftest.$ac_ext <<_ACEOF
20428/* end confdefs.h. */
20429#include <hash_map>
20430 #include <hash_set>
20431int
20432main ()
20433{
20434std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20435 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20436 ;
20437 return 0;
20438}
20439_ACEOF
20440rm -f conftest.$ac_objext
20441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20442 (eval $ac_compile) 2>conftest.er1
bdcade0a 20443 ac_status=$?
ac1cb8d3
VS
20444 grep -v '^ *+' conftest.er1 >conftest.err
20445 rm -f conftest.er1
20446 cat conftest.err >&5
bdcade0a
MB
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } &&
89be85c2
VS
20449 { ac_try='test -z "$ac_cxx_werror_flag"
20450 || test ! -s conftest.err'
ac1cb8d3
VS
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; } &&
20456 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; }; then
20462 echo "$as_me:$LINENO: result: yes" >&5
20463echo "${ECHO_T}yes" >&6
20464 cat >>confdefs.h <<\_ACEOF
20465#define HAVE_HASH_MAP 1
20466_ACEOF
20467
20468 cat >>confdefs.h <<\_ACEOF
20469#define HAVE_STD_HASH_MAP 1
20470_ACEOF
20471
20472else
20473 echo "$as_me: failed program was:" >&5
20474sed 's/^/| /' conftest.$ac_ext >&5
20475
20476echo "$as_me:$LINENO: result: no" >&5
20477echo "${ECHO_T}no" >&6
20478fi
ac1cb8d3 20479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20480
20481fi
20482
20483
20484
20485 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20486 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20487echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20488if test "${ac_cv_header_ext_hash_map+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20490fi
20491echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20492echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20493else
20494 # Is the header compilable?
20495echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20496echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20497cat >conftest.$ac_ext <<_ACEOF
20498/* confdefs.h. */
20499_ACEOF
20500cat confdefs.h >>conftest.$ac_ext
20501cat >>conftest.$ac_ext <<_ACEOF
20502/* end confdefs.h. */
20503$ac_includes_default
20504#include <ext/hash_map>
20505_ACEOF
20506rm -f conftest.$ac_objext
20507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20508 (eval $ac_compile) 2>conftest.er1
bdcade0a 20509 ac_status=$?
ac1cb8d3
VS
20510 grep -v '^ *+' conftest.er1 >conftest.err
20511 rm -f conftest.er1
20512 cat conftest.err >&5
bdcade0a
MB
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } &&
89be85c2
VS
20515 { ac_try='test -z "$ac_cxx_werror_flag"
20516 || test ! -s conftest.err'
ac1cb8d3
VS
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; } &&
20522 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; }; then
20528 ac_header_compiler=yes
20529else
20530 echo "$as_me: failed program was:" >&5
20531sed 's/^/| /' conftest.$ac_ext >&5
20532
20533ac_header_compiler=no
20534fi
ac1cb8d3 20535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20537echo "${ECHO_T}$ac_header_compiler" >&6
20538
20539# Is the header present?
20540echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20541echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20542cat >conftest.$ac_ext <<_ACEOF
20543/* confdefs.h. */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h. */
20548#include <ext/hash_map>
20549_ACEOF
20550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20552 ac_status=$?
20553 grep -v '^ *+' conftest.er1 >conftest.err
20554 rm -f conftest.er1
20555 cat conftest.err >&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } >/dev/null; then
20558 if test -s conftest.err; then
20559 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20560 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20561 else
20562 ac_cpp_err=
20563 fi
20564else
20565 ac_cpp_err=yes
20566fi
20567if test -z "$ac_cpp_err"; then
20568 ac_header_preproc=yes
20569else
20570 echo "$as_me: failed program was:" >&5
20571sed 's/^/| /' conftest.$ac_ext >&5
20572
20573 ac_header_preproc=no
20574fi
20575rm -f conftest.err conftest.$ac_ext
20576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20577echo "${ECHO_T}$ac_header_preproc" >&6
20578
20579# So? What about this header?
ac1cb8d3
VS
20580case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20581 yes:no: )
bdcade0a
MB
20582 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20583echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20584 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20585echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20586 ac_header_preproc=yes
bdcade0a 20587 ;;
ac1cb8d3 20588 no:yes:* )
bdcade0a
MB
20589 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20590echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20591 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20592echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20593 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20594echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20595 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20596echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20597 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20598echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20599 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20600echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20601 (
20602 cat <<\_ASBOX
ac1cb8d3
VS
20603## ----------------------------------------- ##
20604## Report this to wx-dev@lists.wxwidgets.org ##
20605## ----------------------------------------- ##
bdcade0a
MB
20606_ASBOX
20607 ) |
20608 sed "s/^/$as_me: WARNING: /" >&2
20609 ;;
20610esac
20611echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20612echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20613if test "${ac_cv_header_ext_hash_map+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20615else
20616 ac_cv_header_ext_hash_map=$ac_header_preproc
20617fi
20618echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20619echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20620
20621fi
20622if test $ac_cv_header_ext_hash_map = yes; then
20623 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20624echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20625 cat >conftest.$ac_ext <<_ACEOF
20626/* confdefs.h. */
20627_ACEOF
20628cat confdefs.h >>conftest.$ac_ext
20629cat >>conftest.$ac_ext <<_ACEOF
20630/* end confdefs.h. */
20631#include <ext/hash_map>
20632 #include <ext/hash_set>
20633int
20634main ()
20635{
20636__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20637 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20638 ;
20639 return 0;
20640}
20641_ACEOF
20642rm -f conftest.$ac_objext
20643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20644 (eval $ac_compile) 2>conftest.er1
bdcade0a 20645 ac_status=$?
ac1cb8d3
VS
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
bdcade0a
MB
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
89be85c2
VS
20651 { ac_try='test -z "$ac_cxx_werror_flag"
20652 || test ! -s conftest.err'
ac1cb8d3
VS
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; } &&
20658 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; }; then
20664 echo "$as_me:$LINENO: result: yes" >&5
20665echo "${ECHO_T}yes" >&6
20666 cat >>confdefs.h <<\_ACEOF
20667#define HAVE_EXT_HASH_MAP 1
20668_ACEOF
20669
20670 cat >>confdefs.h <<\_ACEOF
20671#define HAVE_GNU_CXX_HASH_MAP 1
20672_ACEOF
20673
20674else
20675 echo "$as_me: failed program was:" >&5
20676sed 's/^/| /' conftest.$ac_ext >&5
20677
20678echo "$as_me:$LINENO: result: no" >&5
20679echo "${ECHO_T}no" >&6
20680fi
ac1cb8d3 20681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20682
20683fi
20684
20685
a848cd7e
SC
20686
20687 ac_ext=c
20688ac_cpp='$CPP $CPPFLAGS'
20689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20691ac_compiler_gnu=$ac_cv_c_compiler_gnu
20692
20693fi
20694
20695
20696SEARCH_INCLUDE="\
20697 /usr/local/include \
20698 \
20699 /usr/Motif-2.1/include \
20700 /usr/Motif-1.2/include \
20701 /usr/include/Motif1.2 \
20702 /opt/xpm/include/X11 \
20703 /opt/GBxpm/include/ \
20704 /opt/GBxpm/X11/include/ \
20705 \
20706 /usr/dt/include \
20707 /usr/openwin/include \
20708 \
20709 /usr/include/Xm \
20710 \
20711 /usr/X11R6/include \
20712 /usr/X11R6.4/include \
20713 /usr/X11R5/include \
20714 /usr/X11R4/include \
20715 \
20716 /usr/include/X11R6 \
20717 /usr/include/X11R5 \
20718 /usr/include/X11R4 \
20719 \
20720 /usr/local/X11R6/include \
20721 /usr/local/X11R5/include \
20722 /usr/local/X11R4/include \
20723 \
20724 /usr/local/include/X11R6 \
20725 /usr/local/include/X11R5 \
20726 /usr/local/include/X11R4 \
20727 \
20728 /usr/X11/include \
20729 /usr/include/X11 \
20730 /usr/local/X11/include \
20731 /usr/local/include/X11 \
20732 \
20733 /usr/X386/include \
20734 /usr/x386/include \
20735 /usr/XFree86/include/X11 \
20736 \
20737 X:/XFree86/include \
20738 X:/XFree86/include/X11 \
20739 \
20740 /usr/include/gtk \
20741 /usr/local/include/gtk \
20742 /usr/include/glib \
20743 /usr/local/include/glib \
20744 \
20745 /usr/include/qt \
20746 /usr/local/include/qt \
20747 \
20748 /usr/local/arm/3.3.2/include \
20749 \
20750 /usr/include/windows \
20751 /usr/include/wine \
20752 /usr/local/include/wine \
20753 \
20754 /usr/unsupported/include \
20755 /usr/athena/include \
20756 /usr/local/x11r5/include \
20757 /usr/lpp/Xamples/include \
20758 \
20759 /usr/openwin/share/include"
20760
20761SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20762
20763
20764cat >confcache <<\_ACEOF
20765# This file is a shell script that caches the results of configure
20766# tests run on this system so they can be shared between configure
20767# scripts and configure runs, see configure's option --config-cache.
20768# It is not useful on other systems. If it contains results you don't
20769# want to keep, you may remove or edit it.
20770#
20771# config.status only pays attention to the cache file if you give it
20772# the --recheck option to rerun configure.
20773#
20774# `ac_cv_env_foo' variables (set or unset) will be overridden when
20775# loading this file, other *unset* `ac_cv_foo' will be assigned the
20776# following values.
20777
20778_ACEOF
20779
20780# The following way of writing the cache mishandles newlines in values,
20781# but we know of no workaround that is simple, portable, and efficient.
20782# So, don't put newlines in cache variables' values.
20783# Ultrix sh set writes to stderr and can't be redirected directly,
20784# and sets the high bit in the cache file unless we assign to the vars.
20785{
20786 (set) 2>&1 |
20787 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20788 *ac_space=\ *)
20789 # `set' does not quote correctly, so add quotes (double-quote
20790 # substitution turns \\\\ into \\, and sed turns \\ into \).
20791 sed -n \
ac1cb8d3
VS
20792 "s/'/'\\\\''/g;
20793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20794 ;;
20795 *)
20796 # `set' quotes correctly as required by POSIX, so do not add quotes.
20797 sed -n \
ac1cb8d3 20798 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20799 ;;
20800 esac;
20801} |
20802 sed '
20803 t clear
20804 : clear
20805 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20806 t end
20807 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20808 : end' >>confcache
20809if diff $cache_file confcache >/dev/null 2>&1; then :; else
20810 if test -w $cache_file; then
20811 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20812 cat confcache >$cache_file
20813 else
20814 echo "not updating unwritable cache $cache_file"
20815 fi
20816fi
20817rm -f confcache
20818
20819if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20820 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20821echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20822if test "${wx_cv_lib_glibc21+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20824else
20825
20826 cat >conftest.$ac_ext <<_ACEOF
20827/* confdefs.h. */
20828_ACEOF
20829cat confdefs.h >>conftest.$ac_ext
20830cat >>conftest.$ac_ext <<_ACEOF
20831/* end confdefs.h. */
20832#include <features.h>
20833int
20834main ()
20835{
20836
20837 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20838 #error not glibc2.1
20839 #endif
20840
20841 ;
20842 return 0;
20843}
20844_ACEOF
20845rm -f conftest.$ac_objext
20846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20847 (eval $ac_compile) 2>conftest.er1
a848cd7e 20848 ac_status=$?
ac1cb8d3
VS
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
a848cd7e
SC
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } &&
89be85c2
VS
20854 { ac_try='test -z "$ac_c_werror_flag"
20855 || test ! -s conftest.err'
ac1cb8d3
VS
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20858 ac_status=$?
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } &&
20861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867
20868 wx_cv_lib_glibc21=yes
20869
20870else
20871 echo "$as_me: failed program was:" >&5
20872sed 's/^/| /' conftest.$ac_ext >&5
20873
20874
20875 wx_cv_lib_glibc21=no
20876
20877
20878fi
ac1cb8d3 20879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20880
20881fi
20882echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20883echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20884 if test "$wx_cv_lib_glibc21" = "yes"; then
20885 cat >>confdefs.h <<\_ACEOF
20886#define wxHAVE_GLIBC2 1
20887_ACEOF
20888
20889 fi
20890fi
20891
20892if test "x$wx_cv_lib_glibc21" = "xyes"; then
20893 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20894 cat >>confdefs.h <<\_ACEOF
20895#define _GNU_SOURCE 1
20896_ACEOF
20897
20898 fi
20899fi
20900
20901
20902
20903if test "$wxUSE_REGEX" != "no"; then
20904 cat >>confdefs.h <<\_ACEOF
20905#define wxUSE_REGEX 1
20906_ACEOF
20907
20908
20909 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20910 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20911echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20912 wxUSE_REGEX=builtin
20913 fi
20914
20915 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20916 if test "${ac_cv_header_regex_h+set}" = set; then
20917 echo "$as_me:$LINENO: checking for regex.h" >&5
20918echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20919if test "${ac_cv_header_regex_h+set}" = set; then
20920 echo $ECHO_N "(cached) $ECHO_C" >&6
20921fi
20922echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20923echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20924else
20925 # Is the header compilable?
20926echo "$as_me:$LINENO: checking regex.h usability" >&5
20927echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20928cat >conftest.$ac_ext <<_ACEOF
20929/* confdefs.h. */
20930_ACEOF
20931cat confdefs.h >>conftest.$ac_ext
20932cat >>conftest.$ac_ext <<_ACEOF
20933/* end confdefs.h. */
20934$ac_includes_default
20935#include <regex.h>
20936_ACEOF
20937rm -f conftest.$ac_objext
20938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20939 (eval $ac_compile) 2>conftest.er1
a848cd7e 20940 ac_status=$?
ac1cb8d3
VS
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
a848cd7e
SC
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
89be85c2
VS
20946 { ac_try='test -z "$ac_c_werror_flag"
20947 || test ! -s conftest.err'
ac1cb8d3
VS
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; } &&
20953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20956 ac_status=$?
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; }; then
20959 ac_header_compiler=yes
20960else
20961 echo "$as_me: failed program was:" >&5
20962sed 's/^/| /' conftest.$ac_ext >&5
20963
20964ac_header_compiler=no
20965fi
ac1cb8d3 20966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20967echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20968echo "${ECHO_T}$ac_header_compiler" >&6
20969
20970# Is the header present?
20971echo "$as_me:$LINENO: checking regex.h presence" >&5
20972echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20973cat >conftest.$ac_ext <<_ACEOF
20974/* confdefs.h. */
20975_ACEOF
20976cat confdefs.h >>conftest.$ac_ext
20977cat >>conftest.$ac_ext <<_ACEOF
20978/* end confdefs.h. */
20979#include <regex.h>
20980_ACEOF
20981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } >/dev/null; then
20989 if test -s conftest.err; then
20990 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20992 else
20993 ac_cpp_err=
20994 fi
20995else
20996 ac_cpp_err=yes
20997fi
20998if test -z "$ac_cpp_err"; then
20999 ac_header_preproc=yes
21000else
21001 echo "$as_me: failed program was:" >&5
21002sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 ac_header_preproc=no
21005fi
21006rm -f conftest.err conftest.$ac_ext
21007echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21008echo "${ECHO_T}$ac_header_preproc" >&6
21009
21010# So? What about this header?
ac1cb8d3
VS
21011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21012 yes:no: )
a848cd7e
SC
21013 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21014echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21015 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21016echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21017 ac_header_preproc=yes
a848cd7e 21018 ;;
ac1cb8d3 21019 no:yes:* )
a848cd7e
SC
21020 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21021echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21022 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21023echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21024 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21025echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21027echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21028 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21029echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21030 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21031echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21032 (
21033 cat <<\_ASBOX
ac1cb8d3
VS
21034## ----------------------------------------- ##
21035## Report this to wx-dev@lists.wxwidgets.org ##
21036## ----------------------------------------- ##
a848cd7e
SC
21037_ASBOX
21038 ) |
21039 sed "s/^/$as_me: WARNING: /" >&2
21040 ;;
21041esac
21042echo "$as_me:$LINENO: checking for regex.h" >&5
21043echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21044if test "${ac_cv_header_regex_h+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21046else
21047 ac_cv_header_regex_h=$ac_header_preproc
21048fi
21049echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21050echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21051
21052fi
21053if test $ac_cv_header_regex_h = yes; then
21054
21055for ac_func in regcomp
21056do
21057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21058echo "$as_me:$LINENO: checking for $ac_func" >&5
21059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21060if eval "test \"\${$as_ac_var+set}\" = set"; then
21061 echo $ECHO_N "(cached) $ECHO_C" >&6
21062else
21063 cat >conftest.$ac_ext <<_ACEOF
21064/* confdefs.h. */
21065_ACEOF
21066cat confdefs.h >>conftest.$ac_ext
21067cat >>conftest.$ac_ext <<_ACEOF
21068/* end confdefs.h. */
ac1cb8d3
VS
21069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21071#define $ac_func innocuous_$ac_func
21072
a848cd7e
SC
21073/* System header to define __stub macros and hopefully few prototypes,
21074 which can conflict with char $ac_func (); below.
21075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21076 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 21077
a848cd7e
SC
21078#ifdef __STDC__
21079# include <limits.h>
21080#else
21081# include <assert.h>
21082#endif
ac1cb8d3
VS
21083
21084#undef $ac_func
21085
a848cd7e
SC
21086/* Override any gcc2 internal prototype to avoid an error. */
21087#ifdef __cplusplus
21088extern "C"
21089{
21090#endif
21091/* We use char because int might match the return type of a gcc2
21092 builtin and then its argument prototype would still apply. */
21093char $ac_func ();
21094/* The GNU C library defines this for functions which it implements
21095 to always fail with ENOSYS. Some functions are actually named
21096 something starting with __ and the normal name is an alias. */
21097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21098choke me
21099#else
21100char (*f) () = $ac_func;
21101#endif
21102#ifdef __cplusplus
21103}
21104#endif
21105
21106int
21107main ()
21108{
21109return f != $ac_func;
21110 ;
21111 return 0;
21112}
21113_ACEOF
21114rm -f conftest.$ac_objext conftest$ac_exeext
21115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21116 (eval $ac_link) 2>conftest.er1
a848cd7e 21117 ac_status=$?
ac1cb8d3
VS
21118 grep -v '^ *+' conftest.er1 >conftest.err
21119 rm -f conftest.er1
21120 cat conftest.err >&5
a848cd7e
SC
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } &&
89be85c2
VS
21123 { ac_try='test -z "$ac_c_werror_flag"
21124 || test ! -s conftest.err'
ac1cb8d3
VS
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21127 ac_status=$?
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; } &&
21130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21133 ac_status=$?
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; }; then
21136 eval "$as_ac_var=yes"
21137else
21138 echo "$as_me: failed program was:" >&5
21139sed 's/^/| /' conftest.$ac_ext >&5
21140
21141eval "$as_ac_var=no"
21142fi
ac1cb8d3
VS
21143rm -f conftest.err conftest.$ac_objext \
21144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21145fi
21146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21147echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21148if test `eval echo '${'$as_ac_var'}'` = yes; then
21149 cat >>confdefs.h <<_ACEOF
21150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21151_ACEOF
21152
21153fi
21154done
21155
21156fi
21157
21158
21159
21160 if test "x$ac_cv_func_regcomp" != "xyes"; then
21161 if test "$wxUSE_REGEX" = "sys" ; then
21162 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
21163echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
21164 { (exit 1); exit 1; }; }
21165 else
21166 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
21167echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21168 wxUSE_REGEX=builtin
21169 fi
21170 else
21171 wxUSE_REGEX=sys
21172 cat >>confdefs.h <<\_ACEOF
21173#define WX_NO_REGEX_ADVANCED 1
21174_ACEOF
21175
21176 fi
21177 fi
21178fi
21179
21180
21181ZLIB_LINK=
21182if test "$wxUSE_ZLIB" != "no" ; then
21183 cat >>confdefs.h <<\_ACEOF
21184#define wxUSE_ZLIB 1
21185_ACEOF
21186
21187
21188 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21189 if test "$USE_DARWIN" = 1; then
21190 system_zlib_h_ok="yes"
21191 else
21192 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21193echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21194if test "${ac_cv_header_zlib_h+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21196else
21197 if test "$cross_compiling" = yes; then
21198 unset ac_cv_header_zlib_h
21199
21200else
21201 cat >conftest.$ac_ext <<_ACEOF
21202/* confdefs.h. */
21203_ACEOF
21204cat confdefs.h >>conftest.$ac_ext
21205cat >>conftest.$ac_ext <<_ACEOF
21206/* end confdefs.h. */
21207
21208 #include <zlib.h>
21209 #include <stdio.h>
21210
21211 int main()
21212 {
21213 FILE *f=fopen("conftestval", "w");
21214 if (!f) exit(1);
21215 fprintf(f, "%s",
21216 ZLIB_VERSION[0] == '1' &&
21217 (ZLIB_VERSION[2] > '1' ||
21218 (ZLIB_VERSION[2] == '1' &&
21219 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21220 exit(0);
21221 }
21222
21223_ACEOF
21224rm -f conftest$ac_exeext
21225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21226 (eval $ac_link) 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 ac_cv_header_zlib_h=`cat conftestval`
21236else
21237 echo "$as_me: program exited with status $ac_status" >&5
21238echo "$as_me: failed program was:" >&5
21239sed 's/^/| /' conftest.$ac_ext >&5
21240
21241( exit $ac_status )
21242ac_cv_header_zlib_h=no
21243fi
ac1cb8d3 21244rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21245fi
21246
21247fi
21248echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21249echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21250 if test "${ac_cv_header_zlib_h+set}" = set; then
21251 echo "$as_me:$LINENO: checking for zlib.h" >&5
21252echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21253if test "${ac_cv_header_zlib_h+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21255fi
21256echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21257echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21258else
21259 # Is the header compilable?
21260echo "$as_me:$LINENO: checking zlib.h usability" >&5
21261echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21262cat >conftest.$ac_ext <<_ACEOF
21263/* confdefs.h. */
21264_ACEOF
21265cat confdefs.h >>conftest.$ac_ext
21266cat >>conftest.$ac_ext <<_ACEOF
21267/* end confdefs.h. */
21268$ac_includes_default
21269#include <zlib.h>
21270_ACEOF
21271rm -f conftest.$ac_objext
21272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21273 (eval $ac_compile) 2>conftest.er1
a848cd7e 21274 ac_status=$?
ac1cb8d3
VS
21275 grep -v '^ *+' conftest.er1 >conftest.err
21276 rm -f conftest.er1
21277 cat conftest.err >&5
a848cd7e
SC
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } &&
89be85c2
VS
21280 { ac_try='test -z "$ac_c_werror_flag"
21281 || test ! -s conftest.err'
ac1cb8d3
VS
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21284 ac_status=$?
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } &&
21287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 ac_header_compiler=yes
21294else
21295 echo "$as_me: failed program was:" >&5
21296sed 's/^/| /' conftest.$ac_ext >&5
21297
21298ac_header_compiler=no
21299fi
ac1cb8d3 21300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21302echo "${ECHO_T}$ac_header_compiler" >&6
21303
21304# Is the header present?
21305echo "$as_me:$LINENO: checking zlib.h presence" >&5
21306echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21307cat >conftest.$ac_ext <<_ACEOF
21308/* confdefs.h. */
21309_ACEOF
21310cat confdefs.h >>conftest.$ac_ext
21311cat >>conftest.$ac_ext <<_ACEOF
21312/* end confdefs.h. */
21313#include <zlib.h>
21314_ACEOF
21315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21317 ac_status=$?
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } >/dev/null; then
21323 if test -s conftest.err; then
21324 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21326 else
21327 ac_cpp_err=
21328 fi
21329else
21330 ac_cpp_err=yes
21331fi
21332if test -z "$ac_cpp_err"; then
21333 ac_header_preproc=yes
21334else
21335 echo "$as_me: failed program was:" >&5
21336sed 's/^/| /' conftest.$ac_ext >&5
21337
21338 ac_header_preproc=no
21339fi
21340rm -f conftest.err conftest.$ac_ext
21341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21342echo "${ECHO_T}$ac_header_preproc" >&6
21343
21344# So? What about this header?
ac1cb8d3
VS
21345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21346 yes:no: )
a848cd7e
SC
21347 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21348echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21349 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21350echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21351 ac_header_preproc=yes
a848cd7e 21352 ;;
ac1cb8d3 21353 no:yes:* )
a848cd7e
SC
21354 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21355echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21356 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21357echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21359echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21361echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21362 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21363echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21364 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21365echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21366 (
21367 cat <<\_ASBOX
ac1cb8d3
VS
21368## ----------------------------------------- ##
21369## Report this to wx-dev@lists.wxwidgets.org ##
21370## ----------------------------------------- ##
a848cd7e
SC
21371_ASBOX
21372 ) |
21373 sed "s/^/$as_me: WARNING: /" >&2
21374 ;;
21375esac
21376echo "$as_me:$LINENO: checking for zlib.h" >&5
21377echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21378if test "${ac_cv_header_zlib_h+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380else
21381 ac_cv_header_zlib_h=$ac_header_preproc
21382fi
21383echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21384echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21385
21386fi
21387
21388
21389
21390 system_zlib_h_ok=$ac_cv_header_zlib_h
21391 fi
21392
21393 if test "$system_zlib_h_ok" = "yes"; then
21394 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21395echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21396if test "${ac_cv_lib_z_deflate+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21398else
21399 ac_check_lib_save_LIBS=$LIBS
21400LIBS="-lz $LIBS"
21401cat >conftest.$ac_ext <<_ACEOF
21402/* confdefs.h. */
21403_ACEOF
21404cat confdefs.h >>conftest.$ac_ext
21405cat >>conftest.$ac_ext <<_ACEOF
21406/* end confdefs.h. */
21407
21408/* Override any gcc2 internal prototype to avoid an error. */
21409#ifdef __cplusplus
21410extern "C"
21411#endif
21412/* We use char because int might match the return type of a gcc2
21413 builtin and then its argument prototype would still apply. */
21414char deflate ();
21415int
21416main ()
21417{
21418deflate ();
21419 ;
21420 return 0;
21421}
21422_ACEOF
21423rm -f conftest.$ac_objext conftest$ac_exeext
21424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21425 (eval $ac_link) 2>conftest.er1
a848cd7e 21426 ac_status=$?
ac1cb8d3
VS
21427 grep -v '^ *+' conftest.er1 >conftest.err
21428 rm -f conftest.er1
21429 cat conftest.err >&5
a848cd7e
SC
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } &&
89be85c2
VS
21432 { ac_try='test -z "$ac_c_werror_flag"
21433 || test ! -s conftest.err'
ac1cb8d3
VS
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; } &&
21439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; }; then
21445 ac_cv_lib_z_deflate=yes
21446else
21447 echo "$as_me: failed program was:" >&5
21448sed 's/^/| /' conftest.$ac_ext >&5
21449
21450ac_cv_lib_z_deflate=no
21451fi
ac1cb8d3
VS
21452rm -f conftest.err conftest.$ac_objext \
21453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21454LIBS=$ac_check_lib_save_LIBS
21455fi
21456echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21457echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21458if test $ac_cv_lib_z_deflate = yes; then
21459 ZLIB_LINK=" -lz"
21460fi
21461
21462 fi
21463
21464 if test "x$ZLIB_LINK" = "x" ; then
21465 if test "$wxUSE_ZLIB" = "sys" ; then
21466 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21467echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21468 { (exit 1); exit 1; }; }
21469 else
21470 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21471echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21472 wxUSE_ZLIB=builtin
21473 fi
21474 else
21475 wxUSE_ZLIB=sys
21476 fi
21477 fi
21478fi
21479
21480
21481PNG_LINK=
21482if test "$wxUSE_LIBPNG" != "no" ; then
21483 cat >>confdefs.h <<\_ACEOF
21484#define wxUSE_LIBPNG 1
21485_ACEOF
21486
21487
21488 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21489 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21490echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21491 wxUSE_LIBPNG=sys
21492 fi
21493
21494 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21495 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21496echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21497 wxUSE_LIBPNG=builtin
21498 fi
21499
21500 if test "$wxUSE_MGL" != 1 ; then
21501 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21502 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21503echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21504if test "${ac_cv_header_png_h+set}" = set; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21506else
21507 if test "$cross_compiling" = yes; then
21508 unset ac_cv_header_png_h
21509
21510else
21511 cat >conftest.$ac_ext <<_ACEOF
21512/* confdefs.h. */
21513_ACEOF
21514cat confdefs.h >>conftest.$ac_ext
21515cat >>conftest.$ac_ext <<_ACEOF
21516/* end confdefs.h. */
21517
21518 #include <png.h>
21519 #include <stdio.h>
21520
21521 int main()
21522 {
21523 FILE *f=fopen("conftestval", "w");
21524 if (!f) exit(1);
21525 fprintf(f, "%s",
21526 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21527 exit(0);
21528 }
21529
21530_ACEOF
21531rm -f conftest$ac_exeext
21532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21533 (eval $ac_link) 2>&5
21534 ac_status=$?
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; }; then
21542 ac_cv_header_png_h=`cat conftestval`
21543else
21544 echo "$as_me: program exited with status $ac_status" >&5
21545echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548( exit $ac_status )
21549ac_cv_header_png_h=no
21550fi
ac1cb8d3 21551rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21552fi
21553
21554fi
21555echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21556echo "${ECHO_T}$ac_cv_header_png_h" >&6
21557 if test "${ac_cv_header_png_h+set}" = set; then
21558 echo "$as_me:$LINENO: checking for png.h" >&5
21559echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21560if test "${ac_cv_header_png_h+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21562fi
21563echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21564echo "${ECHO_T}$ac_cv_header_png_h" >&6
21565else
21566 # Is the header compilable?
21567echo "$as_me:$LINENO: checking png.h usability" >&5
21568echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21569cat >conftest.$ac_ext <<_ACEOF
21570/* confdefs.h. */
21571_ACEOF
21572cat confdefs.h >>conftest.$ac_ext
21573cat >>conftest.$ac_ext <<_ACEOF
21574/* end confdefs.h. */
21575$ac_includes_default
21576#include <png.h>
21577_ACEOF
21578rm -f conftest.$ac_objext
21579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21580 (eval $ac_compile) 2>conftest.er1
a848cd7e 21581 ac_status=$?
ac1cb8d3
VS
21582 grep -v '^ *+' conftest.er1 >conftest.err
21583 rm -f conftest.er1
21584 cat conftest.err >&5
a848cd7e
SC
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } &&
89be85c2
VS
21587 { ac_try='test -z "$ac_c_werror_flag"
21588 || test ! -s conftest.err'
ac1cb8d3
VS
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; } &&
21594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; }; then
21600 ac_header_compiler=yes
21601else
21602 echo "$as_me: failed program was:" >&5
21603sed 's/^/| /' conftest.$ac_ext >&5
21604
21605ac_header_compiler=no
21606fi
ac1cb8d3 21607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21609echo "${ECHO_T}$ac_header_compiler" >&6
21610
21611# Is the header present?
21612echo "$as_me:$LINENO: checking png.h presence" >&5
21613echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21614cat >conftest.$ac_ext <<_ACEOF
21615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
21620#include <png.h>
21621_ACEOF
21622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } >/dev/null; then
21630 if test -s conftest.err; then
21631 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21633 else
21634 ac_cpp_err=
21635 fi
21636else
21637 ac_cpp_err=yes
21638fi
21639if test -z "$ac_cpp_err"; then
21640 ac_header_preproc=yes
21641else
21642 echo "$as_me: failed program was:" >&5
21643sed 's/^/| /' conftest.$ac_ext >&5
21644
21645 ac_header_preproc=no
21646fi
21647rm -f conftest.err conftest.$ac_ext
21648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21649echo "${ECHO_T}$ac_header_preproc" >&6
21650
21651# So? What about this header?
ac1cb8d3
VS
21652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21653 yes:no: )
a848cd7e
SC
21654 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21655echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21656 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21657echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21658 ac_header_preproc=yes
a848cd7e 21659 ;;
ac1cb8d3 21660 no:yes:* )
a848cd7e
SC
21661 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21662echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21663 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21664echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21666echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21668echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21669 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21670echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21671 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21672echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21673 (
21674 cat <<\_ASBOX
ac1cb8d3
VS
21675## ----------------------------------------- ##
21676## Report this to wx-dev@lists.wxwidgets.org ##
21677## ----------------------------------------- ##
a848cd7e
SC
21678_ASBOX
21679 ) |
21680 sed "s/^/$as_me: WARNING: /" >&2
21681 ;;
21682esac
21683echo "$as_me:$LINENO: checking for png.h" >&5
21684echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21685if test "${ac_cv_header_png_h+set}" = set; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21687else
21688 ac_cv_header_png_h=$ac_header_preproc
21689fi
21690echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21691echo "${ECHO_T}$ac_cv_header_png_h" >&6
21692
21693fi
21694
21695
21696
21697 if test "$ac_cv_header_png_h" = "yes"; then
21698 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21699echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21700if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21702else
21703 ac_check_lib_save_LIBS=$LIBS
21704LIBS="-lpng -lz -lm $LIBS"
21705cat >conftest.$ac_ext <<_ACEOF
21706/* confdefs.h. */
21707_ACEOF
21708cat confdefs.h >>conftest.$ac_ext
21709cat >>conftest.$ac_ext <<_ACEOF
21710/* end confdefs.h. */
21711
21712/* Override any gcc2 internal prototype to avoid an error. */
21713#ifdef __cplusplus
21714extern "C"
21715#endif
21716/* We use char because int might match the return type of a gcc2
21717 builtin and then its argument prototype would still apply. */
21718char png_check_sig ();
21719int
21720main ()
21721{
21722png_check_sig ();
21723 ;
21724 return 0;
21725}
21726_ACEOF
21727rm -f conftest.$ac_objext conftest$ac_exeext
21728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21729 (eval $ac_link) 2>conftest.er1
a848cd7e 21730 ac_status=$?
ac1cb8d3
VS
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
a848cd7e
SC
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } &&
89be85c2
VS
21736 { ac_try='test -z "$ac_c_werror_flag"
21737 || test ! -s conftest.err'
ac1cb8d3
VS
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; } &&
21743 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; }; then
21749 ac_cv_lib_png_png_check_sig=yes
21750else
21751 echo "$as_me: failed program was:" >&5
21752sed 's/^/| /' conftest.$ac_ext >&5
21753
21754ac_cv_lib_png_png_check_sig=no
21755fi
ac1cb8d3
VS
21756rm -f conftest.err conftest.$ac_objext \
21757 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21758LIBS=$ac_check_lib_save_LIBS
21759fi
21760echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21761echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21762if test $ac_cv_lib_png_png_check_sig = yes; then
21763 PNG_LINK=" -lpng -lz"
21764fi
21765
21766 fi
21767
21768 if test "x$PNG_LINK" = "x" ; then
21769 if test "$wxUSE_LIBPNG" = "sys" ; then
21770 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21771echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21772 { (exit 1); exit 1; }; }
21773 else
21774 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21775echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21776 wxUSE_LIBPNG=builtin
21777 fi
21778 else
21779 wxUSE_LIBPNG=sys
21780 fi
21781 fi
21782 fi
21783
21784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21785fi
21786
21787
21788JPEG_LINK=
21789if test "$wxUSE_LIBJPEG" != "no" ; then
21790 cat >>confdefs.h <<\_ACEOF
21791#define wxUSE_LIBJPEG 1
21792_ACEOF
21793
21794
21795 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21796 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21797echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21798 wxUSE_LIBJPEG=sys
21799 fi
21800
21801 if test "$wxUSE_MGL" != 1 ; then
21802 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21803 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21804echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21805 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807else
21808 cat >conftest.$ac_ext <<_ACEOF
21809/* confdefs.h. */
21810_ACEOF
21811cat confdefs.h >>conftest.$ac_ext
21812cat >>conftest.$ac_ext <<_ACEOF
21813/* end confdefs.h. */
21814
21815 #undef HAVE_STDLIB_H
21816 #include <stdio.h>
21817 #include <jpeglib.h>
21818
21819int
21820main ()
21821{
21822
21823
21824 ;
21825 return 0;
21826}
21827_ACEOF
21828rm -f conftest.$ac_objext
21829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21830 (eval $ac_compile) 2>conftest.er1
a848cd7e 21831 ac_status=$?
ac1cb8d3
VS
21832 grep -v '^ *+' conftest.er1 >conftest.err
21833 rm -f conftest.er1
21834 cat conftest.err >&5
a848cd7e
SC
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } &&
89be85c2
VS
21837 { ac_try='test -z "$ac_c_werror_flag"
21838 || test ! -s conftest.err'
ac1cb8d3
VS
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 ac_cv_header_jpeglib_h=yes
21851else
21852 echo "$as_me: failed program was:" >&5
21853sed 's/^/| /' conftest.$ac_ext >&5
21854
21855ac_cv_header_jpeglib_h=no
21856
21857fi
ac1cb8d3 21858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21859
21860fi
21861
21862 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21863echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21864
21865 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21866 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21867echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21868if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21869 echo $ECHO_N "(cached) $ECHO_C" >&6
21870else
21871 ac_check_lib_save_LIBS=$LIBS
21872LIBS="-ljpeg $LIBS"
21873cat >conftest.$ac_ext <<_ACEOF
21874/* confdefs.h. */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h. */
21879
21880/* Override any gcc2 internal prototype to avoid an error. */
21881#ifdef __cplusplus
21882extern "C"
21883#endif
21884/* We use char because int might match the return type of a gcc2
21885 builtin and then its argument prototype would still apply. */
21886char jpeg_read_header ();
21887int
21888main ()
21889{
21890jpeg_read_header ();
21891 ;
21892 return 0;
21893}
21894_ACEOF
21895rm -f conftest.$ac_objext conftest$ac_exeext
21896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21897 (eval $ac_link) 2>conftest.er1
a848cd7e 21898 ac_status=$?
ac1cb8d3
VS
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
a848cd7e
SC
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } &&
89be85c2
VS
21904 { ac_try='test -z "$ac_c_werror_flag"
21905 || test ! -s conftest.err'
ac1cb8d3
VS
21906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; } &&
21911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; }; then
21917 ac_cv_lib_jpeg_jpeg_read_header=yes
21918else
21919 echo "$as_me: failed program was:" >&5
21920sed 's/^/| /' conftest.$ac_ext >&5
21921
21922ac_cv_lib_jpeg_jpeg_read_header=no
21923fi
ac1cb8d3
VS
21924rm -f conftest.err conftest.$ac_objext \
21925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21926LIBS=$ac_check_lib_save_LIBS
21927fi
21928echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21929echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21930if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21931 JPEG_LINK=" -ljpeg"
21932fi
21933
21934 fi
21935
21936 if test "x$JPEG_LINK" = "x" ; then
21937 if test "$wxUSE_LIBJPEG" = "sys" ; then
21938 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21939echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21940 { (exit 1); exit 1; }; }
21941 else
21942 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21943echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21944 wxUSE_LIBJPEG=builtin
21945 fi
21946 else
21947 wxUSE_LIBJPEG=sys
21948 fi
21949 fi
21950 fi
21951fi
21952
21953
21954TIFF_LINK=
21955TIFF_PREREQ_LINKS=-lm
21956if test "$wxUSE_LIBTIFF" != "no" ; then
21957 cat >>confdefs.h <<\_ACEOF
21958#define wxUSE_LIBTIFF 1
21959_ACEOF
21960
21961
21962 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21963 if test "$wxUSE_LIBJPEG" = "sys"; then
21964 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21965 fi
21966 if test "$wxUSE_ZLIB" = "sys"; then
21967 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21968 fi
21969 if test "${ac_cv_header_tiffio_h+set}" = set; then
21970 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21971echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21972if test "${ac_cv_header_tiffio_h+set}" = set; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21974fi
21975echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21976echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21977else
21978 # Is the header compilable?
21979echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21980echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21981cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h. */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h. */
21987$ac_includes_default
21988#include <tiffio.h>
21989_ACEOF
21990rm -f conftest.$ac_objext
21991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21992 (eval $ac_compile) 2>conftest.er1
a848cd7e 21993 ac_status=$?
ac1cb8d3
VS
21994 grep -v '^ *+' conftest.er1 >conftest.err
21995 rm -f conftest.er1
21996 cat conftest.err >&5
a848cd7e
SC
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } &&
89be85c2
VS
21999 { ac_try='test -z "$ac_c_werror_flag"
22000 || test ! -s conftest.err'
ac1cb8d3
VS
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22003 ac_status=$?
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; } &&
22006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
22012 ac_header_compiler=yes
22013else
22014 echo "$as_me: failed program was:" >&5
22015sed 's/^/| /' conftest.$ac_ext >&5
22016
22017ac_header_compiler=no
22018fi
ac1cb8d3 22019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22021echo "${ECHO_T}$ac_header_compiler" >&6
22022
22023# Is the header present?
22024echo "$as_me:$LINENO: checking tiffio.h presence" >&5
22025echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
22026cat >conftest.$ac_ext <<_ACEOF
22027/* confdefs.h. */
22028_ACEOF
22029cat confdefs.h >>conftest.$ac_ext
22030cat >>conftest.$ac_ext <<_ACEOF
22031/* end confdefs.h. */
22032#include <tiffio.h>
22033_ACEOF
22034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22036 ac_status=$?
22037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } >/dev/null; then
22042 if test -s conftest.err; then
22043 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22045 else
22046 ac_cpp_err=
22047 fi
22048else
22049 ac_cpp_err=yes
22050fi
22051if test -z "$ac_cpp_err"; then
22052 ac_header_preproc=yes
22053else
22054 echo "$as_me: failed program was:" >&5
22055sed 's/^/| /' conftest.$ac_ext >&5
22056
22057 ac_header_preproc=no
22058fi
22059rm -f conftest.err conftest.$ac_ext
22060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22061echo "${ECHO_T}$ac_header_preproc" >&6
22062
22063# So? What about this header?
ac1cb8d3
VS
22064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22065 yes:no: )
a848cd7e
SC
22066 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
22067echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22068 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
22069echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
22070 ac_header_preproc=yes
a848cd7e 22071 ;;
ac1cb8d3 22072 no:yes:* )
a848cd7e
SC
22073 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
22074echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22075 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
22076echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
22078echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
22080echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22081 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
22082echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22083 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
22084echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22085 (
22086 cat <<\_ASBOX
ac1cb8d3
VS
22087## ----------------------------------------- ##
22088## Report this to wx-dev@lists.wxwidgets.org ##
22089## ----------------------------------------- ##
a848cd7e
SC
22090_ASBOX
22091 ) |
22092 sed "s/^/$as_me: WARNING: /" >&2
22093 ;;
22094esac
22095echo "$as_me:$LINENO: checking for tiffio.h" >&5
22096echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22097if test "${ac_cv_header_tiffio_h+set}" = set; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22099else
22100 ac_cv_header_tiffio_h=$ac_header_preproc
22101fi
22102echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22103echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22104
22105fi
22106if test $ac_cv_header_tiffio_h = yes; then
22107
22108 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
22109echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
22110if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22112else
22113 ac_check_lib_save_LIBS=$LIBS
22114LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
22115cat >conftest.$ac_ext <<_ACEOF
22116/* confdefs.h. */
22117_ACEOF
22118cat confdefs.h >>conftest.$ac_ext
22119cat >>conftest.$ac_ext <<_ACEOF
22120/* end confdefs.h. */
22121
22122/* Override any gcc2 internal prototype to avoid an error. */
22123#ifdef __cplusplus
22124extern "C"
22125#endif
22126/* We use char because int might match the return type of a gcc2
22127 builtin and then its argument prototype would still apply. */
22128char TIFFError ();
22129int
22130main ()
22131{
22132TIFFError ();
22133 ;
22134 return 0;
22135}
22136_ACEOF
22137rm -f conftest.$ac_objext conftest$ac_exeext
22138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22139 (eval $ac_link) 2>conftest.er1
a848cd7e 22140 ac_status=$?
ac1cb8d3
VS
22141 grep -v '^ *+' conftest.er1 >conftest.err
22142 rm -f conftest.er1
22143 cat conftest.err >&5
a848cd7e
SC
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } &&
89be85c2
VS
22146 { ac_try='test -z "$ac_c_werror_flag"
22147 || test ! -s conftest.err'
ac1cb8d3
VS
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 ac_cv_lib_tiff_TIFFError=yes
22160else
22161 echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
22164ac_cv_lib_tiff_TIFFError=no
22165fi
ac1cb8d3
VS
22166rm -f conftest.err conftest.$ac_objext \
22167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22168LIBS=$ac_check_lib_save_LIBS
22169fi
22170echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
22171echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
22172if test $ac_cv_lib_tiff_TIFFError = yes; then
22173 TIFF_LINK=" -ltiff"
22174fi
22175
22176
22177
22178fi
22179
22180
22181
22182 if test "x$TIFF_LINK" = "x" ; then
22183 if test "$wxUSE_LIBTIFF" = "sys" ; then
22184 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22185echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22186 { (exit 1); exit 1; }; }
22187 else
22188 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22189echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22190 wxUSE_LIBTIFF=builtin
22191 fi
22192 else
22193 wxUSE_LIBTIFF=sys
22194 fi
22195 fi
22196fi
22197
22198
22199if test "$wxUSE_EXPAT" != "no"; then
22200 wxUSE_XML=yes
22201 cat >>confdefs.h <<\_ACEOF
22202#define wxUSE_EXPAT 1
22203_ACEOF
22204
22205 cat >>confdefs.h <<\_ACEOF
22206#define wxUSE_XML 1
22207_ACEOF
22208
22209
22210 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22211 if test "${ac_cv_header_expat_h+set}" = set; then
22212 echo "$as_me:$LINENO: checking for expat.h" >&5
22213echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22214if test "${ac_cv_header_expat_h+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22216fi
22217echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22218echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22219else
22220 # Is the header compilable?
22221echo "$as_me:$LINENO: checking expat.h usability" >&5
22222echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22223cat >conftest.$ac_ext <<_ACEOF
22224/* confdefs.h. */
22225_ACEOF
22226cat confdefs.h >>conftest.$ac_ext
22227cat >>conftest.$ac_ext <<_ACEOF
22228/* end confdefs.h. */
22229$ac_includes_default
22230#include <expat.h>
22231_ACEOF
22232rm -f conftest.$ac_objext
22233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22234 (eval $ac_compile) 2>conftest.er1
a848cd7e 22235 ac_status=$?
ac1cb8d3
VS
22236 grep -v '^ *+' conftest.er1 >conftest.err
22237 rm -f conftest.er1
22238 cat conftest.err >&5
a848cd7e
SC
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } &&
89be85c2
VS
22241 { ac_try='test -z "$ac_c_werror_flag"
22242 || test ! -s conftest.err'
ac1cb8d3
VS
22243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244 (eval $ac_try) 2>&5
22245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; } &&
22248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; }; then
22254 ac_header_compiler=yes
22255else
22256 echo "$as_me: failed program was:" >&5
22257sed 's/^/| /' conftest.$ac_ext >&5
22258
22259ac_header_compiler=no
22260fi
ac1cb8d3 22261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22263echo "${ECHO_T}$ac_header_compiler" >&6
22264
22265# Is the header present?
22266echo "$as_me:$LINENO: checking expat.h presence" >&5
22267echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22268cat >conftest.$ac_ext <<_ACEOF
22269/* confdefs.h. */
22270_ACEOF
22271cat confdefs.h >>conftest.$ac_ext
22272cat >>conftest.$ac_ext <<_ACEOF
22273/* end confdefs.h. */
22274#include <expat.h>
22275_ACEOF
22276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22278 ac_status=$?
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } >/dev/null; then
22284 if test -s conftest.err; then
22285 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22287 else
22288 ac_cpp_err=
22289 fi
22290else
22291 ac_cpp_err=yes
22292fi
22293if test -z "$ac_cpp_err"; then
22294 ac_header_preproc=yes
22295else
22296 echo "$as_me: failed program was:" >&5
22297sed 's/^/| /' conftest.$ac_ext >&5
22298
22299 ac_header_preproc=no
22300fi
22301rm -f conftest.err conftest.$ac_ext
22302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22303echo "${ECHO_T}$ac_header_preproc" >&6
22304
22305# So? What about this header?
ac1cb8d3
VS
22306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22307 yes:no: )
a848cd7e
SC
22308 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22309echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22310 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22311echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22312 ac_header_preproc=yes
a848cd7e 22313 ;;
ac1cb8d3 22314 no:yes:* )
a848cd7e
SC
22315 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22316echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22317 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22318echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22319 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22320echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22321 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22322echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22323 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22324echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22325 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22326echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22327 (
22328 cat <<\_ASBOX
ac1cb8d3
VS
22329## ----------------------------------------- ##
22330## Report this to wx-dev@lists.wxwidgets.org ##
22331## ----------------------------------------- ##
a848cd7e
SC
22332_ASBOX
22333 ) |
22334 sed "s/^/$as_me: WARNING: /" >&2
22335 ;;
22336esac
22337echo "$as_me:$LINENO: checking for expat.h" >&5
22338echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22339if test "${ac_cv_header_expat_h+set}" = set; then
22340 echo $ECHO_N "(cached) $ECHO_C" >&6
22341else
22342 ac_cv_header_expat_h=$ac_header_preproc
22343fi
22344echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22345echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22346
22347fi
22348if test $ac_cv_header_expat_h = yes; then
22349 found_expat_h=1
22350fi
22351
22352
22353 if test "x$found_expat_h" = "x1"; then
22354 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22355echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22356if test "${wx_cv_expat_is_not_broken+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22358else
22359
22360
22361
22362 ac_ext=cc
22363ac_cpp='$CXXCPP $CPPFLAGS'
22364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22367
22368 cat >conftest.$ac_ext <<_ACEOF
22369/* confdefs.h. */
22370_ACEOF
22371cat confdefs.h >>conftest.$ac_ext
22372cat >>conftest.$ac_ext <<_ACEOF
22373/* end confdefs.h. */
22374#include <expat.h>
22375int
22376main ()
22377{
22378
22379 ;
22380 return 0;
22381}
22382_ACEOF
22383rm -f conftest.$ac_objext
22384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22385 (eval $ac_compile) 2>conftest.er1
a848cd7e 22386 ac_status=$?
ac1cb8d3
VS
22387 grep -v '^ *+' conftest.er1 >conftest.err
22388 rm -f conftest.er1
22389 cat conftest.err >&5
a848cd7e
SC
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } &&
89be85c2
VS
22392 { ac_try='test -z "$ac_cxx_werror_flag"
22393 || test ! -s conftest.err'
ac1cb8d3
VS
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; } &&
22399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22402 ac_status=$?
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405 wx_cv_expat_is_not_broken=yes
22406else
22407 echo "$as_me: failed program was:" >&5
22408sed 's/^/| /' conftest.$ac_ext >&5
22409
22410wx_cv_expat_is_not_broken=no
22411
22412fi
ac1cb8d3 22413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22414 ac_ext=c
22415ac_cpp='$CPP $CPPFLAGS'
22416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22418ac_compiler_gnu=$ac_cv_c_compiler_gnu
22419
22420
22421
22422fi
22423echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22424echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22425 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22426 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22427echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22428if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430else
22431 ac_check_lib_save_LIBS=$LIBS
22432LIBS="-lexpat $LIBS"
22433cat >conftest.$ac_ext <<_ACEOF
22434/* confdefs.h. */
22435_ACEOF
22436cat confdefs.h >>conftest.$ac_ext
22437cat >>conftest.$ac_ext <<_ACEOF
22438/* end confdefs.h. */
22439
22440/* Override any gcc2 internal prototype to avoid an error. */
22441#ifdef __cplusplus
22442extern "C"
22443#endif
22444/* We use char because int might match the return type of a gcc2
22445 builtin and then its argument prototype would still apply. */
22446char XML_ParserCreate ();
22447int
22448main ()
22449{
22450XML_ParserCreate ();
22451 ;
22452 return 0;
22453}
22454_ACEOF
22455rm -f conftest.$ac_objext conftest$ac_exeext
22456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22457 (eval $ac_link) 2>conftest.er1
a848cd7e 22458 ac_status=$?
ac1cb8d3
VS
22459 grep -v '^ *+' conftest.er1 >conftest.err
22460 rm -f conftest.er1
22461 cat conftest.err >&5
a848cd7e
SC
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } &&
89be85c2
VS
22464 { ac_try='test -z "$ac_c_werror_flag"
22465 || test ! -s conftest.err'
ac1cb8d3
VS
22466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; } &&
22471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473 (eval $ac_try) 2>&5
22474 ac_status=$?
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); }; }; then
22477 ac_cv_lib_expat_XML_ParserCreate=yes
22478else
22479 echo "$as_me: failed program was:" >&5
22480sed 's/^/| /' conftest.$ac_ext >&5
22481
22482ac_cv_lib_expat_XML_ParserCreate=no
22483fi
ac1cb8d3
VS
22484rm -f conftest.err conftest.$ac_objext \
22485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22486LIBS=$ac_check_lib_save_LIBS
22487fi
22488echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22489echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22490if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22491 EXPAT_LINK=" -lexpat"
22492fi
22493
22494 fi
22495 fi
22496 if test "x$EXPAT_LINK" = "x" ; then
22497 if test "$wxUSE_EXPAT" = "sys" ; then
22498 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22499echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22500 { (exit 1); exit 1; }; }
22501 else
22502 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22503echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22504 wxUSE_EXPAT=builtin
22505 fi
22506 else
22507 wxUSE_EXPAT=sys
22508 fi
22509 fi
22510 if test "$wxUSE_EXPAT" = "builtin" ; then
22511
22512
22513subdirs="$subdirs src/expat"
22514
22515 fi
22516fi
22517
22518
22519
22520if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22521 if test "${ac_cv_header_mspack_h+set}" = set; then
22522 echo "$as_me:$LINENO: checking for mspack.h" >&5
22523echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22524if test "${ac_cv_header_mspack_h+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22526fi
22527echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22528echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22529else
22530 # Is the header compilable?
22531echo "$as_me:$LINENO: checking mspack.h usability" >&5
22532echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22533cat >conftest.$ac_ext <<_ACEOF
22534/* confdefs.h. */
22535_ACEOF
22536cat confdefs.h >>conftest.$ac_ext
22537cat >>conftest.$ac_ext <<_ACEOF
22538/* end confdefs.h. */
22539$ac_includes_default
22540#include <mspack.h>
22541_ACEOF
22542rm -f conftest.$ac_objext
22543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22544 (eval $ac_compile) 2>conftest.er1
a848cd7e 22545 ac_status=$?
ac1cb8d3
VS
22546 grep -v '^ *+' conftest.er1 >conftest.err
22547 rm -f conftest.er1
22548 cat conftest.err >&5
a848cd7e
SC
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } &&
89be85c2
VS
22551 { ac_try='test -z "$ac_c_werror_flag"
22552 || test ! -s conftest.err'
ac1cb8d3
VS
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; } &&
22558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22564 ac_header_compiler=yes
22565else
22566 echo "$as_me: failed program was:" >&5
22567sed 's/^/| /' conftest.$ac_ext >&5
22568
22569ac_header_compiler=no
22570fi
ac1cb8d3 22571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22573echo "${ECHO_T}$ac_header_compiler" >&6
22574
22575# Is the header present?
22576echo "$as_me:$LINENO: checking mspack.h presence" >&5
22577echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22578cat >conftest.$ac_ext <<_ACEOF
22579/* confdefs.h. */
22580_ACEOF
22581cat confdefs.h >>conftest.$ac_ext
22582cat >>conftest.$ac_ext <<_ACEOF
22583/* end confdefs.h. */
22584#include <mspack.h>
22585_ACEOF
22586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22588 ac_status=$?
22589 grep -v '^ *+' conftest.er1 >conftest.err
22590 rm -f conftest.er1
22591 cat conftest.err >&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } >/dev/null; then
22594 if test -s conftest.err; then
22595 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22597 else
22598 ac_cpp_err=
22599 fi
22600else
22601 ac_cpp_err=yes
22602fi
22603if test -z "$ac_cpp_err"; then
22604 ac_header_preproc=yes
22605else
22606 echo "$as_me: failed program was:" >&5
22607sed 's/^/| /' conftest.$ac_ext >&5
22608
22609 ac_header_preproc=no
22610fi
22611rm -f conftest.err conftest.$ac_ext
22612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22613echo "${ECHO_T}$ac_header_preproc" >&6
22614
22615# So? What about this header?
ac1cb8d3
VS
22616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22617 yes:no: )
a848cd7e
SC
22618 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22619echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22620 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22621echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22622 ac_header_preproc=yes
a848cd7e 22623 ;;
ac1cb8d3 22624 no:yes:* )
a848cd7e
SC
22625 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22626echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22627 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22628echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22630echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22631 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22632echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22633 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22634echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22635 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22636echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22637 (
22638 cat <<\_ASBOX
ac1cb8d3
VS
22639## ----------------------------------------- ##
22640## Report this to wx-dev@lists.wxwidgets.org ##
22641## ----------------------------------------- ##
a848cd7e
SC
22642_ASBOX
22643 ) |
22644 sed "s/^/$as_me: WARNING: /" >&2
22645 ;;
22646esac
22647echo "$as_me:$LINENO: checking for mspack.h" >&5
22648echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22649if test "${ac_cv_header_mspack_h+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651else
22652 ac_cv_header_mspack_h=$ac_header_preproc
22653fi
22654echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22655echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22656
22657fi
22658if test $ac_cv_header_mspack_h = yes; then
22659 found_mspack_h=1
22660fi
22661
22662
22663 if test "x$found_mspack_h" = "x1"; then
22664 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22665echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22666if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22668else
22669 ac_check_lib_save_LIBS=$LIBS
22670LIBS="-lmspack $LIBS"
22671cat >conftest.$ac_ext <<_ACEOF
22672/* confdefs.h. */
22673_ACEOF
22674cat confdefs.h >>conftest.$ac_ext
22675cat >>conftest.$ac_ext <<_ACEOF
22676/* end confdefs.h. */
22677
22678/* Override any gcc2 internal prototype to avoid an error. */
22679#ifdef __cplusplus
22680extern "C"
22681#endif
22682/* We use char because int might match the return type of a gcc2
22683 builtin and then its argument prototype would still apply. */
22684char mspack_create_chm_decompressor ();
22685int
22686main ()
22687{
22688mspack_create_chm_decompressor ();
22689 ;
22690 return 0;
22691}
22692_ACEOF
22693rm -f conftest.$ac_objext conftest$ac_exeext
22694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22695 (eval $ac_link) 2>conftest.er1
a848cd7e 22696 ac_status=$?
ac1cb8d3
VS
22697 grep -v '^ *+' conftest.er1 >conftest.err
22698 rm -f conftest.er1
22699 cat conftest.err >&5
a848cd7e
SC
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); } &&
89be85c2
VS
22702 { ac_try='test -z "$ac_c_werror_flag"
22703 || test ! -s conftest.err'
ac1cb8d3
VS
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22706 ac_status=$?
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; } &&
22709 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22712 ac_status=$?
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); }; }; then
22715 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22716else
22717 echo "$as_me: failed program was:" >&5
22718sed 's/^/| /' conftest.$ac_ext >&5
22719
22720ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22721fi
ac1cb8d3
VS
22722rm -f conftest.err conftest.$ac_objext \
22723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22724LIBS=$ac_check_lib_save_LIBS
22725fi
22726echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22727echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22728if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22729 MSPACK_LINK=" -lmspack"
22730fi
22731
22732 fi
22733 if test "x$MSPACK_LINK" = "x" ; then
22734 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22735 fi
22736fi
22737
22738if test "$wxUSE_LIBMSPACK" != "no"; then
22739 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22740#define wxUSE_LIBMSPACK 1
22741_ACEOF
22742
a848cd7e
SC
22743fi
22744
22745
22746
22747AFMINSTALL=
22748WIN32INSTALL=
22749
22750TOOLKIT=
22751TOOLKIT_INCLUDE=
22752WIDGET_SET=
22753
22754if test "$USE_WIN32" = 1 ; then
22755
22756for ac_header in w32api.h
22757do
22758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22759if eval "test \"\${$as_ac_Header+set}\" = set"; then
22760 echo "$as_me:$LINENO: checking for $ac_header" >&5
22761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22762if eval "test \"\${$as_ac_Header+set}\" = set"; then
22763 echo $ECHO_N "(cached) $ECHO_C" >&6
22764fi
22765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22767else
22768 # Is the header compilable?
22769echo "$as_me:$LINENO: checking $ac_header usability" >&5
22770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22771cat >conftest.$ac_ext <<_ACEOF
22772/* confdefs.h. */
22773_ACEOF
22774cat confdefs.h >>conftest.$ac_ext
22775cat >>conftest.$ac_ext <<_ACEOF
22776/* end confdefs.h. */
22777$ac_includes_default
22778#include <$ac_header>
22779_ACEOF
22780rm -f conftest.$ac_objext
22781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22782 (eval $ac_compile) 2>conftest.er1
a848cd7e 22783 ac_status=$?
ac1cb8d3
VS
22784 grep -v '^ *+' conftest.er1 >conftest.err
22785 rm -f conftest.er1
22786 cat conftest.err >&5
a848cd7e
SC
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } &&
89be85c2
VS
22789 { ac_try='test -z "$ac_c_werror_flag"
22790 || test ! -s conftest.err'
ac1cb8d3
VS
22791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22792 (eval $ac_try) 2>&5
22793 ac_status=$?
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); }; } &&
22796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802 ac_header_compiler=yes
22803else
22804 echo "$as_me: failed program was:" >&5
22805sed 's/^/| /' conftest.$ac_ext >&5
22806
22807ac_header_compiler=no
22808fi
ac1cb8d3 22809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22811echo "${ECHO_T}$ac_header_compiler" >&6
22812
22813# Is the header present?
22814echo "$as_me:$LINENO: checking $ac_header presence" >&5
22815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22816cat >conftest.$ac_ext <<_ACEOF
22817/* confdefs.h. */
22818_ACEOF
22819cat confdefs.h >>conftest.$ac_ext
22820cat >>conftest.$ac_ext <<_ACEOF
22821/* end confdefs.h. */
22822#include <$ac_header>
22823_ACEOF
22824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22826 ac_status=$?
22827 grep -v '^ *+' conftest.er1 >conftest.err
22828 rm -f conftest.er1
22829 cat conftest.err >&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } >/dev/null; then
22832 if test -s conftest.err; then
22833 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22835 else
22836 ac_cpp_err=
22837 fi
22838else
22839 ac_cpp_err=yes
22840fi
22841if test -z "$ac_cpp_err"; then
22842 ac_header_preproc=yes
22843else
22844 echo "$as_me: failed program was:" >&5
22845sed 's/^/| /' conftest.$ac_ext >&5
22846
22847 ac_header_preproc=no
22848fi
22849rm -f conftest.err conftest.$ac_ext
22850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22851echo "${ECHO_T}$ac_header_preproc" >&6
22852
22853# So? What about this header?
ac1cb8d3
VS
22854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22855 yes:no: )
a848cd7e
SC
22856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22860 ac_header_preproc=yes
a848cd7e 22861 ;;
ac1cb8d3 22862 no:yes:* )
a848cd7e
SC
22863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22875 (
22876 cat <<\_ASBOX
ac1cb8d3
VS
22877## ----------------------------------------- ##
22878## Report this to wx-dev@lists.wxwidgets.org ##
22879## ----------------------------------------- ##
a848cd7e
SC
22880_ASBOX
22881 ) |
22882 sed "s/^/$as_me: WARNING: /" >&2
22883 ;;
22884esac
22885echo "$as_me:$LINENO: checking for $ac_header" >&5
22886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22887if eval "test \"\${$as_ac_Header+set}\" = set"; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22889else
ac1cb8d3 22890 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22891fi
22892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22894
22895fi
22896if test `eval echo '${'$as_ac_Header'}'` = yes; then
22897 cat >>confdefs.h <<_ACEOF
22898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22899_ACEOF
22900
22901fi
22902
22903done
22904
22905 if test "${ac_cv_header_windows_h+set}" = set; then
22906 echo "$as_me:$LINENO: checking for windows.h" >&5
22907echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22908if test "${ac_cv_header_windows_h+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22910fi
22911echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22912echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22913else
22914 # Is the header compilable?
22915echo "$as_me:$LINENO: checking windows.h usability" >&5
22916echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22917cat >conftest.$ac_ext <<_ACEOF
22918/* confdefs.h. */
22919_ACEOF
22920cat confdefs.h >>conftest.$ac_ext
22921cat >>conftest.$ac_ext <<_ACEOF
22922/* end confdefs.h. */
22923$ac_includes_default
22924#include <windows.h>
22925_ACEOF
22926rm -f conftest.$ac_objext
22927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22928 (eval $ac_compile) 2>conftest.er1
a848cd7e 22929 ac_status=$?
ac1cb8d3
VS
22930 grep -v '^ *+' conftest.er1 >conftest.err
22931 rm -f conftest.er1
22932 cat conftest.err >&5
a848cd7e
SC
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } &&
89be85c2
VS
22935 { ac_try='test -z "$ac_c_werror_flag"
22936 || test ! -s conftest.err'
ac1cb8d3
VS
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; } &&
22942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22945 ac_status=$?
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; }; then
22948 ac_header_compiler=yes
22949else
22950 echo "$as_me: failed program was:" >&5
22951sed 's/^/| /' conftest.$ac_ext >&5
22952
22953ac_header_compiler=no
22954fi
ac1cb8d3 22955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22956echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22957echo "${ECHO_T}$ac_header_compiler" >&6
22958
22959# Is the header present?
22960echo "$as_me:$LINENO: checking windows.h presence" >&5
22961echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22962cat >conftest.$ac_ext <<_ACEOF
22963/* confdefs.h. */
22964_ACEOF
22965cat confdefs.h >>conftest.$ac_ext
22966cat >>conftest.$ac_ext <<_ACEOF
22967/* end confdefs.h. */
22968#include <windows.h>
22969_ACEOF
22970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } >/dev/null; then
22978 if test -s conftest.err; then
22979 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22981 else
22982 ac_cpp_err=
22983 fi
22984else
22985 ac_cpp_err=yes
22986fi
22987if test -z "$ac_cpp_err"; then
22988 ac_header_preproc=yes
22989else
22990 echo "$as_me: failed program was:" >&5
22991sed 's/^/| /' conftest.$ac_ext >&5
22992
22993 ac_header_preproc=no
22994fi
22995rm -f conftest.err conftest.$ac_ext
22996echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22997echo "${ECHO_T}$ac_header_preproc" >&6
22998
22999# So? What about this header?
ac1cb8d3
VS
23000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23001 yes:no: )
a848cd7e
SC
23002 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23003echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23004 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23005echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23006 ac_header_preproc=yes
a848cd7e 23007 ;;
ac1cb8d3 23008 no:yes:* )
a848cd7e
SC
23009 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23010echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23011 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23012echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23013 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23014echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23015 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23016echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23017 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23018echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23019 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23020echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23021 (
23022 cat <<\_ASBOX
ac1cb8d3
VS
23023## ----------------------------------------- ##
23024## Report this to wx-dev@lists.wxwidgets.org ##
23025## ----------------------------------------- ##
a848cd7e
SC
23026_ASBOX
23027 ) |
23028 sed "s/^/$as_me: WARNING: /" >&2
23029 ;;
23030esac
23031echo "$as_me:$LINENO: checking for windows.h" >&5
23032echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23033if test "${ac_cv_header_windows_h+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23035else
23036 ac_cv_header_windows_h=$ac_header_preproc
23037fi
23038echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23039echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23040
23041fi
23042if test $ac_cv_header_windows_h = yes; then
23043 :
23044else
23045
23046 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
23047echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
23048 { (exit 1); exit 1; }; }
23049
23050fi
23051
23052
23053
23054 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
23055
23056 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
23057 LIBS="$LIBS -loleacc"
23058 fi
23059
23060 case "${host}" in
23061 *-*-cygwin* )
23062 LIBS="$LIBS -lkernel32 -luser32"
23063 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
23064 esac
23065
23066 if test "$wxUSE_ODBC" = "sys" ; then
23067 wxUSE_ODBC = "yes"
23068 fi
23069 if test "$wxUSE_ODBC" = "yes" ; then
23070 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
23071 cat >>confdefs.h <<\_ACEOF
23072#define wxUSE_ODBC 1
23073_ACEOF
23074
23075 fi
23076
23077 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
23078 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
23079
23080 WIN32INSTALL=win32install
23081fi
23082
23083if test "$wxUSE_GUI" = "yes"; then
23084 USE_GUI=1
23085
23086 GUI_TK_LIBRARY=
23087
23088 WXGTK12=
23089 WXGTK127=
23090 WXGTK20=
23091 WXGPE=
23092
207bc66c
RN
23093 if test "$wxUSE_COCOA" = 1 ; then
23094 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
23095 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
23096echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
23097 wxUSE_PRINTING_ARCHITECTURE=no
23098 fi
23099 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
23100 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
23101echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
23102 wxUSE_DRAG_AND_DROP=no
23103 fi
23104 if test "$wxUSE_DRAGIMAGE" = "yes"; then
23105 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
23106echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
23107 wxUSE_DRAGIMAGE=no
23108 fi
23109 fi
23110
a848cd7e
SC
23111 if test "$wxUSE_MSW" = 1 ; then
23112 TOOLKIT=MSW
23113 GUIDIST=MSW_DIST
23114
ceec2216 23115 case "${host}" in
a848cd7e
SC
23116 *-*-mingw32* )
23117 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
23118 esac
23119 fi
23120
23121 if test "$wxUSE_GTK" = 1; then
23122 echo "$as_me:$LINENO: checking for GTK+ version" >&5
23123echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
23124
23125 gtk_version_cached=1
23126 if test "${wx_cv_lib_gtk+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23128else
23129
23130 gtk_version_cached=0
23131 echo "$as_me:$LINENO: result: " >&5
23132echo "${ECHO_T}" >&6
23133
23134 GTK_MODULES=
23135 if test "$wxUSE_THREADS" = "yes"; then
23136 GTK_MODULES=gthread
23137 fi
23138
23139 wx_cv_lib_gtk=
23140 if test "x$wxUSE_GTK2" = "xyes"; then
23141 # Check whether --enable-gtktest or --disable-gtktest was given.
23142if test "${enable_gtktest+set}" = set; then
23143 enableval="$enable_gtktest"
23144
23145else
23146 enable_gtktest=yes
23147fi;
23148
23149 pkg_config_args=gtk+-2.0
23150 for module in . $GTK_MODULES
23151 do
23152 case "$module" in
23153 gthread)
23154 pkg_config_args="$pkg_config_args gthread-2.0"
23155 ;;
23156 esac
23157 done
23158
23159 no_gtk=""
23160
23161 # Extract the first word of "pkg-config", so it can be a program name with args.
23162set dummy pkg-config; ac_word=$2
23163echo "$as_me:$LINENO: checking for $ac_word" >&5
23164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23165if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23166 echo $ECHO_N "(cached) $ECHO_C" >&6
23167else
23168 case $PKG_CONFIG in
23169 [\\/]* | ?:[\\/]*)
23170 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23171 ;;
23172 *)
23173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23174for as_dir in $PATH
23175do
23176 IFS=$as_save_IFS
23177 test -z "$as_dir" && as_dir=.
23178 for ac_exec_ext in '' $ac_executable_extensions; do
23179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23180 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23182 break 2
23183 fi
23184done
23185done
23186
23187 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23188 ;;
23189esac
23190fi
23191PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23192
23193if test -n "$PKG_CONFIG"; then
23194 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23195echo "${ECHO_T}$PKG_CONFIG" >&6
23196else
23197 echo "$as_me:$LINENO: result: no" >&5
23198echo "${ECHO_T}no" >&6
23199fi
23200
23201
23202 if test x$PKG_CONFIG != xno ; then
23203 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23204 :
23205 else
c2218763 23206 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23207 no_gtk=yes
23208 PKG_CONFIG=no
23209 fi
23210 else
23211 no_gtk=yes
23212 fi
23213
23214 min_gtk_version=2.0.0
23215 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23216echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23217
23218 if test x$PKG_CONFIG != xno ; then
23219 ## don't try to run the test against uninstalled libtool libs
23220 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23221 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23222 enable_gtktest=no
23223 fi
23224
23225 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23226 :
23227 else
23228 no_gtk=yes
23229 fi
23230 fi
23231
23232 if test x"$no_gtk" = x ; then
23233 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23234 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23235 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23237 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23239 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23241 if test "x$enable_gtktest" = "xyes" ; then
23242 ac_save_CFLAGS="$CFLAGS"
23243 ac_save_LIBS="$LIBS"
23244 CFLAGS="$CFLAGS $GTK_CFLAGS"
23245 LIBS="$GTK_LIBS $LIBS"
23246 rm -f conf.gtktest
23247 if test "$cross_compiling" = yes; then
23248 echo $ac_n "cross compiling; assumed OK... $ac_c"
23249else
23250 cat >conftest.$ac_ext <<_ACEOF
23251/* confdefs.h. */
23252_ACEOF
23253cat confdefs.h >>conftest.$ac_ext
23254cat >>conftest.$ac_ext <<_ACEOF
23255/* end confdefs.h. */
23256
23257#include <gtk/gtk.h>
23258#include <stdio.h>
23259#include <stdlib.h>
23260
23261int
23262main ()
23263{
23264 int major, minor, micro;
23265 char *tmp_version;
23266
23267 system ("touch conf.gtktest");
23268
23269 /* HP/UX 9 (%@#!) writes to sscanf strings */
23270 tmp_version = g_strdup("$min_gtk_version");
23271 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23272 printf("%s, bad version string\n", "$min_gtk_version");
23273 exit(1);
23274 }
23275
23276 if ((gtk_major_version != $gtk_config_major_version) ||
23277 (gtk_minor_version != $gtk_config_minor_version) ||
23278 (gtk_micro_version != $gtk_config_micro_version))
23279 {
23280 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23281 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23282 gtk_major_version, gtk_minor_version, gtk_micro_version);
23283 printf ("*** was found! If pkg-config was correct, then it is best\n");
23284 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23285 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23286 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23287 printf("*** required on your system.\n");
23288 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23289 printf("*** to point to the correct configuration files\n");
23290 }
23291 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23292 (gtk_minor_version != GTK_MINOR_VERSION) ||
23293 (gtk_micro_version != GTK_MICRO_VERSION))
23294 {
23295 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23296 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23297 printf("*** library (version %d.%d.%d)\n",
23298 gtk_major_version, gtk_minor_version, gtk_micro_version);
23299 }
23300 else
23301 {
23302 if ((gtk_major_version > major) ||
23303 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23304 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23305 {
23306 return 0;
23307 }
23308 else
23309 {
23310 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23311 gtk_major_version, gtk_minor_version, gtk_micro_version);
23312 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23313 major, minor, micro);
23314 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23315 printf("***\n");
23316 printf("*** If you have already installed a sufficiently new version, this error\n");
23317 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23318 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23319 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23320 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23321 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23322 printf("*** so that the correct libraries are found at run-time))\n");
23323 }
23324 }
23325 return 1;
23326}
23327
23328_ACEOF
23329rm -f conftest$ac_exeext
23330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23331 (eval $ac_link) 2>&5
23332 ac_status=$?
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 :
23341else
23342 echo "$as_me: program exited with status $ac_status" >&5
23343echo "$as_me: failed program was:" >&5
23344sed 's/^/| /' conftest.$ac_ext >&5
23345
23346( exit $ac_status )
23347no_gtk=yes
23348fi
ac1cb8d3 23349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23350fi
23351 CFLAGS="$ac_save_CFLAGS"
23352 LIBS="$ac_save_LIBS"
23353 fi
23354 fi
23355 if test "x$no_gtk" = x ; then
23356 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23357echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23358 wx_cv_lib_gtk=2.0
23359 else
23360 echo "$as_me:$LINENO: result: no" >&5
23361echo "${ECHO_T}no" >&6
23362 if test "$PKG_CONFIG" = "no" ; then
23363 echo "*** A new enough version of pkg-config was not found."
23364 echo "*** See http://pkgconfig.sourceforge.net"
23365 else
23366 if test -f conf.gtktest ; then
23367 :
23368 else
23369 echo "*** Could not run GTK+ test program, checking why..."
23370 ac_save_CFLAGS="$CFLAGS"
23371 ac_save_LIBS="$LIBS"
23372 CFLAGS="$CFLAGS $GTK_CFLAGS"
23373 LIBS="$LIBS $GTK_LIBS"
23374 cat >conftest.$ac_ext <<_ACEOF
23375/* confdefs.h. */
23376_ACEOF
23377cat confdefs.h >>conftest.$ac_ext
23378cat >>conftest.$ac_ext <<_ACEOF
23379/* end confdefs.h. */
23380
23381#include <gtk/gtk.h>
23382#include <stdio.h>
23383
23384int
23385main ()
23386{
23387 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23388 ;
23389 return 0;
23390}
23391_ACEOF
23392rm -f conftest.$ac_objext conftest$ac_exeext
23393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23394 (eval $ac_link) 2>conftest.er1
a848cd7e 23395 ac_status=$?
ac1cb8d3
VS
23396 grep -v '^ *+' conftest.er1 >conftest.err
23397 rm -f conftest.er1
23398 cat conftest.err >&5
a848cd7e
SC
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } &&
89be85c2
VS
23401 { ac_try='test -z "$ac_c_werror_flag"
23402 || test ! -s conftest.err'
ac1cb8d3
VS
23403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404 (eval $ac_try) 2>&5
23405 ac_status=$?
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); }; } &&
23408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; }; then
23414 echo "*** The test program compiled, but did not run. This usually means"
23415 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23416 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23417 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23418 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23419 echo "*** is required on your system"
23420 echo "***"
23421 echo "*** If you have an old version installed, it is best to remove it, although"
23422 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23423else
23424 echo "$as_me: failed program was:" >&5
23425sed 's/^/| /' conftest.$ac_ext >&5
23426
23427 echo "*** The test program failed to compile or link. See the file config.log for the"
23428 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23429fi
ac1cb8d3
VS
23430rm -f conftest.err conftest.$ac_objext \
23431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23432 CFLAGS="$ac_save_CFLAGS"
23433 LIBS="$ac_save_LIBS"
23434 fi
23435 fi
23436 GTK_CFLAGS=""
23437 GTK_LIBS=""
23438 :
23439 fi
23440
23441
23442 rm -f conf.gtktest
23443
23444 else
23445
23446# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23447if test "${with_gtk_prefix+set}" = set; then
23448 withval="$with_gtk_prefix"
23449 gtk_config_prefix="$withval"
23450else
23451 gtk_config_prefix=""
23452fi;
23453
23454# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23455if test "${with_gtk_exec_prefix+set}" = set; then
23456 withval="$with_gtk_exec_prefix"
23457 gtk_config_exec_prefix="$withval"
23458else
23459 gtk_config_exec_prefix=""
23460fi;
23461# Check whether --enable-gtktest or --disable-gtktest was given.
23462if test "${enable_gtktest+set}" = set; then
23463 enableval="$enable_gtktest"
23464
23465else
23466 enable_gtktest=yes
23467fi;
23468
23469 for module in . $GTK_MODULES
23470 do
23471 case "$module" in
23472 gthread)
23473 gtk_config_args="$gtk_config_args gthread"
23474 ;;
23475 esac
23476 done
23477
23478 if test x$gtk_config_exec_prefix != x ; then
23479 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23480 if test x${GTK_CONFIG+set} != xset ; then
23481 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23482 fi
23483 fi
23484 if test x$gtk_config_prefix != x ; then
23485 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23486 if test x${GTK_CONFIG+set} != xset ; then
23487 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23488 fi
23489 fi
23490
23491 # Extract the first word of "gtk-config", so it can be a program name with args.
23492set dummy gtk-config; ac_word=$2
23493echo "$as_me:$LINENO: checking for $ac_word" >&5
23494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23495if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23497else
23498 case $GTK_CONFIG in
23499 [\\/]* | ?:[\\/]*)
23500 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23501 ;;
23502 *)
23503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23504for as_dir in $PATH
23505do
23506 IFS=$as_save_IFS
23507 test -z "$as_dir" && as_dir=.
23508 for ac_exec_ext in '' $ac_executable_extensions; do
23509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23510 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23512 break 2
23513 fi
23514done
23515done
23516
23517 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23518 ;;
23519esac
23520fi
23521GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23522
23523if test -n "$GTK_CONFIG"; then
23524 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23525echo "${ECHO_T}$GTK_CONFIG" >&6
23526else
23527 echo "$as_me:$LINENO: result: no" >&5
23528echo "${ECHO_T}no" >&6
23529fi
23530
23531 min_gtk_version=1.2.7
23532 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23533echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23534 no_gtk=""
23535 if test "$GTK_CONFIG" = "no" ; then
23536 no_gtk=yes
23537 else
23538 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23539 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23540 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23541 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23542 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23543 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23544 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23545 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23546 if test "x$enable_gtktest" = "xyes" ; then
23547 ac_save_CFLAGS="$CFLAGS"
23548 ac_save_LIBS="$LIBS"
23549 CFLAGS="$CFLAGS $GTK_CFLAGS"
23550 LIBS="$GTK_LIBS $LIBS"
23551 rm -f conf.gtktest
23552 if test "$cross_compiling" = yes; then
23553 echo $ac_n "cross compiling; assumed OK... $ac_c"
23554else
23555 cat >conftest.$ac_ext <<_ACEOF
23556/* confdefs.h. */
23557_ACEOF
23558cat confdefs.h >>conftest.$ac_ext
23559cat >>conftest.$ac_ext <<_ACEOF
23560/* end confdefs.h. */
23561
23562#include <gtk/gtk.h>
23563#include <stdio.h>
23564#include <stdlib.h>
23565
23566int
23567main ()
23568{
23569 int major, minor, micro;
23570 char *tmp_version;
23571
23572 system ("touch conf.gtktest");
23573
23574 /* HP/UX 9 (%@#!) writes to sscanf strings */
23575 tmp_version = g_strdup("$min_gtk_version");
23576 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23577 printf("%s, bad version string\n", "$min_gtk_version");
23578 exit(1);
23579 }
23580
23581 if ((gtk_major_version != $gtk_config_major_version) ||
23582 (gtk_minor_version != $gtk_config_minor_version) ||
23583 (gtk_micro_version != $gtk_config_micro_version))
23584 {
23585 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23586 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23587 gtk_major_version, gtk_minor_version, gtk_micro_version);
23588 printf ("*** was found! If gtk-config was correct, then it is best\n");
23589 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23590 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23591 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23592 printf("*** required on your system.\n");
23593 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23594 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23595 printf("*** before re-running configure\n");
23596 }
23597#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23598 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23599 (gtk_minor_version != GTK_MINOR_VERSION) ||
23600 (gtk_micro_version != GTK_MICRO_VERSION))
23601 {
23602 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23603 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23604 printf("*** library (version %d.%d.%d)\n",
23605 gtk_major_version, gtk_minor_version, gtk_micro_version);
23606 }
23607#endif /* defined (GTK_MAJOR_VERSION) ... */
23608 else
23609 {
23610 if ((gtk_major_version > major) ||
23611 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23612 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23613 {
23614 return 0;
23615 }
23616 else
23617 {
23618 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23619 gtk_major_version, gtk_minor_version, gtk_micro_version);
23620 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23621 major, minor, micro);
23622 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23623 printf("***\n");
23624 printf("*** If you have already installed a sufficiently new version, this error\n");
23625 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23626 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23627 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23628 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23629 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23630 printf("*** so that the correct libraries are found at run-time))\n");
23631 }
23632 }
23633 return 1;
23634}
23635
23636_ACEOF
23637rm -f conftest$ac_exeext
23638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23639 (eval $ac_link) 2>&5
23640 ac_status=$?
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644 (eval $ac_try) 2>&5
23645 ac_status=$?
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); }; }; then
23648 :
23649else
23650 echo "$as_me: program exited with status $ac_status" >&5
23651echo "$as_me: failed program was:" >&5
23652sed 's/^/| /' conftest.$ac_ext >&5
23653
23654( exit $ac_status )
23655no_gtk=yes
23656fi
ac1cb8d3 23657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23658fi
23659 CFLAGS="$ac_save_CFLAGS"
23660 LIBS="$ac_save_LIBS"
23661 fi
23662 fi
23663 if test "x$no_gtk" = x ; then
23664 echo "$as_me:$LINENO: result: yes" >&5
23665echo "${ECHO_T}yes" >&6
23666 wx_cv_lib_gtk=1.2.7
23667 else
23668 echo "$as_me:$LINENO: result: no" >&5
23669echo "${ECHO_T}no" >&6
23670 if test "$GTK_CONFIG" = "no" ; then
23671 echo "*** The gtk-config script installed by GTK could not be found"
23672 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23673 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23674 echo "*** full path to gtk-config."
23675 else
23676 if test -f conf.gtktest ; then
23677 :
23678 else
23679 echo "*** Could not run GTK test program, checking why..."
23680 CFLAGS="$CFLAGS $GTK_CFLAGS"
23681 LIBS="$LIBS $GTK_LIBS"
23682 cat >conftest.$ac_ext <<_ACEOF
23683/* confdefs.h. */
23684_ACEOF
23685cat confdefs.h >>conftest.$ac_ext
23686cat >>conftest.$ac_ext <<_ACEOF
23687/* end confdefs.h. */
23688
23689#include <gtk/gtk.h>
23690#include <stdio.h>
23691
23692int
23693main ()
23694{
23695 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23696 ;
23697 return 0;
23698}
23699_ACEOF
23700rm -f conftest.$ac_objext conftest$ac_exeext
23701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23702 (eval $ac_link) 2>conftest.er1
a848cd7e 23703 ac_status=$?
ac1cb8d3
VS
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
a848cd7e
SC
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } &&
89be85c2
VS
23709 { ac_try='test -z "$ac_c_werror_flag"
23710 || test ! -s conftest.err'
ac1cb8d3
VS
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; } &&
23716 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; }; then
23722 echo "*** The test program compiled, but did not run. This usually means"
23723 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23724 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23725 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23726 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23727 echo "*** is required on your system"
23728 echo "***"
23729 echo "*** If you have an old version installed, it is best to remove it, although"
23730 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23731 echo "***"
23732 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23733 echo "*** came with the system with the command"
23734 echo "***"
23735 echo "*** rpm --erase --nodeps gtk gtk-devel"
23736else
23737 echo "$as_me: failed program was:" >&5
23738sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 echo "*** The test program failed to compile or link. See the file config.log for the"
23741 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23742 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23743 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23744fi
ac1cb8d3
VS
23745rm -f conftest.err conftest.$ac_objext \
23746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23747 CFLAGS="$ac_save_CFLAGS"
23748 LIBS="$ac_save_LIBS"
23749 fi
23750 fi
23751 GTK_CFLAGS=""
23752 GTK_LIBS=""
23753 :
23754 fi
23755
23756
23757 rm -f conf.gtktest
23758
23759
23760 if test -z "$wx_cv_lib_gtk"; then
23761
23762# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23763if test "${with_gtk_prefix+set}" = set; then
23764 withval="$with_gtk_prefix"
23765 gtk_config_prefix="$withval"
23766else
23767 gtk_config_prefix=""
23768fi;
23769
23770# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23771if test "${with_gtk_exec_prefix+set}" = set; then
23772 withval="$with_gtk_exec_prefix"
23773 gtk_config_exec_prefix="$withval"
23774else
23775 gtk_config_exec_prefix=""
23776fi;
23777# Check whether --enable-gtktest or --disable-gtktest was given.
23778if test "${enable_gtktest+set}" = set; then
23779 enableval="$enable_gtktest"
23780
23781else
23782 enable_gtktest=yes
23783fi;
23784
23785 for module in . $GTK_MODULES
23786 do
23787 case "$module" in
23788 gthread)
23789 gtk_config_args="$gtk_config_args gthread"
23790 ;;
23791 esac
23792 done
23793
23794 if test x$gtk_config_exec_prefix != x ; then
23795 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23796 if test x${GTK_CONFIG+set} != xset ; then
23797 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23798 fi
23799 fi
23800 if test x$gtk_config_prefix != x ; then
23801 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23802 if test x${GTK_CONFIG+set} != xset ; then
23803 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23804 fi
23805 fi
23806
23807 # Extract the first word of "gtk-config", so it can be a program name with args.
23808set dummy gtk-config; ac_word=$2
23809echo "$as_me:$LINENO: checking for $ac_word" >&5
23810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23811if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813else
23814 case $GTK_CONFIG in
23815 [\\/]* | ?:[\\/]*)
23816 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23817 ;;
23818 *)
23819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23820for as_dir in $PATH
23821do
23822 IFS=$as_save_IFS
23823 test -z "$as_dir" && as_dir=.
23824 for ac_exec_ext in '' $ac_executable_extensions; do
23825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23826 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23828 break 2
23829 fi
23830done
23831done
23832
23833 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23834 ;;
23835esac
23836fi
23837GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23838
23839if test -n "$GTK_CONFIG"; then
23840 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23841echo "${ECHO_T}$GTK_CONFIG" >&6
23842else
23843 echo "$as_me:$LINENO: result: no" >&5
23844echo "${ECHO_T}no" >&6
23845fi
23846
23847 min_gtk_version=1.2.3
23848 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23849echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23850 no_gtk=""
23851 if test "$GTK_CONFIG" = "no" ; then
23852 no_gtk=yes
23853 else
23854 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23855 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23856 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23857 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23858 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23859 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23860 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23861 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23862 if test "x$enable_gtktest" = "xyes" ; then
23863 ac_save_CFLAGS="$CFLAGS"
23864 ac_save_LIBS="$LIBS"
23865 CFLAGS="$CFLAGS $GTK_CFLAGS"
23866 LIBS="$GTK_LIBS $LIBS"
23867 rm -f conf.gtktest
23868 if test "$cross_compiling" = yes; then
23869 echo $ac_n "cross compiling; assumed OK... $ac_c"
23870else
23871 cat >conftest.$ac_ext <<_ACEOF
23872/* confdefs.h. */
23873_ACEOF
23874cat confdefs.h >>conftest.$ac_ext
23875cat >>conftest.$ac_ext <<_ACEOF
23876/* end confdefs.h. */
23877
23878#include <gtk/gtk.h>
23879#include <stdio.h>
23880#include <stdlib.h>
23881
23882int
23883main ()
23884{
23885 int major, minor, micro;
23886 char *tmp_version;
23887
23888 system ("touch conf.gtktest");
23889
23890 /* HP/UX 9 (%@#!) writes to sscanf strings */
23891 tmp_version = g_strdup("$min_gtk_version");
23892 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23893 printf("%s, bad version string\n", "$min_gtk_version");
23894 exit(1);
23895 }
23896
23897 if ((gtk_major_version != $gtk_config_major_version) ||
23898 (gtk_minor_version != $gtk_config_minor_version) ||
23899 (gtk_micro_version != $gtk_config_micro_version))
23900 {
23901 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23902 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23903 gtk_major_version, gtk_minor_version, gtk_micro_version);
23904 printf ("*** was found! If gtk-config was correct, then it is best\n");
23905 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23906 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23907 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23908 printf("*** required on your system.\n");
23909 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23910 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23911 printf("*** before re-running configure\n");
23912 }
23913#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23914 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23915 (gtk_minor_version != GTK_MINOR_VERSION) ||
23916 (gtk_micro_version != GTK_MICRO_VERSION))
23917 {
23918 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23919 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23920 printf("*** library (version %d.%d.%d)\n",
23921 gtk_major_version, gtk_minor_version, gtk_micro_version);
23922 }
23923#endif /* defined (GTK_MAJOR_VERSION) ... */
23924 else
23925 {
23926 if ((gtk_major_version > major) ||
23927 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23928 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23929 {
23930 return 0;
23931 }
23932 else
23933 {
23934 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23935 gtk_major_version, gtk_minor_version, gtk_micro_version);
23936 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23937 major, minor, micro);
23938 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23939 printf("***\n");
23940 printf("*** If you have already installed a sufficiently new version, this error\n");
23941 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23942 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23943 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23944 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23945 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23946 printf("*** so that the correct libraries are found at run-time))\n");
23947 }
23948 }
23949 return 1;
23950}
23951
23952_ACEOF
23953rm -f conftest$ac_exeext
23954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23955 (eval $ac_link) 2>&5
23956 ac_status=$?
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); }; }; then
23964 :
23965else
23966 echo "$as_me: program exited with status $ac_status" >&5
23967echo "$as_me: failed program was:" >&5
23968sed 's/^/| /' conftest.$ac_ext >&5
23969
23970( exit $ac_status )
23971no_gtk=yes
23972fi
ac1cb8d3 23973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23974fi
23975 CFLAGS="$ac_save_CFLAGS"
23976 LIBS="$ac_save_LIBS"
23977 fi
23978 fi
23979 if test "x$no_gtk" = x ; then
23980 echo "$as_me:$LINENO: result: yes" >&5
23981echo "${ECHO_T}yes" >&6
23982 wx_cv_lib_gtk=1.2.3
23983 else
23984 echo "$as_me:$LINENO: result: no" >&5
23985echo "${ECHO_T}no" >&6
23986 if test "$GTK_CONFIG" = "no" ; then
23987 echo "*** The gtk-config script installed by GTK could not be found"
23988 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23989 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23990 echo "*** full path to gtk-config."
23991 else
23992 if test -f conf.gtktest ; then
23993 :
23994 else
23995 echo "*** Could not run GTK test program, checking why..."
23996 CFLAGS="$CFLAGS $GTK_CFLAGS"
23997 LIBS="$LIBS $GTK_LIBS"
23998 cat >conftest.$ac_ext <<_ACEOF
23999/* confdefs.h. */
24000_ACEOF
24001cat confdefs.h >>conftest.$ac_ext
24002cat >>conftest.$ac_ext <<_ACEOF
24003/* end confdefs.h. */
24004
24005#include <gtk/gtk.h>
24006#include <stdio.h>
24007
24008int
24009main ()
24010{
24011 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24012 ;
24013 return 0;
24014}
24015_ACEOF
24016rm -f conftest.$ac_objext conftest$ac_exeext
24017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24018 (eval $ac_link) 2>conftest.er1
a848cd7e 24019 ac_status=$?
ac1cb8d3
VS
24020 grep -v '^ *+' conftest.er1 >conftest.err
24021 rm -f conftest.er1
24022 cat conftest.err >&5
a848cd7e
SC
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } &&
89be85c2
VS
24025 { ac_try='test -z "$ac_c_werror_flag"
24026 || test ! -s conftest.err'
ac1cb8d3
VS
24027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24028 (eval $ac_try) 2>&5
24029 ac_status=$?
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); }; } &&
24032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034 (eval $ac_try) 2>&5
24035 ac_status=$?
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); }; }; then
24038 echo "*** The test program compiled, but did not run. This usually means"
24039 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24040 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24041 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24042 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24043 echo "*** is required on your system"
24044 echo "***"
24045 echo "*** If you have an old version installed, it is best to remove it, although"
24046 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24047 echo "***"
24048 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24049 echo "*** came with the system with the command"
24050 echo "***"
24051 echo "*** rpm --erase --nodeps gtk gtk-devel"
24052else
24053 echo "$as_me: failed program was:" >&5
24054sed 's/^/| /' conftest.$ac_ext >&5
24055
24056 echo "*** The test program failed to compile or link. See the file config.log for the"
24057 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24058 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24059 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24060fi
ac1cb8d3
VS
24061rm -f conftest.err conftest.$ac_objext \
24062 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24063 CFLAGS="$ac_save_CFLAGS"
24064 LIBS="$ac_save_LIBS"
24065 fi
24066 fi
24067 GTK_CFLAGS=""
24068 GTK_LIBS=""
24069 :
24070 fi
24071
24072
24073 rm -f conf.gtktest
24074
24075 fi
24076 fi
24077
24078 if test -z "$wx_cv_lib_gtk"; then
24079 wx_cv_lib_gtk=none
24080 else
24081 wx_cv_cflags_gtk=$GTK_CFLAGS
24082 wx_cv_libs_gtk=$GTK_LIBS
24083 fi
24084
24085
24086fi
24087
24088
24089 if test "$gtk_version_cached" = 1; then
24090 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
24091echo "${ECHO_T}$wx_cv_lib_gtk" >&6
24092 fi
24093
24094 case "$wx_cv_lib_gtk" in
24095 2.0) WXGTK20=1
24096 TOOLKIT_VERSION=2
24097 ;;
24098 1.2.7) WXGTK127=1
24099 WXGTK12=1
24100 ;;
24101 1.2.3) WXGTK12=1
24102 ;;
24103 *) { { echo "$as_me:$LINENO: error:
24104Please check that gtk-config is in path, the directory
24105where GTK+ libraries are installed (returned by
24106'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24107equivalent variable and GTK+ is version 1.2.3 or above.
24108 " >&5
24109echo "$as_me: error:
24110Please check that gtk-config is in path, the directory
24111where GTK+ libraries are installed (returned by
24112'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24113equivalent variable and GTK+ is version 1.2.3 or above.
24114 " >&2;}
24115 { (exit 1); exit 1; }; }
24116 ;;
24117 esac
24118
24119 if test "$WXGTK20" = 1; then
304205f1
VS
24120 save_CFLAGS="$CFLAGS"
24121 save_LIBS="$LIBS"
24122 CFLAGS="$CFLAGS $GTK_CFLAGS"
24123 LIBS="$LIBS $GTK_LIBS"
24124
9755e73b 24125
304205f1
VS
24126for ac_func in pango_font_family_is_monospace
24127do
24128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24129echo "$as_me:$LINENO: checking for $ac_func" >&5
24130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24131if eval "test \"\${$as_ac_var+set}\" = set"; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24133else
24134 cat >conftest.$ac_ext <<_ACEOF
24135/* confdefs.h. */
24136_ACEOF
24137cat confdefs.h >>conftest.$ac_ext
24138cat >>conftest.$ac_ext <<_ACEOF
24139/* end confdefs.h. */
24140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24142#define $ac_func innocuous_$ac_func
24143
24144/* System header to define __stub macros and hopefully few prototypes,
24145 which can conflict with char $ac_func (); below.
24146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24147 <limits.h> exists even on freestanding compilers. */
24148
24149#ifdef __STDC__
24150# include <limits.h>
24151#else
24152# include <assert.h>
24153#endif
24154
24155#undef $ac_func
24156
24157/* Override any gcc2 internal prototype to avoid an error. */
24158#ifdef __cplusplus
24159extern "C"
24160{
24161#endif
24162/* We use char because int might match the return type of a gcc2
24163 builtin and then its argument prototype would still apply. */
24164char $ac_func ();
24165/* The GNU C library defines this for functions which it implements
24166 to always fail with ENOSYS. Some functions are actually named
24167 something starting with __ and the normal name is an alias. */
24168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24169choke me
24170#else
24171char (*f) () = $ac_func;
24172#endif
24173#ifdef __cplusplus
24174}
24175#endif
24176
24177int
24178main ()
24179{
24180return f != $ac_func;
24181 ;
24182 return 0;
24183}
24184_ACEOF
24185rm -f conftest.$ac_objext conftest$ac_exeext
24186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24187 (eval $ac_link) 2>conftest.er1
24188 ac_status=$?
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } &&
89be85c2
VS
24194 { ac_try='test -z "$ac_c_werror_flag"
24195 || test ! -s conftest.err'
304205f1
VS
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24198 ac_status=$?
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; } &&
24201 { ac_try='test -s conftest$ac_exeext'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; }; then
24207 eval "$as_ac_var=yes"
24208else
24209 echo "$as_me: failed program was:" >&5
24210sed 's/^/| /' conftest.$ac_ext >&5
24211
24212eval "$as_ac_var=no"
24213fi
24214rm -f conftest.err conftest.$ac_objext \
24215 conftest$ac_exeext conftest.$ac_ext
24216fi
24217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24219if test `eval echo '${'$as_ac_var'}'` = yes; then
24220 cat >>confdefs.h <<_ACEOF
24221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24222_ACEOF
24223
24224fi
24225done
24226
9755e73b
VS
24227
24228 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24229echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24230 cat >conftest.$ac_ext <<_ACEOF
24231/* confdefs.h. */
24232_ACEOF
24233cat confdefs.h >>conftest.$ac_ext
24234cat >>conftest.$ac_ext <<_ACEOF
24235/* end confdefs.h. */
24236
24237 #include <gtk/gtk.h>
24238
24239int
24240main ()
24241{
24242
24243 #if !GTK_CHECK_VERSION(2,4,0)
24244 #error "Not GTK+ 2.4"
24245 #endif
24246
24247 ;
24248 return 0;
24249}
24250_ACEOF
24251rm -f conftest.$ac_objext
24252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24253 (eval $ac_compile) 2>conftest.er1
24254 ac_status=$?
24255 grep -v '^ *+' conftest.er1 >conftest.err
24256 rm -f conftest.er1
24257 cat conftest.err >&5
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); } &&
89be85c2
VS
24260 { ac_try='test -z "$ac_c_werror_flag"
24261 || test ! -s conftest.err'
9755e73b
VS
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; } &&
24267 { ac_try='test -s conftest.$ac_objext'
24268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; }; then
24273
24274 cat >>confdefs.h <<\_ACEOF
24275#define __WXGTK24__ 1
24276_ACEOF
24277
24278 echo "$as_me:$LINENO: result: yes" >&5
24279echo "${ECHO_T}yes" >&6
24280
24281else
24282 echo "$as_me: failed program was:" >&5
24283sed 's/^/| /' conftest.$ac_ext >&5
24284
24285
24286 echo "$as_me:$LINENO: result: no" >&5
24287echo "${ECHO_T}no" >&6
24288
24289fi
24290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24291
304205f1
VS
24292 CFLAGS="$save_CFLAGS"
24293 LIBS="$save_LIBS"
a848cd7e
SC
24294 else
24295 if test "$wxUSE_UNICODE" = "yes"; then
24296 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24297echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24298 wxUSE_UNICODE=no
24299 fi
24300 fi
24301
24302 if test "$USE_DARWIN" != 1; then
24303
24304for ac_func in poll
24305do
24306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24307echo "$as_me:$LINENO: checking for $ac_func" >&5
24308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24309if eval "test \"\${$as_ac_var+set}\" = set"; then
24310 echo $ECHO_N "(cached) $ECHO_C" >&6
24311else
24312 cat >conftest.$ac_ext <<_ACEOF
24313/* confdefs.h. */
24314_ACEOF
24315cat confdefs.h >>conftest.$ac_ext
24316cat >>conftest.$ac_ext <<_ACEOF
24317/* end confdefs.h. */
ac1cb8d3
VS
24318/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24320#define $ac_func innocuous_$ac_func
24321
a848cd7e
SC
24322/* System header to define __stub macros and hopefully few prototypes,
24323 which can conflict with char $ac_func (); below.
24324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24325 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24326
a848cd7e
SC
24327#ifdef __STDC__
24328# include <limits.h>
24329#else
24330# include <assert.h>
24331#endif
ac1cb8d3
VS
24332
24333#undef $ac_func
24334
a848cd7e
SC
24335/* Override any gcc2 internal prototype to avoid an error. */
24336#ifdef __cplusplus
24337extern "C"
24338{
24339#endif
24340/* We use char because int might match the return type of a gcc2
24341 builtin and then its argument prototype would still apply. */
24342char $ac_func ();
24343/* The GNU C library defines this for functions which it implements
24344 to always fail with ENOSYS. Some functions are actually named
24345 something starting with __ and the normal name is an alias. */
24346#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24347choke me
24348#else
24349char (*f) () = $ac_func;
24350#endif
24351#ifdef __cplusplus
24352}
24353#endif
24354
24355int
24356main ()
24357{
24358return f != $ac_func;
24359 ;
24360 return 0;
24361}
24362_ACEOF
24363rm -f conftest.$ac_objext conftest$ac_exeext
24364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24365 (eval $ac_link) 2>conftest.er1
a848cd7e 24366 ac_status=$?
ac1cb8d3
VS
24367 grep -v '^ *+' conftest.er1 >conftest.err
24368 rm -f conftest.er1
24369 cat conftest.err >&5
a848cd7e
SC
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } &&
89be85c2
VS
24372 { ac_try='test -z "$ac_c_werror_flag"
24373 || test ! -s conftest.err'
ac1cb8d3
VS
24374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375 (eval $ac_try) 2>&5
24376 ac_status=$?
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); }; } &&
24379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381 (eval $ac_try) 2>&5
24382 ac_status=$?
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; }; then
24385 eval "$as_ac_var=yes"
24386else
24387 echo "$as_me: failed program was:" >&5
24388sed 's/^/| /' conftest.$ac_ext >&5
24389
24390eval "$as_ac_var=no"
24391fi
ac1cb8d3
VS
24392rm -f conftest.err conftest.$ac_objext \
24393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24394fi
24395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24397if test `eval echo '${'$as_ac_var'}'` = yes; then
24398 cat >>confdefs.h <<_ACEOF
24399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24400_ACEOF
24401
24402fi
24403done
24404
24405 fi
24406
24407 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24408 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24409
24410 AFMINSTALL=afminstall
24411 TOOLKIT=GTK
24412 GUIDIST=GTK_DIST
24413
24414 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24415echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24416if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24418else
24419 ac_check_lib_save_LIBS=$LIBS
24420LIBS="-lgdk $LIBS"
24421cat >conftest.$ac_ext <<_ACEOF
24422/* confdefs.h. */
24423_ACEOF
24424cat confdefs.h >>conftest.$ac_ext
24425cat >>conftest.$ac_ext <<_ACEOF
24426/* end confdefs.h. */
24427
24428/* Override any gcc2 internal prototype to avoid an error. */
24429#ifdef __cplusplus
24430extern "C"
24431#endif
24432/* We use char because int might match the return type of a gcc2
24433 builtin and then its argument prototype would still apply. */
24434char gdk_im_open ();
24435int
24436main ()
24437{
24438gdk_im_open ();
24439 ;
24440 return 0;
24441}
24442_ACEOF
24443rm -f conftest.$ac_objext conftest$ac_exeext
24444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24445 (eval $ac_link) 2>conftest.er1
a848cd7e 24446 ac_status=$?
ac1cb8d3
VS
24447 grep -v '^ *+' conftest.er1 >conftest.err
24448 rm -f conftest.er1
24449 cat conftest.err >&5
a848cd7e
SC
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } &&
89be85c2
VS
24452 { ac_try='test -z "$ac_c_werror_flag"
24453 || test ! -s conftest.err'
ac1cb8d3
VS
24454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24455 (eval $ac_try) 2>&5
24456 ac_status=$?
24457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458 (exit $ac_status); }; } &&
24459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24461 (eval $ac_try) 2>&5
24462 ac_status=$?
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); }; }; then
24465 ac_cv_lib_gdk_gdk_im_open=yes
24466else
24467 echo "$as_me: failed program was:" >&5
24468sed 's/^/| /' conftest.$ac_ext >&5
24469
24470ac_cv_lib_gdk_gdk_im_open=no
24471fi
ac1cb8d3
VS
24472rm -f conftest.err conftest.$ac_objext \
24473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24474LIBS=$ac_check_lib_save_LIBS
24475fi
24476echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24477echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24478if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24479 cat >>confdefs.h <<\_ACEOF
24480#define HAVE_XIM 1
24481_ACEOF
24482
24483fi
24484
24485
24486
24487 if test "$wxUSE_GPE" = "yes"; then
24488 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24489echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24490
24491ac_find_libraries=
24492for ac_dir in $SEARCH_LIB /usr/lib;
24493 do
24494 for ac_extension in a so sl dylib; do
24495 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24496 ac_find_libraries=$ac_dir
24497 break 2
24498 fi
24499 done
24500 done
24501
24502 if test "$ac_find_libraries" != "" ; then
24503
24504 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24505 result=$?
24506 if test $result = 0; then
24507 ac_path_to_link=""
24508 else
24509 ac_path_to_link=" -L$ac_find_libraries"
24510 fi
24511
24512 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24513 WXGPE=1
24514 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24515echo "${ECHO_T}found at $ac_find_libraries" >&6
24516 else
24517 echo "$as_me:$LINENO: result: not found" >&5
24518echo "${ECHO_T}not found" >&6
24519 fi
24520
24521 fi
24522 fi
24523
24524 if test "$wxUSE_MGL" = 1; then
24525 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24526echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24527 if test "x$MGL_ROOT" = x ; then
24528 echo "$as_me:$LINENO: result: not found" >&5
24529echo "${ECHO_T}not found" >&6
24530 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24531echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24532 { (exit 1); exit 1; }; }
24533 else
24534 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24535echo "${ECHO_T}$MGL_ROOT" >&6
24536 fi
24537
24538 echo "$as_me:$LINENO: checking for libmgl location" >&5
24539echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24540 case "${host}" in
24541 *-*-linux* )
24542 if test "x$wxUSE_SHARED" = xyes ; then
24543 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24544 else
24545 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24546 fi
24547 ;;
24548 *-pc-msdosdjgpp )
24549 mgl_os_candidates="dos32/dj2"
24550 ;;
24551 *)
24552 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24553echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24554 { (exit 1); exit 1; }; }
24555 esac
24556
24557 mgl_lib_type=""
24558 mgl_os=""
24559
24560 for mgl_os_i in $mgl_os_candidates ; do
24561 if test "x$mgl_os" = x ; then
24562 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24563 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24564 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24565 mgl_lib_type=debug
24566 mgl_os=$mgl_os_i
24567 fi
24568 fi
24569 if test "x$mgl_lib_type" = x ; then
24570 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24571 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24572 mgl_lib_type=release
24573 mgl_os=$mgl_os_i
24574 fi
24575 fi
24576 fi
24577 done
24578
24579 if test "x$mgl_os" = x ; then
24580 echo "$as_me:$LINENO: result: not found" >&5
24581echo "${ECHO_T}not found" >&6
24582 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24583echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24584 { (exit 1); exit 1; }; }
24585 fi
24586 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24587echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24588
24589 wxUSE_UNIVERSAL="yes"
24590
24591 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24592 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24593
24594 AFMINSTALL=afminstall
24595 TOOLKIT=MGL
24596 GUIDIST=MGL_DIST
24597 fi
24598
24599 if test "$wxUSE_MICROWIN" = 1; then
24600 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24601echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24602 if test "x$MICROWINDOWS" = x ; then
24603 echo "$as_me:$LINENO: result: not found" >&5
24604echo "${ECHO_T}not found" >&6
24605 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24606echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24607 { (exit 1); exit 1; }; }
24608 else
24609 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24610echo "${ECHO_T}$MICROWINDOWS" >&6
24611 fi
24612
24613 if test -f $MICROWINDOWS/lib/libmwin.a; then
24614 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24615echo "${ECHO_T}MicroWindows' libraries found." >&6
24616 else
24617 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24618echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24619 { (exit 1); exit 1; }; }
24620 fi
24621
24622 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24623 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24624
24625 wxUSE_UNIVERSAL="yes"
24626
24627 AFMINSTALL=afminstall
24628 TOOLKIT=MICROWIN
24629 GUIDIST=MICROWIN_DIST
24630
24631 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24632 fi
24633
74b84332 24634 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
89be85c2 24635 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24636echo $ECHO_N "checking for X... $ECHO_C" >&6
24637
24638
24639# Check whether --with-x or --without-x was given.
24640if test "${with_x+set}" = set; then
24641 withval="$with_x"
24642
24643fi;
24644# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24645if test "x$with_x" = xno; then
24646 # The user explicitly disabled X.
24647 have_x=disabled
24648else
24649 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24650 # Both variables are already set.
24651 have_x=yes
24652 else
24653 if test "${ac_cv_have_x+set}" = set; then
24654 echo $ECHO_N "(cached) $ECHO_C" >&6
24655else
24656 # One or both of the vars are not set, and there is no cached value.
24657ac_x_includes=no ac_x_libraries=no
24658rm -fr conftest.dir
24659if mkdir conftest.dir; then
24660 cd conftest.dir
24661 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24662 cat >Imakefile <<'_ACEOF'
24663acfindx:
24664 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24665_ACEOF
24666 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24668 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24669 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24670 for ac_extension in a so sl; do
24671 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24672 test -f $ac_im_libdir/libX11.$ac_extension; then
24673 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24674 fi
24675 done
24676 # Screen out bogus values from the imake configuration. They are
24677 # bogus both because they are the default anyway, and because
24678 # using them would break gcc on systems where it needs fixed includes.
24679 case $ac_im_incroot in
24680 /usr/include) ;;
24681 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24682 esac
24683 case $ac_im_usrlibdir in
24684 /usr/lib | /lib) ;;
24685 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24686 esac
24687 fi
24688 cd ..
24689 rm -fr conftest.dir
24690fi
24691
24692# Standard set of common directories for X headers.
24693# Check X11 before X11Rn because it is often a symlink to the current release.
24694ac_x_header_dirs='
24695/usr/X11/include
24696/usr/X11R6/include
24697/usr/X11R5/include
24698/usr/X11R4/include
24699
24700/usr/include/X11
24701/usr/include/X11R6
24702/usr/include/X11R5
24703/usr/include/X11R4
24704
24705/usr/local/X11/include
24706/usr/local/X11R6/include
24707/usr/local/X11R5/include
24708/usr/local/X11R4/include
24709
24710/usr/local/include/X11
24711/usr/local/include/X11R6
24712/usr/local/include/X11R5
24713/usr/local/include/X11R4
24714
24715/usr/X386/include
24716/usr/x386/include
24717/usr/XFree86/include/X11
24718
24719/usr/include
24720/usr/local/include
24721/usr/unsupported/include
24722/usr/athena/include
24723/usr/local/x11r5/include
24724/usr/lpp/Xamples/include
24725
24726/usr/openwin/include
24727/usr/openwin/share/include'
24728
24729if test "$ac_x_includes" = no; then
89be85c2 24730 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24731 # First, try using that file with no special directory specified.
24732 cat >conftest.$ac_ext <<_ACEOF
24733/* confdefs.h. */
24734_ACEOF
24735cat confdefs.h >>conftest.$ac_ext
24736cat >>conftest.$ac_ext <<_ACEOF
24737/* end confdefs.h. */
24738#include <X11/Intrinsic.h>
24739_ACEOF
24740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24742 ac_status=$?
24743 grep -v '^ *+' conftest.er1 >conftest.err
24744 rm -f conftest.er1
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } >/dev/null; then
24748 if test -s conftest.err; then
24749 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24751 else
24752 ac_cpp_err=
24753 fi
24754else
24755 ac_cpp_err=yes
24756fi
24757if test -z "$ac_cpp_err"; then
24758 # We can compile using X headers with no special include directory.
24759ac_x_includes=
24760else
24761 echo "$as_me: failed program was:" >&5
24762sed 's/^/| /' conftest.$ac_ext >&5
24763
24764 for ac_dir in $ac_x_header_dirs; do
24765 if test -r "$ac_dir/X11/Intrinsic.h"; then
24766 ac_x_includes=$ac_dir
24767 break
24768 fi
24769done
24770fi
24771rm -f conftest.err conftest.$ac_ext
24772fi # $ac_x_includes = no
24773
24774if test "$ac_x_libraries" = no; then
24775 # Check for the libraries.
24776 # See if we find them without any special options.
24777 # Don't add to $LIBS permanently.
24778 ac_save_LIBS=$LIBS
24779 LIBS="-lXt $LIBS"
24780 cat >conftest.$ac_ext <<_ACEOF
24781/* confdefs.h. */
24782_ACEOF
24783cat confdefs.h >>conftest.$ac_ext
24784cat >>conftest.$ac_ext <<_ACEOF
24785/* end confdefs.h. */
24786#include <X11/Intrinsic.h>
24787int
24788main ()
24789{
24790XtMalloc (0)
24791 ;
24792 return 0;
24793}
24794_ACEOF
24795rm -f conftest.$ac_objext conftest$ac_exeext
24796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24797 (eval $ac_link) 2>conftest.er1
a848cd7e 24798 ac_status=$?
ac1cb8d3
VS
24799 grep -v '^ *+' conftest.er1 >conftest.err
24800 rm -f conftest.er1
24801 cat conftest.err >&5
a848cd7e
SC
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); } &&
89be85c2
VS
24804 { ac_try='test -z "$ac_c_werror_flag"
24805 || test ! -s conftest.err'
ac1cb8d3
VS
24806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24807 (eval $ac_try) 2>&5
24808 ac_status=$?
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); }; } &&
24811 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813 (eval $ac_try) 2>&5
24814 ac_status=$?
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); }; }; then
24817 LIBS=$ac_save_LIBS
24818# We can link X programs with no special library path.
24819ac_x_libraries=
24820else
24821 echo "$as_me: failed program was:" >&5
24822sed 's/^/| /' conftest.$ac_ext >&5
24823
24824LIBS=$ac_save_LIBS
24825for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24826do
24827 # Don't even attempt the hair of trying to link an X program!
24828 for ac_extension in a so sl; do
24829 if test -r $ac_dir/libXt.$ac_extension; then
24830 ac_x_libraries=$ac_dir
24831 break 2
24832 fi
24833 done
24834done
24835fi
ac1cb8d3
VS
24836rm -f conftest.err conftest.$ac_objext \
24837 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24838fi # $ac_x_libraries = no
24839
24840if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24841 # Didn't find X anywhere. Cache the known absence of X.
24842 ac_cv_have_x="have_x=no"
24843else
24844 # Record where we found X for the cache.
24845 ac_cv_have_x="have_x=yes \
ac1cb8d3 24846 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24847fi
24848fi
24849
24850 fi
24851 eval "$ac_cv_have_x"
24852fi # $with_x != no
24853
24854if test "$have_x" != yes; then
24855 echo "$as_me:$LINENO: result: $have_x" >&5
24856echo "${ECHO_T}$have_x" >&6
24857 no_x=yes
24858else
24859 # If each of the values was on the command line, it overrides each guess.
24860 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24861 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24862 # Update the cache value to reflect the command line values.
24863 ac_cv_have_x="have_x=yes \
24864 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
89be85c2
VS
24865 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24866echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24867fi
24868
24869if test "$no_x" = yes; then
24870 # Not all programs may use this symbol, but it does not hurt to define it.
24871
24872cat >>confdefs.h <<\_ACEOF
24873#define X_DISPLAY_MISSING 1
24874_ACEOF
24875
24876 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24877else
24878 if test -n "$x_includes"; then
24879 X_CFLAGS="$X_CFLAGS -I$x_includes"
24880 fi
24881
24882 # It would also be nice to do this for all -L options, not just this one.
24883 if test -n "$x_libraries"; then
24884 X_LIBS="$X_LIBS -L$x_libraries"
24885 # For Solaris; some versions of Sun CC require a space after -R and
24886 # others require no space. Words are not sufficient . . . .
24887 case `(uname -sr) 2>/dev/null` in
24888 "SunOS 5"*)
24889 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24890echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24891 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24892 cat >conftest.$ac_ext <<_ACEOF
24893/* confdefs.h. */
24894_ACEOF
24895cat confdefs.h >>conftest.$ac_ext
24896cat >>conftest.$ac_ext <<_ACEOF
24897/* end confdefs.h. */
24898
24899int
24900main ()
24901{
24902
24903 ;
24904 return 0;
24905}
24906_ACEOF
24907rm -f conftest.$ac_objext conftest$ac_exeext
24908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24909 (eval $ac_link) 2>conftest.er1
a848cd7e 24910 ac_status=$?
ac1cb8d3
VS
24911 grep -v '^ *+' conftest.er1 >conftest.err
24912 rm -f conftest.er1
24913 cat conftest.err >&5
a848cd7e
SC
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } &&
89be85c2
VS
24916 { ac_try='test -z "$ac_c_werror_flag"
24917 || test ! -s conftest.err'
ac1cb8d3
VS
24918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); }; } &&
24923 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925 (eval $ac_try) 2>&5
24926 ac_status=$?
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; }; then
24929 ac_R_nospace=yes
24930else
24931 echo "$as_me: failed program was:" >&5
24932sed 's/^/| /' conftest.$ac_ext >&5
24933
24934ac_R_nospace=no
24935fi
ac1cb8d3
VS
24936rm -f conftest.err conftest.$ac_objext \
24937 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24938 if test $ac_R_nospace = yes; then
24939 echo "$as_me:$LINENO: result: no" >&5
24940echo "${ECHO_T}no" >&6
24941 X_LIBS="$X_LIBS -R$x_libraries"
24942 else
24943 LIBS="$ac_xsave_LIBS -R $x_libraries"
24944 cat >conftest.$ac_ext <<_ACEOF
24945/* confdefs.h. */
24946_ACEOF
24947cat confdefs.h >>conftest.$ac_ext
24948cat >>conftest.$ac_ext <<_ACEOF
24949/* end confdefs.h. */
24950
24951int
24952main ()
24953{
24954
24955 ;
24956 return 0;
24957}
24958_ACEOF
24959rm -f conftest.$ac_objext conftest$ac_exeext
24960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24961 (eval $ac_link) 2>conftest.er1
a848cd7e 24962 ac_status=$?
ac1cb8d3
VS
24963 grep -v '^ *+' conftest.er1 >conftest.err
24964 rm -f conftest.er1
24965 cat conftest.err >&5
a848cd7e
SC
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); } &&
89be85c2
VS
24968 { ac_try='test -z "$ac_c_werror_flag"
24969 || test ! -s conftest.err'
ac1cb8d3
VS
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24972 ac_status=$?
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; } &&
24975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; }; then
24981 ac_R_space=yes
24982else
24983 echo "$as_me: failed program was:" >&5
24984sed 's/^/| /' conftest.$ac_ext >&5
24985
24986ac_R_space=no
24987fi
ac1cb8d3
VS
24988rm -f conftest.err conftest.$ac_objext \
24989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24990 if test $ac_R_space = yes; then
24991 echo "$as_me:$LINENO: result: yes" >&5
24992echo "${ECHO_T}yes" >&6
24993 X_LIBS="$X_LIBS -R $x_libraries"
24994 else
24995 echo "$as_me:$LINENO: result: neither works" >&5
24996echo "${ECHO_T}neither works" >&6
24997 fi
24998 fi
24999 LIBS=$ac_xsave_LIBS
25000 esac
25001 fi
25002
25003 # Check for system-dependent libraries X programs must link with.
25004 # Do this before checking for the system-independent R6 libraries
25005 # (-lICE), since we may need -lsocket or whatever for X linking.
25006
25007 if test "$ISC" = yes; then
25008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25009 else
25010 # Martyn Johnson says this is needed for Ultrix, if the X
25011 # libraries were built with DECnet support. And Karl Berry says
25012 # the Alpha needs dnet_stub (dnet does not exist).
25013 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25014 cat >conftest.$ac_ext <<_ACEOF
25015/* confdefs.h. */
25016_ACEOF
25017cat confdefs.h >>conftest.$ac_ext
25018cat >>conftest.$ac_ext <<_ACEOF
25019/* end confdefs.h. */
25020
25021/* Override any gcc2 internal prototype to avoid an error. */
25022#ifdef __cplusplus
25023extern "C"
25024#endif
25025/* We use char because int might match the return type of a gcc2
25026 builtin and then its argument prototype would still apply. */
25027char XOpenDisplay ();
25028int
25029main ()
25030{
25031XOpenDisplay ();
25032 ;
25033 return 0;
25034}
25035_ACEOF
25036rm -f conftest.$ac_objext conftest$ac_exeext
25037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25038 (eval $ac_link) 2>conftest.er1
a848cd7e 25039 ac_status=$?
ac1cb8d3
VS
25040 grep -v '^ *+' conftest.er1 >conftest.err
25041 rm -f conftest.er1
25042 cat conftest.err >&5
a848cd7e
SC
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); } &&
89be85c2
VS
25045 { ac_try='test -z "$ac_c_werror_flag"
25046 || test ! -s conftest.err'
ac1cb8d3
VS
25047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048 (eval $ac_try) 2>&5
25049 ac_status=$?
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); }; } &&
25052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054 (eval $ac_try) 2>&5
25055 ac_status=$?
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); }; }; then
25058 :
25059else
25060 echo "$as_me: failed program was:" >&5
25061sed 's/^/| /' conftest.$ac_ext >&5
25062
25063echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25064echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25065if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25066 echo $ECHO_N "(cached) $ECHO_C" >&6
25067else
25068 ac_check_lib_save_LIBS=$LIBS
25069LIBS="-ldnet $LIBS"
25070cat >conftest.$ac_ext <<_ACEOF
25071/* confdefs.h. */
25072_ACEOF
25073cat confdefs.h >>conftest.$ac_ext
25074cat >>conftest.$ac_ext <<_ACEOF
25075/* end confdefs.h. */
25076
25077/* Override any gcc2 internal prototype to avoid an error. */
25078#ifdef __cplusplus
25079extern "C"
25080#endif
25081/* We use char because int might match the return type of a gcc2
25082 builtin and then its argument prototype would still apply. */
25083char dnet_ntoa ();
25084int
25085main ()
25086{
25087dnet_ntoa ();
25088 ;
25089 return 0;
25090}
25091_ACEOF
25092rm -f conftest.$ac_objext conftest$ac_exeext
25093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25094 (eval $ac_link) 2>conftest.er1
a848cd7e 25095 ac_status=$?
ac1cb8d3
VS
25096 grep -v '^ *+' conftest.er1 >conftest.err
25097 rm -f conftest.er1
25098 cat conftest.err >&5
a848cd7e
SC
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } &&
89be85c2
VS
25101 { ac_try='test -z "$ac_c_werror_flag"
25102 || test ! -s conftest.err'
ac1cb8d3
VS
25103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104 (eval $ac_try) 2>&5
25105 ac_status=$?
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; } &&
25108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110 (eval $ac_try) 2>&5
25111 ac_status=$?
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); }; }; then
25114 ac_cv_lib_dnet_dnet_ntoa=yes
25115else
25116 echo "$as_me: failed program was:" >&5
25117sed 's/^/| /' conftest.$ac_ext >&5
25118
25119ac_cv_lib_dnet_dnet_ntoa=no
25120fi
ac1cb8d3
VS
25121rm -f conftest.err conftest.$ac_objext \
25122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25123LIBS=$ac_check_lib_save_LIBS
25124fi
25125echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25126echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25127if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25128 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25129fi
25130
25131 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25132 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25133echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25134if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25135 echo $ECHO_N "(cached) $ECHO_C" >&6
25136else
25137 ac_check_lib_save_LIBS=$LIBS
25138LIBS="-ldnet_stub $LIBS"
25139cat >conftest.$ac_ext <<_ACEOF
25140/* confdefs.h. */
25141_ACEOF
25142cat confdefs.h >>conftest.$ac_ext
25143cat >>conftest.$ac_ext <<_ACEOF
25144/* end confdefs.h. */
25145
25146/* Override any gcc2 internal prototype to avoid an error. */
25147#ifdef __cplusplus
25148extern "C"
25149#endif
25150/* We use char because int might match the return type of a gcc2
25151 builtin and then its argument prototype would still apply. */
25152char dnet_ntoa ();
25153int
25154main ()
25155{
25156dnet_ntoa ();
25157 ;
25158 return 0;
25159}
25160_ACEOF
25161rm -f conftest.$ac_objext conftest$ac_exeext
25162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25163 (eval $ac_link) 2>conftest.er1
a848cd7e 25164 ac_status=$?
ac1cb8d3
VS
25165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
a848cd7e
SC
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
89be85c2
VS
25170 { ac_try='test -z "$ac_c_werror_flag"
25171 || test ! -s conftest.err'
ac1cb8d3
VS
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25174 ac_status=$?
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; } &&
25177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; }; then
25183 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25184else
25185 echo "$as_me: failed program was:" >&5
25186sed 's/^/| /' conftest.$ac_ext >&5
25187
25188ac_cv_lib_dnet_stub_dnet_ntoa=no
25189fi
ac1cb8d3
VS
25190rm -f conftest.err conftest.$ac_objext \
25191 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25192LIBS=$ac_check_lib_save_LIBS
25193fi
25194echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25195echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25196if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25197 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25198fi
25199
25200 fi
25201fi
ac1cb8d3
VS
25202rm -f conftest.err conftest.$ac_objext \
25203 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25204 LIBS="$ac_xsave_LIBS"
25205
25206 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25207 # to get the SysV transport functions.
25208 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25209 # needs -lnsl.
25210 # The nsl library prevents programs from opening the X display
25211 # on Irix 5.2, according to T.E. Dickey.
25212 # The functions gethostbyname, getservbyname, and inet_addr are
25213 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25214 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25215echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25216if test "${ac_cv_func_gethostbyname+set}" = set; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
25218else
25219 cat >conftest.$ac_ext <<_ACEOF
25220/* confdefs.h. */
25221_ACEOF
25222cat confdefs.h >>conftest.$ac_ext
25223cat >>conftest.$ac_ext <<_ACEOF
25224/* end confdefs.h. */
ac1cb8d3
VS
25225/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25227#define gethostbyname innocuous_gethostbyname
25228
a848cd7e
SC
25229/* System header to define __stub macros and hopefully few prototypes,
25230 which can conflict with char gethostbyname (); below.
25231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25233
a848cd7e
SC
25234#ifdef __STDC__
25235# include <limits.h>
25236#else
25237# include <assert.h>
25238#endif
ac1cb8d3
VS
25239
25240#undef gethostbyname
25241
a848cd7e
SC
25242/* Override any gcc2 internal prototype to avoid an error. */
25243#ifdef __cplusplus
25244extern "C"
25245{
25246#endif
25247/* We use char because int might match the return type of a gcc2
25248 builtin and then its argument prototype would still apply. */
25249char gethostbyname ();
25250/* The GNU C library defines this for functions which it implements
25251 to always fail with ENOSYS. Some functions are actually named
25252 something starting with __ and the normal name is an alias. */
25253#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25254choke me
25255#else
25256char (*f) () = gethostbyname;
25257#endif
25258#ifdef __cplusplus
25259}
25260#endif
25261
25262int
25263main ()
25264{
25265return f != gethostbyname;
25266 ;
25267 return 0;
25268}
25269_ACEOF
25270rm -f conftest.$ac_objext conftest$ac_exeext
25271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25272 (eval $ac_link) 2>conftest.er1
a848cd7e 25273 ac_status=$?
ac1cb8d3
VS
25274 grep -v '^ *+' conftest.er1 >conftest.err
25275 rm -f conftest.er1
25276 cat conftest.err >&5
a848cd7e
SC
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } &&
89be85c2
VS
25279 { ac_try='test -z "$ac_c_werror_flag"
25280 || test ! -s conftest.err'
ac1cb8d3
VS
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; } &&
25286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25289 ac_status=$?
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; }; then
25292 ac_cv_func_gethostbyname=yes
25293else
25294 echo "$as_me: failed program was:" >&5
25295sed 's/^/| /' conftest.$ac_ext >&5
25296
25297ac_cv_func_gethostbyname=no
25298fi
ac1cb8d3
VS
25299rm -f conftest.err conftest.$ac_objext \
25300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25301fi
25302echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25303echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25304
25305 if test $ac_cv_func_gethostbyname = no; then
25306 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25307echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25308if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25309 echo $ECHO_N "(cached) $ECHO_C" >&6
25310else
25311 ac_check_lib_save_LIBS=$LIBS
25312LIBS="-lnsl $LIBS"
25313cat >conftest.$ac_ext <<_ACEOF
25314/* confdefs.h. */
25315_ACEOF
25316cat confdefs.h >>conftest.$ac_ext
25317cat >>conftest.$ac_ext <<_ACEOF
25318/* end confdefs.h. */
25319
25320/* Override any gcc2 internal prototype to avoid an error. */
25321#ifdef __cplusplus
25322extern "C"
25323#endif
25324/* We use char because int might match the return type of a gcc2
25325 builtin and then its argument prototype would still apply. */
25326char gethostbyname ();
25327int
25328main ()
25329{
25330gethostbyname ();
25331 ;
25332 return 0;
25333}
25334_ACEOF
25335rm -f conftest.$ac_objext conftest$ac_exeext
25336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25337 (eval $ac_link) 2>conftest.er1
25338 ac_status=$?
25339 grep -v '^ *+' conftest.er1 >conftest.err
25340 rm -f conftest.er1
25341 cat conftest.err >&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } &&
89be85c2
VS
25344 { ac_try='test -z "$ac_c_werror_flag"
25345 || test ! -s conftest.err'
ac1cb8d3
VS
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; } &&
25351 { ac_try='test -s conftest$ac_exeext'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; }; then
25357 ac_cv_lib_nsl_gethostbyname=yes
25358else
25359 echo "$as_me: failed program was:" >&5
25360sed 's/^/| /' conftest.$ac_ext >&5
25361
25362ac_cv_lib_nsl_gethostbyname=no
25363fi
25364rm -f conftest.err conftest.$ac_objext \
25365 conftest$ac_exeext conftest.$ac_ext
25366LIBS=$ac_check_lib_save_LIBS
25367fi
25368echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25369echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25370if test $ac_cv_lib_nsl_gethostbyname = yes; then
25371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25372fi
25373
25374 if test $ac_cv_lib_nsl_gethostbyname = no; then
25375 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25376echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25377if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25378 echo $ECHO_N "(cached) $ECHO_C" >&6
25379else
25380 ac_check_lib_save_LIBS=$LIBS
25381LIBS="-lbsd $LIBS"
25382cat >conftest.$ac_ext <<_ACEOF
25383/* confdefs.h. */
25384_ACEOF
25385cat confdefs.h >>conftest.$ac_ext
25386cat >>conftest.$ac_ext <<_ACEOF
25387/* end confdefs.h. */
25388
25389/* Override any gcc2 internal prototype to avoid an error. */
25390#ifdef __cplusplus
25391extern "C"
25392#endif
25393/* We use char because int might match the return type of a gcc2
25394 builtin and then its argument prototype would still apply. */
25395char gethostbyname ();
25396int
25397main ()
25398{
25399gethostbyname ();
25400 ;
25401 return 0;
25402}
25403_ACEOF
25404rm -f conftest.$ac_objext conftest$ac_exeext
25405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25406 (eval $ac_link) 2>conftest.er1
a848cd7e 25407 ac_status=$?
ac1cb8d3
VS
25408 grep -v '^ *+' conftest.er1 >conftest.err
25409 rm -f conftest.er1
25410 cat conftest.err >&5
a848cd7e
SC
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } &&
89be85c2
VS
25413 { ac_try='test -z "$ac_c_werror_flag"
25414 || test ! -s conftest.err'
a848cd7e
SC
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25417 ac_status=$?
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25419 (exit $ac_status); }; } &&
25420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422 (eval $ac_try) 2>&5
25423 ac_status=$?
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; }; then
25426 ac_cv_lib_bsd_gethostbyname=yes
25427else
25428 echo "$as_me: failed program was:" >&5
25429sed 's/^/| /' conftest.$ac_ext >&5
25430
25431ac_cv_lib_bsd_gethostbyname=no
25432fi
ac1cb8d3
VS
25433rm -f conftest.err conftest.$ac_objext \
25434 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25435LIBS=$ac_check_lib_save_LIBS
25436fi
25437echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25438echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25439if test $ac_cv_lib_bsd_gethostbyname = yes; then
25440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25441fi
25442
25443 fi
25444 fi
25445
25446 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25447 # socket/setsockopt and other routines are undefined under SCO ODT
25448 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25449 # on later versions), says Simon Leinen: it contains gethostby*
25450 # variants that don't use the name server (or something). -lsocket
25451 # must be given before -lnsl if both are needed. We assume that
25452 # if connect needs -lnsl, so does gethostbyname.
25453 echo "$as_me:$LINENO: checking for connect" >&5
25454echo $ECHO_N "checking for connect... $ECHO_C" >&6
25455if test "${ac_cv_func_connect+set}" = set; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
25457else
25458 cat >conftest.$ac_ext <<_ACEOF
25459/* confdefs.h. */
25460_ACEOF
25461cat confdefs.h >>conftest.$ac_ext
25462cat >>conftest.$ac_ext <<_ACEOF
25463/* end confdefs.h. */
ac1cb8d3
VS
25464/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25466#define connect innocuous_connect
25467
a848cd7e
SC
25468/* System header to define __stub macros and hopefully few prototypes,
25469 which can conflict with char connect (); below.
25470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25471 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25472
a848cd7e
SC
25473#ifdef __STDC__
25474# include <limits.h>
25475#else
25476# include <assert.h>
25477#endif
ac1cb8d3
VS
25478
25479#undef connect
25480
a848cd7e
SC
25481/* Override any gcc2 internal prototype to avoid an error. */
25482#ifdef __cplusplus
25483extern "C"
25484{
25485#endif
25486/* We use char because int might match the return type of a gcc2
25487 builtin and then its argument prototype would still apply. */
25488char connect ();
25489/* The GNU C library defines this for functions which it implements
25490 to always fail with ENOSYS. Some functions are actually named
25491 something starting with __ and the normal name is an alias. */
25492#if defined (__stub_connect) || defined (__stub___connect)
25493choke me
25494#else
25495char (*f) () = connect;
25496#endif
25497#ifdef __cplusplus
25498}
25499#endif
25500
25501int
25502main ()
25503{
25504return f != connect;
25505 ;
25506 return 0;
25507}
25508_ACEOF
25509rm -f conftest.$ac_objext conftest$ac_exeext
25510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25511 (eval $ac_link) 2>conftest.er1
a848cd7e 25512 ac_status=$?
ac1cb8d3
VS
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
a848cd7e
SC
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
89be85c2
VS
25518 { ac_try='test -z "$ac_c_werror_flag"
25519 || test ! -s conftest.err'
ac1cb8d3
VS
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25522 ac_status=$?
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; } &&
25525 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; }; then
25531 ac_cv_func_connect=yes
25532else
25533 echo "$as_me: failed program was:" >&5
25534sed 's/^/| /' conftest.$ac_ext >&5
25535
25536ac_cv_func_connect=no
25537fi
ac1cb8d3
VS
25538rm -f conftest.err conftest.$ac_objext \
25539 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25540fi
25541echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25542echo "${ECHO_T}$ac_cv_func_connect" >&6
25543
25544 if test $ac_cv_func_connect = no; then
25545 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25546echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25547if test "${ac_cv_lib_socket_connect+set}" = set; then
25548 echo $ECHO_N "(cached) $ECHO_C" >&6
25549else
25550 ac_check_lib_save_LIBS=$LIBS
25551LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25552cat >conftest.$ac_ext <<_ACEOF
25553/* confdefs.h. */
25554_ACEOF
25555cat confdefs.h >>conftest.$ac_ext
25556cat >>conftest.$ac_ext <<_ACEOF
25557/* end confdefs.h. */
25558
25559/* Override any gcc2 internal prototype to avoid an error. */
25560#ifdef __cplusplus
25561extern "C"
25562#endif
25563/* We use char because int might match the return type of a gcc2
25564 builtin and then its argument prototype would still apply. */
25565char connect ();
25566int
25567main ()
25568{
25569connect ();
25570 ;
25571 return 0;
25572}
25573_ACEOF
25574rm -f conftest.$ac_objext conftest$ac_exeext
25575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25576 (eval $ac_link) 2>conftest.er1
a848cd7e 25577 ac_status=$?
ac1cb8d3
VS
25578 grep -v '^ *+' conftest.er1 >conftest.err
25579 rm -f conftest.er1
25580 cat conftest.err >&5
a848cd7e
SC
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } &&
89be85c2
VS
25583 { ac_try='test -z "$ac_c_werror_flag"
25584 || test ! -s conftest.err'
ac1cb8d3
VS
25585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; } &&
25590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; }; then
25596 ac_cv_lib_socket_connect=yes
25597else
25598 echo "$as_me: failed program was:" >&5
25599sed 's/^/| /' conftest.$ac_ext >&5
25600
25601ac_cv_lib_socket_connect=no
25602fi
ac1cb8d3
VS
25603rm -f conftest.err conftest.$ac_objext \
25604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25605LIBS=$ac_check_lib_save_LIBS
25606fi
25607echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25608echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25609if test $ac_cv_lib_socket_connect = yes; then
25610 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25611fi
25612
25613 fi
25614
25615 # Guillermo Gomez says -lposix is necessary on A/UX.
25616 echo "$as_me:$LINENO: checking for remove" >&5
25617echo $ECHO_N "checking for remove... $ECHO_C" >&6
25618if test "${ac_cv_func_remove+set}" = set; then
25619 echo $ECHO_N "(cached) $ECHO_C" >&6
25620else
25621 cat >conftest.$ac_ext <<_ACEOF
25622/* confdefs.h. */
25623_ACEOF
25624cat confdefs.h >>conftest.$ac_ext
25625cat >>conftest.$ac_ext <<_ACEOF
25626/* end confdefs.h. */
ac1cb8d3
VS
25627/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25629#define remove innocuous_remove
25630
a848cd7e
SC
25631/* System header to define __stub macros and hopefully few prototypes,
25632 which can conflict with char remove (); below.
25633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25634 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25635
a848cd7e
SC
25636#ifdef __STDC__
25637# include <limits.h>
25638#else
25639# include <assert.h>
25640#endif
ac1cb8d3
VS
25641
25642#undef remove
25643
a848cd7e
SC
25644/* Override any gcc2 internal prototype to avoid an error. */
25645#ifdef __cplusplus
25646extern "C"
25647{
25648#endif
25649/* We use char because int might match the return type of a gcc2
25650 builtin and then its argument prototype would still apply. */
25651char remove ();
25652/* The GNU C library defines this for functions which it implements
25653 to always fail with ENOSYS. Some functions are actually named
25654 something starting with __ and the normal name is an alias. */
25655#if defined (__stub_remove) || defined (__stub___remove)
25656choke me
25657#else
25658char (*f) () = remove;
25659#endif
25660#ifdef __cplusplus
25661}
25662#endif
25663
25664int
25665main ()
25666{
25667return f != remove;
25668 ;
25669 return 0;
25670}
25671_ACEOF
25672rm -f conftest.$ac_objext conftest$ac_exeext
25673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25674 (eval $ac_link) 2>conftest.er1
a848cd7e 25675 ac_status=$?
ac1cb8d3
VS
25676 grep -v '^ *+' conftest.er1 >conftest.err
25677 rm -f conftest.er1
25678 cat conftest.err >&5
a848cd7e
SC
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } &&
89be85c2
VS
25681 { ac_try='test -z "$ac_c_werror_flag"
25682 || test ! -s conftest.err'
ac1cb8d3
VS
25683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25684 (eval $ac_try) 2>&5
25685 ac_status=$?
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); }; } &&
25688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25690 (eval $ac_try) 2>&5
25691 ac_status=$?
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); }; }; then
25694 ac_cv_func_remove=yes
25695else
25696 echo "$as_me: failed program was:" >&5
25697sed 's/^/| /' conftest.$ac_ext >&5
25698
25699ac_cv_func_remove=no
25700fi
ac1cb8d3
VS
25701rm -f conftest.err conftest.$ac_objext \
25702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25703fi
25704echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25705echo "${ECHO_T}$ac_cv_func_remove" >&6
25706
25707 if test $ac_cv_func_remove = no; then
25708 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25709echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25710if test "${ac_cv_lib_posix_remove+set}" = set; then
25711 echo $ECHO_N "(cached) $ECHO_C" >&6
25712else
25713 ac_check_lib_save_LIBS=$LIBS
25714LIBS="-lposix $LIBS"
25715cat >conftest.$ac_ext <<_ACEOF
25716/* confdefs.h. */
25717_ACEOF
25718cat confdefs.h >>conftest.$ac_ext
25719cat >>conftest.$ac_ext <<_ACEOF
25720/* end confdefs.h. */
25721
25722/* Override any gcc2 internal prototype to avoid an error. */
25723#ifdef __cplusplus
25724extern "C"
25725#endif
25726/* We use char because int might match the return type of a gcc2
25727 builtin and then its argument prototype would still apply. */
25728char remove ();
25729int
25730main ()
25731{
25732remove ();
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737rm -f conftest.$ac_objext conftest$ac_exeext
25738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25739 (eval $ac_link) 2>conftest.er1
a848cd7e 25740 ac_status=$?
ac1cb8d3
VS
25741 grep -v '^ *+' conftest.er1 >conftest.err
25742 rm -f conftest.er1
25743 cat conftest.err >&5
a848cd7e
SC
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); } &&
89be85c2
VS
25746 { ac_try='test -z "$ac_c_werror_flag"
25747 || test ! -s conftest.err'
ac1cb8d3
VS
25748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25749 (eval $ac_try) 2>&5
25750 ac_status=$?
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); }; } &&
25753 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25755 (eval $ac_try) 2>&5
25756 ac_status=$?
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; }; then
25759 ac_cv_lib_posix_remove=yes
25760else
25761 echo "$as_me: failed program was:" >&5
25762sed 's/^/| /' conftest.$ac_ext >&5
25763
25764ac_cv_lib_posix_remove=no
25765fi
ac1cb8d3
VS
25766rm -f conftest.err conftest.$ac_objext \
25767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25768LIBS=$ac_check_lib_save_LIBS
25769fi
25770echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25771echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25772if test $ac_cv_lib_posix_remove = yes; then
25773 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25774fi
25775
25776 fi
25777
25778 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25779 echo "$as_me:$LINENO: checking for shmat" >&5
25780echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25781if test "${ac_cv_func_shmat+set}" = set; then
25782 echo $ECHO_N "(cached) $ECHO_C" >&6
25783else
25784 cat >conftest.$ac_ext <<_ACEOF
25785/* confdefs.h. */
25786_ACEOF
25787cat confdefs.h >>conftest.$ac_ext
25788cat >>conftest.$ac_ext <<_ACEOF
25789/* end confdefs.h. */
ac1cb8d3
VS
25790/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25792#define shmat innocuous_shmat
25793
a848cd7e
SC
25794/* System header to define __stub macros and hopefully few prototypes,
25795 which can conflict with char shmat (); below.
25796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25797 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25798
a848cd7e
SC
25799#ifdef __STDC__
25800# include <limits.h>
25801#else
25802# include <assert.h>
25803#endif
ac1cb8d3
VS
25804
25805#undef shmat
25806
a848cd7e
SC
25807/* Override any gcc2 internal prototype to avoid an error. */
25808#ifdef __cplusplus
25809extern "C"
25810{
25811#endif
25812/* We use char because int might match the return type of a gcc2
25813 builtin and then its argument prototype would still apply. */
25814char shmat ();
25815/* The GNU C library defines this for functions which it implements
25816 to always fail with ENOSYS. Some functions are actually named
25817 something starting with __ and the normal name is an alias. */
25818#if defined (__stub_shmat) || defined (__stub___shmat)
25819choke me
25820#else
25821char (*f) () = shmat;
25822#endif
25823#ifdef __cplusplus
25824}
25825#endif
25826
25827int
25828main ()
25829{
25830return f != shmat;
25831 ;
25832 return 0;
25833}
25834_ACEOF
25835rm -f conftest.$ac_objext conftest$ac_exeext
25836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25837 (eval $ac_link) 2>conftest.er1
a848cd7e 25838 ac_status=$?
ac1cb8d3
VS
25839 grep -v '^ *+' conftest.er1 >conftest.err
25840 rm -f conftest.er1
25841 cat conftest.err >&5
a848cd7e
SC
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } &&
89be85c2
VS
25844 { ac_try='test -z "$ac_c_werror_flag"
25845 || test ! -s conftest.err'
ac1cb8d3
VS
25846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25848 ac_status=$?
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); }; } &&
25851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25854 ac_status=$?
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; }; then
25857 ac_cv_func_shmat=yes
25858else
25859 echo "$as_me: failed program was:" >&5
25860sed 's/^/| /' conftest.$ac_ext >&5
25861
25862ac_cv_func_shmat=no
25863fi
ac1cb8d3
VS
25864rm -f conftest.err conftest.$ac_objext \
25865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25866fi
25867echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25868echo "${ECHO_T}$ac_cv_func_shmat" >&6
25869
25870 if test $ac_cv_func_shmat = no; then
25871 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25872echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25873if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25874 echo $ECHO_N "(cached) $ECHO_C" >&6
25875else
25876 ac_check_lib_save_LIBS=$LIBS
25877LIBS="-lipc $LIBS"
25878cat >conftest.$ac_ext <<_ACEOF
25879/* confdefs.h. */
25880_ACEOF
25881cat confdefs.h >>conftest.$ac_ext
25882cat >>conftest.$ac_ext <<_ACEOF
25883/* end confdefs.h. */
25884
25885/* Override any gcc2 internal prototype to avoid an error. */
25886#ifdef __cplusplus
25887extern "C"
25888#endif
25889/* We use char because int might match the return type of a gcc2
25890 builtin and then its argument prototype would still apply. */
25891char shmat ();
25892int
25893main ()
25894{
25895shmat ();
25896 ;
25897 return 0;
25898}
25899_ACEOF
25900rm -f conftest.$ac_objext conftest$ac_exeext
25901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25902 (eval $ac_link) 2>conftest.er1
a848cd7e 25903 ac_status=$?
ac1cb8d3
VS
25904 grep -v '^ *+' conftest.er1 >conftest.err
25905 rm -f conftest.er1
25906 cat conftest.err >&5
a848cd7e
SC
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } &&
89be85c2
VS
25909 { ac_try='test -z "$ac_c_werror_flag"
25910 || test ! -s conftest.err'
ac1cb8d3
VS
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25913 ac_status=$?
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; } &&
25916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); }; }; then
25922 ac_cv_lib_ipc_shmat=yes
25923else
25924 echo "$as_me: failed program was:" >&5
25925sed 's/^/| /' conftest.$ac_ext >&5
25926
25927ac_cv_lib_ipc_shmat=no
25928fi
ac1cb8d3
VS
25929rm -f conftest.err conftest.$ac_objext \
25930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25931LIBS=$ac_check_lib_save_LIBS
25932fi
25933echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25934echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25935if test $ac_cv_lib_ipc_shmat = yes; then
25936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25937fi
25938
25939 fi
25940 fi
25941
25942 # Check for libraries that X11R6 Xt/Xaw programs need.
25943 ac_save_LDFLAGS=$LDFLAGS
25944 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25945 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25946 # check for ICE first), but we must link in the order -lSM -lICE or
25947 # we get undefined symbols. So assume we have SM if we have ICE.
25948 # These have to be linked with before -lX11, unlike the other
25949 # libraries we check for below, so use a different variable.
25950 # John Interrante, Karl Berry
25951 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25952echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25953if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25954 echo $ECHO_N "(cached) $ECHO_C" >&6
25955else
25956 ac_check_lib_save_LIBS=$LIBS
25957LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25958cat >conftest.$ac_ext <<_ACEOF
25959/* confdefs.h. */
25960_ACEOF
25961cat confdefs.h >>conftest.$ac_ext
25962cat >>conftest.$ac_ext <<_ACEOF
25963/* end confdefs.h. */
25964
25965/* Override any gcc2 internal prototype to avoid an error. */
25966#ifdef __cplusplus
25967extern "C"
25968#endif
25969/* We use char because int might match the return type of a gcc2
25970 builtin and then its argument prototype would still apply. */
25971char IceConnectionNumber ();
25972int
25973main ()
25974{
25975IceConnectionNumber ();
25976 ;
25977 return 0;
25978}
25979_ACEOF
25980rm -f conftest.$ac_objext conftest$ac_exeext
25981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25982 (eval $ac_link) 2>conftest.er1
a848cd7e 25983 ac_status=$?
ac1cb8d3
VS
25984 grep -v '^ *+' conftest.er1 >conftest.err
25985 rm -f conftest.er1
25986 cat conftest.err >&5
a848cd7e
SC
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } &&
89be85c2
VS
25989 { ac_try='test -z "$ac_c_werror_flag"
25990 || test ! -s conftest.err'
ac1cb8d3
VS
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; } &&
25996 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
25999 ac_status=$?
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; }; then
26002 ac_cv_lib_ICE_IceConnectionNumber=yes
26003else
26004 echo "$as_me: failed program was:" >&5
26005sed 's/^/| /' conftest.$ac_ext >&5
26006
26007ac_cv_lib_ICE_IceConnectionNumber=no
26008fi
ac1cb8d3
VS
26009rm -f conftest.err conftest.$ac_objext \
26010 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26011LIBS=$ac_check_lib_save_LIBS
26012fi
26013echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26014echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26015if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26016 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26017fi
26018
26019 LDFLAGS=$ac_save_LDFLAGS
26020
26021fi
26022
26023
26024 if test "$no_x" = "yes"; then
26025 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26026echo "$as_me: error: X11 not found" >&2;}
26027 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26028 fi
26029
74b84332
VS
26030 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26031 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26032 AFMINSTALL=afminstall
26033 COMPILED_X_PROGRAM=0
26034
74b84332
VS
26035 fi
26036
26037 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26038 if test "$wxUSE_NANOX" = "yes"; then
26039 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26040echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26041 if test "x$MICROWIN" = x ; then
26042 echo "$as_me:$LINENO: result: not found" >&5
26043echo "${ECHO_T}not found" >&6
26044 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
26045echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
26046 { (exit 1); exit 1; }; }
26047 else
26048 echo "$as_me:$LINENO: result: $MICROWIN" >&5
26049echo "${ECHO_T}$MICROWIN" >&6
26050 cat >>confdefs.h <<\_ACEOF
26051#define wxUSE_NANOX 1
26052_ACEOF
26053
26054 fi
26055 fi
26056
26057 if test "$wxUSE_UNICODE" = "yes"; then
26058
26059 succeeded=no
26060
26061 if test -z "$PKG_CONFIG"; then
26062 # Extract the first word of "pkg-config", so it can be a program name with args.
26063set dummy pkg-config; ac_word=$2
26064echo "$as_me:$LINENO: checking for $ac_word" >&5
26065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26066if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26067 echo $ECHO_N "(cached) $ECHO_C" >&6
26068else
26069 case $PKG_CONFIG in
26070 [\\/]* | ?:[\\/]*)
26071 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26072 ;;
26073 *)
26074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26075for as_dir in $PATH
26076do
26077 IFS=$as_save_IFS
26078 test -z "$as_dir" && as_dir=.
26079 for ac_exec_ext in '' $ac_executable_extensions; do
26080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26081 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26083 break 2
26084 fi
26085done
26086done
26087
26088 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26089 ;;
26090esac
26091fi
26092PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26093
26094if test -n "$PKG_CONFIG"; then
26095 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26096echo "${ECHO_T}$PKG_CONFIG" >&6
26097else
26098 echo "$as_me:$LINENO: result: no" >&5
26099echo "${ECHO_T}no" >&6
26100fi
26101
26102 fi
26103
26104 if test "$PKG_CONFIG" = "no" ; then
26105 echo "*** The pkg-config script could not be found. Make sure it is"
26106 echo "*** in your path, or set the PKG_CONFIG environment variable"
26107 echo "*** to the full path to pkg-config."
26108 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26109 else
26110 PKG_CONFIG_MIN_VERSION=0.9.0
26111 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26112 echo "$as_me:$LINENO: checking for pangox" >&5
26113echo $ECHO_N "checking for pangox... $ECHO_C" >&6
26114
26115 if $PKG_CONFIG --exists "pangox" ; then
26116 echo "$as_me:$LINENO: result: yes" >&5
26117echo "${ECHO_T}yes" >&6
26118 succeeded=yes
26119
26120 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
26121echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
26122 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
26123 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
26124echo "${ECHO_T}$PANGOX_CFLAGS" >&6
26125
26126 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
26127echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
26128 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
26129 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
26130echo "${ECHO_T}$PANGOX_LIBS" >&6
26131 else
26132 PANGOX_CFLAGS=""
26133 PANGOX_LIBS=""
26134 ## If we have a custom action on failure, don't print errors, but
26135 ## do set a variable so people can do so.
26136 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
26137
26138 fi
26139
26140
26141
26142 else
26143 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26144 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26145 fi
26146 fi
26147
26148 if test $succeeded = yes; then
26149
26150 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
26151 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
26152
26153 else
26154
26155 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
26156echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
26157 { (exit 1); exit 1; }; }
26158
26159
26160 fi
26161
26162
26163 succeeded=no
26164
26165 if test -z "$PKG_CONFIG"; then
26166 # Extract the first word of "pkg-config", so it can be a program name with args.
26167set dummy pkg-config; ac_word=$2
26168echo "$as_me:$LINENO: checking for $ac_word" >&5
26169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26170if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26172else
26173 case $PKG_CONFIG in
26174 [\\/]* | ?:[\\/]*)
26175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26176 ;;
26177 *)
26178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26179for as_dir in $PATH
26180do
26181 IFS=$as_save_IFS
26182 test -z "$as_dir" && as_dir=.
26183 for ac_exec_ext in '' $ac_executable_extensions; do
26184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26185 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26187 break 2
26188 fi
26189done
26190done
26191
26192 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26193 ;;
26194esac
26195fi
26196PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26197
26198if test -n "$PKG_CONFIG"; then
26199 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26200echo "${ECHO_T}$PKG_CONFIG" >&6
26201else
26202 echo "$as_me:$LINENO: result: no" >&5
26203echo "${ECHO_T}no" >&6
26204fi
26205
26206 fi
26207
26208 if test "$PKG_CONFIG" = "no" ; then
26209 echo "*** The pkg-config script could not be found. Make sure it is"
26210 echo "*** in your path, or set the PKG_CONFIG environment variable"
26211 echo "*** to the full path to pkg-config."
26212 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26213 else
26214 PKG_CONFIG_MIN_VERSION=0.9.0
26215 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26216 echo "$as_me:$LINENO: checking for pangoft2" >&5
26217echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26218
26219 if $PKG_CONFIG --exists "pangoft2" ; then
26220 echo "$as_me:$LINENO: result: yes" >&5
26221echo "${ECHO_T}yes" >&6
26222 succeeded=yes
26223
26224 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26225echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26226 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26227 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26228echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26229
26230 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26231echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26232 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26233 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26234echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26235 else
26236 PANGOFT2_CFLAGS=""
26237 PANGOFT2_LIBS=""
26238 ## If we have a custom action on failure, don't print errors, but
26239 ## do set a variable so people can do so.
26240 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26241
26242 fi
26243
26244
26245
26246 else
26247 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26248 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26249 fi
26250 fi
26251
26252 if test $succeeded = yes; then
26253
26254 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26255 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26256
26257 else
26258
26259 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26260echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26261 wxUSE_PRINTING_ARCHITECTURE="no"
26262
26263
26264 fi
26265
26266
26267 succeeded=no
26268
26269 if test -z "$PKG_CONFIG"; then
26270 # Extract the first word of "pkg-config", so it can be a program name with args.
26271set dummy pkg-config; ac_word=$2
26272echo "$as_me:$LINENO: checking for $ac_word" >&5
26273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26274if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26276else
26277 case $PKG_CONFIG in
26278 [\\/]* | ?:[\\/]*)
26279 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26280 ;;
26281 *)
26282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26283for as_dir in $PATH
26284do
26285 IFS=$as_save_IFS
26286 test -z "$as_dir" && as_dir=.
26287 for ac_exec_ext in '' $ac_executable_extensions; do
26288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26289 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26291 break 2
26292 fi
26293done
26294done
26295
26296 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26297 ;;
26298esac
26299fi
26300PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26301
26302if test -n "$PKG_CONFIG"; then
26303 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26304echo "${ECHO_T}$PKG_CONFIG" >&6
26305else
26306 echo "$as_me:$LINENO: result: no" >&5
26307echo "${ECHO_T}no" >&6
26308fi
26309
26310 fi
26311
26312 if test "$PKG_CONFIG" = "no" ; then
26313 echo "*** The pkg-config script could not be found. Make sure it is"
26314 echo "*** in your path, or set the PKG_CONFIG environment variable"
26315 echo "*** to the full path to pkg-config."
26316 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26317 else
26318 PKG_CONFIG_MIN_VERSION=0.9.0
26319 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26320 echo "$as_me:$LINENO: checking for pangoxft" >&5
26321echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26322
26323 if $PKG_CONFIG --exists "pangoxft" ; then
26324 echo "$as_me:$LINENO: result: yes" >&5
26325echo "${ECHO_T}yes" >&6
26326 succeeded=yes
26327
26328 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26329echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26330 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26331 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26332echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26333
26334 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26335echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26336 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26337 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26338echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26339 else
26340 PANGOXFT_CFLAGS=""
26341 PANGOXFT_LIBS=""
26342 ## If we have a custom action on failure, don't print errors, but
26343 ## do set a variable so people can do so.
26344 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26345
26346 fi
26347
26348
26349
26350 else
26351 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26352 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26353 fi
26354 fi
26355
26356 if test $succeeded = yes; then
26357
4ae1af05
MB
26358 cat >>confdefs.h <<\_ACEOF
26359#define HAVE_PANGO_XFT 1
26360_ACEOF
26361
a848cd7e
SC
26362 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26363 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26364
26365 else
26366
26367 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26368echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26369
26370
26371 fi
26372
304205f1
VS
26373 save_CFLAGS="$CFLAGS"
26374 save_LIBS="$LIBS"
26375 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26376 LIBS="$LIBS $PANGOX_LIBS"
26377
26378for ac_func in pango_font_family_is_monospace
26379do
26380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26381echo "$as_me:$LINENO: checking for $ac_func" >&5
26382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26383if eval "test \"\${$as_ac_var+set}\" = set"; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26385else
26386 cat >conftest.$ac_ext <<_ACEOF
26387/* confdefs.h. */
26388_ACEOF
26389cat confdefs.h >>conftest.$ac_ext
26390cat >>conftest.$ac_ext <<_ACEOF
26391/* end confdefs.h. */
26392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26394#define $ac_func innocuous_$ac_func
26395
26396/* System header to define __stub macros and hopefully few prototypes,
26397 which can conflict with char $ac_func (); below.
26398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26399 <limits.h> exists even on freestanding compilers. */
26400
26401#ifdef __STDC__
26402# include <limits.h>
26403#else
26404# include <assert.h>
26405#endif
26406
26407#undef $ac_func
26408
26409/* Override any gcc2 internal prototype to avoid an error. */
26410#ifdef __cplusplus
26411extern "C"
26412{
26413#endif
26414/* We use char because int might match the return type of a gcc2
26415 builtin and then its argument prototype would still apply. */
26416char $ac_func ();
26417/* The GNU C library defines this for functions which it implements
26418 to always fail with ENOSYS. Some functions are actually named
26419 something starting with __ and the normal name is an alias. */
26420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26421choke me
26422#else
26423char (*f) () = $ac_func;
26424#endif
26425#ifdef __cplusplus
26426}
26427#endif
26428
26429int
26430main ()
26431{
26432return f != $ac_func;
26433 ;
26434 return 0;
26435}
26436_ACEOF
26437rm -f conftest.$ac_objext conftest$ac_exeext
26438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26439 (eval $ac_link) 2>conftest.er1
26440 ac_status=$?
26441 grep -v '^ *+' conftest.er1 >conftest.err
26442 rm -f conftest.er1
26443 cat conftest.err >&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); } &&
89be85c2
VS
26446 { ac_try='test -z "$ac_c_werror_flag"
26447 || test ! -s conftest.err'
304205f1
VS
26448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449 (eval $ac_try) 2>&5
26450 ac_status=$?
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; } &&
26453 { ac_try='test -s conftest$ac_exeext'
26454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; }; then
26459 eval "$as_ac_var=yes"
26460else
26461 echo "$as_me: failed program was:" >&5
26462sed 's/^/| /' conftest.$ac_ext >&5
26463
26464eval "$as_ac_var=no"
26465fi
26466rm -f conftest.err conftest.$ac_objext \
26467 conftest$ac_exeext conftest.$ac_ext
26468fi
26469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26471if test `eval echo '${'$as_ac_var'}'` = yes; then
26472 cat >>confdefs.h <<_ACEOF
26473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26474_ACEOF
26475
26476fi
26477done
26478
26479 CFLAGS="$save_CFLAGS"
26480 LIBS="$save_LIBS"
a848cd7e
SC
26481 fi
26482
26483 wxUSE_UNIVERSAL="yes"
26484
26485 if test "$wxUSE_NANOX" = "yes"; then
26486 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26487 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"
26488 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26489 else
26490 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26491 fi
26492
a848cd7e
SC
26493 TOOLKIT=X11
26494 GUIDIST=X11_DIST
26495 fi
26496
26497 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26498 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26499echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26500
74b84332
VS
26501ac_find_includes=
26502for ac_dir in $SEARCH_INCLUDE /usr/include;
26503 do
26504 if test -f "$ac_dir/Xm/Xm.h"; then
26505 ac_find_includes=$ac_dir
26506 break
26507 fi
26508 done
a848cd7e 26509
74b84332
VS
26510 if test "$ac_find_includes" != "" ; then
26511 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26512echo "${ECHO_T}found in $ac_find_includes" >&6
26513
26514 if test "x$ac_find_includes" = "x/usr/include"; then
26515 ac_path_to_include=""
26516 else
26517 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26518 result=$?
26519 if test $result = 0; then
26520 ac_path_to_include=""
26521 else
26522 ac_path_to_include=" -I$ac_find_includes"
26523 fi
a848cd7e
SC
26524 fi
26525
74b84332
VS
26526 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26527 else
26528 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26529/* confdefs.h. */
26530_ACEOF
26531cat confdefs.h >>conftest.$ac_ext
26532cat >>conftest.$ac_ext <<_ACEOF
26533/* end confdefs.h. */
26534
74b84332
VS
26535 #include <Xm/Xm.h>
26536
a848cd7e
SC
26537int
26538main ()
26539{
26540
74b84332
VS
26541 int version;
26542 version = xmUseVersion;
26543
a848cd7e
SC
26544 ;
26545 return 0;
26546}
26547_ACEOF
74b84332
VS
26548rm -f conftest.$ac_objext
26549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26550 (eval $ac_compile) 2>conftest.er1
a848cd7e 26551 ac_status=$?
ac1cb8d3
VS
26552 grep -v '^ *+' conftest.er1 >conftest.err
26553 rm -f conftest.er1
26554 cat conftest.err >&5
a848cd7e
SC
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); } &&
89be85c2
VS
26557 { ac_try='test -z "$ac_c_werror_flag"
26558 || test ! -s conftest.err'
ac1cb8d3
VS
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26561 ac_status=$?
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; } &&
74b84332 26564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26567 ac_status=$?
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; }; then
74b84332
VS
26570
26571 echo "$as_me:$LINENO: result: found in default search path" >&5
26572echo "${ECHO_T}found in default search path" >&6
26573 COMPILED_X_PROGRAM=1
26574
a848cd7e
SC
26575else
26576 echo "$as_me: failed program was:" >&5
26577sed 's/^/| /' conftest.$ac_ext >&5
26578
a848cd7e 26579
74b84332
VS
26580 echo "$as_me:$LINENO: result: no" >&5
26581echo "${ECHO_T}no" >&6
26582 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26583echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26584 { (exit 1); exit 1; }; }
a848cd7e 26585
a848cd7e 26586
a848cd7e 26587fi
74b84332
VS
26588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26589 fi
26590
26591 if test "$COMPILED_X_PROGRAM" = 0; then
26592 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26593echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26594
26595ac_find_libraries=
26596for ac_dir in $SEARCH_LIB /usr/lib;
26597 do
26598 for ac_extension in a so sl dylib; do
26599 if test -f "$ac_dir/libXm.$ac_extension"; then
26600 ac_find_libraries=$ac_dir
26601 break 2
a848cd7e 26602 fi
74b84332
VS
26603 done
26604 done
a848cd7e 26605
74b84332
VS
26606 if test "$ac_find_libraries" != "" ; then
26607 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26608echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26609
74b84332
VS
26610
26611 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26612 result=$?
26613 if test $result = 0; then
26614 ac_path_to_link=""
a848cd7e 26615 else
74b84332
VS
26616 ac_path_to_link=" -L$ac_find_libraries"
26617 fi
26618
26619 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26620 else
26621 save_CFLAGS=$CFLAGS
26622 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26623
26624 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26625/* confdefs.h. */
26626_ACEOF
26627cat confdefs.h >>conftest.$ac_ext
26628cat >>conftest.$ac_ext <<_ACEOF
26629/* end confdefs.h. */
26630
74b84332
VS
26631 #include <Xm/Xm.h>
26632
a848cd7e
SC
26633int
26634main ()
26635{
74b84332
VS
26636
26637 int version;
26638 version = xmUseVersion;
26639
a848cd7e
SC
26640 ;
26641 return 0;
26642}
26643_ACEOF
74b84332
VS
26644rm -f conftest.$ac_objext
26645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26646 (eval $ac_compile) 2>conftest.er1
a848cd7e 26647 ac_status=$?
ac1cb8d3
VS
26648 grep -v '^ *+' conftest.er1 >conftest.err
26649 rm -f conftest.er1
26650 cat conftest.err >&5
a848cd7e
SC
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } &&
89be85c2
VS
26653 { ac_try='test -z "$ac_c_werror_flag"
26654 || test ! -s conftest.err'
ac1cb8d3
VS
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; } &&
74b84332 26660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
74b84332
VS
26666
26667 echo "$as_me:$LINENO: result: found in default search path" >&5
26668echo "${ECHO_T}found in default search path" >&6
26669 COMPILED_X_PROGRAM=1
26670
a848cd7e
SC
26671else
26672 echo "$as_me: failed program was:" >&5
26673sed 's/^/| /' conftest.$ac_ext >&5
26674
74b84332
VS
26675
26676 echo "$as_me:$LINENO: result: no" >&5
26677echo "${ECHO_T}no" >&6
26678 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26679echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26680 { (exit 1); exit 1; }; }
26681
26682
26683fi
26684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26685
26686 CFLAGS=$save_CFLAGS
26687 fi
26688 fi
26689
26690 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26691echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26692 libp_link=""
26693 libsm_ice_link=""
26694 libs_found=0
26695 for libp in "" " -lXp"; do
26696 if test "$libs_found" = "0"; then
26697 for libsm_ice in "" " -lSM -lICE"; do
26698 if test "$libs_found" = "0"; then
26699 save_LIBS="$LIBS"
26700 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26701 save_CFLAGS=$CFLAGS
26702 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26703
26704 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26705/* confdefs.h. */
26706_ACEOF
26707cat confdefs.h >>conftest.$ac_ext
26708cat >>conftest.$ac_ext <<_ACEOF
26709/* end confdefs.h. */
26710
74b84332
VS
26711 #include <Xm/Xm.h>
26712 #include <Xm/List.h>
26713
a848cd7e
SC
26714int
26715main ()
26716{
74b84332
VS
26717
26718 XmString string = NULL;
26719 Widget w = NULL;
26720 int position = 0;
26721 XmListAddItem(w, string, position);
26722
a848cd7e
SC
26723 ;
26724 return 0;
26725}
26726_ACEOF
26727rm -f conftest.$ac_objext conftest$ac_exeext
26728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26729 (eval $ac_link) 2>conftest.er1
a848cd7e 26730 ac_status=$?
ac1cb8d3
VS
26731 grep -v '^ *+' conftest.er1 >conftest.err
26732 rm -f conftest.er1
26733 cat conftest.err >&5
a848cd7e
SC
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } &&
89be85c2
VS
26736 { ac_try='test -z "$ac_c_werror_flag"
26737 || test ! -s conftest.err'
ac1cb8d3
VS
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26740 ac_status=$?
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; } &&
26743 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745 (eval $ac_try) 2>&5
26746 ac_status=$?
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; }; then
26749
26750 libp_link="$libp"
26751 libsm_ice_link="$libsm_ice"
26752 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26753echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26754 libs_found=1
26755
26756else
26757 echo "$as_me: failed program was:" >&5
26758sed 's/^/| /' conftest.$ac_ext >&5
26759
26760
26761
26762fi
ac1cb8d3
VS
26763rm -f conftest.err conftest.$ac_objext \
26764 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26765
26766 LIBS="$save_LIBS"
26767 CFLAGS=$save_CFLAGS
26768 fi
26769 done
26770 fi
26771 done
26772
26773 if test "$libs_found" = "0"; then
26774 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26775echo "${ECHO_T}can't find the right libraries" >&6
26776 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26777echo "$as_me: error: can't link a simple motif program" >&2;}
26778 { (exit 1); exit 1; }; }
26779 fi
26780
26781 save_CFLAGS=$CFLAGS
26782 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26783 echo "$as_me:$LINENO: checking for Motif 2" >&5
26784echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26785 cat >conftest.$ac_ext <<_ACEOF
26786/* confdefs.h. */
26787_ACEOF
26788cat confdefs.h >>conftest.$ac_ext
26789cat >>conftest.$ac_ext <<_ACEOF
26790/* end confdefs.h. */
26791
26792 #include <Xm/Xm.h>
26793
26794int
26795main ()
26796{
26797
26798 #if XmVersion < 2000
26799 #error "Not Motif 2"
26800 #endif
26801
26802 ;
26803 return 0;
26804}
26805_ACEOF
26806rm -f conftest.$ac_objext
26807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26808 (eval $ac_compile) 2>conftest.er1
a848cd7e 26809 ac_status=$?
ac1cb8d3
VS
26810 grep -v '^ *+' conftest.er1 >conftest.err
26811 rm -f conftest.er1
26812 cat conftest.err >&5
a848cd7e
SC
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); } &&
89be85c2
VS
26815 { ac_try='test -z "$ac_c_werror_flag"
26816 || test ! -s conftest.err'
ac1cb8d3
VS
26817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818 (eval $ac_try) 2>&5
26819 ac_status=$?
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); }; } &&
26822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; }; then
26828
26829 cat >>confdefs.h <<\_ACEOF
26830#define __WXMOTIF20__ 1
26831_ACEOF
26832
26833 echo "$as_me:$LINENO: result: found" >&5
26834echo "${ECHO_T}found" >&6
26835
26836else
26837 echo "$as_me: failed program was:" >&5
26838sed 's/^/| /' conftest.$ac_ext >&5
26839
26840
26841 cat >>confdefs.h <<\_ACEOF
26842#define __WXMOTIF20__ 0
26843_ACEOF
26844
26845 echo "$as_me:$LINENO: result: not found" >&5
26846echo "${ECHO_T}not found" >&6
26847
26848fi
ac1cb8d3 26849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26850 CFLAGS=$save_CFLAGS
26851
26852 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26853 TOOLKIT=MOTIF
26854 GUIDIST=MOTIF_DIST
26855 fi
26856
74b84332 26857 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26858 if test "$wxUSE_LIBXPM" = "sys"; then
26859 echo "$as_me:$LINENO: checking for Xpm library" >&5
26860echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26861
26862ac_find_libraries=
26863for ac_dir in $SEARCH_LIB /usr/lib;
26864 do
26865 for ac_extension in a so sl dylib; do
26866 if test -f "$ac_dir/libXpm.$ac_extension"; then
26867 ac_find_libraries=$ac_dir
26868 break 2
26869 fi
26870 done
26871 done
26872
26873 if test "$ac_find_libraries" != "" ; then
26874
26875 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26876 result=$?
26877 if test $result = 0; then
26878 ac_path_to_link=""
26879 else
26880 ac_path_to_link=" -L$ac_find_libraries"
26881 fi
26882
26883 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26884 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26885echo "${ECHO_T}found at $ac_find_libraries" >&6
26886
26887 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26888echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26889if test "${wx_cv_x11_xpm_h+set}" = set; then
26890 echo $ECHO_N "(cached) $ECHO_C" >&6
26891else
26892
26893 save_CFLAGS=$CFLAGS
26894 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26895
26896 cat >conftest.$ac_ext <<_ACEOF
26897/* confdefs.h. */
26898_ACEOF
26899cat confdefs.h >>conftest.$ac_ext
26900cat >>conftest.$ac_ext <<_ACEOF
26901/* end confdefs.h. */
26902
26903 #include <X11/xpm.h>
26904
26905int
26906main ()
26907{
26908
26909 int version;
26910 version = XpmLibraryVersion();
26911
26912 ;
26913 return 0;
26914}
26915_ACEOF
26916rm -f conftest.$ac_objext
26917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26918 (eval $ac_compile) 2>conftest.er1
a848cd7e 26919 ac_status=$?
ac1cb8d3
VS
26920 grep -v '^ *+' conftest.er1 >conftest.err
26921 rm -f conftest.er1
26922 cat conftest.err >&5
a848cd7e
SC
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); } &&
89be85c2
VS
26925 { ac_try='test -z "$ac_c_werror_flag"
26926 || test ! -s conftest.err'
ac1cb8d3
VS
26927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928 (eval $ac_try) 2>&5
26929 ac_status=$?
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; } &&
26932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; }; then
26938 wx_cv_x11_xpm_h=yes
26939else
26940 echo "$as_me: failed program was:" >&5
26941sed 's/^/| /' conftest.$ac_ext >&5
26942
26943wx_cv_x11_xpm_h=no
26944
26945fi
ac1cb8d3 26946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26947
26948 CFLAGS=$save_CFLAGS
26949
26950
26951fi
26952echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26953echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26954
26955 if test $wx_cv_x11_xpm_h = "yes"; then
26956 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26957 cat >>confdefs.h <<\_ACEOF
26958#define wxHAVE_LIB_XPM 1
26959_ACEOF
26960
26961 else
26962 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26963echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26964 fi
26965 fi
26966
26967 fi
26968
26969 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26970echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26971if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26972 echo $ECHO_N "(cached) $ECHO_C" >&6
26973else
26974 ac_check_lib_save_LIBS=$LIBS
26975LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26976cat >conftest.$ac_ext <<_ACEOF
26977/* confdefs.h. */
26978_ACEOF
26979cat confdefs.h >>conftest.$ac_ext
26980cat >>conftest.$ac_ext <<_ACEOF
26981/* end confdefs.h. */
26982
26983/* Override any gcc2 internal prototype to avoid an error. */
26984#ifdef __cplusplus
26985extern "C"
26986#endif
26987/* We use char because int might match the return type of a gcc2
26988 builtin and then its argument prototype would still apply. */
26989char XShapeQueryExtension ();
26990int
26991main ()
26992{
26993XShapeQueryExtension ();
26994 ;
26995 return 0;
26996}
26997_ACEOF
26998rm -f conftest.$ac_objext conftest$ac_exeext
26999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27000 (eval $ac_link) 2>conftest.er1
a848cd7e 27001 ac_status=$?
ac1cb8d3
VS
27002 grep -v '^ *+' conftest.er1 >conftest.err
27003 rm -f conftest.er1
27004 cat conftest.err >&5
a848cd7e
SC
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } &&
89be85c2
VS
27007 { ac_try='test -z "$ac_c_werror_flag"
27008 || test ! -s conftest.err'
ac1cb8d3
VS
27009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27010 (eval $ac_try) 2>&5
27011 ac_status=$?
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; } &&
27014 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016 (eval $ac_try) 2>&5
27017 ac_status=$?
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; }; then
27020 ac_cv_lib_Xext_XShapeQueryExtension=yes
27021else
27022 echo "$as_me: failed program was:" >&5
27023sed 's/^/| /' conftest.$ac_ext >&5
27024
27025ac_cv_lib_Xext_XShapeQueryExtension=no
27026fi
ac1cb8d3
VS
27027rm -f conftest.err conftest.$ac_objext \
27028 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27029LIBS=$ac_check_lib_save_LIBS
27030fi
27031echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27032echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27033if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27034
27035 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27036 wxHAVE_XEXT_LIB=1
27037
27038fi
27039
27040
27041 if test "$wxHAVE_XEXT_LIB" = 1; then
27042 save_CFLAGS="$CFLAGS"
27043 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27044
27045 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27046echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27047 cat >conftest.$ac_ext <<_ACEOF
27048/* confdefs.h. */
27049_ACEOF
27050cat confdefs.h >>conftest.$ac_ext
27051cat >>conftest.$ac_ext <<_ACEOF
27052/* end confdefs.h. */
27053
27054 #include <X11/Xlib.h>
27055 #include <X11/extensions/shape.h>
27056
27057int
27058main ()
27059{
27060
27061 int dummy1, dummy2;
27062 XShapeQueryExtension((Display*)NULL,
27063 (int*)NULL, (int*)NULL);
27064
27065 ;
27066 return 0;
27067}
27068_ACEOF
27069rm -f conftest.$ac_objext
27070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27071 (eval $ac_compile) 2>conftest.er1
a848cd7e 27072 ac_status=$?
ac1cb8d3
VS
27073 grep -v '^ *+' conftest.er1 >conftest.err
27074 rm -f conftest.er1
27075 cat conftest.err >&5
a848cd7e
SC
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } &&
89be85c2
VS
27078 { ac_try='test -z "$ac_c_werror_flag"
27079 || test ! -s conftest.err'
ac1cb8d3
VS
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27082 ac_status=$?
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; } &&
27085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27088 ac_status=$?
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; }; then
27091
27092 cat >>confdefs.h <<\_ACEOF
27093#define HAVE_XSHAPE 1
27094_ACEOF
27095
27096 echo "$as_me:$LINENO: result: found" >&5
27097echo "${ECHO_T}found" >&6
27098
27099else
27100 echo "$as_me: failed program was:" >&5
27101sed 's/^/| /' conftest.$ac_ext >&5
27102
27103
27104 echo "$as_me:$LINENO: result: not found" >&5
27105echo "${ECHO_T}not found" >&6
27106
27107fi
ac1cb8d3 27108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27109 CFLAGS="$save_CFLAGS"
27110
27111 fi
27112 fi
27113
27114 if test "$wxUSE_MAC" = 1; then
27115 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
27116echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
27117 if test "$GCC" = yes; then
27118 echo "$as_me:$LINENO: result: gcc" >&5
27119echo "${ECHO_T}gcc" >&6
27120 CPPFLAGS_PASCAL="-fpascal-strings"
27121 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
27122 echo "$as_me:$LINENO: result: xlc" >&5
27123echo "${ECHO_T}xlc" >&6
27124 CPPFLAGS_PASCAL="-qmacpstr"
27125 else
27126 echo "$as_me:$LINENO: result: none" >&5
27127echo "${ECHO_T}none" >&6
27128 fi
27129
1e9e8aba
DE
27130 if test "x$wxUSE_UNIX" = "xyes"; then
27131 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
27132 else
27133 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
27134 fi
a848cd7e 27135
a848cd7e
SC
27136 TOOLKIT=MAC
27137 GUIDIST=MACX_DIST
dd21ced8 27138 WXBASEPORT="_carbon"
a848cd7e
SC
27139 fi
27140
27141 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
27142 TOOLKIT=COCOA
27143 GUIDIST=COCOA_DIST
27144 fi
27145
27146 if test "$wxUSE_PM" = 1; then
27147 TOOLKIT=PM
de59c161
RD
27148 GUIDIST=PM_DIST
27149 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
27150echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
27151if test "${wx_cv_spbcdata+set}" = set; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27153else
27154
27155 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
27156/* confdefs.h. */
27157_ACEOF
27158cat confdefs.h >>conftest.$ac_ext
27159cat >>conftest.$ac_ext <<_ACEOF
27160/* end confdefs.h. */
27161
27162 #define INCL_PM
27163 #include <os2.h>
27164
27165int
27166main ()
27167{
27168
27169 SPBCDATA test;
27170
27171 ;
27172 return 0;
27173}
27174_ACEOF
27175rm -f conftest.$ac_objext
27176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27177 (eval $ac_compile) 2>conftest.er1
de59c161 27178 ac_status=$?
ac1cb8d3
VS
27179 grep -v '^ *+' conftest.er1 >conftest.err
27180 rm -f conftest.er1
27181 cat conftest.err >&5
de59c161
RD
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } &&
89be85c2
VS
27184 { ac_try='test -z "$ac_c_werror_flag"
27185 || test ! -s conftest.err'
ac1cb8d3
VS
27186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187 (eval $ac_try) 2>&5
27188 ac_status=$?
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; } &&
27191 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193 (eval $ac_try) 2>&5
27194 ac_status=$?
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; }; then
27197 wx_cv_spbcdata=yes
27198else
27199 echo "$as_me: failed program was:" >&5
27200sed 's/^/| /' conftest.$ac_ext >&5
27201
27202wx_cv_spbcdata=no
27203
27204fi
ac1cb8d3 27205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27206
27207
27208fi
27209echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27210echo "${ECHO_T}$wx_cv_spbcdata" >&6
27211
27212 if test $wx_cv_spbcdata = "yes"; then
27213 cat >>confdefs.h <<\_ACEOF
27214#define HAVE_SPBCDATA 1
27215_ACEOF
27216
27217 fi
a848cd7e
SC
27218 fi
27219
27220 if test "$TOOLKIT" = "PM" ; then
27221 TOOLKIT_DIR="os2"
27222 else
27223 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27224 fi
27225
a848cd7e 27226 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27227 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27228 WIDGET_SET=univ
a848cd7e
SC
27229 fi
27230
27231 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27232 DISTDIR="wx\$(TOOLKIT)"
27233else
27234 USE_GUI=0
27235
27236 TOOLKIT_DIR="base"
27237
27238 if test "$USE_WIN32" = 1 ; then
a848cd7e 27239 TOOLKIT="MSW"
a848cd7e
SC
27240 fi
27241
a848cd7e
SC
27242 GUIDIST="BASE_DIST"
27243 DISTDIR="wxBase"
27244fi
27245
27246
27247
27248
27249IODBC_C_SRC=""
27250
27251
27252if test "$TOOLKIT" != "MSW" ; then
27253
27254 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27255
27256 if test "${ac_cv_header_sql_h+set}" = set; then
27257 echo "$as_me:$LINENO: checking for sql.h" >&5
27258echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27259if test "${ac_cv_header_sql_h+set}" = set; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27261fi
27262echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27263echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27264else
27265 # Is the header compilable?
27266echo "$as_me:$LINENO: checking sql.h usability" >&5
27267echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27268cat >conftest.$ac_ext <<_ACEOF
27269/* confdefs.h. */
27270_ACEOF
27271cat confdefs.h >>conftest.$ac_ext
27272cat >>conftest.$ac_ext <<_ACEOF
27273/* end confdefs.h. */
27274$ac_includes_default
27275#include <sql.h>
27276_ACEOF
27277rm -f conftest.$ac_objext
27278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27279 (eval $ac_compile) 2>conftest.er1
a848cd7e 27280 ac_status=$?
ac1cb8d3
VS
27281 grep -v '^ *+' conftest.er1 >conftest.err
27282 rm -f conftest.er1
27283 cat conftest.err >&5
a848cd7e
SC
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } &&
89be85c2
VS
27286 { ac_try='test -z "$ac_c_werror_flag"
27287 || test ! -s conftest.err'
ac1cb8d3
VS
27288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289 (eval $ac_try) 2>&5
27290 ac_status=$?
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); }; } &&
27293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27295 (eval $ac_try) 2>&5
27296 ac_status=$?
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; }; then
27299 ac_header_compiler=yes
27300else
27301 echo "$as_me: failed program was:" >&5
27302sed 's/^/| /' conftest.$ac_ext >&5
27303
27304ac_header_compiler=no
27305fi
ac1cb8d3 27306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27308echo "${ECHO_T}$ac_header_compiler" >&6
27309
27310# Is the header present?
27311echo "$as_me:$LINENO: checking sql.h presence" >&5
27312echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27313cat >conftest.$ac_ext <<_ACEOF
27314/* confdefs.h. */
27315_ACEOF
27316cat confdefs.h >>conftest.$ac_ext
27317cat >>conftest.$ac_ext <<_ACEOF
27318/* end confdefs.h. */
27319#include <sql.h>
27320_ACEOF
27321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27323 ac_status=$?
27324 grep -v '^ *+' conftest.er1 >conftest.err
27325 rm -f conftest.er1
27326 cat conftest.err >&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); } >/dev/null; then
27329 if test -s conftest.err; then
27330 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27332 else
27333 ac_cpp_err=
27334 fi
27335else
27336 ac_cpp_err=yes
27337fi
27338if test -z "$ac_cpp_err"; then
27339 ac_header_preproc=yes
27340else
27341 echo "$as_me: failed program was:" >&5
27342sed 's/^/| /' conftest.$ac_ext >&5
27343
27344 ac_header_preproc=no
27345fi
27346rm -f conftest.err conftest.$ac_ext
27347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27348echo "${ECHO_T}$ac_header_preproc" >&6
27349
27350# So? What about this header?
ac1cb8d3
VS
27351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27352 yes:no: )
a848cd7e
SC
27353 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27354echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27355 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27356echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27357 ac_header_preproc=yes
a848cd7e 27358 ;;
ac1cb8d3 27359 no:yes:* )
a848cd7e
SC
27360 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27361echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27362 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27363echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27364 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27365echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27366 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27367echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27368 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27369echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27370 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27371echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27372 (
27373 cat <<\_ASBOX
ac1cb8d3
VS
27374## ----------------------------------------- ##
27375## Report this to wx-dev@lists.wxwidgets.org ##
27376## ----------------------------------------- ##
a848cd7e
SC
27377_ASBOX
27378 ) |
27379 sed "s/^/$as_me: WARNING: /" >&2
27380 ;;
27381esac
27382echo "$as_me:$LINENO: checking for sql.h" >&5
27383echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27384if test "${ac_cv_header_sql_h+set}" = set; then
27385 echo $ECHO_N "(cached) $ECHO_C" >&6
27386else
27387 ac_cv_header_sql_h=$ac_header_preproc
27388fi
27389echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27390echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27391
27392fi
27393if test $ac_cv_header_sql_h = yes; then
27394 found_sql_h=1
27395fi
27396
27397
27398 if test "x$found_sql_h" = "x1" ; then
27399 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27400echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27401if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27402 echo $ECHO_N "(cached) $ECHO_C" >&6
27403else
27404 ac_check_lib_save_LIBS=$LIBS
27405LIBS="-liodbc $LIBS"
27406cat >conftest.$ac_ext <<_ACEOF
27407/* confdefs.h. */
27408_ACEOF
27409cat confdefs.h >>conftest.$ac_ext
27410cat >>conftest.$ac_ext <<_ACEOF
27411/* end confdefs.h. */
27412
27413/* Override any gcc2 internal prototype to avoid an error. */
27414#ifdef __cplusplus
27415extern "C"
27416#endif
27417/* We use char because int might match the return type of a gcc2
27418 builtin and then its argument prototype would still apply. */
27419char SQLAllocEnv ();
27420int
27421main ()
27422{
27423SQLAllocEnv ();
27424 ;
27425 return 0;
27426}
27427_ACEOF
27428rm -f conftest.$ac_objext conftest$ac_exeext
27429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27430 (eval $ac_link) 2>conftest.er1
a848cd7e 27431 ac_status=$?
ac1cb8d3
VS
27432 grep -v '^ *+' conftest.er1 >conftest.err
27433 rm -f conftest.er1
27434 cat conftest.err >&5
a848cd7e
SC
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } &&
89be85c2
VS
27437 { ac_try='test -z "$ac_c_werror_flag"
27438 || test ! -s conftest.err'
ac1cb8d3
VS
27439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27440 (eval $ac_try) 2>&5
27441 ac_status=$?
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446 (eval $ac_try) 2>&5
27447 ac_status=$?
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; }; then
27450 ac_cv_lib_iodbc_SQLAllocEnv=yes
27451else
27452 echo "$as_me: failed program was:" >&5
27453sed 's/^/| /' conftest.$ac_ext >&5
27454
27455ac_cv_lib_iodbc_SQLAllocEnv=no
27456fi
ac1cb8d3
VS
27457rm -f conftest.err conftest.$ac_objext \
27458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27459LIBS=$ac_check_lib_save_LIBS
27460fi
27461echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27462echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27463if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27464 ODBC_LINK=" -liodbc"
27465else
27466
27467 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27468echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27469if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27471else
27472 ac_check_lib_save_LIBS=$LIBS
27473LIBS="-lunixodbc $LIBS"
27474cat >conftest.$ac_ext <<_ACEOF
27475/* confdefs.h. */
27476_ACEOF
27477cat confdefs.h >>conftest.$ac_ext
27478cat >>conftest.$ac_ext <<_ACEOF
27479/* end confdefs.h. */
27480
27481/* Override any gcc2 internal prototype to avoid an error. */
27482#ifdef __cplusplus
27483extern "C"
27484#endif
27485/* We use char because int might match the return type of a gcc2
27486 builtin and then its argument prototype would still apply. */
27487char SQLAllocEnv ();
27488int
27489main ()
27490{
27491SQLAllocEnv ();
27492 ;
27493 return 0;
27494}
27495_ACEOF
27496rm -f conftest.$ac_objext conftest$ac_exeext
27497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27498 (eval $ac_link) 2>conftest.er1
a848cd7e 27499 ac_status=$?
ac1cb8d3
VS
27500 grep -v '^ *+' conftest.er1 >conftest.err
27501 rm -f conftest.er1
27502 cat conftest.err >&5
a848cd7e
SC
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); } &&
89be85c2
VS
27505 { ac_try='test -z "$ac_c_werror_flag"
27506 || test ! -s conftest.err'
ac1cb8d3
VS
27507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508 (eval $ac_try) 2>&5
27509 ac_status=$?
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); }; } &&
27512 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514 (eval $ac_try) 2>&5
27515 ac_status=$?
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); }; }; then
27518 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27519else
27520 echo "$as_me: failed program was:" >&5
27521sed 's/^/| /' conftest.$ac_ext >&5
27522
27523ac_cv_lib_unixodbc_SQLAllocEnv=no
27524fi
ac1cb8d3
VS
27525rm -f conftest.err conftest.$ac_objext \
27526 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27527LIBS=$ac_check_lib_save_LIBS
27528fi
27529echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27530echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27531if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27532 ODBC_LINK=" -lunixodbc"
27533else
27534
27535 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27536echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27537if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27539else
27540 ac_check_lib_save_LIBS=$LIBS
27541LIBS="-lodbc $LIBS"
27542cat >conftest.$ac_ext <<_ACEOF
27543/* confdefs.h. */
27544_ACEOF
27545cat confdefs.h >>conftest.$ac_ext
27546cat >>conftest.$ac_ext <<_ACEOF
27547/* end confdefs.h. */
27548
27549/* Override any gcc2 internal prototype to avoid an error. */
27550#ifdef __cplusplus
27551extern "C"
27552#endif
27553/* We use char because int might match the return type of a gcc2
27554 builtin and then its argument prototype would still apply. */
27555char SQLAllocEnv ();
27556int
27557main ()
27558{
27559SQLAllocEnv ();
27560 ;
27561 return 0;
27562}
27563_ACEOF
27564rm -f conftest.$ac_objext conftest$ac_exeext
27565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27566 (eval $ac_link) 2>conftest.er1
a848cd7e 27567 ac_status=$?
ac1cb8d3
VS
27568 grep -v '^ *+' conftest.er1 >conftest.err
27569 rm -f conftest.er1
27570 cat conftest.err >&5
a848cd7e
SC
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } &&
89be85c2
VS
27573 { ac_try='test -z "$ac_c_werror_flag"
27574 || test ! -s conftest.err'
ac1cb8d3
VS
27575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27586 ac_cv_lib_odbc_SQLAllocEnv=yes
27587else
27588 echo "$as_me: failed program was:" >&5
27589sed 's/^/| /' conftest.$ac_ext >&5
27590
27591ac_cv_lib_odbc_SQLAllocEnv=no
27592fi
ac1cb8d3
VS
27593rm -f conftest.err conftest.$ac_objext \
27594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27595LIBS=$ac_check_lib_save_LIBS
27596fi
27597echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27598echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27599if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27600 ODBC_LINK=" -lodbc"
27601fi
27602
27603
27604fi
27605
27606
27607fi
27608
27609 fi
27610 if test "x$ODBC_LINK" = "x" ; then
27611 if test "$wxUSE_ODBC" = "sys" ; then
27612 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27613echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27614 { (exit 1); exit 1; }; }
27615 else
27616 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27617echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27618 wxUSE_ODBC=builtin
27619 fi
27620 else
27621 wxUSE_ODBC=sys
27622 fi
27623 fi
27624 if test "$wxUSE_ODBC" != "no" ; then
27625 cat >>confdefs.h <<\_ACEOF
27626#define wxUSE_ODBC 1
27627_ACEOF
27628
27629 if test "$wxUSE_ODBC" = "builtin" ; then
27630 cat >>confdefs.h <<\_ACEOF
27631#define wxUSE_BUILTIN_IODBC 1
27632_ACEOF
27633
27634 fi
27635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27636
27637 WXODBCFLAG="-D_IODBC_"
27638 fi
27639fi
27640
a848cd7e 27641
01cb68df 27642
a848cd7e 27643if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27644 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27645 echo "$as_me:$LINENO: checking for Xinerama" >&5
27646echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27647
27648ac_find_libraries=
27649for ac_dir in $SEARCH_LIB /usr/lib;
27650 do
27651 for ac_extension in a so sl dylib; do
27652 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27653 ac_find_libraries=$ac_dir
27654 break 2
27655 fi
27656 done
27657 done
27658
27659 if test "$ac_find_libraries" != "" ; then
27660
27661 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27662 result=$?
27663 if test $result = 0; then
27664 ac_path_to_link=""
27665 else
27666 ac_path_to_link=" -L$ac_find_libraries"
27667 fi
27668
27669 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27670 LDFLAGS="$LDFLAGS $ac_path_to_link"
27671 fi
27672 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27673 echo "$as_me:$LINENO: result: yes" >&5
27674echo "${ECHO_T}yes" >&6
27675
27676 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27677echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27678
27679ac_find_libraries=
27680for ac_dir in $SEARCH_LIB /usr/lib;
27681 do
27682 for ac_extension in a so sl dylib; do
27683 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27684 ac_find_libraries=$ac_dir
27685 break 2
27686 fi
27687 done
27688 done
27689
27690 if test "$ac_find_libraries" != "" ; then
27691 echo "$as_me:$LINENO: result: yes" >&5
27692echo "${ECHO_T}yes" >&6
27693
27694for ac_header in X11/extensions/xf86vmode.h
27695do
27696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27697echo "$as_me:$LINENO: checking for $ac_header" >&5
27698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27699if eval "test \"\${$as_ac_Header+set}\" = set"; then
27700 echo $ECHO_N "(cached) $ECHO_C" >&6
27701else
27702 cat >conftest.$ac_ext <<_ACEOF
27703/* confdefs.h. */
27704_ACEOF
27705cat confdefs.h >>conftest.$ac_ext
27706cat >>conftest.$ac_ext <<_ACEOF
27707/* end confdefs.h. */
27708
27709 #if HAVE_X11_XLIB_H
27710 #include <X11/Xlib.h>
27711 #endif
27712
27713
27714#include <$ac_header>
27715_ACEOF
27716rm -f conftest.$ac_objext
27717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27718 (eval $ac_compile) 2>conftest.er1
a848cd7e 27719 ac_status=$?
ac1cb8d3
VS
27720 grep -v '^ *+' conftest.er1 >conftest.err
27721 rm -f conftest.er1
27722 cat conftest.err >&5
a848cd7e
SC
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); } &&
89be85c2
VS
27725 { ac_try='test -z "$ac_c_werror_flag"
27726 || test ! -s conftest.err'
ac1cb8d3
VS
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27729 ac_status=$?
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; } &&
27732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27734 (eval $ac_try) 2>&5
27735 ac_status=$?
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; }; then
27738 eval "$as_ac_Header=yes"
27739else
27740 echo "$as_me: failed program was:" >&5
27741sed 's/^/| /' conftest.$ac_ext >&5
27742
27743eval "$as_ac_Header=no"
27744fi
ac1cb8d3 27745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27746fi
27747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27749if test `eval echo '${'$as_ac_Header'}'` = yes; then
27750 cat >>confdefs.h <<_ACEOF
27751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27752_ACEOF
27753
27754 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27755
27756fi
27757
27758done
27759
27760 else
27761 echo "$as_me:$LINENO: result: no" >&5
27762echo "${ECHO_T}no" >&6
27763 fi
27764
27765 else
27766 echo "$as_me:$LINENO: result: no" >&5
27767echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27768 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27769echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27770 wxUSE_DISPLAY="no"
27771 fi
01cb68df
RG
27772 elif test "$wxUSE_MSW" = 1; then
27773
27774
27775for ac_header in multimon.h ddraw.h
27776do
27777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27778echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27780if eval "test \"\${$as_ac_Header+set}\" = set"; then
27781 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27782else
5294a27e 27783 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27784/* confdefs.h. */
27785_ACEOF
27786cat confdefs.h >>conftest.$ac_ext
27787cat >>conftest.$ac_ext <<_ACEOF
27788/* end confdefs.h. */
5294a27e
VZ
27789#include <windows.h>
27790
01cb68df
RG
27791#include <$ac_header>
27792_ACEOF
27793rm -f conftest.$ac_objext
27794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27795 (eval $ac_compile) 2>conftest.er1
01cb68df 27796 ac_status=$?
ac1cb8d3
VS
27797 grep -v '^ *+' conftest.er1 >conftest.err
27798 rm -f conftest.er1
27799 cat conftest.err >&5
01cb68df
RG
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); } &&
89be85c2
VS
27802 { ac_try='test -z "$ac_c_werror_flag"
27803 || test ! -s conftest.err'
ac1cb8d3
VS
27804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27805 (eval $ac_try) 2>&5
27806 ac_status=$?
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); }; } &&
27809 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811 (eval $ac_try) 2>&5
27812 ac_status=$?
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); }; }; then
5294a27e 27815 eval "$as_ac_Header=yes"
01cb68df
RG
27816else
27817 echo "$as_me: failed program was:" >&5
27818sed 's/^/| /' conftest.$ac_ext >&5
27819
5294a27e 27820eval "$as_ac_Header=no"
01cb68df 27821fi
ac1cb8d3 27822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27823fi
27824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27826if test `eval echo '${'$as_ac_Header'}'` = yes; then
27827 cat >>confdefs.h <<_ACEOF
27828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27829_ACEOF
27830
27831else
27832
5294a27e
VZ
27833 wxUSE_DISPLAY="no"
27834 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27835echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27836
27837fi
27838
27839done
27840
a848cd7e
SC
27841 fi
27842fi
27843
27844
27845USE_OPENGL=0
27846if test "$wxUSE_OPENGL" = "yes"; then
27847 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27848 OPENGL_LIBS="-framework OpenGL -framework AGL"
27849 elif test "$wxUSE_MSW" = 1; then
27850 OPENGL_LIBS="-lopengl32 -lglu32"
27851 else
27852
27853
27854ac_find_includes=
27855for ac_dir in $SEARCH_INCLUDE /usr/include;
27856 do
27857 if test -f "$ac_dir/GL/gl.h"; then
27858 ac_find_includes=$ac_dir
27859 break
27860 fi
27861 done
27862
27863 if test "$ac_find_includes" != "" ; then
27864 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27865echo "${ECHO_T}found in $ac_find_includes" >&6
27866
27867 if test "x$ac_find_includes" = "x/usr/include"; then
27868 ac_path_to_include=""
27869 else
27870 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27871 result=$?
27872 if test $result = 0; then
27873 ac_path_to_include=""
27874 else
27875 ac_path_to_include=" -I$ac_find_includes"
27876 fi
27877 fi
27878
27879 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27880 fi
27881
27882 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27883 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27884echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27885if test "${ac_cv_header_GL_gl_h+set}" = set; then
27886 echo $ECHO_N "(cached) $ECHO_C" >&6
27887fi
27888echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27889echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27890else
27891 # Is the header compilable?
27892echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27893echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27894cat >conftest.$ac_ext <<_ACEOF
27895/* confdefs.h. */
27896_ACEOF
27897cat confdefs.h >>conftest.$ac_ext
27898cat >>conftest.$ac_ext <<_ACEOF
27899/* end confdefs.h. */
27900$ac_includes_default
27901#include <GL/gl.h>
27902_ACEOF
27903rm -f conftest.$ac_objext
27904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27905 (eval $ac_compile) 2>conftest.er1
a848cd7e 27906 ac_status=$?
ac1cb8d3
VS
27907 grep -v '^ *+' conftest.er1 >conftest.err
27908 rm -f conftest.er1
27909 cat conftest.err >&5
a848cd7e
SC
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); } &&
89be85c2
VS
27912 { ac_try='test -z "$ac_c_werror_flag"
27913 || test ! -s conftest.err'
ac1cb8d3
VS
27914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27915 (eval $ac_try) 2>&5
27916 ac_status=$?
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); }; } &&
27919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27921 (eval $ac_try) 2>&5
27922 ac_status=$?
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); }; }; then
27925 ac_header_compiler=yes
27926else
27927 echo "$as_me: failed program was:" >&5
27928sed 's/^/| /' conftest.$ac_ext >&5
27929
27930ac_header_compiler=no
27931fi
ac1cb8d3 27932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27933echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27934echo "${ECHO_T}$ac_header_compiler" >&6
27935
27936# Is the header present?
27937echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27938echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27939cat >conftest.$ac_ext <<_ACEOF
27940/* confdefs.h. */
27941_ACEOF
27942cat confdefs.h >>conftest.$ac_ext
27943cat >>conftest.$ac_ext <<_ACEOF
27944/* end confdefs.h. */
27945#include <GL/gl.h>
27946_ACEOF
27947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27949 ac_status=$?
27950 grep -v '^ *+' conftest.er1 >conftest.err
27951 rm -f conftest.er1
27952 cat conftest.err >&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); } >/dev/null; then
27955 if test -s conftest.err; then
27956 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27958 else
27959 ac_cpp_err=
27960 fi
27961else
27962 ac_cpp_err=yes
27963fi
27964if test -z "$ac_cpp_err"; then
27965 ac_header_preproc=yes
27966else
27967 echo "$as_me: failed program was:" >&5
27968sed 's/^/| /' conftest.$ac_ext >&5
27969
27970 ac_header_preproc=no
27971fi
27972rm -f conftest.err conftest.$ac_ext
27973echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27974echo "${ECHO_T}$ac_header_preproc" >&6
27975
27976# So? What about this header?
ac1cb8d3
VS
27977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27978 yes:no: )
a848cd7e
SC
27979 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27980echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27981 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27982echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27983 ac_header_preproc=yes
a848cd7e 27984 ;;
ac1cb8d3 27985 no:yes:* )
a848cd7e
SC
27986 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27987echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27988 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27989echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27990 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27991echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27992 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27993echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27994 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27995echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27996 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27997echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27998 (
27999 cat <<\_ASBOX
ac1cb8d3
VS
28000## ----------------------------------------- ##
28001## Report this to wx-dev@lists.wxwidgets.org ##
28002## ----------------------------------------- ##
a848cd7e
SC
28003_ASBOX
28004 ) |
28005 sed "s/^/$as_me: WARNING: /" >&2
28006 ;;
28007esac
28008echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28009echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28010if test "${ac_cv_header_GL_gl_h+set}" = set; then
28011 echo $ECHO_N "(cached) $ECHO_C" >&6
28012else
28013 ac_cv_header_GL_gl_h=$ac_header_preproc
28014fi
28015echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28016echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28017
28018fi
28019if test $ac_cv_header_GL_gl_h = yes; then
28020
28021 found_gl=0
28022
28023 echo "$as_me:$LINENO: checking for -lGL" >&5
28024echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28025
28026ac_find_libraries=
28027for ac_dir in $SEARCH_LIB /usr/lib;
28028 do
28029 for ac_extension in a so sl dylib; do
28030 if test -f "$ac_dir/libGL.$ac_extension"; then
28031 ac_find_libraries=$ac_dir
28032 break 2
28033 fi
28034 done
28035 done
28036
28037 if test "$ac_find_libraries" != "" ; then
28038
28039 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28040 result=$?
28041 if test $result = 0; then
28042 ac_path_to_link=""
28043 else
28044 ac_path_to_link=" -L$ac_find_libraries"
28045 fi
28046
28047 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28048 LDFLAGS_GL="$ac_path_to_link"
28049 fi
28050
28051
28052ac_find_libraries=
28053for ac_dir in $SEARCH_LIB /usr/lib;
28054 do
28055 for ac_extension in a so sl dylib; do
28056 if test -f "$ac_dir/libGLU.$ac_extension"; then
28057 ac_find_libraries=$ac_dir
28058 break 2
28059 fi
28060 done
28061 done
28062
28063 if test "$ac_find_libraries" != "" ; then
28064
28065 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28066 result=$?
28067 if test $result = 0; then
28068 ac_path_to_link=""
28069 else
28070 ac_path_to_link=" -L$ac_find_libraries"
28071 fi
28072
28073 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28074 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28075 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28076 fi
28077
28078 found_gl=1
28079 OPENGL_LIBS="-lGL -lGLU"
28080 echo "$as_me:$LINENO: result: yes" >&5
28081echo "${ECHO_T}yes" >&6
28082 fi
28083 fi
28084
28085 if test "$found_gl" != 1; then
28086 echo "$as_me:$LINENO: result: no" >&5
28087echo "${ECHO_T}no" >&6
28088 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28089echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28090
28091ac_find_libraries=
28092for ac_dir in $SEARCH_LIB /usr/lib;
28093 do
28094 for ac_extension in a so sl dylib; do
28095 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28096 ac_find_libraries=$ac_dir
28097 break 2
28098 fi
28099 done
28100 done
28101
28102 if test "$ac_find_libraries" != "" ; then
28103
28104 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28105 result=$?
28106 if test $result = 0; then
28107 ac_path_to_link=""
28108 else
28109 ac_path_to_link=" -L$ac_find_libraries"
28110 fi
28111
28112 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28113 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28114 echo "$as_me:$LINENO: result: yes" >&5
28115echo "${ECHO_T}yes" >&6
28116 else
28117 echo "$as_me:$LINENO: result: no" >&5
28118echo "${ECHO_T}no" >&6
28119 fi
28120 fi
28121
28122fi
28123
28124
28125
28126 if test "x$OPENGL_LIBS" = "x"; then
28127 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28128echo "$as_me: error: OpenGL libraries not available" >&2;}
28129 { (exit 1); exit 1; }; }
28130 fi
28131 fi
28132
28133 if test "$wxUSE_OPENGL" = "yes"; then
28134 USE_OPENGL=1
28135 cat >>confdefs.h <<\_ACEOF
28136#define wxUSE_OPENGL 1
28137_ACEOF
28138
28139 cat >>confdefs.h <<\_ACEOF
28140#define wxUSE_GLCANVAS 1
28141_ACEOF
28142
28143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28144 fi
28145fi
28146
a848cd7e
SC
28147
28148if test -n "$TOOLKIT" ; then
28149 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28150fi
28151
a848cd7e
SC
28152
28153
28154if test "$wxUSE_SHARED" = "yes"; then
28155 case "${host}" in
28156 *-pc-msdosdjgpp )
28157 wxUSE_SHARED=no
28158 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28159echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28160 ;;
28161 esac
28162fi
28163
a848cd7e 28164if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28165
28166
28167 found_versioning=no
28168
28169
28170 if test $found_versioning = no ; then
28171 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28172echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28173if test "${wx_cv_version_script+set}" = set; then
28174 echo $ECHO_N "(cached) $ECHO_C" >&6
28175else
28176
28177 echo "VER_1 { *; };" >conftest.sym
28178 echo "int main() { return 0; }" >conftest.cpp
28179
28180 if { ac_try='
28181 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28182 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28184 (eval $ac_try) 2>&5
28185 ac_status=$?
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; } ; then
28188 if test -s conftest.stderr ; then
28189 wx_cv_version_script=no
28190 else
28191 wx_cv_version_script=yes
28192 fi
28193 else
28194 wx_cv_version_script=no
28195 fi
28196 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28197
28198fi
28199echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28200echo "${ECHO_T}$wx_cv_version_script" >&6
28201 if test $wx_cv_version_script = yes ; then
28202 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28203 fi
28204 fi
28205
28206
28207 case "${host}" in
28208 *-*-linux* | *-*-gnu* )
28209 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28210 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28211 ;;
28212
28213 *-*-solaris2* )
28214 if test "$GCC" = yes ; then
28215 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28216
28217 saveLdflags="$LDFLAGS"
28218 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28219 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28220echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28221 cat >conftest.$ac_ext <<_ACEOF
28222/* confdefs.h. */
28223_ACEOF
28224cat confdefs.h >>conftest.$ac_ext
28225cat >>conftest.$ac_ext <<_ACEOF
28226/* end confdefs.h. */
28227
28228int
28229main ()
28230{
28231
28232 ;
28233 return 0;
28234}
28235_ACEOF
28236rm -f conftest.$ac_objext conftest$ac_exeext
28237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28238 (eval $ac_link) 2>conftest.er1
a848cd7e 28239 ac_status=$?
ac1cb8d3
VS
28240 grep -v '^ *+' conftest.er1 >conftest.err
28241 rm -f conftest.er1
28242 cat conftest.err >&5
a848cd7e
SC
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); } &&
89be85c2
VS
28245 { ac_try='test -z "$ac_c_werror_flag"
28246 || test ! -s conftest.err'
ac1cb8d3
VS
28247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28248 (eval $ac_try) 2>&5
28249 ac_status=$?
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); }; } &&
28252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28254 (eval $ac_try) 2>&5
28255 ac_status=$?
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); }; }; then
28258
28259 echo "$as_me:$LINENO: result: yes" >&5
28260echo "${ECHO_T}yes" >&6
28261 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28262 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28263
28264else
28265 echo "$as_me: failed program was:" >&5
28266sed 's/^/| /' conftest.$ac_ext >&5
28267
28268
28269 echo "$as_me:$LINENO: result: no" >&5
28270echo "${ECHO_T}no" >&6
28271 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28272echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28273 LDFLAGS="$saveLdflags -Wl,-R,/"
28274 cat >conftest.$ac_ext <<_ACEOF
28275/* confdefs.h. */
28276_ACEOF
28277cat confdefs.h >>conftest.$ac_ext
28278cat >>conftest.$ac_ext <<_ACEOF
28279/* end confdefs.h. */
28280
28281int
28282main ()
28283{
28284
28285 ;
28286 return 0;
28287}
28288_ACEOF
28289rm -f conftest.$ac_objext conftest$ac_exeext
28290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28291 (eval $ac_link) 2>conftest.er1
a848cd7e 28292 ac_status=$?
ac1cb8d3
VS
28293 grep -v '^ *+' conftest.er1 >conftest.err
28294 rm -f conftest.er1
28295 cat conftest.err >&5
a848cd7e
SC
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); } &&
89be85c2
VS
28298 { ac_try='test -z "$ac_c_werror_flag"
28299 || test ! -s conftest.err'
ac1cb8d3
VS
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; } &&
28305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311
ffa0583f 28312 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28313echo "${ECHO_T}yes" >&6
ffa0583f
RL
28314 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28315 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28316
a848cd7e
SC
28317else
28318 echo "$as_me: failed program was:" >&5
28319sed 's/^/| /' conftest.$ac_ext >&5
28320
28321
28322 echo "$as_me:$LINENO: result: no" >&5
28323echo "${ECHO_T}no" >&6
28324
28325fi
ac1cb8d3
VS
28326rm -f conftest.err conftest.$ac_objext \
28327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28328
28329fi
ac1cb8d3
VS
28330rm -f conftest.err conftest.$ac_objext \
28331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28332 LDFLAGS="$saveLdflags"
28333 else
a848cd7e 28334 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28335 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28336 fi
28337 ;;
28338
28339 powerpc-*-darwin* )
28340 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28341 cat <<EOF >change-install-names
28342#!/bin/sh
28343libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28344inst_cmd="install_name_tool "
28345for i in \${libnames} ; do
28346 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28347done
28348\${inst_cmd} \${3}
28349EOF
28350 chmod +x change-install-names
28351 ;;
28352
28353 *-*-cygwin* | *-*-mingw32* )
28354 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28355 ;;
28356
81f90336
MW
28357 *-*-hpux* )
28358 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
28359 WXCONFIG_RPATH="-Wl,+b,\$libdir"
28360 ;;
28361
a848cd7e 28362 esac
ceec2216 28363
ffa0583f
RL
28364 if test $wxUSE_RPATH = "no"; then
28365 SAMPLES_RPATH_FLAG=''
28366 SAMPLES_RPATH_POSTLINK=''
28367 WXCONFIG_RPATH=''
28368 fi
28369
28370 SHARED=1
28371
28372else
28373
ceec2216
RL
28374 config_linkage_component="-static"
28375 SHARED=0
ffa0583f 28376
ceec2216 28377fi
a848cd7e 28378
a848cd7e 28379
ceec2216
RL
28380UNICODE=0
28381lib_unicode_suffix=
28382WX_CHARTYPE="ansi"
28383if test "$wxUSE_UNICODE" = "yes"; then
28384 lib_unicode_suffix=u
28385 WX_CHARTYPE="unicode"
28386 UNICODE=1
a848cd7e
SC
28387fi
28388
ceec2216
RL
28389lib_debug_suffix=
28390WX_DEBUGTYPE="release"
28391DEBUG_FLAG=0
28392if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28393 lib_debug_suffix=d
28394 WX_DEBUGTYPE="debug"
28395 DEBUG_FLAG=1
28396fi
a848cd7e 28397
ceec2216
RL
28398WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28399WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28400
ceec2216
RL
28401DEBUG_INFO=0
28402if test "$wxUSE_DEBUG_INFO" = "yes"; then
28403 DEBUG_INFO=1
28404fi
a848cd7e 28405
ceec2216 28406WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28407
ceec2216 28408TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28409
ceec2216 28410TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28411
ceec2216
RL
28412if test "$cross_compiling" = "yes"; then
28413 HOST_SUFFIX="-$host_alias"
28414 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28415 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28416fi
28417
dd21ced8 28418WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28419WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28420
28421
28422
a848cd7e 28423if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28424 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28425 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28426
a848cd7e 28427 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28428
28429 # Extract the first word of "Rez", so it can be a program name with args.
28430set dummy Rez; ac_word=$2
28431echo "$as_me:$LINENO: checking for $ac_word" >&5
28432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28433if test "${ac_cv_prog_RESCOMP+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436 if test -n "$RESCOMP"; then
28437 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28438else
28439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28440for as_dir in $PATH
28441do
28442 IFS=$as_save_IFS
28443 test -z "$as_dir" && as_dir=.
28444 for ac_exec_ext in '' $ac_executable_extensions; do
28445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28446 ac_cv_prog_RESCOMP="Rez"
28447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28448 break 2
28449 fi
28450done
28451done
28452
28453 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28454fi
28455fi
28456RESCOMP=$ac_cv_prog_RESCOMP
28457if test -n "$RESCOMP"; then
28458 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28459echo "${ECHO_T}$RESCOMP" >&6
28460else
28461 echo "$as_me:$LINENO: result: no" >&5
28462echo "${ECHO_T}no" >&6
28463fi
28464
28465 # Extract the first word of "DeRez", so it can be a program name with args.
28466set dummy DeRez; ac_word=$2
28467echo "$as_me:$LINENO: checking for $ac_word" >&5
28468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28469if test "${ac_cv_prog_DEREZ+set}" = set; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28471else
28472 if test -n "$DEREZ"; then
28473 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28474else
28475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28476for as_dir in $PATH
28477do
28478 IFS=$as_save_IFS
28479 test -z "$as_dir" && as_dir=.
28480 for ac_exec_ext in '' $ac_executable_extensions; do
28481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28482 ac_cv_prog_DEREZ="DeRez"
28483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28484 break 2
28485 fi
28486done
28487done
28488
28489 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28490fi
28491fi
28492DEREZ=$ac_cv_prog_DEREZ
28493if test -n "$DEREZ"; then
28494 echo "$as_me:$LINENO: result: $DEREZ" >&5
28495echo "${ECHO_T}$DEREZ" >&6
28496else
28497 echo "$as_me:$LINENO: result: no" >&5
28498echo "${ECHO_T}no" >&6
28499fi
28500
28501 # Extract the first word of "SetFile", so it can be a program name with args.
28502set dummy SetFile; ac_word=$2
28503echo "$as_me:$LINENO: checking for $ac_word" >&5
28504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28505if test "${ac_cv_prog_SETFILE+set}" = set; then
28506 echo $ECHO_N "(cached) $ECHO_C" >&6
28507else
28508 if test -n "$SETFILE"; then
28509 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28510else
28511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28512for as_dir in $PATH
28513do
28514 IFS=$as_save_IFS
28515 test -z "$as_dir" && as_dir=.
28516 for ac_exec_ext in '' $ac_executable_extensions; do
28517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28518 ac_cv_prog_SETFILE="SetFile"
28519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28520 break 2
28521 fi
28522done
28523done
28524
28525 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28526fi
28527fi
28528SETFILE=$ac_cv_prog_SETFILE
28529if test -n "$SETFILE"; then
28530 echo "$as_me:$LINENO: result: $SETFILE" >&5
28531echo "${ECHO_T}$SETFILE" >&6
28532else
28533 echo "$as_me:$LINENO: result: no" >&5
28534echo "${ECHO_T}no" >&6
28535fi
28536
28537
28538 MACSETFILE="\$(SETFILE)"
28539
28540 if test "$wxUSE_MAC" = 1; then
28541 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28542
28543 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28544 else
28545 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28546 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28547 fi
28548else
ffa0583f
RL
28549 MACSETFILE="@true"
28550 MACRESWXCONFIG="@true"
a848cd7e
SC
28551
28552 if test "$wxUSE_PM" = 1; then
28553 MACRESCOMP="emxbind -ep"
28554 else
ffa0583f 28555 MACRESCOMP="@true"
a848cd7e
SC
28556 fi
28557fi
28558
28559
28560
28561echo "$as_me:$LINENO: checking for mode_t" >&5
28562echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28563if test "${ac_cv_type_mode_t+set}" = set; then
28564 echo $ECHO_N "(cached) $ECHO_C" >&6
28565else
28566 cat >conftest.$ac_ext <<_ACEOF
28567/* confdefs.h. */
28568_ACEOF
28569cat confdefs.h >>conftest.$ac_ext
28570cat >>conftest.$ac_ext <<_ACEOF
28571/* end confdefs.h. */
28572$ac_includes_default
28573int
28574main ()
28575{
28576if ((mode_t *) 0)
28577 return 0;
28578if (sizeof (mode_t))
28579 return 0;
28580 ;
28581 return 0;
28582}
28583_ACEOF
28584rm -f conftest.$ac_objext
28585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28586 (eval $ac_compile) 2>conftest.er1
a848cd7e 28587 ac_status=$?
ac1cb8d3
VS
28588 grep -v '^ *+' conftest.er1 >conftest.err
28589 rm -f conftest.er1
28590 cat conftest.err >&5
a848cd7e
SC
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); } &&
89be85c2
VS
28593 { ac_try='test -z "$ac_c_werror_flag"
28594 || test ! -s conftest.err'
ac1cb8d3
VS
28595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596 (eval $ac_try) 2>&5
28597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602 (eval $ac_try) 2>&5
28603 ac_status=$?
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; }; then
28606 ac_cv_type_mode_t=yes
28607else
28608 echo "$as_me: failed program was:" >&5
28609sed 's/^/| /' conftest.$ac_ext >&5
28610
28611ac_cv_type_mode_t=no
28612fi
ac1cb8d3 28613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28614fi
28615echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28616echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28617if test $ac_cv_type_mode_t = yes; then
28618 :
28619else
28620
28621cat >>confdefs.h <<_ACEOF
28622#define mode_t int
28623_ACEOF
28624
28625fi
28626
28627echo "$as_me:$LINENO: checking for off_t" >&5
28628echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28629if test "${ac_cv_type_off_t+set}" = set; then
28630 echo $ECHO_N "(cached) $ECHO_C" >&6
28631else
28632 cat >conftest.$ac_ext <<_ACEOF
28633/* confdefs.h. */
28634_ACEOF
28635cat confdefs.h >>conftest.$ac_ext
28636cat >>conftest.$ac_ext <<_ACEOF
28637/* end confdefs.h. */
28638$ac_includes_default
28639int
28640main ()
28641{
28642if ((off_t *) 0)
28643 return 0;
28644if (sizeof (off_t))
28645 return 0;
28646 ;
28647 return 0;
28648}
28649_ACEOF
28650rm -f conftest.$ac_objext
28651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28652 (eval $ac_compile) 2>conftest.er1
a848cd7e 28653 ac_status=$?
ac1cb8d3
VS
28654 grep -v '^ *+' conftest.er1 >conftest.err
28655 rm -f conftest.er1
28656 cat conftest.err >&5
a848cd7e
SC
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); } &&
89be85c2
VS
28659 { ac_try='test -z "$ac_c_werror_flag"
28660 || test ! -s conftest.err'
ac1cb8d3
VS
28661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662 (eval $ac_try) 2>&5
28663 ac_status=$?
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); }; } &&
28666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28668 (eval $ac_try) 2>&5
28669 ac_status=$?
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; }; then
28672 ac_cv_type_off_t=yes
28673else
28674 echo "$as_me: failed program was:" >&5
28675sed 's/^/| /' conftest.$ac_ext >&5
28676
28677ac_cv_type_off_t=no
28678fi
ac1cb8d3 28679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28680fi
28681echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28682echo "${ECHO_T}$ac_cv_type_off_t" >&6
28683if test $ac_cv_type_off_t = yes; then
28684 :
28685else
28686
28687cat >>confdefs.h <<_ACEOF
28688#define off_t long
28689_ACEOF
28690
28691fi
28692
28693echo "$as_me:$LINENO: checking for pid_t" >&5
28694echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28695if test "${ac_cv_type_pid_t+set}" = set; then
28696 echo $ECHO_N "(cached) $ECHO_C" >&6
28697else
28698 cat >conftest.$ac_ext <<_ACEOF
28699/* confdefs.h. */
28700_ACEOF
28701cat confdefs.h >>conftest.$ac_ext
28702cat >>conftest.$ac_ext <<_ACEOF
28703/* end confdefs.h. */
28704$ac_includes_default
28705int
28706main ()
28707{
28708if ((pid_t *) 0)
28709 return 0;
28710if (sizeof (pid_t))
28711 return 0;
28712 ;
28713 return 0;
28714}
28715_ACEOF
28716rm -f conftest.$ac_objext
28717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28718 (eval $ac_compile) 2>conftest.er1
a848cd7e 28719 ac_status=$?
ac1cb8d3
VS
28720 grep -v '^ *+' conftest.er1 >conftest.err
28721 rm -f conftest.er1
28722 cat conftest.err >&5
a848cd7e
SC
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); } &&
89be85c2
VS
28725 { ac_try='test -z "$ac_c_werror_flag"
28726 || test ! -s conftest.err'
ac1cb8d3
VS
28727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28728 (eval $ac_try) 2>&5
28729 ac_status=$?
28730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); }; } &&
28732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734 (eval $ac_try) 2>&5
28735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
28738 ac_cv_type_pid_t=yes
28739else
28740 echo "$as_me: failed program was:" >&5
28741sed 's/^/| /' conftest.$ac_ext >&5
28742
28743ac_cv_type_pid_t=no
28744fi
ac1cb8d3 28745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28746fi
28747echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28748echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28749if test $ac_cv_type_pid_t = yes; then
28750 :
28751else
28752
28753cat >>confdefs.h <<_ACEOF
28754#define pid_t int
28755_ACEOF
28756
28757fi
28758
28759echo "$as_me:$LINENO: checking for size_t" >&5
28760echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28761if test "${ac_cv_type_size_t+set}" = set; then
28762 echo $ECHO_N "(cached) $ECHO_C" >&6
28763else
28764 cat >conftest.$ac_ext <<_ACEOF
28765/* confdefs.h. */
28766_ACEOF
28767cat confdefs.h >>conftest.$ac_ext
28768cat >>conftest.$ac_ext <<_ACEOF
28769/* end confdefs.h. */
28770$ac_includes_default
28771int
28772main ()
28773{
28774if ((size_t *) 0)
28775 return 0;
28776if (sizeof (size_t))
28777 return 0;
28778 ;
28779 return 0;
28780}
28781_ACEOF
28782rm -f conftest.$ac_objext
28783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28784 (eval $ac_compile) 2>conftest.er1
a848cd7e 28785 ac_status=$?
ac1cb8d3
VS
28786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
a848cd7e
SC
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } &&
89be85c2
VS
28791 { ac_try='test -z "$ac_c_werror_flag"
28792 || test ! -s conftest.err'
ac1cb8d3
VS
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28795 ac_status=$?
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; } &&
28798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28801 ac_status=$?
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
28804 ac_cv_type_size_t=yes
28805else
28806 echo "$as_me: failed program was:" >&5
28807sed 's/^/| /' conftest.$ac_ext >&5
28808
28809ac_cv_type_size_t=no
28810fi
ac1cb8d3 28811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28812fi
28813echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28814echo "${ECHO_T}$ac_cv_type_size_t" >&6
28815if test $ac_cv_type_size_t = yes; then
28816 :
28817else
28818
28819cat >>confdefs.h <<_ACEOF
28820#define size_t unsigned
28821_ACEOF
28822
28823fi
28824
28825echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28826echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28827if test "${ac_cv_type_uid_t+set}" = set; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28829else
28830 cat >conftest.$ac_ext <<_ACEOF
28831/* confdefs.h. */
28832_ACEOF
28833cat confdefs.h >>conftest.$ac_ext
28834cat >>conftest.$ac_ext <<_ACEOF
28835/* end confdefs.h. */
28836#include <sys/types.h>
28837
28838_ACEOF
28839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28840 $EGREP "uid_t" >/dev/null 2>&1; then
28841 ac_cv_type_uid_t=yes
28842else
28843 ac_cv_type_uid_t=no
28844fi
28845rm -f conftest*
28846
28847fi
28848echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28849echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28850if test $ac_cv_type_uid_t = no; then
28851
28852cat >>confdefs.h <<\_ACEOF
28853#define uid_t int
28854_ACEOF
28855
28856
28857cat >>confdefs.h <<\_ACEOF
28858#define gid_t int
28859_ACEOF
28860
28861fi
28862
28863
d51253e8
RL
28864echo "$as_me:$LINENO: checking for ssize_t" >&5
28865echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28866if test "${ac_cv_type_ssize_t+set}" = set; then
28867 echo $ECHO_N "(cached) $ECHO_C" >&6
28868else
28869 cat >conftest.$ac_ext <<_ACEOF
28870/* confdefs.h. */
28871_ACEOF
28872cat confdefs.h >>conftest.$ac_ext
28873cat >>conftest.$ac_ext <<_ACEOF
28874/* end confdefs.h. */
28875$ac_includes_default
28876int
28877main ()
28878{
28879if ((ssize_t *) 0)
28880 return 0;
28881if (sizeof (ssize_t))
28882 return 0;
28883 ;
28884 return 0;
28885}
28886_ACEOF
28887rm -f conftest.$ac_objext
28888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28889 (eval $ac_compile) 2>conftest.er1
28890 ac_status=$?
28891 grep -v '^ *+' conftest.er1 >conftest.err
28892 rm -f conftest.er1
28893 cat conftest.err >&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } &&
89be85c2
VS
28896 { ac_try='test -z "$ac_c_werror_flag"
28897 || test ! -s conftest.err'
d51253e8
RL
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; } &&
28903 { ac_try='test -s conftest.$ac_objext'
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28909 ac_cv_type_ssize_t=yes
28910else
28911 echo "$as_me: failed program was:" >&5
28912sed 's/^/| /' conftest.$ac_ext >&5
28913
28914ac_cv_type_ssize_t=no
28915fi
28916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28917fi
28918echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28919echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28920if test $ac_cv_type_ssize_t = yes; then
28921
28922cat >>confdefs.h <<_ACEOF
28923#define HAVE_SSIZE_T 1
28924_ACEOF
28925
28926
28927fi
28928
28929
a848cd7e
SC
28930
28931
28932ac_ext=cc
28933ac_cpp='$CXXCPP $CPPFLAGS'
28934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28937
28938echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28939echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28940if test "${wx_cv_size_t_is_uint+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942else
28943
28944 cat >conftest.$ac_ext <<_ACEOF
28945/* confdefs.h. */
28946_ACEOF
28947cat confdefs.h >>conftest.$ac_ext
28948cat >>conftest.$ac_ext <<_ACEOF
28949/* end confdefs.h. */
28950#include <stddef.h>
28951int
28952main ()
28953{
28954
28955 return 0; }
28956
28957 struct Foo { void foo(size_t); void foo(unsigned int); };
28958
28959 int bar() {
28960
28961 ;
28962 return 0;
28963}
28964_ACEOF
28965rm -f conftest.$ac_objext
28966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28967 (eval $ac_compile) 2>conftest.er1
a848cd7e 28968 ac_status=$?
ac1cb8d3
VS
28969 grep -v '^ *+' conftest.er1 >conftest.err
28970 rm -f conftest.er1
28971 cat conftest.err >&5
a848cd7e
SC
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); } &&
89be85c2
VS
28974 { ac_try='test -z "$ac_cxx_werror_flag"
28975 || test ! -s conftest.err'
ac1cb8d3
VS
28976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977 (eval $ac_try) 2>&5
28978 ac_status=$?
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; } &&
28981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983 (eval $ac_try) 2>&5
28984 ac_status=$?
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); }; }; then
28987 wx_cv_size_t_is_uint=no
28988else
28989 echo "$as_me: failed program was:" >&5
28990sed 's/^/| /' conftest.$ac_ext >&5
28991
28992wx_cv_size_t_is_uint=yes
28993
28994fi
ac1cb8d3 28995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28996
28997
28998fi
28999echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29000echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29001
29002if test "$wx_cv_size_t_is_uint" = "yes"; then
29003 cat >>confdefs.h <<\_ACEOF
29004#define wxSIZE_T_IS_UINT 1
29005_ACEOF
29006
29007else
29008 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29009echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29010if test "${wx_cv_size_t_is_ulong+set}" = set; then
29011 echo $ECHO_N "(cached) $ECHO_C" >&6
29012else
29013 cat >conftest.$ac_ext <<_ACEOF
29014/* confdefs.h. */
29015_ACEOF
29016cat confdefs.h >>conftest.$ac_ext
29017cat >>conftest.$ac_ext <<_ACEOF
29018/* end confdefs.h. */
29019#include <stddef.h>
29020int
29021main ()
29022{
29023
29024 return 0; }
29025
29026 struct Foo { void foo(size_t); void foo(unsigned long); };
29027
29028 int bar() {
29029
29030 ;
29031 return 0;
29032}
29033_ACEOF
29034rm -f conftest.$ac_objext
29035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29036 (eval $ac_compile) 2>conftest.er1
a848cd7e 29037 ac_status=$?
ac1cb8d3
VS
29038 grep -v '^ *+' conftest.er1 >conftest.err
29039 rm -f conftest.er1
29040 cat conftest.err >&5
a848cd7e
SC
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); } &&
89be85c2
VS
29043 { ac_try='test -z "$ac_cxx_werror_flag"
29044 || test ! -s conftest.err'
ac1cb8d3
VS
29045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29046 (eval $ac_try) 2>&5
29047 ac_status=$?
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); }; } &&
29050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29052 (eval $ac_try) 2>&5
29053 ac_status=$?
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); }; }; then
29056 wx_cv_size_t_is_ulong=no
29057else
29058 echo "$as_me: failed program was:" >&5
29059sed 's/^/| /' conftest.$ac_ext >&5
29060
29061wx_cv_size_t_is_ulong=yes
29062
29063fi
ac1cb8d3 29064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29065
29066fi
29067echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29068echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29069
29070 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29071 cat >>confdefs.h <<\_ACEOF
29072#define wxSIZE_T_IS_ULONG 1
29073_ACEOF
29074
29075 fi
29076fi
29077
29078ac_ext=c
29079ac_cpp='$CPP $CPPFLAGS'
29080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29082ac_compiler_gnu=$ac_cv_c_compiler_gnu
29083
29084
29085
29086echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29087echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29088if test "${wx_cv_struct_pw_gecos+set}" = set; then
29089 echo $ECHO_N "(cached) $ECHO_C" >&6
29090else
29091
29092 cat >conftest.$ac_ext <<_ACEOF
29093/* confdefs.h. */
29094_ACEOF
29095cat confdefs.h >>conftest.$ac_ext
29096cat >>conftest.$ac_ext <<_ACEOF
29097/* end confdefs.h. */
29098#include <pwd.h>
29099int
29100main ()
29101{
29102
29103 char *p;
29104 struct passwd *pw;
29105 p = pw->pw_gecos;
29106
29107 ;
29108 return 0;
29109}
29110_ACEOF
29111rm -f conftest.$ac_objext
29112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29113 (eval $ac_compile) 2>conftest.er1
a848cd7e 29114 ac_status=$?
ac1cb8d3
VS
29115 grep -v '^ *+' conftest.er1 >conftest.err
29116 rm -f conftest.er1
29117 cat conftest.err >&5
a848cd7e
SC
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); } &&
89be85c2
VS
29120 { ac_try='test -z "$ac_c_werror_flag"
29121 || test ! -s conftest.err'
ac1cb8d3
VS
29122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29123 (eval $ac_try) 2>&5
29124 ac_status=$?
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; } &&
29127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29130 ac_status=$?
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; }; then
29133
29134 wx_cv_struct_pw_gecos=yes
29135
29136else
29137 echo "$as_me: failed program was:" >&5
29138sed 's/^/| /' conftest.$ac_ext >&5
29139
29140
29141 wx_cv_struct_pw_gecos=no
29142
29143
29144fi
ac1cb8d3 29145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29146
29147
29148fi
29149echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29150echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29151
29152if test "$wx_cv_struct_pw_gecos" = "yes"; then
29153 cat >>confdefs.h <<\_ACEOF
29154#define HAVE_PW_GECOS 1
29155_ACEOF
29156
29157fi
29158
29159
29160if test "$wx_cv_sizeof_wchar_t" != "0"; then
29161 cat >>confdefs.h <<\_ACEOF
29162#define wxUSE_WCHAR_T 1
29163_ACEOF
29164
29165
29166 WCSLEN_FOUND=0
29167 WCHAR_LINK=
29168
29169for ac_func in wcslen
29170do
29171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29172echo "$as_me:$LINENO: checking for $ac_func" >&5
29173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29174if eval "test \"\${$as_ac_var+set}\" = set"; then
29175 echo $ECHO_N "(cached) $ECHO_C" >&6
29176else
29177 cat >conftest.$ac_ext <<_ACEOF
29178/* confdefs.h. */
29179_ACEOF
29180cat confdefs.h >>conftest.$ac_ext
29181cat >>conftest.$ac_ext <<_ACEOF
29182/* end confdefs.h. */
ac1cb8d3
VS
29183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29185#define $ac_func innocuous_$ac_func
29186
a848cd7e
SC
29187/* System header to define __stub macros and hopefully few prototypes,
29188 which can conflict with char $ac_func (); below.
29189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29190 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29191
a848cd7e
SC
29192#ifdef __STDC__
29193# include <limits.h>
29194#else
29195# include <assert.h>
29196#endif
ac1cb8d3
VS
29197
29198#undef $ac_func
29199
a848cd7e
SC
29200/* Override any gcc2 internal prototype to avoid an error. */
29201#ifdef __cplusplus
29202extern "C"
29203{
29204#endif
29205/* We use char because int might match the return type of a gcc2
29206 builtin and then its argument prototype would still apply. */
29207char $ac_func ();
29208/* The GNU C library defines this for functions which it implements
29209 to always fail with ENOSYS. Some functions are actually named
29210 something starting with __ and the normal name is an alias. */
29211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29212choke me
29213#else
29214char (*f) () = $ac_func;
29215#endif
29216#ifdef __cplusplus
29217}
29218#endif
29219
29220int
29221main ()
29222{
29223return f != $ac_func;
29224 ;
29225 return 0;
29226}
29227_ACEOF
29228rm -f conftest.$ac_objext conftest$ac_exeext
29229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29230 (eval $ac_link) 2>conftest.er1
a848cd7e 29231 ac_status=$?
ac1cb8d3
VS
29232 grep -v '^ *+' conftest.er1 >conftest.err
29233 rm -f conftest.er1
29234 cat conftest.err >&5
a848cd7e
SC
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); } &&
89be85c2
VS
29237 { ac_try='test -z "$ac_c_werror_flag"
29238 || test ! -s conftest.err'
ac1cb8d3
VS
29239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29240 (eval $ac_try) 2>&5
29241 ac_status=$?
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); }; } &&
29244 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29246 (eval $ac_try) 2>&5
29247 ac_status=$?
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
29250 eval "$as_ac_var=yes"
29251else
29252 echo "$as_me: failed program was:" >&5
29253sed 's/^/| /' conftest.$ac_ext >&5
29254
29255eval "$as_ac_var=no"
29256fi
ac1cb8d3
VS
29257rm -f conftest.err conftest.$ac_objext \
29258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29259fi
29260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29262if test `eval echo '${'$as_ac_var'}'` = yes; then
29263 cat >>confdefs.h <<_ACEOF
29264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29265_ACEOF
29266 WCSLEN_FOUND=1
29267fi
29268done
29269
29270
29271 if test "$WCSLEN_FOUND" = 0; then
29272 if test "$TOOLKIT" = "MSW"; then
29273 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29274echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29275if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29276 echo $ECHO_N "(cached) $ECHO_C" >&6
29277else
29278 ac_check_lib_save_LIBS=$LIBS
29279LIBS="-lmsvcrt $LIBS"
29280cat >conftest.$ac_ext <<_ACEOF
29281/* confdefs.h. */
29282_ACEOF
29283cat confdefs.h >>conftest.$ac_ext
29284cat >>conftest.$ac_ext <<_ACEOF
29285/* end confdefs.h. */
29286
29287/* Override any gcc2 internal prototype to avoid an error. */
29288#ifdef __cplusplus
29289extern "C"
29290#endif
29291/* We use char because int might match the return type of a gcc2
29292 builtin and then its argument prototype would still apply. */
29293char wcslen ();
29294int
29295main ()
29296{
29297wcslen ();
29298 ;
29299 return 0;
29300}
29301_ACEOF
29302rm -f conftest.$ac_objext conftest$ac_exeext
29303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29304 (eval $ac_link) 2>conftest.er1
a848cd7e 29305 ac_status=$?
ac1cb8d3
VS
29306 grep -v '^ *+' conftest.er1 >conftest.err
29307 rm -f conftest.er1
29308 cat conftest.err >&5
a848cd7e
SC
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } &&
89be85c2
VS
29311 { ac_try='test -z "$ac_c_werror_flag"
29312 || test ! -s conftest.err'
ac1cb8d3
VS
29313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314 (eval $ac_try) 2>&5
29315 ac_status=$?
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); }; } &&
29318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; }; then
29324 ac_cv_lib_msvcrt_wcslen=yes
29325else
29326 echo "$as_me: failed program was:" >&5
29327sed 's/^/| /' conftest.$ac_ext >&5
29328
29329ac_cv_lib_msvcrt_wcslen=no
29330fi
ac1cb8d3
VS
29331rm -f conftest.err conftest.$ac_objext \
29332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29333LIBS=$ac_check_lib_save_LIBS
29334fi
29335echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29336echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29337if test $ac_cv_lib_msvcrt_wcslen = yes; then
29338 WCHAR_OK=1
29339fi
29340
29341 else
29342 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29343echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29344if test "${ac_cv_lib_w_wcslen+set}" = set; then
29345 echo $ECHO_N "(cached) $ECHO_C" >&6
29346else
29347 ac_check_lib_save_LIBS=$LIBS
29348LIBS="-lw $LIBS"
29349cat >conftest.$ac_ext <<_ACEOF
29350/* confdefs.h. */
29351_ACEOF
29352cat confdefs.h >>conftest.$ac_ext
29353cat >>conftest.$ac_ext <<_ACEOF
29354/* end confdefs.h. */
29355
29356/* Override any gcc2 internal prototype to avoid an error. */
29357#ifdef __cplusplus
29358extern "C"
29359#endif
29360/* We use char because int might match the return type of a gcc2
29361 builtin and then its argument prototype would still apply. */
29362char wcslen ();
29363int
29364main ()
29365{
29366wcslen ();
29367 ;
29368 return 0;
29369}
29370_ACEOF
29371rm -f conftest.$ac_objext conftest$ac_exeext
29372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29373 (eval $ac_link) 2>conftest.er1
a848cd7e 29374 ac_status=$?
ac1cb8d3
VS
29375 grep -v '^ *+' conftest.er1 >conftest.err
29376 rm -f conftest.er1
29377 cat conftest.err >&5
a848cd7e
SC
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); } &&
89be85c2
VS
29380 { ac_try='test -z "$ac_c_werror_flag"
29381 || test ! -s conftest.err'
ac1cb8d3
VS
29382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29383 (eval $ac_try) 2>&5
29384 ac_status=$?
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; } &&
29387 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29389 (eval $ac_try) 2>&5
29390 ac_status=$?
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); }; }; then
29393 ac_cv_lib_w_wcslen=yes
29394else
29395 echo "$as_me: failed program was:" >&5
29396sed 's/^/| /' conftest.$ac_ext >&5
29397
29398ac_cv_lib_w_wcslen=no
29399fi
ac1cb8d3
VS
29400rm -f conftest.err conftest.$ac_objext \
29401 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29402LIBS=$ac_check_lib_save_LIBS
29403fi
29404echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29405echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29406if test $ac_cv_lib_w_wcslen = yes; then
29407
29408 WCHAR_LINK=" -lw"
29409 WCSLEN_FOUND=1
29410
29411fi
29412
29413 fi
29414 fi
29415
29416 if test "$WCSLEN_FOUND" = 1; then
29417 cat >>confdefs.h <<\_ACEOF
29418#define HAVE_WCSLEN 1
29419_ACEOF
29420
29421 fi
29422
81f90336 29423 if test "$USE_HPUX" = 1; then
473276a9
VS
29424 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29425 fi
29426
a848cd7e
SC
29427
29428for ac_func in wcsrtombs
29429do
29430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29431echo "$as_me:$LINENO: checking for $ac_func" >&5
29432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29433if eval "test \"\${$as_ac_var+set}\" = set"; then
29434 echo $ECHO_N "(cached) $ECHO_C" >&6
29435else
29436 cat >conftest.$ac_ext <<_ACEOF
29437/* confdefs.h. */
29438_ACEOF
29439cat confdefs.h >>conftest.$ac_ext
29440cat >>conftest.$ac_ext <<_ACEOF
29441/* end confdefs.h. */
ac1cb8d3
VS
29442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29444#define $ac_func innocuous_$ac_func
29445
a848cd7e
SC
29446/* System header to define __stub macros and hopefully few prototypes,
29447 which can conflict with char $ac_func (); below.
29448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29449 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29450
a848cd7e
SC
29451#ifdef __STDC__
29452# include <limits.h>
29453#else
29454# include <assert.h>
29455#endif
ac1cb8d3
VS
29456
29457#undef $ac_func
29458
a848cd7e
SC
29459/* Override any gcc2 internal prototype to avoid an error. */
29460#ifdef __cplusplus
29461extern "C"
29462{
29463#endif
29464/* We use char because int might match the return type of a gcc2
29465 builtin and then its argument prototype would still apply. */
29466char $ac_func ();
29467/* The GNU C library defines this for functions which it implements
29468 to always fail with ENOSYS. Some functions are actually named
29469 something starting with __ and the normal name is an alias. */
29470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29471choke me
29472#else
29473char (*f) () = $ac_func;
29474#endif
29475#ifdef __cplusplus
29476}
29477#endif
29478
29479int
29480main ()
29481{
29482return f != $ac_func;
29483 ;
29484 return 0;
29485}
29486_ACEOF
29487rm -f conftest.$ac_objext conftest$ac_exeext
29488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29489 (eval $ac_link) 2>conftest.er1
a848cd7e 29490 ac_status=$?
ac1cb8d3
VS
29491 grep -v '^ *+' conftest.er1 >conftest.err
29492 rm -f conftest.er1
29493 cat conftest.err >&5
a848cd7e
SC
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } &&
89be85c2
VS
29496 { ac_try='test -z "$ac_c_werror_flag"
29497 || test ! -s conftest.err'
ac1cb8d3
VS
29498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499 (eval $ac_try) 2>&5
29500 ac_status=$?
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); }; } &&
29503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505 (eval $ac_try) 2>&5
29506 ac_status=$?
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); }; }; then
29509 eval "$as_ac_var=yes"
29510else
29511 echo "$as_me: failed program was:" >&5
29512sed 's/^/| /' conftest.$ac_ext >&5
29513
29514eval "$as_ac_var=no"
29515fi
ac1cb8d3
VS
29516rm -f conftest.err conftest.$ac_objext \
29517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29518fi
29519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29521if test `eval echo '${'$as_ac_var'}'` = yes; then
29522 cat >>confdefs.h <<_ACEOF
29523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29524_ACEOF
29525
29526fi
29527done
29528
29529else
29530 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29531echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29532fi
29533
29534
29535
29536ac_ext=cc
29537ac_cpp='$CXXCPP $CPPFLAGS'
29538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29541
29542
29543
29544for ac_func in vsnprintf
29545do
29546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29547echo "$as_me:$LINENO: checking for $ac_func" >&5
29548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29549if eval "test \"\${$as_ac_var+set}\" = set"; then
29550 echo $ECHO_N "(cached) $ECHO_C" >&6
29551else
29552 cat >conftest.$ac_ext <<_ACEOF
29553/* confdefs.h. */
29554_ACEOF
29555cat confdefs.h >>conftest.$ac_ext
29556cat >>conftest.$ac_ext <<_ACEOF
29557/* end confdefs.h. */
ac1cb8d3
VS
29558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29560#define $ac_func innocuous_$ac_func
29561
a848cd7e
SC
29562/* System header to define __stub macros and hopefully few prototypes,
29563 which can conflict with char $ac_func (); below.
29564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29565 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29566
a848cd7e
SC
29567#ifdef __STDC__
29568# include <limits.h>
29569#else
29570# include <assert.h>
29571#endif
ac1cb8d3
VS
29572
29573#undef $ac_func
29574
a848cd7e
SC
29575/* Override any gcc2 internal prototype to avoid an error. */
29576#ifdef __cplusplus
29577extern "C"
29578{
29579#endif
29580/* We use char because int might match the return type of a gcc2
29581 builtin and then its argument prototype would still apply. */
29582char $ac_func ();
29583/* The GNU C library defines this for functions which it implements
29584 to always fail with ENOSYS. Some functions are actually named
29585 something starting with __ and the normal name is an alias. */
29586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29587choke me
29588#else
29589char (*f) () = $ac_func;
29590#endif
29591#ifdef __cplusplus
29592}
29593#endif
29594
29595int
29596main ()
29597{
29598return f != $ac_func;
29599 ;
29600 return 0;
29601}
29602_ACEOF
29603rm -f conftest.$ac_objext conftest$ac_exeext
29604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29605 (eval $ac_link) 2>conftest.er1
a848cd7e 29606 ac_status=$?
ac1cb8d3
VS
29607 grep -v '^ *+' conftest.er1 >conftest.err
29608 rm -f conftest.er1
29609 cat conftest.err >&5
a848cd7e
SC
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } &&
89be85c2
VS
29612 { ac_try='test -z "$ac_cxx_werror_flag"
29613 || test ! -s conftest.err'
ac1cb8d3
VS
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 eval "$as_ac_var=yes"
29626else
29627 echo "$as_me: failed program was:" >&5
29628sed 's/^/| /' conftest.$ac_ext >&5
29629
29630eval "$as_ac_var=no"
29631fi
ac1cb8d3
VS
29632rm -f conftest.err conftest.$ac_objext \
29633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29634fi
29635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29637if test `eval echo '${'$as_ac_var'}'` = yes; then
29638 cat >>confdefs.h <<_ACEOF
29639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29640_ACEOF
29641
29642fi
29643done
29644
29645
29646if test "$ac_cv_func_vsnprintf" = "yes"; then
29647 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29648echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29649if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29650 echo $ECHO_N "(cached) $ECHO_C" >&6
29651else
29652
29653 cat >conftest.$ac_ext <<_ACEOF
29654/* confdefs.h. */
29655_ACEOF
29656cat confdefs.h >>conftest.$ac_ext
29657cat >>conftest.$ac_ext <<_ACEOF
29658/* end confdefs.h. */
29659
29660 #include <stdio.h>
29661 #include <stdarg.h>
29662
29663int
29664main ()
29665{
29666
29667 char *buf;
29668 va_list ap;
29669 vsnprintf(buf, 10u, "%s", ap);
29670
29671 ;
29672 return 0;
29673}
29674_ACEOF
29675rm -f conftest.$ac_objext
29676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29677 (eval $ac_compile) 2>conftest.er1
a848cd7e 29678 ac_status=$?
ac1cb8d3
VS
29679 grep -v '^ *+' conftest.er1 >conftest.err
29680 rm -f conftest.er1
29681 cat conftest.err >&5
a848cd7e
SC
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); } &&
89be85c2
VS
29684 { ac_try='test -z "$ac_cxx_werror_flag"
29685 || test ! -s conftest.err'
ac1cb8d3
VS
29686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29687 (eval $ac_try) 2>&5
29688 ac_status=$?
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; } &&
29691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29693 (eval $ac_try) 2>&5
29694 ac_status=$?
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; }; then
29697 wx_cv_func_vsnprintf_decl=yes
29698else
29699 echo "$as_me: failed program was:" >&5
29700sed 's/^/| /' conftest.$ac_ext >&5
29701
c122b164
DE
29702
29703 cat >conftest.$ac_ext <<_ACEOF
29704/* confdefs.h. */
29705_ACEOF
29706cat confdefs.h >>conftest.$ac_ext
29707cat >>conftest.$ac_ext <<_ACEOF
29708/* end confdefs.h. */
29709
29710 #include <stdio.h>
29711 #include <stdarg.h>
29712 using namespace std;
29713
29714int
29715main ()
29716{
29717
29718 char *buf;
29719 va_list ap;
29720 vsnprintf(buf, 10u, "%s", ap);
29721
29722 ;
29723 return 0;
29724}
29725_ACEOF
29726rm -f conftest.$ac_objext
29727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29728 (eval $ac_compile) 2>conftest.er1
29729 ac_status=$?
29730 grep -v '^ *+' conftest.er1 >conftest.err
29731 rm -f conftest.er1
29732 cat conftest.err >&5
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); } &&
89be85c2
VS
29735 { ac_try='test -z "$ac_cxx_werror_flag"
29736 || test ! -s conftest.err'
c122b164
DE
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29739 ac_status=$?
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; } &&
29742 { ac_try='test -s conftest.$ac_objext'
29743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29744 (eval $ac_try) 2>&5
29745 ac_status=$?
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); }; }; then
29748 wx_cv_func_vsnprintf_decl=yes
29749else
29750 echo "$as_me: failed program was:" >&5
29751sed 's/^/| /' conftest.$ac_ext >&5
29752
a848cd7e
SC
29753wx_cv_func_vsnprintf_decl=no
29754
29755fi
ac1cb8d3 29756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29757
29758
c122b164
DE
29759fi
29760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29761
29762
a848cd7e
SC
29763fi
29764echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29765echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29766
29767 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29768 cat >>confdefs.h <<\_ACEOF
29769#define HAVE_VSNPRINTF_DECL 1
29770_ACEOF
29771
29772 fi
29773fi
29774
29775if test "$wxUSE_UNICODE" = yes; then
29776
29777
29778
fbe47c7b
VS
29779
29780
29781
29782for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29783do
29784as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29785echo "$as_me:$LINENO: checking for $ac_func" >&5
29786echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29787if eval "test \"\${$as_ac_var+set}\" = set"; then
29788 echo $ECHO_N "(cached) $ECHO_C" >&6
29789else
29790 cat >conftest.$ac_ext <<_ACEOF
29791/* confdefs.h. */
29792_ACEOF
29793cat confdefs.h >>conftest.$ac_ext
29794cat >>conftest.$ac_ext <<_ACEOF
29795/* end confdefs.h. */
ac1cb8d3
VS
29796/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29798#define $ac_func innocuous_$ac_func
29799
a848cd7e
SC
29800/* System header to define __stub macros and hopefully few prototypes,
29801 which can conflict with char $ac_func (); below.
29802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29803 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29804
a848cd7e
SC
29805#ifdef __STDC__
29806# include <limits.h>
29807#else
29808# include <assert.h>
29809#endif
ac1cb8d3
VS
29810
29811#undef $ac_func
29812
a848cd7e
SC
29813/* Override any gcc2 internal prototype to avoid an error. */
29814#ifdef __cplusplus
29815extern "C"
29816{
29817#endif
29818/* We use char because int might match the return type of a gcc2
29819 builtin and then its argument prototype would still apply. */
29820char $ac_func ();
29821/* The GNU C library defines this for functions which it implements
29822 to always fail with ENOSYS. Some functions are actually named
29823 something starting with __ and the normal name is an alias. */
29824#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29825choke me
29826#else
29827char (*f) () = $ac_func;
29828#endif
29829#ifdef __cplusplus
29830}
29831#endif
29832
29833int
29834main ()
29835{
29836return f != $ac_func;
29837 ;
29838 return 0;
29839}
29840_ACEOF
29841rm -f conftest.$ac_objext conftest$ac_exeext
29842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29843 (eval $ac_link) 2>conftest.er1
a848cd7e 29844 ac_status=$?
ac1cb8d3
VS
29845 grep -v '^ *+' conftest.er1 >conftest.err
29846 rm -f conftest.er1
29847 cat conftest.err >&5
a848cd7e
SC
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } &&
89be85c2
VS
29850 { ac_try='test -z "$ac_cxx_werror_flag"
29851 || test ! -s conftest.err'
ac1cb8d3
VS
29852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29853 (eval $ac_try) 2>&5
29854 ac_status=$?
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; } &&
29857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859 (eval $ac_try) 2>&5
29860 ac_status=$?
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; }; then
29863 eval "$as_ac_var=yes"
29864else
29865 echo "$as_me: failed program was:" >&5
29866sed 's/^/| /' conftest.$ac_ext >&5
29867
29868eval "$as_ac_var=no"
29869fi
ac1cb8d3
VS
29870rm -f conftest.err conftest.$ac_objext \
29871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29872fi
29873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29874echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29875if test `eval echo '${'$as_ac_var'}'` = yes; then
29876 cat >>confdefs.h <<_ACEOF
29877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29878_ACEOF
29879
29880fi
29881done
29882
29883
29884 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29885echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29886 cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
29892#include <wchar.h>
29893int
29894main ()
29895{
29896&_vsnwprintf;
29897 ;
29898 return 0;
29899}
29900_ACEOF
29901rm -f conftest.$ac_objext
29902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29903 (eval $ac_compile) 2>conftest.er1
a848cd7e 29904 ac_status=$?
ac1cb8d3
VS
29905 grep -v '^ *+' conftest.er1 >conftest.err
29906 rm -f conftest.er1
29907 cat conftest.err >&5
a848cd7e
SC
29908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909 (exit $ac_status); } &&
89be85c2
VS
29910 { ac_try='test -z "$ac_cxx_werror_flag"
29911 || test ! -s conftest.err'
ac1cb8d3
VS
29912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29913 (eval $ac_try) 2>&5
29914 ac_status=$?
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); }; } &&
29917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29919 (eval $ac_try) 2>&5
29920 ac_status=$?
29921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922 (exit $ac_status); }; }; then
29923 echo "$as_me:$LINENO: result: yes" >&5
29924echo "${ECHO_T}yes" >&6
29925 cat >>confdefs.h <<\_ACEOF
29926#define HAVE__VSNWPRINTF 1
29927_ACEOF
29928
29929else
29930 echo "$as_me: failed program was:" >&5
29931sed 's/^/| /' conftest.$ac_ext >&5
29932
29933echo "$as_me:$LINENO: result: no" >&5
29934echo "${ECHO_T}no" >&6
29935fi
ac1cb8d3 29936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29937fi
29938
29939ac_ext=c
29940ac_cpp='$CPP $CPPFLAGS'
29941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29943ac_compiler_gnu=$ac_cv_c_compiler_gnu
29944
29945
29946
29947
29948if test "$TOOLKIT" != "MSW"; then
29949
29950
29951
29952
29953ac_ext=cc
29954ac_cpp='$CXXCPP $CPPFLAGS'
29955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29958
29959
29960
29961
29962# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29963if test "${with_libiconv_prefix+set}" = set; then
29964 withval="$with_libiconv_prefix"
29965
29966 for dir in `echo "$withval" | tr : ' '`; do
29967 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29968 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29969 done
29970
29971fi;
29972
29973 echo "$as_me:$LINENO: checking for iconv" >&5
29974echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29975if test "${am_cv_func_iconv+set}" = set; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29977else
29978
29979 am_cv_func_iconv="no, consider installing GNU libiconv"
29980 am_cv_lib_iconv=no
29981 cat >conftest.$ac_ext <<_ACEOF
29982/* confdefs.h. */
29983_ACEOF
29984cat confdefs.h >>conftest.$ac_ext
29985cat >>conftest.$ac_ext <<_ACEOF
29986/* end confdefs.h. */
29987#include <stdlib.h>
29988#include <iconv.h>
29989int
29990main ()
29991{
29992iconv_t cd = iconv_open("","");
29993 iconv(cd,NULL,NULL,NULL,NULL);
29994 iconv_close(cd);
29995 ;
29996 return 0;
29997}
29998_ACEOF
29999rm -f conftest.$ac_objext conftest$ac_exeext
30000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30001 (eval $ac_link) 2>conftest.er1
a848cd7e 30002 ac_status=$?
ac1cb8d3
VS
30003 grep -v '^ *+' conftest.er1 >conftest.err
30004 rm -f conftest.er1
30005 cat conftest.err >&5
a848cd7e
SC
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); } &&
89be85c2
VS
30008 { ac_try='test -z "$ac_cxx_werror_flag"
30009 || test ! -s conftest.err'
ac1cb8d3
VS
30010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011 (eval $ac_try) 2>&5
30012 ac_status=$?
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; } &&
30015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017 (eval $ac_try) 2>&5
30018 ac_status=$?
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); }; }; then
30021 am_cv_func_iconv=yes
30022else
30023 echo "$as_me: failed program was:" >&5
30024sed 's/^/| /' conftest.$ac_ext >&5
30025
30026fi
ac1cb8d3
VS
30027rm -f conftest.err conftest.$ac_objext \
30028 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30029 if test "$am_cv_func_iconv" != yes; then
30030 am_save_LIBS="$LIBS"
30031 LIBS="$LIBS -liconv"
30032 cat >conftest.$ac_ext <<_ACEOF
30033/* confdefs.h. */
30034_ACEOF
30035cat confdefs.h >>conftest.$ac_ext
30036cat >>conftest.$ac_ext <<_ACEOF
30037/* end confdefs.h. */
30038#include <stdlib.h>
30039#include <iconv.h>
30040int
30041main ()
30042{
30043iconv_t cd = iconv_open("","");
30044 iconv(cd,NULL,NULL,NULL,NULL);
30045 iconv_close(cd);
30046 ;
30047 return 0;
30048}
30049_ACEOF
30050rm -f conftest.$ac_objext conftest$ac_exeext
30051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30052 (eval $ac_link) 2>conftest.er1
a848cd7e 30053 ac_status=$?
ac1cb8d3
VS
30054 grep -v '^ *+' conftest.er1 >conftest.err
30055 rm -f conftest.er1
30056 cat conftest.err >&5
a848cd7e
SC
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); } &&
89be85c2
VS
30059 { ac_try='test -z "$ac_cxx_werror_flag"
30060 || test ! -s conftest.err'
ac1cb8d3
VS
30061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30062 (eval $ac_try) 2>&5
30063 ac_status=$?
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; } &&
30066 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068 (eval $ac_try) 2>&5
30069 ac_status=$?
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); }; }; then
30072 am_cv_lib_iconv=yes
30073 am_cv_func_iconv=yes
30074else
30075 echo "$as_me: failed program was:" >&5
30076sed 's/^/| /' conftest.$ac_ext >&5
30077
30078fi
ac1cb8d3
VS
30079rm -f conftest.err conftest.$ac_objext \
30080 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30081 LIBS="$am_save_LIBS"
30082 fi
30083
30084fi
30085echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30086echo "${ECHO_T}$am_cv_func_iconv" >&6
30087 if test "$am_cv_func_iconv" = yes; then
30088
30089cat >>confdefs.h <<\_ACEOF
30090#define HAVE_ICONV 1
30091_ACEOF
30092
30093 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30094echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30095if test "${wx_cv_func_iconv_const+set}" = set; then
30096 echo $ECHO_N "(cached) $ECHO_C" >&6
30097else
30098 cat >conftest.$ac_ext <<_ACEOF
30099/* confdefs.h. */
30100_ACEOF
30101cat confdefs.h >>conftest.$ac_ext
30102cat >>conftest.$ac_ext <<_ACEOF
30103/* end confdefs.h. */
30104
30105#include <stdlib.h>
30106#include <iconv.h>
30107extern
30108#ifdef __cplusplus
30109"C"
30110#endif
30111#if defined(__STDC__) || defined(__cplusplus)
30112size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30113#else
30114size_t iconv();
30115#endif
30116
30117int
30118main ()
30119{
30120
30121 ;
30122 return 0;
30123}
30124_ACEOF
30125rm -f conftest.$ac_objext
30126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30127 (eval $ac_compile) 2>conftest.er1
a848cd7e 30128 ac_status=$?
ac1cb8d3
VS
30129 grep -v '^ *+' conftest.er1 >conftest.err
30130 rm -f conftest.er1
30131 cat conftest.err >&5
a848cd7e
SC
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); } &&
89be85c2
VS
30134 { ac_try='test -z "$ac_cxx_werror_flag"
30135 || test ! -s conftest.err'
ac1cb8d3
VS
30136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30137 (eval $ac_try) 2>&5
30138 ac_status=$?
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; } &&
30141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30143 (eval $ac_try) 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; }; then
30147 wx_cv_func_iconv_const="no"
30148else
30149 echo "$as_me: failed program was:" >&5
30150sed 's/^/| /' conftest.$ac_ext >&5
30151
30152wx_cv_func_iconv_const="yes"
30153
30154fi
ac1cb8d3 30155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30156
30157fi
30158echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30159echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30160
30161 iconv_const=
30162 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30163 iconv_const="const"
30164 fi
30165
30166
30167cat >>confdefs.h <<_ACEOF
30168#define ICONV_CONST $iconv_const
30169_ACEOF
30170
30171 fi
30172 LIBICONV=
30173 if test "$am_cv_lib_iconv" = yes; then
30174 LIBICONV="-liconv"
30175 fi
30176
30177
30178LIBS="$LIBICONV $LIBS"
30179ac_ext=c
30180ac_cpp='$CPP $CPPFLAGS'
30181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183ac_compiler_gnu=$ac_cv_c_compiler_gnu
30184
30185
30186if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30187
30188for ac_func in sigaction
30189do
30190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30191echo "$as_me:$LINENO: checking for $ac_func" >&5
30192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30193if eval "test \"\${$as_ac_var+set}\" = set"; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30195else
30196 cat >conftest.$ac_ext <<_ACEOF
30197/* confdefs.h. */
30198_ACEOF
30199cat confdefs.h >>conftest.$ac_ext
30200cat >>conftest.$ac_ext <<_ACEOF
30201/* end confdefs.h. */
ac1cb8d3
VS
30202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30204#define $ac_func innocuous_$ac_func
30205
a848cd7e
SC
30206/* System header to define __stub macros and hopefully few prototypes,
30207 which can conflict with char $ac_func (); below.
30208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30209 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30210
a848cd7e
SC
30211#ifdef __STDC__
30212# include <limits.h>
30213#else
30214# include <assert.h>
30215#endif
ac1cb8d3
VS
30216
30217#undef $ac_func
30218
a848cd7e
SC
30219/* Override any gcc2 internal prototype to avoid an error. */
30220#ifdef __cplusplus
30221extern "C"
30222{
30223#endif
30224/* We use char because int might match the return type of a gcc2
30225 builtin and then its argument prototype would still apply. */
30226char $ac_func ();
30227/* The GNU C library defines this for functions which it implements
30228 to always fail with ENOSYS. Some functions are actually named
30229 something starting with __ and the normal name is an alias. */
30230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30231choke me
30232#else
30233char (*f) () = $ac_func;
30234#endif
30235#ifdef __cplusplus
30236}
30237#endif
30238
30239int
30240main ()
30241{
30242return f != $ac_func;
30243 ;
30244 return 0;
30245}
30246_ACEOF
30247rm -f conftest.$ac_objext conftest$ac_exeext
30248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30249 (eval $ac_link) 2>conftest.er1
a848cd7e 30250 ac_status=$?
ac1cb8d3
VS
30251 grep -v '^ *+' conftest.er1 >conftest.err
30252 rm -f conftest.er1
30253 cat conftest.err >&5
a848cd7e
SC
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); } &&
89be85c2
VS
30256 { ac_try='test -z "$ac_c_werror_flag"
30257 || test ! -s conftest.err'
ac1cb8d3
VS
30258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259 (eval $ac_try) 2>&5
30260 ac_status=$?
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); }; } &&
30263 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30265 (eval $ac_try) 2>&5
30266 ac_status=$?
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); }; }; then
30269 eval "$as_ac_var=yes"
30270else
30271 echo "$as_me: failed program was:" >&5
30272sed 's/^/| /' conftest.$ac_ext >&5
30273
30274eval "$as_ac_var=no"
30275fi
ac1cb8d3
VS
30276rm -f conftest.err conftest.$ac_objext \
30277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30278fi
30279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30281if test `eval echo '${'$as_ac_var'}'` = yes; then
30282 cat >>confdefs.h <<_ACEOF
30283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30284_ACEOF
30285
30286fi
30287done
30288
30289
30290 if test "$ac_cv_func_sigaction" = "no"; then
30291 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30292echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30293 wxUSE_ON_FATAL_EXCEPTION=no
30294 fi
30295
30296 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30297
30298
30299 ac_ext=cc
30300ac_cpp='$CXXCPP $CPPFLAGS'
30301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30304
30305
30306 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30307echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30308if test "${wx_cv_type_sa_handler+set}" = set; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30310else
30311
30312 cat >conftest.$ac_ext <<_ACEOF
30313/* confdefs.h. */
30314_ACEOF
30315cat confdefs.h >>conftest.$ac_ext
30316cat >>conftest.$ac_ext <<_ACEOF
30317/* end confdefs.h. */
30318#include <signal.h>
30319int
30320main ()
30321{
30322
30323 extern void testSigHandler(int);
30324
30325 struct sigaction sa;
30326 sa.sa_handler = testSigHandler;
30327
30328 ;
30329 return 0;
30330}
30331_ACEOF
30332rm -f conftest.$ac_objext
30333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30334 (eval $ac_compile) 2>conftest.er1
a848cd7e 30335 ac_status=$?
ac1cb8d3
VS
30336 grep -v '^ *+' conftest.er1 >conftest.err
30337 rm -f conftest.er1
30338 cat conftest.err >&5
a848cd7e
SC
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); } &&
89be85c2
VS
30341 { ac_try='test -z "$ac_cxx_werror_flag"
30342 || test ! -s conftest.err'
ac1cb8d3
VS
30343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344 (eval $ac_try) 2>&5
30345 ac_status=$?
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; } &&
30348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30350 (eval $ac_try) 2>&5
30351 ac_status=$?
30352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353 (exit $ac_status); }; }; then
30354
30355 wx_cv_type_sa_handler=int
30356
30357else
30358 echo "$as_me: failed program was:" >&5
30359sed 's/^/| /' conftest.$ac_ext >&5
30360
30361
30362 wx_cv_type_sa_handler=void
30363
30364fi
ac1cb8d3 30365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30366
30367fi
30368echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30369echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30370
30371 ac_ext=c
30372ac_cpp='$CPP $CPPFLAGS'
30373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30375ac_compiler_gnu=$ac_cv_c_compiler_gnu
30376
30377
30378 cat >>confdefs.h <<_ACEOF
30379#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30380_ACEOF
30381
30382 fi
30383fi
30384
eaff0f0d
VZ
30385if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30386
30387
30388 ac_ext=cc
30389ac_cpp='$CXXCPP $CPPFLAGS'
30390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30393
30394
30395 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30396echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30397if test "${wx_cv_func_backtrace+set}" = set; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30399else
30400
30401 cat >conftest.$ac_ext <<_ACEOF
30402/* confdefs.h. */
30403_ACEOF
30404cat confdefs.h >>conftest.$ac_ext
30405cat >>conftest.$ac_ext <<_ACEOF
30406/* end confdefs.h. */
30407#include <execinfo.h>
30408int
30409main ()
30410{
30411
30412 void *trace[1];
30413 char **messages;
30414
30415 backtrace(trace, 1);
30416 messages = backtrace_symbols(trace, 1);
30417
30418 ;
30419 return 0;
30420}
30421_ACEOF
30422rm -f conftest.$ac_objext
30423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30424 (eval $ac_compile) 2>conftest.er1
30425 ac_status=$?
30426 grep -v '^ *+' conftest.er1 >conftest.err
30427 rm -f conftest.er1
30428 cat conftest.err >&5
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); } &&
89be85c2
VS
30431 { ac_try='test -z "$ac_cxx_werror_flag"
30432 || test ! -s conftest.err'
eaff0f0d
VZ
30433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30434 (eval $ac_try) 2>&5
30435 ac_status=$?
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; } &&
30438 { ac_try='test -s conftest.$ac_objext'
30439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440 (eval $ac_try) 2>&5
30441 ac_status=$?
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); }; }; then
30444 wx_cv_func_backtrace=yes
30445else
30446 echo "$as_me: failed program was:" >&5
30447sed 's/^/| /' conftest.$ac_ext >&5
30448
30449wx_cv_func_backtrace=no
30450
30451fi
30452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30453
30454
30455fi
30456echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30457echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30458
30459
30460 if test "$wx_cv_func_backtrace" = "no"; then
30461 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30462echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30463 wxUSE_STACKWALKER=no
30464 else
30465 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30466echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30467if test "${wx_cv_func_cxa_demangle+set}" = set; then
30468 echo $ECHO_N "(cached) $ECHO_C" >&6
30469else
30470
30471 cat >conftest.$ac_ext <<_ACEOF
30472/* confdefs.h. */
30473_ACEOF
30474cat confdefs.h >>conftest.$ac_ext
30475cat >>conftest.$ac_ext <<_ACEOF
30476/* end confdefs.h. */
30477#include <cxxabi.h>
30478int
30479main ()
30480{
30481
30482 int rc;
30483 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30484
30485 ;
30486 return 0;
30487}
30488_ACEOF
30489rm -f conftest.$ac_objext
30490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30491 (eval $ac_compile) 2>conftest.er1
30492 ac_status=$?
30493 grep -v '^ *+' conftest.er1 >conftest.err
30494 rm -f conftest.er1
30495 cat conftest.err >&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } &&
89be85c2
VS
30498 { ac_try='test -z "$ac_cxx_werror_flag"
30499 || test ! -s conftest.err'
eaff0f0d
VZ
30500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30501 (eval $ac_try) 2>&5
30502 ac_status=$?
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); }; } &&
30505 { ac_try='test -s conftest.$ac_objext'
30506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30507 (eval $ac_try) 2>&5
30508 ac_status=$?
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); }; }; then
30511 wx_cv_func_cxa_demangle=yes
30512else
30513 echo "$as_me: failed program was:" >&5
30514sed 's/^/| /' conftest.$ac_ext >&5
30515
30516wx_cv_func_cxa_demangle=no
30517
30518fi
30519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30520
30521
30522fi
30523echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30524echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30525
30526 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30527 cat >>confdefs.h <<\_ACEOF
30528#define HAVE_CXA_DEMANGLE 1
30529_ACEOF
30530
30531 fi
30532 fi
30533
30534 ac_ext=c
30535ac_cpp='$CPP $CPPFLAGS'
30536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30538ac_compiler_gnu=$ac_cv_c_compiler_gnu
30539
30540fi
30541
a848cd7e
SC
30542
30543
30544for ac_func in mkstemp mktemp
30545do
30546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30547echo "$as_me:$LINENO: checking for $ac_func" >&5
30548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30549if eval "test \"\${$as_ac_var+set}\" = set"; then
30550 echo $ECHO_N "(cached) $ECHO_C" >&6
30551else
30552 cat >conftest.$ac_ext <<_ACEOF
30553/* confdefs.h. */
30554_ACEOF
30555cat confdefs.h >>conftest.$ac_ext
30556cat >>conftest.$ac_ext <<_ACEOF
30557/* end confdefs.h. */
ac1cb8d3
VS
30558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30560#define $ac_func innocuous_$ac_func
30561
a848cd7e
SC
30562/* System header to define __stub macros and hopefully few prototypes,
30563 which can conflict with char $ac_func (); below.
30564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30565 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30566
a848cd7e
SC
30567#ifdef __STDC__
30568# include <limits.h>
30569#else
30570# include <assert.h>
30571#endif
ac1cb8d3
VS
30572
30573#undef $ac_func
30574
a848cd7e
SC
30575/* Override any gcc2 internal prototype to avoid an error. */
30576#ifdef __cplusplus
30577extern "C"
30578{
30579#endif
30580/* We use char because int might match the return type of a gcc2
30581 builtin and then its argument prototype would still apply. */
30582char $ac_func ();
30583/* The GNU C library defines this for functions which it implements
30584 to always fail with ENOSYS. Some functions are actually named
30585 something starting with __ and the normal name is an alias. */
30586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30587choke me
30588#else
30589char (*f) () = $ac_func;
30590#endif
30591#ifdef __cplusplus
30592}
30593#endif
30594
30595int
30596main ()
30597{
30598return f != $ac_func;
30599 ;
30600 return 0;
30601}
30602_ACEOF
30603rm -f conftest.$ac_objext conftest$ac_exeext
30604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30605 (eval $ac_link) 2>conftest.er1
a848cd7e 30606 ac_status=$?
ac1cb8d3
VS
30607 grep -v '^ *+' conftest.er1 >conftest.err
30608 rm -f conftest.er1
30609 cat conftest.err >&5
a848cd7e
SC
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); } &&
89be85c2
VS
30612 { ac_try='test -z "$ac_c_werror_flag"
30613 || test ! -s conftest.err'
ac1cb8d3
VS
30614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615 (eval $ac_try) 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; } &&
30619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30621 (eval $ac_try) 2>&5
30622 ac_status=$?
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); }; }; then
30625 eval "$as_ac_var=yes"
30626else
30627 echo "$as_me: failed program was:" >&5
30628sed 's/^/| /' conftest.$ac_ext >&5
30629
30630eval "$as_ac_var=no"
30631fi
ac1cb8d3
VS
30632rm -f conftest.err conftest.$ac_objext \
30633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30634fi
30635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30637if test `eval echo '${'$as_ac_var'}'` = yes; then
30638 cat >>confdefs.h <<_ACEOF
30639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30640_ACEOF
30641 break
30642fi
30643done
30644
30645
30646echo "$as_me:$LINENO: checking for statfs" >&5
30647echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30648if test "${wx_cv_func_statfs+set}" = set; then
30649 echo $ECHO_N "(cached) $ECHO_C" >&6
30650else
30651 cat >conftest.$ac_ext <<_ACEOF
30652/* confdefs.h. */
30653_ACEOF
30654cat confdefs.h >>conftest.$ac_ext
30655cat >>conftest.$ac_ext <<_ACEOF
30656/* end confdefs.h. */
30657
30658 #if defined(__BSD__)
30659 #include <sys/param.h>
30660 #include <sys/mount.h>
30661 #else
30662 #include <sys/vfs.h>
30663 #endif
30664
30665int
30666main ()
30667{
30668
30669 long l;
30670 struct statfs fs;
30671 statfs("/", &fs);
30672 l = fs.f_bsize;
30673 l += fs.f_blocks;
30674 l += fs.f_bavail;
30675
30676 ;
30677 return 0;
30678}
30679_ACEOF
30680rm -f conftest.$ac_objext
30681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30682 (eval $ac_compile) 2>conftest.er1
a848cd7e 30683 ac_status=$?
ac1cb8d3
VS
30684 grep -v '^ *+' conftest.er1 >conftest.err
30685 rm -f conftest.er1
30686 cat conftest.err >&5
a848cd7e
SC
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); } &&
89be85c2
VS
30689 { ac_try='test -z "$ac_c_werror_flag"
30690 || test ! -s conftest.err'
ac1cb8d3
VS
30691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30692 (eval $ac_try) 2>&5
30693 ac_status=$?
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); }; } &&
30696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698 (eval $ac_try) 2>&5
30699 ac_status=$?
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); }; }; then
30702
30703 wx_cv_func_statfs=yes
30704
30705else
30706 echo "$as_me: failed program was:" >&5
30707sed 's/^/| /' conftest.$ac_ext >&5
30708
30709
30710 wx_cv_func_statfs=no
30711
30712
30713fi
ac1cb8d3 30714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30715
30716fi
30717echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30718echo "${ECHO_T}$wx_cv_func_statfs" >&6
30719
30720if test "$wx_cv_func_statfs" = "yes"; then
30721 wx_cv_type_statvfs_t="struct statfs"
30722 cat >>confdefs.h <<\_ACEOF
30723#define HAVE_STATFS 1
30724_ACEOF
30725
30726else
30727 echo "$as_me:$LINENO: checking for statvfs" >&5
30728echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30729if test "${wx_cv_func_statvfs+set}" = set; then
30730 echo $ECHO_N "(cached) $ECHO_C" >&6
30731else
30732 cat >conftest.$ac_ext <<_ACEOF
30733/* confdefs.h. */
30734_ACEOF
30735cat confdefs.h >>conftest.$ac_ext
30736cat >>conftest.$ac_ext <<_ACEOF
30737/* end confdefs.h. */
30738
30739 #include <stddef.h>
30740 #include <sys/statvfs.h>
30741
30742int
30743main ()
30744{
30745
30746 statvfs("/", NULL);
30747
30748 ;
30749 return 0;
30750}
30751_ACEOF
30752rm -f conftest.$ac_objext
30753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30754 (eval $ac_compile) 2>conftest.er1
a848cd7e 30755 ac_status=$?
ac1cb8d3
VS
30756 grep -v '^ *+' conftest.er1 >conftest.err
30757 rm -f conftest.er1
30758 cat conftest.err >&5
a848cd7e
SC
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); } &&
89be85c2
VS
30761 { ac_try='test -z "$ac_c_werror_flag"
30762 || test ! -s conftest.err'
ac1cb8d3
VS
30763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30764 (eval $ac_try) 2>&5
30765 ac_status=$?
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); }; } &&
30768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; }; then
30774 wx_cv_func_statvfs=yes
30775else
30776 echo "$as_me: failed program was:" >&5
30777sed 's/^/| /' conftest.$ac_ext >&5
30778
30779wx_cv_func_statvfs=no
30780
30781fi
ac1cb8d3 30782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30783
30784fi
30785echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30786echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30787
30788 if test "$wx_cv_func_statvfs" = "yes"; then
30789
30790
30791 ac_ext=cc
30792ac_cpp='$CXXCPP $CPPFLAGS'
30793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30796
30797
30798 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30799echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30800if test "${wx_cv_type_statvfs_t+set}" = set; then
30801 echo $ECHO_N "(cached) $ECHO_C" >&6
30802else
30803 cat >conftest.$ac_ext <<_ACEOF
30804/* confdefs.h. */
30805_ACEOF
30806cat confdefs.h >>conftest.$ac_ext
30807cat >>conftest.$ac_ext <<_ACEOF
30808/* end confdefs.h. */
30809
30810 #include <sys/statvfs.h>
30811
30812int
30813main ()
30814{
30815
30816 long l;
30817 statvfs_t fs;
30818 statvfs("/", &fs);
30819 l = fs.f_bsize;
30820 l += fs.f_blocks;
30821 l += fs.f_bavail;
30822
30823 ;
30824 return 0;
30825}
30826_ACEOF
30827rm -f conftest.$ac_objext
30828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30829 (eval $ac_compile) 2>conftest.er1
a848cd7e 30830 ac_status=$?
ac1cb8d3
VS
30831 grep -v '^ *+' conftest.er1 >conftest.err
30832 rm -f conftest.er1
30833 cat conftest.err >&5
a848cd7e
SC
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); } &&
89be85c2
VS
30836 { ac_try='test -z "$ac_cxx_werror_flag"
30837 || test ! -s conftest.err'
ac1cb8d3
VS
30838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30839 (eval $ac_try) 2>&5
30840 ac_status=$?
30841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842 (exit $ac_status); }; } &&
30843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30845 (eval $ac_try) 2>&5
30846 ac_status=$?
30847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30848 (exit $ac_status); }; }; then
30849 wx_cv_type_statvfs_t=statvfs_t
30850else
30851 echo "$as_me: failed program was:" >&5
30852sed 's/^/| /' conftest.$ac_ext >&5
30853
30854
30855 cat >conftest.$ac_ext <<_ACEOF
30856/* confdefs.h. */
30857_ACEOF
30858cat confdefs.h >>conftest.$ac_ext
30859cat >>conftest.$ac_ext <<_ACEOF
30860/* end confdefs.h. */
30861
30862 #include <sys/statvfs.h>
30863
30864int
30865main ()
30866{
30867
30868 long l;
30869 struct statvfs fs;
30870 statvfs("/", &fs);
30871 l = fs.f_bsize;
30872 l += fs.f_blocks;
30873 l += fs.f_bavail;
30874
30875 ;
30876 return 0;
30877}
30878_ACEOF
30879rm -f conftest.$ac_objext
30880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30881 (eval $ac_compile) 2>conftest.er1
a848cd7e 30882 ac_status=$?
ac1cb8d3
VS
30883 grep -v '^ *+' conftest.er1 >conftest.err
30884 rm -f conftest.er1
30885 cat conftest.err >&5
a848cd7e
SC
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); } &&
89be85c2
VS
30888 { ac_try='test -z "$ac_cxx_werror_flag"
30889 || test ! -s conftest.err'
ac1cb8d3
VS
30890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30891 (eval $ac_try) 2>&5
30892 ac_status=$?
30893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894 (exit $ac_status); }; } &&
30895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30897 (eval $ac_try) 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; }; then
30901 wx_cv_type_statvfs_t="struct statvfs"
30902else
30903 echo "$as_me: failed program was:" >&5
30904sed 's/^/| /' conftest.$ac_ext >&5
30905
30906wx_cv_type_statvfs_t="unknown"
30907
30908fi
ac1cb8d3 30909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30910
30911
30912fi
ac1cb8d3 30913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30914
30915fi
30916echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30917echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30918
30919 ac_ext=c
30920ac_cpp='$CPP $CPPFLAGS'
30921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30923ac_compiler_gnu=$ac_cv_c_compiler_gnu
30924
30925
30926 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30927 cat >>confdefs.h <<\_ACEOF
30928#define HAVE_STATVFS 1
30929_ACEOF
30930
30931 fi
30932 else
30933 wx_cv_type_statvfs_t="unknown"
30934 fi
30935fi
30936
30937if test "$wx_cv_type_statvfs_t" != "unknown"; then
30938 cat >>confdefs.h <<_ACEOF
30939#define WX_STATFS_T $wx_cv_type_statvfs_t
30940_ACEOF
30941
30942else
30943 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30944echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30945fi
30946
30947if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30948
30949
30950for ac_func in fcntl flock
30951do
30952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30953echo "$as_me:$LINENO: checking for $ac_func" >&5
30954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30955if eval "test \"\${$as_ac_var+set}\" = set"; then
30956 echo $ECHO_N "(cached) $ECHO_C" >&6
30957else
30958 cat >conftest.$ac_ext <<_ACEOF
30959/* confdefs.h. */
30960_ACEOF
30961cat confdefs.h >>conftest.$ac_ext
30962cat >>conftest.$ac_ext <<_ACEOF
30963/* end confdefs.h. */
ac1cb8d3
VS
30964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30966#define $ac_func innocuous_$ac_func
30967
a848cd7e
SC
30968/* System header to define __stub macros and hopefully few prototypes,
30969 which can conflict with char $ac_func (); below.
30970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30971 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30972
a848cd7e
SC
30973#ifdef __STDC__
30974# include <limits.h>
30975#else
30976# include <assert.h>
30977#endif
ac1cb8d3
VS
30978
30979#undef $ac_func
30980
a848cd7e
SC
30981/* Override any gcc2 internal prototype to avoid an error. */
30982#ifdef __cplusplus
30983extern "C"
30984{
30985#endif
30986/* We use char because int might match the return type of a gcc2
30987 builtin and then its argument prototype would still apply. */
30988char $ac_func ();
30989/* The GNU C library defines this for functions which it implements
30990 to always fail with ENOSYS. Some functions are actually named
30991 something starting with __ and the normal name is an alias. */
30992#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30993choke me
30994#else
30995char (*f) () = $ac_func;
30996#endif
30997#ifdef __cplusplus
30998}
30999#endif
31000
31001int
31002main ()
31003{
31004return f != $ac_func;
31005 ;
31006 return 0;
31007}
31008_ACEOF
31009rm -f conftest.$ac_objext conftest$ac_exeext
31010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31011 (eval $ac_link) 2>conftest.er1
a848cd7e 31012 ac_status=$?
ac1cb8d3
VS
31013 grep -v '^ *+' conftest.er1 >conftest.err
31014 rm -f conftest.er1
31015 cat conftest.err >&5
a848cd7e
SC
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); } &&
89be85c2
VS
31018 { ac_try='test -z "$ac_c_werror_flag"
31019 || test ! -s conftest.err'
ac1cb8d3
VS
31020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31021 (eval $ac_try) 2>&5
31022 ac_status=$?
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); }; } &&
31025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31027 (eval $ac_try) 2>&5
31028 ac_status=$?
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); }; }; then
31031 eval "$as_ac_var=yes"
31032else
31033 echo "$as_me: failed program was:" >&5
31034sed 's/^/| /' conftest.$ac_ext >&5
31035
31036eval "$as_ac_var=no"
31037fi
ac1cb8d3
VS
31038rm -f conftest.err conftest.$ac_objext \
31039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31040fi
31041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31043if test `eval echo '${'$as_ac_var'}'` = yes; then
31044 cat >>confdefs.h <<_ACEOF
31045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31046_ACEOF
31047 break
31048fi
31049done
31050
31051
31052 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31053 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31054echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31055 wxUSE_SNGLINST_CHECKER=no
31056 fi
31057fi
31058
31059
31060for ac_func in timegm
31061do
31062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31063echo "$as_me:$LINENO: checking for $ac_func" >&5
31064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31065if eval "test \"\${$as_ac_var+set}\" = set"; then
31066 echo $ECHO_N "(cached) $ECHO_C" >&6
31067else
31068 cat >conftest.$ac_ext <<_ACEOF
31069/* confdefs.h. */
31070_ACEOF
31071cat confdefs.h >>conftest.$ac_ext
31072cat >>conftest.$ac_ext <<_ACEOF
31073/* end confdefs.h. */
ac1cb8d3
VS
31074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31076#define $ac_func innocuous_$ac_func
31077
a848cd7e
SC
31078/* System header to define __stub macros and hopefully few prototypes,
31079 which can conflict with char $ac_func (); below.
31080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31081 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31082
a848cd7e
SC
31083#ifdef __STDC__
31084# include <limits.h>
31085#else
31086# include <assert.h>
31087#endif
ac1cb8d3
VS
31088
31089#undef $ac_func
31090
a848cd7e
SC
31091/* Override any gcc2 internal prototype to avoid an error. */
31092#ifdef __cplusplus
31093extern "C"
31094{
31095#endif
31096/* We use char because int might match the return type of a gcc2
31097 builtin and then its argument prototype would still apply. */
31098char $ac_func ();
31099/* The GNU C library defines this for functions which it implements
31100 to always fail with ENOSYS. Some functions are actually named
31101 something starting with __ and the normal name is an alias. */
31102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31103choke me
31104#else
31105char (*f) () = $ac_func;
31106#endif
31107#ifdef __cplusplus
31108}
31109#endif
31110
31111int
31112main ()
31113{
31114return f != $ac_func;
31115 ;
31116 return 0;
31117}
31118_ACEOF
31119rm -f conftest.$ac_objext conftest$ac_exeext
31120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31121 (eval $ac_link) 2>conftest.er1
a848cd7e 31122 ac_status=$?
ac1cb8d3
VS
31123 grep -v '^ *+' conftest.er1 >conftest.err
31124 rm -f conftest.er1
31125 cat conftest.err >&5
a848cd7e
SC
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); } &&
89be85c2
VS
31128 { ac_try='test -z "$ac_c_werror_flag"
31129 || test ! -s conftest.err'
ac1cb8d3
VS
31130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131 (eval $ac_try) 2>&5
31132 ac_status=$?
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); }; } &&
31135 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31137 (eval $ac_try) 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; }; then
31141 eval "$as_ac_var=yes"
31142else
31143 echo "$as_me: failed program was:" >&5
31144sed 's/^/| /' conftest.$ac_ext >&5
31145
31146eval "$as_ac_var=no"
31147fi
ac1cb8d3
VS
31148rm -f conftest.err conftest.$ac_objext \
31149 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31150fi
31151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31152echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31153if test `eval echo '${'$as_ac_var'}'` = yes; then
31154 cat >>confdefs.h <<_ACEOF
31155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31156_ACEOF
31157
31158fi
31159done
31160
31161
31162
31163
31164for ac_func in putenv setenv
31165do
31166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31167echo "$as_me:$LINENO: checking for $ac_func" >&5
31168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31169if eval "test \"\${$as_ac_var+set}\" = set"; then
31170 echo $ECHO_N "(cached) $ECHO_C" >&6
31171else
31172 cat >conftest.$ac_ext <<_ACEOF
31173/* confdefs.h. */
31174_ACEOF
31175cat confdefs.h >>conftest.$ac_ext
31176cat >>conftest.$ac_ext <<_ACEOF
31177/* end confdefs.h. */
ac1cb8d3
VS
31178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31180#define $ac_func innocuous_$ac_func
31181
a848cd7e
SC
31182/* System header to define __stub macros and hopefully few prototypes,
31183 which can conflict with char $ac_func (); below.
31184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31185 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31186
a848cd7e
SC
31187#ifdef __STDC__
31188# include <limits.h>
31189#else
31190# include <assert.h>
31191#endif
ac1cb8d3
VS
31192
31193#undef $ac_func
31194
a848cd7e
SC
31195/* Override any gcc2 internal prototype to avoid an error. */
31196#ifdef __cplusplus
31197extern "C"
31198{
31199#endif
31200/* We use char because int might match the return type of a gcc2
31201 builtin and then its argument prototype would still apply. */
31202char $ac_func ();
31203/* The GNU C library defines this for functions which it implements
31204 to always fail with ENOSYS. Some functions are actually named
31205 something starting with __ and the normal name is an alias. */
31206#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31207choke me
31208#else
31209char (*f) () = $ac_func;
31210#endif
31211#ifdef __cplusplus
31212}
31213#endif
31214
31215int
31216main ()
31217{
31218return f != $ac_func;
31219 ;
31220 return 0;
31221}
31222_ACEOF
31223rm -f conftest.$ac_objext conftest$ac_exeext
31224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31225 (eval $ac_link) 2>conftest.er1
a848cd7e 31226 ac_status=$?
ac1cb8d3
VS
31227 grep -v '^ *+' conftest.er1 >conftest.err
31228 rm -f conftest.er1
31229 cat conftest.err >&5
a848cd7e
SC
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); } &&
89be85c2
VS
31232 { ac_try='test -z "$ac_c_werror_flag"
31233 || test ! -s conftest.err'
ac1cb8d3
VS
31234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31235 (eval $ac_try) 2>&5
31236 ac_status=$?
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; } &&
31239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31242 ac_status=$?
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; }; then
31245 eval "$as_ac_var=yes"
31246else
31247 echo "$as_me: failed program was:" >&5
31248sed 's/^/| /' conftest.$ac_ext >&5
31249
31250eval "$as_ac_var=no"
31251fi
ac1cb8d3
VS
31252rm -f conftest.err conftest.$ac_objext \
31253 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31254fi
31255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31256echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31257if test `eval echo '${'$as_ac_var'}'` = yes; then
31258 cat >>confdefs.h <<_ACEOF
31259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31260_ACEOF
31261 break
31262fi
31263done
31264
31265
31266HAVE_SOME_SLEEP_FUNC=0
31267if test "$USE_BEOS" = 1; then
31268 cat >>confdefs.h <<\_ACEOF
31269#define HAVE_SLEEP 1
31270_ACEOF
31271
31272 HAVE_SOME_SLEEP_FUNC=1
31273fi
31274
31275if test "$USE_DARWIN" = 1; then
31276 cat >>confdefs.h <<\_ACEOF
31277#define HAVE_USLEEP 1
31278_ACEOF
31279
31280 HAVE_SOME_SLEEP_FUNC=1
31281fi
31282
31283if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31284 POSIX4_LINK=
31285
31286for ac_func in nanosleep
31287do
31288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31289echo "$as_me:$LINENO: checking for $ac_func" >&5
31290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31291if eval "test \"\${$as_ac_var+set}\" = set"; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31293else
31294 cat >conftest.$ac_ext <<_ACEOF
31295/* confdefs.h. */
31296_ACEOF
31297cat confdefs.h >>conftest.$ac_ext
31298cat >>conftest.$ac_ext <<_ACEOF
31299/* end confdefs.h. */
ac1cb8d3
VS
31300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31302#define $ac_func innocuous_$ac_func
31303
a848cd7e
SC
31304/* System header to define __stub macros and hopefully few prototypes,
31305 which can conflict with char $ac_func (); below.
31306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31307 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31308
a848cd7e
SC
31309#ifdef __STDC__
31310# include <limits.h>
31311#else
31312# include <assert.h>
31313#endif
ac1cb8d3
VS
31314
31315#undef $ac_func
31316
a848cd7e
SC
31317/* Override any gcc2 internal prototype to avoid an error. */
31318#ifdef __cplusplus
31319extern "C"
31320{
31321#endif
31322/* We use char because int might match the return type of a gcc2
31323 builtin and then its argument prototype would still apply. */
31324char $ac_func ();
31325/* The GNU C library defines this for functions which it implements
31326 to always fail with ENOSYS. Some functions are actually named
31327 something starting with __ and the normal name is an alias. */
31328#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31329choke me
31330#else
31331char (*f) () = $ac_func;
31332#endif
31333#ifdef __cplusplus
31334}
31335#endif
31336
31337int
31338main ()
31339{
31340return f != $ac_func;
31341 ;
31342 return 0;
31343}
31344_ACEOF
31345rm -f conftest.$ac_objext conftest$ac_exeext
31346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31347 (eval $ac_link) 2>conftest.er1
a848cd7e 31348 ac_status=$?
ac1cb8d3
VS
31349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
a848cd7e
SC
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } &&
89be85c2
VS
31354 { ac_try='test -z "$ac_c_werror_flag"
31355 || test ! -s conftest.err'
ac1cb8d3
VS
31356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31357 (eval $ac_try) 2>&5
31358 ac_status=$?
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); }; } &&
31361 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31364 ac_status=$?
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; }; then
31367 eval "$as_ac_var=yes"
31368else
31369 echo "$as_me: failed program was:" >&5
31370sed 's/^/| /' conftest.$ac_ext >&5
31371
31372eval "$as_ac_var=no"
31373fi
ac1cb8d3
VS
31374rm -f conftest.err conftest.$ac_objext \
31375 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31376fi
31377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31378echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31379if test `eval echo '${'$as_ac_var'}'` = yes; then
31380 cat >>confdefs.h <<_ACEOF
31381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31382_ACEOF
31383 cat >>confdefs.h <<\_ACEOF
31384#define HAVE_NANOSLEEP 1
31385_ACEOF
31386
31387else
31388
31389 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31390echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31391if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31392 echo $ECHO_N "(cached) $ECHO_C" >&6
31393else
31394 ac_check_lib_save_LIBS=$LIBS
31395LIBS="-lposix4 $LIBS"
31396cat >conftest.$ac_ext <<_ACEOF
31397/* confdefs.h. */
31398_ACEOF
31399cat confdefs.h >>conftest.$ac_ext
31400cat >>conftest.$ac_ext <<_ACEOF
31401/* end confdefs.h. */
31402
31403/* Override any gcc2 internal prototype to avoid an error. */
31404#ifdef __cplusplus
31405extern "C"
31406#endif
31407/* We use char because int might match the return type of a gcc2
31408 builtin and then its argument prototype would still apply. */
31409char nanosleep ();
31410int
31411main ()
31412{
31413nanosleep ();
31414 ;
31415 return 0;
31416}
31417_ACEOF
31418rm -f conftest.$ac_objext conftest$ac_exeext
31419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31420 (eval $ac_link) 2>conftest.er1
a848cd7e 31421 ac_status=$?
ac1cb8d3
VS
31422 grep -v '^ *+' conftest.er1 >conftest.err
31423 rm -f conftest.er1
31424 cat conftest.err >&5
a848cd7e
SC
31425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31426 (exit $ac_status); } &&
89be85c2
VS
31427 { ac_try='test -z "$ac_c_werror_flag"
31428 || test ! -s conftest.err'
ac1cb8d3
VS
31429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430 (eval $ac_try) 2>&5
31431 ac_status=$?
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; } &&
31434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31436 (eval $ac_try) 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; }; then
31440 ac_cv_lib_posix4_nanosleep=yes
31441else
31442 echo "$as_me: failed program was:" >&5
31443sed 's/^/| /' conftest.$ac_ext >&5
31444
31445ac_cv_lib_posix4_nanosleep=no
31446fi
ac1cb8d3
VS
31447rm -f conftest.err conftest.$ac_objext \
31448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31449LIBS=$ac_check_lib_save_LIBS
31450fi
31451echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31452echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31453if test $ac_cv_lib_posix4_nanosleep = yes; then
31454
31455 cat >>confdefs.h <<\_ACEOF
31456#define HAVE_NANOSLEEP 1
31457_ACEOF
31458
31459 POSIX4_LINK=" -lposix4"
31460
31461else
31462
31463
31464for ac_func in usleep
31465do
31466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31467echo "$as_me:$LINENO: checking for $ac_func" >&5
31468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31469if eval "test \"\${$as_ac_var+set}\" = set"; then
31470 echo $ECHO_N "(cached) $ECHO_C" >&6
31471else
31472 cat >conftest.$ac_ext <<_ACEOF
31473/* confdefs.h. */
31474_ACEOF
31475cat confdefs.h >>conftest.$ac_ext
31476cat >>conftest.$ac_ext <<_ACEOF
31477/* end confdefs.h. */
ac1cb8d3
VS
31478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31480#define $ac_func innocuous_$ac_func
31481
a848cd7e
SC
31482/* System header to define __stub macros and hopefully few prototypes,
31483 which can conflict with char $ac_func (); below.
31484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31485 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31486
a848cd7e
SC
31487#ifdef __STDC__
31488# include <limits.h>
31489#else
31490# include <assert.h>
31491#endif
ac1cb8d3
VS
31492
31493#undef $ac_func
31494
a848cd7e
SC
31495/* Override any gcc2 internal prototype to avoid an error. */
31496#ifdef __cplusplus
31497extern "C"
31498{
31499#endif
31500/* We use char because int might match the return type of a gcc2
31501 builtin and then its argument prototype would still apply. */
31502char $ac_func ();
31503/* The GNU C library defines this for functions which it implements
31504 to always fail with ENOSYS. Some functions are actually named
31505 something starting with __ and the normal name is an alias. */
31506#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31507choke me
31508#else
31509char (*f) () = $ac_func;
31510#endif
31511#ifdef __cplusplus
31512}
31513#endif
31514
31515int
31516main ()
31517{
31518return f != $ac_func;
31519 ;
31520 return 0;
31521}
31522_ACEOF
31523rm -f conftest.$ac_objext conftest$ac_exeext
31524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31525 (eval $ac_link) 2>conftest.er1
a848cd7e 31526 ac_status=$?
ac1cb8d3
VS
31527 grep -v '^ *+' conftest.er1 >conftest.err
31528 rm -f conftest.er1
31529 cat conftest.err >&5
a848cd7e
SC
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); } &&
89be85c2
VS
31532 { ac_try='test -z "$ac_c_werror_flag"
31533 || test ! -s conftest.err'
ac1cb8d3
VS
31534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31535 (eval $ac_try) 2>&5
31536 ac_status=$?
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); }; } &&
31539 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541 (eval $ac_try) 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 eval "$as_ac_var=yes"
31546else
31547 echo "$as_me: failed program was:" >&5
31548sed 's/^/| /' conftest.$ac_ext >&5
31549
31550eval "$as_ac_var=no"
31551fi
ac1cb8d3
VS
31552rm -f conftest.err conftest.$ac_objext \
31553 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31554fi
31555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31556echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31557if test `eval echo '${'$as_ac_var'}'` = yes; then
31558 cat >>confdefs.h <<_ACEOF
31559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31560_ACEOF
31561 cat >>confdefs.h <<\_ACEOF
31562#define HAVE_USLEEP 1
31563_ACEOF
31564
31565else
31566 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31567echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31568
31569fi
31570done
31571
31572
31573
31574fi
31575
31576
31577
31578fi
31579done
31580
31581fi
31582
31583
31584
31585for ac_func in uname gethostname
31586do
31587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31588echo "$as_me:$LINENO: checking for $ac_func" >&5
31589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31590if eval "test \"\${$as_ac_var+set}\" = set"; then
31591 echo $ECHO_N "(cached) $ECHO_C" >&6
31592else
31593 cat >conftest.$ac_ext <<_ACEOF
31594/* confdefs.h. */
31595_ACEOF
31596cat confdefs.h >>conftest.$ac_ext
31597cat >>conftest.$ac_ext <<_ACEOF
31598/* end confdefs.h. */
ac1cb8d3
VS
31599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31601#define $ac_func innocuous_$ac_func
31602
a848cd7e
SC
31603/* System header to define __stub macros and hopefully few prototypes,
31604 which can conflict with char $ac_func (); below.
31605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31606 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31607
a848cd7e
SC
31608#ifdef __STDC__
31609# include <limits.h>
31610#else
31611# include <assert.h>
31612#endif
ac1cb8d3
VS
31613
31614#undef $ac_func
31615
a848cd7e
SC
31616/* Override any gcc2 internal prototype to avoid an error. */
31617#ifdef __cplusplus
31618extern "C"
31619{
31620#endif
31621/* We use char because int might match the return type of a gcc2
31622 builtin and then its argument prototype would still apply. */
31623char $ac_func ();
31624/* The GNU C library defines this for functions which it implements
31625 to always fail with ENOSYS. Some functions are actually named
31626 something starting with __ and the normal name is an alias. */
31627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31628choke me
31629#else
31630char (*f) () = $ac_func;
31631#endif
31632#ifdef __cplusplus
31633}
31634#endif
31635
31636int
31637main ()
31638{
31639return f != $ac_func;
31640 ;
31641 return 0;
31642}
31643_ACEOF
31644rm -f conftest.$ac_objext conftest$ac_exeext
31645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31646 (eval $ac_link) 2>conftest.er1
a848cd7e 31647 ac_status=$?
ac1cb8d3
VS
31648 grep -v '^ *+' conftest.er1 >conftest.err
31649 rm -f conftest.er1
31650 cat conftest.err >&5
a848cd7e
SC
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); } &&
89be85c2
VS
31653 { ac_try='test -z "$ac_c_werror_flag"
31654 || test ! -s conftest.err'
ac1cb8d3
VS
31655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31656 (eval $ac_try) 2>&5
31657 ac_status=$?
31658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); }; } &&
31660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31662 (eval $ac_try) 2>&5
31663 ac_status=$?
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); }; }; then
31666 eval "$as_ac_var=yes"
31667else
31668 echo "$as_me: failed program was:" >&5
31669sed 's/^/| /' conftest.$ac_ext >&5
31670
31671eval "$as_ac_var=no"
31672fi
ac1cb8d3
VS
31673rm -f conftest.err conftest.$ac_objext \
31674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31675fi
31676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31678if test `eval echo '${'$as_ac_var'}'` = yes; then
31679 cat >>confdefs.h <<_ACEOF
31680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31681_ACEOF
31682 break
31683fi
31684done
31685
31686
31687
31688
31689ac_ext=cc
31690ac_cpp='$CXXCPP $CPPFLAGS'
31691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31694
31695
31696
31697for ac_func in strtok_r
31698do
31699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31700echo "$as_me:$LINENO: checking for $ac_func" >&5
31701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31702if eval "test \"\${$as_ac_var+set}\" = set"; then
31703 echo $ECHO_N "(cached) $ECHO_C" >&6
31704else
31705 cat >conftest.$ac_ext <<_ACEOF
31706/* confdefs.h. */
31707_ACEOF
31708cat confdefs.h >>conftest.$ac_ext
31709cat >>conftest.$ac_ext <<_ACEOF
31710/* end confdefs.h. */
ac1cb8d3
VS
31711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31713#define $ac_func innocuous_$ac_func
31714
a848cd7e
SC
31715/* System header to define __stub macros and hopefully few prototypes,
31716 which can conflict with char $ac_func (); below.
31717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31718 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31719
a848cd7e
SC
31720#ifdef __STDC__
31721# include <limits.h>
31722#else
31723# include <assert.h>
31724#endif
ac1cb8d3
VS
31725
31726#undef $ac_func
31727
a848cd7e
SC
31728/* Override any gcc2 internal prototype to avoid an error. */
31729#ifdef __cplusplus
31730extern "C"
31731{
31732#endif
31733/* We use char because int might match the return type of a gcc2
31734 builtin and then its argument prototype would still apply. */
31735char $ac_func ();
31736/* The GNU C library defines this for functions which it implements
31737 to always fail with ENOSYS. Some functions are actually named
31738 something starting with __ and the normal name is an alias. */
31739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31740choke me
31741#else
31742char (*f) () = $ac_func;
31743#endif
31744#ifdef __cplusplus
31745}
31746#endif
31747
31748int
31749main ()
31750{
31751return f != $ac_func;
31752 ;
31753 return 0;
31754}
31755_ACEOF
31756rm -f conftest.$ac_objext conftest$ac_exeext
31757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31758 (eval $ac_link) 2>conftest.er1
a848cd7e 31759 ac_status=$?
ac1cb8d3
VS
31760 grep -v '^ *+' conftest.er1 >conftest.err
31761 rm -f conftest.er1
31762 cat conftest.err >&5
a848cd7e
SC
31763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764 (exit $ac_status); } &&
89be85c2
VS
31765 { ac_try='test -z "$ac_cxx_werror_flag"
31766 || test ! -s conftest.err'
ac1cb8d3
VS
31767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31768 (eval $ac_try) 2>&5
31769 ac_status=$?
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; } &&
31772 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31774 (eval $ac_try) 2>&5
31775 ac_status=$?
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); }; }; then
31778 eval "$as_ac_var=yes"
31779else
31780 echo "$as_me: failed program was:" >&5
31781sed 's/^/| /' conftest.$ac_ext >&5
31782
31783eval "$as_ac_var=no"
31784fi
ac1cb8d3
VS
31785rm -f conftest.err conftest.$ac_objext \
31786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31787fi
31788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31789echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31790if test `eval echo '${'$as_ac_var'}'` = yes; then
31791 cat >>confdefs.h <<_ACEOF
31792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31793_ACEOF
31794
31795fi
31796done
31797
31798
31799ac_ext=c
31800ac_cpp='$CPP $CPPFLAGS'
31801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31803ac_compiler_gnu=$ac_cv_c_compiler_gnu
31804
31805
31806INET_LINK=
31807
31808for ac_func in inet_addr
31809do
31810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31811echo "$as_me:$LINENO: checking for $ac_func" >&5
31812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31813if eval "test \"\${$as_ac_var+set}\" = set"; then
31814 echo $ECHO_N "(cached) $ECHO_C" >&6
31815else
31816 cat >conftest.$ac_ext <<_ACEOF
31817/* confdefs.h. */
31818_ACEOF
31819cat confdefs.h >>conftest.$ac_ext
31820cat >>conftest.$ac_ext <<_ACEOF
31821/* end confdefs.h. */
ac1cb8d3
VS
31822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31824#define $ac_func innocuous_$ac_func
31825
a848cd7e
SC
31826/* System header to define __stub macros and hopefully few prototypes,
31827 which can conflict with char $ac_func (); below.
31828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31829 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31830
a848cd7e
SC
31831#ifdef __STDC__
31832# include <limits.h>
31833#else
31834# include <assert.h>
31835#endif
ac1cb8d3
VS
31836
31837#undef $ac_func
31838
a848cd7e
SC
31839/* Override any gcc2 internal prototype to avoid an error. */
31840#ifdef __cplusplus
31841extern "C"
31842{
31843#endif
31844/* We use char because int might match the return type of a gcc2
31845 builtin and then its argument prototype would still apply. */
31846char $ac_func ();
31847/* The GNU C library defines this for functions which it implements
31848 to always fail with ENOSYS. Some functions are actually named
31849 something starting with __ and the normal name is an alias. */
31850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31851choke me
31852#else
31853char (*f) () = $ac_func;
31854#endif
31855#ifdef __cplusplus
31856}
31857#endif
31858
31859int
31860main ()
31861{
31862return f != $ac_func;
31863 ;
31864 return 0;
31865}
31866_ACEOF
31867rm -f conftest.$ac_objext conftest$ac_exeext
31868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31869 (eval $ac_link) 2>conftest.er1
a848cd7e 31870 ac_status=$?
ac1cb8d3
VS
31871 grep -v '^ *+' conftest.er1 >conftest.err
31872 rm -f conftest.er1
31873 cat conftest.err >&5
a848cd7e
SC
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); } &&
89be85c2
VS
31876 { ac_try='test -z "$ac_c_werror_flag"
31877 || test ! -s conftest.err'
ac1cb8d3
VS
31878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31879 (eval $ac_try) 2>&5
31880 ac_status=$?
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); }; } &&
31883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31885 (eval $ac_try) 2>&5
31886 ac_status=$?
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); }; }; then
31889 eval "$as_ac_var=yes"
31890else
31891 echo "$as_me: failed program was:" >&5
31892sed 's/^/| /' conftest.$ac_ext >&5
31893
31894eval "$as_ac_var=no"
31895fi
ac1cb8d3
VS
31896rm -f conftest.err conftest.$ac_objext \
31897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31898fi
31899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31900echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31901if test `eval echo '${'$as_ac_var'}'` = yes; then
31902 cat >>confdefs.h <<_ACEOF
31903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31904_ACEOF
31905 cat >>confdefs.h <<\_ACEOF
31906#define HAVE_INET_ADDR 1
31907_ACEOF
31908
31909else
31910
31911 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31912echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31913if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31914 echo $ECHO_N "(cached) $ECHO_C" >&6
31915else
31916 ac_check_lib_save_LIBS=$LIBS
31917LIBS="-lnsl $LIBS"
31918cat >conftest.$ac_ext <<_ACEOF
31919/* confdefs.h. */
31920_ACEOF
31921cat confdefs.h >>conftest.$ac_ext
31922cat >>conftest.$ac_ext <<_ACEOF
31923/* end confdefs.h. */
31924
31925/* Override any gcc2 internal prototype to avoid an error. */
31926#ifdef __cplusplus
31927extern "C"
31928#endif
31929/* We use char because int might match the return type of a gcc2
31930 builtin and then its argument prototype would still apply. */
31931char inet_addr ();
31932int
31933main ()
31934{
31935inet_addr ();
31936 ;
31937 return 0;
31938}
31939_ACEOF
31940rm -f conftest.$ac_objext conftest$ac_exeext
31941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31942 (eval $ac_link) 2>conftest.er1
a848cd7e 31943 ac_status=$?
ac1cb8d3
VS
31944 grep -v '^ *+' conftest.er1 >conftest.err
31945 rm -f conftest.er1
31946 cat conftest.err >&5
a848cd7e
SC
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); } &&
89be85c2
VS
31949 { ac_try='test -z "$ac_c_werror_flag"
31950 || test ! -s conftest.err'
ac1cb8d3
VS
31951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31952 (eval $ac_try) 2>&5
31953 ac_status=$?
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); }; } &&
31956 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31958 (eval $ac_try) 2>&5
31959 ac_status=$?
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; }; then
31962 ac_cv_lib_nsl_inet_addr=yes
31963else
31964 echo "$as_me: failed program was:" >&5
31965sed 's/^/| /' conftest.$ac_ext >&5
31966
31967ac_cv_lib_nsl_inet_addr=no
31968fi
ac1cb8d3
VS
31969rm -f conftest.err conftest.$ac_objext \
31970 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31971LIBS=$ac_check_lib_save_LIBS
31972fi
31973echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31974echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31975if test $ac_cv_lib_nsl_inet_addr = yes; then
31976 INET_LINK="nsl"
31977else
31978
31979 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31980echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31981if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31982 echo $ECHO_N "(cached) $ECHO_C" >&6
31983else
31984 ac_check_lib_save_LIBS=$LIBS
31985LIBS="-lresolv $LIBS"
31986cat >conftest.$ac_ext <<_ACEOF
31987/* confdefs.h. */
31988_ACEOF
31989cat confdefs.h >>conftest.$ac_ext
31990cat >>conftest.$ac_ext <<_ACEOF
31991/* end confdefs.h. */
31992
31993/* Override any gcc2 internal prototype to avoid an error. */
31994#ifdef __cplusplus
31995extern "C"
31996#endif
31997/* We use char because int might match the return type of a gcc2
31998 builtin and then its argument prototype would still apply. */
31999char inet_addr ();
32000int
32001main ()
32002{
32003inet_addr ();
32004 ;
32005 return 0;
32006}
32007_ACEOF
32008rm -f conftest.$ac_objext conftest$ac_exeext
32009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32010 (eval $ac_link) 2>conftest.er1
a848cd7e 32011 ac_status=$?
ac1cb8d3
VS
32012 grep -v '^ *+' conftest.er1 >conftest.err
32013 rm -f conftest.er1
32014 cat conftest.err >&5
a848cd7e
SC
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); } &&
89be85c2
VS
32017 { ac_try='test -z "$ac_c_werror_flag"
32018 || test ! -s conftest.err'
ac1cb8d3
VS
32019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32020 (eval $ac_try) 2>&5
32021 ac_status=$?
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); }; } &&
32024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32026 (eval $ac_try) 2>&5
32027 ac_status=$?
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); }; }; then
32030 ac_cv_lib_resolv_inet_addr=yes
32031else
32032 echo "$as_me: failed program was:" >&5
32033sed 's/^/| /' conftest.$ac_ext >&5
32034
32035ac_cv_lib_resolv_inet_addr=no
32036fi
ac1cb8d3
VS
32037rm -f conftest.err conftest.$ac_objext \
32038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32039LIBS=$ac_check_lib_save_LIBS
32040fi
32041echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32042echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32043if test $ac_cv_lib_resolv_inet_addr = yes; then
32044 INET_LINK="resolv"
32045else
32046
32047 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32048echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32049if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32050 echo $ECHO_N "(cached) $ECHO_C" >&6
32051else
32052 ac_check_lib_save_LIBS=$LIBS
32053LIBS="-lsocket $LIBS"
32054cat >conftest.$ac_ext <<_ACEOF
32055/* confdefs.h. */
32056_ACEOF
32057cat confdefs.h >>conftest.$ac_ext
32058cat >>conftest.$ac_ext <<_ACEOF
32059/* end confdefs.h. */
32060
32061/* Override any gcc2 internal prototype to avoid an error. */
32062#ifdef __cplusplus
32063extern "C"
32064#endif
32065/* We use char because int might match the return type of a gcc2
32066 builtin and then its argument prototype would still apply. */
32067char inet_addr ();
32068int
32069main ()
32070{
32071inet_addr ();
32072 ;
32073 return 0;
32074}
32075_ACEOF
32076rm -f conftest.$ac_objext conftest$ac_exeext
32077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32078 (eval $ac_link) 2>conftest.er1
a848cd7e 32079 ac_status=$?
ac1cb8d3
VS
32080 grep -v '^ *+' conftest.er1 >conftest.err
32081 rm -f conftest.er1
32082 cat conftest.err >&5
a848cd7e
SC
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); } &&
89be85c2
VS
32085 { ac_try='test -z "$ac_c_werror_flag"
32086 || test ! -s conftest.err'
ac1cb8d3
VS
32087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32088 (eval $ac_try) 2>&5
32089 ac_status=$?
32090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091 (exit $ac_status); }; } &&
32092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32094 (eval $ac_try) 2>&5
32095 ac_status=$?
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); }; }; then
32098 ac_cv_lib_socket_inet_addr=yes
32099else
32100 echo "$as_me: failed program was:" >&5
32101sed 's/^/| /' conftest.$ac_ext >&5
32102
32103ac_cv_lib_socket_inet_addr=no
32104fi
ac1cb8d3
VS
32105rm -f conftest.err conftest.$ac_objext \
32106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32107LIBS=$ac_check_lib_save_LIBS
32108fi
32109echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32110echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32111if test $ac_cv_lib_socket_inet_addr = yes; then
32112 INET_LINK="socket"
32113
32114fi
32115
32116
32117
32118fi
32119
32120
32121
32122fi
32123
32124
32125
32126fi
32127done
32128
32129
32130
32131for ac_func in inet_aton
32132do
32133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32134echo "$as_me:$LINENO: checking for $ac_func" >&5
32135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32136if eval "test \"\${$as_ac_var+set}\" = set"; then
32137 echo $ECHO_N "(cached) $ECHO_C" >&6
32138else
32139 cat >conftest.$ac_ext <<_ACEOF
32140/* confdefs.h. */
32141_ACEOF
32142cat confdefs.h >>conftest.$ac_ext
32143cat >>conftest.$ac_ext <<_ACEOF
32144/* end confdefs.h. */
ac1cb8d3
VS
32145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32147#define $ac_func innocuous_$ac_func
32148
a848cd7e
SC
32149/* System header to define __stub macros and hopefully few prototypes,
32150 which can conflict with char $ac_func (); below.
32151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32152 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32153
a848cd7e
SC
32154#ifdef __STDC__
32155# include <limits.h>
32156#else
32157# include <assert.h>
32158#endif
ac1cb8d3
VS
32159
32160#undef $ac_func
32161
a848cd7e
SC
32162/* Override any gcc2 internal prototype to avoid an error. */
32163#ifdef __cplusplus
32164extern "C"
32165{
32166#endif
32167/* We use char because int might match the return type of a gcc2
32168 builtin and then its argument prototype would still apply. */
32169char $ac_func ();
32170/* The GNU C library defines this for functions which it implements
32171 to always fail with ENOSYS. Some functions are actually named
32172 something starting with __ and the normal name is an alias. */
32173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32174choke me
32175#else
32176char (*f) () = $ac_func;
32177#endif
32178#ifdef __cplusplus
32179}
32180#endif
32181
32182int
32183main ()
32184{
32185return f != $ac_func;
32186 ;
32187 return 0;
32188}
32189_ACEOF
32190rm -f conftest.$ac_objext conftest$ac_exeext
32191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32192 (eval $ac_link) 2>conftest.er1
a848cd7e 32193 ac_status=$?
ac1cb8d3
VS
32194 grep -v '^ *+' conftest.er1 >conftest.err
32195 rm -f conftest.er1
32196 cat conftest.err >&5
a848cd7e
SC
32197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198 (exit $ac_status); } &&
89be85c2
VS
32199 { ac_try='test -z "$ac_c_werror_flag"
32200 || test ! -s conftest.err'
ac1cb8d3
VS
32201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32202 (eval $ac_try) 2>&5
32203 ac_status=$?
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); }; } &&
32206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208 (eval $ac_try) 2>&5
32209 ac_status=$?
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; }; then
32212 eval "$as_ac_var=yes"
32213else
32214 echo "$as_me: failed program was:" >&5
32215sed 's/^/| /' conftest.$ac_ext >&5
32216
32217eval "$as_ac_var=no"
32218fi
ac1cb8d3
VS
32219rm -f conftest.err conftest.$ac_objext \
32220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32221fi
32222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32224if test `eval echo '${'$as_ac_var'}'` = yes; then
32225 cat >>confdefs.h <<_ACEOF
32226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32227_ACEOF
32228 cat >>confdefs.h <<\_ACEOF
32229#define HAVE_INET_ATON 1
32230_ACEOF
32231
32232else
32233
32234 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32235echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32236echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32237if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32238 echo $ECHO_N "(cached) $ECHO_C" >&6
32239else
32240 ac_check_lib_save_LIBS=$LIBS
32241LIBS="-l$INET_LINK $LIBS"
32242cat >conftest.$ac_ext <<_ACEOF
32243/* confdefs.h. */
32244_ACEOF
32245cat confdefs.h >>conftest.$ac_ext
32246cat >>conftest.$ac_ext <<_ACEOF
32247/* end confdefs.h. */
32248
32249/* Override any gcc2 internal prototype to avoid an error. */
32250#ifdef __cplusplus
32251extern "C"
32252#endif
32253/* We use char because int might match the return type of a gcc2
32254 builtin and then its argument prototype would still apply. */
32255char inet_aton ();
32256int
32257main ()
32258{
32259inet_aton ();
32260 ;
32261 return 0;
32262}
32263_ACEOF
32264rm -f conftest.$ac_objext conftest$ac_exeext
32265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32266 (eval $ac_link) 2>conftest.er1
a848cd7e 32267 ac_status=$?
ac1cb8d3
VS
32268 grep -v '^ *+' conftest.er1 >conftest.err
32269 rm -f conftest.er1
32270 cat conftest.err >&5
a848cd7e
SC
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); } &&
89be85c2
VS
32273 { ac_try='test -z "$ac_c_werror_flag"
32274 || test ! -s conftest.err'
ac1cb8d3
VS
32275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32276 (eval $ac_try) 2>&5
32277 ac_status=$?
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); }; } &&
32280 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282 (eval $ac_try) 2>&5
32283 ac_status=$?
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; }; then
32286 eval "$as_ac_Lib=yes"
32287else
32288 echo "$as_me: failed program was:" >&5
32289sed 's/^/| /' conftest.$ac_ext >&5
32290
32291eval "$as_ac_Lib=no"
32292fi
ac1cb8d3
VS
32293rm -f conftest.err conftest.$ac_objext \
32294 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32295LIBS=$ac_check_lib_save_LIBS
32296fi
32297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32298echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32299if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32300 cat >>confdefs.h <<\_ACEOF
32301#define HAVE_INET_ATON 1
32302_ACEOF
32303
32304fi
32305
32306
32307fi
32308done
32309
32310
32311if test "x$INET_LINK" != "x"; then
32312 cat >>confdefs.h <<\_ACEOF
32313#define HAVE_INET_ADDR 1
32314_ACEOF
32315
32316 INET_LINK=" -l$INET_LINK"
32317fi
32318
32319fi
32320
32321
32322
32323EXTRALIBS_ESD=
32324echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32325echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32326if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32327 echo $ECHO_N "(cached) $ECHO_C" >&6
32328else
32329 ac_check_lib_save_LIBS=$LIBS
32330LIBS="-lesd $LIBS"
32331cat >conftest.$ac_ext <<_ACEOF
32332/* confdefs.h. */
32333_ACEOF
32334cat confdefs.h >>conftest.$ac_ext
32335cat >>conftest.$ac_ext <<_ACEOF
32336/* end confdefs.h. */
32337
32338/* Override any gcc2 internal prototype to avoid an error. */
32339#ifdef __cplusplus
32340extern "C"
32341#endif
32342/* We use char because int might match the return type of a gcc2
32343 builtin and then its argument prototype would still apply. */
32344char esd_close ();
32345int
32346main ()
32347{
32348esd_close ();
32349 ;
32350 return 0;
32351}
32352_ACEOF
32353rm -f conftest.$ac_objext conftest$ac_exeext
32354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32355 (eval $ac_link) 2>conftest.er1
a848cd7e 32356 ac_status=$?
ac1cb8d3
VS
32357 grep -v '^ *+' conftest.er1 >conftest.err
32358 rm -f conftest.er1
32359 cat conftest.err >&5
a848cd7e
SC
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); } &&
89be85c2
VS
32362 { ac_try='test -z "$ac_c_werror_flag"
32363 || test ! -s conftest.err'
ac1cb8d3
VS
32364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32365 (eval $ac_try) 2>&5
32366 ac_status=$?
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; } &&
32369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32371 (eval $ac_try) 2>&5
32372 ac_status=$?
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); }; }; then
32375 ac_cv_lib_esd_esd_close=yes
32376else
32377 echo "$as_me: failed program was:" >&5
32378sed 's/^/| /' conftest.$ac_ext >&5
32379
32380ac_cv_lib_esd_esd_close=no
32381fi
ac1cb8d3
VS
32382rm -f conftest.err conftest.$ac_objext \
32383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32384LIBS=$ac_check_lib_save_LIBS
32385fi
32386echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32387echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32388if test $ac_cv_lib_esd_esd_close = yes; then
32389
32390
32391for ac_header in esd.h
32392do
32393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32394if eval "test \"\${$as_ac_Header+set}\" = set"; then
32395 echo "$as_me:$LINENO: checking for $ac_header" >&5
32396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32397if eval "test \"\${$as_ac_Header+set}\" = set"; then
32398 echo $ECHO_N "(cached) $ECHO_C" >&6
32399fi
32400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32402else
32403 # Is the header compilable?
32404echo "$as_me:$LINENO: checking $ac_header usability" >&5
32405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32406cat >conftest.$ac_ext <<_ACEOF
32407/* confdefs.h. */
32408_ACEOF
32409cat confdefs.h >>conftest.$ac_ext
32410cat >>conftest.$ac_ext <<_ACEOF
32411/* end confdefs.h. */
32412$ac_includes_default
32413#include <$ac_header>
32414_ACEOF
32415rm -f conftest.$ac_objext
32416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32417 (eval $ac_compile) 2>conftest.er1
a848cd7e 32418 ac_status=$?
ac1cb8d3
VS
32419 grep -v '^ *+' conftest.er1 >conftest.err
32420 rm -f conftest.er1
32421 cat conftest.err >&5
a848cd7e
SC
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); } &&
89be85c2
VS
32424 { ac_try='test -z "$ac_c_werror_flag"
32425 || test ! -s conftest.err'
ac1cb8d3
VS
32426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32427 (eval $ac_try) 2>&5
32428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; } &&
32431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32433 (eval $ac_try) 2>&5
32434 ac_status=$?
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; }; then
32437 ac_header_compiler=yes
32438else
32439 echo "$as_me: failed program was:" >&5
32440sed 's/^/| /' conftest.$ac_ext >&5
32441
32442ac_header_compiler=no
32443fi
ac1cb8d3 32444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32445echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32446echo "${ECHO_T}$ac_header_compiler" >&6
32447
32448# Is the header present?
32449echo "$as_me:$LINENO: checking $ac_header presence" >&5
32450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32451cat >conftest.$ac_ext <<_ACEOF
32452/* confdefs.h. */
32453_ACEOF
32454cat confdefs.h >>conftest.$ac_ext
32455cat >>conftest.$ac_ext <<_ACEOF
32456/* end confdefs.h. */
32457#include <$ac_header>
32458_ACEOF
32459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32461 ac_status=$?
32462 grep -v '^ *+' conftest.er1 >conftest.err
32463 rm -f conftest.er1
32464 cat conftest.err >&5
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); } >/dev/null; then
32467 if test -s conftest.err; then
32468 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32470 else
32471 ac_cpp_err=
32472 fi
32473else
32474 ac_cpp_err=yes
32475fi
32476if test -z "$ac_cpp_err"; then
32477 ac_header_preproc=yes
32478else
32479 echo "$as_me: failed program was:" >&5
32480sed 's/^/| /' conftest.$ac_ext >&5
32481
32482 ac_header_preproc=no
32483fi
32484rm -f conftest.err conftest.$ac_ext
32485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32486echo "${ECHO_T}$ac_header_preproc" >&6
32487
32488# So? What about this header?
ac1cb8d3
VS
32489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32490 yes:no: )
a848cd7e
SC
32491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32495 ac_header_preproc=yes
a848cd7e 32496 ;;
ac1cb8d3 32497 no:yes:* )
a848cd7e
SC
32498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32510 (
32511 cat <<\_ASBOX
ac1cb8d3
VS
32512## ----------------------------------------- ##
32513## Report this to wx-dev@lists.wxwidgets.org ##
32514## ----------------------------------------- ##
a848cd7e
SC
32515_ASBOX
32516 ) |
32517 sed "s/^/$as_me: WARNING: /" >&2
32518 ;;
32519esac
32520echo "$as_me:$LINENO: checking for $ac_header" >&5
32521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32522if eval "test \"\${$as_ac_Header+set}\" = set"; then
32523 echo $ECHO_N "(cached) $ECHO_C" >&6
32524else
ac1cb8d3 32525 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32526fi
32527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32529
32530fi
32531if test `eval echo '${'$as_ac_Header'}'` = yes; then
32532 cat >>confdefs.h <<_ACEOF
32533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32534_ACEOF
32535
32536 EXTRALIBS_ESD="-lesd"
32537
32538fi
32539
32540done
32541
32542
32543fi
32544
32545
32546
32547echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32548echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32549cat >conftest.$ac_ext <<_ACEOF
32550/* confdefs.h. */
32551_ACEOF
32552cat confdefs.h >>conftest.$ac_ext
32553cat >>conftest.$ac_ext <<_ACEOF
32554/* end confdefs.h. */
32555#ifdef __linux__
32556 #include <linux/cdrom.h>
32557 #else
32558 /* For Solaris */
32559 #include <sys/cdio.h>
32560 #endif
32561
32562int
32563main ()
32564{
32565struct cdrom_tocentry entry, old_entry;
32566 ;
32567 return 0;
32568}
32569_ACEOF
32570rm -f conftest.$ac_objext
32571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32572 (eval $ac_compile) 2>conftest.er1
a848cd7e 32573 ac_status=$?
ac1cb8d3
VS
32574 grep -v '^ *+' conftest.er1 >conftest.err
32575 rm -f conftest.er1
32576 cat conftest.err >&5
a848cd7e
SC
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); } &&
89be85c2
VS
32579 { ac_try='test -z "$ac_c_werror_flag"
32580 || test ! -s conftest.err'
ac1cb8d3
VS
32581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32582 (eval $ac_try) 2>&5
32583 ac_status=$?
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); }; } &&
32586 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32588 (eval $ac_try) 2>&5
32589 ac_status=$?
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); }; }; then
32592 echo "$as_me:$LINENO: result: yes" >&5
32593echo "${ECHO_T}yes" >&6
32594 cat >>confdefs.h <<\_ACEOF
32595#define HAVE_KNOWN_CDROM_INTERFACE 1
32596_ACEOF
32597
32598else
32599 echo "$as_me: failed program was:" >&5
32600sed 's/^/| /' conftest.$ac_ext >&5
32601
32602echo "$as_me:$LINENO: result: no" >&5
32603echo "${ECHO_T}no" >&6
32604fi
ac1cb8d3 32605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32606
32607
32608cat >confcache <<\_ACEOF
32609# This file is a shell script that caches the results of configure
32610# tests run on this system so they can be shared between configure
32611# scripts and configure runs, see configure's option --config-cache.
32612# It is not useful on other systems. If it contains results you don't
32613# want to keep, you may remove or edit it.
32614#
32615# config.status only pays attention to the cache file if you give it
32616# the --recheck option to rerun configure.
32617#
32618# `ac_cv_env_foo' variables (set or unset) will be overridden when
32619# loading this file, other *unset* `ac_cv_foo' will be assigned the
32620# following values.
32621
32622_ACEOF
32623
32624# The following way of writing the cache mishandles newlines in values,
32625# but we know of no workaround that is simple, portable, and efficient.
32626# So, don't put newlines in cache variables' values.
32627# Ultrix sh set writes to stderr and can't be redirected directly,
32628# and sets the high bit in the cache file unless we assign to the vars.
32629{
32630 (set) 2>&1 |
32631 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32632 *ac_space=\ *)
32633 # `set' does not quote correctly, so add quotes (double-quote
32634 # substitution turns \\\\ into \\, and sed turns \\ into \).
32635 sed -n \
ac1cb8d3
VS
32636 "s/'/'\\\\''/g;
32637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32638 ;;
32639 *)
32640 # `set' quotes correctly as required by POSIX, so do not add quotes.
32641 sed -n \
ac1cb8d3 32642 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32643 ;;
32644 esac;
32645} |
32646 sed '
32647 t clear
32648 : clear
32649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32650 t end
32651 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32652 : end' >>confcache
32653if diff $cache_file confcache >/dev/null 2>&1; then :; else
32654 if test -w $cache_file; then
32655 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32656 cat confcache >$cache_file
32657 else
32658 echo "not updating unwritable cache $cache_file"
32659 fi
32660fi
32661rm -f confcache
32662
32663
32664CPP_MT_FLAG=
32665if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32666
32667
32668 THREADS_LINK=
32669 THREADS_CFLAGS=
32670
32671 if test "$wxUSE_THREADS" = "yes" ; then
32672 if test "$USE_BEOS" = 1; then
32673 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32674echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32675 wxUSE_THREADS="no"
32676 fi
32677 fi
32678
32679 if test "$wxUSE_THREADS" = "yes" ; then
32680
32681
32682 THREAD_OPTS="-pthread"
32683 case "${host}" in
32684 *-*-solaris2* | *-*-sunos4* )
32685 if test "x$GCC" = "xyes"; then
32686 THREAD_OPTS="-pthreads $THREAD_OPTS"
32687 else
32688 THREAD_OPTS="-mt $THREAD_OPTS"
32689 fi
32690 ;;
32691 *-*-freebsd*)
32692 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32693 ;;
32694 *-*-darwin* | *-*-cygwin* )
32695 THREAD_OPTS=""
32696 ;;
32697 *-*-aix*)
32698 THREAD_OPTS="pthreads"
32699 ;;
32700 *-hp-hpux* )
32701 if test "x$GCC" != "xyes"; then
32702 THREAD_OPTS=""
32703 fi
32704 ;;
32705
32706 *-*-irix* )
32707 if test "x$GCC" = "xyes"; then
32708 THREAD_OPTS=""
32709 fi
32710 ;;
32711
32712 *-*-*UnixWare*)
32713 if test "x$GCC" != "xyes"; then
32714 THREAD_OPTS="-Ethread"
32715 fi
32716 ;;
32717 esac
32718
32719 THREAD_OPTS="$THREAD_OPTS pthread none"
32720
32721 THREADS_OK=no
32722 for flag in $THREAD_OPTS; do
32723 case $flag in
32724 none)
32725 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32726echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32727 ;;
32728
32729 -*)
32730 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32731echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32732 THREADS_CFLAGS="$flag"
32733 ;;
32734
32735 *)
32736 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32737echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32738 THREADS_LINK="-l$flag"
32739 ;;
32740 esac
32741
32742 save_LIBS="$LIBS"
32743 save_CFLAGS="$CFLAGS"
32744 LIBS="$THREADS_LINK $LIBS"
32745 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32746
32747 cat >conftest.$ac_ext <<_ACEOF
32748/* confdefs.h. */
32749_ACEOF
32750cat confdefs.h >>conftest.$ac_ext
32751cat >>conftest.$ac_ext <<_ACEOF
32752/* end confdefs.h. */
32753#include <pthread.h>
32754int
32755main ()
32756{
32757pthread_create(0,0,0,0);
32758 ;
32759 return 0;
32760}
32761_ACEOF
32762rm -f conftest.$ac_objext conftest$ac_exeext
32763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32764 (eval $ac_link) 2>conftest.er1
a848cd7e 32765 ac_status=$?
ac1cb8d3
VS
32766 grep -v '^ *+' conftest.er1 >conftest.err
32767 rm -f conftest.er1
32768 cat conftest.err >&5
a848cd7e
SC
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); } &&
89be85c2
VS
32771 { ac_try='test -z "$ac_c_werror_flag"
32772 || test ! -s conftest.err'
ac1cb8d3
VS
32773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32774 (eval $ac_try) 2>&5
32775 ac_status=$?
32776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777 (exit $ac_status); }; } &&
32778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32780 (eval $ac_try) 2>&5
32781 ac_status=$?
32782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); }; }; then
32784 THREADS_OK=yes
32785else
32786 echo "$as_me: failed program was:" >&5
32787sed 's/^/| /' conftest.$ac_ext >&5
32788
32789fi
ac1cb8d3
VS
32790rm -f conftest.err conftest.$ac_objext \
32791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32792
32793 LIBS="$save_LIBS"
32794 CFLAGS="$save_CFLAGS"
32795
32796 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32797echo "${ECHO_T}$THREADS_OK" >&6
32798 if test "x$THREADS_OK" = "xyes"; then
32799 break;
32800 fi
32801
32802 THREADS_LINK=""
32803 THREADS_CFLAGS=""
32804 done
32805
32806 if test "x$THREADS_OK" != "xyes"; then
32807 wxUSE_THREADS=no
32808 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32809echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32810 else
32811 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32812 LIBS="$THREADS_LINK $LIBS"
32813
32814 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32815echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32816 flag=no
32817 case "${host}" in
32818 *-aix*)
32819 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32820 flag="-D_THREAD_SAFE"
32821 ;;
32822 *-freebsd*)
32823 flag="-D_THREAD_SAFE"
32824 ;;
32825 *-hp-hpux* )
32826 flag="-D_REENTRANT"
32827 if test "x$GCC" != "xyes"; then
32828 flag="$flag -D_RWSTD_MULTI_THREAD"
32829 fi
32830 ;;
32831 *solaris* | alpha*-osf*)
32832 flag="-D_REENTRANT"
32833 ;;
32834 esac
32835 echo "$as_me:$LINENO: result: ${flag}" >&5
32836echo "${ECHO_T}${flag}" >&6
32837 if test "x$flag" != xno; then
32838 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32839 fi
32840
32841 if test "x$THREADS_CFLAGS" != "x"; then
32842 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32843 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32844 fi
32845 fi
32846 fi
32847
32848 if test "$wxUSE_THREADS" = "yes" ; then
32849
32850for ac_func in thr_setconcurrency
32851do
32852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32853echo "$as_me:$LINENO: checking for $ac_func" >&5
32854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32855if eval "test \"\${$as_ac_var+set}\" = set"; then
32856 echo $ECHO_N "(cached) $ECHO_C" >&6
32857else
32858 cat >conftest.$ac_ext <<_ACEOF
32859/* confdefs.h. */
32860_ACEOF
32861cat confdefs.h >>conftest.$ac_ext
32862cat >>conftest.$ac_ext <<_ACEOF
32863/* end confdefs.h. */
ac1cb8d3
VS
32864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32866#define $ac_func innocuous_$ac_func
32867
a848cd7e
SC
32868/* System header to define __stub macros and hopefully few prototypes,
32869 which can conflict with char $ac_func (); below.
32870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32871 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32872
a848cd7e
SC
32873#ifdef __STDC__
32874# include <limits.h>
32875#else
32876# include <assert.h>
32877#endif
ac1cb8d3
VS
32878
32879#undef $ac_func
32880
a848cd7e
SC
32881/* Override any gcc2 internal prototype to avoid an error. */
32882#ifdef __cplusplus
32883extern "C"
32884{
32885#endif
32886/* We use char because int might match the return type of a gcc2
32887 builtin and then its argument prototype would still apply. */
32888char $ac_func ();
32889/* The GNU C library defines this for functions which it implements
32890 to always fail with ENOSYS. Some functions are actually named
32891 something starting with __ and the normal name is an alias. */
32892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32893choke me
32894#else
32895char (*f) () = $ac_func;
32896#endif
32897#ifdef __cplusplus
32898}
32899#endif
32900
32901int
32902main ()
32903{
32904return f != $ac_func;
32905 ;
32906 return 0;
32907}
32908_ACEOF
32909rm -f conftest.$ac_objext conftest$ac_exeext
32910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32911 (eval $ac_link) 2>conftest.er1
a848cd7e 32912 ac_status=$?
ac1cb8d3
VS
32913 grep -v '^ *+' conftest.er1 >conftest.err
32914 rm -f conftest.er1
32915 cat conftest.err >&5
a848cd7e
SC
32916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917 (exit $ac_status); } &&
89be85c2
VS
32918 { ac_try='test -z "$ac_c_werror_flag"
32919 || test ! -s conftest.err'
ac1cb8d3
VS
32920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32921 (eval $ac_try) 2>&5
32922 ac_status=$?
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); }; } &&
32925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32927 (eval $ac_try) 2>&5
32928 ac_status=$?
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); }; }; then
32931 eval "$as_ac_var=yes"
32932else
32933 echo "$as_me: failed program was:" >&5
32934sed 's/^/| /' conftest.$ac_ext >&5
32935
32936eval "$as_ac_var=no"
32937fi
ac1cb8d3
VS
32938rm -f conftest.err conftest.$ac_objext \
32939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32940fi
32941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32943if test `eval echo '${'$as_ac_var'}'` = yes; then
32944 cat >>confdefs.h <<_ACEOF
32945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32946_ACEOF
32947
32948fi
32949done
32950
32951
32952
32953for ac_header in sched.h
32954do
32955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32956if eval "test \"\${$as_ac_Header+set}\" = set"; then
32957 echo "$as_me:$LINENO: checking for $ac_header" >&5
32958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32959if eval "test \"\${$as_ac_Header+set}\" = set"; then
32960 echo $ECHO_N "(cached) $ECHO_C" >&6
32961fi
32962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32964else
32965 # Is the header compilable?
32966echo "$as_me:$LINENO: checking $ac_header usability" >&5
32967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32968cat >conftest.$ac_ext <<_ACEOF
32969/* confdefs.h. */
32970_ACEOF
32971cat confdefs.h >>conftest.$ac_ext
32972cat >>conftest.$ac_ext <<_ACEOF
32973/* end confdefs.h. */
32974$ac_includes_default
32975#include <$ac_header>
32976_ACEOF
32977rm -f conftest.$ac_objext
32978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32979 (eval $ac_compile) 2>conftest.er1
a848cd7e 32980 ac_status=$?
ac1cb8d3
VS
32981 grep -v '^ *+' conftest.er1 >conftest.err
32982 rm -f conftest.er1
32983 cat conftest.err >&5
a848cd7e
SC
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); } &&
89be85c2
VS
32986 { ac_try='test -z "$ac_c_werror_flag"
32987 || test ! -s conftest.err'
ac1cb8d3
VS
32988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32989 (eval $ac_try) 2>&5
32990 ac_status=$?
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; } &&
32993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32995 (eval $ac_try) 2>&5
32996 ac_status=$?
32997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998 (exit $ac_status); }; }; then
32999 ac_header_compiler=yes
33000else
33001 echo "$as_me: failed program was:" >&5
33002sed 's/^/| /' conftest.$ac_ext >&5
33003
33004ac_header_compiler=no
33005fi
ac1cb8d3 33006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33008echo "${ECHO_T}$ac_header_compiler" >&6
33009
33010# Is the header present?
33011echo "$as_me:$LINENO: checking $ac_header presence" >&5
33012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33013cat >conftest.$ac_ext <<_ACEOF
33014/* confdefs.h. */
33015_ACEOF
33016cat confdefs.h >>conftest.$ac_ext
33017cat >>conftest.$ac_ext <<_ACEOF
33018/* end confdefs.h. */
33019#include <$ac_header>
33020_ACEOF
33021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33023 ac_status=$?
33024 grep -v '^ *+' conftest.er1 >conftest.err
33025 rm -f conftest.er1
33026 cat conftest.err >&5
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); } >/dev/null; then
33029 if test -s conftest.err; then
33030 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33032 else
33033 ac_cpp_err=
33034 fi
33035else
33036 ac_cpp_err=yes
33037fi
33038if test -z "$ac_cpp_err"; then
33039 ac_header_preproc=yes
33040else
33041 echo "$as_me: failed program was:" >&5
33042sed 's/^/| /' conftest.$ac_ext >&5
33043
33044 ac_header_preproc=no
33045fi
33046rm -f conftest.err conftest.$ac_ext
33047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33048echo "${ECHO_T}$ac_header_preproc" >&6
33049
33050# So? What about this header?
ac1cb8d3
VS
33051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33052 yes:no: )
a848cd7e
SC
33053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33057 ac_header_preproc=yes
a848cd7e 33058 ;;
ac1cb8d3 33059 no:yes:* )
a848cd7e
SC
33060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33072 (
33073 cat <<\_ASBOX
ac1cb8d3
VS
33074## ----------------------------------------- ##
33075## Report this to wx-dev@lists.wxwidgets.org ##
33076## ----------------------------------------- ##
a848cd7e
SC
33077_ASBOX
33078 ) |
33079 sed "s/^/$as_me: WARNING: /" >&2
33080 ;;
33081esac
33082echo "$as_me:$LINENO: checking for $ac_header" >&5
33083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33084if eval "test \"\${$as_ac_Header+set}\" = set"; then
33085 echo $ECHO_N "(cached) $ECHO_C" >&6
33086else
ac1cb8d3 33087 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33088fi
33089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33091
33092fi
33093if test `eval echo '${'$as_ac_Header'}'` = yes; then
33094 cat >>confdefs.h <<_ACEOF
33095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33096_ACEOF
33097
33098fi
33099
33100done
33101
33102 if test "$ac_cv_header_sched_h" = "yes"; then
33103 echo "$as_me:$LINENO: checking for sched_yield" >&5
33104echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33105if test "${ac_cv_func_sched_yield+set}" = set; then
33106 echo $ECHO_N "(cached) $ECHO_C" >&6
33107else
33108 cat >conftest.$ac_ext <<_ACEOF
33109/* confdefs.h. */
33110_ACEOF
33111cat confdefs.h >>conftest.$ac_ext
33112cat >>conftest.$ac_ext <<_ACEOF
33113/* end confdefs.h. */
ac1cb8d3
VS
33114/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33116#define sched_yield innocuous_sched_yield
33117
a848cd7e
SC
33118/* System header to define __stub macros and hopefully few prototypes,
33119 which can conflict with char sched_yield (); below.
33120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33121 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33122
a848cd7e
SC
33123#ifdef __STDC__
33124# include <limits.h>
33125#else
33126# include <assert.h>
33127#endif
ac1cb8d3
VS
33128
33129#undef sched_yield
33130
a848cd7e
SC
33131/* Override any gcc2 internal prototype to avoid an error. */
33132#ifdef __cplusplus
33133extern "C"
33134{
33135#endif
33136/* We use char because int might match the return type of a gcc2
33137 builtin and then its argument prototype would still apply. */
33138char sched_yield ();
33139/* The GNU C library defines this for functions which it implements
33140 to always fail with ENOSYS. Some functions are actually named
33141 something starting with __ and the normal name is an alias. */
33142#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33143choke me
33144#else
33145char (*f) () = sched_yield;
33146#endif
33147#ifdef __cplusplus
33148}
33149#endif
33150
33151int
33152main ()
33153{
33154return f != sched_yield;
33155 ;
33156 return 0;
33157}
33158_ACEOF
33159rm -f conftest.$ac_objext conftest$ac_exeext
33160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33161 (eval $ac_link) 2>conftest.er1
a848cd7e 33162 ac_status=$?
ac1cb8d3
VS
33163 grep -v '^ *+' conftest.er1 >conftest.err
33164 rm -f conftest.er1
33165 cat conftest.err >&5
a848cd7e
SC
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); } &&
89be85c2
VS
33168 { ac_try='test -z "$ac_c_werror_flag"
33169 || test ! -s conftest.err'
ac1cb8d3
VS
33170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33171 (eval $ac_try) 2>&5
33172 ac_status=$?
33173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174 (exit $ac_status); }; } &&
33175 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33177 (eval $ac_try) 2>&5
33178 ac_status=$?
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); }; }; then
33181 ac_cv_func_sched_yield=yes
33182else
33183 echo "$as_me: failed program was:" >&5
33184sed 's/^/| /' conftest.$ac_ext >&5
33185
33186ac_cv_func_sched_yield=no
33187fi
ac1cb8d3
VS
33188rm -f conftest.err conftest.$ac_objext \
33189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33190fi
33191echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33192echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33193if test $ac_cv_func_sched_yield = yes; then
33194 cat >>confdefs.h <<\_ACEOF
33195#define HAVE_SCHED_YIELD 1
33196_ACEOF
33197
33198else
33199
33200 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33201echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33202if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33203 echo $ECHO_N "(cached) $ECHO_C" >&6
33204else
33205 ac_check_lib_save_LIBS=$LIBS
33206LIBS="-lposix4 $LIBS"
33207cat >conftest.$ac_ext <<_ACEOF
33208/* confdefs.h. */
33209_ACEOF
33210cat confdefs.h >>conftest.$ac_ext
33211cat >>conftest.$ac_ext <<_ACEOF
33212/* end confdefs.h. */
33213
33214/* Override any gcc2 internal prototype to avoid an error. */
33215#ifdef __cplusplus
33216extern "C"
33217#endif
33218/* We use char because int might match the return type of a gcc2
33219 builtin and then its argument prototype would still apply. */
33220char sched_yield ();
33221int
33222main ()
33223{
33224sched_yield ();
33225 ;
33226 return 0;
33227}
33228_ACEOF
33229rm -f conftest.$ac_objext conftest$ac_exeext
33230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33231 (eval $ac_link) 2>conftest.er1
a848cd7e 33232 ac_status=$?
ac1cb8d3
VS
33233 grep -v '^ *+' conftest.er1 >conftest.err
33234 rm -f conftest.er1
33235 cat conftest.err >&5
a848cd7e
SC
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); } &&
89be85c2
VS
33238 { ac_try='test -z "$ac_c_werror_flag"
33239 || test ! -s conftest.err'
ac1cb8d3
VS
33240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241 (eval $ac_try) 2>&5
33242 ac_status=$?
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); }; } &&
33245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247 (eval $ac_try) 2>&5
33248 ac_status=$?
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; }; then
33251 ac_cv_lib_posix4_sched_yield=yes
33252else
33253 echo "$as_me: failed program was:" >&5
33254sed 's/^/| /' conftest.$ac_ext >&5
33255
33256ac_cv_lib_posix4_sched_yield=no
33257fi
ac1cb8d3
VS
33258rm -f conftest.err conftest.$ac_objext \
33259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33260LIBS=$ac_check_lib_save_LIBS
33261fi
33262echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33263echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33264if test $ac_cv_lib_posix4_sched_yield = yes; then
33265 cat >>confdefs.h <<\_ACEOF
33266#define HAVE_SCHED_YIELD 1
33267_ACEOF
33268 POSIX4_LINK=" -lposix4"
33269else
33270 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33271echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33272
33273fi
33274
33275
33276
33277fi
33278
33279 fi
33280
33281 HAVE_PRIOR_FUNCS=0
33282 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33283echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33284if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33285 echo $ECHO_N "(cached) $ECHO_C" >&6
33286else
33287 cat >conftest.$ac_ext <<_ACEOF
33288/* confdefs.h. */
33289_ACEOF
33290cat confdefs.h >>conftest.$ac_ext
33291cat >>conftest.$ac_ext <<_ACEOF
33292/* end confdefs.h. */
ac1cb8d3
VS
33293/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33295#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33296
a848cd7e
SC
33297/* System header to define __stub macros and hopefully few prototypes,
33298 which can conflict with char pthread_attr_getschedpolicy (); below.
33299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33301
a848cd7e
SC
33302#ifdef __STDC__
33303# include <limits.h>
33304#else
33305# include <assert.h>
33306#endif
ac1cb8d3
VS
33307
33308#undef pthread_attr_getschedpolicy
33309
a848cd7e
SC
33310/* Override any gcc2 internal prototype to avoid an error. */
33311#ifdef __cplusplus
33312extern "C"
33313{
33314#endif
33315/* We use char because int might match the return type of a gcc2
33316 builtin and then its argument prototype would still apply. */
33317char pthread_attr_getschedpolicy ();
33318/* The GNU C library defines this for functions which it implements
33319 to always fail with ENOSYS. Some functions are actually named
33320 something starting with __ and the normal name is an alias. */
33321#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33322choke me
33323#else
33324char (*f) () = pthread_attr_getschedpolicy;
33325#endif
33326#ifdef __cplusplus
33327}
33328#endif
33329
33330int
33331main ()
33332{
33333return f != pthread_attr_getschedpolicy;
33334 ;
33335 return 0;
33336}
33337_ACEOF
33338rm -f conftest.$ac_objext conftest$ac_exeext
33339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33340 (eval $ac_link) 2>conftest.er1
a848cd7e 33341 ac_status=$?
ac1cb8d3
VS
33342 grep -v '^ *+' conftest.er1 >conftest.err
33343 rm -f conftest.er1
33344 cat conftest.err >&5
a848cd7e
SC
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); } &&
89be85c2
VS
33347 { ac_try='test -z "$ac_c_werror_flag"
33348 || test ! -s conftest.err'
ac1cb8d3
VS
33349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350 (eval $ac_try) 2>&5
33351 ac_status=$?
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); }; } &&
33354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33357 ac_status=$?
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; }; then
33360 ac_cv_func_pthread_attr_getschedpolicy=yes
33361else
33362 echo "$as_me: failed program was:" >&5
33363sed 's/^/| /' conftest.$ac_ext >&5
33364
33365ac_cv_func_pthread_attr_getschedpolicy=no
33366fi
ac1cb8d3
VS
33367rm -f conftest.err conftest.$ac_objext \
33368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33369fi
33370echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33371echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33372if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33373 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33374echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33375if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33376 echo $ECHO_N "(cached) $ECHO_C" >&6
33377else
33378 cat >conftest.$ac_ext <<_ACEOF
33379/* confdefs.h. */
33380_ACEOF
33381cat confdefs.h >>conftest.$ac_ext
33382cat >>conftest.$ac_ext <<_ACEOF
33383/* end confdefs.h. */
ac1cb8d3
VS
33384/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33386#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33387
a848cd7e
SC
33388/* System header to define __stub macros and hopefully few prototypes,
33389 which can conflict with char pthread_attr_setschedparam (); below.
33390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33391 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33392
a848cd7e
SC
33393#ifdef __STDC__
33394# include <limits.h>
33395#else
33396# include <assert.h>
33397#endif
ac1cb8d3
VS
33398
33399#undef pthread_attr_setschedparam
33400
a848cd7e
SC
33401/* Override any gcc2 internal prototype to avoid an error. */
33402#ifdef __cplusplus
33403extern "C"
33404{
33405#endif
33406/* We use char because int might match the return type of a gcc2
33407 builtin and then its argument prototype would still apply. */
33408char pthread_attr_setschedparam ();
33409/* The GNU C library defines this for functions which it implements
33410 to always fail with ENOSYS. Some functions are actually named
33411 something starting with __ and the normal name is an alias. */
33412#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33413choke me
33414#else
33415char (*f) () = pthread_attr_setschedparam;
33416#endif
33417#ifdef __cplusplus
33418}
33419#endif
33420
33421int
33422main ()
33423{
33424return f != pthread_attr_setschedparam;
33425 ;
33426 return 0;
33427}
33428_ACEOF
33429rm -f conftest.$ac_objext conftest$ac_exeext
33430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33431 (eval $ac_link) 2>conftest.er1
a848cd7e 33432 ac_status=$?
ac1cb8d3
VS
33433 grep -v '^ *+' conftest.er1 >conftest.err
33434 rm -f conftest.er1
33435 cat conftest.err >&5
a848cd7e
SC
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); } &&
89be85c2
VS
33438 { ac_try='test -z "$ac_c_werror_flag"
33439 || test ! -s conftest.err'
ac1cb8d3
VS
33440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33441 (eval $ac_try) 2>&5
33442 ac_status=$?
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); }; } &&
33445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33447 (eval $ac_try) 2>&5
33448 ac_status=$?
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); }; }; then
33451 ac_cv_func_pthread_attr_setschedparam=yes
33452else
33453 echo "$as_me: failed program was:" >&5
33454sed 's/^/| /' conftest.$ac_ext >&5
33455
33456ac_cv_func_pthread_attr_setschedparam=no
33457fi
ac1cb8d3
VS
33458rm -f conftest.err conftest.$ac_objext \
33459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33460fi
33461echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33462echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33463if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33464 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33465echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33466if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33467 echo $ECHO_N "(cached) $ECHO_C" >&6
33468else
33469 cat >conftest.$ac_ext <<_ACEOF
33470/* confdefs.h. */
33471_ACEOF
33472cat confdefs.h >>conftest.$ac_ext
33473cat >>conftest.$ac_ext <<_ACEOF
33474/* end confdefs.h. */
ac1cb8d3
VS
33475/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33477#define sched_get_priority_max innocuous_sched_get_priority_max
33478
a848cd7e
SC
33479/* System header to define __stub macros and hopefully few prototypes,
33480 which can conflict with char sched_get_priority_max (); below.
33481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33482 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33483
a848cd7e
SC
33484#ifdef __STDC__
33485# include <limits.h>
33486#else
33487# include <assert.h>
33488#endif
ac1cb8d3
VS
33489
33490#undef sched_get_priority_max
33491
a848cd7e
SC
33492/* Override any gcc2 internal prototype to avoid an error. */
33493#ifdef __cplusplus
33494extern "C"
33495{
33496#endif
33497/* We use char because int might match the return type of a gcc2
33498 builtin and then its argument prototype would still apply. */
33499char sched_get_priority_max ();
33500/* The GNU C library defines this for functions which it implements
33501 to always fail with ENOSYS. Some functions are actually named
33502 something starting with __ and the normal name is an alias. */
33503#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33504choke me
33505#else
33506char (*f) () = sched_get_priority_max;
33507#endif
33508#ifdef __cplusplus
33509}
33510#endif
33511
33512int
33513main ()
33514{
33515return f != sched_get_priority_max;
33516 ;
33517 return 0;
33518}
33519_ACEOF
33520rm -f conftest.$ac_objext conftest$ac_exeext
33521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33522 (eval $ac_link) 2>conftest.er1
a848cd7e 33523 ac_status=$?
ac1cb8d3
VS
33524 grep -v '^ *+' conftest.er1 >conftest.err
33525 rm -f conftest.er1
33526 cat conftest.err >&5
a848cd7e
SC
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); } &&
89be85c2
VS
33529 { ac_try='test -z "$ac_c_werror_flag"
33530 || test ! -s conftest.err'
ac1cb8d3
VS
33531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33532 (eval $ac_try) 2>&5
33533 ac_status=$?
33534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535 (exit $ac_status); }; } &&
33536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33538 (eval $ac_try) 2>&5
33539 ac_status=$?
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); }; }; then
33542 ac_cv_func_sched_get_priority_max=yes
33543else
33544 echo "$as_me: failed program was:" >&5
33545sed 's/^/| /' conftest.$ac_ext >&5
33546
33547ac_cv_func_sched_get_priority_max=no
33548fi
ac1cb8d3
VS
33549rm -f conftest.err conftest.$ac_objext \
33550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33551fi
33552echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33553echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33554if test $ac_cv_func_sched_get_priority_max = yes; then
33555 HAVE_PRIOR_FUNCS=1
33556else
33557 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33558echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33559if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33560 echo $ECHO_N "(cached) $ECHO_C" >&6
33561else
33562 ac_check_lib_save_LIBS=$LIBS
33563LIBS="-lposix4 $LIBS"
33564cat >conftest.$ac_ext <<_ACEOF
33565/* confdefs.h. */
33566_ACEOF
33567cat confdefs.h >>conftest.$ac_ext
33568cat >>conftest.$ac_ext <<_ACEOF
33569/* end confdefs.h. */
33570
33571/* Override any gcc2 internal prototype to avoid an error. */
33572#ifdef __cplusplus
33573extern "C"
33574#endif
33575/* We use char because int might match the return type of a gcc2
33576 builtin and then its argument prototype would still apply. */
33577char sched_get_priority_max ();
33578int
33579main ()
33580{
33581sched_get_priority_max ();
33582 ;
33583 return 0;
33584}
33585_ACEOF
33586rm -f conftest.$ac_objext conftest$ac_exeext
33587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33588 (eval $ac_link) 2>conftest.er1
a848cd7e 33589 ac_status=$?
ac1cb8d3
VS
33590 grep -v '^ *+' conftest.er1 >conftest.err
33591 rm -f conftest.er1
33592 cat conftest.err >&5
a848cd7e
SC
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); } &&
89be85c2
VS
33595 { ac_try='test -z "$ac_c_werror_flag"
33596 || test ! -s conftest.err'
ac1cb8d3
VS
33597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598 (eval $ac_try) 2>&5
33599 ac_status=$?
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; } &&
33602 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33604 (eval $ac_try) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; }; then
33608 ac_cv_lib_posix4_sched_get_priority_max=yes
33609else
33610 echo "$as_me: failed program was:" >&5
33611sed 's/^/| /' conftest.$ac_ext >&5
33612
33613ac_cv_lib_posix4_sched_get_priority_max=no
33614fi
ac1cb8d3
VS
33615rm -f conftest.err conftest.$ac_objext \
33616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33617LIBS=$ac_check_lib_save_LIBS
33618fi
33619echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33620echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33621if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33622
33623 HAVE_PRIOR_FUNCS=1
33624 POSIX4_LINK=" -lposix4"
33625
33626fi
33627
33628
33629fi
33630
33631
33632fi
33633
33634
33635fi
33636
33637
33638 if test "$HAVE_PRIOR_FUNCS" = 1; then
33639 cat >>confdefs.h <<\_ACEOF
33640#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33641_ACEOF
33642
33643 else
33644 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33645echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33646 fi
33647
33648 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33649echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33650if test "${ac_cv_func_pthread_cancel+set}" = set; then
33651 echo $ECHO_N "(cached) $ECHO_C" >&6
33652else
33653 cat >conftest.$ac_ext <<_ACEOF
33654/* confdefs.h. */
33655_ACEOF
33656cat confdefs.h >>conftest.$ac_ext
33657cat >>conftest.$ac_ext <<_ACEOF
33658/* end confdefs.h. */
ac1cb8d3
VS
33659/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33661#define pthread_cancel innocuous_pthread_cancel
33662
a848cd7e
SC
33663/* System header to define __stub macros and hopefully few prototypes,
33664 which can conflict with char pthread_cancel (); below.
33665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33666 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33667
a848cd7e
SC
33668#ifdef __STDC__
33669# include <limits.h>
33670#else
33671# include <assert.h>
33672#endif
ac1cb8d3
VS
33673
33674#undef pthread_cancel
33675
a848cd7e
SC
33676/* Override any gcc2 internal prototype to avoid an error. */
33677#ifdef __cplusplus
33678extern "C"
33679{
33680#endif
33681/* We use char because int might match the return type of a gcc2
33682 builtin and then its argument prototype would still apply. */
33683char pthread_cancel ();
33684/* The GNU C library defines this for functions which it implements
33685 to always fail with ENOSYS. Some functions are actually named
33686 something starting with __ and the normal name is an alias. */
33687#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33688choke me
33689#else
33690char (*f) () = pthread_cancel;
33691#endif
33692#ifdef __cplusplus
33693}
33694#endif
33695
33696int
33697main ()
33698{
33699return f != pthread_cancel;
33700 ;
33701 return 0;
33702}
33703_ACEOF
33704rm -f conftest.$ac_objext conftest$ac_exeext
33705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33706 (eval $ac_link) 2>conftest.er1
a848cd7e 33707 ac_status=$?
ac1cb8d3
VS
33708 grep -v '^ *+' conftest.er1 >conftest.err
33709 rm -f conftest.er1
33710 cat conftest.err >&5
a848cd7e
SC
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); } &&
89be85c2
VS
33713 { ac_try='test -z "$ac_c_werror_flag"
33714 || test ! -s conftest.err'
ac1cb8d3
VS
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; } &&
33720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722 (eval $ac_try) 2>&5
33723 ac_status=$?
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); }; }; then
33726 ac_cv_func_pthread_cancel=yes
33727else
33728 echo "$as_me: failed program was:" >&5
33729sed 's/^/| /' conftest.$ac_ext >&5
33730
33731ac_cv_func_pthread_cancel=no
33732fi
ac1cb8d3
VS
33733rm -f conftest.err conftest.$ac_objext \
33734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33735fi
33736echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33737echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33738if test $ac_cv_func_pthread_cancel = yes; then
33739 cat >>confdefs.h <<\_ACEOF
33740#define HAVE_PTHREAD_CANCEL 1
33741_ACEOF
33742
33743else
33744 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33745echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33746fi
33747
33748
33749
33750
33751 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33752echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33753if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33754 echo $ECHO_N "(cached) $ECHO_C" >&6
33755else
33756
33757 cat >conftest.$ac_ext <<_ACEOF
33758/* confdefs.h. */
33759_ACEOF
33760cat confdefs.h >>conftest.$ac_ext
33761cat >>conftest.$ac_ext <<_ACEOF
33762/* end confdefs.h. */
33763#include <pthread.h>
33764int
33765main ()
33766{
33767
33768 pthread_mutexattr_t attr;
33769 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33770
33771 ;
33772 return 0;
33773}
33774_ACEOF
33775rm -f conftest.$ac_objext
33776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33777 (eval $ac_compile) 2>conftest.er1
a848cd7e 33778 ac_status=$?
ac1cb8d3
VS
33779 grep -v '^ *+' conftest.er1 >conftest.err
33780 rm -f conftest.er1
33781 cat conftest.err >&5
a848cd7e
SC
33782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783 (exit $ac_status); } &&
89be85c2
VS
33784 { ac_try='test -z "$ac_c_werror_flag"
33785 || test ! -s conftest.err'
ac1cb8d3
VS
33786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33787 (eval $ac_try) 2>&5
33788 ac_status=$?
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); }; } &&
33791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793 (eval $ac_try) 2>&5
33794 ac_status=$?
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); }; }; then
33797
33798 wx_cv_type_pthread_mutexattr_t=yes
33799
33800else
33801 echo "$as_me: failed program was:" >&5
33802sed 's/^/| /' conftest.$ac_ext >&5
33803
33804
33805 wx_cv_type_pthread_mutexattr_t=no
33806
33807
33808fi
ac1cb8d3 33809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33810
33811fi
33812echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33813echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33814
33815 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33816 cat >>confdefs.h <<\_ACEOF
33817#define HAVE_PTHREAD_MUTEXATTR_T 1
33818_ACEOF
33819
33820 else
33821 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33822echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33823if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33824 echo $ECHO_N "(cached) $ECHO_C" >&6
33825else
33826
33827 cat >conftest.$ac_ext <<_ACEOF
33828/* confdefs.h. */
33829_ACEOF
33830cat confdefs.h >>conftest.$ac_ext
33831cat >>conftest.$ac_ext <<_ACEOF
33832/* end confdefs.h. */
33833#include <pthread.h>
33834int
33835main ()
33836{
33837
33838 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33839
33840 ;
33841 return 0;
33842}
33843_ACEOF
33844rm -f conftest.$ac_objext
33845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33846 (eval $ac_compile) 2>conftest.er1
a848cd7e 33847 ac_status=$?
ac1cb8d3
VS
33848 grep -v '^ *+' conftest.er1 >conftest.err
33849 rm -f conftest.er1
33850 cat conftest.err >&5
a848cd7e
SC
33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); } &&
89be85c2
VS
33853 { ac_try='test -z "$ac_c_werror_flag"
33854 || test ! -s conftest.err'
ac1cb8d3
VS
33855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33856 (eval $ac_try) 2>&5
33857 ac_status=$?
33858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33859 (exit $ac_status); }; } &&
33860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33862 (eval $ac_try) 2>&5
33863 ac_status=$?
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); }; }; then
33866
33867 wx_cv_type_pthread_rec_mutex_init=yes
33868
33869else
33870 echo "$as_me: failed program was:" >&5
33871sed 's/^/| /' conftest.$ac_ext >&5
33872
33873
33874 wx_cv_type_pthread_rec_mutex_init=no
33875
33876
33877fi
ac1cb8d3 33878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33879
33880fi
33881echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33882echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33883 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33884 cat >>confdefs.h <<\_ACEOF
33885#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33886_ACEOF
33887
33888 else
33889 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33890echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33891 fi
33892 fi
33893 fi
33894
33895else
33896 if test "$wxUSE_THREADS" = "yes" ; then
33897 case "${host}" in
33898 *-*-mingw32* )
33899 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33900echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33901if test "${wx_cv_cflags_mthread+set}" = set; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33903else
33904
33905 CFLAGS_OLD="$CFLAGS"
33906 CFLAGS="$CFLAGS -mthreads"
33907 cat >conftest.$ac_ext <<_ACEOF
33908/* confdefs.h. */
33909_ACEOF
33910cat confdefs.h >>conftest.$ac_ext
33911cat >>conftest.$ac_ext <<_ACEOF
33912/* end confdefs.h. */
33913
33914int
33915main ()
33916{
33917
33918 ;
33919 return 0;
33920}
33921_ACEOF
33922rm -f conftest.$ac_objext
33923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33924 (eval $ac_compile) 2>conftest.er1
a848cd7e 33925 ac_status=$?
ac1cb8d3
VS
33926 grep -v '^ *+' conftest.er1 >conftest.err
33927 rm -f conftest.er1
33928 cat conftest.err >&5
a848cd7e
SC
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } &&
89be85c2
VS
33931 { ac_try='test -z "$ac_c_werror_flag"
33932 || test ! -s conftest.err'
ac1cb8d3
VS
33933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33934 (eval $ac_try) 2>&5
33935 ac_status=$?
33936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33937 (exit $ac_status); }; } &&
33938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33940 (eval $ac_try) 2>&5
33941 ac_status=$?
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); }; }; then
33944 wx_cv_cflags_mthread=yes
33945else
33946 echo "$as_me: failed program was:" >&5
33947sed 's/^/| /' conftest.$ac_ext >&5
33948
33949wx_cv_cflags_mthread=no
33950
33951fi
ac1cb8d3 33952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33953
33954
33955fi
33956echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33957echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33958
33959 if test "$wx_cv_cflags_mthread" = "yes"; then
33960 CXXFLAGS="$CXXFLAGS -mthreads"
33961 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33962 LDFLAGS="$LDFLAGS -mthreads"
33963 else
33964 CFLAGS="$CFLAGS_OLD"
33965 fi
33966 ;;
33967 *-pc-os2*emx )
33968 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33969 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33970 LDFLAGS="$LDFLAGS -Zmt"
33971 ;;
33972 esac
33973 fi
33974fi
33975
33976if test "$wxUSE_THREADS" = "yes"; then
33977 cat >>confdefs.h <<\_ACEOF
33978#define wxUSE_THREADS 1
33979_ACEOF
33980
33981
33982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33983else
33984 if test "$ac_cv_func_strtok_r" = "yes"; then
33985 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33986echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33987 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33988 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33989 echo "$as_me:$LINENO: result: yes" >&5
33990echo "${ECHO_T}yes" >&6
33991 else
33992 echo "$as_me:$LINENO: result: no" >&5
33993echo "${ECHO_T}no" >&6
33994 fi
33995 fi
33996fi
33997
33998if test "$WXGTK20" = 1 ; then
33999 cat >>confdefs.h <<_ACEOF
34000#define __WXGTK20__ $WXGTK20
34001_ACEOF
34002
34003 WXGTK12=1
34004fi
34005
34006if test "$WXGTK12" = 1 ; then
34007 cat >>confdefs.h <<_ACEOF
34008#define __WXGTK12__ $WXGTK12
34009_ACEOF
34010
34011fi
34012
34013if test "$WXGTK127" = 1 ; then
34014 cat >>confdefs.h <<_ACEOF
34015#define __WXGTK127__ $WXGTK127
34016_ACEOF
34017
34018fi
34019
34020if test "$WXGPE" = 1 ; then
34021 cat >>confdefs.h <<_ACEOF
34022#define __WXGPE__ $WXGPE
34023_ACEOF
34024
34025fi
34026
34027WXDEBUG=
34028
34029if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34030 WXDEBUG="-g"
34031 wxUSE_OPTIMISE=no
34032fi
34033
34034if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34035 wxUSE_DEBUG_INFO=yes
34036 WXDEBUG="-ggdb"
34037fi
34038
34039if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34040 cat >>confdefs.h <<\_ACEOF
34041#define WXDEBUG 1
34042_ACEOF
34043
34044 WXDEBUG_DEFINE="-D__WXDEBUG__"
34045else
34046 if test "$wxUSE_GTK" = 1 ; then
34047 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34048 fi
34049fi
34050
34051if test "$wxUSE_MEM_TRACING" = "yes" ; then
34052 cat >>confdefs.h <<\_ACEOF
34053#define wxUSE_MEMORY_TRACING 1
34054_ACEOF
34055
34056 cat >>confdefs.h <<\_ACEOF
34057#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34058_ACEOF
34059
34060 cat >>confdefs.h <<\_ACEOF
34061#define wxUSE_DEBUG_NEW_ALWAYS 1
34062_ACEOF
34063
34064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34065fi
34066
34067if test "$wxUSE_DMALLOC" = "yes" ; then
34068 DMALLOC_LIBS="-ldmalloc"
34069fi
34070
34071PROFILE=
34072if test "$wxUSE_PROFILE" = "yes" ; then
34073 PROFILE=" -pg"
34074fi
34075
34076CODE_GEN_FLAGS=
34077CODE_GEN_FLAGS_CXX=
34078if test "$GCC" = "yes" ; then
34079 if test "$wxUSE_NO_RTTI" = "yes" ; then
34080 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34081 fi
34082 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34083 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34084 fi
34085 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34086 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34087 fi
34088
34089 case "${host}" in
34090 powerpc*-*-aix* )
34091 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34092 ;;
34093 *-hppa* )
34094 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34095 ;;
34096 esac
34097fi
34098
34099OPTIMISE=
34100if test "$wxUSE_OPTIMISE" = "no" ; then
34101 if test "$GCC" = yes ; then
34102 OPTIMISE="-O0"
34103 fi
34104else
34105 if test "$GCC" = yes ; then
34106 OPTIMISE="-O2"
34107
34108 case "${host}" in
34109 i586-*-*|i686-*-* )
34110 OPTIMISE="${OPTIMISE} "
34111 ;;
34112 esac
34113 else
34114 OPTIMISE="-O"
34115 fi
34116fi
34117
34118
34119if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34120 cat >>confdefs.h <<\_ACEOF
34121#define WXWIN_COMPATIBILITY_2_2 1
34122_ACEOF
34123
34124
34125 WXWIN_COMPATIBILITY_2_4="yes"
34126fi
34127
34128if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34129 cat >>confdefs.h <<\_ACEOF
34130#define WXWIN_COMPATIBILITY_2_4 1
34131_ACEOF
34132
34133fi
34134
34135
34136if test "$wxUSE_GUI" = "yes"; then
881bfcd6 34137 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34138#define wxUSE_GUI 1
34139_ACEOF
34140
34141
370fd4c2 34142 fi
a848cd7e
SC
34143
34144
34145if test "$wxUSE_UNIX" = "yes"; then
34146 cat >>confdefs.h <<\_ACEOF
34147#define wxUSE_UNIX 1
34148_ACEOF
34149
34150fi
34151
34152
34153if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34154
34155 HAVE_DL_FUNCS=0
34156 HAVE_SHL_FUNCS=0
34157 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34158 if test "$USE_DARWIN" = 1; then
34159 HAVE_DL_FUNCS=1
34160 else
34161
34162for ac_func in dlopen
34163do
34164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34165echo "$as_me:$LINENO: checking for $ac_func" >&5
34166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34167if eval "test \"\${$as_ac_var+set}\" = set"; then
34168 echo $ECHO_N "(cached) $ECHO_C" >&6
34169else
34170 cat >conftest.$ac_ext <<_ACEOF
34171/* confdefs.h. */
34172_ACEOF
34173cat confdefs.h >>conftest.$ac_ext
34174cat >>conftest.$ac_ext <<_ACEOF
34175/* end confdefs.h. */
ac1cb8d3
VS
34176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34178#define $ac_func innocuous_$ac_func
34179
a848cd7e
SC
34180/* System header to define __stub macros and hopefully few prototypes,
34181 which can conflict with char $ac_func (); below.
34182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34183 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34184
a848cd7e
SC
34185#ifdef __STDC__
34186# include <limits.h>
34187#else
34188# include <assert.h>
34189#endif
ac1cb8d3
VS
34190
34191#undef $ac_func
34192
a848cd7e
SC
34193/* Override any gcc2 internal prototype to avoid an error. */
34194#ifdef __cplusplus
34195extern "C"
34196{
34197#endif
34198/* We use char because int might match the return type of a gcc2
34199 builtin and then its argument prototype would still apply. */
34200char $ac_func ();
34201/* The GNU C library defines this for functions which it implements
34202 to always fail with ENOSYS. Some functions are actually named
34203 something starting with __ and the normal name is an alias. */
34204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34205choke me
34206#else
34207char (*f) () = $ac_func;
34208#endif
34209#ifdef __cplusplus
34210}
34211#endif
34212
34213int
34214main ()
34215{
34216return f != $ac_func;
34217 ;
34218 return 0;
34219}
34220_ACEOF
34221rm -f conftest.$ac_objext conftest$ac_exeext
34222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34223 (eval $ac_link) 2>conftest.er1
a848cd7e 34224 ac_status=$?
ac1cb8d3
VS
34225 grep -v '^ *+' conftest.er1 >conftest.err
34226 rm -f conftest.er1
34227 cat conftest.err >&5
a848cd7e
SC
34228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229 (exit $ac_status); } &&
89be85c2
VS
34230 { ac_try='test -z "$ac_c_werror_flag"
34231 || test ! -s conftest.err'
ac1cb8d3
VS
34232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34233 (eval $ac_try) 2>&5
34234 ac_status=$?
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); }; } &&
34237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34239 (eval $ac_try) 2>&5
34240 ac_status=$?
34241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242 (exit $ac_status); }; }; then
34243 eval "$as_ac_var=yes"
34244else
34245 echo "$as_me: failed program was:" >&5
34246sed 's/^/| /' conftest.$ac_ext >&5
34247
34248eval "$as_ac_var=no"
34249fi
ac1cb8d3
VS
34250rm -f conftest.err conftest.$ac_objext \
34251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34252fi
34253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34255if test `eval echo '${'$as_ac_var'}'` = yes; then
34256 cat >>confdefs.h <<_ACEOF
34257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34258_ACEOF
34259
34260 cat >>confdefs.h <<\_ACEOF
34261#define HAVE_DLOPEN 1
34262_ACEOF
34263
34264 HAVE_DL_FUNCS=1
34265
34266else
34267
34268 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34269echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34271 echo $ECHO_N "(cached) $ECHO_C" >&6
34272else
34273 ac_check_lib_save_LIBS=$LIBS
34274LIBS="-ldl $LIBS"
34275cat >conftest.$ac_ext <<_ACEOF
34276/* confdefs.h. */
34277_ACEOF
34278cat confdefs.h >>conftest.$ac_ext
34279cat >>conftest.$ac_ext <<_ACEOF
34280/* end confdefs.h. */
34281
34282/* Override any gcc2 internal prototype to avoid an error. */
34283#ifdef __cplusplus
34284extern "C"
34285#endif
34286/* We use char because int might match the return type of a gcc2
34287 builtin and then its argument prototype would still apply. */
34288char dlopen ();
34289int
34290main ()
34291{
34292dlopen ();
34293 ;
34294 return 0;
34295}
34296_ACEOF
34297rm -f conftest.$ac_objext conftest$ac_exeext
34298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34299 (eval $ac_link) 2>conftest.er1
a848cd7e 34300 ac_status=$?
ac1cb8d3
VS
34301 grep -v '^ *+' conftest.er1 >conftest.err
34302 rm -f conftest.er1
34303 cat conftest.err >&5
a848cd7e
SC
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); } &&
89be85c2
VS
34306 { ac_try='test -z "$ac_c_werror_flag"
34307 || test ! -s conftest.err'
ac1cb8d3
VS
34308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34309 (eval $ac_try) 2>&5
34310 ac_status=$?
34311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312 (exit $ac_status); }; } &&
34313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34315 (eval $ac_try) 2>&5
34316 ac_status=$?
34317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318 (exit $ac_status); }; }; then
34319 ac_cv_lib_dl_dlopen=yes
34320else
34321 echo "$as_me: failed program was:" >&5
34322sed 's/^/| /' conftest.$ac_ext >&5
34323
34324ac_cv_lib_dl_dlopen=no
34325fi
ac1cb8d3
VS
34326rm -f conftest.err conftest.$ac_objext \
34327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34328LIBS=$ac_check_lib_save_LIBS
34329fi
34330echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34331echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34332if test $ac_cv_lib_dl_dlopen = yes; then
34333
34334 cat >>confdefs.h <<\_ACEOF
34335#define HAVE_DLOPEN 1
34336_ACEOF
34337
34338 HAVE_DL_FUNCS=1
34339 DL_LINK=" -ldl$DL_LINK"
34340
34341else
34342
34343
34344for ac_func in shl_load
34345do
34346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34347echo "$as_me:$LINENO: checking for $ac_func" >&5
34348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34349if eval "test \"\${$as_ac_var+set}\" = set"; then
34350 echo $ECHO_N "(cached) $ECHO_C" >&6
34351else
34352 cat >conftest.$ac_ext <<_ACEOF
34353/* confdefs.h. */
34354_ACEOF
34355cat confdefs.h >>conftest.$ac_ext
34356cat >>conftest.$ac_ext <<_ACEOF
34357/* end confdefs.h. */
ac1cb8d3
VS
34358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34360#define $ac_func innocuous_$ac_func
34361
a848cd7e
SC
34362/* System header to define __stub macros and hopefully few prototypes,
34363 which can conflict with char $ac_func (); below.
34364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34365 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34366
a848cd7e
SC
34367#ifdef __STDC__
34368# include <limits.h>
34369#else
34370# include <assert.h>
34371#endif
ac1cb8d3
VS
34372
34373#undef $ac_func
34374
a848cd7e
SC
34375/* Override any gcc2 internal prototype to avoid an error. */
34376#ifdef __cplusplus
34377extern "C"
34378{
34379#endif
34380/* We use char because int might match the return type of a gcc2
34381 builtin and then its argument prototype would still apply. */
34382char $ac_func ();
34383/* The GNU C library defines this for functions which it implements
34384 to always fail with ENOSYS. Some functions are actually named
34385 something starting with __ and the normal name is an alias. */
34386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34387choke me
34388#else
34389char (*f) () = $ac_func;
34390#endif
34391#ifdef __cplusplus
34392}
34393#endif
34394
34395int
34396main ()
34397{
34398return f != $ac_func;
34399 ;
34400 return 0;
34401}
34402_ACEOF
34403rm -f conftest.$ac_objext conftest$ac_exeext
34404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34405 (eval $ac_link) 2>conftest.er1
a848cd7e 34406 ac_status=$?
ac1cb8d3
VS
34407 grep -v '^ *+' conftest.er1 >conftest.err
34408 rm -f conftest.er1
34409 cat conftest.err >&5
a848cd7e
SC
34410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411 (exit $ac_status); } &&
89be85c2
VS
34412 { ac_try='test -z "$ac_c_werror_flag"
34413 || test ! -s conftest.err'
ac1cb8d3
VS
34414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34415 (eval $ac_try) 2>&5
34416 ac_status=$?
34417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34418 (exit $ac_status); }; } &&
34419 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34421 (eval $ac_try) 2>&5
34422 ac_status=$?
34423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34424 (exit $ac_status); }; }; then
34425 eval "$as_ac_var=yes"
34426else
34427 echo "$as_me: failed program was:" >&5
34428sed 's/^/| /' conftest.$ac_ext >&5
34429
34430eval "$as_ac_var=no"
34431fi
ac1cb8d3
VS
34432rm -f conftest.err conftest.$ac_objext \
34433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34434fi
34435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34437if test `eval echo '${'$as_ac_var'}'` = yes; then
34438 cat >>confdefs.h <<_ACEOF
34439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34440_ACEOF
34441
34442 cat >>confdefs.h <<\_ACEOF
34443#define HAVE_SHL_LOAD 1
34444_ACEOF
34445
34446 HAVE_SHL_FUNCS=1
34447
34448else
34449
34450 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34451echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34452if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34453 echo $ECHO_N "(cached) $ECHO_C" >&6
34454else
34455 ac_check_lib_save_LIBS=$LIBS
34456LIBS="-lshl_load $LIBS"
34457cat >conftest.$ac_ext <<_ACEOF
34458/* confdefs.h. */
34459_ACEOF
34460cat confdefs.h >>conftest.$ac_ext
34461cat >>conftest.$ac_ext <<_ACEOF
34462/* end confdefs.h. */
34463
34464/* Override any gcc2 internal prototype to avoid an error. */
34465#ifdef __cplusplus
34466extern "C"
34467#endif
34468/* We use char because int might match the return type of a gcc2
34469 builtin and then its argument prototype would still apply. */
34470char dld ();
34471int
34472main ()
34473{
34474dld ();
34475 ;
34476 return 0;
34477}
34478_ACEOF
34479rm -f conftest.$ac_objext conftest$ac_exeext
34480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34481 (eval $ac_link) 2>conftest.er1
a848cd7e 34482 ac_status=$?
ac1cb8d3
VS
34483 grep -v '^ *+' conftest.er1 >conftest.err
34484 rm -f conftest.er1
34485 cat conftest.err >&5
a848cd7e
SC
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } &&
89be85c2
VS
34488 { ac_try='test -z "$ac_c_werror_flag"
34489 || test ! -s conftest.err'
ac1cb8d3
VS
34490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491 (eval $ac_try) 2>&5
34492 ac_status=$?
34493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 (exit $ac_status); }; } &&
34495 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497 (eval $ac_try) 2>&5
34498 ac_status=$?
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); }; }; then
34501 ac_cv_lib_shl_load_dld=yes
34502else
34503 echo "$as_me: failed program was:" >&5
34504sed 's/^/| /' conftest.$ac_ext >&5
34505
34506ac_cv_lib_shl_load_dld=no
34507fi
ac1cb8d3
VS
34508rm -f conftest.err conftest.$ac_objext \
34509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34510LIBS=$ac_check_lib_save_LIBS
34511fi
34512echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34513echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34514if test $ac_cv_lib_shl_load_dld = yes; then
34515
34516 HAVE_SHL_FUNCS=1
34517 DL_LINK=" -ldld$DL_LINK"
34518
34519fi
34520
34521
34522fi
34523done
34524
34525
34526fi
34527
34528
34529fi
34530done
34531
34532
34533 if test "$HAVE_DL_FUNCS" = 1; then
34534
34535for ac_func in dlerror
34536do
34537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34538echo "$as_me:$LINENO: checking for $ac_func" >&5
34539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34540if eval "test \"\${$as_ac_var+set}\" = set"; then
34541 echo $ECHO_N "(cached) $ECHO_C" >&6
34542else
34543 cat >conftest.$ac_ext <<_ACEOF
34544/* confdefs.h. */
34545_ACEOF
34546cat confdefs.h >>conftest.$ac_ext
34547cat >>conftest.$ac_ext <<_ACEOF
34548/* end confdefs.h. */
ac1cb8d3
VS
34549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34551#define $ac_func innocuous_$ac_func
34552
a848cd7e
SC
34553/* System header to define __stub macros and hopefully few prototypes,
34554 which can conflict with char $ac_func (); below.
34555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34556 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34557
a848cd7e
SC
34558#ifdef __STDC__
34559# include <limits.h>
34560#else
34561# include <assert.h>
34562#endif
ac1cb8d3
VS
34563
34564#undef $ac_func
34565
a848cd7e
SC
34566/* Override any gcc2 internal prototype to avoid an error. */
34567#ifdef __cplusplus
34568extern "C"
34569{
34570#endif
34571/* We use char because int might match the return type of a gcc2
34572 builtin and then its argument prototype would still apply. */
34573char $ac_func ();
34574/* The GNU C library defines this for functions which it implements
34575 to always fail with ENOSYS. Some functions are actually named
34576 something starting with __ and the normal name is an alias. */
34577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34578choke me
34579#else
34580char (*f) () = $ac_func;
34581#endif
34582#ifdef __cplusplus
34583}
34584#endif
34585
34586int
34587main ()
34588{
34589return f != $ac_func;
34590 ;
34591 return 0;
34592}
34593_ACEOF
34594rm -f conftest.$ac_objext conftest$ac_exeext
34595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34596 (eval $ac_link) 2>conftest.er1
a848cd7e 34597 ac_status=$?
ac1cb8d3
VS
34598 grep -v '^ *+' conftest.er1 >conftest.err
34599 rm -f conftest.er1
34600 cat conftest.err >&5
a848cd7e
SC
34601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602 (exit $ac_status); } &&
89be85c2
VS
34603 { ac_try='test -z "$ac_c_werror_flag"
34604 || test ! -s conftest.err'
ac1cb8d3
VS
34605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34606 (eval $ac_try) 2>&5
34607 ac_status=$?
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); }; } &&
34610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34612 (eval $ac_try) 2>&5
34613 ac_status=$?
34614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615 (exit $ac_status); }; }; then
34616 eval "$as_ac_var=yes"
34617else
34618 echo "$as_me: failed program was:" >&5
34619sed 's/^/| /' conftest.$ac_ext >&5
34620
34621eval "$as_ac_var=no"
34622fi
ac1cb8d3
VS
34623rm -f conftest.err conftest.$ac_objext \
34624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34625fi
34626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34628if test `eval echo '${'$as_ac_var'}'` = yes; then
34629 cat >>confdefs.h <<_ACEOF
34630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34631_ACEOF
34632 cat >>confdefs.h <<\_ACEOF
34633#define HAVE_DLERROR 1
34634_ACEOF
34635
34636else
34637
34638 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34639echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34640if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34641 echo $ECHO_N "(cached) $ECHO_C" >&6
34642else
34643 ac_check_lib_save_LIBS=$LIBS
34644LIBS="-ldl $LIBS"
34645cat >conftest.$ac_ext <<_ACEOF
34646/* confdefs.h. */
34647_ACEOF
34648cat confdefs.h >>conftest.$ac_ext
34649cat >>conftest.$ac_ext <<_ACEOF
34650/* end confdefs.h. */
34651
34652/* Override any gcc2 internal prototype to avoid an error. */
34653#ifdef __cplusplus
34654extern "C"
34655#endif
34656/* We use char because int might match the return type of a gcc2
34657 builtin and then its argument prototype would still apply. */
34658char dlerror ();
34659int
34660main ()
34661{
34662dlerror ();
34663 ;
34664 return 0;
34665}
34666_ACEOF
34667rm -f conftest.$ac_objext conftest$ac_exeext
34668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34669 (eval $ac_link) 2>conftest.er1
a848cd7e 34670 ac_status=$?
ac1cb8d3
VS
34671 grep -v '^ *+' conftest.er1 >conftest.err
34672 rm -f conftest.er1
34673 cat conftest.err >&5
a848cd7e
SC
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); } &&
89be85c2
VS
34676 { ac_try='test -z "$ac_c_werror_flag"
34677 || test ! -s conftest.err'
ac1cb8d3
VS
34678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34679 (eval $ac_try) 2>&5
34680 ac_status=$?
34681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); }; } &&
34683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34685 (eval $ac_try) 2>&5
34686 ac_status=$?
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); }; }; then
34689 ac_cv_lib_dl_dlerror=yes
34690else
34691 echo "$as_me: failed program was:" >&5
34692sed 's/^/| /' conftest.$ac_ext >&5
34693
34694ac_cv_lib_dl_dlerror=no
34695fi
ac1cb8d3
VS
34696rm -f conftest.err conftest.$ac_objext \
34697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34698LIBS=$ac_check_lib_save_LIBS
34699fi
34700echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34701echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34702if test $ac_cv_lib_dl_dlerror = yes; then
34703 cat >>confdefs.h <<\_ACEOF
34704#define HAVE_DLERROR 1
34705_ACEOF
34706
34707fi
34708
34709
34710
34711fi
34712done
34713
34714 fi
34715 fi
34716
34717 if test "$HAVE_DL_FUNCS" = 0; then
34718 if test "$HAVE_SHL_FUNCS" = 0; then
34719 if test "$USE_UNIX" = 1; then
34720 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34721echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34722 wxUSE_DYNAMIC_LOADER=no
34723 wxUSE_DYNLIB_CLASS=no
34724 else
34725 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34726echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34727 fi
34728 fi
34729 fi
34730 fi
34731fi
34732
34733if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34734 cat >>confdefs.h <<\_ACEOF
34735#define wxUSE_DYNAMIC_LOADER 1
34736_ACEOF
34737
34738fi
34739if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34740 cat >>confdefs.h <<\_ACEOF
34741#define wxUSE_DYNLIB_CLASS 1
34742_ACEOF
34743
34744fi
34745
34746
34747
34748if test "$wxUSE_PLUGINS" = "yes" ; then
34749 if test "$wxUSE_SHARED" = "no" ; then
34750 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34751echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34752 wxUSE_PLUGINS=no
34753 fi
34754 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34755 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34756echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34757 wxUSE_PLUGINS=no
34758 fi
34759 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34760 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34761echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34762 wxUSE_PLUGINS=no
34763 fi
34764 if test "$wxUSE_PLUGINS" = "yes" ; then
34765 cat >>confdefs.h <<\_ACEOF
34766#define wxUSE_PLUGINS 1
34767_ACEOF
34768
34769 fi
34770fi
34771
34772
34773if test "$wxUSE_STL" = "yes"; then
34774 cat >>confdefs.h <<\_ACEOF
34775#define wxUSE_STL 1
34776_ACEOF
34777
34778fi
34779
34780if test "$wxUSE_APPLE_IEEE" = "yes"; then
34781 cat >>confdefs.h <<\_ACEOF
34782#define wxUSE_APPLE_IEEE 1
34783_ACEOF
34784
34785fi
34786
34787if test "$wxUSE_TIMER" = "yes"; then
34788 cat >>confdefs.h <<\_ACEOF
34789#define wxUSE_TIMER 1
34790_ACEOF
34791
34792fi
34793
34794WITH_PLUGIN_SDL=0
34795if test "$wxUSE_SOUND" = "yes"; then
34796 if test "$USE_UNIX" = "1" ; then
34797
34798for ac_header in sys/soundcard.h
34799do
34800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34801if eval "test \"\${$as_ac_Header+set}\" = set"; then
34802 echo "$as_me:$LINENO: checking for $ac_header" >&5
34803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34804if eval "test \"\${$as_ac_Header+set}\" = set"; then
34805 echo $ECHO_N "(cached) $ECHO_C" >&6
34806fi
34807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34809else
34810 # Is the header compilable?
34811echo "$as_me:$LINENO: checking $ac_header usability" >&5
34812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34813cat >conftest.$ac_ext <<_ACEOF
34814/* confdefs.h. */
34815_ACEOF
34816cat confdefs.h >>conftest.$ac_ext
34817cat >>conftest.$ac_ext <<_ACEOF
34818/* end confdefs.h. */
34819$ac_includes_default
34820#include <$ac_header>
34821_ACEOF
34822rm -f conftest.$ac_objext
34823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34824 (eval $ac_compile) 2>conftest.er1
a848cd7e 34825 ac_status=$?
ac1cb8d3
VS
34826 grep -v '^ *+' conftest.er1 >conftest.err
34827 rm -f conftest.er1
34828 cat conftest.err >&5
a848cd7e
SC
34829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830 (exit $ac_status); } &&
89be85c2
VS
34831 { ac_try='test -z "$ac_c_werror_flag"
34832 || test ! -s conftest.err'
ac1cb8d3
VS
34833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34834 (eval $ac_try) 2>&5
34835 ac_status=$?
34836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837 (exit $ac_status); }; } &&
34838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34840 (eval $ac_try) 2>&5
34841 ac_status=$?
34842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34843 (exit $ac_status); }; }; then
34844 ac_header_compiler=yes
34845else
34846 echo "$as_me: failed program was:" >&5
34847sed 's/^/| /' conftest.$ac_ext >&5
34848
34849ac_header_compiler=no
34850fi
ac1cb8d3 34851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34853echo "${ECHO_T}$ac_header_compiler" >&6
34854
34855# Is the header present?
34856echo "$as_me:$LINENO: checking $ac_header presence" >&5
34857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34858cat >conftest.$ac_ext <<_ACEOF
34859/* confdefs.h. */
34860_ACEOF
34861cat confdefs.h >>conftest.$ac_ext
34862cat >>conftest.$ac_ext <<_ACEOF
34863/* end confdefs.h. */
34864#include <$ac_header>
34865_ACEOF
34866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34868 ac_status=$?
34869 grep -v '^ *+' conftest.er1 >conftest.err
34870 rm -f conftest.er1
34871 cat conftest.err >&5
34872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 (exit $ac_status); } >/dev/null; then
34874 if test -s conftest.err; then
34875 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34877 else
34878 ac_cpp_err=
34879 fi
34880else
34881 ac_cpp_err=yes
34882fi
34883if test -z "$ac_cpp_err"; then
34884 ac_header_preproc=yes
34885else
34886 echo "$as_me: failed program was:" >&5
34887sed 's/^/| /' conftest.$ac_ext >&5
34888
34889 ac_header_preproc=no
34890fi
34891rm -f conftest.err conftest.$ac_ext
34892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34893echo "${ECHO_T}$ac_header_preproc" >&6
34894
34895# So? What about this header?
ac1cb8d3
VS
34896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34897 yes:no: )
a848cd7e
SC
34898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34902 ac_header_preproc=yes
a848cd7e 34903 ;;
ac1cb8d3 34904 no:yes:* )
a848cd7e
SC
34905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34917 (
34918 cat <<\_ASBOX
ac1cb8d3
VS
34919## ----------------------------------------- ##
34920## Report this to wx-dev@lists.wxwidgets.org ##
34921## ----------------------------------------- ##
a848cd7e
SC
34922_ASBOX
34923 ) |
34924 sed "s/^/$as_me: WARNING: /" >&2
34925 ;;
34926esac
34927echo "$as_me:$LINENO: checking for $ac_header" >&5
34928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34929if eval "test \"\${$as_ac_Header+set}\" = set"; then
34930 echo $ECHO_N "(cached) $ECHO_C" >&6
34931else
ac1cb8d3 34932 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34933fi
34934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34936
34937fi
34938if test `eval echo '${'$as_ac_Header'}'` = yes; then
34939 cat >>confdefs.h <<_ACEOF
34940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34941_ACEOF
34942
34943fi
34944
34945done
34946
34947
34948 if test "$wxUSE_LIBSDL" != "no"; then
34949
34950# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34951if test "${with_sdl_prefix+set}" = set; then
34952 withval="$with_sdl_prefix"
34953 sdl_prefix="$withval"
34954else
34955 sdl_prefix=""
34956fi;
34957
34958# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34959if test "${with_sdl_exec_prefix+set}" = set; then
34960 withval="$with_sdl_exec_prefix"
34961 sdl_exec_prefix="$withval"
34962else
34963 sdl_exec_prefix=""
34964fi;
34965# Check whether --enable-sdltest or --disable-sdltest was given.
34966if test "${enable_sdltest+set}" = set; then
34967 enableval="$enable_sdltest"
34968
34969else
34970 enable_sdltest=yes
34971fi;
34972
34973 if test x$sdl_exec_prefix != x ; then
34974 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34975 if test x${SDL_CONFIG+set} != xset ; then
34976 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34977 fi
34978 fi
34979 if test x$sdl_prefix != x ; then
34980 sdl_args="$sdl_args --prefix=$sdl_prefix"
34981 if test x${SDL_CONFIG+set} != xset ; then
34982 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34983 fi
34984 fi
34985
34986
34987 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34988 # Extract the first word of "sdl-config", so it can be a program name with args.
34989set dummy sdl-config; ac_word=$2
34990echo "$as_me:$LINENO: checking for $ac_word" >&5
34991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34992if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34993 echo $ECHO_N "(cached) $ECHO_C" >&6
34994else
34995 case $SDL_CONFIG in
34996 [\\/]* | ?:[\\/]*)
34997 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34998 ;;
34999 *)
35000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35001for as_dir in $PATH
35002do
35003 IFS=$as_save_IFS
35004 test -z "$as_dir" && as_dir=.
35005 for ac_exec_ext in '' $ac_executable_extensions; do
35006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35007 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35009 break 2
35010 fi
35011done
35012done
35013
35014 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35015 ;;
35016esac
35017fi
35018SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35019
35020if test -n "$SDL_CONFIG"; then
35021 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35022echo "${ECHO_T}$SDL_CONFIG" >&6
35023else
35024 echo "$as_me:$LINENO: result: no" >&5
35025echo "${ECHO_T}no" >&6
35026fi
35027
35028 min_sdl_version=1.2.0
35029 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35030echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35031 no_sdl=""
35032 if test "$SDL_CONFIG" = "no" ; then
35033 no_sdl=yes
35034 else
35035 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35036 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35037
35038 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35039 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35040 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35041 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35042 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35044 if test "x$enable_sdltest" = "xyes" ; then
35045 ac_save_CFLAGS="$CFLAGS"
35046 ac_save_LIBS="$LIBS"
35047 CFLAGS="$CFLAGS $SDL_CFLAGS"
35048 LIBS="$LIBS $SDL_LIBS"
35049 rm -f conf.sdltest
35050 if test "$cross_compiling" = yes; then
35051 echo $ac_n "cross compiling; assumed OK... $ac_c"
35052else
35053 cat >conftest.$ac_ext <<_ACEOF
35054/* confdefs.h. */
35055_ACEOF
35056cat confdefs.h >>conftest.$ac_ext
35057cat >>conftest.$ac_ext <<_ACEOF
35058/* end confdefs.h. */
35059
35060#include <stdio.h>
35061#include <stdlib.h>
35062#include <string.h>
35063#include "SDL.h"
35064
35065char*
35066my_strdup (char *str)
35067{
35068 char *new_str;
35069
35070 if (str)
35071 {
35072 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35073 strcpy (new_str, str);
35074 }
35075 else
35076 new_str = NULL;
35077
35078 return new_str;
35079}
35080
35081int main (int argc, char *argv[])
35082{
35083 int major, minor, micro;
35084 char *tmp_version;
35085
35086 /* This hangs on some systems (?)
35087 system ("touch conf.sdltest");
35088 */
35089 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35090
35091 /* HP/UX 9 (%@#!) writes to sscanf strings */
35092 tmp_version = my_strdup("$min_sdl_version");
35093 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35094 printf("%s, bad version string\n", "$min_sdl_version");
35095 exit(1);
35096 }
35097
35098 if (($sdl_major_version > major) ||
35099 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35100 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35101 {
35102 return 0;
35103 }
35104 else
35105 {
35106 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35107 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35108 printf("*** best to upgrade to the required version.\n");
35109 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35110 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35111 printf("*** config.cache before re-running configure\n");
35112 return 1;
35113 }
35114}
35115
35116
35117_ACEOF
35118rm -f conftest$ac_exeext
35119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35120 (eval $ac_link) 2>&5
35121 ac_status=$?
35122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35125 (eval $ac_try) 2>&5
35126 ac_status=$?
35127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128 (exit $ac_status); }; }; then
35129 :
35130else
35131 echo "$as_me: program exited with status $ac_status" >&5
35132echo "$as_me: failed program was:" >&5
35133sed 's/^/| /' conftest.$ac_ext >&5
35134
35135( exit $ac_status )
35136no_sdl=yes
35137fi
ac1cb8d3 35138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35139fi
35140 CFLAGS="$ac_save_CFLAGS"
35141 LIBS="$ac_save_LIBS"
35142 fi
35143 fi
35144 if test "x$no_sdl" = x ; then
35145 echo "$as_me:$LINENO: result: yes" >&5
35146echo "${ECHO_T}yes" >&6
35147
35148 EXTRALIBS_SDL="$SDL_LIBS"
35149 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35150 cat >>confdefs.h <<\_ACEOF
35151#define wxUSE_LIBSDL 1
35152_ACEOF
35153
35154
35155 else
35156 echo "$as_me:$LINENO: result: no" >&5
35157echo "${ECHO_T}no" >&6
35158 if test "$SDL_CONFIG" = "no" ; then
35159 echo "*** The sdl-config script installed by SDL could not be found"
35160 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35161 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35162 echo "*** full path to sdl-config."
35163 else
35164 if test -f conf.sdltest ; then
35165 :
35166 else
35167 echo "*** Could not run SDL test program, checking why..."
35168 CFLAGS="$CFLAGS $SDL_CFLAGS"
35169 LIBS="$LIBS $SDL_LIBS"
35170 cat >conftest.$ac_ext <<_ACEOF
35171/* confdefs.h. */
35172_ACEOF
35173cat confdefs.h >>conftest.$ac_ext
35174cat >>conftest.$ac_ext <<_ACEOF
35175/* end confdefs.h. */
35176
35177#include <stdio.h>
35178#include "SDL.h"
35179
35180int main(int argc, char *argv[])
35181{ return 0; }
35182#undef main
35183#define main K_and_R_C_main
35184
35185int
35186main ()
35187{
35188 return 0;
35189 ;
35190 return 0;
35191}
35192_ACEOF
35193rm -f conftest.$ac_objext conftest$ac_exeext
35194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35195 (eval $ac_link) 2>conftest.er1
a848cd7e 35196 ac_status=$?
ac1cb8d3
VS
35197 grep -v '^ *+' conftest.er1 >conftest.err
35198 rm -f conftest.er1
35199 cat conftest.err >&5
a848cd7e
SC
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); } &&
89be85c2
VS
35202 { ac_try='test -z "$ac_c_werror_flag"
35203 || test ! -s conftest.err'
ac1cb8d3
VS
35204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35205 (eval $ac_try) 2>&5
35206 ac_status=$?
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); }; } &&
35209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35211 (eval $ac_try) 2>&5
35212 ac_status=$?
35213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214 (exit $ac_status); }; }; then
35215 echo "*** The test program compiled, but did not run. This usually means"
35216 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35217 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35218 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35219 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35220 echo "*** is required on your system"
35221 echo "***"
35222 echo "*** If you have an old version installed, it is best to remove it, although"
35223 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35224else
35225 echo "$as_me: failed program was:" >&5
35226sed 's/^/| /' conftest.$ac_ext >&5
35227
35228 echo "*** The test program failed to compile or link. See the file config.log for the"
35229 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35230 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35231 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35232fi
ac1cb8d3
VS
35233rm -f conftest.err conftest.$ac_objext \
35234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35235 CFLAGS="$ac_save_CFLAGS"
35236 LIBS="$ac_save_LIBS"
35237 fi
35238 fi
35239 SDL_CFLAGS=""
35240 SDL_LIBS=""
35241 wxUSE_LIBSDL="no"
35242 fi
35243
35244
35245 rm -f conf.sdltest
35246
35247 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35248 WITH_PLUGIN_SDL=1
35249 fi
35250 fi
35251 fi
35252
35253 cat >>confdefs.h <<\_ACEOF
35254#define wxUSE_SOUND 1
35255_ACEOF
35256
35257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35258fi
35259
d1c38808
VZ
35260if test "$WXGTK20" = 1; then
35261 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35262 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35263
35264
35265 succeeded=no
35266
35267 if test -z "$PKG_CONFIG"; then
35268 # Extract the first word of "pkg-config", so it can be a program name with args.
35269set dummy pkg-config; ac_word=$2
35270echo "$as_me:$LINENO: checking for $ac_word" >&5
35271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35272if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35273 echo $ECHO_N "(cached) $ECHO_C" >&6
35274else
35275 case $PKG_CONFIG in
35276 [\\/]* | ?:[\\/]*)
35277 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35278 ;;
35279 *)
35280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35281for as_dir in $PATH
35282do
35283 IFS=$as_save_IFS
35284 test -z "$as_dir" && as_dir=.
35285 for ac_exec_ext in '' $ac_executable_extensions; do
35286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35287 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35289 break 2
35290 fi
35291done
35292done
35293
35294 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35295 ;;
35296esac
35297fi
35298PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35299
35300if test -n "$PKG_CONFIG"; then
35301 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35302echo "${ECHO_T}$PKG_CONFIG" >&6
35303else
35304 echo "$as_me:$LINENO: result: no" >&5
35305echo "${ECHO_T}no" >&6
35306fi
35307
35308 fi
35309
35310 if test "$PKG_CONFIG" = "no" ; then
35311 echo "*** The pkg-config script could not be found. Make sure it is"
35312 echo "*** in your path, or set the PKG_CONFIG environment variable"
35313 echo "*** to the full path to pkg-config."
35314 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35315 else
35316 PKG_CONFIG_MIN_VERSION=0.9.0
35317 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35318 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35319echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35320
ffa762ff 35321 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35322 echo "$as_me:$LINENO: result: yes" >&5
35323echo "${ECHO_T}yes" >&6
35324 succeeded=yes
35325
35326 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35327echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35328 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35329 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35330echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35331
35332 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35333echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35334 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35335 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35336echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35337 else
35338 LIBGNOMEPRINTUI_CFLAGS=""
35339 LIBGNOMEPRINTUI_LIBS=""
35340 ## If we have a custom action on failure, don't print errors, but
35341 ## do set a variable so people can do so.
ffa762ff 35342 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35343
35344 fi
35345
35346
35347
35348 else
35349 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35350 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35351 fi
35352 fi
35353
35354 if test $succeeded = yes; then
35355
d1c38808
VZ
35356 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35357 cat >>confdefs.h <<\_ACEOF
35358#define wxUSE_LIBGNOMEPRINT 1
35359_ACEOF
35360
35361
35362 else
35363
35364 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35365echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35366 wxUSE_LIBGNOMEPRINT="no"
35367
35368
35369 fi
35370
35371 fi
35372 fi
35373fi
35374
35375
a848cd7e
SC
35376if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35377 cat >>confdefs.h <<\_ACEOF
35378#define wxUSE_CMDLINE_PARSER 1
35379_ACEOF
35380
35381fi
35382
35383if test "$wxUSE_STOPWATCH" = "yes"; then
35384 cat >>confdefs.h <<\_ACEOF
35385#define wxUSE_STOPWATCH 1
35386_ACEOF
35387
35388fi
35389
35390if test "$wxUSE_DATETIME" = "yes"; then
35391 cat >>confdefs.h <<\_ACEOF
35392#define wxUSE_DATETIME 1
35393_ACEOF
35394
35395fi
35396
35397if test "$wxUSE_FILE" = "yes"; then
35398 cat >>confdefs.h <<\_ACEOF
35399#define wxUSE_FILE 1
35400_ACEOF
35401
35402fi
35403
35404if test "$wxUSE_FFILE" = "yes"; then
35405 cat >>confdefs.h <<\_ACEOF
35406#define wxUSE_FFILE 1
35407_ACEOF
35408
35409fi
35410
35411if test "$wxUSE_FILESYSTEM" = "yes"; then
35412 cat >>confdefs.h <<\_ACEOF
35413#define wxUSE_FILESYSTEM 1
35414_ACEOF
35415
35416fi
35417
35418if test "$wxUSE_FS_ZIP" = "yes"; then
35419 cat >>confdefs.h <<\_ACEOF
35420#define wxUSE_FS_ZIP 1
35421_ACEOF
35422
35423fi
35424
9e8e867f 35425if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 35426 cat >>confdefs.h <<\_ACEOF
9e8e867f 35427#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
35428_ACEOF
35429
35430fi
35431
35432if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 35433 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
35434 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
35435echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
35436 elif test "$wxUSE_ZLIB" = "no"; then
35437 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
35438echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
35439 else
35440 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35441#define wxUSE_ZIPSTREAM 1
35442_ACEOF
35443
81f90336 35444 fi
a848cd7e
SC
35445fi
35446
a848cd7e
SC
35447if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35448 cat >>confdefs.h <<\_ACEOF
35449#define wxUSE_ON_FATAL_EXCEPTION 1
35450_ACEOF
35451
35452fi
35453
eaff0f0d
VZ
35454if test "$wxUSE_STACKWALKER" = "yes"; then
35455 cat >>confdefs.h <<\_ACEOF
35456#define wxUSE_STACKWALKER 1
35457_ACEOF
35458
35459fi
35460
a848cd7e
SC
35461if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35462 cat >>confdefs.h <<\_ACEOF
35463#define wxUSE_SNGLINST_CHECKER 1
35464_ACEOF
35465
35466fi
35467
35468if test "$wxUSE_BUSYINFO" = "yes"; then
35469 cat >>confdefs.h <<\_ACEOF
35470#define wxUSE_BUSYINFO 1
35471_ACEOF
35472
35473fi
35474
35475if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35476 cat >>confdefs.h <<\_ACEOF
35477#define wxUSE_STD_IOSTREAM 1
35478_ACEOF
35479
35480fi
35481
35482if test "$wxUSE_TEXTBUFFER" = "yes"; then
35483 cat >>confdefs.h <<\_ACEOF
35484#define wxUSE_TEXTBUFFER 1
35485_ACEOF
35486
35487fi
35488
35489if test "$wxUSE_TEXTFILE" = "yes"; then
35490 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35491 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35492echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35493 else
35494 cat >>confdefs.h <<\_ACEOF
35495#define wxUSE_TEXTFILE 1
35496_ACEOF
35497
35498 fi
35499fi
35500
35501if test "$wxUSE_CONFIG" = "yes" ; then
35502 if test "$wxUSE_TEXTFILE" != "yes"; then
35503 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35504echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35505 else
35506 cat >>confdefs.h <<\_ACEOF
35507#define wxUSE_CONFIG 1
89be85c2
VS
35508_ACEOF
35509
35510 cat >>confdefs.h <<\_ACEOF
35511#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
35512_ACEOF
35513
35514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35515 fi
35516fi
35517
35518if test "$wxUSE_INTL" = "yes" ; then
35519 if test "$wxUSE_FILE" != "yes"; then
35520 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35521echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35522 else
35523 cat >>confdefs.h <<\_ACEOF
35524#define wxUSE_INTL 1
35525_ACEOF
35526
35527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35528 GUIDIST="$GUIDIST INTL_DIST"
35529 fi
35530fi
35531
35532if test "$wxUSE_LOG" = "yes"; then
35533 cat >>confdefs.h <<\_ACEOF
35534#define wxUSE_LOG 1
35535_ACEOF
35536
35537
35538 if test "$wxUSE_LOGGUI" = "yes"; then
35539 cat >>confdefs.h <<\_ACEOF
35540#define wxUSE_LOGGUI 1
35541_ACEOF
35542
35543 fi
35544
35545 if test "$wxUSE_LOGWINDOW" = "yes"; then
35546 cat >>confdefs.h <<\_ACEOF
35547#define wxUSE_LOGWINDOW 1
35548_ACEOF
35549
35550 fi
35551
35552 if test "$wxUSE_LOGDIALOG" = "yes"; then
35553 cat >>confdefs.h <<\_ACEOF
35554#define wxUSE_LOG_DIALOG 1
35555_ACEOF
35556
35557 fi
35558fi
35559
35560if test "$wxUSE_LONGLONG" = "yes"; then
35561 cat >>confdefs.h <<\_ACEOF
35562#define wxUSE_LONGLONG 1
35563_ACEOF
35564
35565fi
35566
35567if test "$wxUSE_GEOMETRY" = "yes"; then
35568 cat >>confdefs.h <<\_ACEOF
35569#define wxUSE_GEOMETRY 1
35570_ACEOF
35571
35572fi
35573
a848cd7e
SC
35574if test "$wxUSE_STREAMS" = "yes" ; then
35575 cat >>confdefs.h <<\_ACEOF
35576#define wxUSE_STREAMS 1
35577_ACEOF
35578
35579fi
35580
35581
35582if test "$wxUSE_DATETIME" = "yes"; then
35583
35584for ac_func in strptime
35585do
35586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35587echo "$as_me:$LINENO: checking for $ac_func" >&5
35588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35589if eval "test \"\${$as_ac_var+set}\" = set"; then
35590 echo $ECHO_N "(cached) $ECHO_C" >&6
35591else
35592 cat >conftest.$ac_ext <<_ACEOF
35593/* confdefs.h. */
35594_ACEOF
35595cat confdefs.h >>conftest.$ac_ext
35596cat >>conftest.$ac_ext <<_ACEOF
35597/* end confdefs.h. */
ac1cb8d3
VS
35598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35600#define $ac_func innocuous_$ac_func
35601
a848cd7e
SC
35602/* System header to define __stub macros and hopefully few prototypes,
35603 which can conflict with char $ac_func (); below.
35604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35605 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35606
a848cd7e
SC
35607#ifdef __STDC__
35608# include <limits.h>
35609#else
35610# include <assert.h>
35611#endif
ac1cb8d3
VS
35612
35613#undef $ac_func
35614
a848cd7e
SC
35615/* Override any gcc2 internal prototype to avoid an error. */
35616#ifdef __cplusplus
35617extern "C"
35618{
35619#endif
35620/* We use char because int might match the return type of a gcc2
35621 builtin and then its argument prototype would still apply. */
35622char $ac_func ();
35623/* The GNU C library defines this for functions which it implements
35624 to always fail with ENOSYS. Some functions are actually named
35625 something starting with __ and the normal name is an alias. */
35626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35627choke me
35628#else
35629char (*f) () = $ac_func;
35630#endif
35631#ifdef __cplusplus
35632}
35633#endif
35634
35635int
35636main ()
35637{
35638return f != $ac_func;
35639 ;
35640 return 0;
35641}
35642_ACEOF
35643rm -f conftest.$ac_objext conftest$ac_exeext
35644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35645 (eval $ac_link) 2>conftest.er1
a848cd7e 35646 ac_status=$?
ac1cb8d3
VS
35647 grep -v '^ *+' conftest.er1 >conftest.err
35648 rm -f conftest.er1
35649 cat conftest.err >&5
a848cd7e
SC
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); } &&
89be85c2
VS
35652 { ac_try='test -z "$ac_c_werror_flag"
35653 || test ! -s conftest.err'
ac1cb8d3
VS
35654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35655 (eval $ac_try) 2>&5
35656 ac_status=$?
35657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658 (exit $ac_status); }; } &&
35659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661 (eval $ac_try) 2>&5
35662 ac_status=$?
35663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }; }; then
35665 eval "$as_ac_var=yes"
35666else
35667 echo "$as_me: failed program was:" >&5
35668sed 's/^/| /' conftest.$ac_ext >&5
35669
35670eval "$as_ac_var=no"
35671fi
ac1cb8d3
VS
35672rm -f conftest.err conftest.$ac_objext \
35673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35674fi
35675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35677if test `eval echo '${'$as_ac_var'}'` = yes; then
35678 cat >>confdefs.h <<_ACEOF
35679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35680_ACEOF
35681
35682fi
35683done
35684
35685
35686 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35687echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35688if test "${wx_cv_var_timezone+set}" = set; then
35689 echo $ECHO_N "(cached) $ECHO_C" >&6
35690else
35691
35692 cat >conftest.$ac_ext <<_ACEOF
35693/* confdefs.h. */
35694_ACEOF
35695cat confdefs.h >>conftest.$ac_ext
35696cat >>conftest.$ac_ext <<_ACEOF
35697/* end confdefs.h. */
35698
35699 #include <time.h>
35700
35701int
35702main ()
35703{
35704
35705 int tz;
35706 tz = timezone;
35707
35708 ;
35709 return 0;
35710}
35711_ACEOF
35712rm -f conftest.$ac_objext
35713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35714 (eval $ac_compile) 2>conftest.er1
a848cd7e 35715 ac_status=$?
ac1cb8d3
VS
35716 grep -v '^ *+' conftest.er1 >conftest.err
35717 rm -f conftest.er1
35718 cat conftest.err >&5
a848cd7e
SC
35719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35720 (exit $ac_status); } &&
89be85c2
VS
35721 { ac_try='test -z "$ac_c_werror_flag"
35722 || test ! -s conftest.err'
ac1cb8d3
VS
35723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35724 (eval $ac_try) 2>&5
35725 ac_status=$?
35726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35727 (exit $ac_status); }; } &&
35728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35730 (eval $ac_try) 2>&5
35731 ac_status=$?
35732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733 (exit $ac_status); }; }; then
35734
35735 wx_cv_var_timezone=timezone
35736
35737else
35738 echo "$as_me: failed program was:" >&5
35739sed 's/^/| /' conftest.$ac_ext >&5
35740
35741
35742 cat >conftest.$ac_ext <<_ACEOF
35743/* confdefs.h. */
35744_ACEOF
35745cat confdefs.h >>conftest.$ac_ext
35746cat >>conftest.$ac_ext <<_ACEOF
35747/* end confdefs.h. */
35748
35749 #include <time.h>
35750
35751int
35752main ()
35753{
35754
35755 int tz;
35756 tz = _timezone;
35757
35758 ;
35759 return 0;
35760}
35761_ACEOF
35762rm -f conftest.$ac_objext
35763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35764 (eval $ac_compile) 2>conftest.er1
a848cd7e 35765 ac_status=$?
ac1cb8d3
VS
35766 grep -v '^ *+' conftest.er1 >conftest.err
35767 rm -f conftest.er1
35768 cat conftest.err >&5
a848cd7e
SC
35769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35770 (exit $ac_status); } &&
89be85c2
VS
35771 { ac_try='test -z "$ac_c_werror_flag"
35772 || test ! -s conftest.err'
ac1cb8d3
VS
35773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35774 (eval $ac_try) 2>&5
35775 ac_status=$?
35776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777 (exit $ac_status); }; } &&
35778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35780 (eval $ac_try) 2>&5
35781 ac_status=$?
35782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35783 (exit $ac_status); }; }; then
35784
35785 wx_cv_var_timezone=_timezone
35786
35787else
35788 echo "$as_me: failed program was:" >&5
35789sed 's/^/| /' conftest.$ac_ext >&5
35790
35791
35792 cat >conftest.$ac_ext <<_ACEOF
35793/* confdefs.h. */
35794_ACEOF
35795cat confdefs.h >>conftest.$ac_ext
35796cat >>conftest.$ac_ext <<_ACEOF
35797/* end confdefs.h. */
35798
35799 #include <time.h>
35800
35801int
35802main ()
35803{
35804
35805 int tz;
35806 tz = __timezone;
35807
35808 ;
35809 return 0;
35810}
35811_ACEOF
35812rm -f conftest.$ac_objext
35813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35814 (eval $ac_compile) 2>conftest.er1
a848cd7e 35815 ac_status=$?
ac1cb8d3
VS
35816 grep -v '^ *+' conftest.er1 >conftest.err
35817 rm -f conftest.er1
35818 cat conftest.err >&5
a848cd7e
SC
35819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820 (exit $ac_status); } &&
89be85c2
VS
35821 { ac_try='test -z "$ac_c_werror_flag"
35822 || test ! -s conftest.err'
ac1cb8d3
VS
35823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35824 (eval $ac_try) 2>&5
35825 ac_status=$?
35826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827 (exit $ac_status); }; } &&
35828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35830 (eval $ac_try) 2>&5
35831 ac_status=$?
35832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833 (exit $ac_status); }; }; then
35834
35835 wx_cv_var_timezone=__timezone
35836
35837else
35838 echo "$as_me: failed program was:" >&5
35839sed 's/^/| /' conftest.$ac_ext >&5
35840
35841
35842 if test "$USE_DOS" = 0 ; then
35843 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35844echo "$as_me: WARNING: no timezone variable" >&2;}
35845 fi
35846
35847
35848fi
ac1cb8d3 35849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35850
35851
35852fi
ac1cb8d3 35853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35854
35855
35856fi
ac1cb8d3 35857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35858
35859
35860fi
35861echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35862echo "${ECHO_T}$wx_cv_var_timezone" >&6
35863
35864 if test "x$wx_cv_var_timezone" != x ; then
35865 cat >>confdefs.h <<_ACEOF
35866#define WX_TIMEZONE $wx_cv_var_timezone
35867_ACEOF
35868
35869 fi
35870
35871
35872for ac_func in localtime
35873do
35874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35875echo "$as_me:$LINENO: checking for $ac_func" >&5
35876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35877if eval "test \"\${$as_ac_var+set}\" = set"; then
35878 echo $ECHO_N "(cached) $ECHO_C" >&6
35879else
35880 cat >conftest.$ac_ext <<_ACEOF
35881/* confdefs.h. */
35882_ACEOF
35883cat confdefs.h >>conftest.$ac_ext
35884cat >>conftest.$ac_ext <<_ACEOF
35885/* end confdefs.h. */
ac1cb8d3
VS
35886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35888#define $ac_func innocuous_$ac_func
35889
a848cd7e
SC
35890/* System header to define __stub macros and hopefully few prototypes,
35891 which can conflict with char $ac_func (); below.
35892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35893 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35894
a848cd7e
SC
35895#ifdef __STDC__
35896# include <limits.h>
35897#else
35898# include <assert.h>
35899#endif
ac1cb8d3
VS
35900
35901#undef $ac_func
35902
a848cd7e
SC
35903/* Override any gcc2 internal prototype to avoid an error. */
35904#ifdef __cplusplus
35905extern "C"
35906{
35907#endif
35908/* We use char because int might match the return type of a gcc2
35909 builtin and then its argument prototype would still apply. */
35910char $ac_func ();
35911/* The GNU C library defines this for functions which it implements
35912 to always fail with ENOSYS. Some functions are actually named
35913 something starting with __ and the normal name is an alias. */
35914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35915choke me
35916#else
35917char (*f) () = $ac_func;
35918#endif
35919#ifdef __cplusplus
35920}
35921#endif
35922
35923int
35924main ()
35925{
35926return f != $ac_func;
35927 ;
35928 return 0;
35929}
35930_ACEOF
35931rm -f conftest.$ac_objext conftest$ac_exeext
35932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35933 (eval $ac_link) 2>conftest.er1
a848cd7e 35934 ac_status=$?
ac1cb8d3
VS
35935 grep -v '^ *+' conftest.er1 >conftest.err
35936 rm -f conftest.er1
35937 cat conftest.err >&5
a848cd7e
SC
35938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939 (exit $ac_status); } &&
89be85c2
VS
35940 { ac_try='test -z "$ac_c_werror_flag"
35941 || test ! -s conftest.err'
ac1cb8d3
VS
35942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35943 (eval $ac_try) 2>&5
35944 ac_status=$?
35945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946 (exit $ac_status); }; } &&
35947 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35949 (eval $ac_try) 2>&5
35950 ac_status=$?
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); }; }; then
35953 eval "$as_ac_var=yes"
35954else
35955 echo "$as_me: failed program was:" >&5
35956sed 's/^/| /' conftest.$ac_ext >&5
35957
35958eval "$as_ac_var=no"
35959fi
ac1cb8d3
VS
35960rm -f conftest.err conftest.$ac_objext \
35961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35962fi
35963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35965if test `eval echo '${'$as_ac_var'}'` = yes; then
35966 cat >>confdefs.h <<_ACEOF
35967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35968_ACEOF
35969
35970fi
35971done
35972
35973
35974 if test "$ac_cv_func_localtime" = "yes"; then
35975 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35976echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35977if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35978 echo $ECHO_N "(cached) $ECHO_C" >&6
35979else
35980
35981 cat >conftest.$ac_ext <<_ACEOF
35982/* confdefs.h. */
35983_ACEOF
35984cat confdefs.h >>conftest.$ac_ext
35985cat >>conftest.$ac_ext <<_ACEOF
35986/* end confdefs.h. */
35987
35988 #include <time.h>
35989
35990int
35991main ()
35992{
35993
35994 struct tm tm;
35995 tm.tm_gmtoff++;
35996
35997 ;
35998 return 0;
35999}
36000_ACEOF
36001rm -f conftest.$ac_objext
36002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36003 (eval $ac_compile) 2>conftest.er1
a848cd7e 36004 ac_status=$?
ac1cb8d3
VS
36005 grep -v '^ *+' conftest.er1 >conftest.err
36006 rm -f conftest.er1
36007 cat conftest.err >&5
a848cd7e
SC
36008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009 (exit $ac_status); } &&
89be85c2
VS
36010 { ac_try='test -z "$ac_c_werror_flag"
36011 || test ! -s conftest.err'
ac1cb8d3
VS
36012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36013 (eval $ac_try) 2>&5
36014 ac_status=$?
36015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016 (exit $ac_status); }; } &&
36017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36019 (eval $ac_try) 2>&5
36020 ac_status=$?
36021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36022 (exit $ac_status); }; }; then
36023
36024 wx_cv_struct_tm_has_gmtoff=yes
36025
36026else
36027 echo "$as_me: failed program was:" >&5
36028sed 's/^/| /' conftest.$ac_ext >&5
36029
36030wx_cv_struct_tm_has_gmtoff=no
36031
36032fi
ac1cb8d3 36033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36034
36035fi
36036echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36037echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36038 fi
36039
36040 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36041 cat >>confdefs.h <<\_ACEOF
36042#define WX_GMTOFF_IN_TM 1
36043_ACEOF
36044
36045 fi
36046
36047
36048
36049for ac_func in gettimeofday ftime
36050do
36051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36052echo "$as_me:$LINENO: checking for $ac_func" >&5
36053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36054if eval "test \"\${$as_ac_var+set}\" = set"; then
36055 echo $ECHO_N "(cached) $ECHO_C" >&6
36056else
36057 cat >conftest.$ac_ext <<_ACEOF
36058/* confdefs.h. */
36059_ACEOF
36060cat confdefs.h >>conftest.$ac_ext
36061cat >>conftest.$ac_ext <<_ACEOF
36062/* end confdefs.h. */
ac1cb8d3
VS
36063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36065#define $ac_func innocuous_$ac_func
36066
a848cd7e
SC
36067/* System header to define __stub macros and hopefully few prototypes,
36068 which can conflict with char $ac_func (); below.
36069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36070 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36071
a848cd7e
SC
36072#ifdef __STDC__
36073# include <limits.h>
36074#else
36075# include <assert.h>
36076#endif
ac1cb8d3
VS
36077
36078#undef $ac_func
36079
a848cd7e
SC
36080/* Override any gcc2 internal prototype to avoid an error. */
36081#ifdef __cplusplus
36082extern "C"
36083{
36084#endif
36085/* We use char because int might match the return type of a gcc2
36086 builtin and then its argument prototype would still apply. */
36087char $ac_func ();
36088/* The GNU C library defines this for functions which it implements
36089 to always fail with ENOSYS. Some functions are actually named
36090 something starting with __ and the normal name is an alias. */
36091#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36092choke me
36093#else
36094char (*f) () = $ac_func;
36095#endif
36096#ifdef __cplusplus
36097}
36098#endif
36099
36100int
36101main ()
36102{
36103return f != $ac_func;
36104 ;
36105 return 0;
36106}
36107_ACEOF
36108rm -f conftest.$ac_objext conftest$ac_exeext
36109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36110 (eval $ac_link) 2>conftest.er1
a848cd7e 36111 ac_status=$?
ac1cb8d3
VS
36112 grep -v '^ *+' conftest.er1 >conftest.err
36113 rm -f conftest.er1
36114 cat conftest.err >&5
a848cd7e
SC
36115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36116 (exit $ac_status); } &&
89be85c2
VS
36117 { ac_try='test -z "$ac_c_werror_flag"
36118 || test ! -s conftest.err'
ac1cb8d3
VS
36119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36120 (eval $ac_try) 2>&5
36121 ac_status=$?
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); }; } &&
36124 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36126 (eval $ac_try) 2>&5
36127 ac_status=$?
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); }; }; then
36130 eval "$as_ac_var=yes"
36131else
36132 echo "$as_me: failed program was:" >&5
36133sed 's/^/| /' conftest.$ac_ext >&5
36134
36135eval "$as_ac_var=no"
36136fi
ac1cb8d3
VS
36137rm -f conftest.err conftest.$ac_objext \
36138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36139fi
36140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36141echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36142if test `eval echo '${'$as_ac_var'}'` = yes; then
36143 cat >>confdefs.h <<_ACEOF
36144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36145_ACEOF
36146 break
36147fi
36148done
36149
36150
36151 if test "$ac_cv_func_gettimeofday" = "yes"; then
36152 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36153echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36154if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36155 echo $ECHO_N "(cached) $ECHO_C" >&6
36156else
36157
36158
36159
36160 ac_ext=cc
36161ac_cpp='$CXXCPP $CPPFLAGS'
36162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36165
36166
36167 cat >conftest.$ac_ext <<_ACEOF
36168/* confdefs.h. */
36169_ACEOF
36170cat confdefs.h >>conftest.$ac_ext
36171cat >>conftest.$ac_ext <<_ACEOF
36172/* end confdefs.h. */
36173
36174 #include <sys/time.h>
36175 #include <unistd.h>
36176
36177int
36178main ()
36179{
36180
36181 struct timeval tv;
36182 gettimeofday(&tv, NULL);
36183
36184 ;
36185 return 0;
36186}
36187_ACEOF
36188rm -f conftest.$ac_objext
36189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36190 (eval $ac_compile) 2>conftest.er1
a848cd7e 36191 ac_status=$?
ac1cb8d3
VS
36192 grep -v '^ *+' conftest.er1 >conftest.err
36193 rm -f conftest.er1
36194 cat conftest.err >&5
a848cd7e
SC
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); } &&
89be85c2
VS
36197 { ac_try='test -z "$ac_cxx_werror_flag"
36198 || test ! -s conftest.err'
ac1cb8d3
VS
36199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36200 (eval $ac_try) 2>&5
36201 ac_status=$?
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); }; } &&
36204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36206 (eval $ac_try) 2>&5
36207 ac_status=$?
36208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36209 (exit $ac_status); }; }; then
36210 wx_cv_func_gettimeofday_has_2_args=yes
36211else
36212 echo "$as_me: failed program was:" >&5
36213sed 's/^/| /' conftest.$ac_ext >&5
36214
36215cat >conftest.$ac_ext <<_ACEOF
36216/* confdefs.h. */
36217_ACEOF
36218cat confdefs.h >>conftest.$ac_ext
36219cat >>conftest.$ac_ext <<_ACEOF
36220/* end confdefs.h. */
36221
36222 #include <sys/time.h>
36223 #include <unistd.h>
36224
36225int
36226main ()
36227{
36228
36229 struct timeval tv;
36230 gettimeofday(&tv);
36231
36232 ;
36233 return 0;
36234}
36235_ACEOF
36236rm -f conftest.$ac_objext
36237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36238 (eval $ac_compile) 2>conftest.er1
a848cd7e 36239 ac_status=$?
ac1cb8d3
VS
36240 grep -v '^ *+' conftest.er1 >conftest.err
36241 rm -f conftest.er1
36242 cat conftest.err >&5
a848cd7e
SC
36243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); } &&
89be85c2
VS
36245 { ac_try='test -z "$ac_cxx_werror_flag"
36246 || test ! -s conftest.err'
ac1cb8d3
VS
36247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248 (eval $ac_try) 2>&5
36249 ac_status=$?
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); }; } &&
36252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36254 (eval $ac_try) 2>&5
36255 ac_status=$?
36256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257 (exit $ac_status); }; }; then
36258 wx_cv_func_gettimeofday_has_2_args=no
36259else
36260 echo "$as_me: failed program was:" >&5
36261sed 's/^/| /' conftest.$ac_ext >&5
36262
36263
36264 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36265echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36266 wx_cv_func_gettimeofday_has_2_args=unknown
36267
36268
36269fi
ac1cb8d3 36270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36271
36272fi
ac1cb8d3 36273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36274 ac_ext=c
36275ac_cpp='$CPP $CPPFLAGS'
36276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36278ac_compiler_gnu=$ac_cv_c_compiler_gnu
36279
36280
36281fi
36282echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36283echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36284
36285 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36286 cat >>confdefs.h <<\_ACEOF
36287#define WX_GETTIMEOFDAY_NO_TZ 1
36288_ACEOF
36289
36290 fi
36291 fi
36292
36293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36294fi
36295
36296
36297if test "$wxUSE_SOCKETS" = "yes"; then
36298 if test "$wxUSE_MGL" = "1"; then
36299 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36300echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36301 wxUSE_SOCKETS="no"
36302 fi
36303fi
36304
36305if test "$wxUSE_SOCKETS" = "yes"; then
36306 if test "$TOOLKIT" != "MSW"; then
36307 echo "$as_me:$LINENO: checking for socket" >&5
36308echo $ECHO_N "checking for socket... $ECHO_C" >&6
36309if test "${ac_cv_func_socket+set}" = set; then
36310 echo $ECHO_N "(cached) $ECHO_C" >&6
36311else
36312 cat >conftest.$ac_ext <<_ACEOF
36313/* confdefs.h. */
36314_ACEOF
36315cat confdefs.h >>conftest.$ac_ext
36316cat >>conftest.$ac_ext <<_ACEOF
36317/* end confdefs.h. */
ac1cb8d3
VS
36318/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36320#define socket innocuous_socket
36321
a848cd7e
SC
36322/* System header to define __stub macros and hopefully few prototypes,
36323 which can conflict with char socket (); below.
36324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36325 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36326
a848cd7e
SC
36327#ifdef __STDC__
36328# include <limits.h>
36329#else
36330# include <assert.h>
36331#endif
ac1cb8d3
VS
36332
36333#undef socket
36334
a848cd7e
SC
36335/* Override any gcc2 internal prototype to avoid an error. */
36336#ifdef __cplusplus
36337extern "C"
36338{
36339#endif
36340/* We use char because int might match the return type of a gcc2
36341 builtin and then its argument prototype would still apply. */
36342char socket ();
36343/* The GNU C library defines this for functions which it implements
36344 to always fail with ENOSYS. Some functions are actually named
36345 something starting with __ and the normal name is an alias. */
36346#if defined (__stub_socket) || defined (__stub___socket)
36347choke me
36348#else
36349char (*f) () = socket;
36350#endif
36351#ifdef __cplusplus
36352}
36353#endif
36354
36355int
36356main ()
36357{
36358return f != socket;
36359 ;
36360 return 0;
36361}
36362_ACEOF
36363rm -f conftest.$ac_objext conftest$ac_exeext
36364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36365 (eval $ac_link) 2>conftest.er1
a848cd7e 36366 ac_status=$?
ac1cb8d3
VS
36367 grep -v '^ *+' conftest.er1 >conftest.err
36368 rm -f conftest.er1
36369 cat conftest.err >&5
a848cd7e
SC
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); } &&
89be85c2
VS
36372 { ac_try='test -z "$ac_c_werror_flag"
36373 || test ! -s conftest.err'
ac1cb8d3
VS
36374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36375 (eval $ac_try) 2>&5
36376 ac_status=$?
36377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36378 (exit $ac_status); }; } &&
36379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36381 (eval $ac_try) 2>&5
36382 ac_status=$?
36383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36384 (exit $ac_status); }; }; then
36385 ac_cv_func_socket=yes
36386else
36387 echo "$as_me: failed program was:" >&5
36388sed 's/^/| /' conftest.$ac_ext >&5
36389
36390ac_cv_func_socket=no
36391fi
ac1cb8d3
VS
36392rm -f conftest.err conftest.$ac_objext \
36393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36394fi
36395echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36396echo "${ECHO_T}$ac_cv_func_socket" >&6
36397if test $ac_cv_func_socket = yes; then
36398 :
36399else
36400
36401 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36402echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36403if test "${ac_cv_lib_socket_socket+set}" = set; then
36404 echo $ECHO_N "(cached) $ECHO_C" >&6
36405else
36406 ac_check_lib_save_LIBS=$LIBS
36407LIBS="-lsocket $LIBS"
36408cat >conftest.$ac_ext <<_ACEOF
36409/* confdefs.h. */
36410_ACEOF
36411cat confdefs.h >>conftest.$ac_ext
36412cat >>conftest.$ac_ext <<_ACEOF
36413/* end confdefs.h. */
36414
36415/* Override any gcc2 internal prototype to avoid an error. */
36416#ifdef __cplusplus
36417extern "C"
36418#endif
36419/* We use char because int might match the return type of a gcc2
36420 builtin and then its argument prototype would still apply. */
36421char socket ();
36422int
36423main ()
36424{
36425socket ();
36426 ;
36427 return 0;
36428}
36429_ACEOF
36430rm -f conftest.$ac_objext conftest$ac_exeext
36431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36432 (eval $ac_link) 2>conftest.er1
a848cd7e 36433 ac_status=$?
ac1cb8d3
VS
36434 grep -v '^ *+' conftest.er1 >conftest.err
36435 rm -f conftest.er1
36436 cat conftest.err >&5
a848cd7e
SC
36437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 (exit $ac_status); } &&
89be85c2
VS
36439 { ac_try='test -z "$ac_c_werror_flag"
36440 || test ! -s conftest.err'
ac1cb8d3
VS
36441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442 (eval $ac_try) 2>&5
36443 ac_status=$?
36444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445 (exit $ac_status); }; } &&
36446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448 (eval $ac_try) 2>&5
36449 ac_status=$?
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); }; }; then
36452 ac_cv_lib_socket_socket=yes
36453else
36454 echo "$as_me: failed program was:" >&5
36455sed 's/^/| /' conftest.$ac_ext >&5
36456
36457ac_cv_lib_socket_socket=no
36458fi
ac1cb8d3
VS
36459rm -f conftest.err conftest.$ac_objext \
36460 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36461LIBS=$ac_check_lib_save_LIBS
36462fi
36463echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36464echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36465if test $ac_cv_lib_socket_socket = yes; then
36466 if test "$INET_LINK" != " -lsocket"; then
36467 INET_LINK="$INET_LINK -lsocket"
36468 fi
36469else
36470
36471 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36472echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36473 wxUSE_SOCKETS=no
36474
36475
36476fi
36477
36478
36479
36480fi
36481
36482 fi
36483fi
36484
36485if test "$wxUSE_SOCKETS" = "yes" ; then
36486 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36487 ac_ext=cc
36488ac_cpp='$CXXCPP $CPPFLAGS'
36489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36492
36493 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36494echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36495if test "${wx_cv_type_getsockname3+set}" = set; then
36496 echo $ECHO_N "(cached) $ECHO_C" >&6
36497else
36498
36499 cat >conftest.$ac_ext <<_ACEOF
36500/* confdefs.h. */
36501_ACEOF
36502cat confdefs.h >>conftest.$ac_ext
36503cat >>conftest.$ac_ext <<_ACEOF
36504/* end confdefs.h. */
36505
36506 #include <sys/types.h>
36507 #include <sys/socket.h>
36508
36509int
36510main ()
36511{
36512
36513 socklen_t len;
36514 getsockname(0, 0, &len);
36515
36516 ;
36517 return 0;
36518}
36519_ACEOF
36520rm -f conftest.$ac_objext
36521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36522 (eval $ac_compile) 2>conftest.er1
a848cd7e 36523 ac_status=$?
ac1cb8d3
VS
36524 grep -v '^ *+' conftest.er1 >conftest.err
36525 rm -f conftest.er1
36526 cat conftest.err >&5
a848cd7e
SC
36527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528 (exit $ac_status); } &&
89be85c2
VS
36529 { ac_try='test -z "$ac_cxx_werror_flag"
36530 || test ! -s conftest.err'
ac1cb8d3
VS
36531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36532 (eval $ac_try) 2>&5
36533 ac_status=$?
36534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36535 (exit $ac_status); }; } &&
36536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36538 (eval $ac_try) 2>&5
36539 ac_status=$?
36540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541 (exit $ac_status); }; }; then
36542 wx_cv_type_getsockname3=socklen_t
36543else
36544 echo "$as_me: failed program was:" >&5
36545sed 's/^/| /' conftest.$ac_ext >&5
36546
36547
36548 CFLAGS_OLD="$CFLAGS"
36549 if test "$GCC" = yes ; then
36550 CFLAGS="$CFLAGS -Werror"
36551 fi
36552
36553 cat >conftest.$ac_ext <<_ACEOF
36554/* confdefs.h. */
36555_ACEOF
36556cat confdefs.h >>conftest.$ac_ext
36557cat >>conftest.$ac_ext <<_ACEOF
36558/* end confdefs.h. */
36559
36560 #include <sys/types.h>
36561 #include <sys/socket.h>
36562
36563int
36564main ()
36565{
36566
36567 size_t len;
36568 getsockname(0, 0, &len);
36569
36570 ;
36571 return 0;
36572}
36573_ACEOF
36574rm -f conftest.$ac_objext
36575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36576 (eval $ac_compile) 2>conftest.er1
a848cd7e 36577 ac_status=$?
ac1cb8d3
VS
36578 grep -v '^ *+' conftest.er1 >conftest.err
36579 rm -f conftest.er1
36580 cat conftest.err >&5
a848cd7e
SC
36581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582 (exit $ac_status); } &&
89be85c2
VS
36583 { ac_try='test -z "$ac_cxx_werror_flag"
36584 || test ! -s conftest.err'
ac1cb8d3
VS
36585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36586 (eval $ac_try) 2>&5
36587 ac_status=$?
36588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589 (exit $ac_status); }; } &&
36590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36592 (eval $ac_try) 2>&5
36593 ac_status=$?
36594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595 (exit $ac_status); }; }; then
36596 wx_cv_type_getsockname3=size_t
36597else
36598 echo "$as_me: failed program was:" >&5
36599sed 's/^/| /' conftest.$ac_ext >&5
36600
36601cat >conftest.$ac_ext <<_ACEOF
36602/* confdefs.h. */
36603_ACEOF
36604cat confdefs.h >>conftest.$ac_ext
36605cat >>conftest.$ac_ext <<_ACEOF
36606/* end confdefs.h. */
36607
36608 #include <sys/types.h>
36609 #include <sys/socket.h>
36610
36611int
36612main ()
36613{
36614
36615 int len;
36616 getsockname(0, 0, &len);
36617
36618 ;
36619 return 0;
36620}
36621_ACEOF
36622rm -f conftest.$ac_objext
36623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36624 (eval $ac_compile) 2>conftest.er1
a848cd7e 36625 ac_status=$?
ac1cb8d3
VS
36626 grep -v '^ *+' conftest.er1 >conftest.err
36627 rm -f conftest.er1
36628 cat conftest.err >&5
a848cd7e
SC
36629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630 (exit $ac_status); } &&
89be85c2
VS
36631 { ac_try='test -z "$ac_cxx_werror_flag"
36632 || test ! -s conftest.err'
ac1cb8d3
VS
36633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36634 (eval $ac_try) 2>&5
36635 ac_status=$?
36636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637 (exit $ac_status); }; } &&
36638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36640 (eval $ac_try) 2>&5
36641 ac_status=$?
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); }; }; then
36644 wx_cv_type_getsockname3=int
36645else
36646 echo "$as_me: failed program was:" >&5
36647sed 's/^/| /' conftest.$ac_ext >&5
36648
36649wx_cv_type_getsockname3=unknown
36650
36651fi
ac1cb8d3 36652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36653
36654fi
ac1cb8d3 36655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36656
36657 CFLAGS="$CFLAGS_OLD"
36658
36659
36660fi
ac1cb8d3 36661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36662
36663fi
36664echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36665echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36666
36667 if test "$wx_cv_type_getsockname3" = "unknown"; then
36668 wxUSE_SOCKETS=no
36669 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36670echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36671 else
36672 cat >>confdefs.h <<_ACEOF
36673#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36674_ACEOF
36675
36676 fi
36677 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36678echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36679if test "${wx_cv_type_getsockopt5+set}" = set; then
36680 echo $ECHO_N "(cached) $ECHO_C" >&6
36681else
36682
36683 cat >conftest.$ac_ext <<_ACEOF
36684/* confdefs.h. */
36685_ACEOF
36686cat confdefs.h >>conftest.$ac_ext
36687cat >>conftest.$ac_ext <<_ACEOF
36688/* end confdefs.h. */
36689
36690 #include <sys/types.h>
36691 #include <sys/socket.h>
36692
36693int
36694main ()
36695{
36696
36697 socklen_t len;
36698 getsockopt(0, 0, 0, 0, &len);
36699
36700 ;
36701 return 0;
36702}
36703_ACEOF
36704rm -f conftest.$ac_objext
36705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36706 (eval $ac_compile) 2>conftest.er1
36707 ac_status=$?
36708 grep -v '^ *+' conftest.er1 >conftest.err
36709 rm -f conftest.er1
36710 cat conftest.err >&5
36711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712 (exit $ac_status); } &&
89be85c2
VS
36713 { ac_try='test -z "$ac_cxx_werror_flag"
36714 || test ! -s conftest.err'
5b674b9d
DE
36715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36716 (eval $ac_try) 2>&5
36717 ac_status=$?
36718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 (exit $ac_status); }; } &&
36720 { ac_try='test -s conftest.$ac_objext'
36721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36722 (eval $ac_try) 2>&5
36723 ac_status=$?
36724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 (exit $ac_status); }; }; then
36726 wx_cv_type_getsockopt5=socklen_t
36727else
36728 echo "$as_me: failed program was:" >&5
36729sed 's/^/| /' conftest.$ac_ext >&5
36730
36731
36732 CFLAGS_OLD="$CFLAGS"
36733 if test "$GCC" = yes ; then
36734 CFLAGS="$CFLAGS -Werror"
36735 fi
36736
36737 cat >conftest.$ac_ext <<_ACEOF
36738/* confdefs.h. */
36739_ACEOF
36740cat confdefs.h >>conftest.$ac_ext
36741cat >>conftest.$ac_ext <<_ACEOF
36742/* end confdefs.h. */
36743
36744 #include <sys/types.h>
36745 #include <sys/socket.h>
36746
36747int
36748main ()
36749{
36750
36751 size_t len;
36752 getsockopt(0, 0, 0, 0, &len);
36753
36754 ;
36755 return 0;
36756}
36757_ACEOF
36758rm -f conftest.$ac_objext
36759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36760 (eval $ac_compile) 2>conftest.er1
36761 ac_status=$?
36762 grep -v '^ *+' conftest.er1 >conftest.err
36763 rm -f conftest.er1
36764 cat conftest.err >&5
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); } &&
89be85c2
VS
36767 { ac_try='test -z "$ac_cxx_werror_flag"
36768 || test ! -s conftest.err'
5b674b9d
DE
36769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36770 (eval $ac_try) 2>&5
36771 ac_status=$?
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); }; } &&
36774 { ac_try='test -s conftest.$ac_objext'
36775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36776 (eval $ac_try) 2>&5
36777 ac_status=$?
36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779 (exit $ac_status); }; }; then
36780 wx_cv_type_getsockopt5=size_t
36781else
36782 echo "$as_me: failed program was:" >&5
36783sed 's/^/| /' conftest.$ac_ext >&5
36784
36785cat >conftest.$ac_ext <<_ACEOF
36786/* confdefs.h. */
36787_ACEOF
36788cat confdefs.h >>conftest.$ac_ext
36789cat >>conftest.$ac_ext <<_ACEOF
36790/* end confdefs.h. */
36791
36792 #include <sys/types.h>
36793 #include <sys/socket.h>
36794
36795int
36796main ()
36797{
36798
36799 int len;
36800 getsockopt(0, 0, 0, 0, &len);
36801
36802 ;
36803 return 0;
36804}
36805_ACEOF
36806rm -f conftest.$ac_objext
36807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36808 (eval $ac_compile) 2>conftest.er1
36809 ac_status=$?
36810 grep -v '^ *+' conftest.er1 >conftest.err
36811 rm -f conftest.er1
36812 cat conftest.err >&5
36813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814 (exit $ac_status); } &&
89be85c2
VS
36815 { ac_try='test -z "$ac_cxx_werror_flag"
36816 || test ! -s conftest.err'
5b674b9d
DE
36817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36818 (eval $ac_try) 2>&5
36819 ac_status=$?
36820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821 (exit $ac_status); }; } &&
36822 { ac_try='test -s conftest.$ac_objext'
36823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36824 (eval $ac_try) 2>&5
36825 ac_status=$?
36826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827 (exit $ac_status); }; }; then
36828 wx_cv_type_getsockopt5=int
36829else
36830 echo "$as_me: failed program was:" >&5
36831sed 's/^/| /' conftest.$ac_ext >&5
36832
36833wx_cv_type_getsockopt5=unknown
36834
36835fi
36836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36837
36838fi
36839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36840
36841 CFLAGS="$CFLAGS_OLD"
36842
36843
36844fi
36845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36846
36847fi
36848echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36849echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36850
36851 if test "$wx_cv_type_getsockopt5" = "unknown"; then
36852 wxUSE_SOCKETS=no
36853 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36854echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36855 else
36856 cat >>confdefs.h <<_ACEOF
36857#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
36858_ACEOF
36859
36860 fi
4d4ff94c
VZ
36861 ac_ext=c
36862ac_cpp='$CPP $CPPFLAGS'
36863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36865ac_compiler_gnu=$ac_cv_c_compiler_gnu
36866
a848cd7e
SC
36867 fi
36868fi
36869
36870if test "$wxUSE_SOCKETS" = "yes" ; then
36871 cat >>confdefs.h <<\_ACEOF
36872#define wxUSE_SOCKETS 1
36873_ACEOF
36874
36875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36876fi
36877
36878if test "$wxUSE_PROTOCOL" = "yes"; then
36879 if test "$wxUSE_SOCKETS" != "yes"; then
36880 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36881echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36882 wxUSE_PROTOCOL=no
36883 fi
36884fi
36885
36886if test "$wxUSE_PROTOCOL" = "yes"; then
36887 cat >>confdefs.h <<\_ACEOF
36888#define wxUSE_PROTOCOL 1
36889_ACEOF
36890
36891
36892 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36893 cat >>confdefs.h <<\_ACEOF
36894#define wxUSE_PROTOCOL_HTTP 1
36895_ACEOF
36896
36897 fi
36898 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36899 cat >>confdefs.h <<\_ACEOF
36900#define wxUSE_PROTOCOL_FTP 1
36901_ACEOF
36902
36903 fi
36904 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36905 cat >>confdefs.h <<\_ACEOF
36906#define wxUSE_PROTOCOL_FILE 1
36907_ACEOF
36908
36909 fi
36910else
36911 if test "$wxUSE_FS_INET" = "yes"; then
36912 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36913echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36914 wxUSE_FS_INET="no"
36915 fi
36916fi
36917
36918if test "$wxUSE_URL" = "yes"; then
36919 if test "$wxUSE_PROTOCOL" != "yes"; then
36920 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36921echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36922 wxUSE_URL=no
36923 fi
36924 if test "$wxUSE_URL" = "yes"; then
36925 cat >>confdefs.h <<\_ACEOF
36926#define wxUSE_URL 1
36927_ACEOF
36928
36929 fi
36930fi
36931
36932if test "$wxUSE_FS_INET" = "yes"; then
36933 cat >>confdefs.h <<\_ACEOF
36934#define wxUSE_FS_INET 1
36935_ACEOF
36936
36937fi
36938
36939
36940if test "$wxUSE_GUI" = "yes"; then
36941
36942 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36943 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36944echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36945 wxUSE_JOYSTICK=no
36946 fi
36947
36948 if test "$TOOLKIT" != "MSW"; then
36949 if test "$wxUSE_JOYSTICK" = "yes"; then
36950
36951for ac_header in linux/joystick.h
36952do
36953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36954if eval "test \"\${$as_ac_Header+set}\" = set"; then
36955 echo "$as_me:$LINENO: checking for $ac_header" >&5
36956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36957if eval "test \"\${$as_ac_Header+set}\" = set"; then
36958 echo $ECHO_N "(cached) $ECHO_C" >&6
36959fi
36960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36962else
36963 # Is the header compilable?
36964echo "$as_me:$LINENO: checking $ac_header usability" >&5
36965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36966cat >conftest.$ac_ext <<_ACEOF
36967/* confdefs.h. */
36968_ACEOF
36969cat confdefs.h >>conftest.$ac_ext
36970cat >>conftest.$ac_ext <<_ACEOF
36971/* end confdefs.h. */
36972$ac_includes_default
36973#include <$ac_header>
36974_ACEOF
36975rm -f conftest.$ac_objext
36976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36977 (eval $ac_compile) 2>conftest.er1
a848cd7e 36978 ac_status=$?
ac1cb8d3
VS
36979 grep -v '^ *+' conftest.er1 >conftest.err
36980 rm -f conftest.er1
36981 cat conftest.err >&5
a848cd7e
SC
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); } &&
89be85c2
VS
36984 { ac_try='test -z "$ac_c_werror_flag"
36985 || test ! -s conftest.err'
ac1cb8d3
VS
36986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36987 (eval $ac_try) 2>&5
36988 ac_status=$?
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); }; } &&
36991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36993 (eval $ac_try) 2>&5
36994 ac_status=$?
36995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996 (exit $ac_status); }; }; then
36997 ac_header_compiler=yes
36998else
36999 echo "$as_me: failed program was:" >&5
37000sed 's/^/| /' conftest.$ac_ext >&5
37001
37002ac_header_compiler=no
37003fi
ac1cb8d3 37004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37005echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37006echo "${ECHO_T}$ac_header_compiler" >&6
37007
37008# Is the header present?
37009echo "$as_me:$LINENO: checking $ac_header presence" >&5
37010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37011cat >conftest.$ac_ext <<_ACEOF
37012/* confdefs.h. */
37013_ACEOF
37014cat confdefs.h >>conftest.$ac_ext
37015cat >>conftest.$ac_ext <<_ACEOF
37016/* end confdefs.h. */
37017#include <$ac_header>
37018_ACEOF
37019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37021 ac_status=$?
37022 grep -v '^ *+' conftest.er1 >conftest.err
37023 rm -f conftest.er1
37024 cat conftest.err >&5
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); } >/dev/null; then
37027 if test -s conftest.err; then
37028 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37030 else
37031 ac_cpp_err=
37032 fi
37033else
37034 ac_cpp_err=yes
37035fi
37036if test -z "$ac_cpp_err"; then
37037 ac_header_preproc=yes
37038else
37039 echo "$as_me: failed program was:" >&5
37040sed 's/^/| /' conftest.$ac_ext >&5
37041
37042 ac_header_preproc=no
37043fi
37044rm -f conftest.err conftest.$ac_ext
37045echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37046echo "${ECHO_T}$ac_header_preproc" >&6
37047
37048# So? What about this header?
ac1cb8d3
VS
37049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37050 yes:no: )
a848cd7e
SC
37051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37055 ac_header_preproc=yes
a848cd7e 37056 ;;
ac1cb8d3 37057 no:yes:* )
a848cd7e
SC
37058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37070 (
37071 cat <<\_ASBOX
ac1cb8d3
VS
37072## ----------------------------------------- ##
37073## Report this to wx-dev@lists.wxwidgets.org ##
37074## ----------------------------------------- ##
a848cd7e
SC
37075_ASBOX
37076 ) |
37077 sed "s/^/$as_me: WARNING: /" >&2
37078 ;;
37079esac
37080echo "$as_me:$LINENO: checking for $ac_header" >&5
37081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37082if eval "test \"\${$as_ac_Header+set}\" = set"; then
37083 echo $ECHO_N "(cached) $ECHO_C" >&6
37084else
ac1cb8d3 37085 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37086fi
37087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37089
37090fi
37091if test `eval echo '${'$as_ac_Header'}'` = yes; then
37092 cat >>confdefs.h <<_ACEOF
37093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37094_ACEOF
37095
37096fi
37097
37098done
37099
37100 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37101 wxUSE_JOYSTICK=no
37102 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37103echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37104 fi
37105 fi
37106 fi
37107
37108 if test "$wxUSE_JOYSTICK" = "yes"; then
37109 cat >>confdefs.h <<\_ACEOF
37110#define wxUSE_JOYSTICK 1
37111_ACEOF
37112
37113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37114 fi
37115fi
37116
37117
37118
37119if test "$wxUSE_FONTMAP" = "yes" ; then
37120 cat >>confdefs.h <<\_ACEOF
37121#define wxUSE_FONTMAP 1
37122_ACEOF
37123
37124fi
37125
37126if test "$wxUSE_UNICODE" = "yes" ; then
37127 cat >>confdefs.h <<\_ACEOF
37128#define wxUSE_UNICODE 1
37129_ACEOF
37130
37131
37132 if test "$USE_WIN32" != 1; then
37133 wxUSE_UNICODE_MSLU=no
37134 fi
37135
37136 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37137 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37138echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37139if test "${ac_cv_lib_unicows_main+set}" = set; then
37140 echo $ECHO_N "(cached) $ECHO_C" >&6
37141else
37142 ac_check_lib_save_LIBS=$LIBS
37143LIBS="-lunicows $LIBS"
37144cat >conftest.$ac_ext <<_ACEOF
37145/* confdefs.h. */
37146_ACEOF
37147cat confdefs.h >>conftest.$ac_ext
37148cat >>conftest.$ac_ext <<_ACEOF
37149/* end confdefs.h. */
37150
37151
37152int
37153main ()
37154{
37155main ();
37156 ;
37157 return 0;
37158}
37159_ACEOF
37160rm -f conftest.$ac_objext conftest$ac_exeext
37161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37162 (eval $ac_link) 2>conftest.er1
a848cd7e 37163 ac_status=$?
ac1cb8d3
VS
37164 grep -v '^ *+' conftest.er1 >conftest.err
37165 rm -f conftest.er1
37166 cat conftest.err >&5
a848cd7e
SC
37167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168 (exit $ac_status); } &&
89be85c2
VS
37169 { ac_try='test -z "$ac_c_werror_flag"
37170 || test ! -s conftest.err'
ac1cb8d3
VS
37171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172 (eval $ac_try) 2>&5
37173 ac_status=$?
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); }; } &&
37176 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37178 (eval $ac_try) 2>&5
37179 ac_status=$?
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); }; }; then
37182 ac_cv_lib_unicows_main=yes
37183else
37184 echo "$as_me: failed program was:" >&5
37185sed 's/^/| /' conftest.$ac_ext >&5
37186
37187ac_cv_lib_unicows_main=no
37188fi
ac1cb8d3
VS
37189rm -f conftest.err conftest.$ac_objext \
37190 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37191LIBS=$ac_check_lib_save_LIBS
37192fi
37193echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37194echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37195if test $ac_cv_lib_unicows_main = yes; then
37196
37197 cat >>confdefs.h <<\_ACEOF
37198#define wxUSE_UNICODE_MSLU 1
37199_ACEOF
37200
37201
37202else
37203
37204 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37205 Applications will only run on Windows NT/2000/XP!" >&5
37206echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37207 Applications will only run on Windows NT/2000/XP!" >&2;}
37208 wxUSE_UNICODE_MSLU=no
37209
37210fi
37211
37212 fi
37213fi
37214
37215if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37216 cat >>confdefs.h <<\_ACEOF
37217#define wxUSE_EXPERIMENTAL_PRINTF 1
37218_ACEOF
37219
37220fi
37221
37222
37223if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37224 cat >>confdefs.h <<\_ACEOF
37225#define wxUSE_POSTSCRIPT 1
37226_ACEOF
37227
37228fi
37229
37230cat >>confdefs.h <<\_ACEOF
37231#define wxUSE_AFM_FOR_POSTSCRIPT 1
37232_ACEOF
37233
37234
37235cat >>confdefs.h <<\_ACEOF
37236#define wxUSE_NORMALIZED_PS_FONTS 1
37237_ACEOF
37238
37239
37240
37241if test "$wxUSE_CONSTRAINTS" = "yes"; then
37242 cat >>confdefs.h <<\_ACEOF
37243#define wxUSE_CONSTRAINTS 1
37244_ACEOF
37245
37246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37247fi
37248
8a7b1113
VZ
37249if test "$wxUSE_MDI" = "yes"; then
37250 cat >>confdefs.h <<\_ACEOF
37251#define wxUSE_MDI 1
37252_ACEOF
37253
37254
37255 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37256 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37257#define wxUSE_MDI_ARCHITECTURE 1
37258_ACEOF
37259
8a7b1113
VZ
37260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37261 fi
a848cd7e
SC
37262fi
37263
37264if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37265 cat >>confdefs.h <<\_ACEOF
37266#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37267_ACEOF
37268
37269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37270 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37272 fi
37273fi
37274
37275if test "$wxUSE_HELP" = "yes"; then
37276 cat >>confdefs.h <<\_ACEOF
37277#define wxUSE_HELP 1
37278_ACEOF
37279
37280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37281
37282 if test "$wxUSE_MSW" = 1; then
37283 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37284 cat >>confdefs.h <<\_ACEOF
37285#define wxUSE_MS_HTML_HELP 1
37286_ACEOF
37287
37288 fi
37289 fi
37290
37291 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37292 if test "$wxUSE_HTML" = "yes"; then
37293 cat >>confdefs.h <<\_ACEOF
37294#define wxUSE_WXHTML_HELP 1
37295_ACEOF
37296
37297 else
37298 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37299echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37300 wxUSE_WXHTML_HELP=no
37301 fi
37302 fi
37303fi
37304
37305if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37306 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37307 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37308echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37309 else
37310 cat >>confdefs.h <<\_ACEOF
37311#define wxUSE_PRINTING_ARCHITECTURE 1
37312_ACEOF
37313
37314 fi
37315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37316fi
37317
37318if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37319 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37320echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37321 { (exit 1); exit 1; }; }
37322fi
37323
37324
37325if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37326 -o "$wxUSE_CLIPBOARD" = "yes" \
37327 -o "$wxUSE_OLE" = "yes" \
37328 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37329
37330for ac_header in ole2.h
37331do
37332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37333if eval "test \"\${$as_ac_Header+set}\" = set"; then
37334 echo "$as_me:$LINENO: checking for $ac_header" >&5
37335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37336if eval "test \"\${$as_ac_Header+set}\" = set"; then
37337 echo $ECHO_N "(cached) $ECHO_C" >&6
37338fi
37339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37341else
37342 # Is the header compilable?
37343echo "$as_me:$LINENO: checking $ac_header usability" >&5
37344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37345cat >conftest.$ac_ext <<_ACEOF
37346/* confdefs.h. */
37347_ACEOF
37348cat confdefs.h >>conftest.$ac_ext
37349cat >>conftest.$ac_ext <<_ACEOF
37350/* end confdefs.h. */
37351$ac_includes_default
37352#include <$ac_header>
37353_ACEOF
37354rm -f conftest.$ac_objext
37355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37356 (eval $ac_compile) 2>conftest.er1
a848cd7e 37357 ac_status=$?
ac1cb8d3
VS
37358 grep -v '^ *+' conftest.er1 >conftest.err
37359 rm -f conftest.er1
37360 cat conftest.err >&5
a848cd7e
SC
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); } &&
89be85c2
VS
37363 { ac_try='test -z "$ac_c_werror_flag"
37364 || test ! -s conftest.err'
ac1cb8d3
VS
37365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37366 (eval $ac_try) 2>&5
37367 ac_status=$?
37368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369 (exit $ac_status); }; } &&
37370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37372 (eval $ac_try) 2>&5
37373 ac_status=$?
37374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37375 (exit $ac_status); }; }; then
37376 ac_header_compiler=yes
37377else
37378 echo "$as_me: failed program was:" >&5
37379sed 's/^/| /' conftest.$ac_ext >&5
37380
37381ac_header_compiler=no
37382fi
ac1cb8d3 37383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37385echo "${ECHO_T}$ac_header_compiler" >&6
37386
37387# Is the header present?
37388echo "$as_me:$LINENO: checking $ac_header presence" >&5
37389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37390cat >conftest.$ac_ext <<_ACEOF
37391/* confdefs.h. */
37392_ACEOF
37393cat confdefs.h >>conftest.$ac_ext
37394cat >>conftest.$ac_ext <<_ACEOF
37395/* end confdefs.h. */
37396#include <$ac_header>
37397_ACEOF
37398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37400 ac_status=$?
37401 grep -v '^ *+' conftest.er1 >conftest.err
37402 rm -f conftest.er1
37403 cat conftest.err >&5
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); } >/dev/null; then
37406 if test -s conftest.err; then
37407 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37409 else
37410 ac_cpp_err=
37411 fi
37412else
37413 ac_cpp_err=yes
37414fi
37415if test -z "$ac_cpp_err"; then
37416 ac_header_preproc=yes
37417else
37418 echo "$as_me: failed program was:" >&5
37419sed 's/^/| /' conftest.$ac_ext >&5
37420
37421 ac_header_preproc=no
37422fi
37423rm -f conftest.err conftest.$ac_ext
37424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37425echo "${ECHO_T}$ac_header_preproc" >&6
37426
37427# So? What about this header?
ac1cb8d3
VS
37428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37429 yes:no: )
a848cd7e
SC
37430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37434 ac_header_preproc=yes
a848cd7e 37435 ;;
ac1cb8d3 37436 no:yes:* )
a848cd7e
SC
37437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37449 (
37450 cat <<\_ASBOX
ac1cb8d3
VS
37451## ----------------------------------------- ##
37452## Report this to wx-dev@lists.wxwidgets.org ##
37453## ----------------------------------------- ##
a848cd7e
SC
37454_ASBOX
37455 ) |
37456 sed "s/^/$as_me: WARNING: /" >&2
37457 ;;
37458esac
37459echo "$as_me:$LINENO: checking for $ac_header" >&5
37460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37461if eval "test \"\${$as_ac_Header+set}\" = set"; then
37462 echo $ECHO_N "(cached) $ECHO_C" >&6
37463else
ac1cb8d3 37464 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37465fi
37466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37468
37469fi
37470if test `eval echo '${'$as_ac_Header'}'` = yes; then
37471 cat >>confdefs.h <<_ACEOF
37472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37473_ACEOF
37474
37475fi
37476
37477done
37478
37479
37480 if test "$ac_cv_header_ole2_h" = "yes" ; then
37481 if test "$GCC" = yes ; then
37482
37483
37484 ac_ext=cc
37485ac_cpp='$CXXCPP $CPPFLAGS'
37486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37489
37490
37491 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37492echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37493 cat >conftest.$ac_ext <<_ACEOF
37494/* confdefs.h. */
37495_ACEOF
37496cat confdefs.h >>conftest.$ac_ext
37497cat >>conftest.$ac_ext <<_ACEOF
37498/* end confdefs.h. */
37499#include <windows.h>
37500 #include <ole2.h>
37501int
37502main ()
37503{
37504
37505 ;
37506 return 0;
37507}
37508_ACEOF
37509rm -f conftest.$ac_objext
37510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37511 (eval $ac_compile) 2>conftest.er1
a848cd7e 37512 ac_status=$?
ac1cb8d3
VS
37513 grep -v '^ *+' conftest.er1 >conftest.err
37514 rm -f conftest.er1
37515 cat conftest.err >&5
a848cd7e
SC
37516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); } &&
89be85c2
VS
37518 { ac_try='test -z "$ac_cxx_werror_flag"
37519 || test ! -s conftest.err'
ac1cb8d3
VS
37520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37521 (eval $ac_try) 2>&5
37522 ac_status=$?
37523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524 (exit $ac_status); }; } &&
37525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37527 (eval $ac_try) 2>&5
37528 ac_status=$?
37529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37530 (exit $ac_status); }; }; then
37531 echo "$as_me:$LINENO: result: no" >&5
37532echo "${ECHO_T}no" >&6
37533else
37534 echo "$as_me: failed program was:" >&5
37535sed 's/^/| /' conftest.$ac_ext >&5
37536
37537echo "$as_me:$LINENO: result: yes" >&5
37538echo "${ECHO_T}yes" >&6
37539 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37540fi
ac1cb8d3 37541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37542 ac_ext=c
37543ac_cpp='$CPP $CPPFLAGS'
37544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37546ac_compiler_gnu=$ac_cv_c_compiler_gnu
37547
a848cd7e
SC
37548 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37549 if test "$wxUSE_OLE" = "yes" ; then
37550 cat >>confdefs.h <<\_ACEOF
37551#define wxUSE_OLE 1
37552_ACEOF
37553
37554 fi
37555 fi
37556
37557 if test "$wxUSE_DATAOBJ" = "yes" ; then
37558 cat >>confdefs.h <<\_ACEOF
37559#define wxUSE_DATAOBJ 1
37560_ACEOF
37561
37562 fi
37563 else
37564 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37565echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37566
37567 wxUSE_CLIPBOARD=no
37568 wxUSE_DRAG_AND_DROP=no
37569 wxUSE_DATAOBJ=no
37570 wxUSE_OLE=no
37571 fi
37572
37573 if test "$wxUSE_METAFILE" = "yes"; then
37574 cat >>confdefs.h <<\_ACEOF
37575#define wxUSE_METAFILE 1
37576_ACEOF
37577
37578
37579 cat >>confdefs.h <<\_ACEOF
37580#define wxUSE_ENH_METAFILE 1
37581_ACEOF
37582
37583 fi
37584fi
37585
37586if test "$wxUSE_IPC" = "yes"; then
37587 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37588 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37589echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37590 fi
37591
37592 cat >>confdefs.h <<\_ACEOF
37593#define wxUSE_IPC 1
37594_ACEOF
37595
37596fi
37597
37598if test "$wxUSE_CLIPBOARD" = "yes"; then
37599 if test "$wxUSE_MGL" = 1; then
37600 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37601echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37602 wxUSE_CLIPBOARD=no
37603 fi
37604
37605 if test "$wxUSE_CLIPBOARD" = "yes"; then
37606 cat >>confdefs.h <<\_ACEOF
37607#define wxUSE_CLIPBOARD 1
37608_ACEOF
37609
37610
37611 cat >>confdefs.h <<\_ACEOF
37612#define wxUSE_DATAOBJ 1
37613_ACEOF
37614
37615 fi
37616fi
37617
37618if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37619 if test "$wxUSE_GTK" = 1; then
37620 if test "$WXGTK12" != 1; then
37621 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37622echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37623 wxUSE_DRAG_AND_DROP=no
37624 fi
37625 fi
37626
37627 if test "$wxUSE_MOTIF" = 1; then
37628 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37629echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37630 wxUSE_DRAG_AND_DROP=no
37631 fi
37632
37633 if test "$wxUSE_X11" = 1; then
37634 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37635echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37636 wxUSE_DRAG_AND_DROP=no
37637 fi
37638
37639 if test "$wxUSE_MGL" = 1; then
37640 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37641echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37642 wxUSE_DRAG_AND_DROP=no
37643 fi
37644
37645 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37646 cat >>confdefs.h <<\_ACEOF
37647#define wxUSE_DRAG_AND_DROP 1
37648_ACEOF
37649
37650 fi
37651
37652fi
37653
37654if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37656fi
37657
37658if test "$wxUSE_SPLINES" = "yes" ; then
37659 cat >>confdefs.h <<\_ACEOF
37660#define wxUSE_SPLINES 1
37661_ACEOF
37662
37663fi
37664
37665
37666USES_CONTROLS=0
37667if test "$wxUSE_CONTROLS" = "yes"; then
37668 USES_CONTROLS=1
37669fi
37670
37671if test "$wxUSE_ACCEL" = "yes"; then
37672 cat >>confdefs.h <<\_ACEOF
37673#define wxUSE_ACCEL 1
37674_ACEOF
37675
37676 USES_CONTROLS=1
37677fi
37678
37679if test "$wxUSE_BUTTON" = "yes"; then
37680 cat >>confdefs.h <<\_ACEOF
37681#define wxUSE_BUTTON 1
37682_ACEOF
37683
37684 USES_CONTROLS=1
37685fi
37686
37687if test "$wxUSE_BMPBUTTON" = "yes"; then
37688 cat >>confdefs.h <<\_ACEOF
37689#define wxUSE_BMPBUTTON 1
37690_ACEOF
37691
37692 USES_CONTROLS=1
37693fi
37694
37695if test "$wxUSE_CALCTRL" = "yes"; then
37696 cat >>confdefs.h <<\_ACEOF
37697#define wxUSE_CALENDARCTRL 1
37698_ACEOF
37699
37700 USES_CONTROLS=1
37701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37702fi
37703
37704if test "$wxUSE_CARET" = "yes"; then
37705 cat >>confdefs.h <<\_ACEOF
37706#define wxUSE_CARET 1
37707_ACEOF
37708
37709 USES_CONTROLS=1
37710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37711fi
37712
37713if test "$wxUSE_COMBOBOX" = "yes"; then
37714 cat >>confdefs.h <<\_ACEOF
37715#define wxUSE_COMBOBOX 1
37716_ACEOF
37717
37718 USES_CONTROLS=1
37719fi
37720
37721if test "$wxUSE_CHOICE" = "yes"; then
37722 cat >>confdefs.h <<\_ACEOF
37723#define wxUSE_CHOICE 1
37724_ACEOF
37725
37726 USES_CONTROLS=1
37727fi
37728
92bbdbcd
WS
37729if test "$wxUSE_CHOICEBOOK" = "yes"; then
37730 cat >>confdefs.h <<\_ACEOF
37731#define wxUSE_CHOICEBOOK 1
37732_ACEOF
37733
37734 USES_CONTROLS=1
37735fi
37736
a848cd7e
SC
37737if test "$wxUSE_CHECKBOX" = "yes"; then
37738 cat >>confdefs.h <<\_ACEOF
37739#define wxUSE_CHECKBOX 1
37740_ACEOF
37741
37742 USES_CONTROLS=1
37743fi
37744
37745if test "$wxUSE_CHECKLST" = "yes"; then
37746 cat >>confdefs.h <<\_ACEOF
37747#define wxUSE_CHECKLISTBOX 1
37748_ACEOF
37749
37750 USES_CONTROLS=1
37751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37752fi
37753
da98e9be
VZ
37754if test "$wxUSE_DATEPICKCTRL" = "yes"; then
37755 cat >>confdefs.h <<\_ACEOF
37756#define wxUSE_DATEPICKCTRL 1
37757_ACEOF
37758
37759 USES_CONTROLS=1
37760fi
37761
a848cd7e
SC
37762if test "$wxUSE_DISPLAY" = "yes"; then
37763 cat >>confdefs.h <<\_ACEOF
37764#define wxUSE_DISPLAY 1
37765_ACEOF
37766
37767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37768fi
37769
37770if test "$wxUSE_GAUGE" = "yes"; then
37771 cat >>confdefs.h <<\_ACEOF
37772#define wxUSE_GAUGE 1
37773_ACEOF
37774
37775 USES_CONTROLS=1
37776fi
37777
37778if test "$wxUSE_GRID" = "yes"; then
37779 cat >>confdefs.h <<\_ACEOF
37780#define wxUSE_GRID 1
37781_ACEOF
37782
37783 USES_CONTROLS=1
37784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37785fi
37786
37787if test "$wxUSE_IMAGLIST" = "yes"; then
37788 cat >>confdefs.h <<\_ACEOF
37789#define wxUSE_IMAGLIST 1
37790_ACEOF
37791
37792fi
37793
37794if test "$wxUSE_LISTBOOK" = "yes"; then
37795 cat >>confdefs.h <<\_ACEOF
37796#define wxUSE_LISTBOOK 1
37797_ACEOF
37798
37799 USES_CONTROLS=1
37800fi
37801
37802if test "$wxUSE_LISTBOX" = "yes"; then
37803 cat >>confdefs.h <<\_ACEOF
37804#define wxUSE_LISTBOX 1
37805_ACEOF
37806
37807 USES_CONTROLS=1
37808fi
37809
37810if test "$wxUSE_LISTCTRL" = "yes"; then
37811 if test "$wxUSE_IMAGLIST" = "yes"; then
37812 cat >>confdefs.h <<\_ACEOF
37813#define wxUSE_LISTCTRL 1
37814_ACEOF
37815
37816 USES_CONTROLS=1
37817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37818 else
37819 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37820echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37821 fi
37822fi
37823
37824if test "$wxUSE_NOTEBOOK" = "yes"; then
37825 cat >>confdefs.h <<\_ACEOF
37826#define wxUSE_NOTEBOOK 1
37827_ACEOF
37828
37829 USES_CONTROLS=1
37830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37831fi
37832
37833
37834if test "$wxUSE_RADIOBOX" = "yes"; then
37835 cat >>confdefs.h <<\_ACEOF
37836#define wxUSE_RADIOBOX 1
37837_ACEOF
37838
37839 USES_CONTROLS=1
37840fi
37841
37842if test "$wxUSE_RADIOBTN" = "yes"; then
37843 cat >>confdefs.h <<\_ACEOF
37844#define wxUSE_RADIOBTN 1
37845_ACEOF
37846
37847 USES_CONTROLS=1
37848fi
37849
37850if test "$wxUSE_SASH" = "yes"; then
37851 cat >>confdefs.h <<\_ACEOF
37852#define wxUSE_SASH 1
37853_ACEOF
37854
37855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37856fi
37857
37858if test "$wxUSE_SCROLLBAR" = "yes"; then
37859 cat >>confdefs.h <<\_ACEOF
37860#define wxUSE_SCROLLBAR 1
37861_ACEOF
37862
37863 USES_CONTROLS=1
37864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37865fi
37866
37867if test "$wxUSE_SLIDER" = "yes"; then
37868 cat >>confdefs.h <<\_ACEOF
37869#define wxUSE_SLIDER 1
37870_ACEOF
37871
37872 USES_CONTROLS=1
37873fi
37874
37875if test "$wxUSE_SPINBTN" = "yes"; then
37876 cat >>confdefs.h <<\_ACEOF
37877#define wxUSE_SPINBTN 1
37878_ACEOF
37879
37880 USES_CONTROLS=1
37881fi
37882
37883if test "$wxUSE_SPINCTRL" = "yes"; then
37884 cat >>confdefs.h <<\_ACEOF
37885#define wxUSE_SPINCTRL 1
37886_ACEOF
37887
37888 USES_CONTROLS=1
37889fi
37890
37891if test "$wxUSE_SPLITTER" = "yes"; then
37892 cat >>confdefs.h <<\_ACEOF
37893#define wxUSE_SPLITTER 1
37894_ACEOF
37895
37896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37897fi
37898
37899if test "$wxUSE_STATBMP" = "yes"; then
37900 cat >>confdefs.h <<\_ACEOF
37901#define wxUSE_STATBMP 1
37902_ACEOF
37903
37904 USES_CONTROLS=1
37905fi
37906
37907if test "$wxUSE_STATBOX" = "yes"; then
37908 cat >>confdefs.h <<\_ACEOF
37909#define wxUSE_STATBOX 1
37910_ACEOF
37911
37912 USES_CONTROLS=1
37913fi
37914
37915if test "$wxUSE_STATTEXT" = "yes"; then
37916 cat >>confdefs.h <<\_ACEOF
37917#define wxUSE_STATTEXT 1
37918_ACEOF
37919
37920 USES_CONTROLS=1
37921fi
37922
37923if test "$wxUSE_STATLINE" = "yes"; then
37924 cat >>confdefs.h <<\_ACEOF
37925#define wxUSE_STATLINE 1
37926_ACEOF
37927
37928 USES_CONTROLS=1
37929fi
37930
37931if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
37932 cat >>confdefs.h <<\_ACEOF
37933#define wxUSE_NATIVE_STATUSBAR 1
37934_ACEOF
37935
a848cd7e
SC
37936 cat >>confdefs.h <<\_ACEOF
37937#define wxUSE_STATUSBAR 1
37938_ACEOF
37939
37940 USES_CONTROLS=1
37941
37942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37943fi
37944
37945if test "$wxUSE_TABDIALOG" = "yes"; then
37946 cat >>confdefs.h <<\_ACEOF
37947#define wxUSE_TAB_DIALOG 1
37948_ACEOF
37949
a848cd7e
SC
37950fi
37951
37952if test "$wxUSE_TEXTCTRL" = "yes"; then
37953 cat >>confdefs.h <<\_ACEOF
37954#define wxUSE_TEXTCTRL 1
37955_ACEOF
37956
37957 USES_CONTROLS=1
37958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37959fi
37960
37961if test "$wxUSE_TOGGLEBTN" = "yes"; then
37962 if test "$wxUSE_COCOA" = 1 ; then
37963 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37964echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37965 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37966 else
37967 if test "$wxUSE_PM" = 1; then
37968 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37969echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37970 wxUSE_TOGGLEBTN=no
37971 fi
a848cd7e
SC
37972 fi
37973 if test "$wxUSE_UNIVERSAL" = "yes"; then
37974 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37975echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37976 wxUSE_TOGGLEBTN=no
37977 fi
37978
37979 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37980 cat >>confdefs.h <<\_ACEOF
37981#define wxUSE_TOGGLEBTN 1
37982_ACEOF
37983
37984 USES_CONTROLS=1
37985 fi
37986fi
37987
37988if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37989 cat >>confdefs.h <<\_ACEOF
37990#define wxUSE_TOOLBAR_SIMPLE 1
37991_ACEOF
37992
37993 wxUSE_TOOLBAR="yes"
37994 USES_CONTROLS=1
37995fi
37996
37997if test "$wxUSE_TOOLBAR" = "yes"; then
37998 cat >>confdefs.h <<\_ACEOF
37999#define wxUSE_TOOLBAR 1
38000_ACEOF
38001
38002 USES_CONTROLS=1
38003
38004 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
38005 wxUSE_TOOLBAR_NATIVE="yes"
38006 fi
38007
38008 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
38009 cat >>confdefs.h <<\_ACEOF
38010#define wxUSE_TOOLBAR_NATIVE 1
38011_ACEOF
38012
38013 USES_CONTROLS=1
38014 fi
38015
38016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
38017fi
38018
38019if test "$wxUSE_TOOLTIPS" = "yes"; then
38020 if test "$wxUSE_MOTIF" = 1; then
38021 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
38022echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
38023 else
38024 if test "$wxUSE_UNIVERSAL" = "yes"; then
38025 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
38026echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
38027 else
38028 cat >>confdefs.h <<\_ACEOF
38029#define wxUSE_TOOLTIPS 1
38030_ACEOF
38031
38032 fi
38033 fi
38034fi
38035
38036if test "$wxUSE_TREECTRL" = "yes"; then
38037 if test "$wxUSE_IMAGLIST" = "yes"; then
38038 cat >>confdefs.h <<\_ACEOF
38039#define wxUSE_TREECTRL 1
38040_ACEOF
38041
38042 USES_CONTROLS=1
38043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
38044 else
38045 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
38046echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
38047 fi
38048fi
38049
38050if test "$wxUSE_POPUPWIN" = "yes"; then
38051 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38052 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
38053echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
38054 else
38055 if test "$wxUSE_PM" = 1; then
38056 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
38057echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
38058 else
38059 cat >>confdefs.h <<\_ACEOF
38060#define wxUSE_POPUPWIN 1
38061_ACEOF
38062
38063
38064 USES_CONTROLS=1
38065 fi
38066 fi
38067fi
38068
0dcd06dd 38069if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
38070 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38071 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
38072echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
38073 else
38074 cat >>confdefs.h <<\_ACEOF
38075#define wxUSE_DIALUP_MANAGER 1
38076_ACEOF
38077
38078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
38079 fi
38080fi
38081
a848cd7e
SC
38082if test "$wxUSE_TIPWINDOW" = "yes"; then
38083 if test "$wxUSE_PM" = 1; then
38084 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38085echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38086 else
38087 cat >>confdefs.h <<\_ACEOF
38088#define wxUSE_TIPWINDOW 1
38089_ACEOF
38090
38091 fi
38092fi
38093
38094if test "$USES_CONTROLS" = 1; then
38095 cat >>confdefs.h <<\_ACEOF
38096#define wxUSE_CONTROLS 1
38097_ACEOF
38098
38099fi
38100
38101
38102if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38103 cat >>confdefs.h <<\_ACEOF
38104#define wxUSE_ACCESSIBILITY 1
38105_ACEOF
38106
38107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38108fi
38109
38110if test "$wxUSE_DRAGIMAGE" = "yes"; then
38111 cat >>confdefs.h <<\_ACEOF
38112#define wxUSE_DRAGIMAGE 1
38113_ACEOF
38114
38115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38116fi
38117
38118if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
38119 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38120 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
38121echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
38122 else
38123 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38124#define wxUSE_EXCEPTIONS 1
38125_ACEOF
38126
07bea8f0
VS
38127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
38128 fi
a848cd7e
SC
38129fi
38130
38131USE_HTML=0
38132if test "$wxUSE_HTML" = "yes"; then
38133 cat >>confdefs.h <<\_ACEOF
38134#define wxUSE_HTML 1
38135_ACEOF
38136
38137 USE_HTML=1
38138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38139 if test "$wxUSE_MAC" = 1; then
38140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38141 fi
a848cd7e 38142fi
646b6ec1 38143if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 38144 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
38145 old_CPPFLAGS="$CPPFLAGS"
38146 CPPFLAGS="$CPPFLAGS -x objective-c++"
38147 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
38148echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
38149if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
38150 echo $ECHO_N "(cached) $ECHO_C" >&6
38151else
38152 cat >conftest.$ac_ext <<_ACEOF
38153/* confdefs.h. */
38154_ACEOF
38155cat confdefs.h >>conftest.$ac_ext
38156cat >>conftest.$ac_ext <<_ACEOF
38157/* end confdefs.h. */
38158#include <Carbon/Carbon.h>
38159
38160#include <WebKit/HIWebView.h>
38161_ACEOF
38162rm -f conftest.$ac_objext
38163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38164 (eval $ac_compile) 2>conftest.er1
38165 ac_status=$?
38166 grep -v '^ *+' conftest.er1 >conftest.err
38167 rm -f conftest.er1
38168 cat conftest.err >&5
38169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170 (exit $ac_status); } &&
89be85c2
VS
38171 { ac_try='test -z "$ac_c_werror_flag"
38172 || test ! -s conftest.err'
07bea8f0
VS
38173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38174 (eval $ac_try) 2>&5
38175 ac_status=$?
38176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177 (exit $ac_status); }; } &&
38178 { ac_try='test -s conftest.$ac_objext'
38179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38180 (eval $ac_try) 2>&5
38181 ac_status=$?
38182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38183 (exit $ac_status); }; }; then
38184 ac_cv_header_WebKit_HIWebView_h=yes
38185else
38186 echo "$as_me: failed program was:" >&5
38187sed 's/^/| /' conftest.$ac_ext >&5
38188
38189ac_cv_header_WebKit_HIWebView_h=no
38190fi
38191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38192fi
38193echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
38194echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
38195if test $ac_cv_header_WebKit_HIWebView_h = yes; then
38196
38197 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
38198#define wxUSE_WEBKIT 1
38199_ACEOF
38200
07bea8f0
VS
38201 WEBKIT_LINK="-framework WebKit"
38202
38203else
38204
38205 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38206echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38207 wxUSE_WEBKIT=no
38208
646b6ec1
VS
38209fi
38210
07bea8f0
VS
38211
38212 CPPFLAGS="$old_CPPFLAGS"
38213 elif test "$wxUSE_COCOA" = 1; then
38214 cat >>confdefs.h <<\_ACEOF
38215#define wxUSE_WEBKIT 1
38216_ACEOF
38217
38218 else
38219 wxUSE_WEBKIT=no
38220 fi
38221fi
38222
9a8f0513
VS
38223USE_XRC=0
38224if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
38225 if test "$wxUSE_XML" != "yes"; then
38226 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38227echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38228 wxUSE_XRC=no
38229 else
38230 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
38231#define wxUSE_XRC 1
38232_ACEOF
38233
d2ebf0b7
VS
38234 USE_XRC=1
38235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38236 fi
9a8f0513 38237fi
07bea8f0 38238
a848cd7e
SC
38239if test "$wxUSE_MENUS" = "yes"; then
38240 cat >>confdefs.h <<\_ACEOF
38241#define wxUSE_MENUS 1
38242_ACEOF
38243
38244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38245fi
38246
38247if test "$wxUSE_METAFILE" = "yes"; then
38248 cat >>confdefs.h <<\_ACEOF
38249#define wxUSE_METAFILE 1
38250_ACEOF
38251
38252fi
38253
38254if test "$wxUSE_MIMETYPE" = "yes"; then
38255 cat >>confdefs.h <<\_ACEOF
38256#define wxUSE_MIMETYPE 1
38257_ACEOF
38258
38259fi
38260
38261if test "$wxUSE_MINIFRAME" = "yes"; then
38262 cat >>confdefs.h <<\_ACEOF
38263#define wxUSE_MINIFRAME 1
38264_ACEOF
38265
38266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38267fi
38268
38269if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38270 cat >>confdefs.h <<\_ACEOF
38271#define wxUSE_SYSTEM_OPTIONS 1
38272_ACEOF
38273
38274 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38275 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38277 fi
38278fi
38279
38280
38281if test "$wxUSE_VALIDATORS" = "yes"; then
38282 cat >>confdefs.h <<\_ACEOF
38283#define wxUSE_VALIDATORS 1
38284_ACEOF
38285
38286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38287fi
38288
38289if test "$wxUSE_PALETTE" = "yes" ; then
38290 cat >>confdefs.h <<\_ACEOF
38291#define wxUSE_PALETTE 1
38292_ACEOF
38293
38294fi
38295
38296if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38297 LIBS=" -lunicows $LIBS"
38298fi
38299
38300
38301if test "$wxUSE_IMAGE" = "yes" ; then
38302 cat >>confdefs.h <<\_ACEOF
38303#define wxUSE_IMAGE 1
38304_ACEOF
38305
38306
38307 if test "$wxUSE_GIF" = "yes" ; then
38308 cat >>confdefs.h <<\_ACEOF
38309#define wxUSE_GIF 1
38310_ACEOF
38311
38312 fi
38313
38314 if test "$wxUSE_PCX" = "yes" ; then
38315 cat >>confdefs.h <<\_ACEOF
38316#define wxUSE_PCX 1
38317_ACEOF
38318
38319 fi
38320
38321 if test "$wxUSE_IFF" = "yes" ; then
38322 cat >>confdefs.h <<\_ACEOF
38323#define wxUSE_IFF 1
38324_ACEOF
38325
38326 fi
38327
38328 if test "$wxUSE_PNM" = "yes" ; then
38329 cat >>confdefs.h <<\_ACEOF
38330#define wxUSE_PNM 1
38331_ACEOF
38332
38333 fi
38334
38335 if test "$wxUSE_XPM" = "yes" ; then
38336 cat >>confdefs.h <<\_ACEOF
38337#define wxUSE_XPM 1
38338_ACEOF
38339
38340 fi
38341
38342 if test "$wxUSE_ICO_CUR" = "yes" ; then
38343 cat >>confdefs.h <<\_ACEOF
38344#define wxUSE_ICO_CUR 1
38345_ACEOF
38346
38347 fi
38348fi
38349
38350
38351if test "$wxUSE_CHOICEDLG" = "yes"; then
38352 cat >>confdefs.h <<\_ACEOF
38353#define wxUSE_CHOICEDLG 1
38354_ACEOF
38355
38356fi
38357
38358if test "$wxUSE_COLOURDLG" = "yes"; then
38359 cat >>confdefs.h <<\_ACEOF
38360#define wxUSE_COLOURDLG 1
38361_ACEOF
38362
38363fi
38364
38365if test "$wxUSE_FILEDLG" = "yes"; then
38366 cat >>confdefs.h <<\_ACEOF
38367#define wxUSE_FILEDLG 1
38368_ACEOF
38369
38370fi
38371
38372if test "$wxUSE_FINDREPLDLG" = "yes"; then
38373 cat >>confdefs.h <<\_ACEOF
38374#define wxUSE_FINDREPLDLG 1
38375_ACEOF
38376
38377fi
38378
38379if test "$wxUSE_FONTDLG" = "yes"; then
38380 cat >>confdefs.h <<\_ACEOF
38381#define wxUSE_FONTDLG 1
38382_ACEOF
38383
38384fi
38385
38386if test "$wxUSE_DIRDLG" = "yes"; then
38387 if test "$wxUSE_TREECTRL" != "yes"; then
38388 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38389echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38390 else
38391 cat >>confdefs.h <<\_ACEOF
38392#define wxUSE_DIRDLG 1
38393_ACEOF
38394
38395 fi
38396fi
38397
38398if test "$wxUSE_MSGDLG" = "yes"; then
38399 cat >>confdefs.h <<\_ACEOF
38400#define wxUSE_MSGDLG 1
38401_ACEOF
38402
38403fi
38404
38405if test "$wxUSE_NUMBERDLG" = "yes"; then
38406 cat >>confdefs.h <<\_ACEOF
38407#define wxUSE_NUMBERDLG 1
38408_ACEOF
38409
38410fi
38411
38412if test "$wxUSE_PROGRESSDLG" = "yes"; then
38413 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38414 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38415echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38416 else
38417 cat >>confdefs.h <<\_ACEOF
38418#define wxUSE_PROGRESSDLG 1
38419_ACEOF
38420
38421 fi
38422fi
38423
38424if test "$wxUSE_SPLASH" = "yes"; then
38425 cat >>confdefs.h <<\_ACEOF
38426#define wxUSE_SPLASH 1
38427_ACEOF
38428
2057db16 38429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38430fi
38431
38432if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38433 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38434 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38435echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38436 else
38437 cat >>confdefs.h <<\_ACEOF
38438#define wxUSE_STARTUP_TIPS 1
38439_ACEOF
38440
38441 fi
38442fi
38443
38444if test "$wxUSE_TEXTDLG" = "yes"; then
38445 cat >>confdefs.h <<\_ACEOF
38446#define wxUSE_TEXTDLG 1
38447_ACEOF
38448
38449fi
38450
38451if test "$wxUSE_WIZARDDLG" = "yes"; then
38452 cat >>confdefs.h <<\_ACEOF
38453#define wxUSE_WIZARDDLG 1
38454_ACEOF
38455
38456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38457fi
38458
38459
ce756cb0
RN
38460if test "$wxUSE_MEDIACTRL" = "yes"; then
38461 if test "$wxUSE_MSW" = 1; then
38462 wxUSE_DIRECTSHOW="yes"
38463
38464for ac_header in dshow.h
38465do
38466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38467echo "$as_me:$LINENO: checking for $ac_header" >&5
38468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38469if eval "test \"\${$as_ac_Header+set}\" = set"; then
38470 echo $ECHO_N "(cached) $ECHO_C" >&6
38471else
38472 cat >conftest.$ac_ext <<_ACEOF
38473/* confdefs.h. */
38474_ACEOF
38475cat confdefs.h >>conftest.$ac_ext
38476cat >>conftest.$ac_ext <<_ACEOF
38477/* end confdefs.h. */
38478#include <windows.h>
38479
38480#include <$ac_header>
38481_ACEOF
38482rm -f conftest.$ac_objext
38483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38484 (eval $ac_compile) 2>conftest.er1
38485 ac_status=$?
38486 grep -v '^ *+' conftest.er1 >conftest.err
38487 rm -f conftest.er1
38488 cat conftest.err >&5
38489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38490 (exit $ac_status); } &&
38491 { ac_try='test -z "$ac_c_werror_flag"
38492 || test ! -s conftest.err'
38493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38494 (eval $ac_try) 2>&5
38495 ac_status=$?
38496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38497 (exit $ac_status); }; } &&
38498 { ac_try='test -s conftest.$ac_objext'
38499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38500 (eval $ac_try) 2>&5
38501 ac_status=$?
38502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38503 (exit $ac_status); }; }; then
38504 eval "$as_ac_Header=yes"
38505else
38506 echo "$as_me: failed program was:" >&5
38507sed 's/^/| /' conftest.$ac_ext >&5
38508
38509eval "$as_ac_Header=no"
38510fi
38511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38512fi
38513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38515if test `eval echo '${'$as_ac_Header'}'` = yes; then
38516 cat >>confdefs.h <<_ACEOF
38517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38518_ACEOF
38519
38520else
38521
38522 wxUSE_DIRECTSHOW="no"
38523 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
38524echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
38525
38526fi
38527
38528done
38529
38530
38531 if test "$wxUSE_DIRECTSHOW" = "yes"; then
38532 cat >>confdefs.h <<\_ACEOF
38533#define wxUSE_DIRECTSHOW 1
38534_ACEOF
38535
38536 LIBS="$LIBS -lstrmiids"
38537 fi
38538 fi
38539
38540 if test "$wxUSE_GTK" = 1; then
38541 wxUSE_GSTREAMER="yes"
38542
ce756cb0 38543
dae87f93 38544 succeeded=no
ce756cb0 38545
dae87f93
RN
38546 if test -z "$PKG_CONFIG"; then
38547 # Extract the first word of "pkg-config", so it can be a program name with args.
38548set dummy pkg-config; ac_word=$2
38549echo "$as_me:$LINENO: checking for $ac_word" >&5
38550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38551if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38552 echo $ECHO_N "(cached) $ECHO_C" >&6
38553else
38554 case $PKG_CONFIG in
38555 [\\/]* | ?:[\\/]*)
38556 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38557 ;;
38558 *)
38559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38560for as_dir in $PATH
38561do
38562 IFS=$as_save_IFS
38563 test -z "$as_dir" && as_dir=.
38564 for ac_exec_ext in '' $ac_executable_extensions; do
38565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38566 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38568 break 2
38569 fi
38570done
38571done
38572
38573 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38574 ;;
38575esac
38576fi
38577PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38578
38579if test -n "$PKG_CONFIG"; then
38580 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
38581echo "${ECHO_T}$PKG_CONFIG" >&6
38582else
38583 echo "$as_me:$LINENO: result: no" >&5
38584echo "${ECHO_T}no" >&6
38585fi
38586
38587 fi
38588
38589 if test "$PKG_CONFIG" = "no" ; then
38590 echo "*** The pkg-config script could not be found. Make sure it is"
38591 echo "*** in your path, or set the PKG_CONFIG environment variable"
38592 echo "*** to the full path to pkg-config."
38593 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
38594 else
38595 PKG_CONFIG_MIN_VERSION=0.9.0
38596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
38597 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
38598echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
38599
38600 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
38601 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 38602echo "${ECHO_T}yes" >&6
dae87f93 38603 succeeded=yes
ce756cb0 38604
dae87f93
RN
38605 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
38606echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
38607 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
38608 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
38609echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
38610
38611 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
38612echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
38613 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
38614 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
38615echo "${ECHO_T}$GSTREAMER_LIBS" >&6
38616 else
38617 GSTREAMER_CFLAGS=""
38618 GSTREAMER_LIBS=""
38619 ## If we have a custom action on failure, don't print errors, but
38620 ## do set a variable so people can do so.
38621 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 38622
dae87f93
RN
38623 fi
38624
38625
38626
38627 else
38628 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
38629 echo "*** See http://www.freedesktop.org/software/pkgconfig"
38630 fi
38631 fi
38632
38633 if test $succeeded = yes; then
38634
38635 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
38636 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 38637
ce756cb0 38638 else
dae87f93
RN
38639
38640 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
38641echo "$as_me: WARNING: GStreamer installation not found" >&2;}
38642 wxUSE_GSTREAMER="no"
38643
38644 fi
38645
38646
38647
38648
38649
38650 if test "x$GST_INSPECT" == "x"; then
38651 # Extract the first word of "gst-inspect", so it can be a program name with args.
38652set dummy gst-inspect; ac_word=$2
38653echo "$as_me:$LINENO: checking for $ac_word" >&5
38654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38655if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
38656 echo $ECHO_N "(cached) $ECHO_C" >&6
38657else
38658 if test -n "$GST_INSPECT"; then
38659 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
38660else
38661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38662for as_dir in $PATH
38663do
38664 IFS=$as_save_IFS
38665 test -z "$as_dir" && as_dir=.
38666 for ac_exec_ext in '' $ac_executable_extensions; do
38667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38668 ac_cv_prog_GST_INSPECT="gst-inspect"
38669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38670 break 2
ce756cb0 38671 fi
dae87f93
RN
38672done
38673done
38674
38675fi
38676fi
38677GST_INSPECT=$ac_cv_prog_GST_INSPECT
38678if test -n "$GST_INSPECT"; then
38679 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
38680echo "${ECHO_T}$GST_INSPECT" >&6
38681else
38682 echo "$as_me:$LINENO: result: no" >&5
38683echo "${ECHO_T}no" >&6
38684fi
38685
38686 fi
38687
38688 if test "x$GST_INSPECT" != "x"; then
38689 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
38690echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
38691 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
38692 echo "$as_me:$LINENO: result: found." >&5
38693echo "${ECHO_T}found." >&6
ce756cb0 38694
ce756cb0 38695 else
dae87f93
RN
38696 echo "$as_me:$LINENO: result: not found." >&5
38697echo "${ECHO_T}not found." >&6
38698
38699 wxUSE_GSTREAMER="no"
38700 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
38701echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
38702
38703 fi
38704 fi
38705
38706
38707 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
38708echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
38709if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
38710 echo $ECHO_N "(cached) $ECHO_C" >&6
38711else
38712 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
38713/* confdefs.h. */
38714_ACEOF
38715cat confdefs.h >>conftest.$ac_ext
38716cat >>conftest.$ac_ext <<_ACEOF
38717/* end confdefs.h. */
dae87f93 38718#include <gst/gst.h>
ce756cb0 38719
dae87f93 38720#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
38721_ACEOF
38722rm -f conftest.$ac_objext
38723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38724 (eval $ac_compile) 2>conftest.er1
38725 ac_status=$?
38726 grep -v '^ *+' conftest.er1 >conftest.err
38727 rm -f conftest.er1
38728 cat conftest.err >&5
38729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730 (exit $ac_status); } &&
38731 { ac_try='test -z "$ac_c_werror_flag"
38732 || test ! -s conftest.err'
38733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38734 (eval $ac_try) 2>&5
38735 ac_status=$?
38736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38737 (exit $ac_status); }; } &&
38738 { ac_try='test -s conftest.$ac_objext'
38739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38740 (eval $ac_try) 2>&5
38741 ac_status=$?
38742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743 (exit $ac_status); }; }; then
dae87f93 38744 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
38745else
38746 echo "$as_me: failed program was:" >&5
38747sed 's/^/| /' conftest.$ac_ext >&5
38748
dae87f93 38749ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
38750fi
38751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
38752fi
38753echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
38754echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
38755if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
38756 :
38757else
ce756cb0 38758
dae87f93
RN
38759 wxUSE_GSTREAMER="no"
38760 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
38761echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 38762
dae87f93 38763fi
ce756cb0 38764
dae87f93
RN
38765
38766
38767 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
38768echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
38769
38770ac_find_libraries=
38771for ac_dir in $SEARCH_LIB /usr/lib;
38772 do
38773 for ac_extension in a so sl dylib; do
38774 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
38775 ac_find_libraries=$ac_dir
38776 break 2
38777 fi
38778 done
38779 done
38780
ce756cb0 38781
dae87f93
RN
38782 if test "$ac_find_libraries" = "" ; then
38783 echo "$as_me:$LINENO: result: no" >&5
38784echo "${ECHO_T}no" >&6
38785 wxUSE_GSTREAMER="no"
38786 else
38787 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 38788echo "${ECHO_T}yes" >&6
dae87f93 38789 fi
ce756cb0 38790
dae87f93
RN
38791 if test "$wxUSE_GSTREAMER" = "yes"; then
38792 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
38793#define wxUSE_GSTREAMER 1
38794_ACEOF
38795
dae87f93
RN
38796 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
38797echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
38798 fi
38799 fi
38800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
38801 cat >>confdefs.h <<\_ACEOF
38802#define wxUSE_MEDIACTRL 1
38803_ACEOF
38804
38805fi
38806
38807
a848cd7e
SC
38808if test "$cross_compiling" = "yes"; then
38809 OSINFO="\"$host\""
38810else
38811 OSINFO=`uname -s -r -m`
38812 OSINFO="\"$OSINFO\""
38813fi
38814
38815cat >>confdefs.h <<_ACEOF
38816#define WXWIN_OS_DESCRIPTION $OSINFO
38817_ACEOF
38818
38819
38820
38821if test "x$prefix" != "xNONE"; then
38822 wxPREFIX=$prefix
38823else
38824 wxPREFIX=$ac_default_prefix
38825fi
38826
38827cat >>confdefs.h <<_ACEOF
38828#define wxINSTALL_PREFIX "$wxPREFIX"
38829_ACEOF
38830
38831
a848cd7e
SC
38832
38833
38834CORE_BASE_LIBS="net base"
38835CORE_GUI_LIBS="adv core"
38836
38837if test "$wxUSE_XML" = "yes" ; then
38838 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38839fi
38840if test "$wxUSE_ODBC" != "no" ; then
38841 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38842 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38843fi
38844if test "$wxUSE_HTML" = "yes" ; then
38845 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38846fi
9a8f0513
VS
38847if test "$wxUSE_XRC" = "yes" ; then
38848 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
38849fi
a848cd7e
SC
38850
38851if test "$wxUSE_GUI" != "yes"; then
38852 CORE_GUI_LIBS=""
38853fi
38854
38855
38856
38857
38858
38859
38860
38861
38862if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 38863 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
38864 if test "$USE_DARWIN" = 1; then
38865 LDFLAGS="$LDFLAGS -framework QuickTime"
38866 else
38867 LDFLAGS="$LDFLAGS -lQuickTimeLib"
38868 fi
07bea8f0 38869 fi
5dcf30a0 38870 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
38871 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
38872 else
38873 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 38874 fi
a848cd7e
SC
38875fi
38876if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 38877 LDFLAGS="$LDFLAGS -framework Cocoa"
4fc81cbc
RN
38878 if test "$wxUSE_MEDIACTRL" = "yes"; then
38879 LDFLAGS="$LDFLAGS -framework QuickTime"
38880 fi
a848cd7e
SC
38881fi
38882
38883
38884LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38885
38886have_cos=0
38887have_floor=0
38888
38889for ac_func in cos
38890do
38891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38892echo "$as_me:$LINENO: checking for $ac_func" >&5
38893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38894if eval "test \"\${$as_ac_var+set}\" = set"; then
38895 echo $ECHO_N "(cached) $ECHO_C" >&6
38896else
38897 cat >conftest.$ac_ext <<_ACEOF
38898/* confdefs.h. */
38899_ACEOF
38900cat confdefs.h >>conftest.$ac_ext
38901cat >>conftest.$ac_ext <<_ACEOF
38902/* end confdefs.h. */
ac1cb8d3
VS
38903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38905#define $ac_func innocuous_$ac_func
38906
a848cd7e
SC
38907/* System header to define __stub macros and hopefully few prototypes,
38908 which can conflict with char $ac_func (); below.
38909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38910 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38911
a848cd7e
SC
38912#ifdef __STDC__
38913# include <limits.h>
38914#else
38915# include <assert.h>
38916#endif
ac1cb8d3
VS
38917
38918#undef $ac_func
38919
a848cd7e
SC
38920/* Override any gcc2 internal prototype to avoid an error. */
38921#ifdef __cplusplus
38922extern "C"
38923{
38924#endif
38925/* We use char because int might match the return type of a gcc2
38926 builtin and then its argument prototype would still apply. */
38927char $ac_func ();
38928/* The GNU C library defines this for functions which it implements
38929 to always fail with ENOSYS. Some functions are actually named
38930 something starting with __ and the normal name is an alias. */
38931#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38932choke me
38933#else
38934char (*f) () = $ac_func;
38935#endif
38936#ifdef __cplusplus
38937}
38938#endif
38939
38940int
38941main ()
38942{
38943return f != $ac_func;
38944 ;
38945 return 0;
38946}
38947_ACEOF
38948rm -f conftest.$ac_objext conftest$ac_exeext
38949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38950 (eval $ac_link) 2>conftest.er1
a848cd7e 38951 ac_status=$?
ac1cb8d3
VS
38952 grep -v '^ *+' conftest.er1 >conftest.err
38953 rm -f conftest.er1
38954 cat conftest.err >&5
a848cd7e
SC
38955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38956 (exit $ac_status); } &&
89be85c2
VS
38957 { ac_try='test -z "$ac_c_werror_flag"
38958 || test ! -s conftest.err'
ac1cb8d3
VS
38959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38960 (eval $ac_try) 2>&5
38961 ac_status=$?
38962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963 (exit $ac_status); }; } &&
38964 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38966 (eval $ac_try) 2>&5
38967 ac_status=$?
38968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969 (exit $ac_status); }; }; then
38970 eval "$as_ac_var=yes"
38971else
38972 echo "$as_me: failed program was:" >&5
38973sed 's/^/| /' conftest.$ac_ext >&5
38974
38975eval "$as_ac_var=no"
38976fi
ac1cb8d3
VS
38977rm -f conftest.err conftest.$ac_objext \
38978 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38979fi
38980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38981echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38982if test `eval echo '${'$as_ac_var'}'` = yes; then
38983 cat >>confdefs.h <<_ACEOF
38984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38985_ACEOF
38986 have_cos=1
38987fi
38988done
38989
38990
38991for ac_func in floor
38992do
38993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38994echo "$as_me:$LINENO: checking for $ac_func" >&5
38995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38996if eval "test \"\${$as_ac_var+set}\" = set"; then
38997 echo $ECHO_N "(cached) $ECHO_C" >&6
38998else
38999 cat >conftest.$ac_ext <<_ACEOF
39000/* confdefs.h. */
39001_ACEOF
39002cat confdefs.h >>conftest.$ac_ext
39003cat >>conftest.$ac_ext <<_ACEOF
39004/* end confdefs.h. */
ac1cb8d3
VS
39005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39007#define $ac_func innocuous_$ac_func
39008
a848cd7e
SC
39009/* System header to define __stub macros and hopefully few prototypes,
39010 which can conflict with char $ac_func (); below.
39011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39012 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39013
a848cd7e
SC
39014#ifdef __STDC__
39015# include <limits.h>
39016#else
39017# include <assert.h>
39018#endif
ac1cb8d3
VS
39019
39020#undef $ac_func
39021
a848cd7e
SC
39022/* Override any gcc2 internal prototype to avoid an error. */
39023#ifdef __cplusplus
39024extern "C"
39025{
39026#endif
39027/* We use char because int might match the return type of a gcc2
39028 builtin and then its argument prototype would still apply. */
39029char $ac_func ();
39030/* The GNU C library defines this for functions which it implements
39031 to always fail with ENOSYS. Some functions are actually named
39032 something starting with __ and the normal name is an alias. */
39033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39034choke me
39035#else
39036char (*f) () = $ac_func;
39037#endif
39038#ifdef __cplusplus
39039}
39040#endif
39041
39042int
39043main ()
39044{
39045return f != $ac_func;
39046 ;
39047 return 0;
39048}
39049_ACEOF
39050rm -f conftest.$ac_objext conftest$ac_exeext
39051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39052 (eval $ac_link) 2>conftest.er1
a848cd7e 39053 ac_status=$?
ac1cb8d3
VS
39054 grep -v '^ *+' conftest.er1 >conftest.err
39055 rm -f conftest.er1
39056 cat conftest.err >&5
a848cd7e
SC
39057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058 (exit $ac_status); } &&
89be85c2
VS
39059 { ac_try='test -z "$ac_c_werror_flag"
39060 || test ! -s conftest.err'
ac1cb8d3
VS
39061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39062 (eval $ac_try) 2>&5
39063 ac_status=$?
39064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); }; } &&
39066 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39068 (eval $ac_try) 2>&5
39069 ac_status=$?
39070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071 (exit $ac_status); }; }; then
39072 eval "$as_ac_var=yes"
39073else
39074 echo "$as_me: failed program was:" >&5
39075sed 's/^/| /' conftest.$ac_ext >&5
39076
39077eval "$as_ac_var=no"
39078fi
ac1cb8d3
VS
39079rm -f conftest.err conftest.$ac_objext \
39080 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39081fi
39082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39084if test `eval echo '${'$as_ac_var'}'` = yes; then
39085 cat >>confdefs.h <<_ACEOF
39086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39087_ACEOF
39088 have_floor=1
39089fi
39090done
39091
39092echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
39093echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
39094if test "$have_cos" = 1 -a "$have_floor" = 1; then
39095 echo "$as_me:$LINENO: result: yes" >&5
39096echo "${ECHO_T}yes" >&6
39097else
39098 echo "$as_me:$LINENO: result: no" >&5
39099echo "${ECHO_T}no" >&6
39100 LIBS="$LIBS -lm"
39101 # use different functions to avoid configure caching
39102 have_sin=0
39103 have_ceil=0
39104
39105for ac_func in sin
39106do
39107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39108echo "$as_me:$LINENO: checking for $ac_func" >&5
39109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39110if eval "test \"\${$as_ac_var+set}\" = set"; then
39111 echo $ECHO_N "(cached) $ECHO_C" >&6
39112else
39113 cat >conftest.$ac_ext <<_ACEOF
39114/* confdefs.h. */
39115_ACEOF
39116cat confdefs.h >>conftest.$ac_ext
39117cat >>conftest.$ac_ext <<_ACEOF
39118/* end confdefs.h. */
ac1cb8d3
VS
39119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39121#define $ac_func innocuous_$ac_func
39122
a848cd7e
SC
39123/* System header to define __stub macros and hopefully few prototypes,
39124 which can conflict with char $ac_func (); below.
39125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39126 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39127
a848cd7e
SC
39128#ifdef __STDC__
39129# include <limits.h>
39130#else
39131# include <assert.h>
39132#endif
ac1cb8d3
VS
39133
39134#undef $ac_func
39135
a848cd7e
SC
39136/* Override any gcc2 internal prototype to avoid an error. */
39137#ifdef __cplusplus
39138extern "C"
39139{
39140#endif
39141/* We use char because int might match the return type of a gcc2
39142 builtin and then its argument prototype would still apply. */
39143char $ac_func ();
39144/* The GNU C library defines this for functions which it implements
39145 to always fail with ENOSYS. Some functions are actually named
39146 something starting with __ and the normal name is an alias. */
39147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39148choke me
39149#else
39150char (*f) () = $ac_func;
39151#endif
39152#ifdef __cplusplus
39153}
39154#endif
39155
39156int
39157main ()
39158{
39159return f != $ac_func;
39160 ;
39161 return 0;
39162}
39163_ACEOF
39164rm -f conftest.$ac_objext conftest$ac_exeext
39165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39166 (eval $ac_link) 2>conftest.er1
a848cd7e 39167 ac_status=$?
ac1cb8d3
VS
39168 grep -v '^ *+' conftest.er1 >conftest.err
39169 rm -f conftest.er1
39170 cat conftest.err >&5
a848cd7e
SC
39171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); } &&
89be85c2
VS
39173 { ac_try='test -z "$ac_c_werror_flag"
39174 || test ! -s conftest.err'
ac1cb8d3
VS
39175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39176 (eval $ac_try) 2>&5
39177 ac_status=$?
39178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179 (exit $ac_status); }; } &&
39180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39182 (eval $ac_try) 2>&5
39183 ac_status=$?
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); }; }; then
39186 eval "$as_ac_var=yes"
39187else
39188 echo "$as_me: failed program was:" >&5
39189sed 's/^/| /' conftest.$ac_ext >&5
39190
39191eval "$as_ac_var=no"
39192fi
ac1cb8d3
VS
39193rm -f conftest.err conftest.$ac_objext \
39194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39195fi
39196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39197echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39198if test `eval echo '${'$as_ac_var'}'` = yes; then
39199 cat >>confdefs.h <<_ACEOF
39200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39201_ACEOF
39202 have_sin=1
39203fi
39204done
39205
39206
39207for ac_func in ceil
39208do
39209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39210echo "$as_me:$LINENO: checking for $ac_func" >&5
39211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39212if eval "test \"\${$as_ac_var+set}\" = set"; then
39213 echo $ECHO_N "(cached) $ECHO_C" >&6
39214else
39215 cat >conftest.$ac_ext <<_ACEOF
39216/* confdefs.h. */
39217_ACEOF
39218cat confdefs.h >>conftest.$ac_ext
39219cat >>conftest.$ac_ext <<_ACEOF
39220/* end confdefs.h. */
ac1cb8d3
VS
39221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39223#define $ac_func innocuous_$ac_func
39224
a848cd7e
SC
39225/* System header to define __stub macros and hopefully few prototypes,
39226 which can conflict with char $ac_func (); below.
39227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39228 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39229
a848cd7e
SC
39230#ifdef __STDC__
39231# include <limits.h>
39232#else
39233# include <assert.h>
39234#endif
ac1cb8d3
VS
39235
39236#undef $ac_func
39237
a848cd7e
SC
39238/* Override any gcc2 internal prototype to avoid an error. */
39239#ifdef __cplusplus
39240extern "C"
39241{
39242#endif
39243/* We use char because int might match the return type of a gcc2
39244 builtin and then its argument prototype would still apply. */
39245char $ac_func ();
39246/* The GNU C library defines this for functions which it implements
39247 to always fail with ENOSYS. Some functions are actually named
39248 something starting with __ and the normal name is an alias. */
39249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39250choke me
39251#else
39252char (*f) () = $ac_func;
39253#endif
39254#ifdef __cplusplus
39255}
39256#endif
39257
39258int
39259main ()
39260{
39261return f != $ac_func;
39262 ;
39263 return 0;
39264}
39265_ACEOF
39266rm -f conftest.$ac_objext conftest$ac_exeext
39267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39268 (eval $ac_link) 2>conftest.er1
a848cd7e 39269 ac_status=$?
ac1cb8d3
VS
39270 grep -v '^ *+' conftest.er1 >conftest.err
39271 rm -f conftest.er1
39272 cat conftest.err >&5
a848cd7e
SC
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); } &&
89be85c2
VS
39275 { ac_try='test -z "$ac_c_werror_flag"
39276 || test ! -s conftest.err'
ac1cb8d3
VS
39277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39278 (eval $ac_try) 2>&5
39279 ac_status=$?
39280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39281 (exit $ac_status); }; } &&
39282 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39284 (eval $ac_try) 2>&5
39285 ac_status=$?
39286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287 (exit $ac_status); }; }; then
39288 eval "$as_ac_var=yes"
39289else
39290 echo "$as_me: failed program was:" >&5
39291sed 's/^/| /' conftest.$ac_ext >&5
39292
39293eval "$as_ac_var=no"
39294fi
ac1cb8d3
VS
39295rm -f conftest.err conftest.$ac_objext \
39296 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39297fi
39298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39299echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39300if test `eval echo '${'$as_ac_var'}'` = yes; then
39301 cat >>confdefs.h <<_ACEOF
39302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39303_ACEOF
39304 have_ceil=1
39305fi
39306done
39307
39308 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
39309echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
39310 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
39311 echo "$as_me:$LINENO: result: yes" >&5
39312echo "${ECHO_T}yes" >&6
39313 else
39314 echo "$as_me:$LINENO: result: no" >&5
39315echo "${ECHO_T}no" >&6
39316 # not sure we should warn the user, crash, etc.
39317 fi
39318fi
39319
39320if test "$wxUSE_GUI" = "yes"; then
39321
39322
39323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
39324 drawing dynamic erase event exec font image \
39325 minimal propsize rotate shaped widgets render"
39326
39327 if test "$wxUSE_MONOLITHIC" != "yes"; then
39328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
39329 fi
39330else
39331 SAMPLES_SUBDIRS="console"
39332fi
39333
39334
ceec2216 39335INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
39336-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
39337
39338if test "$GXX" = yes ; then
5294a27e
VZ
39339 CWARNINGS="-Wall"
39340 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
39341 fi
39342
39343EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
39344
0c3c69fc 39345CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 39346CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 39347CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 39348
95986553
DE
39349if test "x$MWCC" = "xyes"; then
39350
39351 CC="$CC -cwd source -I-"
39352 CXX="$CXX -cwd source -I-"
39353fi
39354
a848cd7e 39355
0c3c69fc 39356LIBS=`echo $LIBS`
a848cd7e
SC
39357EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
39358EXTRALIBS_XML="$EXPAT_LINK"
39359EXTRALIBS_HTML="$MSPACK_LINK"
39360EXTRALIBS_ODBC="$ODBC_LINK"
39361if test "$wxUSE_GUI" = "yes"; then
2e350179 39362 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
39363fi
39364if test "$wxUSE_OPENGL" = "yes"; then
39365 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
39366fi
39367
39368LDFLAGS="$LDFLAGS $PROFILE"
39369
39370if test "$wxUSE_GTK" = 1; then
39371 WXCONFIG_INCLUDE=
39372else
39373 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
39374fi
39375
39376WXCONFIG_EXTRALIBS="$LIBS"
39377
39378if test "$wxUSE_REGEX" = "builtin" ; then
39379 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
39380fi
39381if test "$wxUSE_EXPAT" = "builtin" ; then
39382 wxconfig_3rdparty="$wxconfig_3rdparty expat"
39383fi
39384if test "$wxUSE_ODBC" = "builtin" ; then
39385 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39386fi
39387if test "$wxUSE_LIBTIFF" = "builtin" ; then
39388 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
39389fi
39390if test "$wxUSE_LIBJPEG" = "builtin" ; then
39391 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
39392fi
39393if test "$wxUSE_LIBPNG" = "builtin" ; then
39394 wxconfig_3rdparty="$wxconfig_3rdparty png"
39395fi
39396if test "$wxUSE_ZLIB" = "builtin" ; then
39397 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
39398fi
39399if test "$wxUSE_ODBC" = "builtin" ; then
39400 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39401fi
39402
39403for i in $wxconfig_3rdparty ; do
ceec2216 39404 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
39405done
39406
39407
39408if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
39409 WXUNIV=1
39410else
39411 WXUNIV=0
39412fi
39413
39414
39415
39416
39417
39418
39419
39420
39421
39422if test $wxUSE_MONOLITHIC = "yes" ; then
39423 MONOLITHIC=1
39424else
39425 MONOLITHIC=0
39426fi
39427
39428if test $wxUSE_PLUGINS = "yes" ; then
39429 USE_PLUGINS=1
39430else
39431 USE_PLUGINS=0
39432fi
39433
39434if test $wxUSE_ODBC != "no" ; then
39435 USE_ODBC=1
39436else
39437 USE_ODBC=0
39438fi
39439
39440if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
39441 OFFICIAL_BUILD=1
39442else
39443 OFFICIAL_BUILD=0
39444fi
39445
39446
39447
39448
39449
39450
39451
39452
39453
39454
39455
39456
39457
39458
39459
39460
39461
39462
39463
ceec2216 39464
d1c38808 39465
a848cd7e
SC
39466
39467
39468TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
39469
39470
39471
39472
39473
39474
39475
39476
4d4ff94c
VZ
39477case "$TOOLKIT" in
39478 GTK)
39479 TOOLKIT_USER="GTK+"
39480 if test "$WXGTK20" = 1; then
39481 TOOLKIT_USER="$TOOLKIT_USER 2"
39482 fi
9a8f0513 39483 ;;
4d4ff94c
VZ
39484
39485 *)
39486 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 39487 ;;
4d4ff94c 39488esac
a848cd7e 39489
9a8f0513 39490
1e9e8aba
DE
39491
39492
a848cd7e
SC
39493 if test "x$BAKEFILE_HOST" = "x"; then
39494 BAKEFILE_HOST="${host}"
39495 fi
39496
39497 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
39498
39499 if test -n "$ac_tool_prefix"; then
39500 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
39501set dummy ${ac_tool_prefix}ranlib; ac_word=$2
39502echo "$as_me:$LINENO: checking for $ac_word" >&5
39503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39504if test "${ac_cv_prog_RANLIB+set}" = set; then
39505 echo $ECHO_N "(cached) $ECHO_C" >&6
39506else
39507 if test -n "$RANLIB"; then
39508 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
39509else
39510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39511for as_dir in $PATH
39512do
39513 IFS=$as_save_IFS
39514 test -z "$as_dir" && as_dir=.
39515 for ac_exec_ext in '' $ac_executable_extensions; do
39516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39517 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
39518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39519 break 2
39520 fi
39521done
39522done
39523
39524fi
39525fi
39526RANLIB=$ac_cv_prog_RANLIB
39527if test -n "$RANLIB"; then
39528 echo "$as_me:$LINENO: result: $RANLIB" >&5
39529echo "${ECHO_T}$RANLIB" >&6
39530else
39531 echo "$as_me:$LINENO: result: no" >&5
39532echo "${ECHO_T}no" >&6
39533fi
39534
39535fi
39536if test -z "$ac_cv_prog_RANLIB"; then
39537 ac_ct_RANLIB=$RANLIB
39538 # Extract the first word of "ranlib", so it can be a program name with args.
39539set dummy ranlib; ac_word=$2
39540echo "$as_me:$LINENO: checking for $ac_word" >&5
39541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39542if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
39543 echo $ECHO_N "(cached) $ECHO_C" >&6
39544else
39545 if test -n "$ac_ct_RANLIB"; then
39546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
39547else
39548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39549for as_dir in $PATH
39550do
39551 IFS=$as_save_IFS
39552 test -z "$as_dir" && as_dir=.
39553 for ac_exec_ext in '' $ac_executable_extensions; do
39554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39555 ac_cv_prog_ac_ct_RANLIB="ranlib"
39556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39557 break 2
39558 fi
39559done
39560done
39561
39562 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
39563fi
39564fi
39565ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
39566if test -n "$ac_ct_RANLIB"; then
39567 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
39568echo "${ECHO_T}$ac_ct_RANLIB" >&6
39569else
39570 echo "$as_me:$LINENO: result: no" >&5
39571echo "${ECHO_T}no" >&6
39572fi
39573
39574 RANLIB=$ac_ct_RANLIB
39575else
39576 RANLIB="$ac_cv_prog_RANLIB"
39577fi
39578
39579 # Find a good install program. We prefer a C program (faster),
39580# so one script is as good as another. But avoid the broken or
39581# incompatible versions:
39582# SysV /etc/install, /usr/sbin/install
39583# SunOS /usr/etc/install
39584# IRIX /sbin/install
39585# AIX /bin/install
39586# AmigaOS /C/install, which installs bootblocks on floppy discs
39587# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
39588# AFS /usr/afsws/bin/install, which mishandles nonexistent args
39589# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 39590# OS/2's system install, which has a completely different semantic
a848cd7e
SC
39591# ./install, which can be erroneously created by make from ./install.sh.
39592echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
39593echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
39594if test -z "$INSTALL"; then
39595if test "${ac_cv_path_install+set}" = set; then
39596 echo $ECHO_N "(cached) $ECHO_C" >&6
39597else
39598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39599for as_dir in $PATH
39600do
39601 IFS=$as_save_IFS
39602 test -z "$as_dir" && as_dir=.
39603 # Account for people who put trailing slashes in PATH elements.
39604case $as_dir/ in
39605 ./ | .// | /cC/* | \
39606 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 39607 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
39608 /usr/ucb/* ) ;;
39609 *)
39610 # OSF1 and SCO ODT 3.0 have their own names for install.
39611 # Don't use installbsd from OSF since it installs stuff as root
39612 # by default.
39613 for ac_prog in ginstall scoinst install; do
39614 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39615 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39616 if test $ac_prog = install &&
39617 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39618 # AIX install. It has an incompatible calling convention.
39619 :
39620 elif test $ac_prog = install &&
39621 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39622 # program-specific install script used by HP pwplus--don't use.
39623 :
39624 else
39625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39626 break 3
39627 fi
39628 fi
a848cd7e
SC
39629 done
39630 done
39631 ;;
39632esac
39633done
39634
39635
39636fi
39637 if test "${ac_cv_path_install+set}" = set; then
39638 INSTALL=$ac_cv_path_install
39639 else
39640 # As a last resort, use the slow shell script. We don't cache a
39641 # path for INSTALL within a source directory, because that will
39642 # break other packages using the cache if that directory is
39643 # removed, or if the path is relative.
39644 INSTALL=$ac_install_sh
39645 fi
39646fi
39647echo "$as_me:$LINENO: result: $INSTALL" >&5
39648echo "${ECHO_T}$INSTALL" >&6
39649
39650# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39651# It thinks the first close brace ends the variable substitution.
39652test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39653
39654test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39655
39656test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39657
39658 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39659echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39660LN_S=$as_ln_s
39661if test "$LN_S" = "ln -s"; then
39662 echo "$as_me:$LINENO: result: yes" >&5
39663echo "${ECHO_T}yes" >&6
39664else
39665 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39666echo "${ECHO_T}no, using $LN_S" >&6
39667fi
39668
39669
39670 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39671echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39672set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39673if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39674 echo $ECHO_N "(cached) $ECHO_C" >&6
39675else
39676 cat >conftest.make <<\_ACEOF
39677all:
39678 @echo 'ac_maketemp="$(MAKE)"'
39679_ACEOF
39680# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39681eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39682if test -n "$ac_maketemp"; then
39683 eval ac_cv_prog_make_${ac_make}_set=yes
39684else
39685 eval ac_cv_prog_make_${ac_make}_set=no
39686fi
39687rm -f conftest.make
39688fi
39689if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39690 echo "$as_me:$LINENO: result: yes" >&5
39691echo "${ECHO_T}yes" >&6
39692 SET_MAKE=
39693else
39694 echo "$as_me:$LINENO: result: no" >&5
39695echo "${ECHO_T}no" >&6
39696 SET_MAKE="MAKE=${MAKE-make}"
39697fi
39698
39699
39700
39701 if test -n "$ac_tool_prefix"; then
39702 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39703set dummy ${ac_tool_prefix}ar; ac_word=$2
39704echo "$as_me:$LINENO: checking for $ac_word" >&5
39705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39706if test "${ac_cv_prog_AR+set}" = set; then
39707 echo $ECHO_N "(cached) $ECHO_C" >&6
39708else
39709 if test -n "$AR"; then
39710 ac_cv_prog_AR="$AR" # Let the user override the test.
39711else
39712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39713for as_dir in $PATH
39714do
39715 IFS=$as_save_IFS
39716 test -z "$as_dir" && as_dir=.
39717 for ac_exec_ext in '' $ac_executable_extensions; do
39718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39719 ac_cv_prog_AR="${ac_tool_prefix}ar"
39720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39721 break 2
39722 fi
39723done
39724done
39725
39726fi
39727fi
39728AR=$ac_cv_prog_AR
39729if test -n "$AR"; then
39730 echo "$as_me:$LINENO: result: $AR" >&5
39731echo "${ECHO_T}$AR" >&6
39732else
39733 echo "$as_me:$LINENO: result: no" >&5
39734echo "${ECHO_T}no" >&6
39735fi
39736
39737fi
39738if test -z "$ac_cv_prog_AR"; then
39739 ac_ct_AR=$AR
39740 # Extract the first word of "ar", so it can be a program name with args.
39741set dummy ar; ac_word=$2
39742echo "$as_me:$LINENO: checking for $ac_word" >&5
39743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39744if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39745 echo $ECHO_N "(cached) $ECHO_C" >&6
39746else
39747 if test -n "$ac_ct_AR"; then
39748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39749else
39750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39751for as_dir in $PATH
39752do
39753 IFS=$as_save_IFS
39754 test -z "$as_dir" && as_dir=.
39755 for ac_exec_ext in '' $ac_executable_extensions; do
39756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39757 ac_cv_prog_ac_ct_AR="ar"
39758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39759 break 2
39760 fi
39761done
39762done
39763
39764 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39765fi
39766fi
39767ac_ct_AR=$ac_cv_prog_ac_ct_AR
39768if test -n "$ac_ct_AR"; then
39769 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39770echo "${ECHO_T}$ac_ct_AR" >&6
39771else
39772 echo "$as_me:$LINENO: result: no" >&5
39773echo "${ECHO_T}no" >&6
39774fi
39775
39776 AR=$ac_ct_AR
39777else
39778 AR="$ac_cv_prog_AR"
39779fi
39780
39781 if test -n "$ac_tool_prefix"; then
39782 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39783set dummy ${ac_tool_prefix}strip; ac_word=$2
39784echo "$as_me:$LINENO: checking for $ac_word" >&5
39785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39786if test "${ac_cv_prog_STRIP+set}" = set; then
39787 echo $ECHO_N "(cached) $ECHO_C" >&6
39788else
39789 if test -n "$STRIP"; then
39790 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39791else
39792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39793for as_dir in $PATH
39794do
39795 IFS=$as_save_IFS
39796 test -z "$as_dir" && as_dir=.
39797 for ac_exec_ext in '' $ac_executable_extensions; do
39798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39799 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39801 break 2
39802 fi
39803done
39804done
39805
39806fi
39807fi
39808STRIP=$ac_cv_prog_STRIP
39809if test -n "$STRIP"; then
39810 echo "$as_me:$LINENO: result: $STRIP" >&5
39811echo "${ECHO_T}$STRIP" >&6
39812else
39813 echo "$as_me:$LINENO: result: no" >&5
39814echo "${ECHO_T}no" >&6
39815fi
39816
39817fi
39818if test -z "$ac_cv_prog_STRIP"; then
39819 ac_ct_STRIP=$STRIP
39820 # Extract the first word of "strip", so it can be a program name with args.
39821set dummy strip; ac_word=$2
39822echo "$as_me:$LINENO: checking for $ac_word" >&5
39823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39824if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39825 echo $ECHO_N "(cached) $ECHO_C" >&6
39826else
39827 if test -n "$ac_ct_STRIP"; then
39828 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39829else
39830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39831for as_dir in $PATH
39832do
39833 IFS=$as_save_IFS
39834 test -z "$as_dir" && as_dir=.
39835 for ac_exec_ext in '' $ac_executable_extensions; do
39836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39837 ac_cv_prog_ac_ct_STRIP="strip"
39838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39839 break 2
39840 fi
39841done
39842done
39843
39844 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39845fi
39846fi
39847ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39848if test -n "$ac_ct_STRIP"; then
39849 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39850echo "${ECHO_T}$ac_ct_STRIP" >&6
39851else
39852 echo "$as_me:$LINENO: result: no" >&5
39853echo "${ECHO_T}no" >&6
39854fi
39855
39856 STRIP=$ac_ct_STRIP
39857else
39858 STRIP="$ac_cv_prog_STRIP"
39859fi
39860
39861 if test -n "$ac_tool_prefix"; then
39862 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39863set dummy ${ac_tool_prefix}nm; ac_word=$2
39864echo "$as_me:$LINENO: checking for $ac_word" >&5
39865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39866if test "${ac_cv_prog_NM+set}" = set; then
39867 echo $ECHO_N "(cached) $ECHO_C" >&6
39868else
39869 if test -n "$NM"; then
39870 ac_cv_prog_NM="$NM" # Let the user override the test.
39871else
39872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39873for as_dir in $PATH
39874do
39875 IFS=$as_save_IFS
39876 test -z "$as_dir" && as_dir=.
39877 for ac_exec_ext in '' $ac_executable_extensions; do
39878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39879 ac_cv_prog_NM="${ac_tool_prefix}nm"
39880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39881 break 2
39882 fi
39883done
39884done
39885
39886fi
39887fi
39888NM=$ac_cv_prog_NM
39889if test -n "$NM"; then
39890 echo "$as_me:$LINENO: result: $NM" >&5
39891echo "${ECHO_T}$NM" >&6
39892else
39893 echo "$as_me:$LINENO: result: no" >&5
39894echo "${ECHO_T}no" >&6
39895fi
39896
39897fi
39898if test -z "$ac_cv_prog_NM"; then
39899 ac_ct_NM=$NM
39900 # Extract the first word of "nm", so it can be a program name with args.
39901set dummy nm; ac_word=$2
39902echo "$as_me:$LINENO: checking for $ac_word" >&5
39903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39904if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39905 echo $ECHO_N "(cached) $ECHO_C" >&6
39906else
39907 if test -n "$ac_ct_NM"; then
39908 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39909else
39910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39911for as_dir in $PATH
39912do
39913 IFS=$as_save_IFS
39914 test -z "$as_dir" && as_dir=.
39915 for ac_exec_ext in '' $ac_executable_extensions; do
39916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39917 ac_cv_prog_ac_ct_NM="nm"
39918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39919 break 2
39920 fi
39921done
39922done
39923
39924 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39925fi
39926fi
39927ac_ct_NM=$ac_cv_prog_ac_ct_NM
39928if test -n "$ac_ct_NM"; then
39929 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39930echo "${ECHO_T}$ac_ct_NM" >&6
39931else
39932 echo "$as_me:$LINENO: result: no" >&5
39933echo "${ECHO_T}no" >&6
39934fi
39935
39936 NM=$ac_ct_NM
39937else
39938 NM="$ac_cv_prog_NM"
39939fi
39940
39941
39942 case ${BAKEFILE_HOST} in
39943 *-hp-hpux* )
1e9e8aba 39944 INSTALL_DIR="mkdir -p"
a848cd7e
SC
39945 ;;
39946 *) INSTALL_DIR="$INSTALL -d"
39947 ;;
39948 esac
39949
39950
39951 LDFLAGS_GUI=
39952 case ${BAKEFILE_HOST} in
39953 *-*-cygwin* | *-*-mingw32* )
39954 LDFLAGS_GUI="-mwindows"
39955 esac
39956
39957
39958 fi
39959
39960 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39961echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39962if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39963 echo $ECHO_N "(cached) $ECHO_C" >&6
39964else
39965
39966 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39967 egrep -s GNU > /dev/null); then
39968 bakefile_cv_prog_makeisgnu="yes"
39969 else
39970 bakefile_cv_prog_makeisgnu="no"
39971 fi
39972
39973fi
39974echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39975echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39976
39977 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39978 IF_GNU_MAKE=""
39979 else
39980 IF_GNU_MAKE="#"
39981 fi
39982
39983
39984
39985 PLATFORM_UNIX=0
39986 PLATFORM_WIN32=0
39987 PLATFORM_MSDOS=0
39988 PLATFORM_MAC=0
1e9e8aba 39989 PLATFORM_MACOS=0
a848cd7e
SC
39990 PLATFORM_MACOSX=0
39991 PLATFORM_OS2=0
1e9e8aba 39992 PLATFORM_BEOS=0
a848cd7e
SC
39993
39994 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39995 case "${BAKEFILE_HOST}" in
39996 *-*-cygwin* | *-*-mingw32* )
39997 PLATFORM_WIN32=1
39998 ;;
39999 *-pc-msdosdjgpp )
40000 PLATFORM_MSDOS=1
40001 ;;
40002 *-pc-os2_emx | *-pc-os2-emx )
40003 PLATFORM_OS2=1
40004 ;;
40005 powerpc-*-darwin* )
40006 PLATFORM_MAC=1
40007 PLATFORM_MACOSX=1
40008 ;;
1e9e8aba
DE
40009 *-*-beos* )
40010 PLATFORM_BEOS=1
40011 ;;
40012 powerpc-apple-macos* )
40013 PLATFORM_MAC=1
40014 PLATFORM_MACOS=1
40015 ;;
a848cd7e
SC
40016 * )
40017 PLATFORM_UNIX=1
40018 ;;
40019 esac
40020 else
40021 case "$BAKEFILE_FORCE_PLATFORM" in
40022 win32 )
40023 PLATFORM_WIN32=1
40024 ;;
40025 msdos )
40026 PLATFORM_MSDOS=1
40027 ;;
40028 os2 )
40029 PLATFORM_OS2=1
40030 ;;
40031 darwin )
40032 PLATFORM_MAC=1
40033 PLATFORM_MACOSX=1
40034 ;;
40035 unix )
40036 PLATFORM_UNIX=1
40037 ;;
1e9e8aba
DE
40038 beos )
40039 PLATFORM_BEOS=1
40040 ;;
a848cd7e
SC
40041 * )
40042 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
40043echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
40044 { (exit 1); exit 1; }; }
40045 ;;
40046 esac
40047 fi
40048
40049
40050
40051
40052
40053
40054
40055
40056
1e9e8aba
DE
40057
40058
a848cd7e
SC
40059 # Check whether --enable-omf or --disable-omf was given.
40060if test "${enable_omf+set}" = set; then
40061 enableval="$enable_omf"
40062 bk_os2_use_omf="$enableval"
40063fi;
40064
40065 case "${BAKEFILE_HOST}" in
40066 *-*-darwin* )
40067 CFLAGS="$CFLAGS -fno-common"
40068 CXXFLAGS="$CXXFLAGS -fno-common"
40069 ;;
40070
40071 *-pc-os2_emx | *-pc-os2-emx )
40072 if test "x$bk_os2_use_omf" = "xyes" ; then
40073 AR=emxomfar
40074 RANLIB=:
40075 LDFLAGS="-Zomf $LDFLAGS"
40076 CFLAGS="-Zomf $CFLAGS"
40077 CXXFLAGS="-Zomf $CXXFLAGS"
40078 OS2_LIBEXT="lib"
40079 else
40080 OS2_LIBEXT="a"
40081 fi
40082 ;;
1e9e8aba
DE
40083
40084 i*86-*-beos* )
40085 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
40086 ;;
a848cd7e
SC
40087 esac
40088
40089
40090 SO_SUFFIX="so"
40091 SO_SUFFIX_MODULE="so"
40092 EXEEXT=""
40093 LIBPREFIX="lib"
40094 LIBEXT=".a"
40095 DLLPREFIX="lib"
40096 DLLPREFIX_MODULE=""
40097 DLLIMP_SUFFIX=""
40098
40099 case "${BAKEFILE_HOST}" in
40100 *-hp-hpux* )
40101 SO_SUFFIX="sl"
40102 SO_SUFFIX_MODULE="sl"
40103 ;;
40104 *-*-aix* )
40105 SO_SUFFIX="a"
40106 SO_SUFFIX_MODULE="a"
40107 ;;
40108 *-*-cygwin* | *-*-mingw32* )
40109 SO_SUFFIX="dll"
40110 SO_SUFFIX_MODULE="dll"
40111 DLLIMP_SUFFIX="dll.a"
40112 EXEEXT=".exe"
40113 DLLPREFIX=""
40114 ;;
40115 *-pc-msdosdjgpp )
40116 EXEEXT=".exe"
40117 DLLPREFIX=""
40118 ;;
40119 *-pc-os2_emx | *-pc-os2-emx )
40120 SO_SUFFIX="dll"
40121 SO_SUFFIX_MODULE="dll"
40122 DLLIMP_SUFFIX=$OS2_LIBEXT
40123 EXEEXT=".exe"
40124 DLLPREFIX=""
40125 LIBPREFIX=""
40126 LIBEXT=".$OS2_LIBEXT"
40127 ;;
40128 powerpc-*-darwin* )
40129 SO_SUFFIX="dylib"
40130 SO_SUFFIX_MODULE="bundle"
40131 ;;
40132 esac
40133
40134 if test "x$DLLIMP_SUFFIX" = "x" ; then
40135 DLLIMP_SUFFIX="$SO_SUFFIX"
40136 fi
40137
40138
40139
40140
40141
40142
40143
40144
40145
40146
40147
1e9e8aba
DE
40148 PIC_FLAG=""
40149 if test "x$GCC" = "xyes"; then
a848cd7e
SC
40150 PIC_FLAG="-fPIC"
40151 fi
40152
1e9e8aba
DE
40153 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
40154 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
40155
a848cd7e
SC
40156 case "${BAKEFILE_HOST}" in
40157 *-hp-hpux* )
1e9e8aba 40158 if test "x$GCC" != "xyes"; then
a848cd7e
SC
40159 LDFLAGS="$LDFLAGS -L/usr/lib"
40160
40161 SHARED_LD_CC="${CC} -b -o"
40162 SHARED_LD_CXX="${CXX} -b -o"
40163 PIC_FLAG="+Z"
40164 fi
40165 ;;
40166
40167 *-*-linux* )
40168 if test "x$GCC" != "xyes"; then
40169 echo "$as_me:$LINENO: checking for Intel compiler" >&5
40170echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
40171if test "${bakefile_cv_prog_icc+set}" = set; then
40172 echo $ECHO_N "(cached) $ECHO_C" >&6
40173else
40174
40175 cat >conftest.$ac_ext <<_ACEOF
40176/* confdefs.h. */
40177_ACEOF
40178cat confdefs.h >>conftest.$ac_ext
40179cat >>conftest.$ac_ext <<_ACEOF
40180/* end confdefs.h. */
40181
40182int
40183main ()
40184{
40185
40186 #ifndef __INTEL_COMPILER
40187 #error Not icc
40188 #endif
40189
40190 ;
40191 return 0;
40192}
40193_ACEOF
40194rm -f conftest.$ac_objext
40195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40196 (eval $ac_compile) 2>conftest.er1
a848cd7e 40197 ac_status=$?
ac1cb8d3
VS
40198 grep -v '^ *+' conftest.er1 >conftest.err
40199 rm -f conftest.er1
40200 cat conftest.err >&5
a848cd7e
SC
40201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202 (exit $ac_status); } &&
89be85c2
VS
40203 { ac_try='test -z "$ac_c_werror_flag"
40204 || test ! -s conftest.err'
ac1cb8d3
VS
40205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40206 (eval $ac_try) 2>&5
40207 ac_status=$?
40208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209 (exit $ac_status); }; } &&
40210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40212 (eval $ac_try) 2>&5
40213 ac_status=$?
40214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215 (exit $ac_status); }; }; then
40216 bakefile_cv_prog_icc=yes
40217else
40218 echo "$as_me: failed program was:" >&5
40219sed 's/^/| /' conftest.$ac_ext >&5
40220
40221bakefile_cv_prog_icc=no
40222
40223fi
ac1cb8d3 40224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40225
40226fi
40227echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
40228echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
40229 if test "$bakefile_cv_prog_icc" = "yes"; then
40230 PIC_FLAG="-KPIC"
40231 fi
40232 fi
40233 ;;
40234
40235 *-*-solaris2* )
40236 if test "x$GCC" != xyes ; then
40237 SHARED_LD_CC="${CC} -G -o"
40238 SHARED_LD_CXX="${CXX} -G -o"
40239 PIC_FLAG="-KPIC"
40240 fi
40241 ;;
40242
40243 *-*-darwin* )
40244
40245 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
40246echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
40247if test "${wx_cv_gcc31+set}" = set; then
40248 echo $ECHO_N "(cached) $ECHO_C" >&6
40249else
40250
40251 cat >conftest.$ac_ext <<_ACEOF
40252/* confdefs.h. */
40253_ACEOF
40254cat confdefs.h >>conftest.$ac_ext
40255cat >>conftest.$ac_ext <<_ACEOF
40256/* end confdefs.h. */
40257
40258int
40259main ()
40260{
40261
40262 #if (__GNUC__ < 3) || \
40263 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
40264 #error old gcc
40265 #endif
40266
40267 ;
40268 return 0;
40269}
40270_ACEOF
40271rm -f conftest.$ac_objext
40272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40273 (eval $ac_compile) 2>conftest.er1
a848cd7e 40274 ac_status=$?
ac1cb8d3
VS
40275 grep -v '^ *+' conftest.er1 >conftest.err
40276 rm -f conftest.er1
40277 cat conftest.err >&5
a848cd7e
SC
40278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279 (exit $ac_status); } &&
89be85c2
VS
40280 { ac_try='test -z "$ac_c_werror_flag"
40281 || test ! -s conftest.err'
ac1cb8d3
VS
40282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40283 (eval $ac_try) 2>&5
40284 ac_status=$?
40285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286 (exit $ac_status); }; } &&
40287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40289 (eval $ac_try) 2>&5
40290 ac_status=$?
40291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292 (exit $ac_status); }; }; then
40293
40294 wx_cv_gcc31=yes
40295
40296else
40297 echo "$as_me: failed program was:" >&5
40298sed 's/^/| /' conftest.$ac_ext >&5
40299
40300
40301 wx_cv_gcc31=no
40302
40303
40304fi
ac1cb8d3 40305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40306
40307fi
40308echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
40309echo "${ECHO_T}$wx_cv_gcc31" >&6
40310 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
40311
40312D='$'
40313cat <<EOF >shared-ld-sh
a848cd7e
SC
40314#!/bin/sh
40315#-----------------------------------------------------------------------------
40316#-- Name: distrib/mac/shared-ld-sh
40317#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
40318#-- Author: Gilles Depeyrot
40319#-- Copyright: (c) 2002 Gilles Depeyrot
40320#-- Licence: any use permitted
40321#-----------------------------------------------------------------------------
40322
40323verbose=0
40324args=""
40325objects=""
40326linking_flag="-dynamiclib"
40327
473276a9
VS
40328while test ${D}# -gt 0; do
40329 case ${D}1 in
a848cd7e
SC
40330
40331 -v)
40332 verbose=1
40333 ;;
40334
40335 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
40336 # collect these options and values
473276a9 40337 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
40338 shift
40339 ;;
40340
40341 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
40342 # collect these options
473276a9 40343 args="${D}{args} ${D}1"
a848cd7e
SC
40344 ;;
40345
40346 -dynamiclib|-bundle)
473276a9 40347 linking_flag="${D}1"
a848cd7e
SC
40348 ;;
40349
40350 -*)
473276a9 40351 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
40352 exit 1
40353 ;;
40354
40355 *.o | *.a | *.dylib)
40356 # collect object files
473276a9 40357 objects="${D}{objects} ${D}1"
a848cd7e
SC
40358 ;;
40359
40360 *)
473276a9 40361 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
40362 exit 1
40363 ;;
40364
40365 esac
40366 shift
40367done
40368
40369#
40370# Link one module containing all the others
40371#
473276a9
VS
40372if test ${D}{verbose} = 1; then
40373 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 40374fi
473276a9
VS
40375c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
40376status=${D}?
40377if test ${D}{status} != 0; then
40378 exit ${D}{status}
a848cd7e
SC
40379fi
40380
40381#
40382# Link the shared library from the single module created
40383#
473276a9
VS
40384if test ${D}{verbose} = 1; then
40385 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 40386fi
473276a9
VS
40387c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
40388status=${D}?
40389if test ${D}{status} != 0; then
40390 exit ${D}{status}
a848cd7e
SC
40391fi
40392
40393#
40394# Remove intermediate module
40395#
473276a9 40396rm -f master.${D}${D}.o
a848cd7e
SC
40397
40398exit 0
40399EOF
473276a9 40400
a848cd7e
SC
40401 chmod +x shared-ld-sh
40402
40403 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
40404 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
40405 SHARED_LD_CXX="$SHARED_LD_CC"
40406 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
40407 else
40408 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
40409 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
40410 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
40411 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
40412 fi
40413
40414 PIC_FLAG="-dynamic -fPIC"
40415 ;;
40416
40417 *-*-aix* )
40418 if test "x$GCC" != "xyes"; then
40419 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
40420set dummy makeC++SharedLib; ac_word=$2
40421echo "$as_me:$LINENO: checking for $ac_word" >&5
40422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40423if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
40424 echo $ECHO_N "(cached) $ECHO_C" >&6
40425else
40426 if test -n "$AIX_CXX_LD"; then
40427 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
40428else
40429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40430for as_dir in $PATH
40431do
40432 IFS=$as_save_IFS
40433 test -z "$as_dir" && as_dir=.
40434 for ac_exec_ext in '' $ac_executable_extensions; do
40435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40436 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
40437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40438 break 2
40439 fi
40440done
40441done
40442
40443 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
40444fi
40445fi
40446AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
40447if test -n "$AIX_CXX_LD"; then
40448 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
40449echo "${ECHO_T}$AIX_CXX_LD" >&6
40450else
40451 echo "$as_me:$LINENO: result: no" >&5
40452echo "${ECHO_T}no" >&6
40453fi
40454
40455 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
40456 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
40457 fi
40458 ;;
40459
40460 *-*-beos* )
1e9e8aba
DE
40461 SHARED_LD_CC="${LD} -nostart -o"
40462 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
40463 ;;
40464
40465 *-*-irix* )
40466 if test "x$GCC" != "xyes"; then
40467 PIC_FLAG="-KPIC"
40468 fi
40469 ;;
40470
40471 *-*-cygwin* | *-*-mingw32* )
40472 PIC_FLAG=""
1e9e8aba
DE
40473 SHARED_LD_CC="\$(CC) -shared -o"
40474 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
40475 ;;
40476
40477 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
40478 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
40479 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 40480 PIC_FLAG=""
473276a9
VS
40481
40482D='$'
40483cat <<EOF >dllar.sh
40484#!/bin/sh
40485#
40486# dllar - a tool to build both a .dll and an .a file
40487# from a set of object (.o) files for EMX/OS2.
40488#
40489# Written by Andrew Zabolotny, bit@freya.etu.ru
40490# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
40491#
40492# This script will accept a set of files on the command line.
40493# All the public symbols from the .o files will be exported into
40494# a .DEF file, then linker will be run (through gcc) against them to
40495# build a shared library consisting of all given .o files. All libraries
40496# (.a) will be first decompressed into component .o files then act as
40497# described above. You can optionally give a description (-d "description")
40498# which will be put into .DLL. To see the list of accepted options (as well
40499# as command-line format) simply run this program without options. The .DLL
40500# is built to be imported by name (there is no guarantee that new versions
40501# of the library you build will have same ordinals for same symbols).
40502#
40503# dllar is free software; you can redistribute it and/or modify
40504# it under the terms of the GNU General Public License as published by
40505# the Free Software Foundation; either version 2, or (at your option)
40506# any later version.
40507#
40508# dllar is distributed in the hope that it will be useful,
40509# but WITHOUT ANY WARRANTY; without even the implied warranty of
40510# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40511# GNU General Public License for more details.
40512#
40513# You should have received a copy of the GNU General Public License
40514# along with dllar; see the file COPYING. If not, write to the Free
40515# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
40516# 02111-1307, USA.
40517
40518# To successfuly run this program you will need:
40519# - Current drive should have LFN support (HPFS, ext2, network, etc)
40520# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
40521# - gcc
40522# (used to build the .dll)
40523# - emxexp
40524# (used to create .def file from .o files)
40525# - emximp
40526# (used to create .a file from .def file)
40527# - GNU text utilites (cat, sort, uniq)
40528# used to process emxexp output
40529# - GNU file utilities (mv, rm)
40530# - GNU sed
40531# - lxlite (optional, see flag below)
40532# (used for general .dll cleanup)
40533#
40534
40535flag_USE_LXLITE=1;
40536
40537#
40538# helper functions
40539# basnam, variant of basename, which does _not_ remove the path, _iff_
40540# second argument (suffix to remove) is given
40541basnam(){
40542 case ${D}# in
40543 1)
1e9e8aba 40544 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
40545 ;;
40546 2)
40547 echo ${D}1 | sed 's/'${D}2'${D}//'
40548 ;;
40549 *)
40550 echo "error in basnam ${D}*"
40551 exit 8
40552 ;;
40553 esac
40554}
40555
40556# Cleanup temporary files and output
40557CleanUp() {
40558 cd ${D}curDir
40559 for i in ${D}inputFiles ; do
40560 case ${D}i in
40561 *!)
40562 rm -rf \`basnam ${D}i !\`
40563 ;;
40564 *)
40565 ;;
40566 esac
40567 done
40568
40569 # Kill result in case of failure as there is just to many stupid make/nmake
40570 # things out there which doesn't do this.
1e9e8aba 40571 if [ ${D}# -eq 0 ]; then
473276a9
VS
40572 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
40573 fi
40574}
40575
40576# Print usage and exit script with rc=1.
40577PrintHelp() {
b1d22ded
DE
40578 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
40579 echo ' [-name-mangler-script script.sh]'
40580 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
40581 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
40582 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 40583 echo ' [*.o] [*.a]'
473276a9
VS
40584 echo '*> "output_file" should have no extension.'
40585 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
40586 echo ' The import library name is derived from this and is set to "name".a,'
40587 echo ' unless overridden by -import'
40588 echo '*> "importlib_name" should have no extension.'
40589 echo ' If it has the .o, or .a extension, it is automatically removed.'
40590 echo ' This name is used as the import library name and may be longer and'
40591 echo ' more descriptive than the DLL name which has to follow the old '
40592 echo ' 8.3 convention of FAT.'
b1d22ded
DE
40593 echo '*> "script.sh may be given to override the output_file name by a'
40594 echo ' different name. It is mainly useful if the regular make process'
40595 echo ' of some package does not take into account OS/2 restriction of'
40596 echo ' DLL name lengths. It takes the importlib name as input and is'
40597 echo ' supposed to procude a shorter name as output. The script should'
40598 echo ' expect to get importlib_name without extension and should produce'
40599 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
40600 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
40601 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
40602 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
40603 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
40604 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
40605 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
40606 echo ' If the last character of a symbol is "*", all symbols beginning'
40607 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 40608 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 40609 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 40610 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 40611 echo ' C runtime DLLs.'
b1d22ded 40612 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
40613 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40614 echo ' unchanged to GCC at the end of command line.'
40615 echo '*> If you create a DLL from a library and you do not specify -o,'
40616 echo ' the basename for DLL and import library will be set to library name,'
40617 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
40618 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40619 echo ' library will be renamed into gcc_s.a.'
40620 echo '--------'
40621 echo 'Example:'
40622 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40623 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40624 CleanUp
40625 exit 1
40626}
40627
40628# Execute a command.
40629# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40630# @Uses Whatever CleanUp() uses.
40631doCommand() {
40632 echo "${D}*"
40633 eval ${D}*
40634 rcCmd=${D}?
40635
1e9e8aba 40636 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
40637 echo "command failed, exit code="${D}rcCmd
40638 CleanUp
40639 exit ${D}rcCmd
40640 fi
40641}
40642
40643# main routine
40644# setup globals
40645cmdLine=${D}*
40646outFile=""
40647outimpFile=""
40648inputFiles=""
b1d22ded 40649renameScript=""
473276a9
VS
40650description=""
40651CC=gcc.exe
40652CFLAGS="-s -Zcrtdll"
40653EXTRA_CFLAGS=""
40654EXPORT_BY_ORDINALS=0
40655exclude_symbols=""
40656library_flags=""
40657curDir=\`pwd\`
40658curDirS=curDir
40659case ${D}curDirS in
40660*/)
40661 ;;
40662*)
40663 curDirS=${D}{curDirS}"/"
40664 ;;
40665esac
40666# Parse commandline
40667libsToLink=0
b1d22ded 40668omfLinking=0
1e9e8aba 40669while [ ${D}1 ]; do
473276a9
VS
40670 case ${D}1 in
40671 -ord*)
40672 EXPORT_BY_ORDINALS=1;
40673 ;;
40674 -o*)
40675 shift
40676 outFile=${D}1
40677 ;;
40678 -i*)
40679 shift
40680 outimpFile=${D}1
40681 ;;
b1d22ded
DE
40682 -name-mangler-script)
40683 shift
40684 renameScript=${D}1
40685 ;;
473276a9
VS
40686 -d*)
40687 shift
40688 description=${D}1
40689 ;;
40690 -f*)
40691 shift
40692 CFLAGS=${D}1
40693 ;;
40694 -c*)
40695 shift
40696 CC=${D}1
40697 ;;
40698 -h*)
40699 PrintHelp
40700 ;;
40701 -ex*)
40702 shift
40703 exclude_symbols=${D}{exclude_symbols}${D}1" "
40704 ;;
40705 -libf*)
40706 shift
40707 library_flags=${D}{library_flags}${D}1" "
40708 ;;
40709 -nocrt*)
40710 CFLAGS="-s"
40711 ;;
40712 -nolxl*)
40713 flag_USE_LXLITE=0
40714 ;;
40715 -* | /*)
40716 case ${D}1 in
40717 -L* | -l*)
40718 libsToLink=1
40719 ;;
b1d22ded
DE
40720 -Zomf)
40721 omfLinking=1
40722 ;;
473276a9
VS
40723 *)
40724 ;;
40725 esac
40726 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40727 ;;
b1d22ded
DE
40728 *.dll)
40729 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
40730 if [ ${D}omfLinking -eq 1 ]; then
40731 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
40732 else
40733 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
40734 fi
40735 ;;
473276a9
VS
40736 *)
40737 found=0;
1e9e8aba 40738 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
40739 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40740 else
40741 for file in ${D}1 ; do
1e9e8aba 40742 if [ -f ${D}file ]; then
473276a9
VS
40743 inputFiles="${D}{inputFiles} ${D}file"
40744 found=1
40745 fi
40746 done
1e9e8aba 40747 if [ ${D}found -eq 0 ]; then
473276a9
VS
40748 echo "ERROR: No file(s) found: "${D}1
40749 exit 8
40750 fi
40751 fi
40752 ;;
40753 esac
40754 shift
40755done # iterate cmdline words
40756
40757#
1e9e8aba 40758if [ -z "${D}inputFiles" ]; then
473276a9
VS
40759 echo "dllar: no input files"
40760 PrintHelp
40761fi
40762
40763# Now extract all .o files from .a files
40764newInputFiles=""
40765for file in ${D}inputFiles ; do
40766 case ${D}file in
40767 *.a | *.lib)
40768 case ${D}file in
40769 *.a)
40770 suffix=".a"
40771 AR="ar"
40772 ;;
40773 *.lib)
40774 suffix=".lib"
40775 AR="emxomfar"
40776 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40777 ;;
40778 *)
40779 ;;
40780 esac
40781 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40782 mkdir ${D}dirname
1e9e8aba 40783 if [ ${D}? -ne 0 ]; then
473276a9
VS
40784 echo "Failed to create subdirectory ./${D}dirname"
40785 CleanUp
40786 exit 8;
40787 fi
40788 # Append '!' to indicate archive
40789 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40790 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40791 cd ${D}curDir
40792 found=0;
40793 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 40794 if [ -f ${D}subfile ]; then
473276a9 40795 found=1
1e9e8aba 40796 if [ -s ${D}subfile ]; then
473276a9
VS
40797 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40798 newInputFiles="${D}newInputFiles ${D}subfile"
40799 fi
40800 fi
40801 done
1e9e8aba
DE
40802 if [ ${D}found -eq 0 ]; then
40803 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
40804 fi
40805 ;;
40806 *)
40807 newInputFiles="${D}{newInputFiles} ${D}file"
40808 ;;
40809 esac
40810done
40811inputFiles="${D}newInputFiles"
40812
40813# Output filename(s).
40814do_backup=0;
1e9e8aba 40815if [ -z ${D}outFile ]; then
473276a9
VS
40816 do_backup=1;
40817 set outFile ${D}inputFiles; outFile=${D}2
40818fi
40819
40820# If it is an archive, remove the '!' and the '_%' suffixes
40821case ${D}outFile in
40822*_%!)
40823 outFile=\`basnam ${D}outFile _%!\`
40824 ;;
40825*)
40826 ;;
40827esac
40828case ${D}outFile in
40829*.dll)
40830 outFile=\`basnam ${D}outFile .dll\`
40831 ;;
40832*.DLL)
40833 outFile=\`basnam ${D}outFile .DLL\`
40834 ;;
40835*.o)
40836 outFile=\`basnam ${D}outFile .o\`
40837 ;;
40838*.obj)
40839 outFile=\`basnam ${D}outFile .obj\`
40840 ;;
40841*.a)
40842 outFile=\`basnam ${D}outFile .a\`
40843 ;;
40844*.lib)
40845 outFile=\`basnam ${D}outFile .lib\`
40846 ;;
40847*)
40848 ;;
40849esac
40850case ${D}outimpFile in
40851*.a)
40852 outimpFile=\`basnam ${D}outimpFile .a\`
40853 ;;
40854*.lib)
40855 outimpFile=\`basnam ${D}outimpFile .lib\`
40856 ;;
40857*)
40858 ;;
40859esac
1e9e8aba 40860if [ -z ${D}outimpFile ]; then
473276a9
VS
40861 outimpFile=${D}outFile
40862fi
40863defFile="${D}{outFile}.def"
40864arcFile="${D}{outimpFile}.a"
40865arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
40866
40867#create ${D}dllFile as something matching 8.3 restrictions,
40868if [ -z ${D}renameScript ] ; then
40869 dllFile="${D}outFile"
40870else
40871 dllFile=\`${D}renameScript ${D}outimpFile\`
40872fi
473276a9 40873
1e9e8aba
DE
40874if [ ${D}do_backup -ne 0 ] ; then
40875 if [ -f ${D}arcFile ] ; then
473276a9
VS
40876 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40877 fi
1e9e8aba 40878 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
40879 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40880 fi
40881fi
40882
40883# Extract public symbols from all the object files.
40884tmpdefFile=${D}{defFile}_%
40885rm -f ${D}tmpdefFile
40886for file in ${D}inputFiles ; do
40887 case ${D}file in
40888 *!)
40889 ;;
40890 *)
40891 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40892 ;;
40893 esac
40894done
40895
40896# Create the def file.
40897rm -f ${D}defFile
40898echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
40899dllFile="${D}{dllFile}.dll"
40900if [ ! -z ${D}description ]; then
1e9e8aba 40901 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
40902fi
40903echo "EXPORTS" >> ${D}defFile
40904
40905doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40906grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40907
40908# Checks if the export is ok or not.
40909for word in ${D}exclude_symbols; do
40910 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40911 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40912done
40913
40914
1e9e8aba
DE
40915if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40916 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
40917 sed '
40918 N
40919 : loop
1e9e8aba 40920 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
40921 t loop
40922 ' > ${D}{tmpdefFile}%
40923 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40924else
40925 rm -f ${D}{tmpdefFile}%
40926fi
40927cat ${D}tmpdefFile >> ${D}defFile
40928rm -f ${D}tmpdefFile
40929
40930# Do linking, create implib, and apply lxlite.
40931gccCmdl="";
40932for file in ${D}inputFiles ; do
40933 case ${D}file in
40934 *!)
40935 ;;
40936 *)
40937 gccCmdl="${D}gccCmdl ${D}file"
40938 ;;
40939 esac
40940done
40941doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40942touch "${D}{outFile}.dll"
40943
40944doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 40945if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 40946 add_flags="";
1e9e8aba 40947 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
40948 add_flags="-ynd"
40949 fi
40950 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40951fi
40952doCommand "emxomf -s -l ${D}arcFile"
40953
40954# Successful exit.
40955CleanUp 1
40956exit 0
40957EOF
40958
40959 chmod +x dllar.sh
a848cd7e
SC
40960 ;;
40961
1e9e8aba 40962 powerpc-apple-macos* | \
a848cd7e
SC
40963 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40964 *-*-sunos4* | \
40965 *-*-osf* | \
40966 *-*-dgux5* | \
40967 *-*-sysv5* )
40968 ;;
40969
40970 *)
40971 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40972echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40973 { (exit 1); exit 1; }; }
40974 esac
40975
2057db16
VS
40976 if test "x$PIC_FLAG" != "x" ; then
40977 PIC_FLAG="$PIC_FLAG -DPIC"
40978 fi
40979
a848cd7e
SC
40980 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40981 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40982 fi
40983 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40984 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40985 fi
40986
40987
40988
40989
40990
40991
40992
40993
40994 USE_SOVERSION=0
40995 USE_SOVERLINUX=0
40996 USE_SOVERSOLARIS=0
40997 USE_SOSYMLINKS=0
40998 USE_MACVERSION=0
40999 SONAME_FLAG=
41000
41001 case "${BAKEFILE_HOST}" in
b1d22ded 41002 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
41003 SONAME_FLAG="-Wl,-soname,"
41004 USE_SOVERSION=1
41005 USE_SOVERLINUX=1
41006 USE_SOSYMLINKS=1
41007 ;;
41008
a848cd7e
SC
41009 *-*-solaris2* )
41010 SONAME_FLAG="-h "
41011 USE_SOVERSION=1
41012 USE_SOVERSOLARIS=1
41013 USE_SOSYMLINKS=1
41014 ;;
41015
41016 *-*-darwin* )
41017 USE_MACVERSION=1
41018 USE_SOVERSION=1
41019 USE_SOSYMLINKS=1
41020 ;;
41021 esac
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
41032echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
41033 DEPS_TRACKING=0
41034
41035 if test "x$GCC" = "xyes"; then
41036 DEPSMODE=gcc
41037 DEPS_TRACKING=1
41038 case "${BAKEFILE_HOST}" in
41039 powerpc-*-darwin* )
41040 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
41041 ;;
41042 * )
41043 DEPSFLAG_GCC="-MMD"
41044 ;;
41045 esac
41046 echo "$as_me:$LINENO: result: gcc" >&5
41047echo "${ECHO_T}gcc" >&6
b1d22ded 41048 elif test "x$MWCC" = "xyes"; then
81f90336 41049 DEPSMODE=mwcc
b1d22ded 41050 DEPS_TRACKING=1
81f90336 41051 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
41052 echo "$as_me:$LINENO: result: mwcc" >&5
41053echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
41054 else
41055 echo "$as_me:$LINENO: result: none" >&5
41056echo "${ECHO_T}none" >&6
41057 fi
41058
41059 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
41060
41061D='$'
41062cat <<EOF >bk-deps
a848cd7e
SC
41063#!/bin/sh
41064
41065# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41066# script. It is used to track C/C++ files dependencies in portable way.
41067#
41068# Permission is given to use this file in any way.
41069
473276a9 41070DEPSMODE=${DEPSMODE}
a848cd7e 41071DEPSDIR=.deps
473276a9 41072DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 41073DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 41074
473276a9 41075mkdir -p ${D}DEPSDIR
a848cd7e 41076
473276a9
VS
41077if test ${D}DEPSMODE = gcc ; then
41078 ${D}* ${D}{DEPSFLAG_GCC}
41079 status=${D}?
41080 if test ${D}{status} != 0 ; then
41081 exit ${D}{status}
a848cd7e
SC
41082 fi
41083 # move created file to the location we want it in:
473276a9
VS
41084 while test ${D}# -gt 0; do
41085 case "${D}1" in
a848cd7e
SC
41086 -o )
41087 shift
473276a9 41088 objfile=${D}1
a848cd7e
SC
41089 ;;
41090 -* )
41091 ;;
41092 * )
473276a9 41093 srcfile=${D}1
a848cd7e
SC
41094 ;;
41095 esac
41096 shift
41097 done
1e9e8aba
DE
41098 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
41099 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
41100 if test -f ${D}depfile ; then
41101 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41102 rm -f ${D}depfile
a848cd7e 41103 else
1e9e8aba 41104 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
41105 if test -f ${D}depfile ; then
41106 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41107 rm -f ${D}depfile
a848cd7e
SC
41108 fi
41109 fi
41110 exit 0
81f90336
MW
41111elif test ${D}DEPSMODE = mwcc ; then
41112 ${D}*
41113 status=${D}?
41114 if test ${D}{status} != 0 ; then
41115 exit ${D}{status}
41116 fi
41117 # Run mwcc again with -MM and redirect into the dep file we want
41118 # NOTE: We can't use shift here because we need ${D}* to be valid
41119 prevarg=
41120 for arg in ${D}* ; do
41121 if test "${D}prevarg" = "-o"; then
41122 objfile=${D}arg
41123 else
41124 case "${D}arg" in
41125 -* )
41126 ;;
41127 * )
41128 srcfile=${D}arg
41129 ;;
41130 esac
41131 fi
41132 prevarg="${D}arg"
41133 done
41134 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
41135 exit 0
a848cd7e 41136else
473276a9
VS
41137 ${D}*
41138 exit ${D}?
a848cd7e
SC
41139fi
41140EOF
473276a9 41141
a848cd7e
SC
41142 chmod +x bk-deps
41143 fi
41144
41145
41146
41147
41148 RESCOMP=
41149 SETFILE=
41150
41151 case ${BAKEFILE_HOST} in
41152 *-*-cygwin* | *-*-mingw32* )
41153 if test "$build" != "$host" ; then
41154 RESCOMP=$host_alias-windres
41155 else
41156 # Extract the first word of "windres", so it can be a program name with args.
41157set dummy windres; ac_word=$2
41158echo "$as_me:$LINENO: checking for $ac_word" >&5
41159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41160if test "${ac_cv_prog_RESCOMP+set}" = set; then
41161 echo $ECHO_N "(cached) $ECHO_C" >&6
41162else
41163 if test -n "$RESCOMP"; then
41164 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41165else
41166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41167for as_dir in $PATH
41168do
41169 IFS=$as_save_IFS
41170 test -z "$as_dir" && as_dir=.
41171 for ac_exec_ext in '' $ac_executable_extensions; do
41172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41173 ac_cv_prog_RESCOMP="windres"
41174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41175 break 2
41176 fi
41177done
41178done
41179
41180 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
41181fi
41182fi
41183RESCOMP=$ac_cv_prog_RESCOMP
41184if test -n "$RESCOMP"; then
41185 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41186echo "${ECHO_T}$RESCOMP" >&6
41187else
41188 echo "$as_me:$LINENO: result: no" >&5
41189echo "${ECHO_T}no" >&6
41190fi
41191
41192 fi
41193 ;;
41194
1e9e8aba 41195 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
41196 # Extract the first word of "Rez", so it can be a program name with args.
41197set dummy Rez; ac_word=$2
41198echo "$as_me:$LINENO: checking for $ac_word" >&5
41199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41200if test "${ac_cv_prog_RESCOMP+set}" = set; then
41201 echo $ECHO_N "(cached) $ECHO_C" >&6
41202else
41203 if test -n "$RESCOMP"; then
41204 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41205else
41206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41207for as_dir in $PATH
41208do
41209 IFS=$as_save_IFS
41210 test -z "$as_dir" && as_dir=.
41211 for ac_exec_ext in '' $ac_executable_extensions; do
41212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41213 ac_cv_prog_RESCOMP="Rez"
41214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41215 break 2
41216 fi
41217done
41218done
41219
41220 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
41221fi
41222fi
41223RESCOMP=$ac_cv_prog_RESCOMP
41224if test -n "$RESCOMP"; then
41225 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41226echo "${ECHO_T}$RESCOMP" >&6
41227else
41228 echo "$as_me:$LINENO: result: no" >&5
41229echo "${ECHO_T}no" >&6
41230fi
41231
41232 # Extract the first word of "SetFile", so it can be a program name with args.
41233set dummy SetFile; ac_word=$2
41234echo "$as_me:$LINENO: checking for $ac_word" >&5
41235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41236if test "${ac_cv_prog_SETFILE+set}" = set; then
41237 echo $ECHO_N "(cached) $ECHO_C" >&6
41238else
41239 if test -n "$SETFILE"; then
41240 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
41241else
41242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41243for as_dir in $PATH
41244do
41245 IFS=$as_save_IFS
41246 test -z "$as_dir" && as_dir=.
41247 for ac_exec_ext in '' $ac_executable_extensions; do
41248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41249 ac_cv_prog_SETFILE="SetFile"
41250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41251 break 2
41252 fi
41253done
41254done
41255
41256 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
41257fi
41258fi
41259SETFILE=$ac_cv_prog_SETFILE
41260if test -n "$SETFILE"; then
41261 echo "$as_me:$LINENO: result: $SETFILE" >&5
41262echo "${ECHO_T}$SETFILE" >&6
41263else
41264 echo "$as_me:$LINENO: result: no" >&5
41265echo "${ECHO_T}no" >&6
41266fi
41267
41268 ;;
41269 esac
41270
41271
41272
41273
41274
2e350179 41275 BAKEFILE_BAKEFILE_M4_VERSION="0.1.7"
a848cd7e 41276
dcc1b6ad 41277
2e350179 41278BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7"
a848cd7e 41279
646b6ec1 41280
74b84332 41281
a848cd7e
SC
41282 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
41283if test "${enable_precomp_headers+set}" = set; then
41284 enableval="$enable_precomp_headers"
41285 bk_use_pch="$enableval"
41286fi;
41287
41288 GCC_PCH=0
41289
41290 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
41291 if test "x$GCC" = "xyes"; then
41292 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
41293echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
41294 cat >conftest.$ac_ext <<_ACEOF
41295/* confdefs.h. */
41296_ACEOF
41297cat confdefs.h >>conftest.$ac_ext
41298cat >>conftest.$ac_ext <<_ACEOF
41299/* end confdefs.h. */
41300
41301int
41302main ()
41303{
41304
41305 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
41306 #error "no pch support"
41307 #endif
41308 #if (__GNUC__ < 3)
41309 #error "no pch support"
41310 #endif
41311 #if (__GNUC__ == 3) && \
41312 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
41313 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
41314 #error "no pch support"
41315 #endif
41316
41317 ;
41318 return 0;
41319}
41320_ACEOF
41321rm -f conftest.$ac_objext
41322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41323 (eval $ac_compile) 2>conftest.er1
a848cd7e 41324 ac_status=$?
ac1cb8d3
VS
41325 grep -v '^ *+' conftest.er1 >conftest.err
41326 rm -f conftest.er1
41327 cat conftest.err >&5
a848cd7e
SC
41328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329 (exit $ac_status); } &&
89be85c2
VS
41330 { ac_try='test -z "$ac_c_werror_flag"
41331 || test ! -s conftest.err'
ac1cb8d3
VS
41332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41333 (eval $ac_try) 2>&5
41334 ac_status=$?
41335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336 (exit $ac_status); }; } &&
41337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41339 (eval $ac_try) 2>&5
41340 ac_status=$?
41341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41342 (exit $ac_status); }; }; then
41343
41344 echo "$as_me:$LINENO: result: yes" >&5
41345echo "${ECHO_T}yes" >&6
a848cd7e
SC
41346 GCC_PCH=1
41347
41348else
41349 echo "$as_me: failed program was:" >&5
41350sed 's/^/| /' conftest.$ac_ext >&5
41351
41352
41353 echo "$as_me:$LINENO: result: no" >&5
41354echo "${ECHO_T}no" >&6
41355
41356fi
ac1cb8d3 41357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41358 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
41359
41360D='$'
41361cat <<EOF >bk-make-pch
a848cd7e
SC
41362#!/bin/sh
41363
41364# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41365# script. It is used to generated precompiled headers.
41366#
41367# Permission is given to use this file in any way.
41368
1e9e8aba
DE
41369outfile="${D}{1}"
41370header="${D}{2}"
a848cd7e
SC
41371shift
41372shift
41373
41374compiler=
41375headerfile=
1e9e8aba
DE
41376while test ${D}{#} -gt 0; do
41377 case "${D}{1}" in
a848cd7e 41378 -I* )
1e9e8aba
DE
41379 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
41380 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
41381 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
41382 fi
41383 ;;
41384 esac
1e9e8aba 41385 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
41386 shift
41387done
41388
1e9e8aba
DE
41389if test "x${D}{headerfile}" = "x" ; then
41390 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 41391else
1e9e8aba
DE
41392 if test -f ${D}{outfile} ; then
41393 rm -f ${D}{outfile}
a848cd7e 41394 else
1e9e8aba 41395 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 41396 fi
1e9e8aba 41397 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
41398 mkdir -p .deps
41399 # can do this because gcc is >= 3.4:
1e9e8aba
DE
41400 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
41401 exit ${D}{?}
a848cd7e
SC
41402fi
41403EOF
1e9e8aba 41404
a848cd7e
SC
41405 chmod +x bk-make-pch
41406 fi
41407 fi
41408 fi
41409
41410
41411
a848cd7e
SC
41412 COND_BUILD_DEBUG="#"
41413 if test "x$BUILD" = "xdebug" ; then
41414 COND_BUILD_DEBUG=""
41415 fi
41416
41417 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41418 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41419 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41420 fi
41421
41422 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41423 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41424 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41425 fi
41426
41427 COND_BUILD_DEBUG_UNICODE_0="#"
41428 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41429 COND_BUILD_DEBUG_UNICODE_0=""
41430 fi
41431
41432 COND_BUILD_DEBUG_UNICODE_1="#"
41433 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41434 COND_BUILD_DEBUG_UNICODE_1=""
41435 fi
41436
41437 COND_BUILD_RELEASE="#"
41438 if test "x$BUILD" = "xrelease" ; then
41439 COND_BUILD_RELEASE=""
41440 fi
41441
41442 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41443 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41444 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41445 fi
41446
41447 COND_BUILD_RELEASE_UNICODE_0="#"
41448 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41449 COND_BUILD_RELEASE_UNICODE_0=""
41450 fi
41451
41452 COND_BUILD_RELEASE_UNICODE_1="#"
41453 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41454 COND_BUILD_RELEASE_UNICODE_1=""
41455 fi
41456
41457 COND_DEBUG_FLAG_1="#"
41458 if test "x$DEBUG_FLAG" = "x1" ; then
41459 COND_DEBUG_FLAG_1=""
41460 fi
41461
41462 COND_DEBUG_INFO_0="#"
41463 if test "x$DEBUG_INFO" = "x0" ; then
41464 COND_DEBUG_INFO_0=""
41465 fi
41466
41467 COND_DEBUG_INFO_1="#"
41468 if test "x$DEBUG_INFO" = "x1" ; then
41469 COND_DEBUG_INFO_1=""
41470 fi
41471
41472 COND_DEPS_TRACKING_0="#"
41473 if test "x$DEPS_TRACKING" = "x0" ; then
41474 COND_DEPS_TRACKING_0=""
41475 fi
41476
41477 COND_DEPS_TRACKING_1="#"
41478 if test "x$DEPS_TRACKING" = "x1" ; then
41479 COND_DEPS_TRACKING_1=""
41480 fi
41481
41482 COND_GCC_PCH_1="#"
41483 if test "x$GCC_PCH" = "x1" ; then
41484 COND_GCC_PCH_1=""
41485 fi
41486
41487 COND_MONOLITHIC_0="#"
41488 if test "x$MONOLITHIC" = "x0" ; then
41489 COND_MONOLITHIC_0=""
41490 fi
41491
41492 COND_MONOLITHIC_0_SHARED_0="#"
41493 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41494 COND_MONOLITHIC_0_SHARED_0=""
41495 fi
41496
41497 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41498 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41499 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41500 fi
41501
90970d69
DE
41502 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
41503 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41504 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
41505 fi
41506
a848cd7e
SC
41507 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41508 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41509 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41510 fi
41511
a848cd7e
SC
41512 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41513 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41514 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41515 fi
41516
ceec2216
RL
41517 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
41518 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
41519 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
41520 fi
41521
a848cd7e
SC
41522 COND_MONOLITHIC_0_SHARED_1="#"
41523 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41524 COND_MONOLITHIC_0_SHARED_1=""
41525 fi
41526
41527 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41528 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41529 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41530 fi
41531
90970d69
DE
41532 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
41533 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41534 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
41535 fi
41536
a848cd7e
SC
41537 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41538 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41539 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41540 fi
41541
a848cd7e
SC
41542 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41543 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41544 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41545 fi
41546
ceec2216
RL
41547 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
41548 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
41549 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
41550 fi
41551
a848cd7e
SC
41552 COND_MONOLITHIC_0_USE_ODBC_1="#"
41553 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41554 COND_MONOLITHIC_0_USE_ODBC_1=""
41555 fi
41556
41557 COND_MONOLITHIC_1="#"
41558 if test "x$MONOLITHIC" = "x1" ; then
41559 COND_MONOLITHIC_1=""
41560 fi
41561
41562 COND_MONOLITHIC_1_SHARED_0="#"
41563 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41564 COND_MONOLITHIC_1_SHARED_0=""
41565 fi
41566
41567 COND_MONOLITHIC_1_SHARED_1="#"
41568 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41569 COND_MONOLITHIC_1_SHARED_1=""
41570 fi
41571
41572 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41573 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41574 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41575 fi
41576
41577 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41578 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41579 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41580 fi
41581
41582 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41583 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41584 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41585 fi
41586
41587 COND_PLATFORM_MACOSX_1="#"
41588 if test "x$PLATFORM_MACOSX" = "x1" ; then
41589 COND_PLATFORM_MACOSX_1=""
41590 fi
41591
a30f955f
VS
41592 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41593 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41594 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41595 fi
41596
a848cd7e
SC
41597 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41598 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41599 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41600 fi
41601
41602 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41603 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41604 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41605 fi
41606
41607 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41608 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41609 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41610 fi
41611
fc480dc1
DE
41612 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41613 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41614 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41615 fi
41616
1e9e8aba
DE
41617 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41618 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41619 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41620 fi
41621
ebee3cd0
VS
41622 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41623 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41624 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41625 fi
41626
41627 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41628 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41629 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41630 fi
41631
a848cd7e
SC
41632 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41633 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41634 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41635 fi
41636
41637 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41638 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41639 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41640 fi
41641
b48a2016
DE
41642 COND_PLATFORM_MACOS_1="#"
41643 if test "x$PLATFORM_MACOS" = "x1" ; then
41644 COND_PLATFORM_MACOS_1=""
41645 fi
41646
a848cd7e
SC
41647 COND_PLATFORM_MAC_1="#"
41648 if test "x$PLATFORM_MAC" = "x1" ; then
41649 COND_PLATFORM_MAC_1=""
41650 fi
41651
41652 COND_PLATFORM_OS2_1="#"
41653 if test "x$PLATFORM_OS2" = "x1" ; then
41654 COND_PLATFORM_OS2_1=""
41655 fi
41656
41657 COND_PLATFORM_UNIX_0="#"
41658 if test "x$PLATFORM_UNIX" = "x0" ; then
41659 COND_PLATFORM_UNIX_0=""
41660 fi
41661
41662 COND_PLATFORM_UNIX_1="#"
41663 if test "x$PLATFORM_UNIX" = "x1" ; then
41664 COND_PLATFORM_UNIX_1=""
41665 fi
41666
41667 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41668 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41669 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41670 fi
41671
41672 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41673 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41674 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41675 fi
41676
41677 COND_PLATFORM_WIN32_0="#"
41678 if test "x$PLATFORM_WIN32" = "x0" ; then
41679 COND_PLATFORM_WIN32_0=""
41680 fi
41681
41682 COND_PLATFORM_WIN32_1="#"
41683 if test "x$PLATFORM_WIN32" = "x1" ; then
41684 COND_PLATFORM_WIN32_1=""
41685 fi
41686
41687 COND_SHARED_0="#"
41688 if test "x$SHARED" = "x0" ; then
41689 COND_SHARED_0=""
41690 fi
41691
ceec2216
RL
41692 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
41693 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41694 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
41695 fi
41696
41697 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
41698 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41699 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
41700 fi
41701
41702 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
41703 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41704 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
41705 fi
41706
a848cd7e
SC
41707 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41708 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41709 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41710 fi
41711
41712 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41713 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41714 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41715 fi
41716
41717 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41718 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41719 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41720 fi
41721
41722 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41723 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41724 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41725 fi
41726
41727 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41728 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41729 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41730 fi
41731
41732 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41733 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41734 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41735 fi
41736
41737 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41738 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41739 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41740 fi
41741
41742 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41743 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41744 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41745 fi
41746
41747 COND_SHARED_1="#"
41748 if test "x$SHARED" = "x1" ; then
41749 COND_SHARED_1=""
41750 fi
41751
41752 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41753 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41754 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41755 fi
41756
a30f955f
VS
41757 COND_TOOLKIT_="#"
41758 if test "x$TOOLKIT" = "x" ; then
41759 COND_TOOLKIT_=""
41760 fi
41761
a848cd7e
SC
41762 COND_TOOLKIT_COCOA="#"
41763 if test "x$TOOLKIT" = "xCOCOA" ; then
41764 COND_TOOLKIT_COCOA=""
41765 fi
41766
a49baeab
DE
41767 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41768 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41769 COND_TOOLKIT_COCOA_USE_GUI_1=""
41770 fi
41771
a848cd7e
SC
41772 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41773 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41774 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41775 fi
41776
41777 COND_TOOLKIT_GTK="#"
41778 if test "x$TOOLKIT" = "xGTK" ; then
41779 COND_TOOLKIT_GTK=""
41780 fi
41781
41782 COND_TOOLKIT_GTK_USE_GUI_1="#"
41783 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41784 COND_TOOLKIT_GTK_USE_GUI_1=""
41785 fi
41786
41787 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41788 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41789 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41790 fi
41791
41792 COND_TOOLKIT_MAC="#"
41793 if test "x$TOOLKIT" = "xMAC" ; then
41794 COND_TOOLKIT_MAC=""
41795 fi
41796
41797 COND_TOOLKIT_MAC_USE_GUI_1="#"
41798 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41799 COND_TOOLKIT_MAC_USE_GUI_1=""
41800 fi
41801
41802 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41803 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41804 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41805 fi
41806
41807 COND_TOOLKIT_MGL="#"
41808 if test "x$TOOLKIT" = "xMGL" ; then
41809 COND_TOOLKIT_MGL=""
41810 fi
41811
41812 COND_TOOLKIT_MGL_USE_GUI_1="#"
41813 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41814 COND_TOOLKIT_MGL_USE_GUI_1=""
41815 fi
41816
41817 COND_TOOLKIT_MOTIF="#"
41818 if test "x$TOOLKIT" = "xMOTIF" ; then
41819 COND_TOOLKIT_MOTIF=""
41820 fi
41821
41822 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41823 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41824 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41825 fi
41826
41827 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41828 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41829 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41830 fi
41831
41832 COND_TOOLKIT_MSW="#"
41833 if test "x$TOOLKIT" = "xMSW" ; then
41834 COND_TOOLKIT_MSW=""
41835 fi
41836
41837 COND_TOOLKIT_MSW_USE_GUI_1="#"
41838 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41839 COND_TOOLKIT_MSW_USE_GUI_1=""
41840 fi
41841
41842 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41843 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41844 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41845 fi
41846
41847 COND_TOOLKIT_PM="#"
41848 if test "x$TOOLKIT" = "xPM" ; then
41849 COND_TOOLKIT_PM=""
41850 fi
41851
41852 COND_TOOLKIT_PM_USE_GUI_1="#"
41853 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41854 COND_TOOLKIT_PM_USE_GUI_1=""
41855 fi
41856
41857 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41858 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41859 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41860 fi
41861
3fd9c298
DE
41862 COND_TOOLKIT_WINCE="#"
41863 if test "x$TOOLKIT" = "xWINCE" ; then
41864 COND_TOOLKIT_WINCE=""
41865 fi
41866
41867 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41868 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41869 COND_TOOLKIT_WINCE_USE_GUI_1=""
41870 fi
41871
41872 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41873 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41874 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41875 fi
41876
a848cd7e
SC
41877 COND_TOOLKIT_X11="#"
41878 if test "x$TOOLKIT" = "xX11" ; then
41879 COND_TOOLKIT_X11=""
41880 fi
41881
41882 COND_TOOLKIT_X11_USE_GUI_1="#"
41883 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41884 COND_TOOLKIT_X11_USE_GUI_1=""
41885 fi
41886
41887 COND_UNICODE_1="#"
41888 if test "x$UNICODE" = "x1" ; then
41889 COND_UNICODE_1=""
41890 fi
41891
41892 COND_USE_EXCEPTIONS_0="#"
41893 if test "x$USE_EXCEPTIONS" = "x0" ; then
41894 COND_USE_EXCEPTIONS_0=""
41895 fi
41896
41897 COND_USE_EXCEPTIONS_1="#"
41898 if test "x$USE_EXCEPTIONS" = "x1" ; then
41899 COND_USE_EXCEPTIONS_1=""
41900 fi
41901
41902 COND_USE_GUI_0="#"
41903 if test "x$USE_GUI" = "x0" ; then
41904 COND_USE_GUI_0=""
41905 fi
41906
41907 COND_USE_GUI_1="#"
41908 if test "x$USE_GUI" = "x1" ; then
41909 COND_USE_GUI_1=""
41910 fi
41911
41912 COND_USE_GUI_1_WXUNIV_0="#"
41913 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41914 COND_USE_GUI_1_WXUNIV_0=""
41915 fi
41916
41917 COND_USE_GUI_1_WXUNIV_1="#"
41918 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41919 COND_USE_GUI_1_WXUNIV_1=""
41920 fi
41921
41922 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41923 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41924 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41925 fi
41926
41927 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41928 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41929 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41930 fi
41931
41932 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41933 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41934 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41935 fi
41936
ceec2216
RL
41937 COND_USE_ODBC_1="#"
41938 if test "x$USE_ODBC" = "x1" ; then
41939 COND_USE_ODBC_1=""
41940 fi
41941
ffa0583f
RL
41942 COND_USE_OPENGL_1="#"
41943 if test "x$USE_OPENGL" = "x1" ; then
41944 COND_USE_OPENGL_1=""
41945 fi
41946
a848cd7e
SC
41947 COND_USE_PLUGINS_0="#"
41948 if test "x$USE_PLUGINS" = "x0" ; then
41949 COND_USE_PLUGINS_0=""
41950 fi
41951
41952 COND_USE_SOSYMLINKS_1="#"
41953 if test "x$USE_SOSYMLINKS" = "x1" ; then
41954 COND_USE_SOSYMLINKS_1=""
41955 fi
41956
41957 COND_USE_SOVERLINUX_1="#"
41958 if test "x$USE_SOVERLINUX" = "x1" ; then
41959 COND_USE_SOVERLINUX_1=""
41960 fi
41961
41962 COND_USE_SOVERSION_0="#"
41963 if test "x$USE_SOVERSION" = "x0" ; then
41964 COND_USE_SOVERSION_0=""
41965 fi
41966
41967 COND_USE_SOVERSOLARIS_1="#"
41968 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41969 COND_USE_SOVERSOLARIS_1=""
41970 fi
41971
a13a7f89
RL
41972 COND_USE_XRC_1="#"
41973 if test "x$USE_XRC" = "x1" ; then
41974 COND_USE_XRC_1=""
41975 fi
41976
a848cd7e
SC
41977 COND_WITH_PLUGIN_SDL_1="#"
41978 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41979 COND_WITH_PLUGIN_SDL_1=""
41980 fi
41981
1e6eb025
VZ
41982 COND_WXUNIV_0="#"
41983 if test "x$WXUNIV" = "x0" ; then
41984 COND_WXUNIV_0=""
41985 fi
41986
a848cd7e
SC
41987 COND_WXUNIV_1="#"
41988 if test "x$WXUNIV" = "x1" ; then
41989 COND_WXUNIV_1=""
41990 fi
41991
41992 COND_WXUSE_EXPAT_BUILTIN="#"
41993 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41994 COND_WXUSE_EXPAT_BUILTIN=""
41995 fi
41996
41997 COND_WXUSE_LIBJPEG_BUILTIN="#"
41998 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41999 COND_WXUSE_LIBJPEG_BUILTIN=""
42000 fi
42001
42002 COND_WXUSE_LIBPNG_BUILTIN="#"
42003 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42004 COND_WXUSE_LIBPNG_BUILTIN=""
42005 fi
42006
42007 COND_WXUSE_LIBTIFF_BUILTIN="#"
42008 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42009 COND_WXUSE_LIBTIFF_BUILTIN=""
42010 fi
42011
42012 COND_WXUSE_ODBC_BUILTIN="#"
42013 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
42014 COND_WXUSE_ODBC_BUILTIN=""
42015 fi
42016
42017 COND_WXUSE_REGEX_BUILTIN="#"
42018 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
42019 COND_WXUSE_REGEX_BUILTIN=""
42020 fi
42021
42022 COND_WXUSE_ZLIB_BUILTIN="#"
42023 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
42024 COND_WXUSE_ZLIB_BUILTIN=""
42025 fi
42026
42027
42028
2057db16
VS
42029 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
42030 { { 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
42031echo "$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;}
42032 { (exit 1); exit 1; }; }
42033 fi
42034
a848cd7e 42035
ceec2216
RL
42036if test "$wxUSE_SHARED" = "yes"; then
42037
42038 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
42039 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
42040
5b674b9d
DE
42041 case "${host}" in
42042 *-pc-os2_emx | *-pc-os2-emx )
42043 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42044 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42045 cp -p ${srcdir}/src/os2/dllnames.sh .
42046 cp -p ${srcdir}/src/os2/dllar.sh .
42047 ;;
42048 esac
ceec2216
RL
42049else
42050
42051 EXE_LINKER="$CXX -o"
42052
42053fi
a848cd7e 42054
74b84332 42055GCC_PRAGMA_FLAGS=""
c08ebc62
DE
42056PCH_FLAGS=""
42057if test $GCC_PCH = 1 ; then
42058 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42059 PCH_FLAGS="-DWX_PRECOMP"
42060else
a848cd7e
SC
42061 case "${host}" in
42062 powerpc-*-darwin* )
74b84332 42063 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 42064 ;;
bea8e651 42065 *-*-mingw32* )
1f344abf
VS
42066 if test "$wxUSE_STL" = "yes" -o \
42067 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
42068 "$wxUSE_NO_RTTI" != "yes"; then
42069 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
42070echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
42071 cat >conftest.$ac_ext <<_ACEOF
42072/* confdefs.h. */
42073_ACEOF
42074cat confdefs.h >>conftest.$ac_ext
42075cat >>conftest.$ac_ext <<_ACEOF
42076/* end confdefs.h. */
42077
3314e67b
RR
42078int
42079main ()
42080{
42081#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
42082 #error "Not GCC 3.2 or greater"
42083 #endif
42084
42085 ;
42086 return 0;
42087}
42088_ACEOF
42089rm -f conftest.$ac_objext
42090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42091 (eval $ac_compile) 2>conftest.er1
42092 ac_status=$?
42093 grep -v '^ *+' conftest.er1 >conftest.err
42094 rm -f conftest.er1
42095 cat conftest.err >&5
42096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42097 (exit $ac_status); } &&
89be85c2
VS
42098 { ac_try='test -z "$ac_c_werror_flag"
42099 || test ! -s conftest.err'
3314e67b
RR
42100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42101 (eval $ac_try) 2>&5
42102 ac_status=$?
42103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42104 (exit $ac_status); }; } &&
42105 { ac_try='test -s conftest.$ac_objext'
42106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42107 (eval $ac_try) 2>&5
42108 ac_status=$?
42109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110 (exit $ac_status); }; }; then
42111 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42112 echo "$as_me:$LINENO: result: yes" >&5
42113echo "${ECHO_T}yes" >&6
42114else
42115 echo "$as_me: failed program was:" >&5
42116sed 's/^/| /' conftest.$ac_ext >&5
42117
42118echo "$as_me:$LINENO: result: no" >&5
42119echo "${ECHO_T}no" >&6
42120fi
42121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42122 fi
42123 ;;
42124 *-pc-os2_emx | *-pc-os2-emx )
42125 if test "$wxUSE_STL" = "yes"; then
42126 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
42127echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
42128 cat >conftest.$ac_ext <<_ACEOF
42129/* confdefs.h. */
42130_ACEOF
42131cat confdefs.h >>conftest.$ac_ext
42132cat >>conftest.$ac_ext <<_ACEOF
42133/* end confdefs.h. */
42134
bea8e651
MB
42135int
42136main ()
42137{
1f344abf 42138#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
42139 #error "Not GCC 3.2 or greater"
42140 #endif
42141
42142 ;
42143 return 0;
42144}
42145_ACEOF
42146rm -f conftest.$ac_objext
42147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42148 (eval $ac_compile) 2>conftest.er1
bea8e651 42149 ac_status=$?
ac1cb8d3
VS
42150 grep -v '^ *+' conftest.er1 >conftest.err
42151 rm -f conftest.er1
42152 cat conftest.err >&5
bea8e651
MB
42153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42154 (exit $ac_status); } &&
89be85c2
VS
42155 { ac_try='test -z "$ac_c_werror_flag"
42156 || test ! -s conftest.err'
ac1cb8d3
VS
42157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42158 (eval $ac_try) 2>&5
42159 ac_status=$?
42160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42161 (exit $ac_status); }; } &&
42162 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
42163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42164 (eval $ac_try) 2>&5
42165 ac_status=$?
42166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42167 (exit $ac_status); }; }; then
74b84332 42168 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
42169 echo "$as_me:$LINENO: result: yes" >&5
42170echo "${ECHO_T}yes" >&6
42171else
42172 echo "$as_me: failed program was:" >&5
42173sed 's/^/| /' conftest.$ac_ext >&5
42174
42175echo "$as_me:$LINENO: result: no" >&5
42176echo "${ECHO_T}no" >&6
42177fi
ac1cb8d3 42178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
42179 fi
42180 ;;
a848cd7e
SC
42181 esac
42182fi
d2083416 42183CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
42184
42185
42186SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
42187
42188
42189
42190
42191
42192
42193
42194
42195
42196
42197
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
a848cd7e
SC
42229
42230
42231
42232
42233
42234
42235
42236
42237
42238
42239
42240
42241
42242
42243
42244
42245
42246
74b84332 42247
a848cd7e
SC
42248
42249
42250echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42251echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42252set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42253if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42254 echo $ECHO_N "(cached) $ECHO_C" >&6
42255else
42256 cat >conftest.make <<\_ACEOF
42257all:
42258 @echo 'ac_maketemp="$(MAKE)"'
42259_ACEOF
42260# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42261eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42262if test -n "$ac_maketemp"; then
42263 eval ac_cv_prog_make_${ac_make}_set=yes
42264else
42265 eval ac_cv_prog_make_${ac_make}_set=no
42266fi
42267rm -f conftest.make
42268fi
42269if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42270 echo "$as_me:$LINENO: result: yes" >&5
42271echo "${ECHO_T}yes" >&6
42272 SET_MAKE=
42273else
42274 echo "$as_me:$LINENO: result: no" >&5
42275echo "${ECHO_T}no" >&6
42276 SET_MAKE="MAKE=${MAKE-make}"
42277fi
42278
42279
a848cd7e 42280
ceec2216
RL
42281 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
42282
a848cd7e 42283
ceec2216 42284 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 42285
a848cd7e 42286
ceec2216 42287 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 42288
ceec2216
RL
42289
42290 ac_config_files="$ac_config_files version-script Makefile"
42291
42292
42293 ac_config_commands="$ac_config_commands wx-config
42294 "
a848cd7e
SC
42295
42296
9103d280
RL
42297
42298
a848cd7e
SC
42299if test "$wxUSE_GUI" = "yes"; then
42300 SUBDIRS="samples demos utils contrib"
42301else SUBDIRS="samples utils"
42302fi
42303
42304
42305
42306# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42307if test "${with_cppunit_prefix+set}" = set; then
42308 withval="$with_cppunit_prefix"
42309 cppunit_config_prefix="$withval"
42310else
42311 cppunit_config_prefix=""
42312fi;
42313
42314# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42315if test "${with_cppunit_exec_prefix+set}" = set; then
42316 withval="$with_cppunit_exec_prefix"
42317 cppunit_config_exec_prefix="$withval"
42318else
42319 cppunit_config_exec_prefix=""
42320fi;
42321
42322 if test x$cppunit_config_exec_prefix != x ; then
42323 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42324 if test x${CPPUNIT_CONFIG+set} != xset ; then
42325 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42326 fi
42327 fi
42328 if test x$cppunit_config_prefix != x ; then
42329 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42330 if test x${CPPUNIT_CONFIG+set} != xset ; then
42331 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42332 fi
42333 fi
42334
42335 # Extract the first word of "cppunit-config", so it can be a program name with args.
42336set dummy cppunit-config; ac_word=$2
42337echo "$as_me:$LINENO: checking for $ac_word" >&5
42338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42339if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42340 echo $ECHO_N "(cached) $ECHO_C" >&6
42341else
42342 case $CPPUNIT_CONFIG in
42343 [\\/]* | ?:[\\/]*)
42344 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42345 ;;
42346 *)
42347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42348for as_dir in $PATH
42349do
42350 IFS=$as_save_IFS
42351 test -z "$as_dir" && as_dir=.
42352 for ac_exec_ext in '' $ac_executable_extensions; do
42353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42354 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42356 break 2
42357 fi
42358done
42359done
42360
42361 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42362 ;;
42363esac
42364fi
42365CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42366
42367if test -n "$CPPUNIT_CONFIG"; then
42368 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42369echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42370else
42371 echo "$as_me:$LINENO: result: no" >&5
42372echo "${ECHO_T}no" >&6
42373fi
42374
42375 cppunit_version_min=1.8.0
42376
42377 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42378echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42379 no_cppunit=""
42380 if test "$CPPUNIT_CONFIG" = "no" ; then
42381 no_cppunit=yes
42382 else
42383 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42384 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42385 cppunit_version=`$CPPUNIT_CONFIG --version`
42386
42387 cppunit_major_version=`echo $cppunit_version | \
42388 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42389 cppunit_minor_version=`echo $cppunit_version | \
42390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42391 cppunit_micro_version=`echo $cppunit_version | \
42392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42393
42394 cppunit_major_min=`echo $cppunit_version_min | \
42395 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42396 cppunit_minor_min=`echo $cppunit_version_min | \
42397 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42398 cppunit_micro_min=`echo $cppunit_version_min | \
42399 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42400
42401 cppunit_version_proper=`expr \
42402 $cppunit_major_version \> $cppunit_major_min \| \
42403 $cppunit_major_version \= $cppunit_major_min \& \
42404 $cppunit_minor_version \> $cppunit_minor_min \| \
42405 $cppunit_major_version \= $cppunit_major_min \& \
42406 $cppunit_minor_version \= $cppunit_minor_min \& \
42407 $cppunit_micro_version \>= $cppunit_micro_min `
42408
42409 if test "$cppunit_version_proper" = "1" ; then
42410 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
42411echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
42412 else
42413 echo "$as_me:$LINENO: result: no" >&5
42414echo "${ECHO_T}no" >&6
42415 no_cppunit=yes
42416 fi
42417 fi
42418
42419 if test "x$no_cppunit" = x ; then
c2218763 42420 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
42421 else
42422 CPPUNIT_CFLAGS=""
42423 CPPUNIT_LIBS=""
c2218763 42424 :
a848cd7e
SC
42425 fi
42426
42427
42428
42429
42430
42431for subdir in `echo $SUBDIRS`; do
42432 if test -d ${srcdir}/${subdir} ; then
42433 if test "$wxUSE_GUI" = "yes"; then
42434 if test ${subdir} = "samples"; then
42435 makefiles="samples/Makefile.in $makefiles"
42436 for sample in `echo $SAMPLES_SUBDIRS`; do
42437 if test -d $srcdir/samples/$sample; then
42438 makefiles="samples/$sample/Makefile.in $makefiles"
42439 fi
42440 done
42441 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42442 fi
42443 else if test ${subdir} = "samples"; then
42444 makefiles="samples/Makefile.in samples/console/Makefile.in"
42445 elif test ${subdir} = "utils"; then
6537ccf8
VS
42446 makefiles=""
42447 for util in HelpGen tex2rtf ; do
42448 if test -d $srcdir/utils/$util ; then
42449 makefiles="utils/$util/Makefile.in \
42450 utils/$util/src/Makefile.in \
42451 $makefiles"
42452 fi
42453 done
a848cd7e
SC
42454 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42455 fi
42456 fi
42457
42458 for mkin in $makefiles ; do
42459 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42460 ac_config_files="$ac_config_files $mk"
42461
42462 done
42463 fi
42464done
42465
42466
42467cat >confcache <<\_ACEOF
42468# This file is a shell script that caches the results of configure
42469# tests run on this system so they can be shared between configure
42470# scripts and configure runs, see configure's option --config-cache.
42471# It is not useful on other systems. If it contains results you don't
42472# want to keep, you may remove or edit it.
42473#
42474# config.status only pays attention to the cache file if you give it
42475# the --recheck option to rerun configure.
42476#
42477# `ac_cv_env_foo' variables (set or unset) will be overridden when
42478# loading this file, other *unset* `ac_cv_foo' will be assigned the
42479# following values.
42480
42481_ACEOF
42482
42483# The following way of writing the cache mishandles newlines in values,
42484# but we know of no workaround that is simple, portable, and efficient.
42485# So, don't put newlines in cache variables' values.
42486# Ultrix sh set writes to stderr and can't be redirected directly,
42487# and sets the high bit in the cache file unless we assign to the vars.
42488{
42489 (set) 2>&1 |
42490 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42491 *ac_space=\ *)
42492 # `set' does not quote correctly, so add quotes (double-quote
42493 # substitution turns \\\\ into \\, and sed turns \\ into \).
42494 sed -n \
ac1cb8d3
VS
42495 "s/'/'\\\\''/g;
42496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42497 ;;
42498 *)
42499 # `set' quotes correctly as required by POSIX, so do not add quotes.
42500 sed -n \
ac1cb8d3 42501 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42502 ;;
42503 esac;
42504} |
42505 sed '
42506 t clear
42507 : clear
42508 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42509 t end
42510 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42511 : end' >>confcache
42512if diff $cache_file confcache >/dev/null 2>&1; then :; else
42513 if test -w $cache_file; then
42514 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42515 cat confcache >$cache_file
42516 else
42517 echo "not updating unwritable cache $cache_file"
42518 fi
42519fi
42520rm -f confcache
42521
42522test "x$prefix" = xNONE && prefix=$ac_default_prefix
42523# Let make expand exec_prefix.
42524test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42525
42526# VPATH may cause trouble with some makes, so we remove $(srcdir),
42527# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42528# trailing colons and then remove the whole line if VPATH becomes empty
42529# (actually we leave an empty line to preserve line numbers).
42530if test "x$srcdir" = x.; then
ac1cb8d3 42531 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42532s/:*\$(srcdir):*/:/;
42533s/:*\${srcdir}:*/:/;
42534s/:*@srcdir@:*/:/;
ac1cb8d3 42535s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42536s/:*$//;
ac1cb8d3 42537s/^[^=]*=[ ]*$//;
a848cd7e
SC
42538}'
42539fi
42540
42541DEFS=-DHAVE_CONFIG_H
42542
42543ac_libobjs=
42544ac_ltlibobjs=
42545for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42546 # 1. Remove the extension, and $U if already installed.
42547 ac_i=`echo "$ac_i" |
ac1cb8d3 42548 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42549 # 2. Add them.
42550 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42551 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42552done
42553LIBOBJS=$ac_libobjs
42554
42555LTLIBOBJS=$ac_ltlibobjs
42556
42557
42558
42559: ${CONFIG_STATUS=./config.status}
42560ac_clean_files_save=$ac_clean_files
42561ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42562{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42563echo "$as_me: creating $CONFIG_STATUS" >&6;}
42564cat >$CONFIG_STATUS <<_ACEOF
42565#! $SHELL
42566# Generated by $as_me.
42567# Run this file to recreate the current configuration.
42568# Compiler output produced by configure, useful for debugging
42569# configure, is in config.log if it exists.
42570
42571debug=false
42572ac_cs_recheck=false
42573ac_cs_silent=false
42574SHELL=\${CONFIG_SHELL-$SHELL}
42575_ACEOF
42576
42577cat >>$CONFIG_STATUS <<\_ACEOF
42578## --------------------- ##
42579## M4sh Initialization. ##
42580## --------------------- ##
42581
42582# Be Bourne compatible
42583if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42584 emulate sh
42585 NULLCMD=:
42586 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42587 # is contrary to our usage. Disable this feature.
42588 alias -g '${1+"$@"}'='"$@"'
42589elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42590 set -o posix
42591fi
ac1cb8d3 42592DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42593
42594# Support unset when possible.
ac1cb8d3 42595if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42596 as_unset=unset
42597else
42598 as_unset=false
42599fi
42600
42601
42602# Work around bugs in pre-3.0 UWIN ksh.
42603$as_unset ENV MAIL MAILPATH
42604PS1='$ '
42605PS2='> '
42606PS4='+ '
42607
42608# NLS nuisances.
42609for as_var in \
42610 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42611 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42612 LC_TELEPHONE LC_TIME
42613do
ac1cb8d3 42614 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42615 eval $as_var=C; export $as_var
42616 else
42617 $as_unset $as_var
42618 fi
42619done
42620
42621# Required to use basename.
42622if expr a : '\(a\)' >/dev/null 2>&1; then
42623 as_expr=expr
42624else
42625 as_expr=false
42626fi
42627
42628if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42629 as_basename=basename
42630else
42631 as_basename=false
42632fi
42633
42634
42635# Name of the executable.
42636as_me=`$as_basename "$0" ||
42637$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42638 X"$0" : 'X\(//\)$' \| \
42639 X"$0" : 'X\(/\)$' \| \
42640 . : '\(.\)' 2>/dev/null ||
42641echo X/"$0" |
42642 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42643 /^X\/\(\/\/\)$/{ s//\1/; q; }
42644 /^X\/\(\/\).*/{ s//\1/; q; }
42645 s/.*/./; q'`
42646
42647
42648# PATH needs CR, and LINENO needs CR and PATH.
42649# Avoid depending upon Character Ranges.
42650as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42651as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42652as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42653as_cr_digits='0123456789'
42654as_cr_alnum=$as_cr_Letters$as_cr_digits
42655
42656# The user is always right.
42657if test "${PATH_SEPARATOR+set}" != set; then
42658 echo "#! /bin/sh" >conf$$.sh
42659 echo "exit 0" >>conf$$.sh
42660 chmod +x conf$$.sh
42661 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42662 PATH_SEPARATOR=';'
42663 else
42664 PATH_SEPARATOR=:
42665 fi
42666 rm -f conf$$.sh
42667fi
42668
42669
42670 as_lineno_1=$LINENO
42671 as_lineno_2=$LINENO
42672 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42673 test "x$as_lineno_1" != "x$as_lineno_2" &&
42674 test "x$as_lineno_3" = "x$as_lineno_2" || {
42675 # Find who we are. Look in the path if we contain no path at all
42676 # relative or not.
42677 case $0 in
42678 *[\\/]* ) as_myself=$0 ;;
42679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42680for as_dir in $PATH
42681do
42682 IFS=$as_save_IFS
42683 test -z "$as_dir" && as_dir=.
42684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42685done
42686
42687 ;;
42688 esac
42689 # We did not find ourselves, most probably we were run as `sh COMMAND'
42690 # in which case we are not to be found in the path.
42691 if test "x$as_myself" = x; then
42692 as_myself=$0
42693 fi
42694 if test ! -f "$as_myself"; then
42695 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42696echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42697 { (exit 1); exit 1; }; }
42698 fi
42699 case $CONFIG_SHELL in
42700 '')
42701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42702for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42703do
42704 IFS=$as_save_IFS
42705 test -z "$as_dir" && as_dir=.
42706 for as_base in sh bash ksh sh5; do
42707 case $as_dir in
42708 /*)
42709 if ("$as_dir/$as_base" -c '
42710 as_lineno_1=$LINENO
42711 as_lineno_2=$LINENO
42712 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42713 test "x$as_lineno_1" != "x$as_lineno_2" &&
42714 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42715 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42716 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42717 CONFIG_SHELL=$as_dir/$as_base
42718 export CONFIG_SHELL
42719 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42720 fi;;
42721 esac
42722 done
42723done
42724;;
42725 esac
42726
42727 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42728 # uniformly replaced by the line number. The first 'sed' inserts a
42729 # line-number line before each line; the second 'sed' does the real
42730 # work. The second script uses 'N' to pair each line-number line
42731 # with the numbered line, and appends trailing '-' during
42732 # substitution so that $LINENO is not a special case at line end.
42733 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42734 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42735 sed '=' <$as_myself |
42736 sed '
42737 N
42738 s,$,-,
42739 : loop
42740 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42741 t loop
42742 s,-$,,
42743 s,^['$as_cr_digits']*\n,,
42744 ' >$as_me.lineno &&
42745 chmod +x $as_me.lineno ||
42746 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42747echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42748 { (exit 1); exit 1; }; }
42749
42750 # Don't try to exec as it changes $[0], causing all sort of problems
42751 # (the dirname of $[0] is not the place where we might find the
42752 # original and so on. Autoconf is especially sensible to this).
42753 . ./$as_me.lineno
42754 # Exit status is that of the last command.
42755 exit
42756}
42757
42758
42759case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42760 *c*,-n*) ECHO_N= ECHO_C='
42761' ECHO_T=' ' ;;
42762 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42763 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42764esac
42765
42766if expr a : '\(a\)' >/dev/null 2>&1; then
42767 as_expr=expr
42768else
42769 as_expr=false
42770fi
42771
42772rm -f conf$$ conf$$.exe conf$$.file
42773echo >conf$$.file
42774if ln -s conf$$.file conf$$ 2>/dev/null; then
42775 # We could just check for DJGPP; but this test a) works b) is more generic
42776 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42777 if test -f conf$$.exe; then
42778 # Don't use ln at all; we don't have any links
42779 as_ln_s='cp -p'
42780 else
42781 as_ln_s='ln -s'
42782 fi
42783elif ln conf$$.file conf$$ 2>/dev/null; then
42784 as_ln_s=ln
42785else
42786 as_ln_s='cp -p'
42787fi
42788rm -f conf$$ conf$$.exe conf$$.file
42789
42790if mkdir -p . 2>/dev/null; then
42791 as_mkdir_p=:
42792else
ac1cb8d3 42793 test -d ./-p && rmdir ./-p
a848cd7e
SC
42794 as_mkdir_p=false
42795fi
42796
42797as_executable_p="test -f"
42798
42799# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42800as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42801
42802# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42803as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42804
42805
42806# IFS
42807# We need space, tab and new line, in precisely that order.
42808as_nl='
42809'
42810IFS=" $as_nl"
42811
42812# CDPATH.
42813$as_unset CDPATH
42814
42815exec 6>&1
42816
42817# Open the log real soon, to keep \$[0] and so on meaningful, and to
42818# report actual input values of CONFIG_FILES etc. instead of their
42819# values after options handling. Logging --version etc. is OK.
42820exec 5>>config.log
42821{
42822 echo
42823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42824## Running $as_me. ##
42825_ASBOX
42826} >&5
42827cat >&5 <<_CSEOF
42828
81f90336 42829This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 42830generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42831
42832 CONFIG_FILES = $CONFIG_FILES
42833 CONFIG_HEADERS = $CONFIG_HEADERS
42834 CONFIG_LINKS = $CONFIG_LINKS
42835 CONFIG_COMMANDS = $CONFIG_COMMANDS
42836 $ $0 $@
42837
42838_CSEOF
42839echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42840echo >&5
42841_ACEOF
42842
42843# Files that config.status was made for.
42844if test -n "$ac_config_files"; then
42845 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42846fi
42847
42848if test -n "$ac_config_headers"; then
42849 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42850fi
42851
42852if test -n "$ac_config_links"; then
42853 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42854fi
42855
42856if test -n "$ac_config_commands"; then
42857 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42858fi
42859
42860cat >>$CONFIG_STATUS <<\_ACEOF
42861
42862ac_cs_usage="\
42863\`$as_me' instantiates files from templates according to the
42864current configuration.
42865
42866Usage: $0 [OPTIONS] [FILE]...
42867
42868 -h, --help print this help, then exit
42869 -V, --version print version number, then exit
42870 -q, --quiet do not print progress messages
42871 -d, --debug don't remove temporary files
42872 --recheck update $as_me by reconfiguring in the same conditions
42873 --file=FILE[:TEMPLATE]
ac1cb8d3 42874 instantiate the configuration file FILE
a848cd7e 42875 --header=FILE[:TEMPLATE]
ac1cb8d3 42876 instantiate the configuration header FILE
a848cd7e
SC
42877
42878Configuration files:
42879$config_files
42880
42881Configuration headers:
42882$config_headers
42883
42884Configuration commands:
42885$config_commands
42886
42887Report bugs to <bug-autoconf@gnu.org>."
42888_ACEOF
42889
42890cat >>$CONFIG_STATUS <<_ACEOF
42891ac_cs_version="\\
81f90336 42892wxWidgets config.status 2.5.4
ac1cb8d3 42893configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42894 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42895
ac1cb8d3 42896Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42897This config.status script is free software; the Free Software Foundation
42898gives unlimited permission to copy, distribute and modify it."
42899srcdir=$srcdir
42900INSTALL="$INSTALL"
42901_ACEOF
42902
42903cat >>$CONFIG_STATUS <<\_ACEOF
42904# If no file are specified by the user, then we need to provide default
42905# value. By we need to know if files were specified by the user.
42906ac_need_defaults=:
42907while test $# != 0
42908do
42909 case $1 in
42910 --*=*)
42911 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42912 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42913 ac_shift=:
42914 ;;
42915 -*)
42916 ac_option=$1
42917 ac_optarg=$2
42918 ac_shift=shift
42919 ;;
42920 *) # This is not an option, so the user has probably given explicit
42921 # arguments.
42922 ac_option=$1
42923 ac_need_defaults=false;;
42924 esac
42925
42926 case $ac_option in
42927 # Handling of the options.
42928_ACEOF
42929cat >>$CONFIG_STATUS <<\_ACEOF
42930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42931 ac_cs_recheck=: ;;
42932 --version | --vers* | -V )
42933 echo "$ac_cs_version"; exit 0 ;;
42934 --he | --h)
42935 # Conflict between --help and --header
42936 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42937Try \`$0 --help' for more information." >&5
42938echo "$as_me: error: ambiguous option: $1
42939Try \`$0 --help' for more information." >&2;}
42940 { (exit 1); exit 1; }; };;
42941 --help | --hel | -h )
42942 echo "$ac_cs_usage"; exit 0 ;;
42943 --debug | --d* | -d )
42944 debug=: ;;
42945 --file | --fil | --fi | --f )
42946 $ac_shift
42947 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42948 ac_need_defaults=false;;
42949 --header | --heade | --head | --hea )
42950 $ac_shift
42951 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42952 ac_need_defaults=false;;
42953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42954 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42955 ac_cs_silent=: ;;
42956
42957 # This is an error.
42958 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42959Try \`$0 --help' for more information." >&5
42960echo "$as_me: error: unrecognized option: $1
42961Try \`$0 --help' for more information." >&2;}
42962 { (exit 1); exit 1; }; } ;;
42963
42964 *) ac_config_targets="$ac_config_targets $1" ;;
42965
42966 esac
42967 shift
42968done
42969
42970ac_configure_extra_args=
42971
42972if $ac_cs_silent; then
42973 exec 6>/dev/null
42974 ac_configure_extra_args="$ac_configure_extra_args --silent"
42975fi
42976
42977_ACEOF
42978cat >>$CONFIG_STATUS <<_ACEOF
42979if \$ac_cs_recheck; then
42980 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42981 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42982fi
42983
42984_ACEOF
42985
42986cat >>$CONFIG_STATUS <<_ACEOF
42987#
42988# INIT-COMMANDS section.
42989#
42990
ceec2216
RL
42991 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42992 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42993 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42994 LN_S="${LN_S}"
a848cd7e
SC
42995
42996
42997_ACEOF
42998
42999
43000
43001cat >>$CONFIG_STATUS <<\_ACEOF
43002for ac_config_target in $ac_config_targets
43003do
43004 case "$ac_config_target" in
43005 # Handling of arguments.
ceec2216
RL
43006 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
43007 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
43008 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
43009 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43010 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
43011 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
43012 "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
43013 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43014echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43015 { (exit 1); exit 1; }; };;
43016 esac
43017done
43018
43019# If the user did not use the arguments to specify the items to instantiate,
43020# then the envvar interface is used. Set only those that are not.
43021# We use the long form for the default assignment because of an extremely
43022# bizarre bug on SunOS 4.1.3.
43023if $ac_need_defaults; then
43024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43025 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43026 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43027fi
43028
43029# Have a temporary directory for convenience. Make it in the build tree
43030# simply because there is no reason to put it here, and in addition,
43031# creating and moving files from /tmp can sometimes cause problems.
43032# Create a temporary directory, and hook for its removal unless debugging.
43033$debug ||
43034{
43035 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43036 trap '{ (exit 1); exit 1; }' 1 2 13 15
43037}
43038
43039# Create a (secure) tmp directory for tmp files.
43040
43041{
43042 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43043 test -n "$tmp" && test -d "$tmp"
43044} ||
43045{
43046 tmp=./confstat$$-$RANDOM
43047 (umask 077 && mkdir $tmp)
43048} ||
43049{
43050 echo "$me: cannot create a temporary directory in ." >&2
43051 { (exit 1); exit 1; }
43052}
43053
43054_ACEOF
43055
43056cat >>$CONFIG_STATUS <<_ACEOF
43057
43058#
43059# CONFIG_FILES section.
43060#
43061
43062# No need to generate the scripts if there are no CONFIG_FILES.
43063# This happens for instance when ./config.status config.h
43064if test -n "\$CONFIG_FILES"; then
43065 # Protect against being on the right side of a sed subst in config.status.
43066 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43067 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43068s,@SHELL@,$SHELL,;t t
43069s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43070s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43071s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43072s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43073s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43074s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43075s,@exec_prefix@,$exec_prefix,;t t
43076s,@prefix@,$prefix,;t t
43077s,@program_transform_name@,$program_transform_name,;t t
43078s,@bindir@,$bindir,;t t
43079s,@sbindir@,$sbindir,;t t
43080s,@libexecdir@,$libexecdir,;t t
43081s,@datadir@,$datadir,;t t
43082s,@sysconfdir@,$sysconfdir,;t t
43083s,@sharedstatedir@,$sharedstatedir,;t t
43084s,@localstatedir@,$localstatedir,;t t
43085s,@libdir@,$libdir,;t t
43086s,@includedir@,$includedir,;t t
43087s,@oldincludedir@,$oldincludedir,;t t
43088s,@infodir@,$infodir,;t t
43089s,@mandir@,$mandir,;t t
43090s,@build_alias@,$build_alias,;t t
43091s,@host_alias@,$host_alias,;t t
43092s,@target_alias@,$target_alias,;t t
43093s,@DEFS@,$DEFS,;t t
43094s,@ECHO_C@,$ECHO_C,;t t
43095s,@ECHO_N@,$ECHO_N,;t t
43096s,@ECHO_T@,$ECHO_T,;t t
43097s,@LIBS@,$LIBS,;t t
43098s,@build@,$build,;t t
43099s,@build_cpu@,$build_cpu,;t t
43100s,@build_vendor@,$build_vendor,;t t
43101s,@build_os@,$build_os,;t t
43102s,@host@,$host,;t t
43103s,@host_cpu@,$host_cpu,;t t
43104s,@host_vendor@,$host_vendor,;t t
43105s,@host_os@,$host_os,;t t
43106s,@target@,$target,;t t
43107s,@target_cpu@,$target_cpu,;t t
43108s,@target_vendor@,$target_vendor,;t t
43109s,@target_os@,$target_os,;t t
43110s,@CC@,$CC,;t t
43111s,@CFLAGS@,$CFLAGS,;t t
43112s,@LDFLAGS@,$LDFLAGS,;t t
43113s,@CPPFLAGS@,$CPPFLAGS,;t t
43114s,@ac_ct_CC@,$ac_ct_CC,;t t
43115s,@EXEEXT@,$EXEEXT,;t t
43116s,@OBJEXT@,$OBJEXT,;t t
43117s,@CPP@,$CPP,;t t
43118s,@EGREP@,$EGREP,;t t
43119s,@CXX@,$CXX,;t t
43120s,@CXXFLAGS@,$CXXFLAGS,;t t
43121s,@ac_ct_CXX@,$ac_ct_CXX,;t t
43122s,@RANLIB@,$RANLIB,;t t
43123s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43124s,@AR@,$AR,;t t
43125s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43126s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43127s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43128s,@STRIP@,$STRIP,;t t
43129s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
43130s,@LN_S@,$LN_S,;t t
43131s,@CXXCPP@,$CXXCPP,;t t
43132s,@subdirs@,$subdirs,;t t
43133s,@PKG_CONFIG@,$PKG_CONFIG,;t t
43134s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
43135s,@GTK_LIBS@,$GTK_LIBS,;t t
43136s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
43137s,@X_CFLAGS@,$X_CFLAGS,;t t
43138s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
43139s,@X_LIBS@,$X_LIBS,;t t
43140s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
43141s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
43142s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
43143s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
43144s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
43145s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
43146s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
43147s,@RESCOMP@,$RESCOMP,;t t
43148s,@DEREZ@,$DEREZ,;t t
43149s,@SETFILE@,$SETFILE,;t t
43150s,@LIBICONV@,$LIBICONV,;t t
43151s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
43152s,@SDL_CONFIG@,$SDL_CONFIG,;t t
43153s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
43154s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
43155s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
43156s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
43157s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
43158s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
43159s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
43160s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
43161s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
43162s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
43163s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
43164s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
43165s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
43166s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
43167s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
43168s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
43169s,@VENDOR@,$VENDOR,;t t
43170s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
43171s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
43172s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
43173s,@WXUNIV@,$WXUNIV,;t t
43174s,@MONOLITHIC@,$MONOLITHIC,;t t
43175s,@USE_PLUGINS@,$USE_PLUGINS,;t t
43176s,@EXTRALIBS@,$EXTRALIBS,;t t
43177s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
43178s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
43179s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
43180s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
43181s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
43182s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
43183s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 43184s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
43185s,@UNICODE@,$UNICODE,;t t
43186s,@BUILD@,$BUILD,;t t
43187s,@DEBUG_INFO@,$DEBUG_INFO,;t t
43188s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
43189s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
43190s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
43191s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
43192s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
43193s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
43194s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
43195s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
43196s,@SET_MAKE@,$SET_MAKE,;t t
43197s,@MAKE_SET@,$MAKE_SET,;t t
43198s,@ac_ct_AR@,$ac_ct_AR,;t t
43199s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43200s,@NM@,$NM,;t t
43201s,@ac_ct_NM@,$ac_ct_NM,;t t
43202s,@INSTALL_DIR@,$INSTALL_DIR,;t t
43203s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
43204s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
43205s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
43206s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
43207s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 43208s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
43209s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
43210s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 43211s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
43212s,@SO_SUFFIX@,$SO_SUFFIX,;t t
43213s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
43214s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
43215s,@LIBPREFIX@,$LIBPREFIX,;t t
43216s,@LIBEXT@,$LIBEXT,;t t
43217s,@DLLPREFIX@,$DLLPREFIX,;t t
43218s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
43219s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
43220s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
43221s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
43222s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
43223s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
43224s,@PIC_FLAG@,$PIC_FLAG,;t t
43225s,@USE_SOVERSION@,$USE_SOVERSION,;t t
43226s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
43227s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
43228s,@USE_MACVERSION@,$USE_MACVERSION,;t t
43229s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
43230s,@SONAME_FLAG@,$SONAME_FLAG,;t t
43231s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
43232s,@GCC_PCH@,$GCC_PCH,;t t
43233s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
43234s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
43235s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
43236s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
43237s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
43238s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
43239s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
43240s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
43241s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
43242s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
43243s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
43244s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
43245s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
43246s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
43247s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
43248s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
43249s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
43250s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 43251s,@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 43252s,@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 43253s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 43254s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
43255s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
43256s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 43257s,@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 43258s,@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 43259s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 43260s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
43261s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
43262s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
43263s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
43264s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
43265s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
43266s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
43267s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
43268s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 43269s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
43270s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
43271s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
43272s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 43273s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 43274s,@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
43275s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
43276s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
43277s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
43278s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 43279s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
43280s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
43281s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
43282s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
43283s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
43284s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
43285s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
43286s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
43287s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
43288s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
43289s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
43290s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
43291s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
43292s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
43293s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43294s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43295s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43296s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
43297s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
43298s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
43299s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
43300s,@COND_SHARED_1@,$COND_SHARED_1,;t t
43301s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 43302s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 43303s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 43304s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
43305s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43306s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43307s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43308s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43309s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43310s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43311s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
43312s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43313s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43314s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43315s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43316s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43317s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43318s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43319s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
43320s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43321s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43322s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
43323s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43324s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43325s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43326s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43327s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43328s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43329s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43330s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43331s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43332s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43333s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43334s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43335s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43336s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43337s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 43338s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 43339s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
43340s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43341s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43342s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43343s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43344s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 43345s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 43346s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 43347s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
43348s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43349s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43350s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43351s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43352s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43353s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43354s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43355s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 43356s,@SHARED@,$SHARED,;t t
a848cd7e
SC
43357s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43358s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
43359s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43360s,@USE_GUI@,$USE_GUI,;t t
43361s,@AFMINSTALL@,$AFMINSTALL,;t t
43362s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43363s,@TOOLKIT@,$TOOLKIT,;t t
43364s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 43365s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 43366s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
43367s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43368s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 43369s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
43370s,@WIDGET_SET@,$WIDGET_SET,;t t
43371s,@WX_RELEASE@,$WX_RELEASE,;t t
43372s,@WX_VERSION@,$WX_VERSION,;t t
43373s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
43374s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
43375s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 43376s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
43377s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43378s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43379s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43380s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 43381s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
43382s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43383s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 43384s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 43385s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
43386s,@DISTDIR@,$DISTDIR,;t t
43387s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43388s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
43389s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43390s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43391s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43392s,@RESFLAGS@,$RESFLAGS,;t t
43393s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43394s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43395s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43396s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43397s,@MACRESCOMP@,$MACRESCOMP,;t t
43398s,@MACSETFILE@,$MACSETFILE,;t t
43399s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43400s,@GCC@,$GCC,;t t
a848cd7e 43401s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
43402s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43403s,@LIBOBJS@,$LIBOBJS,;t t
43404s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43405CEOF
43406
43407_ACEOF
43408
43409 cat >>$CONFIG_STATUS <<\_ACEOF
43410 # Split the substitutions into bite-sized pieces for seds with
43411 # small command number limits, like on Digital OSF/1 and HP-UX.
43412 ac_max_sed_lines=48
43413 ac_sed_frag=1 # Number of current file.
43414 ac_beg=1 # First line for current file.
43415 ac_end=$ac_max_sed_lines # Line after last line for current file.
43416 ac_more_lines=:
43417 ac_sed_cmds=
43418 while $ac_more_lines; do
43419 if test $ac_beg -gt 1; then
43420 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43421 else
43422 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43423 fi
43424 if test ! -s $tmp/subs.frag; then
43425 ac_more_lines=false
43426 else
43427 # The purpose of the label and of the branching condition is to
43428 # speed up the sed processing (if there are no `@' at all, there
43429 # is no need to browse any of the substitutions).
43430 # These are the two extra sed commands mentioned above.
43431 (echo ':t
43432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43433 if test -z "$ac_sed_cmds"; then
ac1cb8d3 43434 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 43435 else
ac1cb8d3 43436 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43437 fi
43438 ac_sed_frag=`expr $ac_sed_frag + 1`
43439 ac_beg=$ac_end
43440 ac_end=`expr $ac_end + $ac_max_sed_lines`
43441 fi
43442 done
43443 if test -z "$ac_sed_cmds"; then
43444 ac_sed_cmds=cat
43445 fi
43446fi # test -n "$CONFIG_FILES"
43447
43448_ACEOF
43449cat >>$CONFIG_STATUS <<\_ACEOF
43450for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43451 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43452 case $ac_file in
43453 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43454 cat >$tmp/stdin
43455 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43457 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43459 * ) ac_file_in=$ac_file.in ;;
43460 esac
43461
43462 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43463 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43464$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43465 X"$ac_file" : 'X\(//\)[^/]' \| \
43466 X"$ac_file" : 'X\(//\)$' \| \
43467 X"$ac_file" : 'X\(/\)' \| \
43468 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43469echo X"$ac_file" |
43470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43472 /^X\(\/\/\)$/{ s//\1/; q; }
43473 /^X\(\/\).*/{ s//\1/; q; }
43474 s/.*/./; q'`
43475 { if $as_mkdir_p; then
43476 mkdir -p "$ac_dir"
43477 else
43478 as_dir="$ac_dir"
43479 as_dirs=
43480 while test ! -d "$as_dir"; do
43481 as_dirs="$as_dir $as_dirs"
43482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43483$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43484 X"$as_dir" : 'X\(//\)[^/]' \| \
43485 X"$as_dir" : 'X\(//\)$' \| \
43486 X"$as_dir" : 'X\(/\)' \| \
43487 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43488echo X"$as_dir" |
43489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43491 /^X\(\/\/\)$/{ s//\1/; q; }
43492 /^X\(\/\).*/{ s//\1/; q; }
43493 s/.*/./; q'`
43494 done
43495 test ! -n "$as_dirs" || mkdir $as_dirs
43496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43497echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43498 { (exit 1); exit 1; }; }; }
43499
43500 ac_builddir=.
43501
43502if test "$ac_dir" != .; then
43503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43504 # A "../" for each directory in $ac_dir_suffix.
43505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43506else
43507 ac_dir_suffix= ac_top_builddir=
43508fi
43509
43510case $srcdir in
43511 .) # No --srcdir option. We are building in place.
43512 ac_srcdir=.
43513 if test -z "$ac_top_builddir"; then
43514 ac_top_srcdir=.
43515 else
43516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43517 fi ;;
43518 [\\/]* | ?:[\\/]* ) # Absolute path.
43519 ac_srcdir=$srcdir$ac_dir_suffix;
43520 ac_top_srcdir=$srcdir ;;
43521 *) # Relative path.
43522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43523 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43524esac
ac1cb8d3
VS
43525
43526# Do not use `cd foo && pwd` to compute absolute paths, because
43527# the directories may not exist.
43528case `pwd` in
43529.) ac_abs_builddir="$ac_dir";;
43530*)
43531 case "$ac_dir" in
43532 .) ac_abs_builddir=`pwd`;;
43533 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43534 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43535 esac;;
43536esac
43537case $ac_abs_builddir in
43538.) ac_abs_top_builddir=${ac_top_builddir}.;;
43539*)
43540 case ${ac_top_builddir}. in
43541 .) ac_abs_top_builddir=$ac_abs_builddir;;
43542 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43543 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43544 esac;;
43545esac
43546case $ac_abs_builddir in
43547.) ac_abs_srcdir=$ac_srcdir;;
43548*)
43549 case $ac_srcdir in
43550 .) ac_abs_srcdir=$ac_abs_builddir;;
43551 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43552 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43553 esac;;
43554esac
43555case $ac_abs_builddir in
43556.) ac_abs_top_srcdir=$ac_top_srcdir;;
43557*)
43558 case $ac_top_srcdir in
43559 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43560 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43561 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43562 esac;;
43563esac
a848cd7e
SC
43564
43565
43566 case $INSTALL in
43567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43568 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43569 esac
43570
89be85c2
VS
43571 if test x"$ac_file" != x-; then
43572 { echo "$as_me:$LINENO: creating $ac_file" >&5
43573echo "$as_me: creating $ac_file" >&6;}
43574 rm -f "$ac_file"
43575 fi
a848cd7e
SC
43576 # Let's still pretend it is `configure' which instantiates (i.e., don't
43577 # use $as_me), people would be surprised to read:
43578 # /* config.h. Generated by config.status. */
43579 if test x"$ac_file" = x-; then
43580 configure_input=
43581 else
43582 configure_input="$ac_file. "
43583 fi
43584 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43585 sed 's,.*/,,'` by configure."
a848cd7e
SC
43586
43587 # First look for the input files in the build tree, otherwise in the
43588 # src tree.
43589 ac_file_inputs=`IFS=:
43590 for f in $ac_file_in; do
43591 case $f in
43592 -) echo $tmp/stdin ;;
43593 [\\/$]*)
ac1cb8d3
VS
43594 # Absolute (can't be DOS-style, as IFS=:)
43595 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43596echo "$as_me: error: cannot find input file: $f" >&2;}
43597 { (exit 1); exit 1; }; }
ac1cb8d3 43598 echo "$f";;
a848cd7e 43599 *) # Relative
ac1cb8d3
VS
43600 if test -f "$f"; then
43601 # Build tree
43602 echo "$f"
43603 elif test -f "$srcdir/$f"; then
43604 # Source tree
43605 echo "$srcdir/$f"
43606 else
43607 # /dev/null tree
43608 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43609echo "$as_me: error: cannot find input file: $f" >&2;}
43610 { (exit 1); exit 1; }; }
ac1cb8d3 43611 fi;;
a848cd7e
SC
43612 esac
43613 done` || { (exit 1); exit 1; }
43614_ACEOF
43615cat >>$CONFIG_STATUS <<_ACEOF
43616 sed "$ac_vpsub
43617$extrasub
43618_ACEOF
43619cat >>$CONFIG_STATUS <<\_ACEOF
43620:t
43621/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43622s,@configure_input@,$configure_input,;t t
43623s,@srcdir@,$ac_srcdir,;t t
43624s,@abs_srcdir@,$ac_abs_srcdir,;t t
43625s,@top_srcdir@,$ac_top_srcdir,;t t
43626s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43627s,@builddir@,$ac_builddir,;t t
43628s,@abs_builddir@,$ac_abs_builddir,;t t
43629s,@top_builddir@,$ac_top_builddir,;t t
43630s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43631s,@INSTALL@,$ac_INSTALL,;t t
43632" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43633 rm -f $tmp/stdin
43634 if test x"$ac_file" != x-; then
43635 mv $tmp/out $ac_file
43636 else
43637 cat $tmp/out
43638 rm -f $tmp/out
43639 fi
43640
ceec2216
RL
43641 # Run the commands associated with the file.
43642 case $ac_file in
43643 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43644 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43645 esac
a848cd7e
SC
43646done
43647_ACEOF
43648cat >>$CONFIG_STATUS <<\_ACEOF
43649
43650#
43651# CONFIG_HEADER section.
43652#
43653
43654# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43655# NAME is the cpp macro being defined and VALUE is the value it is being given.
43656#
43657# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43658ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43659ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43660ac_dC=' '
43661ac_dD=',;t'
43662# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43663ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43664ac_uB='$,\1#\2define\3'
43665ac_uC=' '
43666ac_uD=',;t'
43667
43668for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43669 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43670 case $ac_file in
43671 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43672 cat >$tmp/stdin
43673 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43674 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43675 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43676 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43677 * ) ac_file_in=$ac_file.in ;;
43678 esac
43679
43680 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43681echo "$as_me: creating $ac_file" >&6;}
43682
43683 # First look for the input files in the build tree, otherwise in the
43684 # src tree.
43685 ac_file_inputs=`IFS=:
43686 for f in $ac_file_in; do
43687 case $f in
43688 -) echo $tmp/stdin ;;
43689 [\\/$]*)
ac1cb8d3
VS
43690 # Absolute (can't be DOS-style, as IFS=:)
43691 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43692echo "$as_me: error: cannot find input file: $f" >&2;}
43693 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43694 # Do quote $f, to prevent DOS paths from being IFS'd.
43695 echo "$f";;
a848cd7e 43696 *) # Relative
ac1cb8d3
VS
43697 if test -f "$f"; then
43698 # Build tree
43699 echo "$f"
43700 elif test -f "$srcdir/$f"; then
43701 # Source tree
43702 echo "$srcdir/$f"
43703 else
43704 # /dev/null tree
43705 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43706echo "$as_me: error: cannot find input file: $f" >&2;}
43707 { (exit 1); exit 1; }; }
ac1cb8d3 43708 fi;;
a848cd7e
SC
43709 esac
43710 done` || { (exit 1); exit 1; }
43711 # Remove the trailing spaces.
ac1cb8d3 43712 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43713
43714_ACEOF
43715
43716# Transform confdefs.h into two sed scripts, `conftest.defines' and
43717# `conftest.undefs', that substitutes the proper values into
43718# config.h.in to produce config.h. The first handles `#define'
43719# templates, and the second `#undef' templates.
43720# And first: Protect against being on the right side of a sed subst in
43721# config.status. Protect against being in an unquoted here document
43722# in config.status.
43723rm -f conftest.defines conftest.undefs
43724# Using a here document instead of a string reduces the quoting nightmare.
43725# Putting comments in sed scripts is not portable.
43726#
43727# `end' is used to avoid that the second main sed command (meant for
43728# 0-ary CPP macros) applies to n-ary macro definitions.
43729# See the Autoconf documentation for `clear'.
43730cat >confdef2sed.sed <<\_ACEOF
43731s/[\\&,]/\\&/g
43732s,[\\$`],\\&,g
43733t clear
43734: clear
ac1cb8d3 43735s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43736t end
ac1cb8d3 43737s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43738: end
43739_ACEOF
43740# If some macros were called several times there might be several times
43741# the same #defines, which is useless. Nevertheless, we may not want to
43742# sort them, since we want the *last* AC-DEFINE to be honored.
43743uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43744sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43745rm -f confdef2sed.sed
43746
43747# This sed command replaces #undef with comments. This is necessary, for
43748# example, in the case of _POSIX_SOURCE, which is predefined and required
43749# on some systems where configure will not decide to define it.
43750cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43751s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43752_ACEOF
43753
43754# Break up conftest.defines because some shells have a limit on the size
43755# of here documents, and old seds have small limits too (100 cmds).
43756echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43757echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43758echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43759echo ' :' >>$CONFIG_STATUS
43760rm -f conftest.tail
43761while grep . conftest.defines >/dev/null
43762do
43763 # Write a limited-size here document to $tmp/defines.sed.
43764 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43765 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43766 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43767 # Work around the forget-to-reset-the-flag bug.
43768 echo 't clr' >>$CONFIG_STATUS
43769 echo ': clr' >>$CONFIG_STATUS
43770 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43771 echo 'CEOF
43772 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43773 rm -f $tmp/in
43774 mv $tmp/out $tmp/in
43775' >>$CONFIG_STATUS
43776 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43777 rm -f conftest.defines
43778 mv conftest.tail conftest.defines
43779done
43780rm -f conftest.defines
43781echo ' fi # grep' >>$CONFIG_STATUS
43782echo >>$CONFIG_STATUS
43783
43784# Break up conftest.undefs because some shells have a limit on the size
43785# of here documents, and old seds have small limits too (100 cmds).
43786echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43787rm -f conftest.tail
43788while grep . conftest.undefs >/dev/null
43789do
43790 # Write a limited-size here document to $tmp/undefs.sed.
43791 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43792 # Speed up: don't consider the non `#undef'
ac1cb8d3 43793 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43794 # Work around the forget-to-reset-the-flag bug.
43795 echo 't clr' >>$CONFIG_STATUS
43796 echo ': clr' >>$CONFIG_STATUS
43797 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43798 echo 'CEOF
43799 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43800 rm -f $tmp/in
43801 mv $tmp/out $tmp/in
43802' >>$CONFIG_STATUS
43803 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43804 rm -f conftest.undefs
43805 mv conftest.tail conftest.undefs
43806done
43807rm -f conftest.undefs
43808
43809cat >>$CONFIG_STATUS <<\_ACEOF
43810 # Let's still pretend it is `configure' which instantiates (i.e., don't
43811 # use $as_me), people would be surprised to read:
43812 # /* config.h. Generated by config.status. */
43813 if test x"$ac_file" = x-; then
43814 echo "/* Generated by configure. */" >$tmp/config.h
43815 else
43816 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43817 fi
43818 cat $tmp/in >>$tmp/config.h
43819 rm -f $tmp/in
43820 if test x"$ac_file" != x-; then
43821 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43822 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43823echo "$as_me: $ac_file is unchanged" >&6;}
43824 else
43825 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43826$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43827 X"$ac_file" : 'X\(//\)[^/]' \| \
43828 X"$ac_file" : 'X\(//\)$' \| \
43829 X"$ac_file" : 'X\(/\)' \| \
43830 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43831echo X"$ac_file" |
43832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43834 /^X\(\/\/\)$/{ s//\1/; q; }
43835 /^X\(\/\).*/{ s//\1/; q; }
43836 s/.*/./; q'`
43837 { if $as_mkdir_p; then
43838 mkdir -p "$ac_dir"
43839 else
43840 as_dir="$ac_dir"
43841 as_dirs=
43842 while test ! -d "$as_dir"; do
43843 as_dirs="$as_dir $as_dirs"
43844 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43845$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43846 X"$as_dir" : 'X\(//\)[^/]' \| \
43847 X"$as_dir" : 'X\(//\)$' \| \
43848 X"$as_dir" : 'X\(/\)' \| \
43849 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43850echo X"$as_dir" |
43851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43853 /^X\(\/\/\)$/{ s//\1/; q; }
43854 /^X\(\/\).*/{ s//\1/; q; }
43855 s/.*/./; q'`
43856 done
43857 test ! -n "$as_dirs" || mkdir $as_dirs
43858 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43859echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43860 { (exit 1); exit 1; }; }; }
43861
43862 rm -f $ac_file
43863 mv $tmp/config.h $ac_file
43864 fi
43865 else
43866 cat $tmp/config.h
43867 rm -f $tmp/config.h
43868 fi
43869done
43870_ACEOF
43871cat >>$CONFIG_STATUS <<\_ACEOF
43872
43873#
43874# CONFIG_COMMANDS section.
43875#
43876for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43877 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43878 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43879 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43880$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43881 X"$ac_dest" : 'X\(//\)[^/]' \| \
43882 X"$ac_dest" : 'X\(//\)$' \| \
43883 X"$ac_dest" : 'X\(/\)' \| \
43884 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43885echo X"$ac_dest" |
43886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43888 /^X\(\/\/\)$/{ s//\1/; q; }
43889 /^X\(\/\).*/{ s//\1/; q; }
43890 s/.*/./; q'`
ac1cb8d3
VS
43891 { if $as_mkdir_p; then
43892 mkdir -p "$ac_dir"
43893 else
43894 as_dir="$ac_dir"
43895 as_dirs=
43896 while test ! -d "$as_dir"; do
43897 as_dirs="$as_dir $as_dirs"
43898 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43899$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43900 X"$as_dir" : 'X\(//\)[^/]' \| \
43901 X"$as_dir" : 'X\(//\)$' \| \
43902 X"$as_dir" : 'X\(/\)' \| \
43903 . : '\(.\)' 2>/dev/null ||
43904echo X"$as_dir" |
43905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43907 /^X\(\/\/\)$/{ s//\1/; q; }
43908 /^X\(\/\).*/{ s//\1/; q; }
43909 s/.*/./; q'`
43910 done
43911 test ! -n "$as_dirs" || mkdir $as_dirs
43912 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43913echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43914 { (exit 1); exit 1; }; }; }
43915
a848cd7e
SC
43916 ac_builddir=.
43917
43918if test "$ac_dir" != .; then
43919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43920 # A "../" for each directory in $ac_dir_suffix.
43921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43922else
43923 ac_dir_suffix= ac_top_builddir=
43924fi
43925
43926case $srcdir in
43927 .) # No --srcdir option. We are building in place.
43928 ac_srcdir=.
43929 if test -z "$ac_top_builddir"; then
43930 ac_top_srcdir=.
43931 else
43932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43933 fi ;;
43934 [\\/]* | ?:[\\/]* ) # Absolute path.
43935 ac_srcdir=$srcdir$ac_dir_suffix;
43936 ac_top_srcdir=$srcdir ;;
43937 *) # Relative path.
43938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43940esac
ac1cb8d3
VS
43941
43942# Do not use `cd foo && pwd` to compute absolute paths, because
43943# the directories may not exist.
43944case `pwd` in
43945.) ac_abs_builddir="$ac_dir";;
43946*)
43947 case "$ac_dir" in
43948 .) ac_abs_builddir=`pwd`;;
43949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43951 esac;;
43952esac
43953case $ac_abs_builddir in
43954.) ac_abs_top_builddir=${ac_top_builddir}.;;
43955*)
43956 case ${ac_top_builddir}. in
43957 .) ac_abs_top_builddir=$ac_abs_builddir;;
43958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43960 esac;;
43961esac
43962case $ac_abs_builddir in
43963.) ac_abs_srcdir=$ac_srcdir;;
43964*)
43965 case $ac_srcdir in
43966 .) ac_abs_srcdir=$ac_abs_builddir;;
43967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43969 esac;;
43970esac
43971case $ac_abs_builddir in
43972.) ac_abs_top_srcdir=$ac_top_srcdir;;
43973*)
43974 case $ac_top_srcdir in
43975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43978 esac;;
43979esac
a848cd7e
SC
43980
43981
43982 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43983echo "$as_me: executing $ac_dest commands" >&6;}
43984 case $ac_dest in
ceec2216
RL
43985 wx-config ) rm -f wx-config
43986 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43987 ;;
a848cd7e
SC
43988 esac
43989done
43990_ACEOF
43991
43992cat >>$CONFIG_STATUS <<\_ACEOF
43993
43994{ (exit 0); exit 0; }
43995_ACEOF
43996chmod +x $CONFIG_STATUS
43997ac_clean_files=$ac_clean_files_save
43998
43999
44000# configure is writing to config.log, and then calls config.status.
44001# config.status does its own redirection, appending to config.log.
44002# Unfortunately, on DOS this fails, as config.log is still kept open
44003# by configure, so config.status won't be able to write to it; its
44004# output is simply discarded. So we exec the FD to /dev/null,
44005# effectively closing config.log, so it can be properly (re)opened and
44006# appended to by config.status. When coming back to configure, we
44007# need to make the FD available again.
44008if test "$no_create" != yes; then
44009 ac_cs_success=:
44010 ac_config_status_args=
44011 test "$silent" = yes &&
44012 ac_config_status_args="$ac_config_status_args --quiet"
44013 exec 5>/dev/null
44014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44015 exec 5>>config.log
44016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44017 # would make configure fail if this is the last instruction.
44018 $ac_cs_success || { (exit 1); exit 1; }
44019fi
44020
44021#
44022# CONFIG_SUBDIRS section.
44023#
44024if test "$no_recursion" != yes; then
44025
44026 # Remove --cache-file and --srcdir arguments so they do not pile up.
44027 ac_sub_configure_args=
44028 ac_prev=
44029 for ac_arg in $ac_configure_args; do
44030 if test -n "$ac_prev"; then
44031 ac_prev=
44032 continue
44033 fi
44034 case $ac_arg in
44035 -cache-file | --cache-file | --cache-fil | --cache-fi \
44036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44037 ac_prev=cache_file ;;
44038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44040 | --c=*)
44041 ;;
44042 --config-cache | -C)
44043 ;;
44044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44045 ac_prev=srcdir ;;
44046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44047 ;;
44048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44049 ac_prev=prefix ;;
44050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44051 ;;
44052 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
44053 esac
44054 done
44055
44056 # Always prepend --prefix to ensure using the same prefix
44057 # in subdir configurations.
44058 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
44059
44060 ac_popdir=`pwd`
44061 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44062
44063 # Do not complain, so a configure script can configure whichever
44064 # parts of a large source tree are present.
44065 test -d $srcdir/$ac_dir || continue
44066
44067 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
44068echo "$as_me: configuring in $ac_dir" >&6;}
44069 { if $as_mkdir_p; then
44070 mkdir -p "$ac_dir"
44071 else
44072 as_dir="$ac_dir"
44073 as_dirs=
44074 while test ! -d "$as_dir"; do
44075 as_dirs="$as_dir $as_dirs"
44076 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44078 X"$as_dir" : 'X\(//\)[^/]' \| \
44079 X"$as_dir" : 'X\(//\)$' \| \
44080 X"$as_dir" : 'X\(/\)' \| \
44081 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44082echo X"$as_dir" |
44083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44085 /^X\(\/\/\)$/{ s//\1/; q; }
44086 /^X\(\/\).*/{ s//\1/; q; }
44087 s/.*/./; q'`
44088 done
44089 test ! -n "$as_dirs" || mkdir $as_dirs
44090 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44091echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44092 { (exit 1); exit 1; }; }; }
44093
44094 ac_builddir=.
44095
44096if test "$ac_dir" != .; then
44097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44098 # A "../" for each directory in $ac_dir_suffix.
44099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44100else
44101 ac_dir_suffix= ac_top_builddir=
44102fi
44103
44104case $srcdir in
44105 .) # No --srcdir option. We are building in place.
44106 ac_srcdir=.
44107 if test -z "$ac_top_builddir"; then
44108 ac_top_srcdir=.
44109 else
44110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44111 fi ;;
44112 [\\/]* | ?:[\\/]* ) # Absolute path.
44113 ac_srcdir=$srcdir$ac_dir_suffix;
44114 ac_top_srcdir=$srcdir ;;
44115 *) # Relative path.
44116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44118esac
ac1cb8d3
VS
44119
44120# Do not use `cd foo && pwd` to compute absolute paths, because
44121# the directories may not exist.
44122case `pwd` in
44123.) ac_abs_builddir="$ac_dir";;
44124*)
44125 case "$ac_dir" in
44126 .) ac_abs_builddir=`pwd`;;
44127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44129 esac;;
44130esac
44131case $ac_abs_builddir in
44132.) ac_abs_top_builddir=${ac_top_builddir}.;;
44133*)
44134 case ${ac_top_builddir}. in
44135 .) ac_abs_top_builddir=$ac_abs_builddir;;
44136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44138 esac;;
44139esac
44140case $ac_abs_builddir in
44141.) ac_abs_srcdir=$ac_srcdir;;
44142*)
44143 case $ac_srcdir in
44144 .) ac_abs_srcdir=$ac_abs_builddir;;
44145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44147 esac;;
44148esac
44149case $ac_abs_builddir in
44150.) ac_abs_top_srcdir=$ac_top_srcdir;;
44151*)
44152 case $ac_top_srcdir in
44153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44156 esac;;
44157esac
a848cd7e
SC
44158
44159
44160 cd $ac_dir
44161
44162 # Check for guested configure; otherwise get Cygnus style configure.
44163 if test -f $ac_srcdir/configure.gnu; then
44164 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
44165 elif test -f $ac_srcdir/configure; then
44166 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
44167 elif test -f $ac_srcdir/configure.in; then
44168 ac_sub_configure=$ac_configure
44169 else
44170 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44171echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44172 ac_sub_configure=
44173 fi
44174
44175 # The recursion is here.
44176 if test -n "$ac_sub_configure"; then
44177 # Make the cache file name correct relative to the subdirectory.
44178 case $cache_file in
44179 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44180 *) # Relative path.
ac1cb8d3 44181 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
44182 esac
44183
44184 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44185echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44186 # The eval makes quoting arguments work.
44187 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
44188 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
44189 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
44190echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44191 { (exit 1); exit 1; }; }
44192 fi
44193
89be85c2 44194 cd $ac_popdir
a848cd7e
SC
44195 done
44196fi
44197
44198
44199echo
77ffb593 44200echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 44201echo ""
4d4ff94c 44202echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 44203echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 44204
77ffb593
JS
44205echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
44206echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
44207echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 44208
77ffb593
JS
44209echo " What level of wxWidgets compatibility should be enabled?"
44210echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
44211echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 44212
77ffb593 44213echo " Which libraries should wxWidgets use?"
a848cd7e
SC
44214echo " jpeg ${wxUSE_LIBJPEG-none}"
44215echo " png ${wxUSE_LIBPNG-none}"
44216echo " regex ${wxUSE_REGEX}"
44217echo " tiff ${wxUSE_LIBTIFF-none}"
44218if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
44219echo " xpm ${wxUSE_LIBXPM-none}"
44220fi
44221echo " zlib ${wxUSE_ZLIB}"
44222echo " odbc ${wxUSE_ODBC}"
44223echo " expat ${wxUSE_EXPAT}"
44224echo " libmspack ${wxUSE_LIBMSPACK}"
44225echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 44226echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
44227
44228echo ""
44229