]> git.saurik.com Git - wxWidgets.git/blame - configure
basic UDP support (patch 835128)
[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.
ac1cb8d3 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.2.
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'
273PACKAGE_VERSION='2.5.2'
274PACKAGE_STRING='wxWidgets 2.5.2'
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"
166bcebb 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_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_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_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_COCOA 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_MAC_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_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_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_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_DATA_FILE WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY 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
77ffb593 797\`configure' configures wxWidgets 2.5.2 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
77ffb593 863 short | recursive ) echo "Configuration of wxWidgets 2.5.2:";;
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
a848cd7e
SC
894 --enable-rpath=DIR output the rpath flag from wx-config
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
8a7b1113 950 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
951 --enable-loggui use standard GUI logger
952 --enable-logwin use wxLogWindow
953 --enable-logdialog use wxLogDialog
646b6ec1 954 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
955 --enable-postscript use wxPostscriptDC device context (default for gtk+)
956 --enable-prologio not available; see contrib
957 --enable-resources not available; see contrib
958 --enable-clipboard use wxClipboard class
959 --enable-dnd use Drag'n'Drop classes
960 --enable-metafile use win32 metafiles
961 --enable-controls use all usual controls
962 --enable-accel use accelerators
963 --enable-button use wxButton class
964 --enable-bmpbutton use wxBitmapButton class
965 --enable-calendar use wxCalendarCtrl class
966 --enable-caret use wxCaret class
967 --enable-checkbox use wxCheckBox class
968 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
969 --enable-choice use wxChoice class
970 --enable-combobox use wxComboBox class
971 --enable-display use wxDisplay class
972 --enable-gauge use wxGauge class
973 --enable-grid use wxGrid class
974 --enable-imaglist use wxImageList class
975 --enable-listbook use wxListbook class
976 --enable-listbox use wxListBox class
977 --enable-listctrl use wxListCtrl class
978 --enable-notebook use wxNotebook class
979 --enable-radiobox use wxRadioBox class
980 --enable-radiobtn use wxRadioButton class
981 --enable-sash use wxSashWindow class
982 --enable-scrollbar use wxScrollBar class and scrollable windows
983 --enable-slider use wxSlider class
984 --enable-spinbtn use wxSpinButton class
985 --enable-spinctrl use wxSpinCtrl class
986 --enable-splitter use wxSplitterWindow class
987 --enable-statbmp use wxStaticBitmap class
988 --enable-statbox use wxStaticBox class
989 --enable-statline use wxStaticLine class
990 --enable-stattext use wxStaticText class
991 --enable-statusbar use wxStatusBar class
992 --enable-tabdialog use wxTabControl class
993 --enable-textctrl use wxTextCtrl class
994 --enable-togglebtn use wxToggleButton class
995 --enable-toolbar use wxToolBar class
996 --enable-tbarnative use native wxToolBar class
997 --enable-tbarsmpl use wxToolBarSimple class
998 --enable-treectrl use wxTreeCtrl class
999 --enable-tipwindow use wxTipWindow class
1000 --enable-popupwin use wxPopUpWindow class
1001 --enable-commondlg use all common dialogs
1002 --enable-choicedlg use wxChoiceDialog
1003 --enable-coldlg use wxColourDialog
1004 --enable-filedlg use wxFileDialog
1005 --enable-finddlg use wxFindReplaceDialog
1006 --enable-fontdlg use wxFontDialog
1007 --enable-dirdlg use wxDirDialog
1008 --enable-msgdlg use wxMessageDialog
1009 --enable-numberdlg use wxNumberEntryDialog
1010 --enable-splash use wxSplashScreen
1011 --enable-textdlg use wxTextDialog
1012 --enable-tipdlg use startup tips
1013 --enable-progressdlg use wxProgressDialog
1014 --enable-wizarddlg use wxWizard
1015 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1016 --enable-miniframe use wxMiniFrame class
1017 --enable-tooltips use wxToolTip class
1018 --enable-splines use spline drawing code
1019 --enable-validators use wxValidator and derived classes
1020 --enable-busyinfo use wxBusyInfo
1021 --enable-joystick use wxJoystick (Linux only)
1022 --enable-metafiles use wxMetaFile (Windows only)
1023 --enable-dragimage use wxDragImage
1024 --enable-accessibility enable accessibility support
1025 --enable-palette use wxPalette class
1026 --enable-image use wxImage class
1027 --enable-gif use gif images (GIF file format)
1028 --enable-pcx use pcx images (PCX file format)
1029 --enable-iff use iff images (IFF file format)
1030 --enable-pnm use pnm images (PNM file format)
1031 --enable-xpm use xpm images (XPM file format)
1032 --enable-icocur use Windows ICO and CUR formats
77ffb593 1033 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1034 --enable-vendor=VENDOR vendor name (win32 DLL only)
1035 --disable-largefile omit support for large files
1036 --disable-gtktest do not try to compile and run a test GTK+ program
1037 --disable-gtktest Do not try to compile and run a test GTK program
1038 --disable-sdltest Do not try to compile and run a test SDL program
1039 --enable-omf use OMF object format (OS/2)
1040 --disable-precomp-headers don't use precompiled headers even if compiler can
1041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gtk use GTK+
1046 --with-motif use Motif/Lesstif
1047 --with-mac use Mac OS X
1048 --with-cocoa use Cocoa
1049 --with-wine use Wine
1050 --with-msw use MS-Windows
1051 --with-pm use OS/2 Presentation Manager
1052 --with-mgl use SciTech MGL
1053 --with-microwin use MicroWindows
1054 --with-x11 use X11
1055 --with-libpng use libpng (PNG image format)
1056 --with-libjpeg use libjpeg (JPEG file format)
1057 --with-libtiff use libtiff (TIFF file format)
1058 --with-libxpm use libxpm (XPM file format)
1059 --with-libmspack use libmspack (CHM help files loading)
1060 --with-sdl use SDL for audio on Unix
1061 --with-opengl use OpenGL (or Mesa)
1062 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1063 --with-regex enable support for wxRegEx class
1064 --with-zlib use zlib for LZW compression
1065 --with-odbc use the IODBC and wxODBC classes
1066 --with-expat enable XML support using expat parser
1067 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1068 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1069 --with-x use the X Window System
1070 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1071 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1072 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1073 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1074 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1075
1076Some influential environment variables:
dcc1b6ad
VS
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CPP C preprocessor
1084 CXX C++ compiler command
1085 CXXFLAGS C++ compiler flags
1086 CXXCPP C++ preprocessor
a848cd7e
SC
1087
1088Use these variables to override the choices made by `configure' or to help
1089it to find libraries and programs with nonstandard names/locations.
1090
77ffb593 1091Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1092_ACEOF
1093fi
1094
1095if test "$ac_init_help" = "recursive"; then
1096 # If there are subdirs, report their specific --help.
1097 ac_popdir=`pwd`
1098 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099 test -d $ac_dir || continue
1100 ac_builddir=.
1101
1102if test "$ac_dir" != .; then
1103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104 # A "../" for each directory in $ac_dir_suffix.
1105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106else
1107 ac_dir_suffix= ac_top_builddir=
1108fi
1109
1110case $srcdir in
1111 .) # No --srcdir option. We are building in place.
1112 ac_srcdir=.
1113 if test -z "$ac_top_builddir"; then
1114 ac_top_srcdir=.
1115 else
1116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117 fi ;;
1118 [\\/]* | ?:[\\/]* ) # Absolute path.
1119 ac_srcdir=$srcdir$ac_dir_suffix;
1120 ac_top_srcdir=$srcdir ;;
1121 *) # Relative path.
1122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124esac
ac1cb8d3
VS
1125
1126# Do not use `cd foo && pwd` to compute absolute paths, because
1127# the directories may not exist.
1128case `pwd` in
1129.) ac_abs_builddir="$ac_dir";;
1130*)
1131 case "$ac_dir" in
1132 .) ac_abs_builddir=`pwd`;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135 esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_top_builddir=${ac_top_builddir}.;;
1139*)
1140 case ${ac_top_builddir}. in
1141 .) ac_abs_top_builddir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_srcdir=$ac_srcdir;;
1148*)
1149 case $ac_srcdir in
1150 .) ac_abs_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_top_srcdir=$ac_top_srcdir;;
1157*)
1158 case $ac_top_srcdir in
1159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1162 esac;;
1163esac
a848cd7e
SC
1164
1165 cd $ac_dir
1166 # Check for guested configure; otherwise get Cygnus style configure.
1167 if test -f $ac_srcdir/configure.gnu; then
1168 echo
1169 $SHELL $ac_srcdir/configure.gnu --help=recursive
1170 elif test -f $ac_srcdir/configure; then
1171 echo
1172 $SHELL $ac_srcdir/configure --help=recursive
1173 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1174 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1175 echo
1176 $ac_configure --help
1177 else
1178 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179 fi
dcc1b6ad 1180 cd $ac_popdir
a848cd7e
SC
1181 done
1182fi
1183
1184test -n "$ac_init_help" && exit 0
1185if $ac_init_version; then
1186 cat <<\_ACEOF
77ffb593 1187wxWidgets configure 2.5.2
ac1cb8d3 1188generated by GNU Autoconf 2.59
a848cd7e 1189
ac1cb8d3 1190Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1191This configure script is free software; the Free Software Foundation
1192gives unlimited permission to copy, distribute and modify it.
1193_ACEOF
1194 exit 0
1195fi
1196exec 5>config.log
1197cat >&5 <<_ACEOF
1198This file contains any messages produced by compilers while
1199running configure, to aid debugging if configure makes a mistake.
1200
77ffb593 1201It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1202generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1203
1204 $ $0 $@
1205
1206_ACEOF
1207{
1208cat <<_ASUNAME
1209## --------- ##
1210## Platform. ##
1211## --------- ##
1212
1213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218
1219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1221
1222/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1223/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1226/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1227/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1228/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1229
1230_ASUNAME
1231
1232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1233for as_dir in $PATH
1234do
1235 IFS=$as_save_IFS
1236 test -z "$as_dir" && as_dir=.
1237 echo "PATH: $as_dir"
1238done
1239
1240} >&5
1241
1242cat >&5 <<_ACEOF
1243
1244
1245## ----------- ##
1246## Core tests. ##
1247## ----------- ##
1248
1249_ACEOF
1250
1251
1252# Keep a trace of the command line.
1253# Strip out --no-create and --no-recursion so they do not pile up.
1254# Strip out --silent because we don't want to record it for future runs.
1255# Also quote any args containing shell meta-characters.
1256# Make two passes to allow for proper duplicate-argument suppression.
1257ac_configure_args=
1258ac_configure_args0=
1259ac_configure_args1=
1260ac_sep=
1261ac_must_keep_next=false
1262for ac_pass in 1 2
1263do
1264 for ac_arg
1265 do
1266 case $ac_arg in
1267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1270 continue ;;
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 esac
1274 case $ac_pass in
1275 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276 2)
1277 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278 if test $ac_must_keep_next = true; then
ac1cb8d3 1279 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1280 else
ac1cb8d3
VS
1281 case $ac_arg in
1282 *=* | --config-cache | -C | -disable-* | --disable-* \
1283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285 | -with-* | --with-* | -without-* | --without-* | --x)
1286 case "$ac_configure_args0 " in
1287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1288 esac
1289 ;;
1290 -* ) ac_must_keep_next=true ;;
1291 esac
a848cd7e
SC
1292 fi
1293 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294 # Get rid of the leading space.
1295 ac_sep=" "
1296 ;;
1297 esac
1298 done
1299done
1300$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302
1303# When interrupted or exit'd, cleanup temporary files, and complete
1304# config.log. We remove comments because anyway the quotes in there
1305# would cause problems or look ugly.
1306# WARNING: Be sure not to use single quotes in there, as some shells,
1307# such as our DU 5.0 friend, will then `close' the trap.
1308trap 'exit_status=$?
1309 # Save into config.log some information that might help in debugging.
1310 {
1311 echo
1312
1313 cat <<\_ASBOX
1314## ---------------- ##
1315## Cache variables. ##
1316## ---------------- ##
1317_ASBOX
1318 echo
1319 # The following way of writing the cache mishandles newlines in values,
1320{
1321 (set) 2>&1 |
1322 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1323 *ac_space=\ *)
1324 sed -n \
ac1cb8d3
VS
1325 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1327 ;;
1328 *)
1329 sed -n \
ac1cb8d3 1330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1331 ;;
1332 esac;
1333}
1334 echo
1335
1336 cat <<\_ASBOX
1337## ----------------- ##
1338## Output variables. ##
1339## ----------------- ##
1340_ASBOX
1341 echo
1342 for ac_var in $ac_subst_vars
1343 do
1344 eval ac_val=$`echo $ac_var`
1345 echo "$ac_var='"'"'$ac_val'"'"'"
1346 done | sort
1347 echo
1348
1349 if test -n "$ac_subst_files"; then
1350 cat <<\_ASBOX
1351## ------------- ##
1352## Output files. ##
1353## ------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_files
1357 do
1358 eval ac_val=$`echo $ac_var`
ac1cb8d3 1359 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1360 done | sort
1361 echo
1362 fi
1363
1364 if test -s confdefs.h; then
1365 cat <<\_ASBOX
1366## ----------- ##
1367## confdefs.h. ##
1368## ----------- ##
1369_ASBOX
1370 echo
1371 sed "/^$/d" confdefs.h | sort
1372 echo
1373 fi
1374 test "$ac_signal" != 0 &&
1375 echo "$as_me: caught signal $ac_signal"
1376 echo "$as_me: exit $exit_status"
1377 } >&5
ac1cb8d3 1378 rm -f core *.core &&
a848cd7e
SC
1379 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1380 exit $exit_status
1381 ' 0
1382for ac_signal in 1 2 13 15; do
1383 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1384done
1385ac_signal=0
1386
1387# confdefs.h avoids OS command line length limits that DEFS can exceed.
1388rm -rf conftest* confdefs.h
1389# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1390echo >confdefs.h
1391
1392# Predefined preprocessor variables.
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_NAME "$PACKAGE_NAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_VERSION "$PACKAGE_VERSION"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_STRING "$PACKAGE_STRING"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1416_ACEOF
1417
1418
1419# Let the site file select an alternate cache file if it wants to.
1420# Prefer explicitly selected file to automatically selected ones.
1421if test -z "$CONFIG_SITE"; then
1422 if test "x$prefix" != xNONE; then
1423 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424 else
1425 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426 fi
1427fi
1428for ac_site_file in $CONFIG_SITE; do
1429 if test -r "$ac_site_file"; then
1430 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431echo "$as_me: loading site script $ac_site_file" >&6;}
1432 sed 's/^/| /' "$ac_site_file" >&5
1433 . "$ac_site_file"
1434 fi
1435done
1436
1437if test -r "$cache_file"; then
1438 # Some versions of bash will fail to source /dev/null (special
1439 # files actually), so we avoid doing that.
1440 if test -f "$cache_file"; then
1441 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442echo "$as_me: loading cache $cache_file" >&6;}
1443 case $cache_file in
1444 [\\/]* | ?:[\\/]* ) . $cache_file;;
1445 *) . ./$cache_file;;
1446 esac
1447 fi
1448else
1449 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450echo "$as_me: creating cache $cache_file" >&6;}
1451 >$cache_file
1452fi
1453
1454# Check that the precious variables saved in the cache have kept the same
1455# value.
1456ac_cache_corrupted=false
1457for ac_var in `(set) 2>&1 |
ac1cb8d3 1458 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460 eval ac_new_set=\$ac_env_${ac_var}_set
1461 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462 eval ac_new_val="\$ac_env_${ac_var}_value"
1463 case $ac_old_set,$ac_new_set in
1464 set,)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,set)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,);;
1473 *)
1474 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1475 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1476echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1477 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1478echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1479 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1480echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1481 ac_cache_corrupted=:
a848cd7e
SC
1482 fi;;
1483 esac
1484 # Pass precious variables to config.status.
1485 if test "$ac_new_set" = set; then
1486 case $ac_new_val in
1487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 *) ac_arg=$ac_var=$ac_new_val ;;
1490 esac
1491 case " $ac_configure_args " in
1492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1493 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494 esac
1495 fi
1496done
1497if $ac_cache_corrupted; then
1498 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502 { (exit 1); exit 1; }; }
1503fi
1504
1505ac_ext=c
1506ac_cpp='$CPP $CPPFLAGS'
1507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540ac_aux_dir=
1541for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1554 fi
1555done
1556if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565# Make sure we can run config.sub.
1566$ac_config_sub sun4 >/dev/null 2>&1 ||
1567 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1568echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571echo "$as_me:$LINENO: checking build system type" >&5
1572echo $ECHO_N "checking build system type... $ECHO_C" >&6
1573if test "${ac_cv_build+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_build_alias=$build_alias
1577test -z "$ac_cv_build_alias" &&
1578 ac_cv_build_alias=`$ac_config_guess`
1579test -z "$ac_cv_build_alias" &&
1580 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1581echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1582 { (exit 1); exit 1; }; }
1583ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1585echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588fi
1589echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1590echo "${ECHO_T}$ac_cv_build" >&6
1591build=$ac_cv_build
1592build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597echo "$as_me:$LINENO: checking host system type" >&5
1598echo $ECHO_N "checking host system type... $ECHO_C" >&6
1599if test "${ac_cv_host+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_host_alias=$host_alias
1603test -z "$ac_cv_host_alias" &&
1604 ac_cv_host_alias=$ac_cv_build_alias
1605ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1607echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1609
1610fi
1611echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1612echo "${ECHO_T}$ac_cv_host" >&6
1613host=$ac_cv_host
1614host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617
1618
1619echo "$as_me:$LINENO: checking target system type" >&5
1620echo $ECHO_N "checking target system type... $ECHO_C" >&6
1621if test "${ac_cv_target+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623else
1624 ac_cv_target_alias=$target_alias
1625test "x$ac_cv_target_alias" = "x" &&
1626 ac_cv_target_alias=$ac_cv_host_alias
1627ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1629echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1631
1632fi
1633echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1634echo "${ECHO_T}$ac_cv_target" >&6
1635target=$ac_cv_target
1636target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641# The aliases save the names the user supplied, while $host etc.
1642# will get canonicalized.
1643test -n "$target_alias" &&
1644 test "$program_prefix$program_suffix$program_transform_name" = \
1645 NONENONEs,x,x, &&
1646 program_prefix=${target_alias}-
1647
1648
1649
1650WX_MAJOR_VERSION_NUMBER=2
1651WX_MINOR_VERSION_NUMBER=5
de59c161 1652WX_RELEASE_NUMBER=2
a848cd7e
SC
1653
1654WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1655WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1656
1657WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1658
de59c161 1659WX_CURRENT=2
a848cd7e
SC
1660WX_REVISION=0
1661WX_AGE=0
1662
1663
1664
1665USE_UNIX=1
1666USE_OS2=0
1667USE_WIN32=0
1668USE_DOS=0
1669USE_BEOS=0
1670USE_MAC=0
1671
1672USE_AIX=
1673USE_BSD= USE_DARWIN= USE_FREEBSD=
1674USE_GNU= USE_HPUX=
1675USE_LINUX=
1676USE_NETBSD=
1677USE_OPENBSD=
1678USE_OSF= USE_SGI=
1679USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1680USE_ULTRIX=
1681USE_UNIXWARE=
1682
1683USE_ALPHA=
1684
1685NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1686
1687ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1688
1689DEFAULT_wxUSE_COCOA=0
1690DEFAULT_wxUSE_GTK=0
1691DEFAULT_wxUSE_MAC=0
1692DEFAULT_wxUSE_MGL=0
1693DEFAULT_wxUSE_MICROWIN=0
1694DEFAULT_wxUSE_MOTIF=0
1695DEFAULT_wxUSE_MSW=0
1696DEFAULT_wxUSE_PM=0
1697DEFAULT_wxUSE_X11=0
1698
1699DEFAULT_DEFAULT_wxUSE_COCOA=0
1700DEFAULT_DEFAULT_wxUSE_GTK=0
1701DEFAULT_DEFAULT_wxUSE_MAC=0
1702DEFAULT_DEFAULT_wxUSE_MGL=0
1703DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1704DEFAULT_DEFAULT_wxUSE_MOTIF=0
1705DEFAULT_DEFAULT_wxUSE_MSW=0
1706DEFAULT_DEFAULT_wxUSE_PM=0
1707DEFAULT_DEFAULT_wxUSE_X11=0
1708
1709PROGRAM_EXT=
1710SO_SUFFIX=so
1711SAMPLES_RPATH_FLAG=
1712SAMPLES_RPATH_POSTLINK=
1713
1714case "${host}" in
1715 *-hp-hpux* )
1716 USE_HPUX=1
1717 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1718 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1719 SO_SUFFIX=sl
1720 cat >>confdefs.h <<\_ACEOF
1721#define __HPUX__ 1
1722_ACEOF
1723
1724 ;;
1725 *-*-linux* )
1726 USE_LINUX=1
1727 cat >>confdefs.h <<\_ACEOF
1728#define __LINUX__ 1
1729_ACEOF
1730
1731 TMP=`uname -m`
1732 if test "x$TMP" = "xalpha"; then
1733 USE_ALPHA=1
1734 cat >>confdefs.h <<\_ACEOF
1735#define __ALPHA__ 1
1736_ACEOF
1737
1738 fi
1739 DEFAULT_DEFAULT_wxUSE_GTK=1
1740 ;;
1741 *-*-gnu* | *-*-k*bsd*-gnu )
1742 USE_GNU=1
1743 TMP=`uname -m`
1744 if test "x$TMP" = "xalpha"; then
1745 USE_ALPHA=1
1746 cat >>confdefs.h <<\_ACEOF
1747#define __ALPHA__ 1
1748_ACEOF
1749
1750 fi
1751 DEFAULT_DEFAULT_wxUSE_GTK=1
1752 ;;
1753 *-*-irix5* | *-*-irix6* )
1754 USE_SGI=1
1755 USE_SVR4=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __SGI__ 1
1758_ACEOF
1759
1760 cat >>confdefs.h <<\_ACEOF
1761#define __SVR4__ 1
1762_ACEOF
1763
1764 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1765 ;;
1766 *-*-solaris2* )
1767 USE_SUN=1
1768 USE_SOLARIS=1
1769 USE_SVR4=1
1770 cat >>confdefs.h <<\_ACEOF
1771#define __SUN__ 1
1772_ACEOF
1773
1774 cat >>confdefs.h <<\_ACEOF
1775#define __SOLARIS__ 1
1776_ACEOF
1777
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SVR4__ 1
1780_ACEOF
1781
1782 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1783 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1784 ;;
1785 *-*-sunos4* )
1786 USE_SUN=1
1787 USE_SUNOS=1
1788 USE_BSD=1
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SUN__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SUNOS__ 1
1795_ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798#define __BSD__ 1
1799_ACEOF
1800
1801 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802 ;;
1803 *-*-freebsd*)
1804 USE_BSD=1
1805 USE_FREEBSD=1
1806 cat >>confdefs.h <<\_ACEOF
1807#define __FREEBSD__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __BSD__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_GTK=1
1815 ;;
1816 *-*-openbsd*)
1817 USE_BSD=1
1818 USE_OPENBSD=1
1819 cat >>confdefs.h <<\_ACEOF
1820#define __OPENBSD__ 1
1821_ACEOF
1822
1823 cat >>confdefs.h <<\_ACEOF
1824#define __BSD__ 1
1825_ACEOF
1826
1827 DEFAULT_DEFAULT_wxUSE_GTK=1
1828 ;;
1829 *-*-netbsd*)
1830 USE_BSD=1
1831 USE_NETBSD=1
1832 cat >>confdefs.h <<\_ACEOF
1833#define __NETBSD__ 1
1834_ACEOF
1835
1836 cat >>confdefs.h <<\_ACEOF
1837#define __BSD__ 1
1838_ACEOF
1839
1840 DEFAULT_DEFAULT_wxUSE_GTK=1
1841 ;;
1842 *-*-osf* )
1843 USE_ALPHA=1
1844 USE_OSF=1
1845 cat >>confdefs.h <<\_ACEOF
1846#define __ALPHA__ 1
1847_ACEOF
1848
1849 cat >>confdefs.h <<\_ACEOF
1850#define __OSF__ 1
1851_ACEOF
1852
1853 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1854 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1855 ;;
1856 *-*-dgux5* )
1857 USE_ALPHA=1
1858 USE_SVR4=1
1859 cat >>confdefs.h <<\_ACEOF
1860#define __ALPHA__ 1
1861_ACEOF
1862
1863 cat >>confdefs.h <<\_ACEOF
1864#define __SVR4__ 1
1865_ACEOF
1866
1867 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1868 ;;
1869 *-*-sysv5* )
1870 USE_SYSV=1
1871 USE_SVR4=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __SYSV__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SVR4__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 ;;
1882 *-*-aix* )
1883 USE_AIX=1
1884 USE_SYSV=1
1885 USE_SVR4=1
1886 SO_SUFFIX=a
1887 cat >>confdefs.h <<\_ACEOF
1888#define __AIX__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SYSV__ 1
1893_ACEOF
1894
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SVR4__ 1
1897_ACEOF
1898
1899 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1900 ;;
1901
1902 *-*-*UnixWare*)
1903 USE_SYSV=1
1904 USE_SVR4=1
1905 USE_UNIXWARE=1
1906 cat >>confdefs.h <<\_ACEOF
1907#define __UNIXWARE__ 1
1908_ACEOF
1909
1910 ;;
1911
1912 *-*-cygwin* | *-*-mingw32* )
1913 SO_SUFFIX=dll
1914 PROGRAM_EXT=".exe"
1915 RESCOMP=windres
1916 DEFAULT_DEFAULT_wxUSE_MSW=1
1917 ;;
1918
1919 *-pc-msdosdjgpp )
1920 USE_UNIX=0
1921 USE_DOS=1
1922 cat >>confdefs.h <<\_ACEOF
1923#define __DOS__ 1
1924_ACEOF
1925
1926 PROGRAM_EXT=".exe"
1927 DEFAULT_DEFAULT_wxUSE_MGL=1
1928 LIBS="$LIBS -lstdc++"
1929 ;;
1930
1931 *-pc-os2_emx | *-pc-os2-emx )
1932 cat >>confdefs.h <<\_ACEOF
1933#define __EMX__ 1
1934_ACEOF
1935
1936 USE_OS2=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __OS2__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_PM=1
1943 CXX=gcc
1944 LDFLAGS="$LDFLAGS -Zcrtdll"
1945 ac_executable_extensions=".exe"
1946 export ac_executable_extensions
1947 ac_save_IFS="$IFS"
1948 IFS='\\'
1949 ac_TEMP_PATH=
1950 for ac_dir in $PATH; do
1951 IFS=$ac_save_IFS
1952 if test -z "$ac_TEMP_PATH"; then
1953 ac_TEMP_PATH="$ac_dir"
1954 else
1955 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1956 fi
1957 done
1958 export PATH="$ac_TEMP_PATH"
1959 unset ac_TEMP_PATH
1960 ;;
1961
1962 powerpc-*-darwin* )
1963 USE_BSD=1
1964 USE_DARWIN=1
1965 SO_SUFFIX=dylib
1966 cat >>confdefs.h <<\_ACEOF
1967#define __BSD__ 1
1968_ACEOF
1969
1970 cat >>confdefs.h <<\_ACEOF
1971#define __DARWIN__ 1
1972_ACEOF
1973
1974 cat >>confdefs.h <<\_ACEOF
1975#define __POWERPC__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define TARGET_CARBON 1
1980_ACEOF
1981
1982 DEFAULT_DEFAULT_wxUSE_MAC=1
1983 ;;
1984
1985 *-*-beos* )
1986 USE_BEOS=1
1987 cat >>confdefs.h <<\_ACEOF
1988#define __BEOS__ 1
1989_ACEOF
1990
1991 ;;
1992
1993 *)
1994 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1995echo "$as_me: error: unknown system type ${host}." >&2;}
1996 { (exit 1); exit 1; }; }
1997esac
1998
1999
2000
2001
2002 wx_arg_cache_file="configarg.cache"
2003 echo "loading argument cache $wx_arg_cache_file"
2004 rm -f ${wx_arg_cache_file}.tmp
2005 touch ${wx_arg_cache_file}.tmp
2006 touch ${wx_arg_cache_file}
2007
2008
2009DEBUG_CONFIGURE=0
2010if test $DEBUG_CONFIGURE = 1; then
2011 DEFAULT_wxUSE_UNIVERSAL=no
2012 DEFAULT_wxUSE_STL=no
2013
2014 DEFAULT_wxUSE_NANOX=no
2015
2016 DEFAULT_wxUSE_THREADS=yes
2017
2018 DEFAULT_wxUSE_SHARED=yes
2019 DEFAULT_wxUSE_OPTIMISE=no
2020 DEFAULT_wxUSE_PROFILE=no
2021 DEFAULT_wxUSE_NO_DEPS=no
2022 DEFAULT_wxUSE_NO_RTTI=no
2023 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2024 DEFAULT_wxUSE_PERMISSIVE=no
2025 DEFAULT_wxUSE_DEBUG_FLAG=yes
2026 DEFAULT_wxUSE_DEBUG_INFO=yes
2027 DEFAULT_wxUSE_DEBUG_GDB=yes
2028 DEFAULT_wxUSE_MEM_TRACING=no
2029 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2030 DEFAULT_wxUSE_DMALLOC=no
2031 DEFAULT_wxUSE_APPLE_IEEE=no
2032
2033 DEFAULT_wxUSE_EXCEPTIONS=no
2034 DEFAULT_wxUSE_LOG=yes
2035 DEFAULT_wxUSE_LOGWINDOW=no
2036 DEFAULT_wxUSE_LOGGUI=no
2037 DEFAULT_wxUSE_LOGDIALOG=no
2038
2039 DEFAULT_wxUSE_GUI=yes
2040 DEFAULT_wxUSE_CONTROLS=no
2041
2042 DEFAULT_wxUSE_REGEX=no
2043 DEFAULT_wxUSE_XML=no
2044 DEFAULT_wxUSE_EXPAT=no
2045 DEFAULT_wxUSE_ZLIB=no
2046 DEFAULT_wxUSE_LIBPNG=no
2047 DEFAULT_wxUSE_LIBJPEG=no
2048 DEFAULT_wxUSE_LIBTIFF=no
2049 DEFAULT_wxUSE_LIBXPM=no
2050 DEFAULT_wxUSE_LIBMSPACK=no
2051 DEFAULT_wxUSE_LIBSDL=no
2052 DEFAULT_wxUSE_ODBC=no
2053 DEFAULT_wxUSE_OPENGL=no
2054
2055 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2056 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2057 DEFAULT_wxUSE_STD_IOSTREAM=no
2058 DEFAULT_wxUSE_CMDLINE_PARSER=no
2059 DEFAULT_wxUSE_DATETIME=no
2060 DEFAULT_wxUSE_TIMER=no
2061 DEFAULT_wxUSE_STOPWATCH=no
2062 DEFAULT_wxUSE_FILE=no
2063 DEFAULT_wxUSE_FFILE=no
2064 DEFAULT_wxUSE_TEXTBUFFER=no
2065 DEFAULT_wxUSE_TEXTFILE=no
2066 DEFAULT_wxUSE_SOUND=no
2067 DEFAULT_wxUSE_INTL=no
2068 DEFAULT_wxUSE_CONFIG=no
2069 DEFAULT_wxUSE_FONTMAP=no
2070 DEFAULT_wxUSE_STREAMS=no
2071 DEFAULT_wxUSE_SOCKETS=no
2072 DEFAULT_wxUSE_OLE=no
2073 DEFAULT_wxUSE_DATAOBJ=no
2074 DEFAULT_wxUSE_DIALUP_MANAGER=no
2075 DEFAULT_wxUSE_JOYSTICK=no
2076 DEFAULT_wxUSE_DYNLIB_CLASS=no
2077 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2078 DEFAULT_wxUSE_LONGLONG=no
2079 DEFAULT_wxUSE_GEOMETRY=no
2080
2081 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2082 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2083 DEFAULT_wxUSE_POSTSCRIPT=no
2084
2085 DEFAULT_wxUSE_CLIPBOARD=no
2086 DEFAULT_wxUSE_TOOLTIPS=no
2087 DEFAULT_wxUSE_DRAG_AND_DROP=no
2088 DEFAULT_wxUSE_DRAGIMAGE=no
2089 DEFAULT_wxUSE_SPLINES=no
2090
8a7b1113 2091 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2092 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2093 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2094 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2095
2096 DEFAULT_wxUSE_RESOURCES=no
2097 DEFAULT_wxUSE_CONSTRAINTS=no
2098 DEFAULT_wxUSE_IPC=no
2099 DEFAULT_wxUSE_HELP=no
2100 DEFAULT_wxUSE_MS_HTML_HELP=no
2101 DEFAULT_wxUSE_WXHTML_HELP=no
2102 DEFAULT_wxUSE_TREELAYOUT=no
2103 DEFAULT_wxUSE_METAFILE=no
2104 DEFAULT_wxUSE_MIMETYPE=no
2105 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2106 DEFAULT_wxUSE_PROTOCOL=no
2107 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2108 DEFAULT_wxUSE_PROTOCOL_FTP=no
2109 DEFAULT_wxUSE_PROTOCOL_FILE=no
2110 DEFAULT_wxUSE_URL=no
2111
2112 DEFAULT_wxUSE_COMMONDLGS=no
2113 DEFAULT_wxUSE_CHOICEDLG=no
2114 DEFAULT_wxUSE_COLOURDLG=no
2115 DEFAULT_wxUSE_DIRDLG=no
2116 DEFAULT_wxUSE_FILEDLG=no
2117 DEFAULT_wxUSE_FINDREPLDLG=no
2118 DEFAULT_wxUSE_FONTDLG=no
2119 DEFAULT_wxUSE_MSGDLG=no
2120 DEFAULT_wxUSE_NUMBERDLG=no
2121 DEFAULT_wxUSE_TEXTDLG=no
2122 DEFAULT_wxUSE_SPLASH=no
2123 DEFAULT_wxUSE_STARTUP_TIPS=no
2124 DEFAULT_wxUSE_PROGRESSDLG=no
2125 DEFAULT_wxUSE_WIZARDDLG=no
2126
2127 DEFAULT_wxUSE_MENUS=no
2128 DEFAULT_wxUSE_MINIFRAME=no
2129 DEFAULT_wxUSE_HTML=no
646b6ec1 2130 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2131 DEFAULT_wxUSE_FILESYSTEM=no
2132 DEFAULT_wxUSE_FS_INET=no
2133 DEFAULT_wxUSE_FS_ZIP=no
2134 DEFAULT_wxUSE_BUSYINFO=no
2135 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2136 DEFAULT_wxUSE_VALIDATORS=no
2137
2138 DEFAULT_wxUSE_ACCEL=no
2139 DEFAULT_wxUSE_BUTTON=no
2140 DEFAULT_wxUSE_BMPBUTTON=no
2141 DEFAULT_wxUSE_CALCTRL=no
2142 DEFAULT_wxUSE_CARET=no
2143 DEFAULT_wxUSE_CHECKBOX=no
2144 DEFAULT_wxUSE_CHECKLST=no
2145 DEFAULT_wxUSE_CHOICE=no
2146 DEFAULT_wxUSE_COMBOBOX=no
2147 DEFAULT_wxUSE_DISPLAY=no
2148 DEFAULT_wxUSE_GAUGE=no
2149 DEFAULT_wxUSE_GRID=no
2150 DEFAULT_wxUSE_IMAGLIST=no
2151 DEFAULT_wxUSE_LISTBOOK=no
2152 DEFAULT_wxUSE_LISTBOX=no
2153 DEFAULT_wxUSE_LISTCTRL=no
2154 DEFAULT_wxUSE_NOTEBOOK=no
2155 DEFAULT_wxUSE_RADIOBOX=no
2156 DEFAULT_wxUSE_RADIOBTN=no
2157 DEFAULT_wxUSE_SASH=no
2158 DEFAULT_wxUSE_SCROLLBAR=no
2159 DEFAULT_wxUSE_SLIDER=no
2160 DEFAULT_wxUSE_SPINBTN=no
2161 DEFAULT_wxUSE_SPINCTRL=no
2162 DEFAULT_wxUSE_SPLITTER=no
2163 DEFAULT_wxUSE_STATBMP=no
2164 DEFAULT_wxUSE_STATBOX=no
2165 DEFAULT_wxUSE_STATLINE=no
2166 DEFAULT_wxUSE_STATTEXT=no
2167 DEFAULT_wxUSE_STATUSBAR=yes
2168 DEFAULT_wxUSE_TABDIALOG=no
2169 DEFAULT_wxUSE_TEXTCTRL=no
2170 DEFAULT_wxUSE_TOGGLEBTN=no
2171 DEFAULT_wxUSE_TOOLBAR=no
2172 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2173 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2174 DEFAULT_wxUSE_TREECTRL=no
2175 DEFAULT_wxUSE_POPUPWIN=no
2176 DEFAULT_wxUSE_TIPWINDOW=no
2177
2178 DEFAULT_wxUSE_UNICODE=no
2179 DEFAULT_wxUSE_UNICODE_MSLU=no
2180 DEFAULT_wxUSE_WCSRTOMBS=no
2181
2182 DEFAULT_wxUSE_PALETTE=no
2183 DEFAULT_wxUSE_IMAGE=no
2184 DEFAULT_wxUSE_GIF=no
2185 DEFAULT_wxUSE_PCX=no
2186 DEFAULT_wxUSE_PNM=no
2187 DEFAULT_wxUSE_IFF=no
2188 DEFAULT_wxUSE_XPM=no
2189 DEFAULT_wxUSE_ICO_CUR=no
2190 DEFAULT_wxUSE_ACCESSIBILITY=no
2191
2192 DEFAULT_wxUSE_MONOLITHIC=no
2193 DEFAULT_wxUSE_PLUGINS=no
2194 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2195else
2196 DEFAULT_wxUSE_UNIVERSAL=no
2197 DEFAULT_wxUSE_STL=no
2198
2199 DEFAULT_wxUSE_NANOX=no
2200
2201 DEFAULT_wxUSE_THREADS=yes
2202
2203 DEFAULT_wxUSE_SHARED=yes
2204 DEFAULT_wxUSE_OPTIMISE=yes
2205 DEFAULT_wxUSE_PROFILE=no
2206 DEFAULT_wxUSE_NO_DEPS=no
2207 DEFAULT_wxUSE_NO_RTTI=no
2208 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2209 DEFAULT_wxUSE_PERMISSIVE=no
2210 DEFAULT_wxUSE_DEBUG_FLAG=no
2211 DEFAULT_wxUSE_DEBUG_INFO=no
2212 DEFAULT_wxUSE_DEBUG_GDB=no
2213 DEFAULT_wxUSE_MEM_TRACING=no
2214 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2215 DEFAULT_wxUSE_DMALLOC=no
2216 DEFAULT_wxUSE_APPLE_IEEE=yes
2217
2218 DEFAULT_wxUSE_EXCEPTIONS=yes
2219 DEFAULT_wxUSE_LOG=yes
2220 DEFAULT_wxUSE_LOGWINDOW=yes
2221 DEFAULT_wxUSE_LOGGUI=yes
2222 DEFAULT_wxUSE_LOGDIALOG=yes
2223
2224 DEFAULT_wxUSE_GUI=yes
2225
2226 DEFAULT_wxUSE_REGEX=yes
2227 DEFAULT_wxUSE_XML=yes
2228 DEFAULT_wxUSE_EXPAT=yes
2229 DEFAULT_wxUSE_ZLIB=yes
2230 DEFAULT_wxUSE_LIBPNG=yes
2231 DEFAULT_wxUSE_LIBJPEG=yes
2232 DEFAULT_wxUSE_LIBTIFF=yes
2233 DEFAULT_wxUSE_LIBXPM=yes
2234 DEFAULT_wxUSE_LIBMSPACK=yes
2235 DEFAULT_wxUSE_LIBSDL=no
2236 DEFAULT_wxUSE_ODBC=no
2237 DEFAULT_wxUSE_OPENGL=no
2238
2239 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2240 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2241 DEFAULT_wxUSE_STD_IOSTREAM=no
2242 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2243 DEFAULT_wxUSE_DATETIME=yes
2244 DEFAULT_wxUSE_TIMER=yes
2245 DEFAULT_wxUSE_STOPWATCH=yes
2246 DEFAULT_wxUSE_FILE=yes
2247 DEFAULT_wxUSE_FFILE=yes
2248 DEFAULT_wxUSE_TEXTBUFFER=yes
2249 DEFAULT_wxUSE_TEXTFILE=yes
2250 DEFAULT_wxUSE_SOUND=yes
2251 DEFAULT_wxUSE_INTL=yes
2252 DEFAULT_wxUSE_CONFIG=yes
2253 DEFAULT_wxUSE_FONTMAP=yes
2254 DEFAULT_wxUSE_STREAMS=yes
2255 DEFAULT_wxUSE_SOCKETS=yes
2256 DEFAULT_wxUSE_OLE=yes
2257 DEFAULT_wxUSE_DATAOBJ=yes
2258 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2259 DEFAULT_wxUSE_JOYSTICK=yes
2260 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2261 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2262 DEFAULT_wxUSE_LONGLONG=yes
2263 DEFAULT_wxUSE_GEOMETRY=yes
2264
2265 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2266 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2267 DEFAULT_wxUSE_POSTSCRIPT=yes
2268
2269 DEFAULT_wxUSE_CLIPBOARD=yes
2270 DEFAULT_wxUSE_TOOLTIPS=yes
2271 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2272 DEFAULT_wxUSE_DRAGIMAGE=yes
2273 DEFAULT_wxUSE_SPLINES=yes
2274
8a7b1113 2275 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2276 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2277 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2278 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2279
2280 DEFAULT_wxUSE_RESOURCES=no
2281 DEFAULT_wxUSE_CONSTRAINTS=yes
2282 DEFAULT_wxUSE_IPC=yes
2283 DEFAULT_wxUSE_HELP=yes
2284 DEFAULT_wxUSE_MS_HTML_HELP=yes
2285 DEFAULT_wxUSE_WXHTML_HELP=yes
2286 DEFAULT_wxUSE_TREELAYOUT=yes
2287 DEFAULT_wxUSE_METAFILE=yes
2288 DEFAULT_wxUSE_MIMETYPE=yes
2289 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2290 DEFAULT_wxUSE_PROTOCOL=yes
2291 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2292 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2293 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2294 DEFAULT_wxUSE_URL=yes
2295
2296 DEFAULT_wxUSE_COMMONDLGS=yes
2297 DEFAULT_wxUSE_CHOICEDLG=yes
2298 DEFAULT_wxUSE_COLOURDLG=yes
2299 DEFAULT_wxUSE_DIRDLG=yes
2300 DEFAULT_wxUSE_FILEDLG=yes
2301 DEFAULT_wxUSE_FINDREPLDLG=yes
2302 DEFAULT_wxUSE_FONTDLG=yes
2303 DEFAULT_wxUSE_MSGDLG=yes
2304 DEFAULT_wxUSE_NUMBERDLG=yes
2305 DEFAULT_wxUSE_TEXTDLG=yes
2306 DEFAULT_wxUSE_SPLASH=yes
2307 DEFAULT_wxUSE_STARTUP_TIPS=yes
2308 DEFAULT_wxUSE_PROGRESSDLG=yes
2309 DEFAULT_wxUSE_WIZARDDLG=yes
2310
2311 DEFAULT_wxUSE_MENUS=yes
2312 DEFAULT_wxUSE_MINIFRAME=yes
2313 DEFAULT_wxUSE_HTML=yes
646b6ec1 2314 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_FILESYSTEM=yes
2316 DEFAULT_wxUSE_FS_INET=yes
2317 DEFAULT_wxUSE_FS_ZIP=yes
2318 DEFAULT_wxUSE_BUSYINFO=yes
2319 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2320 DEFAULT_wxUSE_VALIDATORS=yes
2321
2322 DEFAULT_wxUSE_ACCEL=yes
2323 DEFAULT_wxUSE_BUTTON=yes
2324 DEFAULT_wxUSE_BMPBUTTON=yes
2325 DEFAULT_wxUSE_CALCTRL=yes
2326 DEFAULT_wxUSE_CARET=yes
2327 DEFAULT_wxUSE_CHECKBOX=yes
2328 DEFAULT_wxUSE_CHECKLST=yes
2329 DEFAULT_wxUSE_CHOICE=yes
2330 DEFAULT_wxUSE_COMBOBOX=yes
2331 DEFAULT_wxUSE_DISPLAY=yes
2332 DEFAULT_wxUSE_GAUGE=yes
2333 DEFAULT_wxUSE_GRID=yes
2334 DEFAULT_wxUSE_IMAGLIST=yes
2335 DEFAULT_wxUSE_LISTBOOK=yes
2336 DEFAULT_wxUSE_LISTBOX=yes
2337 DEFAULT_wxUSE_LISTCTRL=yes
2338 DEFAULT_wxUSE_NOTEBOOK=yes
2339 DEFAULT_wxUSE_RADIOBOX=yes
2340 DEFAULT_wxUSE_RADIOBTN=yes
2341 DEFAULT_wxUSE_SASH=yes
2342 DEFAULT_wxUSE_SCROLLBAR=yes
2343 DEFAULT_wxUSE_SLIDER=yes
2344 DEFAULT_wxUSE_SPINBTN=yes
2345 DEFAULT_wxUSE_SPINCTRL=yes
2346 DEFAULT_wxUSE_SPLITTER=yes
2347 DEFAULT_wxUSE_STATBMP=yes
2348 DEFAULT_wxUSE_STATBOX=yes
2349 DEFAULT_wxUSE_STATLINE=yes
2350 DEFAULT_wxUSE_STATTEXT=yes
2351 DEFAULT_wxUSE_STATUSBAR=yes
2352 DEFAULT_wxUSE_TABDIALOG=no
2353 DEFAULT_wxUSE_TEXTCTRL=yes
2354 DEFAULT_wxUSE_TOGGLEBTN=yes
2355 DEFAULT_wxUSE_TOOLBAR=yes
2356 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2357 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2358 DEFAULT_wxUSE_TREECTRL=yes
2359 DEFAULT_wxUSE_POPUPWIN=yes
2360 DEFAULT_wxUSE_TIPWINDOW=yes
2361
2362 DEFAULT_wxUSE_UNICODE=no
2363 DEFAULT_wxUSE_UNICODE_MSLU=yes
2364 DEFAULT_wxUSE_WCSRTOMBS=no
2365
2366 DEFAULT_wxUSE_PALETTE=yes
2367 DEFAULT_wxUSE_IMAGE=yes
2368 DEFAULT_wxUSE_GIF=yes
2369 DEFAULT_wxUSE_PCX=yes
2370 DEFAULT_wxUSE_IFF=no
2371 DEFAULT_wxUSE_PNM=yes
2372 DEFAULT_wxUSE_XPM=yes
2373 DEFAULT_wxUSE_ICO_CUR=yes
2374 DEFAULT_wxUSE_ACCESSIBILITY=no
2375
2376 DEFAULT_wxUSE_MONOLITHIC=no
2377 DEFAULT_wxUSE_PLUGINS=no
2378 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2379
2380 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2381fi
2382
2383
2384
2385for toolkit in `echo $ALL_TOOLKITS`; do
2386 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2387 if test "x$LINE" != "x" ; then
2388 has_toolkit_in_cache=1
2389 eval "DEFAULT_$LINE"
2390 eval "CACHE_$toolkit=1"
2391 fi
2392done
2393
2394
2395
2396 enablestring=
2397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2398echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2399 no_cache=0
2400 # Check whether --enable-gui or --disable-gui was given.
2401if test "${enable_gui+set}" = set; then
2402 enableval="$enable_gui"
2403
2404 if test "$enableval" = yes; then
2405 ac_cv_use_gui='wxUSE_GUI=yes'
2406 else
2407 ac_cv_use_gui='wxUSE_GUI=no'
2408 fi
2409
2410else
2411
2412 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2413 if test "x$LINE" != x ; then
2414 eval "DEFAULT_$LINE"
2415 else
2416 no_cache=1
2417 fi
2418
2419 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2420
2421fi;
2422
2423 eval "$ac_cv_use_gui"
2424 if test "$no_cache" != 1; then
2425 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2426 fi
2427
2428 if test "$wxUSE_GUI" = yes; then
2429 echo "$as_me:$LINENO: result: yes" >&5
2430echo "${ECHO_T}yes" >&6
2431 else
2432 echo "$as_me:$LINENO: result: no" >&5
2433echo "${ECHO_T}no" >&6
2434 fi
2435
2436
2437 enablestring=
2438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2439echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2440 no_cache=0
2441 # Check whether --enable-monolithic or --disable-monolithic was given.
2442if test "${enable_monolithic+set}" = set; then
2443 enableval="$enable_monolithic"
2444
2445 if test "$enableval" = yes; then
2446 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2447 else
2448 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2449 fi
2450
2451else
2452
2453 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2454 if test "x$LINE" != x ; then
2455 eval "DEFAULT_$LINE"
2456 else
2457 no_cache=1
2458 fi
2459
2460 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2461
2462fi;
2463
2464 eval "$ac_cv_use_monolithic"
2465 if test "$no_cache" != 1; then
2466 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2467 fi
2468
2469 if test "$wxUSE_MONOLITHIC" = yes; then
2470 echo "$as_me:$LINENO: result: yes" >&5
2471echo "${ECHO_T}yes" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6
2475 fi
2476
2477
2478 enablestring=
2479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2480echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2481 no_cache=0
2482 # Check whether --enable-plugins or --disable-plugins was given.
2483if test "${enable_plugins+set}" = set; then
2484 enableval="$enable_plugins"
2485
2486 if test "$enableval" = yes; then
2487 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2488 else
2489 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2490 fi
2491
2492else
2493
2494 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2495 if test "x$LINE" != x ; then
2496 eval "DEFAULT_$LINE"
2497 else
2498 no_cache=1
2499 fi
2500
2501 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2502
2503fi;
2504
2505 eval "$ac_cv_use_plugins"
2506 if test "$no_cache" != 1; then
2507 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2508 fi
2509
2510 if test "$wxUSE_PLUGINS" = yes; then
2511 echo "$as_me:$LINENO: result: yes" >&5
2512echo "${ECHO_T}yes" >&6
2513 else
2514 echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6
2516 fi
2517
2518
2519if test "$wxUSE_GUI" = "yes"; then
2520
2521
2522 enablestring=
2523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2524echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2525 no_cache=0
2526 # Check whether --enable-universal or --disable-universal was given.
2527if test "${enable_universal+set}" = set; then
2528 enableval="$enable_universal"
2529
2530 if test "$enableval" = yes; then
2531 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2532 else
2533 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2534 fi
2535
2536else
2537
2538 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2539 if test "x$LINE" != x ; then
2540 eval "DEFAULT_$LINE"
2541 else
2542 no_cache=1
2543 fi
2544
2545 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2546
2547fi;
2548
2549 eval "$ac_cv_use_universal"
2550 if test "$no_cache" != 1; then
2551 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2552 fi
2553
2554 if test "$wxUSE_UNIVERSAL" = yes; then
2555 echo "$as_me:$LINENO: result: yes" >&5
2556echo "${ECHO_T}yes" >&6
2557 else
2558 echo "$as_me:$LINENO: result: no" >&5
2559echo "${ECHO_T}no" >&6
2560 fi
2561
2562
2563# Check whether --with-gtk or --without-gtk was given.
2564if test "${with_gtk+set}" = set; then
2565 withval="$with_gtk"
2566 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2567fi;
2568
2569# Check whether --with-motif or --without-motif was given.
2570if test "${with_motif+set}" = set; then
2571 withval="$with_motif"
2572 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2573fi;
2574
2575# Check whether --with-mac or --without-mac was given.
2576if test "${with_mac+set}" = set; then
2577 withval="$with_mac"
2578 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2579fi;
2580
2581# Check whether --with-cocoa or --without-cocoa was given.
2582if test "${with_cocoa+set}" = set; then
2583 withval="$with_cocoa"
2584 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2585fi;
2586
2587# Check whether --with-wine or --without-wine was given.
2588if test "${with_wine+set}" = set; then
2589 withval="$with_wine"
2590 wxUSE_WINE="$withval" CACHE_WINE=1
2591fi;
2592
2593# Check whether --with-msw or --without-msw was given.
2594if test "${with_msw+set}" = set; then
2595 withval="$with_msw"
2596 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2597fi;
2598
2599# Check whether --with-pm or --without-pm was given.
2600if test "${with_pm+set}" = set; then
2601 withval="$with_pm"
2602 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2603fi;
2604
2605# Check whether --with-mgl or --without-mgl was given.
2606if test "${with_mgl+set}" = set; then
2607 withval="$with_mgl"
2608 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2609fi;
2610
2611# Check whether --with-microwin or --without-microwin was given.
2612if test "${with_microwin+set}" = set; then
2613 withval="$with_microwin"
2614 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2615fi;
2616
2617# Check whether --with-x11 or --without-x11 was given.
2618if test "${with_x11+set}" = set; then
2619 withval="$with_x11"
2620 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2621fi;
2622
2623 enablestring=
2624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2625echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2626 no_cache=0
2627 # Check whether --enable-nanox or --disable-nanox was given.
2628if test "${enable_nanox+set}" = set; then
2629 enableval="$enable_nanox"
2630
2631 if test "$enableval" = yes; then
2632 ac_cv_use_nanox='wxUSE_NANOX=yes'
2633 else
2634 ac_cv_use_nanox='wxUSE_NANOX=no'
2635 fi
2636
2637else
2638
2639 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2640 if test "x$LINE" != x ; then
2641 eval "DEFAULT_$LINE"
2642 else
2643 no_cache=1
2644 fi
2645
2646 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2647
2648fi;
2649
2650 eval "$ac_cv_use_nanox"
2651 if test "$no_cache" != 1; then
2652 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2653 fi
2654
2655 if test "$wxUSE_NANOX" = yes; then
2656 echo "$as_me:$LINENO: result: yes" >&5
2657echo "${ECHO_T}yes" >&6
2658 else
2659 echo "$as_me:$LINENO: result: no" >&5
2660echo "${ECHO_T}no" >&6
2661 fi
2662
2663
2664
2665 enablestring=
2666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2667echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2668 no_cache=0
2669 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2670if test "${enable_gtk2+set}" = set; then
2671 enableval="$enable_gtk2"
2672
2673 if test "$enableval" = yes; then
2674 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2675 else
2676 ac_cv_use_gtk2='wxUSE_GTK2=no'
2677 fi
2678
2679else
2680
2681 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2682 if test "x$LINE" != x ; then
2683 eval "DEFAULT_$LINE"
2684 else
2685 no_cache=1
2686 fi
2687
2688 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2689
2690fi;
2691
2692 eval "$ac_cv_use_gtk2"
2693 if test "$no_cache" != 1; then
2694 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2695 fi
2696
2697 if test "$wxUSE_GTK2" = yes; then
2698 echo "$as_me:$LINENO: result: yes" >&5
2699echo "${ECHO_T}yes" >&6
2700 else
2701 echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6
2703 fi
2704
2705
2706 enablestring=
2707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2708echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2709 no_cache=0
2710 # Check whether --enable-gpe or --disable-gpe was given.
2711if test "${enable_gpe+set}" = set; then
2712 enableval="$enable_gpe"
2713
2714 if test "$enableval" = yes; then
2715 ac_cv_use_gpe='wxUSE_GPE=yes'
2716 else
2717 ac_cv_use_gpe='wxUSE_GPE=no'
2718 fi
2719
2720else
2721
2722 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2723 if test "x$LINE" != x ; then
2724 eval "DEFAULT_$LINE"
2725 else
2726 no_cache=1
2727 fi
2728
2729 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2730
2731fi;
2732
2733 eval "$ac_cv_use_gpe"
2734 if test "$no_cache" != 1; then
2735 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2736 fi
2737
2738 if test "$wxUSE_GPE" = yes; then
2739 echo "$as_me:$LINENO: result: yes" >&5
2740echo "${ECHO_T}yes" >&6
2741 else
2742 echo "$as_me:$LINENO: result: no" >&5
2743echo "${ECHO_T}no" >&6
2744 fi
2745
2746
2747
2748 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2749echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2750 no_cache=0
2751
2752# Check whether --with-libpng or --without-libpng was given.
2753if test "${with_libpng+set}" = set; then
2754 withval="$with_libpng"
2755
2756 if test "$withval" = yes; then
2757 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2758 elif test "$withval" = no; then
2759 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2760 elif test "$withval" = sys; then
2761 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2762 elif test "$withval" = builtin; then
2763 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2764 else
2765 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2766echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2767 { (exit 1); exit 1; }; }
2768 fi
2769
2770else
2771
2772 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2773 if test "x$LINE" != x ; then
2774 eval "DEFAULT_$LINE"
2775 else
2776 no_cache=1
2777 fi
2778
2779 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2780
2781fi;
2782
2783 eval "$ac_cv_use_libpng"
2784 if test "$no_cache" != 1; then
2785 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2786 fi
2787
2788 if test "$wxUSE_LIBPNG" = yes; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790echo "${ECHO_T}yes" >&6
2791 elif test "$wxUSE_LIBPNG" = no; then
2792 echo "$as_me:$LINENO: result: no" >&5
2793echo "${ECHO_T}no" >&6
2794 elif test "$wxUSE_LIBPNG" = sys; then
2795 echo "$as_me:$LINENO: result: system version" >&5
2796echo "${ECHO_T}system version" >&6
2797 elif test "$wxUSE_LIBPNG" = builtin; then
2798 echo "$as_me:$LINENO: result: builtin version" >&5
2799echo "${ECHO_T}builtin version" >&6
2800 else
2801 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2802echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2803 { (exit 1); exit 1; }; }
2804 fi
2805
2806
2807 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2808echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2809 no_cache=0
2810
2811# Check whether --with-libjpeg or --without-libjpeg was given.
2812if test "${with_libjpeg+set}" = set; then
2813 withval="$with_libjpeg"
2814
2815 if test "$withval" = yes; then
2816 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2817 elif test "$withval" = no; then
2818 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2819 elif test "$withval" = sys; then
2820 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2821 elif test "$withval" = builtin; then
2822 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2823 else
2824 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2825echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2826 { (exit 1); exit 1; }; }
2827 fi
2828
2829else
2830
2831 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2832 if test "x$LINE" != x ; then
2833 eval "DEFAULT_$LINE"
2834 else
2835 no_cache=1
2836 fi
2837
2838 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2839
2840fi;
2841
2842 eval "$ac_cv_use_libjpeg"
2843 if test "$no_cache" != 1; then
2844 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2845 fi
2846
2847 if test "$wxUSE_LIBJPEG" = yes; then
2848 echo "$as_me:$LINENO: result: yes" >&5
2849echo "${ECHO_T}yes" >&6
2850 elif test "$wxUSE_LIBJPEG" = no; then
2851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853 elif test "$wxUSE_LIBJPEG" = sys; then
2854 echo "$as_me:$LINENO: result: system version" >&5
2855echo "${ECHO_T}system version" >&6
2856 elif test "$wxUSE_LIBJPEG" = builtin; then
2857 echo "$as_me:$LINENO: result: builtin version" >&5
2858echo "${ECHO_T}builtin version" >&6
2859 else
2860 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2861echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2862 { (exit 1); exit 1; }; }
2863 fi
2864
2865
2866 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2867echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2868 no_cache=0
2869
2870# Check whether --with-libtiff or --without-libtiff was given.
2871if test "${with_libtiff+set}" = set; then
2872 withval="$with_libtiff"
2873
2874 if test "$withval" = yes; then
2875 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2876 elif test "$withval" = no; then
2877 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2878 elif test "$withval" = sys; then
2879 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2880 elif test "$withval" = builtin; then
2881 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2882 else
2883 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2884echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2885 { (exit 1); exit 1; }; }
2886 fi
2887
2888else
2889
2890 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2891 if test "x$LINE" != x ; then
2892 eval "DEFAULT_$LINE"
2893 else
2894 no_cache=1
2895 fi
2896
2897 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2898
2899fi;
2900
2901 eval "$ac_cv_use_libtiff"
2902 if test "$no_cache" != 1; then
2903 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2904 fi
2905
2906 if test "$wxUSE_LIBTIFF" = yes; then
2907 echo "$as_me:$LINENO: result: yes" >&5
2908echo "${ECHO_T}yes" >&6
2909 elif test "$wxUSE_LIBTIFF" = no; then
2910 echo "$as_me:$LINENO: result: no" >&5
2911echo "${ECHO_T}no" >&6
2912 elif test "$wxUSE_LIBTIFF" = sys; then
2913 echo "$as_me:$LINENO: result: system version" >&5
2914echo "${ECHO_T}system version" >&6
2915 elif test "$wxUSE_LIBTIFF" = builtin; then
2916 echo "$as_me:$LINENO: result: builtin version" >&5
2917echo "${ECHO_T}builtin version" >&6
2918 else
2919 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2920echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2921 { (exit 1); exit 1; }; }
2922 fi
2923
2924
2925 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2926echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2927 no_cache=0
2928
2929# Check whether --with-libxpm or --without-libxpm was given.
2930if test "${with_libxpm+set}" = set; then
2931 withval="$with_libxpm"
2932
2933 if test "$withval" = yes; then
2934 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2935 elif test "$withval" = no; then
2936 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2937 elif test "$withval" = sys; then
2938 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2939 elif test "$withval" = builtin; then
2940 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2941 else
2942 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2943echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2944 { (exit 1); exit 1; }; }
2945 fi
2946
2947else
2948
2949 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2950 if test "x$LINE" != x ; then
2951 eval "DEFAULT_$LINE"
2952 else
2953 no_cache=1
2954 fi
2955
2956 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2957
2958fi;
2959
2960 eval "$ac_cv_use_libxpm"
2961 if test "$no_cache" != 1; then
2962 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2963 fi
2964
2965 if test "$wxUSE_LIBXPM" = yes; then
2966 echo "$as_me:$LINENO: result: yes" >&5
2967echo "${ECHO_T}yes" >&6
2968 elif test "$wxUSE_LIBXPM" = no; then
2969 echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971 elif test "$wxUSE_LIBXPM" = sys; then
2972 echo "$as_me:$LINENO: result: system version" >&5
2973echo "${ECHO_T}system version" >&6
2974 elif test "$wxUSE_LIBXPM" = builtin; then
2975 echo "$as_me:$LINENO: result: builtin version" >&5
2976echo "${ECHO_T}builtin version" >&6
2977 else
2978 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2979echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2980 { (exit 1); exit 1; }; }
2981 fi
2982
2983
2984 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2985echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2986 no_cache=0
2987
2988# Check whether --with-libmspack or --without-libmspack was given.
2989if test "${with_libmspack+set}" = set; then
2990 withval="$with_libmspack"
2991
2992 if test "$withval" = yes; then
2993 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2994 else
2995 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2996 fi
2997
2998else
2999
3000 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
3007 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3008
3009fi;
3010
3011 eval "$ac_cv_use_libmspack"
3012 if test "$no_cache" != 1; then
3013 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3014 fi
3015
3016 if test "$wxUSE_LIBMSPACK" = yes; then
3017 echo "$as_me:$LINENO: result: yes" >&5
3018echo "${ECHO_T}yes" >&6
3019 else
3020 echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6
3022 fi
3023
3024
3025 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3026echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3027 no_cache=0
3028
3029# Check whether --with-sdl or --without-sdl was given.
3030if test "${with_sdl+set}" = set; then
3031 withval="$with_sdl"
3032
3033 if test "$withval" = yes; then
3034 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3035 else
3036 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3037 fi
3038
3039else
3040
3041 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3042 if test "x$LINE" != x ; then
3043 eval "DEFAULT_$LINE"
3044 else
3045 no_cache=1
3046 fi
3047
3048 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3049
3050fi;
3051
3052 eval "$ac_cv_use_sdl"
3053 if test "$no_cache" != 1; then
3054 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3055 fi
3056
3057 if test "$wxUSE_LIBSDL" = yes; then
3058 echo "$as_me:$LINENO: result: yes" >&5
3059echo "${ECHO_T}yes" >&6
3060 else
3061 echo "$as_me:$LINENO: result: no" >&5
3062echo "${ECHO_T}no" >&6
3063 fi
3064
3065
3066 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3067echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3068 no_cache=0
3069
3070# Check whether --with-opengl or --without-opengl was given.
3071if test "${with_opengl+set}" = set; then
3072 withval="$with_opengl"
3073
3074 if test "$withval" = yes; then
3075 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3076 else
3077 ac_cv_use_opengl='wxUSE_OPENGL=no'
3078 fi
3079
3080else
3081
3082 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3083 if test "x$LINE" != x ; then
3084 eval "DEFAULT_$LINE"
3085 else
3086 no_cache=1
3087 fi
3088
3089 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3090
3091fi;
3092
3093 eval "$ac_cv_use_opengl"
3094 if test "$no_cache" != 1; then
3095 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3096 fi
3097
3098 if test "$wxUSE_OPENGL" = yes; then
3099 echo "$as_me:$LINENO: result: yes" >&5
3100echo "${ECHO_T}yes" >&6
3101 else
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
3104 fi
3105
3106
3107fi
3108
3109
3110 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3111echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3112 no_cache=0
3113
3114# Check whether --with-dmalloc or --without-dmalloc was given.
3115if test "${with_dmalloc+set}" = set; then
3116 withval="$with_dmalloc"
3117
3118 if test "$withval" = yes; then
3119 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3120 else
3121 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3122 fi
3123
3124else
3125
3126 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3127 if test "x$LINE" != x ; then
3128 eval "DEFAULT_$LINE"
3129 else
3130 no_cache=1
3131 fi
3132
3133 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3134
3135fi;
3136
3137 eval "$ac_cv_use_dmalloc"
3138 if test "$no_cache" != 1; then
3139 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3140 fi
3141
3142 if test "$wxUSE_DMALLOC" = yes; then
3143 echo "$as_me:$LINENO: result: yes" >&5
3144echo "${ECHO_T}yes" >&6
3145 else
3146 echo "$as_me:$LINENO: result: no" >&5
3147echo "${ECHO_T}no" >&6
3148 fi
3149
3150
3151 echo "$as_me:$LINENO: checking for --with-regex" >&5
3152echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3153 no_cache=0
3154
3155# Check whether --with-regex or --without-regex was given.
3156if test "${with_regex+set}" = set; then
3157 withval="$with_regex"
3158
3159 if test "$withval" = yes; then
3160 ac_cv_use_regex='wxUSE_REGEX=yes'
3161 elif test "$withval" = no; then
3162 ac_cv_use_regex='wxUSE_REGEX=no'
3163 elif test "$withval" = sys; then
3164 ac_cv_use_regex='wxUSE_REGEX=sys'
3165 elif test "$withval" = builtin; then
3166 ac_cv_use_regex='wxUSE_REGEX=builtin'
3167 else
3168 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3169echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3170 { (exit 1); exit 1; }; }
3171 fi
3172
3173else
3174
3175 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3176 if test "x$LINE" != x ; then
3177 eval "DEFAULT_$LINE"
3178 else
3179 no_cache=1
3180 fi
3181
3182 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3183
3184fi;
3185
3186 eval "$ac_cv_use_regex"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_REGEX" = yes; then
3192 echo "$as_me:$LINENO: result: yes" >&5
3193echo "${ECHO_T}yes" >&6
3194 elif test "$wxUSE_REGEX" = no; then
3195 echo "$as_me:$LINENO: result: no" >&5
3196echo "${ECHO_T}no" >&6
3197 elif test "$wxUSE_REGEX" = sys; then
3198 echo "$as_me:$LINENO: result: system version" >&5
3199echo "${ECHO_T}system version" >&6
3200 elif test "$wxUSE_REGEX" = builtin; then
3201 echo "$as_me:$LINENO: result: builtin version" >&5
3202echo "${ECHO_T}builtin version" >&6
3203 else
3204 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3205echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3206 { (exit 1); exit 1; }; }
3207 fi
3208
3209
3210 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3211echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3212 no_cache=0
3213
3214# Check whether --with-zlib or --without-zlib was given.
3215if test "${with_zlib+set}" = set; then
3216 withval="$with_zlib"
3217
3218 if test "$withval" = yes; then
3219 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3220 elif test "$withval" = no; then
3221 ac_cv_use_zlib='wxUSE_ZLIB=no'
3222 elif test "$withval" = sys; then
3223 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3224 elif test "$withval" = builtin; then
3225 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3226 else
3227 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3228echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3229 { (exit 1); exit 1; }; }
3230 fi
3231
3232else
3233
3234 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3235 if test "x$LINE" != x ; then
3236 eval "DEFAULT_$LINE"
3237 else
3238 no_cache=1
3239 fi
3240
3241 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3242
3243fi;
3244
3245 eval "$ac_cv_use_zlib"
3246 if test "$no_cache" != 1; then
3247 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3248 fi
3249
3250 if test "$wxUSE_ZLIB" = yes; then
3251 echo "$as_me:$LINENO: result: yes" >&5
3252echo "${ECHO_T}yes" >&6
3253 elif test "$wxUSE_ZLIB" = no; then
3254 echo "$as_me:$LINENO: result: no" >&5
3255echo "${ECHO_T}no" >&6
3256 elif test "$wxUSE_ZLIB" = sys; then
3257 echo "$as_me:$LINENO: result: system version" >&5
3258echo "${ECHO_T}system version" >&6
3259 elif test "$wxUSE_ZLIB" = builtin; then
3260 echo "$as_me:$LINENO: result: builtin version" >&5
3261echo "${ECHO_T}builtin version" >&6
3262 else
3263 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3264echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3265 { (exit 1); exit 1; }; }
3266 fi
3267
3268
3269 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3270echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3271 no_cache=0
3272
3273# Check whether --with-odbc or --without-odbc was given.
3274if test "${with_odbc+set}" = set; then
3275 withval="$with_odbc"
3276
3277 if test "$withval" = yes; then
3278 ac_cv_use_odbc='wxUSE_ODBC=yes'
3279 elif test "$withval" = no; then
3280 ac_cv_use_odbc='wxUSE_ODBC=no'
3281 elif test "$withval" = sys; then
3282 ac_cv_use_odbc='wxUSE_ODBC=sys'
3283 elif test "$withval" = builtin; then
3284 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3285 else
3286 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3287echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3288 { (exit 1); exit 1; }; }
3289 fi
3290
3291else
3292
3293 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3301
3302fi;
3303
3304 eval "$ac_cv_use_odbc"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_ODBC" = yes; then
3310 echo "$as_me:$LINENO: result: yes" >&5
3311echo "${ECHO_T}yes" >&6
3312 elif test "$wxUSE_ODBC" = no; then
3313 echo "$as_me:$LINENO: result: no" >&5
3314echo "${ECHO_T}no" >&6
3315 elif test "$wxUSE_ODBC" = sys; then
3316 echo "$as_me:$LINENO: result: system version" >&5
3317echo "${ECHO_T}system version" >&6
3318 elif test "$wxUSE_ODBC" = builtin; then
3319 echo "$as_me:$LINENO: result: builtin version" >&5
3320echo "${ECHO_T}builtin version" >&6
3321 else
3322 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3323echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3324 { (exit 1); exit 1; }; }
3325 fi
3326
3327
3328 echo "$as_me:$LINENO: checking for --with-expat" >&5
3329echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3330 no_cache=0
3331
3332# Check whether --with-expat or --without-expat was given.
3333if test "${with_expat+set}" = set; then
3334 withval="$with_expat"
3335
3336 if test "$withval" = yes; then
3337 ac_cv_use_expat='wxUSE_EXPAT=yes'
3338 elif test "$withval" = no; then
3339 ac_cv_use_expat='wxUSE_EXPAT=no'
3340 elif test "$withval" = sys; then
3341 ac_cv_use_expat='wxUSE_EXPAT=sys'
3342 elif test "$withval" = builtin; then
3343 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3344 else
3345 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3346echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3347 { (exit 1); exit 1; }; }
3348 fi
3349
3350else
3351
3352 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3353 if test "x$LINE" != x ; then
3354 eval "DEFAULT_$LINE"
3355 else
3356 no_cache=1
3357 fi
3358
3359 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3360
3361fi;
3362
3363 eval "$ac_cv_use_expat"
3364 if test "$no_cache" != 1; then
3365 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3366 fi
3367
3368 if test "$wxUSE_EXPAT" = yes; then
3369 echo "$as_me:$LINENO: result: yes" >&5
3370echo "${ECHO_T}yes" >&6
3371 elif test "$wxUSE_EXPAT" = no; then
3372 echo "$as_me:$LINENO: result: no" >&5
3373echo "${ECHO_T}no" >&6
3374 elif test "$wxUSE_EXPAT" = sys; then
3375 echo "$as_me:$LINENO: result: system version" >&5
3376echo "${ECHO_T}system version" >&6
3377 elif test "$wxUSE_EXPAT" = builtin; then
3378 echo "$as_me:$LINENO: result: builtin version" >&5
3379echo "${ECHO_T}builtin version" >&6
3380 else
3381 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3382echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3383 { (exit 1); exit 1; }; }
3384 fi
3385
3386
3387
3388
3389 enablestring=
3390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3391echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3392 no_cache=0
3393 # Check whether --enable-shared or --disable-shared was given.
3394if test "${enable_shared+set}" = set; then
3395 enableval="$enable_shared"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_shared='wxUSE_SHARED=yes'
3399 else
3400 ac_cv_use_shared='wxUSE_SHARED=no'
3401 fi
3402
3403else
3404
3405 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3413
3414fi;
3415
3416 eval "$ac_cv_use_shared"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_SHARED" = yes; then
3422 echo "$as_me:$LINENO: result: yes" >&5
3423echo "${ECHO_T}yes" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
3427 fi
3428
3429
3430 enablestring=
3431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3432echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3433 no_cache=0
3434 # Check whether --enable-optimise or --disable-optimise was given.
3435if test "${enable_optimise+set}" = set; then
3436 enableval="$enable_optimise"
3437
3438 if test "$enableval" = yes; then
3439 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3440 else
3441 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3442 fi
3443
3444else
3445
3446 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3454
3455fi;
3456
3457 eval "$ac_cv_use_optimise"
3458 if test "$no_cache" != 1; then
3459 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3460 fi
3461
3462 if test "$wxUSE_OPTIMISE" = yes; then
3463 echo "$as_me:$LINENO: result: yes" >&5
3464echo "${ECHO_T}yes" >&6
3465 else
3466 echo "$as_me:$LINENO: result: no" >&5
3467echo "${ECHO_T}no" >&6
3468 fi
3469
3470
3471 enablestring=
3472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3473echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3474 no_cache=0
3475 # Check whether --enable-debug or --disable-debug was given.
3476if test "${enable_debug+set}" = set; then
3477 enableval="$enable_debug"
3478
3479 if test "$enableval" = yes; then
3480 ac_cv_use_debug='wxUSE_DEBUG=yes'
3481 else
3482 ac_cv_use_debug='wxUSE_DEBUG=no'
3483 fi
3484
3485else
3486
3487 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3495
3496fi;
3497
3498 eval "$ac_cv_use_debug"
3499 if test "$no_cache" != 1; then
3500 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3501 fi
3502
3503 if test "$wxUSE_DEBUG" = yes; then
3504 echo "$as_me:$LINENO: result: yes" >&5
3505echo "${ECHO_T}yes" >&6
3506 else
3507 echo "$as_me:$LINENO: result: no" >&5
3508echo "${ECHO_T}no" >&6
3509 fi
3510
3511
3512 enablestring=
3513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3514echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3515 no_cache=0
3516 # Check whether --enable-stl or --disable-stl was given.
3517if test "${enable_stl+set}" = set; then
3518 enableval="$enable_stl"
3519
3520 if test "$enableval" = yes; then
3521 ac_cv_use_stl='wxUSE_STL=yes'
3522 else
3523 ac_cv_use_stl='wxUSE_STL=no'
3524 fi
3525
3526else
3527
3528 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3529 if test "x$LINE" != x ; then
3530 eval "DEFAULT_$LINE"
3531 else
3532 no_cache=1
3533 fi
3534
3535 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3536
3537fi;
3538
3539 eval "$ac_cv_use_stl"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_STL" = yes; then
3545 echo "$as_me:$LINENO: result: yes" >&5
3546echo "${ECHO_T}yes" >&6
3547 else
3548 echo "$as_me:$LINENO: result: no" >&5
3549echo "${ECHO_T}no" >&6
3550 fi
3551
3552if test "$USE_OS2" = "1"; then
3553
3554 enablestring=
3555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3556echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3557 no_cache=0
3558 # Check whether --enable-omf or --disable-omf was given.
3559if test "${enable_omf+set}" = set; then
3560 enableval="$enable_omf"
3561
3562 if test "$enableval" = yes; then
3563 ac_cv_use_omf='wxUSE_OMF=yes'
3564 else
3565 ac_cv_use_omf='wxUSE_OMF=no'
3566 fi
3567
3568else
3569
3570 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3571 if test "x$LINE" != x ; then
3572 eval "DEFAULT_$LINE"
3573 else
3574 no_cache=1
3575 fi
3576
3577 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3578
3579fi;
3580
3581 eval "$ac_cv_use_omf"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_OMF" = yes; then
3587 echo "$as_me:$LINENO: result: yes" >&5
3588echo "${ECHO_T}yes" >&6
3589 else
3590 echo "$as_me:$LINENO: result: no" >&5
3591echo "${ECHO_T}no" >&6
3592 fi
3593
3594fi
3595
3596if test "$wxUSE_DEBUG" = "yes"; then
3597 DEFAULT_wxUSE_DEBUG_FLAG=yes
3598 DEFAULT_wxUSE_DEBUG_INFO=yes
3599 BUILD=debug
3600elif test "$wxUSE_DEBUG" = "no"; then
3601 DEFAULT_wxUSE_DEBUG_FLAG=no
3602 DEFAULT_wxUSE_DEBUG_INFO=no
3603 BUILD=release
3604fi
3605
3606
3607 enablestring=
3608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3609echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3610 no_cache=0
3611 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3612if test "${enable_debug_flag+set}" = set; then
3613 enableval="$enable_debug_flag"
3614
3615 if test "$enableval" = yes; then
3616 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3617 else
3618 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3619 fi
3620
3621else
3622
3623 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3631
3632fi;
3633
3634 eval "$ac_cv_use_debug_flag"
3635 if test "$no_cache" != 1; then
3636 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3637 fi
3638
3639 if test "$wxUSE_DEBUG_FLAG" = yes; then
3640 echo "$as_me:$LINENO: result: yes" >&5
3641echo "${ECHO_T}yes" >&6
3642 else
3643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
3645 fi
3646
3647
3648 enablestring=
3649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3650echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3651 no_cache=0
3652 # Check whether --enable-debug_info or --disable-debug_info was given.
3653if test "${enable_debug_info+set}" = set; then
3654 enableval="$enable_debug_info"
3655
3656 if test "$enableval" = yes; then
3657 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3658 else
3659 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3660 fi
3661
3662else
3663
3664 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3672
3673fi;
3674
3675 eval "$ac_cv_use_debug_info"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_DEBUG_INFO" = yes; then
3681 echo "$as_me:$LINENO: result: yes" >&5
3682echo "${ECHO_T}yes" >&6
3683 else
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
3686 fi
3687
3688
3689 enablestring=
3690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3691echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3692 no_cache=0
3693 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3694if test "${enable_debug_gdb+set}" = set; then
3695 enableval="$enable_debug_gdb"
3696
3697 if test "$enableval" = yes; then
3698 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3699 else
3700 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3701 fi
3702
3703else
3704
3705 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3713
3714fi;
3715
3716 eval "$ac_cv_use_debug_gdb"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_DEBUG_GDB" = yes; then
3722 echo "$as_me:$LINENO: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
3724 else
3725 echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727 fi
3728
3729
3730 enablestring=
3731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3732echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3733 no_cache=0
3734 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3735if test "${enable_debug_cntxt+set}" = set; then
3736 enableval="$enable_debug_cntxt"
3737
3738 if test "$enableval" = yes; then
3739 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3740 else
3741 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3742 fi
3743
3744else
3745
3746 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3754
3755fi;
3756
3757 eval "$ac_cv_use_debug_cntxt"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3763 echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
3765 else
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
3768 fi
3769
3770
3771 enablestring=
3772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3773echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3774 no_cache=0
3775 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3776if test "${enable_mem_tracing+set}" = set; then
3777 enableval="$enable_mem_tracing"
3778
3779 if test "$enableval" = yes; then
3780 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3781 else
3782 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3783 fi
3784
3785else
3786
3787 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3795
3796fi;
3797
3798 eval "$ac_cv_use_mem_tracing"
3799 if test "$no_cache" != 1; then
3800 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3801 fi
3802
3803 if test "$wxUSE_MEM_TRACING" = yes; then
3804 echo "$as_me:$LINENO: result: yes" >&5
3805echo "${ECHO_T}yes" >&6
3806 else
3807 echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
3809 fi
3810
3811
3812 enablestring=
3813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3814echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3815 no_cache=0
3816 # Check whether --enable-profile or --disable-profile was given.
3817if test "${enable_profile+set}" = set; then
3818 enableval="$enable_profile"
3819
3820 if test "$enableval" = yes; then
3821 ac_cv_use_profile='wxUSE_PROFILE=yes'
3822 else
3823 ac_cv_use_profile='wxUSE_PROFILE=no'
3824 fi
3825
3826else
3827
3828 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3829 if test "x$LINE" != x ; then
3830 eval "DEFAULT_$LINE"
3831 else
3832 no_cache=1
3833 fi
3834
3835 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3836
3837fi;
3838
3839 eval "$ac_cv_use_profile"
3840 if test "$no_cache" != 1; then
3841 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3842 fi
3843
3844 if test "$wxUSE_PROFILE" = yes; then
3845 echo "$as_me:$LINENO: result: yes" >&5
3846echo "${ECHO_T}yes" >&6
3847 else
3848 echo "$as_me:$LINENO: result: no" >&5
3849echo "${ECHO_T}no" >&6
3850 fi
3851
3852
3853 enablestring=
3854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3855echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3856 no_cache=0
3857 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3858if test "${enable_no_rtti+set}" = set; then
3859 enableval="$enable_no_rtti"
3860
3861 if test "$enableval" = yes; then
3862 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3863 else
3864 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3865 fi
3866
3867else
3868
3869 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3877
3878fi;
3879
3880 eval "$ac_cv_use_no_rtti"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_NO_RTTI" = yes; then
3886 echo "$as_me:$LINENO: result: yes" >&5
3887echo "${ECHO_T}yes" >&6
3888 else
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
3891 fi
3892
3893
3894 enablestring=
3895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3896echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3897 no_cache=0
3898 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3899if test "${enable_no_exceptions+set}" = set; then
3900 enableval="$enable_no_exceptions"
3901
3902 if test "$enableval" = yes; then
3903 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3904 else
3905 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3906 fi
3907
3908else
3909
3910 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3911 if test "x$LINE" != x ; then
3912 eval "DEFAULT_$LINE"
3913 else
3914 no_cache=1
3915 fi
3916
3917 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3918
3919fi;
3920
3921 eval "$ac_cv_use_no_exceptions"
3922 if test "$no_cache" != 1; then
3923 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3924 fi
3925
3926 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3927 echo "$as_me:$LINENO: result: yes" >&5
3928echo "${ECHO_T}yes" >&6
3929 else
3930 echo "$as_me:$LINENO: result: no" >&5
3931echo "${ECHO_T}no" >&6
3932 fi
3933
3934
3935 enablestring=
3936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3937echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3938 no_cache=0
3939 # Check whether --enable-permissive or --disable-permissive was given.
3940if test "${enable_permissive+set}" = set; then
3941 enableval="$enable_permissive"
3942
3943 if test "$enableval" = yes; then
3944 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3945 else
3946 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3947 fi
3948
3949else
3950
3951 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3959
3960fi;
3961
3962 eval "$ac_cv_use_permissive"
3963 if test "$no_cache" != 1; then
3964 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3965 fi
3966
3967 if test "$wxUSE_PERMISSIVE" = yes; then
3968 echo "$as_me:$LINENO: result: yes" >&5
3969echo "${ECHO_T}yes" >&6
3970 else
3971 echo "$as_me:$LINENO: result: no" >&5
3972echo "${ECHO_T}no" >&6
3973 fi
3974
3975
3976 enablestring=
3977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3978echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3979 no_cache=0
3980 # Check whether --enable-no_deps or --disable-no_deps was given.
3981if test "${enable_no_deps+set}" = set; then
3982 enableval="$enable_no_deps"
3983
3984 if test "$enableval" = yes; then
3985 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3986 else
3987 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3988 fi
3989
3990else
3991
3992 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4000
4001fi;
4002
4003 eval "$ac_cv_use_no_deps"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_NO_DEPS" = yes; then
4009 echo "$as_me:$LINENO: result: yes" >&5
4010echo "${ECHO_T}yes" >&6
4011 else
4012 echo "$as_me:$LINENO: result: no" >&5
4013echo "${ECHO_T}no" >&6
4014 fi
4015
4016
4017
4018 enablestring=
4019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4020echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4021 no_cache=0
4022 # Check whether --enable-compat22 or --disable-compat22 was given.
4023if test "${enable_compat22+set}" = set; then
4024 enableval="$enable_compat22"
4025
4026 if test "$enableval" = yes; then
4027 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4028 else
4029 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4030 fi
4031
4032else
4033
4034 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4042
4043fi;
4044
4045 eval "$ac_cv_use_compat22"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4051 echo "$as_me:$LINENO: result: yes" >&5
4052echo "${ECHO_T}yes" >&6
4053 else
4054 echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6
4056 fi
4057
4058
4059 enablestring=disable
4060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4061echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4062 no_cache=0
4063 # Check whether --enable-compat24 or --disable-compat24 was given.
4064if test "${enable_compat24+set}" = set; then
4065 enableval="$enable_compat24"
4066
4067 if test "$enableval" = yes; then
4068 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4069 else
4070 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4071 fi
4072
4073else
4074
4075 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4076 if test "x$LINE" != x ; then
4077 eval "DEFAULT_$LINE"
4078 else
4079 no_cache=1
4080 fi
4081
4082 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4083
4084fi;
4085
4086 eval "$ac_cv_use_compat24"
4087 if test "$no_cache" != 1; then
4088 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4089 fi
4090
4091 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4092 echo "$as_me:$LINENO: result: yes" >&5
4093echo "${ECHO_T}yes" >&6
4094 else
4095 echo "$as_me:$LINENO: result: no" >&5
4096echo "${ECHO_T}no" >&6
4097 fi
4098
4099
4100# Check whether --enable-rpath or --disable-rpath was given.
4101if test "${enable_rpath+set}" = set; then
4102 enableval="$enable_rpath"
4103 wxRPATH_DIR="$enableval"
4104fi;
4105
ac1cb8d3 4106if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4107 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4108fi
4109
4110
4111
4112
4113 enablestring=
4114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4115echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4116 no_cache=0
4117 # Check whether --enable-intl or --disable-intl was given.
4118if test "${enable_intl+set}" = set; then
4119 enableval="$enable_intl"
4120
4121 if test "$enableval" = yes; then
4122 ac_cv_use_intl='wxUSE_INTL=yes'
4123 else
4124 ac_cv_use_intl='wxUSE_INTL=no'
4125 fi
4126
4127else
4128
4129 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4130 if test "x$LINE" != x ; then
4131 eval "DEFAULT_$LINE"
4132 else
4133 no_cache=1
4134 fi
4135
4136 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4137
4138fi;
4139
4140 eval "$ac_cv_use_intl"
4141 if test "$no_cache" != 1; then
4142 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4143 fi
4144
4145 if test "$wxUSE_INTL" = yes; then
4146 echo "$as_me:$LINENO: result: yes" >&5
4147echo "${ECHO_T}yes" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6
4151 fi
4152
4153
4154 enablestring=
4155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4156echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4157 no_cache=0
4158 # Check whether --enable-config or --disable-config was given.
4159if test "${enable_config+set}" = set; then
4160 enableval="$enable_config"
4161
4162 if test "$enableval" = yes; then
4163 ac_cv_use_config='wxUSE_CONFIG=yes'
4164 else
4165 ac_cv_use_config='wxUSE_CONFIG=no'
4166 fi
4167
4168else
4169
4170 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4171 if test "x$LINE" != x ; then
4172 eval "DEFAULT_$LINE"
4173 else
4174 no_cache=1
4175 fi
4176
4177 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4178
4179fi;
4180
4181 eval "$ac_cv_use_config"
4182 if test "$no_cache" != 1; then
4183 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4184 fi
4185
4186 if test "$wxUSE_CONFIG" = yes; then
4187 echo "$as_me:$LINENO: result: yes" >&5
4188echo "${ECHO_T}yes" >&6
4189 else
4190 echo "$as_me:$LINENO: result: no" >&5
4191echo "${ECHO_T}no" >&6
4192 fi
4193
4194
4195
4196 enablestring=
4197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4198echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4199 no_cache=0
4200 # Check whether --enable-protocols or --disable-protocols was given.
4201if test "${enable_protocols+set}" = set; then
4202 enableval="$enable_protocols"
4203
4204 if test "$enableval" = yes; then
4205 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4206 else
4207 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4208 fi
4209
4210else
4211
4212 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4213 if test "x$LINE" != x ; then
4214 eval "DEFAULT_$LINE"
4215 else
4216 no_cache=1
4217 fi
4218
4219 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4220
4221fi;
4222
4223 eval "$ac_cv_use_protocols"
4224 if test "$no_cache" != 1; then
4225 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4226 fi
4227
4228 if test "$wxUSE_PROTOCOL" = yes; then
4229 echo "$as_me:$LINENO: result: yes" >&5
4230echo "${ECHO_T}yes" >&6
4231 else
4232 echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6
4234 fi
4235
4236
4237 enablestring=
4238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4239echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4240 no_cache=0
4241 # Check whether --enable-ftp or --disable-ftp was given.
4242if test "${enable_ftp+set}" = set; then
4243 enableval="$enable_ftp"
4244
4245 if test "$enableval" = yes; then
4246 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4247 else
4248 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4249 fi
4250
4251else
4252
4253 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4254 if test "x$LINE" != x ; then
4255 eval "DEFAULT_$LINE"
4256 else
4257 no_cache=1
4258 fi
4259
4260 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4261
4262fi;
4263
4264 eval "$ac_cv_use_ftp"
4265 if test "$no_cache" != 1; then
4266 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4267 fi
4268
4269 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4270 echo "$as_me:$LINENO: result: yes" >&5
4271echo "${ECHO_T}yes" >&6
4272 else
4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
4275 fi
4276
4277
4278 enablestring=
4279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4280echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4281 no_cache=0
4282 # Check whether --enable-http or --disable-http was given.
4283if test "${enable_http+set}" = set; then
4284 enableval="$enable_http"
4285
4286 if test "$enableval" = yes; then
4287 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4288 else
4289 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4290 fi
4291
4292else
4293
4294 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4295 if test "x$LINE" != x ; then
4296 eval "DEFAULT_$LINE"
4297 else
4298 no_cache=1
4299 fi
4300
4301 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4302
4303fi;
4304
4305 eval "$ac_cv_use_http"
4306 if test "$no_cache" != 1; then
4307 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4308 fi
4309
4310 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4311 echo "$as_me:$LINENO: result: yes" >&5
4312echo "${ECHO_T}yes" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
4316 fi
4317
4318
4319 enablestring=
4320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4321echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4322 no_cache=0
4323 # Check whether --enable-fileproto or --disable-fileproto was given.
4324if test "${enable_fileproto+set}" = set; then
4325 enableval="$enable_fileproto"
4326
4327 if test "$enableval" = yes; then
4328 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4329 else
4330 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4331 fi
4332
4333else
4334
4335 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4343
4344fi;
4345
4346 eval "$ac_cv_use_fileproto"
4347 if test "$no_cache" != 1; then
4348 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4349 fi
4350
4351 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4352 echo "$as_me:$LINENO: result: yes" >&5
4353echo "${ECHO_T}yes" >&6
4354 else
4355 echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6
4357 fi
4358
4359
4360 enablestring=
4361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4362echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4363 no_cache=0
4364 # Check whether --enable-sockets or --disable-sockets was given.
4365if test "${enable_sockets+set}" = set; then
4366 enableval="$enable_sockets"
4367
4368 if test "$enableval" = yes; then
4369 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4370 else
4371 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4372 fi
4373
4374else
4375
4376 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4377 if test "x$LINE" != x ; then
4378 eval "DEFAULT_$LINE"
4379 else
4380 no_cache=1
4381 fi
4382
4383 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4384
4385fi;
4386
4387 eval "$ac_cv_use_sockets"
4388 if test "$no_cache" != 1; then
4389 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4390 fi
4391
4392 if test "$wxUSE_SOCKETS" = yes; then
4393 echo "$as_me:$LINENO: result: yes" >&5
4394echo "${ECHO_T}yes" >&6
4395 else
4396 echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6
4398 fi
4399
4400
4401 enablestring=
4402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4403echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4404 no_cache=0
4405 # Check whether --enable-ole or --disable-ole was given.
4406if test "${enable_ole+set}" = set; then
4407 enableval="$enable_ole"
4408
4409 if test "$enableval" = yes; then
4410 ac_cv_use_ole='wxUSE_OLE=yes'
4411 else
4412 ac_cv_use_ole='wxUSE_OLE=no'
4413 fi
4414
4415else
4416
4417 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4418 if test "x$LINE" != x ; then
4419 eval "DEFAULT_$LINE"
4420 else
4421 no_cache=1
4422 fi
4423
4424 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4425
4426fi;
4427
4428 eval "$ac_cv_use_ole"
4429 if test "$no_cache" != 1; then
4430 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4431 fi
4432
4433 if test "$wxUSE_OLE" = yes; then
4434 echo "$as_me:$LINENO: result: yes" >&5
4435echo "${ECHO_T}yes" >&6
4436 else
4437 echo "$as_me:$LINENO: result: no" >&5
4438echo "${ECHO_T}no" >&6
4439 fi
4440
4441
4442 enablestring=
4443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4444echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4445 no_cache=0
4446 # Check whether --enable-dataobj or --disable-dataobj was given.
4447if test "${enable_dataobj+set}" = set; then
4448 enableval="$enable_dataobj"
4449
4450 if test "$enableval" = yes; then
4451 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4452 else
4453 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4454 fi
4455
4456else
4457
4458 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4459 if test "x$LINE" != x ; then
4460 eval "DEFAULT_$LINE"
4461 else
4462 no_cache=1
4463 fi
4464
4465 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4466
4467fi;
4468
4469 eval "$ac_cv_use_dataobj"
4470 if test "$no_cache" != 1; then
4471 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4472 fi
4473
4474 if test "$wxUSE_DATAOBJ" = yes; then
4475 echo "$as_me:$LINENO: result: yes" >&5
4476echo "${ECHO_T}yes" >&6
4477 else
4478 echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6
4480 fi
4481
4482
4483
4484 enablestring=
4485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4486echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4487 no_cache=0
4488 # Check whether --enable-ipc or --disable-ipc was given.
4489if test "${enable_ipc+set}" = set; then
4490 enableval="$enable_ipc"
4491
4492 if test "$enableval" = yes; then
4493 ac_cv_use_ipc='wxUSE_IPC=yes'
4494 else
4495 ac_cv_use_ipc='wxUSE_IPC=no'
4496 fi
4497
4498else
4499
4500 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4501 if test "x$LINE" != x ; then
4502 eval "DEFAULT_$LINE"
4503 else
4504 no_cache=1
4505 fi
4506
4507 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4508
4509fi;
4510
4511 eval "$ac_cv_use_ipc"
4512 if test "$no_cache" != 1; then
4513 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4514 fi
4515
4516 if test "$wxUSE_IPC" = yes; then
4517 echo "$as_me:$LINENO: result: yes" >&5
4518echo "${ECHO_T}yes" >&6
4519 else
4520 echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
4522 fi
4523
4524
4525
4526 enablestring=
4527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4528echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4529 no_cache=0
4530 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4531if test "${enable_apple_ieee+set}" = set; then
4532 enableval="$enable_apple_ieee"
4533
4534 if test "$enableval" = yes; then
4535 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4536 else
4537 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4538 fi
4539
4540else
4541
4542 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4543 if test "x$LINE" != x ; then
4544 eval "DEFAULT_$LINE"
4545 else
4546 no_cache=1
4547 fi
4548
4549 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4550
4551fi;
4552
4553 eval "$ac_cv_use_apple_ieee"
4554 if test "$no_cache" != 1; then
4555 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4556 fi
4557
4558 if test "$wxUSE_APPLE_IEEE" = yes; then
4559 echo "$as_me:$LINENO: result: yes" >&5
4560echo "${ECHO_T}yes" >&6
4561 else
4562 echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
4564 fi
4565
4566
4567 enablestring=
4568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4569echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4570 no_cache=0
4571 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4572if test "${enable_catch_segvs+set}" = set; then
4573 enableval="$enable_catch_segvs"
4574
4575 if test "$enableval" = yes; then
4576 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4577 else
4578 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4579 fi
4580
4581else
4582
4583 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4591
4592fi;
4593
4594 eval "$ac_cv_use_catch_segvs"
4595 if test "$no_cache" != 1; then
4596 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4597 fi
4598
4599 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4600 echo "$as_me:$LINENO: result: yes" >&5
4601echo "${ECHO_T}yes" >&6
4602 else
4603 echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
4605 fi
4606
4607
4608 enablestring=
4609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4610echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4611 no_cache=0
4612 # Check whether --enable-cmdline or --disable-cmdline was given.
4613if test "${enable_cmdline+set}" = set; then
4614 enableval="$enable_cmdline"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4618 else
4619 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4620 fi
4621
4622else
4623
4624 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4632
4633fi;
4634
4635 eval "$ac_cv_use_cmdline"
4636 if test "$no_cache" != 1; then
4637 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4638 fi
4639
4640 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4641 echo "$as_me:$LINENO: result: yes" >&5
4642echo "${ECHO_T}yes" >&6
4643 else
4644 echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6
4646 fi
4647
4648
4649 enablestring=
4650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4651echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4652 no_cache=0
4653 # Check whether --enable-datetime or --disable-datetime was given.
4654if test "${enable_datetime+set}" = set; then
4655 enableval="$enable_datetime"
4656
4657 if test "$enableval" = yes; then
4658 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4659 else
4660 ac_cv_use_datetime='wxUSE_DATETIME=no'
4661 fi
4662
4663else
4664
4665 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4666 if test "x$LINE" != x ; then
4667 eval "DEFAULT_$LINE"
4668 else
4669 no_cache=1
4670 fi
4671
4672 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4673
4674fi;
4675
4676 eval "$ac_cv_use_datetime"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_DATETIME" = yes; then
4682 echo "$as_me:$LINENO: result: yes" >&5
4683echo "${ECHO_T}yes" >&6
4684 else
4685 echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6
4687 fi
4688
4689
4690 enablestring=
4691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4692echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4693 no_cache=0
4694 # Check whether --enable-dialupman or --disable-dialupman was given.
4695if test "${enable_dialupman+set}" = set; then
4696 enableval="$enable_dialupman"
4697
4698 if test "$enableval" = yes; then
4699 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4700 else
4701 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4702 fi
4703
4704else
4705
4706 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
4713 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4714
4715fi;
4716
4717 eval "$ac_cv_use_dialupman"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4723 echo "$as_me:$LINENO: result: yes" >&5
4724echo "${ECHO_T}yes" >&6
4725 else
4726 echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6
4728 fi
4729
4730
4731 enablestring=
4732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4733echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4734 no_cache=0
4735 # Check whether --enable-dynlib or --disable-dynlib was given.
4736if test "${enable_dynlib+set}" = set; then
4737 enableval="$enable_dynlib"
4738
4739 if test "$enableval" = yes; then
4740 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4741 else
4742 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4743 fi
4744
4745else
4746
4747 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
4754 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4755
4756fi;
4757
4758 eval "$ac_cv_use_dynlib"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4764 echo "$as_me:$LINENO: result: yes" >&5
4765echo "${ECHO_T}yes" >&6
4766 else
4767 echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6
4769 fi
4770
4771
4772 enablestring=
4773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4774echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4775 no_cache=0
4776 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4777if test "${enable_dynamicloader+set}" = set; then
4778 enableval="$enable_dynamicloader"
4779
4780 if test "$enableval" = yes; then
4781 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4782 else
4783 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4784 fi
4785
4786else
4787
4788 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
4795 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4796
4797fi;
4798
4799 eval "$ac_cv_use_dynamicloader"
4800 if test "$no_cache" != 1; then
4801 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4802 fi
4803
4804 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4805 echo "$as_me:$LINENO: result: yes" >&5
4806echo "${ECHO_T}yes" >&6
4807 else
4808 echo "$as_me:$LINENO: result: no" >&5
4809echo "${ECHO_T}no" >&6
4810 fi
4811
4812
4813 enablestring=
4814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4815echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4816 no_cache=0
4817 # Check whether --enable-exceptions or --disable-exceptions was given.
4818if test "${enable_exceptions+set}" = set; then
4819 enableval="$enable_exceptions"
4820
4821 if test "$enableval" = yes; then
4822 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4823 else
4824 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4825 fi
4826
4827else
4828
4829 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4830 if test "x$LINE" != x ; then
4831 eval "DEFAULT_$LINE"
4832 else
4833 no_cache=1
4834 fi
4835
4836 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4837
4838fi;
4839
4840 eval "$ac_cv_use_exceptions"
4841 if test "$no_cache" != 1; then
4842 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4843 fi
4844
4845 if test "$wxUSE_EXCEPTIONS" = yes; then
4846 echo "$as_me:$LINENO: result: yes" >&5
4847echo "${ECHO_T}yes" >&6
4848 else
4849 echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6
4851 fi
4852
4853
4854 enablestring=
4855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4856echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4857 no_cache=0
4858 # Check whether --enable-ffile or --disable-ffile was given.
4859if test "${enable_ffile+set}" = set; then
4860 enableval="$enable_ffile"
4861
4862 if test "$enableval" = yes; then
4863 ac_cv_use_ffile='wxUSE_FFILE=yes'
4864 else
4865 ac_cv_use_ffile='wxUSE_FFILE=no'
4866 fi
4867
4868else
4869
4870 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4871 if test "x$LINE" != x ; then
4872 eval "DEFAULT_$LINE"
4873 else
4874 no_cache=1
4875 fi
4876
4877 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4878
4879fi;
4880
4881 eval "$ac_cv_use_ffile"
4882 if test "$no_cache" != 1; then
4883 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4884 fi
4885
4886 if test "$wxUSE_FFILE" = yes; then
4887 echo "$as_me:$LINENO: result: yes" >&5
4888echo "${ECHO_T}yes" >&6
4889 else
4890 echo "$as_me:$LINENO: result: no" >&5
4891echo "${ECHO_T}no" >&6
4892 fi
4893
4894
4895 enablestring=
4896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4897echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4898 no_cache=0
4899 # Check whether --enable-file or --disable-file was given.
4900if test "${enable_file+set}" = set; then
4901 enableval="$enable_file"
4902
4903 if test "$enableval" = yes; then
4904 ac_cv_use_file='wxUSE_FILE=yes'
4905 else
4906 ac_cv_use_file='wxUSE_FILE=no'
4907 fi
4908
4909else
4910
4911 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4912 if test "x$LINE" != x ; then
4913 eval "DEFAULT_$LINE"
4914 else
4915 no_cache=1
4916 fi
4917
4918 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4919
4920fi;
4921
4922 eval "$ac_cv_use_file"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_FILE" = yes; then
4928 echo "$as_me:$LINENO: result: yes" >&5
4929echo "${ECHO_T}yes" >&6
4930 else
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
4933 fi
4934
4935
4936 enablestring=
4937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4938echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4939 no_cache=0
4940 # Check whether --enable-filesystem or --disable-filesystem was given.
4941if test "${enable_filesystem+set}" = set; then
4942 enableval="$enable_filesystem"
4943
4944 if test "$enableval" = yes; then
4945 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4946 else
4947 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4948 fi
4949
4950else
4951
4952 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4953 if test "x$LINE" != x ; then
4954 eval "DEFAULT_$LINE"
4955 else
4956 no_cache=1
4957 fi
4958
4959 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4960
4961fi;
4962
4963 eval "$ac_cv_use_filesystem"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_FILESYSTEM" = yes; then
4969 echo "$as_me:$LINENO: result: yes" >&5
4970echo "${ECHO_T}yes" >&6
4971 else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974 fi
4975
4976
4977 enablestring=
4978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4979echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4980 no_cache=0
4981 # Check whether --enable-fontmap or --disable-fontmap was given.
4982if test "${enable_fontmap+set}" = set; then
4983 enableval="$enable_fontmap"
4984
4985 if test "$enableval" = yes; then
4986 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4987 else
4988 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4989 fi
4990
4991else
4992
4993 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4994 if test "x$LINE" != x ; then
4995 eval "DEFAULT_$LINE"
4996 else
4997 no_cache=1
4998 fi
4999
5000 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5001
5002fi;
5003
5004 eval "$ac_cv_use_fontmap"
5005 if test "$no_cache" != 1; then
5006 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5007 fi
5008
5009 if test "$wxUSE_FONTMAP" = yes; then
5010 echo "$as_me:$LINENO: result: yes" >&5
5011echo "${ECHO_T}yes" >&6
5012 else
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
5015 fi
5016
5017
5018 enablestring=
5019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5020echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5021 no_cache=0
5022 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5023if test "${enable_fs_inet+set}" = set; then
5024 enableval="$enable_fs_inet"
5025
5026 if test "$enableval" = yes; then
5027 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5028 else
5029 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5030 fi
5031
5032else
5033
5034 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5035 if test "x$LINE" != x ; then
5036 eval "DEFAULT_$LINE"
5037 else
5038 no_cache=1
5039 fi
5040
5041 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5042
5043fi;
5044
5045 eval "$ac_cv_use_fs_inet"
5046 if test "$no_cache" != 1; then
5047 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5048 fi
5049
5050 if test "$wxUSE_FS_INET" = yes; then
5051 echo "$as_me:$LINENO: result: yes" >&5
5052echo "${ECHO_T}yes" >&6
5053 else
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056 fi
5057
5058
5059 enablestring=
5060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5061echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5062 no_cache=0
5063 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5064if test "${enable_fs_zip+set}" = set; then
5065 enableval="$enable_fs_zip"
5066
5067 if test "$enableval" = yes; then
5068 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5069 else
5070 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5071 fi
5072
5073else
5074
5075 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5076 if test "x$LINE" != x ; then
5077 eval "DEFAULT_$LINE"
5078 else
5079 no_cache=1
5080 fi
5081
5082 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5083
5084fi;
5085
5086 eval "$ac_cv_use_fs_zip"
5087 if test "$no_cache" != 1; then
5088 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5089 fi
5090
5091 if test "$wxUSE_FS_ZIP" = yes; then
5092 echo "$as_me:$LINENO: result: yes" >&5
5093echo "${ECHO_T}yes" >&6
5094 else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097 fi
5098
5099
5100 enablestring=
5101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5102echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5103 no_cache=0
5104 # Check whether --enable-geometry or --disable-geometry was given.
5105if test "${enable_geometry+set}" = set; then
5106 enableval="$enable_geometry"
5107
5108 if test "$enableval" = yes; then
5109 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5110 else
5111 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5112 fi
5113
5114else
5115
5116 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5117 if test "x$LINE" != x ; then
5118 eval "DEFAULT_$LINE"
5119 else
5120 no_cache=1
5121 fi
5122
5123 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5124
5125fi;
5126
5127 eval "$ac_cv_use_geometry"
5128 if test "$no_cache" != 1; then
5129 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5130 fi
5131
5132 if test "$wxUSE_GEOMETRY" = yes; then
5133 echo "$as_me:$LINENO: result: yes" >&5
5134echo "${ECHO_T}yes" >&6
5135 else
5136 echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
5138 fi
5139
5140
5141 enablestring=
5142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5143echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5144 no_cache=0
5145 # Check whether --enable-log or --disable-log was given.
5146if test "${enable_log+set}" = set; then
5147 enableval="$enable_log"
5148
5149 if test "$enableval" = yes; then
5150 ac_cv_use_log='wxUSE_LOG=yes'
5151 else
5152 ac_cv_use_log='wxUSE_LOG=no'
5153 fi
5154
5155else
5156
5157 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5158 if test "x$LINE" != x ; then
5159 eval "DEFAULT_$LINE"
5160 else
5161 no_cache=1
5162 fi
5163
5164 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5165
5166fi;
5167
5168 eval "$ac_cv_use_log"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_LOG" = yes; then
5174 echo "$as_me:$LINENO: result: yes" >&5
5175echo "${ECHO_T}yes" >&6
5176 else
5177 echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
5179 fi
5180
5181
5182 enablestring=
5183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5184echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5185 no_cache=0
5186 # Check whether --enable-longlong or --disable-longlong was given.
5187if test "${enable_longlong+set}" = set; then
5188 enableval="$enable_longlong"
5189
5190 if test "$enableval" = yes; then
5191 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5192 else
5193 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5194 fi
5195
5196else
5197
5198 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5199 if test "x$LINE" != x ; then
5200 eval "DEFAULT_$LINE"
5201 else
5202 no_cache=1
5203 fi
5204
5205 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5206
5207fi;
5208
5209 eval "$ac_cv_use_longlong"
5210 if test "$no_cache" != 1; then
5211 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5212 fi
5213
5214 if test "$wxUSE_LONGLONG" = yes; then
5215 echo "$as_me:$LINENO: result: yes" >&5
5216echo "${ECHO_T}yes" >&6
5217 else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220 fi
5221
5222
5223 enablestring=
5224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5225echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5226 no_cache=0
5227 # Check whether --enable-mimetype or --disable-mimetype was given.
5228if test "${enable_mimetype+set}" = set; then
5229 enableval="$enable_mimetype"
5230
5231 if test "$enableval" = yes; then
5232 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5233 else
5234 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5235 fi
5236
5237else
5238
5239 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5240 if test "x$LINE" != x ; then
5241 eval "DEFAULT_$LINE"
5242 else
5243 no_cache=1
5244 fi
5245
5246 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5247
5248fi;
5249
5250 eval "$ac_cv_use_mimetype"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_MIMETYPE" = yes; then
5256 echo "$as_me:$LINENO: result: yes" >&5
5257echo "${ECHO_T}yes" >&6
5258 else
5259 echo "$as_me:$LINENO: result: no" >&5
5260echo "${ECHO_T}no" >&6
5261 fi
5262
5263
5264 enablestring=
5265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5266echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5267 no_cache=0
5268 # Check whether --enable-mslu or --disable-mslu was given.
5269if test "${enable_mslu+set}" = set; then
5270 enableval="$enable_mslu"
5271
5272 if test "$enableval" = yes; then
5273 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5274 else
5275 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5276 fi
5277
5278else
5279
5280 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5281 if test "x$LINE" != x ; then
5282 eval "DEFAULT_$LINE"
5283 else
5284 no_cache=1
5285 fi
5286
5287 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5288
5289fi;
5290
5291 eval "$ac_cv_use_mslu"
5292 if test "$no_cache" != 1; then
5293 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5294 fi
5295
5296 if test "$wxUSE_UNICODE_MSLU" = yes; then
5297 echo "$as_me:$LINENO: result: yes" >&5
5298echo "${ECHO_T}yes" >&6
5299 else
5300 echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
5302 fi
5303
5304
5305 enablestring=
5306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5307echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5308 no_cache=0
5309 # Check whether --enable-snglinst or --disable-snglinst was given.
5310if test "${enable_snglinst+set}" = set; then
5311 enableval="$enable_snglinst"
5312
5313 if test "$enableval" = yes; then
5314 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5315 else
5316 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5317 fi
5318
5319else
5320
5321 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
5328 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5329
5330fi;
5331
5332 eval "$ac_cv_use_snglinst"
5333 if test "$no_cache" != 1; then
5334 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5335 fi
5336
5337 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5338 echo "$as_me:$LINENO: result: yes" >&5
5339echo "${ECHO_T}yes" >&6
5340 else
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343 fi
5344
5345
5346 enablestring=
5347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5348echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5349 no_cache=0
5350 # Check whether --enable-streams or --disable-streams was given.
5351if test "${enable_streams+set}" = set; then
5352 enableval="$enable_streams"
5353
5354 if test "$enableval" = yes; then
5355 ac_cv_use_streams='wxUSE_STREAMS=yes'
5356 else
5357 ac_cv_use_streams='wxUSE_STREAMS=no'
5358 fi
5359
5360else
5361
5362 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5363 if test "x$LINE" != x ; then
5364 eval "DEFAULT_$LINE"
5365 else
5366 no_cache=1
5367 fi
5368
5369 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5370
5371fi;
5372
5373 eval "$ac_cv_use_streams"
5374 if test "$no_cache" != 1; then
5375 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5376 fi
5377
5378 if test "$wxUSE_STREAMS" = yes; then
5379 echo "$as_me:$LINENO: result: yes" >&5
5380echo "${ECHO_T}yes" >&6
5381 else
5382 echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6
5384 fi
5385
5386
5387 enablestring=
5388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5389echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5390 no_cache=0
5391 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5392if test "${enable_std_iostreams+set}" = set; then
5393 enableval="$enable_std_iostreams"
5394
5395 if test "$enableval" = yes; then
5396 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5397 else
5398 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5399 fi
5400
5401else
5402
5403 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5404 if test "x$LINE" != x ; then
5405 eval "DEFAULT_$LINE"
5406 else
5407 no_cache=1
5408 fi
5409
5410 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5411
5412fi;
5413
5414 eval "$ac_cv_use_std_iostreams"
5415 if test "$no_cache" != 1; then
5416 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5417 fi
5418
5419 if test "$wxUSE_STD_IOSTREAM" = yes; then
5420 echo "$as_me:$LINENO: result: yes" >&5
5421echo "${ECHO_T}yes" >&6
5422 else
5423 echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
5425 fi
5426
5427
5428 enablestring=
5429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5430echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5431 no_cache=0
5432 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5433if test "${enable_stopwatch+set}" = set; then
5434 enableval="$enable_stopwatch"
5435
5436 if test "$enableval" = yes; then
5437 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5438 else
5439 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5440 fi
5441
5442else
5443
5444 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5445 if test "x$LINE" != x ; then
5446 eval "DEFAULT_$LINE"
5447 else
5448 no_cache=1
5449 fi
5450
5451 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5452
5453fi;
5454
5455 eval "$ac_cv_use_stopwatch"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_STOPWATCH" = yes; then
5461 echo "$as_me:$LINENO: result: yes" >&5
5462echo "${ECHO_T}yes" >&6
5463 else
5464 echo "$as_me:$LINENO: result: no" >&5
5465echo "${ECHO_T}no" >&6
5466 fi
5467
5468
5469 enablestring=
5470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5471echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5472 no_cache=0
5473 # Check whether --enable-system_options or --disable-system_options was given.
5474if test "${enable_system_options+set}" = set; then
5475 enableval="$enable_system_options"
5476
5477 if test "$enableval" = yes; then
5478 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5479 else
5480 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5481 fi
5482
5483else
5484
5485 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
5492 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5493
5494fi;
5495
5496 eval "$ac_cv_use_system_options"
5497 if test "$no_cache" != 1; then
5498 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5499 fi
5500
5501 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5502 echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6
5504 else
5505 echo "$as_me:$LINENO: result: no" >&5
5506echo "${ECHO_T}no" >&6
5507 fi
5508
5509
5510 enablestring=
5511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5512echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5513 no_cache=0
5514 # Check whether --enable-textbuf or --disable-textbuf was given.
5515if test "${enable_textbuf+set}" = set; then
5516 enableval="$enable_textbuf"
5517
5518 if test "$enableval" = yes; then
5519 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5520 else
5521 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5522 fi
5523
5524else
5525
5526 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5527 if test "x$LINE" != x ; then
5528 eval "DEFAULT_$LINE"
5529 else
5530 no_cache=1
5531 fi
5532
5533 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5534
5535fi;
5536
5537 eval "$ac_cv_use_textbuf"
5538 if test "$no_cache" != 1; then
5539 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5540 fi
5541
5542 if test "$wxUSE_TEXTBUFFER" = yes; then
5543 echo "$as_me:$LINENO: result: yes" >&5
5544echo "${ECHO_T}yes" >&6
5545 else
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548 fi
5549
5550
5551 enablestring=
5552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5553echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5554 no_cache=0
5555 # Check whether --enable-textfile or --disable-textfile was given.
5556if test "${enable_textfile+set}" = set; then
5557 enableval="$enable_textfile"
5558
5559 if test "$enableval" = yes; then
5560 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5561 else
5562 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5563 fi
5564
5565else
5566
5567 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5568 if test "x$LINE" != x ; then
5569 eval "DEFAULT_$LINE"
5570 else
5571 no_cache=1
5572 fi
5573
5574 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5575
5576fi;
5577
5578 eval "$ac_cv_use_textfile"
5579 if test "$no_cache" != 1; then
5580 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5581 fi
5582
5583 if test "$wxUSE_TEXTFILE" = yes; then
5584 echo "$as_me:$LINENO: result: yes" >&5
5585echo "${ECHO_T}yes" >&6
5586 else
5587 echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6
5589 fi
5590
5591
5592 enablestring=
5593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5594echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5595 no_cache=0
5596 # Check whether --enable-timer or --disable-timer was given.
5597if test "${enable_timer+set}" = set; then
5598 enableval="$enable_timer"
5599
5600 if test "$enableval" = yes; then
5601 ac_cv_use_timer='wxUSE_TIMER=yes'
5602 else
5603 ac_cv_use_timer='wxUSE_TIMER=no'
5604 fi
5605
5606else
5607
5608 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
5615 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5616
5617fi;
5618
5619 eval "$ac_cv_use_timer"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_TIMER" = yes; then
5625 echo "$as_me:$LINENO: result: yes" >&5
5626echo "${ECHO_T}yes" >&6
5627 else
5628 echo "$as_me:$LINENO: result: no" >&5
5629echo "${ECHO_T}no" >&6
5630 fi
5631
5632
5633 enablestring=
5634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5635echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5636 no_cache=0
5637 # Check whether --enable-unicode or --disable-unicode was given.
5638if test "${enable_unicode+set}" = set; then
5639 enableval="$enable_unicode"
5640
5641 if test "$enableval" = yes; then
5642 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5643 else
5644 ac_cv_use_unicode='wxUSE_UNICODE=no'
5645 fi
5646
5647else
5648
5649 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5650 if test "x$LINE" != x ; then
5651 eval "DEFAULT_$LINE"
5652 else
5653 no_cache=1
5654 fi
5655
5656 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5657
5658fi;
5659
5660 eval "$ac_cv_use_unicode"
5661 if test "$no_cache" != 1; then
5662 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5663 fi
5664
5665 if test "$wxUSE_UNICODE" = yes; then
5666 echo "$as_me:$LINENO: result: yes" >&5
5667echo "${ECHO_T}yes" >&6
5668 else
5669 echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
5671 fi
5672
5673
5674 enablestring=
5675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5676echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5677 no_cache=0
5678 # Check whether --enable-sound or --disable-sound was given.
5679if test "${enable_sound+set}" = set; then
5680 enableval="$enable_sound"
5681
5682 if test "$enableval" = yes; then
5683 ac_cv_use_sound='wxUSE_SOUND=yes'
5684 else
5685 ac_cv_use_sound='wxUSE_SOUND=no'
5686 fi
5687
5688else
5689
5690 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5698
5699fi;
5700
5701 eval "$ac_cv_use_sound"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_SOUND" = yes; then
5707 echo "$as_me:$LINENO: result: yes" >&5
5708echo "${ECHO_T}yes" >&6
5709 else
5710 echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6
5712 fi
5713
5714
5715 enablestring=
5716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5717echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5718 no_cache=0
5719 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5720if test "${enable_wxprintfv+set}" = set; then
5721 enableval="$enable_wxprintfv"
5722
5723 if test "$enableval" = yes; then
5724 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5725 else
5726 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5727 fi
5728
5729else
5730
5731 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5732 if test "x$LINE" != x ; then
5733 eval "DEFAULT_$LINE"
5734 else
5735 no_cache=1
5736 fi
5737
5738 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5739
5740fi;
5741
5742 eval "$ac_cv_use_wxprintfv"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5748 echo "$as_me:$LINENO: result: yes" >&5
5749echo "${ECHO_T}yes" >&6
5750 else
5751 echo "$as_me:$LINENO: result: no" >&5
5752echo "${ECHO_T}no" >&6
5753 fi
5754
5755
5756 enablestring=
5757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5758echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5759 no_cache=0
5760 # Check whether --enable-zipstream or --disable-zipstream was given.
5761if test "${enable_zipstream+set}" = set; then
5762 enableval="$enable_zipstream"
5763
5764 if test "$enableval" = yes; then
5765 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5766 else
5767 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5768 fi
5769
5770else
5771
5772 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5773 if test "x$LINE" != x ; then
5774 eval "DEFAULT_$LINE"
5775 else
5776 no_cache=1
5777 fi
5778
5779 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5780
5781fi;
5782
5783 eval "$ac_cv_use_zipstream"
5784 if test "$no_cache" != 1; then
5785 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5786 fi
5787
5788 if test "$wxUSE_ZIPSTREAM" = yes; then
5789 echo "$as_me:$LINENO: result: yes" >&5
5790echo "${ECHO_T}yes" >&6
5791 else
5792 echo "$as_me:$LINENO: result: no" >&5
5793echo "${ECHO_T}no" >&6
5794 fi
5795
5796
a848cd7e
SC
5797
5798 enablestring=
5799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5800echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5801 no_cache=0
5802 # Check whether --enable-url or --disable-url was given.
5803if test "${enable_url+set}" = set; then
5804 enableval="$enable_url"
5805
5806 if test "$enableval" = yes; then
5807 ac_cv_use_url='wxUSE_URL=yes'
5808 else
5809 ac_cv_use_url='wxUSE_URL=no'
5810 fi
5811
5812else
5813
5814 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5822
5823fi;
5824
5825 eval "$ac_cv_use_url"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_URL" = yes; then
5831 echo "$as_me:$LINENO: result: yes" >&5
5832echo "${ECHO_T}yes" >&6
5833 else
5834 echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
5836 fi
5837
5838
5839 enablestring=
5840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5841echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5842 no_cache=0
5843 # Check whether --enable-protocol or --disable-protocol was given.
5844if test "${enable_protocol+set}" = set; then
5845 enableval="$enable_protocol"
5846
5847 if test "$enableval" = yes; then
5848 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5849 else
5850 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5851 fi
5852
5853else
5854
5855 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5863
5864fi;
5865
5866 eval "$ac_cv_use_protocol"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_PROTOCOL" = yes; then
5872 echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6
5874 else
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
5877 fi
5878
5879
5880 enablestring=
5881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5882echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5883 no_cache=0
5884 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5885if test "${enable_protocol_http+set}" = set; then
5886 enableval="$enable_protocol_http"
5887
5888 if test "$enableval" = yes; then
5889 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5890 else
5891 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5892 fi
5893
5894else
5895
5896 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5904
5905fi;
5906
5907 eval "$ac_cv_use_protocol_http"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5913 echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
5915 else
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
5918 fi
5919
5920
5921 enablestring=
5922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5923echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5924 no_cache=0
5925 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5926if test "${enable_protocol_ftp+set}" = set; then
5927 enableval="$enable_protocol_ftp"
5928
5929 if test "$enableval" = yes; then
5930 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5931 else
5932 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5933 fi
5934
5935else
5936
5937 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
5944 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5945
5946fi;
5947
5948 eval "$ac_cv_use_protocol_ftp"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5954 echo "$as_me:$LINENO: result: yes" >&5
5955echo "${ECHO_T}yes" >&6
5956 else
5957 echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6
5959 fi
5960
5961
5962 enablestring=
5963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5964echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5965 no_cache=0
5966 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5967if test "${enable_protocol_file+set}" = set; then
5968 enableval="$enable_protocol_file"
5969
5970 if test "$enableval" = yes; then
5971 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5972 else
5973 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5974 fi
5975
5976else
5977
5978 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5979 if test "x$LINE" != x ; then
5980 eval "DEFAULT_$LINE"
5981 else
5982 no_cache=1
5983 fi
5984
5985 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5986
5987fi;
5988
5989 eval "$ac_cv_use_protocol_file"
5990 if test "$no_cache" != 1; then
5991 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5992 fi
5993
5994 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5995 echo "$as_me:$LINENO: result: yes" >&5
5996echo "${ECHO_T}yes" >&6
5997 else
5998 echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6
6000 fi
6001
6002
6003
6004
6005
6006 enablestring=
6007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6008echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6009 no_cache=0
6010 # Check whether --enable-threads or --disable-threads was given.
6011if test "${enable_threads+set}" = set; then
6012 enableval="$enable_threads"
6013
6014 if test "$enableval" = yes; then
6015 ac_cv_use_threads='wxUSE_THREADS=yes'
6016 else
6017 ac_cv_use_threads='wxUSE_THREADS=no'
6018 fi
6019
6020else
6021
6022 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6023 if test "x$LINE" != x ; then
6024 eval "DEFAULT_$LINE"
6025 else
6026 no_cache=1
6027 fi
6028
6029 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6030
6031fi;
6032
6033 eval "$ac_cv_use_threads"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_THREADS" = yes; then
6039 echo "$as_me:$LINENO: result: yes" >&5
6040echo "${ECHO_T}yes" >&6
6041 else
6042 echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
6044 fi
6045
6046
6047if test "$wxUSE_GUI" = "yes"; then
6048
6049
6050
6051 enablestring=
6052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6053echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6054 no_cache=0
6055 # Check whether --enable-docview or --disable-docview was given.
6056if test "${enable_docview+set}" = set; then
6057 enableval="$enable_docview"
6058
6059 if test "$enableval" = yes; then
6060 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6061 else
6062 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6063 fi
6064
6065else
6066
6067 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6075
6076fi;
6077
6078 eval "$ac_cv_use_docview"
6079 if test "$no_cache" != 1; then
6080 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6081 fi
6082
6083 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6084 echo "$as_me:$LINENO: result: yes" >&5
6085echo "${ECHO_T}yes" >&6
6086 else
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
6089 fi
6090
6091
6092 enablestring=
6093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6094echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6095 no_cache=0
6096 # Check whether --enable-help or --disable-help was given.
6097if test "${enable_help+set}" = set; then
6098 enableval="$enable_help"
6099
6100 if test "$enableval" = yes; then
6101 ac_cv_use_help='wxUSE_HELP=yes'
6102 else
6103 ac_cv_use_help='wxUSE_HELP=no'
6104 fi
6105
6106else
6107
6108 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6116
6117fi;
6118
6119 eval "$ac_cv_use_help"
6120 if test "$no_cache" != 1; then
6121 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6122 fi
6123
6124 if test "$wxUSE_HELP" = yes; then
6125 echo "$as_me:$LINENO: result: yes" >&5
6126echo "${ECHO_T}yes" >&6
6127 else
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
6130 fi
6131
6132
6133 enablestring=
6134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6135echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6136 no_cache=0
6137 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6138if test "${enable_mshtmlhelp+set}" = set; then
6139 enableval="$enable_mshtmlhelp"
6140
6141 if test "$enableval" = yes; then
6142 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6143 else
6144 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6145 fi
6146
6147else
6148
6149 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6150 if test "x$LINE" != x ; then
6151 eval "DEFAULT_$LINE"
6152 else
6153 no_cache=1
6154 fi
6155
6156 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6157
6158fi;
6159
6160 eval "$ac_cv_use_mshtmlhelp"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_MS_HTML_HELP" = yes; then
6166 echo "$as_me:$LINENO: result: yes" >&5
6167echo "${ECHO_T}yes" >&6
6168 else
6169 echo "$as_me:$LINENO: result: no" >&5
6170echo "${ECHO_T}no" >&6
6171 fi
6172
6173
6174 enablestring=
6175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6176echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6177 no_cache=0
6178 # Check whether --enable-html or --disable-html was given.
6179if test "${enable_html+set}" = set; then
6180 enableval="$enable_html"
6181
6182 if test "$enableval" = yes; then
6183 ac_cv_use_html='wxUSE_HTML=yes'
6184 else
6185 ac_cv_use_html='wxUSE_HTML=no'
6186 fi
6187
6188else
6189
6190 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6191 if test "x$LINE" != x ; then
6192 eval "DEFAULT_$LINE"
6193 else
6194 no_cache=1
6195 fi
6196
6197 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6198
6199fi;
6200
6201 eval "$ac_cv_use_html"
6202 if test "$no_cache" != 1; then
6203 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6204 fi
6205
6206 if test "$wxUSE_HTML" = yes; then
6207 echo "$as_me:$LINENO: result: yes" >&5
6208echo "${ECHO_T}yes" >&6
6209 else
6210 echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6
6212 fi
6213
6214
6215 enablestring=
6216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6217echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6218 no_cache=0
6219 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6220if test "${enable_htmlhelp+set}" = set; then
6221 enableval="$enable_htmlhelp"
6222
6223 if test "$enableval" = yes; then
6224 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6225 else
6226 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6227 fi
6228
6229else
6230
6231 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6232 if test "x$LINE" != x ; then
6233 eval "DEFAULT_$LINE"
6234 else
6235 no_cache=1
6236 fi
6237
6238 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6239
6240fi;
6241
6242 eval "$ac_cv_use_htmlhelp"
6243 if test "$no_cache" != 1; then
6244 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6245 fi
6246
6247 if test "$wxUSE_WXHTML_HELP" = yes; then
6248 echo "$as_me:$LINENO: result: yes" >&5
6249echo "${ECHO_T}yes" >&6
6250 else
6251 echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6
6253 fi
6254
6255
6256 enablestring=
6257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6258echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6259 no_cache=0
6260 # Check whether --enable-constraints or --disable-constraints was given.
6261if test "${enable_constraints+set}" = set; then
6262 enableval="$enable_constraints"
6263
6264 if test "$enableval" = yes; then
6265 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6266 else
6267 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6268 fi
6269
6270else
6271
6272 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
6279 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6280
6281fi;
6282
6283 eval "$ac_cv_use_constraints"
6284 if test "$no_cache" != 1; then
6285 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6286 fi
6287
6288 if test "$wxUSE_CONSTRAINTS" = yes; then
6289 echo "$as_me:$LINENO: result: yes" >&5
6290echo "${ECHO_T}yes" >&6
6291 else
6292 echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6
6294 fi
6295
6296
6297 enablestring=
6298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6299echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6300 no_cache=0
6301 # Check whether --enable-printarch or --disable-printarch was given.
6302if test "${enable_printarch+set}" = set; then
6303 enableval="$enable_printarch"
6304
6305 if test "$enableval" = yes; then
6306 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6307 else
6308 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6309 fi
6310
6311else
6312
6313 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6314 if test "x$LINE" != x ; then
6315 eval "DEFAULT_$LINE"
6316 else
6317 no_cache=1
6318 fi
6319
6320 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6321
6322fi;
6323
6324 eval "$ac_cv_use_printarch"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6330 echo "$as_me:$LINENO: result: yes" >&5
6331echo "${ECHO_T}yes" >&6
6332 else
6333 echo "$as_me:$LINENO: result: no" >&5
6334echo "${ECHO_T}no" >&6
6335 fi
6336
6337
6338 enablestring=
6339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6340echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6341 no_cache=0
6342 # Check whether --enable-mdi or --disable-mdi was given.
6343if test "${enable_mdi+set}" = set; then
6344 enableval="$enable_mdi"
6345
6346 if test "$enableval" = yes; then
8a7b1113 6347 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6348 else
8a7b1113 6349 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6350 fi
6351
6352else
6353
8a7b1113 6354 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6355 if test "x$LINE" != x ; then
6356 eval "DEFAULT_$LINE"
6357 else
6358 no_cache=1
6359 fi
6360
8a7b1113 6361 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6362
6363fi;
6364
6365 eval "$ac_cv_use_mdi"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6368 fi
6369
8a7b1113
VZ
6370 if test "$wxUSE_MDI" = yes; then
6371 echo "$as_me:$LINENO: result: yes" >&5
6372echo "${ECHO_T}yes" >&6
6373 else
6374 echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6
6376 fi
6377
6378
6379 enablestring=
6380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6381echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6382 no_cache=0
6383 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6384if test "${enable_mdidoc+set}" = set; then
6385 enableval="$enable_mdidoc"
6386
6387 if test "$enableval" = yes; then
6388 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6389 else
6390 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6391 fi
6392
6393else
6394
6395 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6396 if test "x$LINE" != x ; then
6397 eval "DEFAULT_$LINE"
6398 else
6399 no_cache=1
6400 fi
6401
6402 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6403
6404fi;
6405
6406 eval "$ac_cv_use_mdidoc"
6407 if test "$no_cache" != 1; then
6408 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6409 fi
6410
a848cd7e
SC
6411 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6412 echo "$as_me:$LINENO: result: yes" >&5
6413echo "${ECHO_T}yes" >&6
6414 else
6415 echo "$as_me:$LINENO: result: no" >&5
6416echo "${ECHO_T}no" >&6
6417 fi
6418
6419
6420 enablestring=
6421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6422echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6423 no_cache=0
6424 # Check whether --enable-loggui or --disable-loggui was given.
6425if test "${enable_loggui+set}" = set; then
6426 enableval="$enable_loggui"
6427
6428 if test "$enableval" = yes; then
6429 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6430 else
6431 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6432 fi
6433
6434else
6435
6436 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6437 if test "x$LINE" != x ; then
6438 eval "DEFAULT_$LINE"
6439 else
6440 no_cache=1
6441 fi
6442
6443 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6444
6445fi;
6446
6447 eval "$ac_cv_use_loggui"
6448 if test "$no_cache" != 1; then
6449 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6450 fi
6451
6452 if test "$wxUSE_LOGGUI" = yes; then
6453 echo "$as_me:$LINENO: result: yes" >&5
6454echo "${ECHO_T}yes" >&6
6455 else
6456 echo "$as_me:$LINENO: result: no" >&5
6457echo "${ECHO_T}no" >&6
6458 fi
6459
6460
6461 enablestring=
6462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6463echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6464 no_cache=0
6465 # Check whether --enable-logwin or --disable-logwin was given.
6466if test "${enable_logwin+set}" = set; then
6467 enableval="$enable_logwin"
6468
6469 if test "$enableval" = yes; then
6470 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6471 else
6472 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6473 fi
6474
6475else
6476
6477 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6478 if test "x$LINE" != x ; then
6479 eval "DEFAULT_$LINE"
6480 else
6481 no_cache=1
6482 fi
6483
6484 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6485
6486fi;
6487
6488 eval "$ac_cv_use_logwin"
6489 if test "$no_cache" != 1; then
6490 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6491 fi
6492
6493 if test "$wxUSE_LOGWINDOW" = yes; then
6494 echo "$as_me:$LINENO: result: yes" >&5
6495echo "${ECHO_T}yes" >&6
6496 else
6497 echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6
6499 fi
6500
6501
6502 enablestring=
6503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6504echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6505 no_cache=0
6506 # Check whether --enable-logdialog or --disable-logdialog was given.
6507if test "${enable_logdialog+set}" = set; then
6508 enableval="$enable_logdialog"
6509
6510 if test "$enableval" = yes; then
6511 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6512 else
6513 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6514 fi
6515
6516else
6517
6518 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6519 if test "x$LINE" != x ; then
6520 eval "DEFAULT_$LINE"
6521 else
6522 no_cache=1
6523 fi
6524
6525 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6526
6527fi;
6528
6529 eval "$ac_cv_use_logdialog"
6530 if test "$no_cache" != 1; then
6531 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6532 fi
6533
6534 if test "$wxUSE_LOGDIALOG" = yes; then
6535 echo "$as_me:$LINENO: result: yes" >&5
6536echo "${ECHO_T}yes" >&6
6537 else
6538 echo "$as_me:$LINENO: result: no" >&5
6539echo "${ECHO_T}no" >&6
6540 fi
6541
6542
646b6ec1
VS
6543 enablestring=
6544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6545echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6546 no_cache=0
6547 # Check whether --enable-webkit or --disable-webkit was given.
6548if test "${enable_webkit+set}" = set; then
6549 enableval="$enable_webkit"
6550
6551 if test "$enableval" = yes; then
6552 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6553 else
6554 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6555 fi
6556
6557else
6558
6559 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6560 if test "x$LINE" != x ; then
6561 eval "DEFAULT_$LINE"
6562 else
6563 no_cache=1
6564 fi
6565
6566 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6567
6568fi;
6569
6570 eval "$ac_cv_use_webkit"
6571 if test "$no_cache" != 1; then
6572 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6573 fi
6574
6575 if test "$wxUSE_WEBKIT" = yes; then
6576 echo "$as_me:$LINENO: result: yes" >&5
6577echo "${ECHO_T}yes" >&6
6578 else
6579 echo "$as_me:$LINENO: result: no" >&5
6580echo "${ECHO_T}no" >&6
6581 fi
6582
6583
a848cd7e
SC
6584
6585 enablestring=
6586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6587echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6588 no_cache=0
6589 # Check whether --enable-postscript or --disable-postscript was given.
6590if test "${enable_postscript+set}" = set; then
6591 enableval="$enable_postscript"
6592
6593 if test "$enableval" = yes; then
6594 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6595 else
6596 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6597 fi
6598
6599else
6600
6601 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6602 if test "x$LINE" != x ; then
6603 eval "DEFAULT_$LINE"
6604 else
6605 no_cache=1
6606 fi
6607
6608 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6609
6610fi;
6611
6612 eval "$ac_cv_use_postscript"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_POSTSCRIPT" = yes; then
6618 echo "$as_me:$LINENO: result: yes" >&5
6619echo "${ECHO_T}yes" >&6
6620 else
6621 echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
6623 fi
6624
6625
6626
6627
6628
6629 enablestring=
6630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6631echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6632 no_cache=0
6633 # Check whether --enable-prologio or --disable-prologio was given.
6634if test "${enable_prologio+set}" = set; then
6635 enableval="$enable_prologio"
6636
6637 if test "$enableval" = yes; then
6638 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6639 else
6640 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6641 fi
6642
6643else
6644
6645 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6646 if test "x$LINE" != x ; then
6647 eval "DEFAULT_$LINE"
6648 else
6649 no_cache=1
6650 fi
6651
6652 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6653
6654fi;
6655
6656 eval "$ac_cv_use_prologio"
6657 if test "$no_cache" != 1; then
6658 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6659 fi
6660
6661 if test "$wxUSE_PROLOGIO" = yes; then
6662 echo "$as_me:$LINENO: result: yes" >&5
6663echo "${ECHO_T}yes" >&6
6664 else
6665 echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6
6667 fi
6668
6669
6670 enablestring=
6671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6672echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6673 no_cache=0
6674 # Check whether --enable-resources or --disable-resources was given.
6675if test "${enable_resources+set}" = set; then
6676 enableval="$enable_resources"
6677
6678 if test "$enableval" = yes; then
6679 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6680 else
6681 ac_cv_use_resources='wxUSE_RESOURCES=no'
6682 fi
6683
6684else
6685
6686 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6687 if test "x$LINE" != x ; then
6688 eval "DEFAULT_$LINE"
6689 else
6690 no_cache=1
6691 fi
6692
6693 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6694
6695fi;
6696
6697 eval "$ac_cv_use_resources"
6698 if test "$no_cache" != 1; then
6699 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6700 fi
6701
6702 if test "$wxUSE_RESOURCES" = yes; then
6703 echo "$as_me:$LINENO: result: yes" >&5
6704echo "${ECHO_T}yes" >&6
6705 else
6706 echo "$as_me:$LINENO: result: no" >&5
6707echo "${ECHO_T}no" >&6
6708 fi
6709
6710
6711
6712
6713 enablestring=
6714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6715echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6716 no_cache=0
6717 # Check whether --enable-clipboard or --disable-clipboard was given.
6718if test "${enable_clipboard+set}" = set; then
6719 enableval="$enable_clipboard"
6720
6721 if test "$enableval" = yes; then
6722 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6723 else
6724 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6725 fi
6726
6727else
6728
6729 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6730 if test "x$LINE" != x ; then
6731 eval "DEFAULT_$LINE"
6732 else
6733 no_cache=1
6734 fi
6735
6736 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6737
6738fi;
6739
6740 eval "$ac_cv_use_clipboard"
6741 if test "$no_cache" != 1; then
6742 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6743 fi
6744
6745 if test "$wxUSE_CLIPBOARD" = yes; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747echo "${ECHO_T}yes" >&6
6748 else
6749 echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
6751 fi
6752
6753
6754 enablestring=
6755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6756echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6757 no_cache=0
6758 # Check whether --enable-dnd or --disable-dnd was given.
6759if test "${enable_dnd+set}" = set; then
6760 enableval="$enable_dnd"
6761
6762 if test "$enableval" = yes; then
6763 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6764 else
6765 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6766 fi
6767
6768else
6769
6770 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6771 if test "x$LINE" != x ; then
6772 eval "DEFAULT_$LINE"
6773 else
6774 no_cache=1
6775 fi
6776
6777 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6778
6779fi;
6780
6781 eval "$ac_cv_use_dnd"
6782 if test "$no_cache" != 1; then
6783 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6784 fi
6785
6786 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6787 echo "$as_me:$LINENO: result: yes" >&5
6788echo "${ECHO_T}yes" >&6
6789 else
6790 echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6
6792 fi
6793
6794
6795 enablestring=
6796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6797echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6798 no_cache=0
6799 # Check whether --enable-metafile or --disable-metafile was given.
6800if test "${enable_metafile+set}" = set; then
6801 enableval="$enable_metafile"
6802
6803 if test "$enableval" = yes; then
6804 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6805 else
6806 ac_cv_use_metafile='wxUSE_METAFILE=no'
6807 fi
6808
6809else
6810
6811 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6819
6820fi;
6821
6822 eval "$ac_cv_use_metafile"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_METAFILE" = yes; then
6828 echo "$as_me:$LINENO: result: yes" >&5
6829echo "${ECHO_T}yes" >&6
6830 else
6831 echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6
6833 fi
6834
6835
6836
6837
6838
6839 enablestring=
6840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6841echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6842 no_cache=0
6843 # Check whether --enable-controls or --disable-controls was given.
6844if test "${enable_controls+set}" = set; then
6845 enableval="$enable_controls"
6846
6847 if test "$enableval" = yes; then
6848 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6849 else
6850 ac_cv_use_controls='wxUSE_CONTROLS=no'
6851 fi
6852
6853else
6854
6855 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6856 if test "x$LINE" != x ; then
6857 eval "DEFAULT_$LINE"
6858 else
6859 no_cache=1
6860 fi
6861
6862 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6863
6864fi;
6865
6866 eval "$ac_cv_use_controls"
6867 if test "$no_cache" != 1; then
6868 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6869 fi
6870
6871 if test "$wxUSE_CONTROLS" = yes; then
6872 echo "$as_me:$LINENO: result: yes" >&5
6873echo "${ECHO_T}yes" >&6
6874 else
6875 echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6
6877 fi
6878
6879
6880if test "$wxUSE_CONTROLS" = "yes"; then
6881 DEFAULT_wxUSE_ACCEL=yes
6882 DEFAULT_wxUSE_BMPBUTTON=yes
6883 DEFAULT_wxUSE_BUTTON=yes
6884 DEFAULT_wxUSE_CALCTRL=no
6885 DEFAULT_wxUSE_CARET=yes
6886 DEFAULT_wxUSE_COMBOBOX=yes
6887 DEFAULT_wxUSE_CHECKBOX=yes
6888 DEFAULT_wxUSE_CHECKLISTBOX=yes
6889 DEFAULT_wxUSE_CHOICE=yes
6890 DEFAULT_wxUSE_GAUGE=yes
6891 DEFAULT_wxUSE_GRID=yes
6892 DEFAULT_wxUSE_IMAGLIST=yes
6893 DEFAULT_wxUSE_LISTBOOK=yes
6894 DEFAULT_wxUSE_LISTBOX=yes
6895 DEFAULT_wxUSE_LISTCTRL=yes
6896 DEFAULT_wxUSE_NOTEBOOK=yes
6897 DEFAULT_wxUSE_RADIOBOX=yes
6898 DEFAULT_wxUSE_RADIOBTN=yes
6899 DEFAULT_wxUSE_SASH=yes
6900 DEFAULT_wxUSE_SCROLLBAR=yes
6901 DEFAULT_wxUSE_SLIDER=yes
6902 DEFAULT_wxUSE_SPINBTN=yes
6903 DEFAULT_wxUSE_SPINCTRL=yes
6904 DEFAULT_wxUSE_SPLITTER=yes
6905 DEFAULT_wxUSE_STATBMP=yes
6906 DEFAULT_wxUSE_STATBOX=yes
6907 DEFAULT_wxUSE_STATLINE=yes
6908 DEFAULT_wxUSE_STATUSBAR=yes
6909 DEFAULT_wxUSE_TAB_DIALOG=yes
6910 DEFAULT_wxUSE_TOGGLEBTN=yes
6911 DEFAULT_wxUSE_TOOLBAR=yes
6912 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6913 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6914 DEFAULT_wxUSE_TOOLTIPS=yes
6915 DEFAULT_wxUSE_TREECTRL=yes
6916 DEFAULT_wxUSE_POPUPWIN=yes
6917 DEFAULT_wxUSE_TIPWINDOW=yes
6918elif test "$wxUSE_CONTROLS" = "no"; then
6919 DEFAULT_wxUSE_ACCEL=no
6920 DEFAULT_wxUSE_BMPBUTTON=no
6921 DEFAULT_wxUSE_BUTTON=no
6922 DEFAULT_wxUSE_CALCTRL=no
6923 DEFAULT_wxUSE_CARET=no
6924 DEFAULT_wxUSE_COMBOBOX=no
6925 DEFAULT_wxUSE_CHECKBOX=no
6926 DEFAULT_wxUSE_CHECKLISTBOX=no
6927 DEFAULT_wxUSE_CHOICE=no
6928 DEFAULT_wxUSE_GAUGE=no
6929 DEFAULT_wxUSE_GRID=no
6930 DEFAULT_wxUSE_IMAGLIST=no
6931 DEFAULT_wxUSE_LISTBOOK=no
6932 DEFAULT_wxUSE_LISTBOX=no
6933 DEFAULT_wxUSE_LISTCTRL=no
6934 DEFAULT_wxUSE_NOTEBOOK=no
6935 DEFAULT_wxUSE_RADIOBOX=no
6936 DEFAULT_wxUSE_RADIOBTN=no
6937 DEFAULT_wxUSE_SASH=no
6938 DEFAULT_wxUSE_SCROLLBAR=no
6939 DEFAULT_wxUSE_SLIDER=no
6940 DEFAULT_wxUSE_SPINBTN=no
6941 DEFAULT_wxUSE_SPINCTRL=no
6942 DEFAULT_wxUSE_SPLITTER=no
6943 DEFAULT_wxUSE_STATBMP=no
6944 DEFAULT_wxUSE_STATBOX=no
6945 DEFAULT_wxUSE_STATLINE=no
6946 DEFAULT_wxUSE_STATUSBAR=no
6947 DEFAULT_wxUSE_TAB_DIALOG=no
6948 DEFAULT_wxUSE_TOGGLEBTN=no
6949 DEFAULT_wxUSE_TOOLBAR=no
6950 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6951 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6952 DEFAULT_wxUSE_TOOLTIPS=no
6953 DEFAULT_wxUSE_TREECTRL=no
6954 DEFAULT_wxUSE_POPUPWIN=no
6955 DEFAULT_wxUSE_TIPWINDOW=no
6956fi
6957
6958## FIXME: This is a blatant hack
6959if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6960 wxUSE_PRINTING_ARCHITECTURE=no
6961 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
6962 DEFAULT_wxUSE_TOOLTIPS=no
6963 DEFAULT_wxUSE_DRAGIMAGE=no
6964fi
6965
6966
6967 enablestring=
6968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6969echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6970 no_cache=0
6971 # Check whether --enable-accel or --disable-accel was given.
6972if test "${enable_accel+set}" = set; then
6973 enableval="$enable_accel"
6974
6975 if test "$enableval" = yes; then
6976 ac_cv_use_accel='wxUSE_ACCEL=yes'
6977 else
6978 ac_cv_use_accel='wxUSE_ACCEL=no'
6979 fi
6980
6981else
6982
6983 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
6990 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6991
6992fi;
6993
6994 eval "$ac_cv_use_accel"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_ACCEL" = yes; then
7000 echo "$as_me:$LINENO: result: yes" >&5
7001echo "${ECHO_T}yes" >&6
7002 else
7003 echo "$as_me:$LINENO: result: no" >&5
7004echo "${ECHO_T}no" >&6
7005 fi
7006
7007
7008 enablestring=
7009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7010echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7011 no_cache=0
7012 # Check whether --enable-button or --disable-button was given.
7013if test "${enable_button+set}" = set; then
7014 enableval="$enable_button"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_button='wxUSE_BUTTON=yes'
7018 else
7019 ac_cv_use_button='wxUSE_BUTTON=no'
7020 fi
7021
7022else
7023
7024 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7032
7033fi;
7034
7035 eval "$ac_cv_use_button"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7038 fi
7039
7040 if test "$wxUSE_BUTTON" = yes; then
7041 echo "$as_me:$LINENO: result: yes" >&5
7042echo "${ECHO_T}yes" >&6
7043 else
7044 echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6
7046 fi
7047
7048
7049 enablestring=
7050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7051echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7052 no_cache=0
7053 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7054if test "${enable_bmpbutton+set}" = set; then
7055 enableval="$enable_bmpbutton"
7056
7057 if test "$enableval" = yes; then
7058 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7059 else
7060 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7061 fi
7062
7063else
7064
7065 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7073
7074fi;
7075
7076 eval "$ac_cv_use_bmpbutton"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_BMPBUTTON" = yes; then
7082 echo "$as_me:$LINENO: result: yes" >&5
7083echo "${ECHO_T}yes" >&6
7084 else
7085 echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6
7087 fi
7088
7089
7090 enablestring=
7091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7092echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7093 no_cache=0
7094 # Check whether --enable-calendar or --disable-calendar was given.
7095if test "${enable_calendar+set}" = set; then
7096 enableval="$enable_calendar"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7100 else
7101 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7102 fi
7103
7104else
7105
7106 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7114
7115fi;
7116
7117 eval "$ac_cv_use_calendar"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_CALCTRL" = yes; then
7123 echo "$as_me:$LINENO: result: yes" >&5
7124echo "${ECHO_T}yes" >&6
7125 else
7126 echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6
7128 fi
7129
7130
7131 enablestring=
7132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7133echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7134 no_cache=0
7135 # Check whether --enable-caret or --disable-caret was given.
7136if test "${enable_caret+set}" = set; then
7137 enableval="$enable_caret"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_caret='wxUSE_CARET=yes'
7141 else
7142 ac_cv_use_caret='wxUSE_CARET=no'
7143 fi
7144
7145else
7146
7147 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7155
7156fi;
7157
7158 eval "$ac_cv_use_caret"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_CARET" = yes; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169 fi
7170
7171
7172 enablestring=
7173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7174echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7175 no_cache=0
7176 # Check whether --enable-checkbox or --disable-checkbox was given.
7177if test "${enable_checkbox+set}" = set; then
7178 enableval="$enable_checkbox"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7182 else
7183 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7196
7197fi;
7198
7199 eval "$ac_cv_use_checkbox"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_CHECKBOX" = yes; then
7205 echo "$as_me:$LINENO: result: yes" >&5
7206echo "${ECHO_T}yes" >&6
7207 else
7208 echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6
7210 fi
7211
7212
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-checklst or --disable-checklst was given.
7218if test "${enable_checklst+set}" = set; then
7219 enableval="$enable_checklst"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7223 else
7224 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7237
7238fi;
7239
7240 eval "$ac_cv_use_checklst"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CHECKLST" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254 enablestring=
7255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7256echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7257 no_cache=0
7258 # Check whether --enable-choice or --disable-choice was given.
7259if test "${enable_choice+set}" = set; then
7260 enableval="$enable_choice"
7261
7262 if test "$enableval" = yes; then
7263 ac_cv_use_choice='wxUSE_CHOICE=yes'
7264 else
7265 ac_cv_use_choice='wxUSE_CHOICE=no'
7266 fi
7267
7268else
7269
7270 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7271 if test "x$LINE" != x ; then
7272 eval "DEFAULT_$LINE"
7273 else
7274 no_cache=1
7275 fi
7276
7277 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7278
7279fi;
7280
7281 eval "$ac_cv_use_choice"
7282 if test "$no_cache" != 1; then
7283 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7284 fi
7285
7286 if test "$wxUSE_CHOICE" = yes; then
7287 echo "$as_me:$LINENO: result: yes" >&5
7288echo "${ECHO_T}yes" >&6
7289 else
7290 echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6
7292 fi
7293
7294
7295 enablestring=
7296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7297echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7298 no_cache=0
7299 # Check whether --enable-combobox or --disable-combobox was given.
7300if test "${enable_combobox+set}" = set; then
7301 enableval="$enable_combobox"
7302
7303 if test "$enableval" = yes; then
7304 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7305 else
7306 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7307 fi
7308
7309else
7310
7311 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7312 if test "x$LINE" != x ; then
7313 eval "DEFAULT_$LINE"
7314 else
7315 no_cache=1
7316 fi
7317
7318 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7319
7320fi;
7321
7322 eval "$ac_cv_use_combobox"
7323 if test "$no_cache" != 1; then
7324 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7325 fi
7326
7327 if test "$wxUSE_COMBOBOX" = yes; then
7328 echo "$as_me:$LINENO: result: yes" >&5
7329echo "${ECHO_T}yes" >&6
7330 else
7331 echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6
7333 fi
7334
7335
7336 enablestring=
7337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7338echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7339 no_cache=0
7340 # Check whether --enable-display or --disable-display was given.
7341if test "${enable_display+set}" = set; then
7342 enableval="$enable_display"
7343
7344 if test "$enableval" = yes; then
7345 ac_cv_use_display='wxUSE_DISPLAY=yes'
7346 else
7347 ac_cv_use_display='wxUSE_DISPLAY=no'
7348 fi
7349
7350else
7351
7352 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7353 if test "x$LINE" != x ; then
7354 eval "DEFAULT_$LINE"
7355 else
7356 no_cache=1
7357 fi
7358
7359 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7360
7361fi;
7362
7363 eval "$ac_cv_use_display"
7364 if test "$no_cache" != 1; then
7365 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7366 fi
7367
7368 if test "$wxUSE_DISPLAY" = yes; then
7369 echo "$as_me:$LINENO: result: yes" >&5
7370echo "${ECHO_T}yes" >&6
7371 else
7372 echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
7374 fi
7375
7376
7377 enablestring=
7378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7379echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7380 no_cache=0
7381 # Check whether --enable-gauge or --disable-gauge was given.
7382if test "${enable_gauge+set}" = set; then
7383 enableval="$enable_gauge"
7384
7385 if test "$enableval" = yes; then
7386 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7387 else
7388 ac_cv_use_gauge='wxUSE_GAUGE=no'
7389 fi
7390
7391else
7392
7393 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7394 if test "x$LINE" != x ; then
7395 eval "DEFAULT_$LINE"
7396 else
7397 no_cache=1
7398 fi
7399
7400 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7401
7402fi;
7403
7404 eval "$ac_cv_use_gauge"
7405 if test "$no_cache" != 1; then
7406 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7407 fi
7408
7409 if test "$wxUSE_GAUGE" = yes; then
7410 echo "$as_me:$LINENO: result: yes" >&5
7411echo "${ECHO_T}yes" >&6
7412 else
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415 fi
7416
7417
7418 enablestring=
7419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7420echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7421 no_cache=0
7422 # Check whether --enable-grid or --disable-grid was given.
7423if test "${enable_grid+set}" = set; then
7424 enableval="$enable_grid"
7425
7426 if test "$enableval" = yes; then
7427 ac_cv_use_grid='wxUSE_GRID=yes'
7428 else
7429 ac_cv_use_grid='wxUSE_GRID=no'
7430 fi
7431
7432else
7433
7434 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7435 if test "x$LINE" != x ; then
7436 eval "DEFAULT_$LINE"
7437 else
7438 no_cache=1
7439 fi
7440
7441 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7442
7443fi;
7444
7445 eval "$ac_cv_use_grid"
7446 if test "$no_cache" != 1; then
7447 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7448 fi
7449
7450 if test "$wxUSE_GRID" = yes; then
7451 echo "$as_me:$LINENO: result: yes" >&5
7452echo "${ECHO_T}yes" >&6
7453 else
7454 echo "$as_me:$LINENO: result: no" >&5
7455echo "${ECHO_T}no" >&6
7456 fi
7457
7458
7459 enablestring=
7460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7461echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7462 no_cache=0
7463 # Check whether --enable-imaglist or --disable-imaglist was given.
7464if test "${enable_imaglist+set}" = set; then
7465 enableval="$enable_imaglist"
7466
7467 if test "$enableval" = yes; then
7468 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7469 else
7470 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7471 fi
7472
7473else
7474
7475 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7476 if test "x$LINE" != x ; then
7477 eval "DEFAULT_$LINE"
7478 else
7479 no_cache=1
7480 fi
7481
7482 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7483
7484fi;
7485
7486 eval "$ac_cv_use_imaglist"
7487 if test "$no_cache" != 1; then
7488 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7489 fi
7490
7491 if test "$wxUSE_IMAGLIST" = yes; then
7492 echo "$as_me:$LINENO: result: yes" >&5
7493echo "${ECHO_T}yes" >&6
7494 else
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
7497 fi
7498
7499
7500 enablestring=
7501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7502echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7503 no_cache=0
7504 # Check whether --enable-listbook or --disable-listbook was given.
7505if test "${enable_listbook+set}" = set; then
7506 enableval="$enable_listbook"
7507
7508 if test "$enableval" = yes; then
7509 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7510 else
7511 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7512 fi
7513
7514else
7515
7516 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7517 if test "x$LINE" != x ; then
7518 eval "DEFAULT_$LINE"
7519 else
7520 no_cache=1
7521 fi
7522
7523 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7524
7525fi;
7526
7527 eval "$ac_cv_use_listbook"
7528 if test "$no_cache" != 1; then
7529 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7530 fi
7531
7532 if test "$wxUSE_LISTBOOK" = yes; then
7533 echo "$as_me:$LINENO: result: yes" >&5
7534echo "${ECHO_T}yes" >&6
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
7538 fi
7539
7540
7541 enablestring=
7542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7543echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7544 no_cache=0
7545 # Check whether --enable-listbox or --disable-listbox was given.
7546if test "${enable_listbox+set}" = set; then
7547 enableval="$enable_listbox"
7548
7549 if test "$enableval" = yes; then
7550 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7551 else
7552 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7553 fi
7554
7555else
7556
7557 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7558 if test "x$LINE" != x ; then
7559 eval "DEFAULT_$LINE"
7560 else
7561 no_cache=1
7562 fi
7563
7564 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7565
7566fi;
7567
7568 eval "$ac_cv_use_listbox"
7569 if test "$no_cache" != 1; then
7570 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7571 fi
7572
7573 if test "$wxUSE_LISTBOX" = yes; then
7574 echo "$as_me:$LINENO: result: yes" >&5
7575echo "${ECHO_T}yes" >&6
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6
7579 fi
7580
7581
7582 enablestring=
7583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7584echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7585 no_cache=0
7586 # Check whether --enable-listctrl or --disable-listctrl was given.
7587if test "${enable_listctrl+set}" = set; then
7588 enableval="$enable_listctrl"
7589
7590 if test "$enableval" = yes; then
7591 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7592 else
7593 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7594 fi
7595
7596else
7597
7598 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7599 if test "x$LINE" != x ; then
7600 eval "DEFAULT_$LINE"
7601 else
7602 no_cache=1
7603 fi
7604
7605 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7606
7607fi;
7608
7609 eval "$ac_cv_use_listctrl"
7610 if test "$no_cache" != 1; then
7611 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7612 fi
7613
7614 if test "$wxUSE_LISTCTRL" = yes; then
7615 echo "$as_me:$LINENO: result: yes" >&5
7616echo "${ECHO_T}yes" >&6
7617 else
7618 echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
7620 fi
7621
7622
7623 enablestring=
7624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7625echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7626 no_cache=0
7627 # Check whether --enable-notebook or --disable-notebook was given.
7628if test "${enable_notebook+set}" = set; then
7629 enableval="$enable_notebook"
7630
7631 if test "$enableval" = yes; then
7632 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7633 else
7634 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7635 fi
7636
7637else
7638
7639 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7640 if test "x$LINE" != x ; then
7641 eval "DEFAULT_$LINE"
7642 else
7643 no_cache=1
7644 fi
7645
7646 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7647
7648fi;
7649
7650 eval "$ac_cv_use_notebook"
7651 if test "$no_cache" != 1; then
7652 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7653 fi
7654
7655 if test "$wxUSE_NOTEBOOK" = yes; then
7656 echo "$as_me:$LINENO: result: yes" >&5
7657echo "${ECHO_T}yes" >&6
7658 else
7659 echo "$as_me:$LINENO: result: no" >&5
7660echo "${ECHO_T}no" >&6
7661 fi
7662
7663
7664 enablestring=
7665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7666echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7667 no_cache=0
7668 # Check whether --enable-radiobox or --disable-radiobox was given.
7669if test "${enable_radiobox+set}" = set; then
7670 enableval="$enable_radiobox"
7671
7672 if test "$enableval" = yes; then
7673 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7674 else
7675 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7676 fi
7677
7678else
7679
7680 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7681 if test "x$LINE" != x ; then
7682 eval "DEFAULT_$LINE"
7683 else
7684 no_cache=1
7685 fi
7686
7687 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7688
7689fi;
7690
7691 eval "$ac_cv_use_radiobox"
7692 if test "$no_cache" != 1; then
7693 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7694 fi
7695
7696 if test "$wxUSE_RADIOBOX" = yes; then
7697 echo "$as_me:$LINENO: result: yes" >&5
7698echo "${ECHO_T}yes" >&6
7699 else
7700 echo "$as_me:$LINENO: result: no" >&5
7701echo "${ECHO_T}no" >&6
7702 fi
7703
7704
7705 enablestring=
7706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7707echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7708 no_cache=0
7709 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7710if test "${enable_radiobtn+set}" = set; then
7711 enableval="$enable_radiobtn"
7712
7713 if test "$enableval" = yes; then
7714 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7715 else
7716 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7717 fi
7718
7719else
7720
7721 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7722 if test "x$LINE" != x ; then
7723 eval "DEFAULT_$LINE"
7724 else
7725 no_cache=1
7726 fi
7727
7728 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7729
7730fi;
7731
7732 eval "$ac_cv_use_radiobtn"
7733 if test "$no_cache" != 1; then
7734 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7735 fi
7736
7737 if test "$wxUSE_RADIOBTN" = yes; then
7738 echo "$as_me:$LINENO: result: yes" >&5
7739echo "${ECHO_T}yes" >&6
7740 else
7741 echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6
7743 fi
7744
7745
7746 enablestring=
7747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7748echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7749 no_cache=0
7750 # Check whether --enable-sash or --disable-sash was given.
7751if test "${enable_sash+set}" = set; then
7752 enableval="$enable_sash"
7753
7754 if test "$enableval" = yes; then
7755 ac_cv_use_sash='wxUSE_SASH=yes'
7756 else
7757 ac_cv_use_sash='wxUSE_SASH=no'
7758 fi
7759
7760else
7761
7762 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7763 if test "x$LINE" != x ; then
7764 eval "DEFAULT_$LINE"
7765 else
7766 no_cache=1
7767 fi
7768
7769 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7770
7771fi;
7772
7773 eval "$ac_cv_use_sash"
7774 if test "$no_cache" != 1; then
7775 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7776 fi
7777
7778 if test "$wxUSE_SASH" = yes; then
7779 echo "$as_me:$LINENO: result: yes" >&5
7780echo "${ECHO_T}yes" >&6
7781 else
7782 echo "$as_me:$LINENO: result: no" >&5
7783echo "${ECHO_T}no" >&6
7784 fi
7785
7786
7787 enablestring=
7788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7789echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7790 no_cache=0
7791 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7792if test "${enable_scrollbar+set}" = set; then
7793 enableval="$enable_scrollbar"
7794
7795 if test "$enableval" = yes; then
7796 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7797 else
7798 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7799 fi
7800
7801else
7802
7803 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7804 if test "x$LINE" != x ; then
7805 eval "DEFAULT_$LINE"
7806 else
7807 no_cache=1
7808 fi
7809
7810 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7811
7812fi;
7813
7814 eval "$ac_cv_use_scrollbar"
7815 if test "$no_cache" != 1; then
7816 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7817 fi
7818
7819 if test "$wxUSE_SCROLLBAR" = yes; then
7820 echo "$as_me:$LINENO: result: yes" >&5
7821echo "${ECHO_T}yes" >&6
7822 else
7823 echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
7825 fi
7826
7827
7828 enablestring=
7829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7830echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7831 no_cache=0
7832 # Check whether --enable-slider or --disable-slider was given.
7833if test "${enable_slider+set}" = set; then
7834 enableval="$enable_slider"
7835
7836 if test "$enableval" = yes; then
7837 ac_cv_use_slider='wxUSE_SLIDER=yes'
7838 else
7839 ac_cv_use_slider='wxUSE_SLIDER=no'
7840 fi
7841
7842else
7843
7844 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7845 if test "x$LINE" != x ; then
7846 eval "DEFAULT_$LINE"
7847 else
7848 no_cache=1
7849 fi
7850
7851 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7852
7853fi;
7854
7855 eval "$ac_cv_use_slider"
7856 if test "$no_cache" != 1; then
7857 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7858 fi
7859
7860 if test "$wxUSE_SLIDER" = yes; then
7861 echo "$as_me:$LINENO: result: yes" >&5
7862echo "${ECHO_T}yes" >&6
7863 else
7864 echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
7866 fi
7867
7868
7869 enablestring=
7870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7871echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7872 no_cache=0
7873 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7874if test "${enable_spinbtn+set}" = set; then
7875 enableval="$enable_spinbtn"
7876
7877 if test "$enableval" = yes; then
7878 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7879 else
7880 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7881 fi
7882
7883else
7884
7885 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7886 if test "x$LINE" != x ; then
7887 eval "DEFAULT_$LINE"
7888 else
7889 no_cache=1
7890 fi
7891
7892 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7893
7894fi;
7895
7896 eval "$ac_cv_use_spinbtn"
7897 if test "$no_cache" != 1; then
7898 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7899 fi
7900
7901 if test "$wxUSE_SPINBTN" = yes; then
7902 echo "$as_me:$LINENO: result: yes" >&5
7903echo "${ECHO_T}yes" >&6
7904 else
7905 echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6
7907 fi
7908
7909
7910 enablestring=
7911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7912echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7913 no_cache=0
7914 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7915if test "${enable_spinctrl+set}" = set; then
7916 enableval="$enable_spinctrl"
7917
7918 if test "$enableval" = yes; then
7919 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7920 else
7921 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7922 fi
7923
7924else
7925
7926 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7927 if test "x$LINE" != x ; then
7928 eval "DEFAULT_$LINE"
7929 else
7930 no_cache=1
7931 fi
7932
7933 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7934
7935fi;
7936
7937 eval "$ac_cv_use_spinctrl"
7938 if test "$no_cache" != 1; then
7939 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7940 fi
7941
7942 if test "$wxUSE_SPINCTRL" = yes; then
7943 echo "$as_me:$LINENO: result: yes" >&5
7944echo "${ECHO_T}yes" >&6
7945 else
7946 echo "$as_me:$LINENO: result: no" >&5
7947echo "${ECHO_T}no" >&6
7948 fi
7949
7950
7951 enablestring=
7952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7953echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7954 no_cache=0
7955 # Check whether --enable-splitter or --disable-splitter was given.
7956if test "${enable_splitter+set}" = set; then
7957 enableval="$enable_splitter"
7958
7959 if test "$enableval" = yes; then
7960 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7961 else
7962 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7963 fi
7964
7965else
7966
7967 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7968 if test "x$LINE" != x ; then
7969 eval "DEFAULT_$LINE"
7970 else
7971 no_cache=1
7972 fi
7973
7974 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7975
7976fi;
7977
7978 eval "$ac_cv_use_splitter"
7979 if test "$no_cache" != 1; then
7980 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7981 fi
7982
7983 if test "$wxUSE_SPLITTER" = yes; then
7984 echo "$as_me:$LINENO: result: yes" >&5
7985echo "${ECHO_T}yes" >&6
7986 else
7987 echo "$as_me:$LINENO: result: no" >&5
7988echo "${ECHO_T}no" >&6
7989 fi
7990
7991
7992 enablestring=
7993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7994echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7995 no_cache=0
7996 # Check whether --enable-statbmp or --disable-statbmp was given.
7997if test "${enable_statbmp+set}" = set; then
7998 enableval="$enable_statbmp"
7999
8000 if test "$enableval" = yes; then
8001 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8002 else
8003 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8004 fi
8005
8006else
8007
8008 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8009 if test "x$LINE" != x ; then
8010 eval "DEFAULT_$LINE"
8011 else
8012 no_cache=1
8013 fi
8014
8015 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8016
8017fi;
8018
8019 eval "$ac_cv_use_statbmp"
8020 if test "$no_cache" != 1; then
8021 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8022 fi
8023
8024 if test "$wxUSE_STATBMP" = yes; then
8025 echo "$as_me:$LINENO: result: yes" >&5
8026echo "${ECHO_T}yes" >&6
8027 else
8028 echo "$as_me:$LINENO: result: no" >&5
8029echo "${ECHO_T}no" >&6
8030 fi
8031
8032
8033 enablestring=
8034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8035echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8036 no_cache=0
8037 # Check whether --enable-statbox or --disable-statbox was given.
8038if test "${enable_statbox+set}" = set; then
8039 enableval="$enable_statbox"
8040
8041 if test "$enableval" = yes; then
8042 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8043 else
8044 ac_cv_use_statbox='wxUSE_STATBOX=no'
8045 fi
8046
8047else
8048
8049 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8050 if test "x$LINE" != x ; then
8051 eval "DEFAULT_$LINE"
8052 else
8053 no_cache=1
8054 fi
8055
8056 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8057
8058fi;
8059
8060 eval "$ac_cv_use_statbox"
8061 if test "$no_cache" != 1; then
8062 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8063 fi
8064
8065 if test "$wxUSE_STATBOX" = yes; then
8066 echo "$as_me:$LINENO: result: yes" >&5
8067echo "${ECHO_T}yes" >&6
8068 else
8069 echo "$as_me:$LINENO: result: no" >&5
8070echo "${ECHO_T}no" >&6
8071 fi
8072
8073
8074 enablestring=
8075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8076echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8077 no_cache=0
8078 # Check whether --enable-statline or --disable-statline was given.
8079if test "${enable_statline+set}" = set; then
8080 enableval="$enable_statline"
8081
8082 if test "$enableval" = yes; then
8083 ac_cv_use_statline='wxUSE_STATLINE=yes'
8084 else
8085 ac_cv_use_statline='wxUSE_STATLINE=no'
8086 fi
8087
8088else
8089
8090 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8091 if test "x$LINE" != x ; then
8092 eval "DEFAULT_$LINE"
8093 else
8094 no_cache=1
8095 fi
8096
8097 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8098
8099fi;
8100
8101 eval "$ac_cv_use_statline"
8102 if test "$no_cache" != 1; then
8103 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8104 fi
8105
8106 if test "$wxUSE_STATLINE" = yes; then
8107 echo "$as_me:$LINENO: result: yes" >&5
8108echo "${ECHO_T}yes" >&6
8109 else
8110 echo "$as_me:$LINENO: result: no" >&5
8111echo "${ECHO_T}no" >&6
8112 fi
8113
8114
8115 enablestring=
8116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8117echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8118 no_cache=0
8119 # Check whether --enable-stattext or --disable-stattext was given.
8120if test "${enable_stattext+set}" = set; then
8121 enableval="$enable_stattext"
8122
8123 if test "$enableval" = yes; then
8124 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8125 else
8126 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8127 fi
8128
8129else
8130
8131 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8132 if test "x$LINE" != x ; then
8133 eval "DEFAULT_$LINE"
8134 else
8135 no_cache=1
8136 fi
8137
8138 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8139
8140fi;
8141
8142 eval "$ac_cv_use_stattext"
8143 if test "$no_cache" != 1; then
8144 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8145 fi
8146
8147 if test "$wxUSE_STATTEXT" = yes; then
8148 echo "$as_me:$LINENO: result: yes" >&5
8149echo "${ECHO_T}yes" >&6
8150 else
8151 echo "$as_me:$LINENO: result: no" >&5
8152echo "${ECHO_T}no" >&6
8153 fi
8154
8155
8156 enablestring=
8157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8158echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8159 no_cache=0
8160 # Check whether --enable-statusbar or --disable-statusbar was given.
8161if test "${enable_statusbar+set}" = set; then
8162 enableval="$enable_statusbar"
8163
8164 if test "$enableval" = yes; then
8165 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8166 else
8167 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8168 fi
8169
8170else
8171
8172 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8173 if test "x$LINE" != x ; then
8174 eval "DEFAULT_$LINE"
8175 else
8176 no_cache=1
8177 fi
8178
8179 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8180
8181fi;
8182
8183 eval "$ac_cv_use_statusbar"
8184 if test "$no_cache" != 1; then
8185 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8186 fi
8187
8188 if test "$wxUSE_STATUSBAR" = yes; then
8189 echo "$as_me:$LINENO: result: yes" >&5
8190echo "${ECHO_T}yes" >&6
8191 else
8192 echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6
8194 fi
8195
8196
8197 enablestring=
8198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8199echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8200 no_cache=0
8201 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8202if test "${enable_tabdialog+set}" = set; then
8203 enableval="$enable_tabdialog"
8204
8205 if test "$enableval" = yes; then
8206 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8207 else
8208 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8209 fi
8210
8211else
8212
8213 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8214 if test "x$LINE" != x ; then
8215 eval "DEFAULT_$LINE"
8216 else
8217 no_cache=1
8218 fi
8219
8220 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8221
8222fi;
8223
8224 eval "$ac_cv_use_tabdialog"
8225 if test "$no_cache" != 1; then
8226 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8227 fi
8228
8229 if test "$wxUSE_TABDIALOG" = yes; then
8230 echo "$as_me:$LINENO: result: yes" >&5
8231echo "${ECHO_T}yes" >&6
8232 else
8233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
8235 fi
8236
8237
8238 enablestring=
8239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8240echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8241 no_cache=0
8242 # Check whether --enable-textctrl or --disable-textctrl was given.
8243if test "${enable_textctrl+set}" = set; then
8244 enableval="$enable_textctrl"
8245
8246 if test "$enableval" = yes; then
8247 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8248 else
8249 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8250 fi
8251
8252else
8253
8254 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8255 if test "x$LINE" != x ; then
8256 eval "DEFAULT_$LINE"
8257 else
8258 no_cache=1
8259 fi
8260
8261 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8262
8263fi;
8264
8265 eval "$ac_cv_use_textctrl"
8266 if test "$no_cache" != 1; then
8267 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8268 fi
8269
8270 if test "$wxUSE_TEXTCTRL" = yes; then
8271 echo "$as_me:$LINENO: result: yes" >&5
8272echo "${ECHO_T}yes" >&6
8273 else
8274 echo "$as_me:$LINENO: result: no" >&5
8275echo "${ECHO_T}no" >&6
8276 fi
8277
8278
8279 enablestring=
8280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8281echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8282 no_cache=0
8283 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8284if test "${enable_togglebtn+set}" = set; then
8285 enableval="$enable_togglebtn"
8286
8287 if test "$enableval" = yes; then
8288 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8289 else
8290 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8291 fi
8292
8293else
8294
8295 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8296 if test "x$LINE" != x ; then
8297 eval "DEFAULT_$LINE"
8298 else
8299 no_cache=1
8300 fi
8301
8302 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8303
8304fi;
8305
8306 eval "$ac_cv_use_togglebtn"
8307 if test "$no_cache" != 1; then
8308 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8309 fi
8310
8311 if test "$wxUSE_TOGGLEBTN" = yes; then
8312 echo "$as_me:$LINENO: result: yes" >&5
8313echo "${ECHO_T}yes" >&6
8314 else
8315 echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6
8317 fi
8318
8319
8320 enablestring=
8321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8322echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8323 no_cache=0
8324 # Check whether --enable-toolbar or --disable-toolbar was given.
8325if test "${enable_toolbar+set}" = set; then
8326 enableval="$enable_toolbar"
8327
8328 if test "$enableval" = yes; then
8329 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8330 else
8331 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8332 fi
8333
8334else
8335
8336 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8337 if test "x$LINE" != x ; then
8338 eval "DEFAULT_$LINE"
8339 else
8340 no_cache=1
8341 fi
8342
8343 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8344
8345fi;
8346
8347 eval "$ac_cv_use_toolbar"
8348 if test "$no_cache" != 1; then
8349 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8350 fi
8351
8352 if test "$wxUSE_TOOLBAR" = yes; then
8353 echo "$as_me:$LINENO: result: yes" >&5
8354echo "${ECHO_T}yes" >&6
8355 else
8356 echo "$as_me:$LINENO: result: no" >&5
8357echo "${ECHO_T}no" >&6
8358 fi
8359
8360
8361 enablestring=
8362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8363echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8364 no_cache=0
8365 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8366if test "${enable_tbarnative+set}" = set; then
8367 enableval="$enable_tbarnative"
8368
8369 if test "$enableval" = yes; then
8370 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8371 else
8372 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8373 fi
8374
8375else
8376
8377 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8378 if test "x$LINE" != x ; then
8379 eval "DEFAULT_$LINE"
8380 else
8381 no_cache=1
8382 fi
8383
8384 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8385
8386fi;
8387
8388 eval "$ac_cv_use_tbarnative"
8389 if test "$no_cache" != 1; then
8390 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8391 fi
8392
8393 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8394 echo "$as_me:$LINENO: result: yes" >&5
8395echo "${ECHO_T}yes" >&6
8396 else
8397 echo "$as_me:$LINENO: result: no" >&5
8398echo "${ECHO_T}no" >&6
8399 fi
8400
8401
8402 enablestring=
8403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8404echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8405 no_cache=0
8406 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8407if test "${enable_tbarsmpl+set}" = set; then
8408 enableval="$enable_tbarsmpl"
8409
8410 if test "$enableval" = yes; then
8411 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8412 else
8413 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8414 fi
8415
8416else
8417
8418 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8419 if test "x$LINE" != x ; then
8420 eval "DEFAULT_$LINE"
8421 else
8422 no_cache=1
8423 fi
8424
8425 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8426
8427fi;
8428
8429 eval "$ac_cv_use_tbarsmpl"
8430 if test "$no_cache" != 1; then
8431 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8432 fi
8433
8434 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8435 echo "$as_me:$LINENO: result: yes" >&5
8436echo "${ECHO_T}yes" >&6
8437 else
8438 echo "$as_me:$LINENO: result: no" >&5
8439echo "${ECHO_T}no" >&6
8440 fi
8441
8442
8443 enablestring=
8444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8445echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8446 no_cache=0
8447 # Check whether --enable-treectrl or --disable-treectrl was given.
8448if test "${enable_treectrl+set}" = set; then
8449 enableval="$enable_treectrl"
8450
8451 if test "$enableval" = yes; then
8452 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8453 else
8454 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8455 fi
8456
8457else
8458
8459 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8460 if test "x$LINE" != x ; then
8461 eval "DEFAULT_$LINE"
8462 else
8463 no_cache=1
8464 fi
8465
8466 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8467
8468fi;
8469
8470 eval "$ac_cv_use_treectrl"
8471 if test "$no_cache" != 1; then
8472 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8473 fi
8474
8475 if test "$wxUSE_TREECTRL" = yes; then
8476 echo "$as_me:$LINENO: result: yes" >&5
8477echo "${ECHO_T}yes" >&6
8478 else
8479 echo "$as_me:$LINENO: result: no" >&5
8480echo "${ECHO_T}no" >&6
8481 fi
8482
8483
8484 enablestring=
8485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8486echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8487 no_cache=0
8488 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8489if test "${enable_tipwindow+set}" = set; then
8490 enableval="$enable_tipwindow"
8491
8492 if test "$enableval" = yes; then
8493 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8494 else
8495 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8496 fi
8497
8498else
8499
8500 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8501 if test "x$LINE" != x ; then
8502 eval "DEFAULT_$LINE"
8503 else
8504 no_cache=1
8505 fi
8506
8507 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8508
8509fi;
8510
8511 eval "$ac_cv_use_tipwindow"
8512 if test "$no_cache" != 1; then
8513 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8514 fi
8515
8516 if test "$wxUSE_TIPWINDOW" = yes; then
8517 echo "$as_me:$LINENO: result: yes" >&5
8518echo "${ECHO_T}yes" >&6
8519 else
8520 echo "$as_me:$LINENO: result: no" >&5
8521echo "${ECHO_T}no" >&6
8522 fi
8523
8524
8525 enablestring=
8526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8527echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8528 no_cache=0
8529 # Check whether --enable-popupwin or --disable-popupwin was given.
8530if test "${enable_popupwin+set}" = set; then
8531 enableval="$enable_popupwin"
8532
8533 if test "$enableval" = yes; then
8534 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8535 else
8536 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8537 fi
8538
8539else
8540
8541 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8542 if test "x$LINE" != x ; then
8543 eval "DEFAULT_$LINE"
8544 else
8545 no_cache=1
8546 fi
8547
8548 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8549
8550fi;
8551
8552 eval "$ac_cv_use_popupwin"
8553 if test "$no_cache" != 1; then
8554 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8555 fi
8556
8557 if test "$wxUSE_POPUPWIN" = yes; then
8558 echo "$as_me:$LINENO: result: yes" >&5
8559echo "${ECHO_T}yes" >&6
8560 else
8561 echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6
8563 fi
8564
8565
8566
8567
8568 enablestring=
8569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8570echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8571 no_cache=0
8572 # Check whether --enable-commondlg or --disable-commondlg was given.
8573if test "${enable_commondlg+set}" = set; then
8574 enableval="$enable_commondlg"
8575
8576 if test "$enableval" = yes; then
8577 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8578 else
8579 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8580 fi
8581
8582else
8583
8584 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8585 if test "x$LINE" != x ; then
8586 eval "DEFAULT_$LINE"
8587 else
8588 no_cache=1
8589 fi
8590
8591 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8592
8593fi;
8594
8595 eval "$ac_cv_use_commondlg"
8596 if test "$no_cache" != 1; then
8597 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8598 fi
8599
8600 if test "$wxUSE_COMMONDLGS" = yes; then
8601 echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
8603 else
8604 echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606 fi
8607
8608
8609 enablestring=
8610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8611echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8612 no_cache=0
8613 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8614if test "${enable_choicedlg+set}" = set; then
8615 enableval="$enable_choicedlg"
8616
8617 if test "$enableval" = yes; then
8618 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8619 else
8620 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8621 fi
8622
8623else
8624
8625 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8626 if test "x$LINE" != x ; then
8627 eval "DEFAULT_$LINE"
8628 else
8629 no_cache=1
8630 fi
8631
8632 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8633
8634fi;
8635
8636 eval "$ac_cv_use_choicedlg"
8637 if test "$no_cache" != 1; then
8638 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8639 fi
8640
8641 if test "$wxUSE_CHOICEDLG" = yes; then
8642 echo "$as_me:$LINENO: result: yes" >&5
8643echo "${ECHO_T}yes" >&6
8644 else
8645 echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6
8647 fi
8648
8649
8650 enablestring=
8651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8652echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8653 no_cache=0
8654 # Check whether --enable-coldlg or --disable-coldlg was given.
8655if test "${enable_coldlg+set}" = set; then
8656 enableval="$enable_coldlg"
8657
8658 if test "$enableval" = yes; then
8659 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8660 else
8661 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8662 fi
8663
8664else
8665
8666 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8667 if test "x$LINE" != x ; then
8668 eval "DEFAULT_$LINE"
8669 else
8670 no_cache=1
8671 fi
8672
8673 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8674
8675fi;
8676
8677 eval "$ac_cv_use_coldlg"
8678 if test "$no_cache" != 1; then
8679 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8680 fi
8681
8682 if test "$wxUSE_COLOURDLG" = yes; then
8683 echo "$as_me:$LINENO: result: yes" >&5
8684echo "${ECHO_T}yes" >&6
8685 else
8686 echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6
8688 fi
8689
8690
8691 enablestring=
8692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8693echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8694 no_cache=0
8695 # Check whether --enable-filedlg or --disable-filedlg was given.
8696if test "${enable_filedlg+set}" = set; then
8697 enableval="$enable_filedlg"
8698
8699 if test "$enableval" = yes; then
8700 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8701 else
8702 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8703 fi
8704
8705else
8706
8707 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8708 if test "x$LINE" != x ; then
8709 eval "DEFAULT_$LINE"
8710 else
8711 no_cache=1
8712 fi
8713
8714 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8715
8716fi;
8717
8718 eval "$ac_cv_use_filedlg"
8719 if test "$no_cache" != 1; then
8720 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8721 fi
8722
8723 if test "$wxUSE_FILEDLG" = yes; then
8724 echo "$as_me:$LINENO: result: yes" >&5
8725echo "${ECHO_T}yes" >&6
8726 else
8727 echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
8729 fi
8730
8731
8732 enablestring=
8733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8734echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8735 no_cache=0
8736 # Check whether --enable-finddlg or --disable-finddlg was given.
8737if test "${enable_finddlg+set}" = set; then
8738 enableval="$enable_finddlg"
8739
8740 if test "$enableval" = yes; then
8741 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8742 else
8743 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8744 fi
8745
8746else
8747
8748 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8749 if test "x$LINE" != x ; then
8750 eval "DEFAULT_$LINE"
8751 else
8752 no_cache=1
8753 fi
8754
8755 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8756
8757fi;
8758
8759 eval "$ac_cv_use_finddlg"
8760 if test "$no_cache" != 1; then
8761 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8762 fi
8763
8764 if test "$wxUSE_FINDREPLDLG" = yes; then
8765 echo "$as_me:$LINENO: result: yes" >&5
8766echo "${ECHO_T}yes" >&6
8767 else
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
8770 fi
8771
8772
8773 enablestring=
8774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8775echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8776 no_cache=0
8777 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8778if test "${enable_fontdlg+set}" = set; then
8779 enableval="$enable_fontdlg"
8780
8781 if test "$enableval" = yes; then
8782 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8783 else
8784 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8785 fi
8786
8787else
8788
8789 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8790 if test "x$LINE" != x ; then
8791 eval "DEFAULT_$LINE"
8792 else
8793 no_cache=1
8794 fi
8795
8796 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8797
8798fi;
8799
8800 eval "$ac_cv_use_fontdlg"
8801 if test "$no_cache" != 1; then
8802 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8803 fi
8804
8805 if test "$wxUSE_FONTDLG" = yes; then
8806 echo "$as_me:$LINENO: result: yes" >&5
8807echo "${ECHO_T}yes" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
8811 fi
8812
8813
8814 enablestring=
8815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8816echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8817 no_cache=0
8818 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8819if test "${enable_dirdlg+set}" = set; then
8820 enableval="$enable_dirdlg"
8821
8822 if test "$enableval" = yes; then
8823 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8824 else
8825 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8826 fi
8827
8828else
8829
8830 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8831 if test "x$LINE" != x ; then
8832 eval "DEFAULT_$LINE"
8833 else
8834 no_cache=1
8835 fi
8836
8837 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8838
8839fi;
8840
8841 eval "$ac_cv_use_dirdlg"
8842 if test "$no_cache" != 1; then
8843 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8844 fi
8845
8846 if test "$wxUSE_DIRDLG" = yes; then
8847 echo "$as_me:$LINENO: result: yes" >&5
8848echo "${ECHO_T}yes" >&6
8849 else
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
8852 fi
8853
8854
8855 enablestring=
8856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8857echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8858 no_cache=0
8859 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8860if test "${enable_msgdlg+set}" = set; then
8861 enableval="$enable_msgdlg"
8862
8863 if test "$enableval" = yes; then
8864 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8865 else
8866 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8867 fi
8868
8869else
8870
8871 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8872 if test "x$LINE" != x ; then
8873 eval "DEFAULT_$LINE"
8874 else
8875 no_cache=1
8876 fi
8877
8878 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8879
8880fi;
8881
8882 eval "$ac_cv_use_msgdlg"
8883 if test "$no_cache" != 1; then
8884 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8885 fi
8886
8887 if test "$wxUSE_MSGDLG" = yes; then
8888 echo "$as_me:$LINENO: result: yes" >&5
8889echo "${ECHO_T}yes" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6
8893 fi
8894
8895
8896 enablestring=
8897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8898echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8899 no_cache=0
8900 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8901if test "${enable_numberdlg+set}" = set; then
8902 enableval="$enable_numberdlg"
8903
8904 if test "$enableval" = yes; then
8905 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8906 else
8907 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8908 fi
8909
8910else
8911
8912 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8913 if test "x$LINE" != x ; then
8914 eval "DEFAULT_$LINE"
8915 else
8916 no_cache=1
8917 fi
8918
8919 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8920
8921fi;
8922
8923 eval "$ac_cv_use_numberdlg"
8924 if test "$no_cache" != 1; then
8925 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8926 fi
8927
8928 if test "$wxUSE_NUMBERDLG" = yes; then
8929 echo "$as_me:$LINENO: result: yes" >&5
8930echo "${ECHO_T}yes" >&6
8931 else
8932 echo "$as_me:$LINENO: result: no" >&5
8933echo "${ECHO_T}no" >&6
8934 fi
8935
8936
8937 enablestring=
8938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8939echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8940 no_cache=0
8941 # Check whether --enable-splash or --disable-splash was given.
8942if test "${enable_splash+set}" = set; then
8943 enableval="$enable_splash"
8944
8945 if test "$enableval" = yes; then
8946 ac_cv_use_splash='wxUSE_SPLASH=yes'
8947 else
8948 ac_cv_use_splash='wxUSE_SPLASH=no'
8949 fi
8950
8951else
8952
8953 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8954 if test "x$LINE" != x ; then
8955 eval "DEFAULT_$LINE"
8956 else
8957 no_cache=1
8958 fi
8959
8960 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8961
8962fi;
8963
8964 eval "$ac_cv_use_splash"
8965 if test "$no_cache" != 1; then
8966 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8967 fi
8968
8969 if test "$wxUSE_SPLASH" = yes; then
8970 echo "$as_me:$LINENO: result: yes" >&5
8971echo "${ECHO_T}yes" >&6
8972 else
8973 echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975 fi
8976
8977
8978 enablestring=
8979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8980echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8981 no_cache=0
8982 # Check whether --enable-textdlg or --disable-textdlg was given.
8983if test "${enable_textdlg+set}" = set; then
8984 enableval="$enable_textdlg"
8985
8986 if test "$enableval" = yes; then
8987 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8988 else
8989 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8990 fi
8991
8992else
8993
8994 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8995 if test "x$LINE" != x ; then
8996 eval "DEFAULT_$LINE"
8997 else
8998 no_cache=1
8999 fi
9000
9001 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9002
9003fi;
9004
9005 eval "$ac_cv_use_textdlg"
9006 if test "$no_cache" != 1; then
9007 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9008 fi
9009
9010 if test "$wxUSE_TEXTDLG" = yes; then
9011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
9013 else
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016 fi
9017
9018
9019 enablestring=
9020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9021echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9022 no_cache=0
9023 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9024if test "${enable_tipdlg+set}" = set; then
9025 enableval="$enable_tipdlg"
9026
9027 if test "$enableval" = yes; then
9028 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9029 else
9030 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9031 fi
9032
9033else
9034
9035 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9036 if test "x$LINE" != x ; then
9037 eval "DEFAULT_$LINE"
9038 else
9039 no_cache=1
9040 fi
9041
9042 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9043
9044fi;
9045
9046 eval "$ac_cv_use_tipdlg"
9047 if test "$no_cache" != 1; then
9048 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9049 fi
9050
9051 if test "$wxUSE_STARTUP_TIPS" = yes; then
9052 echo "$as_me:$LINENO: result: yes" >&5
9053echo "${ECHO_T}yes" >&6
9054 else
9055 echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6
9057 fi
9058
9059
9060 enablestring=
9061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9062echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9063 no_cache=0
9064 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9065if test "${enable_progressdlg+set}" = set; then
9066 enableval="$enable_progressdlg"
9067
9068 if test "$enableval" = yes; then
9069 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9070 else
9071 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9072 fi
9073
9074else
9075
9076 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9077 if test "x$LINE" != x ; then
9078 eval "DEFAULT_$LINE"
9079 else
9080 no_cache=1
9081 fi
9082
9083 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9084
9085fi;
9086
9087 eval "$ac_cv_use_progressdlg"
9088 if test "$no_cache" != 1; then
9089 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9090 fi
9091
9092 if test "$wxUSE_PROGRESSDLG" = yes; then
9093 echo "$as_me:$LINENO: result: yes" >&5
9094echo "${ECHO_T}yes" >&6
9095 else
9096 echo "$as_me:$LINENO: result: no" >&5
9097echo "${ECHO_T}no" >&6
9098 fi
9099
9100
9101 enablestring=
9102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9103echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9104 no_cache=0
9105 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9106if test "${enable_wizarddlg+set}" = set; then
9107 enableval="$enable_wizarddlg"
9108
9109 if test "$enableval" = yes; then
9110 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9111 else
9112 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9113 fi
9114
9115else
9116
9117 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9118 if test "x$LINE" != x ; then
9119 eval "DEFAULT_$LINE"
9120 else
9121 no_cache=1
9122 fi
9123
9124 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9125
9126fi;
9127
9128 eval "$ac_cv_use_wizarddlg"
9129 if test "$no_cache" != 1; then
9130 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9131 fi
9132
9133 if test "$wxUSE_WIZARDDLG" = yes; then
9134 echo "$as_me:$LINENO: result: yes" >&5
9135echo "${ECHO_T}yes" >&6
9136 else
9137 echo "$as_me:$LINENO: result: no" >&5
9138echo "${ECHO_T}no" >&6
9139 fi
9140
9141
9142
9143
9144 enablestring=
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9147 no_cache=0
9148 # Check whether --enable-menus or --disable-menus was given.
9149if test "${enable_menus+set}" = set; then
9150 enableval="$enable_menus"
9151
9152 if test "$enableval" = yes; then
9153 ac_cv_use_menus='wxUSE_MENUS=yes'
9154 else
9155 ac_cv_use_menus='wxUSE_MENUS=no'
9156 fi
9157
9158else
9159
9160 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9168
9169fi;
9170
9171 eval "$ac_cv_use_menus"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_MENUS" = yes; then
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
9179 else
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182 fi
9183
9184
9185 enablestring=
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9188 no_cache=0
9189 # Check whether --enable-miniframe or --disable-miniframe was given.
9190if test "${enable_miniframe+set}" = set; then
9191 enableval="$enable_miniframe"
9192
9193 if test "$enableval" = yes; then
9194 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9195 else
9196 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9197 fi
9198
9199else
9200
9201 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9209
9210fi;
9211
9212 eval "$ac_cv_use_miniframe"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_MINIFRAME" = yes; then
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
9220 else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223 fi
9224
9225
9226 enablestring=
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9229 no_cache=0
9230 # Check whether --enable-tooltips or --disable-tooltips was given.
9231if test "${enable_tooltips+set}" = set; then
9232 enableval="$enable_tooltips"
9233
9234 if test "$enableval" = yes; then
9235 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9236 else
9237 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9238 fi
9239
9240else
9241
9242 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9250
9251fi;
9252
9253 eval "$ac_cv_use_tooltips"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_TOOLTIPS" = yes; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
9261 else
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
9264 fi
9265
9266
9267 enablestring=
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9270 no_cache=0
9271 # Check whether --enable-splines or --disable-splines was given.
9272if test "${enable_splines+set}" = set; then
9273 enableval="$enable_splines"
9274
9275 if test "$enableval" = yes; then
9276 ac_cv_use_splines='wxUSE_SPLINES=yes'
9277 else
9278 ac_cv_use_splines='wxUSE_SPLINES=no'
9279 fi
9280
9281else
9282
9283 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9291
9292fi;
9293
9294 eval "$ac_cv_use_splines"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_SPLINES" = yes; then
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
9302 else
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
9305 fi
9306
9307
9308 enablestring=
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9311 no_cache=0
9312 # Check whether --enable-validators or --disable-validators was given.
9313if test "${enable_validators+set}" = set; then
9314 enableval="$enable_validators"
9315
9316 if test "$enableval" = yes; then
9317 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9318 else
9319 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9320 fi
9321
9322else
9323
9324 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9332
9333fi;
9334
9335 eval "$ac_cv_use_validators"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_VALIDATORS" = yes; then
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
9343 else
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 fi
9347
9348
9349 enablestring=
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9352 no_cache=0
9353 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9354if test "${enable_busyinfo+set}" = set; then
9355 enableval="$enable_busyinfo"
9356
9357 if test "$enableval" = yes; then
9358 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9359 else
9360 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9361 fi
9362
9363else
9364
9365 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
9372 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9373
9374fi;
9375
9376 eval "$ac_cv_use_busyinfo"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9379 fi
9380
9381 if test "$wxUSE_BUSYINFO" = yes; then
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
9387 fi
9388
9389
9390 enablestring=
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9393 no_cache=0
9394 # Check whether --enable-joystick or --disable-joystick was given.
9395if test "${enable_joystick+set}" = set; then
9396 enableval="$enable_joystick"
9397
9398 if test "$enableval" = yes; then
9399 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9400 else
9401 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9414
9415fi;
9416
9417 eval "$ac_cv_use_joystick"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_JOYSTICK" = yes; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425 else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428 fi
9429
9430
9431 enablestring=
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9434 no_cache=0
9435 # Check whether --enable-metafile or --disable-metafile was given.
9436if test "${enable_metafile+set}" = set; then
9437 enableval="$enable_metafile"
9438
9439 if test "$enableval" = yes; then
9440 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9441 else
9442 ac_cv_use_metafile='wxUSE_METAFILE=no'
9443 fi
9444
9445else
9446
9447 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
9454 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9455
9456fi;
9457
9458 eval "$ac_cv_use_metafile"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9461 fi
9462
9463 if test "$wxUSE_METAFILE" = yes; then
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
9466 else
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
9469 fi
9470
9471
9472 enablestring=
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9475 no_cache=0
9476 # Check whether --enable-dragimage or --disable-dragimage was given.
9477if test "${enable_dragimage+set}" = set; then
9478 enableval="$enable_dragimage"
9479
9480 if test "$enableval" = yes; then
9481 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9482 else
9483 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9496
9497fi;
9498
9499 eval "$ac_cv_use_dragimage"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_DRAGIMAGE" = yes; then
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
9507 else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510 fi
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-accessibility or --disable-accessibility was given.
9518if test "${enable_accessibility+set}" = set; then
9519 enableval="$enable_accessibility"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9523 else
9524 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9537
9538fi;
9539
9540 eval "$ac_cv_use_accessibility"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_ACCESSIBILITY" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554
9555
9556 enablestring=
9557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9558echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9559 no_cache=0
9560 # Check whether --enable-palette or --disable-palette was given.
9561if test "${enable_palette+set}" = set; then
9562 enableval="$enable_palette"
9563
9564 if test "$enableval" = yes; then
9565 ac_cv_use_palette='wxUSE_PALETTE=yes'
9566 else
9567 ac_cv_use_palette='wxUSE_PALETTE=no'
9568 fi
9569
9570else
9571
9572 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9573 if test "x$LINE" != x ; then
9574 eval "DEFAULT_$LINE"
9575 else
9576 no_cache=1
9577 fi
9578
9579 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9580
9581fi;
9582
9583 eval "$ac_cv_use_palette"
9584 if test "$no_cache" != 1; then
9585 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9586 fi
9587
9588 if test "$wxUSE_PALETTE" = yes; then
9589 echo "$as_me:$LINENO: result: yes" >&5
9590echo "${ECHO_T}yes" >&6
9591 else
9592 echo "$as_me:$LINENO: result: no" >&5
9593echo "${ECHO_T}no" >&6
9594 fi
9595
9596
9597 enablestring=
9598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9600 no_cache=0
9601 # Check whether --enable-image or --disable-image was given.
9602if test "${enable_image+set}" = set; then
9603 enableval="$enable_image"
9604
9605 if test "$enableval" = yes; then
9606 ac_cv_use_image='wxUSE_IMAGE=yes'
9607 else
9608 ac_cv_use_image='wxUSE_IMAGE=no'
9609 fi
9610
9611else
9612
9613 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9614 if test "x$LINE" != x ; then
9615 eval "DEFAULT_$LINE"
9616 else
9617 no_cache=1
9618 fi
9619
9620 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9621
9622fi;
9623
9624 eval "$ac_cv_use_image"
9625 if test "$no_cache" != 1; then
9626 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9627 fi
9628
9629 if test "$wxUSE_IMAGE" = yes; then
9630 echo "$as_me:$LINENO: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635 fi
9636
9637
9638 enablestring=
9639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9640echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9641 no_cache=0
9642 # Check whether --enable-gif or --disable-gif was given.
9643if test "${enable_gif+set}" = set; then
9644 enableval="$enable_gif"
9645
9646 if test "$enableval" = yes; then
9647 ac_cv_use_gif='wxUSE_GIF=yes'
9648 else
9649 ac_cv_use_gif='wxUSE_GIF=no'
9650 fi
9651
9652else
9653
9654 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9655 if test "x$LINE" != x ; then
9656 eval "DEFAULT_$LINE"
9657 else
9658 no_cache=1
9659 fi
9660
9661 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9662
9663fi;
9664
9665 eval "$ac_cv_use_gif"
9666 if test "$no_cache" != 1; then
9667 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9668 fi
9669
9670 if test "$wxUSE_GIF" = yes; then
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676 fi
9677
9678
9679 enablestring=
9680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9681echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9682 no_cache=0
9683 # Check whether --enable-pcx or --disable-pcx was given.
9684if test "${enable_pcx+set}" = set; then
9685 enableval="$enable_pcx"
9686
9687 if test "$enableval" = yes; then
9688 ac_cv_use_pcx='wxUSE_PCX=yes'
9689 else
9690 ac_cv_use_pcx='wxUSE_PCX=no'
9691 fi
9692
9693else
9694
9695 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9696 if test "x$LINE" != x ; then
9697 eval "DEFAULT_$LINE"
9698 else
9699 no_cache=1
9700 fi
9701
9702 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9703
9704fi;
9705
9706 eval "$ac_cv_use_pcx"
9707 if test "$no_cache" != 1; then
9708 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9709 fi
9710
9711 if test "$wxUSE_PCX" = yes; then
9712 echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717 fi
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-iff or --disable-iff was given.
9725if test "${enable_iff+set}" = set; then
9726 enableval="$enable_iff"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_iff='wxUSE_IFF=yes'
9730 else
9731 ac_cv_use_iff='wxUSE_IFF=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9744
9745fi;
9746
9747 eval "$ac_cv_use_iff"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_IFF" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-pnm or --disable-pnm was given.
9766if test "${enable_pnm+set}" = set; then
9767 enableval="$enable_pnm"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_pnm='wxUSE_PNM=yes'
9771 else
9772 ac_cv_use_pnm='wxUSE_PNM=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9785
9786fi;
9787
9788 eval "$ac_cv_use_pnm"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_PNM" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-xpm or --disable-xpm was given.
9807if test "${enable_xpm+set}" = set; then
9808 enableval="$enable_xpm"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_xpm='wxUSE_XPM=yes'
9812 else
9813 ac_cv_use_xpm='wxUSE_XPM=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9826
9827fi;
9828
9829 eval "$ac_cv_use_xpm"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_XPM" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9848if test "${enable_ico_cur+set}" = set; then
9849 enableval="$enable_ico_cur"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9853 else
9854 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9867
9868fi;
9869
9870 eval "$ac_cv_use_ico_cur"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_ICO_CUR" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
9884fi
9885
9886
9887
9888 enablestring=
9889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9890echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9891 no_cache=0
9892 # Check whether --enable-official_build or --disable-official_build was given.
9893if test "${enable_official_build+set}" = set; then
9894 enableval="$enable_official_build"
9895
9896 if test "$enableval" = yes; then
9897 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9898 else
9899 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9900 fi
9901
9902else
9903
9904 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9905 if test "x$LINE" != x ; then
9906 eval "DEFAULT_$LINE"
9907 else
9908 no_cache=1
9909 fi
9910
9911 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9912
9913fi;
9914
9915 eval "$ac_cv_use_official_build"
9916 if test "$no_cache" != 1; then
9917 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9918 fi
9919
9920 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9921 echo "$as_me:$LINENO: result: yes" >&5
9922echo "${ECHO_T}yes" >&6
9923 else
9924 echo "$as_me:$LINENO: result: no" >&5
9925echo "${ECHO_T}no" >&6
9926 fi
9927
9928# Check whether --enable-vendor or --disable-vendor was given.
9929if test "${enable_vendor+set}" = set; then
9930 enableval="$enable_vendor"
9931 VENDOR="$enableval"
9932fi;
9933if test "x$VENDOR" = "x"; then
9934 VENDOR="custom"
9935fi
9936
9937case "${host}" in
9938 *-pc-os2_emx | *-pc-os2-emx )
9939 PATH_IFS=';'
a848cd7e
SC
9940 ;;
9941 *)
9942 PATH_IFS=':'
9943 ;;
9944esac
9945
9946
9947
9948 echo "saving argument cache $wx_arg_cache_file"
9949 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9950
9951
9952
9953echo "$as_me:$LINENO: checking for toolkit" >&5
9954echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9955
9956# In Wine, we need to default to MSW, not GTK or MOTIF
9957if test "$wxUSE_WINE" = "yes"; then
9958 DEFAULT_DEFAULT_wxUSE_GTK=0
9959 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9960 DEFAULT_DEFAULT_wxUSE_MSW=1
9961 wxUSE_SHARED=no
9962fi
9963
9964if test "$wxUSE_GUI" = "yes"; then
9965
9966 if test "$USE_BEOS" = 1; then
9967 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9968echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9969 { (exit 1); exit 1; }; }
9970 fi
9971
9972 if test "$TOOLKIT_GIVEN" = 1; then
9973 for toolkit in `echo $ALL_TOOLKITS`; do
9974 var=wxUSE_$toolkit
9975 eval "value=\$${var}"
9976 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9977 done
9978 else
9979 for toolkit in `echo $ALL_TOOLKITS`; do
9980 if test "$has_toolkit_in_cache" != 1; then
9981 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9982 else
9983 var=DEFAULT_wxUSE_$toolkit
9984 fi
9985 eval "wxUSE_$toolkit=\$${var}"
9986 done
9987 fi
9988
9989 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9990 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9991 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9992
9993 case "${host}" in
9994 *-pc-os2_emx | *-pc-os2-emx )
9995 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9996 esac
9997
9998 case "$NUM_TOOLKITS" in
9999 1)
10000 ;;
10001 0)
10002 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10003echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10004 { (exit 1); exit 1; }; }
10005 ;;
10006 *)
10007 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10008echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10009 { (exit 1); exit 1; }; }
10010 esac
10011
10012 for toolkit in `echo $ALL_TOOLKITS`; do
10013 var=wxUSE_$toolkit
10014 eval "value=\$${var}"
10015 if test "x$value" != x; then
10016 cache_var=CACHE_$toolkit
10017 eval "cache=\$${cache_var}"
10018 if test "$cache" = 1; then
10019 echo "$var=$value" >> ${wx_arg_cache_file}
10020 fi
10021 if test "$value" = 1; then
10022 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10023 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10024echo "${ECHO_T}$toolkit_echo" >&6
10025 fi
10026 fi
10027 done
10028else
10029 if test "x$host_alias" != "x"; then
10030 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10031echo "${ECHO_T}base ($host_alias hosted) only" >&6
10032 else
10033 echo "$as_me:$LINENO: result: base only" >&5
10034echo "${ECHO_T}base only" >&6
10035 fi
10036fi
10037
10038wants_win32=0
10039doesnt_want_win32=0
10040case "${host}" in
10041 *-*-cygwin*)
10042 if test "$wxUSE_MSW" = 1 ; then
10043 wants_win32=1
10044 else
10045 doesnt_want_win32=1
10046 fi
10047 ;;
10048 *-*-mingw*)
10049 wants_win32=1
10050 ;;
10051esac
10052
10053if test "$wxUSE_WINE" = "yes"; then
10054 wants_win32=1
10055 CC=winegcc
10056 CXX=wineg++
10057 RESCOMP=wrc
10058 LDFLAGS_GUI="-mwindows"
10059fi
10060
10061if test "$wants_win32" = 1 ; then
10062 USE_UNIX=0
10063 USE_WIN32=1
10064 cat >>confdefs.h <<\_ACEOF
10065#define __WIN32__ 1
10066_ACEOF
10067
10068 cat >>confdefs.h <<\_ACEOF
10069#define __WIN95__ 1
10070_ACEOF
10071
10072 cat >>confdefs.h <<\_ACEOF
10073#define __WINDOWS__ 1
10074_ACEOF
10075
10076 cat >>confdefs.h <<\_ACEOF
10077#define __GNUWIN32__ 1
10078_ACEOF
10079
10080 cat >>confdefs.h <<\_ACEOF
10081#define STRICT 1
10082_ACEOF
10083
10084 cat >>confdefs.h <<\_ACEOF
10085#define WINVER 0x0400
10086_ACEOF
10087
10088fi
10089if test "$doesnt_want_win32" = 1 ; then
10090 USE_UNIX=1
10091 USE_WIN32=0
10092fi
10093
10094if test "$USE_UNIX" = 1 ; then
10095 wxUSE_UNIX=yes
10096 cat >>confdefs.h <<\_ACEOF
10097#define __UNIX__ 1
10098_ACEOF
10099
10100fi
10101
10102
10103cat >confcache <<\_ACEOF
10104# This file is a shell script that caches the results of configure
10105# tests run on this system so they can be shared between configure
10106# scripts and configure runs, see configure's option --config-cache.
10107# It is not useful on other systems. If it contains results you don't
10108# want to keep, you may remove or edit it.
10109#
10110# config.status only pays attention to the cache file if you give it
10111# the --recheck option to rerun configure.
10112#
10113# `ac_cv_env_foo' variables (set or unset) will be overridden when
10114# loading this file, other *unset* `ac_cv_foo' will be assigned the
10115# following values.
10116
10117_ACEOF
10118
10119# The following way of writing the cache mishandles newlines in values,
10120# but we know of no workaround that is simple, portable, and efficient.
10121# So, don't put newlines in cache variables' values.
10122# Ultrix sh set writes to stderr and can't be redirected directly,
10123# and sets the high bit in the cache file unless we assign to the vars.
10124{
10125 (set) 2>&1 |
10126 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10127 *ac_space=\ *)
10128 # `set' does not quote correctly, so add quotes (double-quote
10129 # substitution turns \\\\ into \\, and sed turns \\ into \).
10130 sed -n \
ac1cb8d3
VS
10131 "s/'/'\\\\''/g;
10132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10133 ;;
10134 *)
10135 # `set' quotes correctly as required by POSIX, so do not add quotes.
10136 sed -n \
ac1cb8d3 10137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10138 ;;
10139 esac;
10140} |
10141 sed '
10142 t clear
10143 : clear
10144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10145 t end
10146 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10147 : end' >>confcache
10148if diff $cache_file confcache >/dev/null 2>&1; then :; else
10149 if test -w $cache_file; then
10150 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10151 cat confcache >$cache_file
10152 else
10153 echo "not updating unwritable cache $cache_file"
10154 fi
10155fi
10156rm -f confcache
10157
10158if test "$build" != "$host" ; then
10159 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10160 CC=$host_alias-gcc
10161 CXX=$host_alias-c++
10162 AR=$host_alias-ar
10163 RANLIB=$host_alias-ranlib
10164 DLLTOOL=$host_alias-dlltool
10165 RESCOMP=$host_alias-windres
10166 LD=$host_alias-ld
10167 NM=$host_alias-nm
10168 STRIP=$host_alias-strip
10169 else
10170 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10171echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10172 { (exit 1); exit 1; }; }
10173 fi
10174fi
10175
10176CFLAGS=${CFLAGS:=}
10177ac_ext=c
10178ac_cpp='$CPP $CPPFLAGS'
10179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10181ac_compiler_gnu=$ac_cv_c_compiler_gnu
10182if test -n "$ac_tool_prefix"; then
10183 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10184set dummy ${ac_tool_prefix}gcc; ac_word=$2
10185echo "$as_me:$LINENO: checking for $ac_word" >&5
10186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10187if test "${ac_cv_prog_CC+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189else
10190 if test -n "$CC"; then
10191 ac_cv_prog_CC="$CC" # Let the user override the test.
10192else
10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194for as_dir in $PATH
10195do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10203 fi
10204done
10205done
10206
10207fi
10208fi
10209CC=$ac_cv_prog_CC
10210if test -n "$CC"; then
10211 echo "$as_me:$LINENO: result: $CC" >&5
10212echo "${ECHO_T}$CC" >&6
10213else
10214 echo "$as_me:$LINENO: result: no" >&5
10215echo "${ECHO_T}no" >&6
10216fi
10217
10218fi
10219if test -z "$ac_cv_prog_CC"; then
10220 ac_ct_CC=$CC
10221 # Extract the first word of "gcc", so it can be a program name with args.
10222set dummy gcc; ac_word=$2
10223echo "$as_me:$LINENO: checking for $ac_word" >&5
10224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10225if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10227else
10228 if test -n "$ac_ct_CC"; then
10229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10230else
10231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232for as_dir in $PATH
10233do
10234 IFS=$as_save_IFS
10235 test -z "$as_dir" && as_dir=.
10236 for ac_exec_ext in '' $ac_executable_extensions; do
10237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10238 ac_cv_prog_ac_ct_CC="gcc"
10239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10240 break 2
10241 fi
10242done
10243done
10244
10245fi
10246fi
10247ac_ct_CC=$ac_cv_prog_ac_ct_CC
10248if test -n "$ac_ct_CC"; then
10249 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10250echo "${ECHO_T}$ac_ct_CC" >&6
10251else
10252 echo "$as_me:$LINENO: result: no" >&5
10253echo "${ECHO_T}no" >&6
10254fi
10255
10256 CC=$ac_ct_CC
10257else
10258 CC="$ac_cv_prog_CC"
10259fi
10260
10261if test -z "$CC"; then
10262 if test -n "$ac_tool_prefix"; then
10263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10264set dummy ${ac_tool_prefix}cc; ac_word=$2
10265echo "$as_me:$LINENO: checking for $ac_word" >&5
10266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10267if test "${ac_cv_prog_CC+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270 if test -n "$CC"; then
10271 ac_cv_prog_CC="$CC" # Let the user override the test.
10272else
10273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274for as_dir in $PATH
10275do
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10280 ac_cv_prog_CC="${ac_tool_prefix}cc"
10281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 break 2
10283 fi
10284done
10285done
10286
10287fi
10288fi
10289CC=$ac_cv_prog_CC
10290if test -n "$CC"; then
10291 echo "$as_me:$LINENO: result: $CC" >&5
10292echo "${ECHO_T}$CC" >&6
10293else
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296fi
10297
10298fi
10299if test -z "$ac_cv_prog_CC"; then
10300 ac_ct_CC=$CC
10301 # Extract the first word of "cc", so it can be a program name with args.
10302set dummy cc; ac_word=$2
10303echo "$as_me:$LINENO: checking for $ac_word" >&5
10304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308 if test -n "$ac_ct_CC"; then
10309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10310else
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_prog_ac_ct_CC="cc"
10319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322done
10323done
10324
10325fi
10326fi
10327ac_ct_CC=$ac_cv_prog_ac_ct_CC
10328if test -n "$ac_ct_CC"; then
10329 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10330echo "${ECHO_T}$ac_ct_CC" >&6
10331else
10332 echo "$as_me:$LINENO: result: no" >&5
10333echo "${ECHO_T}no" >&6
10334fi
10335
10336 CC=$ac_ct_CC
10337else
10338 CC="$ac_cv_prog_CC"
10339fi
10340
10341fi
10342if test -z "$CC"; then
10343 # Extract the first word of "cc", so it can be a program name with args.
10344set dummy cc; ac_word=$2
10345echo "$as_me:$LINENO: checking for $ac_word" >&5
10346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10347if test "${ac_cv_prog_CC+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349else
10350 if test -n "$CC"; then
10351 ac_cv_prog_CC="$CC" # Let the user override the test.
10352else
10353 ac_prog_rejected=no
10354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in $PATH
10356do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10362 ac_prog_rejected=yes
10363 continue
10364 fi
10365 ac_cv_prog_CC="cc"
10366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 break 2
10368 fi
10369done
10370done
10371
10372if test $ac_prog_rejected = yes; then
10373 # We found a bogon in the path, so make sure we never use it.
10374 set dummy $ac_cv_prog_CC
10375 shift
10376 if test $# != 0; then
10377 # We chose a different compiler from the bogus one.
10378 # However, it has the same basename, so the bogon will be chosen
10379 # first if we set CC to just the basename; use the full file name.
10380 shift
10381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10382 fi
10383fi
10384fi
10385fi
10386CC=$ac_cv_prog_CC
10387if test -n "$CC"; then
10388 echo "$as_me:$LINENO: result: $CC" >&5
10389echo "${ECHO_T}$CC" >&6
10390else
10391 echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
10393fi
10394
10395fi
10396if test -z "$CC"; then
10397 if test -n "$ac_tool_prefix"; then
10398 for ac_prog in cl
10399 do
10400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10401set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10402echo "$as_me:$LINENO: checking for $ac_word" >&5
10403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10404if test "${ac_cv_prog_CC+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407 if test -n "$CC"; then
10408 ac_cv_prog_CC="$CC" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421done
10422done
10423
10424fi
10425fi
10426CC=$ac_cv_prog_CC
10427if test -n "$CC"; then
10428 echo "$as_me:$LINENO: result: $CC" >&5
10429echo "${ECHO_T}$CC" >&6
10430else
10431 echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6
10433fi
10434
10435 test -n "$CC" && break
10436 done
10437fi
10438if test -z "$CC"; then
10439 ac_ct_CC=$CC
10440 for ac_prog in cl
10441do
10442 # Extract the first word of "$ac_prog", so it can be a program name with args.
10443set dummy $ac_prog; ac_word=$2
10444echo "$as_me:$LINENO: checking for $ac_word" >&5
10445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10448else
10449 if test -n "$ac_ct_CC"; then
10450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10451else
10452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453for as_dir in $PATH
10454do
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
10457 for ac_exec_ext in '' $ac_executable_extensions; do
10458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10459 ac_cv_prog_ac_ct_CC="$ac_prog"
10460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10461 break 2
10462 fi
10463done
10464done
10465
10466fi
10467fi
10468ac_ct_CC=$ac_cv_prog_ac_ct_CC
10469if test -n "$ac_ct_CC"; then
10470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10471echo "${ECHO_T}$ac_ct_CC" >&6
10472else
10473 echo "$as_me:$LINENO: result: no" >&5
10474echo "${ECHO_T}no" >&6
10475fi
10476
10477 test -n "$ac_ct_CC" && break
10478done
10479
10480 CC=$ac_ct_CC
10481fi
10482
10483fi
10484
10485
10486test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10487See \`config.log' for more details." >&5
10488echo "$as_me: error: no acceptable C compiler found in \$PATH
10489See \`config.log' for more details." >&2;}
10490 { (exit 1); exit 1; }; }
10491
10492# Provide some information about the compiler.
10493echo "$as_me:$LINENO:" \
10494 "checking for C compiler version" >&5
10495ac_compiler=`set X $ac_compile; echo $2`
10496{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10497 (eval $ac_compiler --version </dev/null >&5) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }
10501{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10502 (eval $ac_compiler -v </dev/null >&5) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }
10506{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10507 (eval $ac_compiler -V </dev/null >&5) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }
10511
10512cat >conftest.$ac_ext <<_ACEOF
10513/* confdefs.h. */
10514_ACEOF
10515cat confdefs.h >>conftest.$ac_ext
10516cat >>conftest.$ac_ext <<_ACEOF
10517/* end confdefs.h. */
10518
10519int
10520main ()
10521{
10522
10523 ;
10524 return 0;
10525}
10526_ACEOF
10527ac_clean_files_save=$ac_clean_files
10528ac_clean_files="$ac_clean_files a.out a.exe b.out"
10529# Try to create an executable without -o first, disregard a.out.
10530# It will help us diagnose broken compilers, and finding out an intuition
10531# of exeext.
ac1cb8d3
VS
10532echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10533echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10534ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10535if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10536 (eval $ac_link_default) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; then
10540 # Find the output, starting from the most likely. This scheme is
10541# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10542# resort.
10543
10544# Be careful to initialize this variable, since it used to be cached.
10545# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10546ac_cv_exeext=
10547# b.out is created by i960 compilers.
10548for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10549do
10550 test -f "$ac_file" || continue
10551 case $ac_file in
10552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10553 ;;
a848cd7e 10554 conftest.$ac_ext )
ac1cb8d3
VS
10555 # This is the source file.
10556 ;;
a848cd7e 10557 [ab].out )
ac1cb8d3
VS
10558 # We found the default executable, but exeext='' is most
10559 # certainly right.
10560 break;;
a848cd7e 10561 *.* )
ac1cb8d3
VS
10562 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10563 # FIXME: I believe we export ac_cv_exeext for Libtool,
10564 # but it would be cool to find out if it's true. Does anybody
10565 # maintain Libtool? --akim.
10566 export ac_cv_exeext
10567 break;;
a848cd7e 10568 * )
ac1cb8d3 10569 break;;
a848cd7e
SC
10570 esac
10571done
10572else
10573 echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
10576{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10577See \`config.log' for more details." >&5
10578echo "$as_me: error: C compiler cannot create executables
10579See \`config.log' for more details." >&2;}
10580 { (exit 77); exit 77; }; }
10581fi
10582
10583ac_exeext=$ac_cv_exeext
10584echo "$as_me:$LINENO: result: $ac_file" >&5
10585echo "${ECHO_T}$ac_file" >&6
10586
10587# Check the compiler produces executables we can run. If not, either
10588# the compiler is broken, or we cross compile.
10589echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10590echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10591# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10592# If not cross compiling, check that we can run a simple program.
10593if test "$cross_compiling" != yes; then
10594 if { ac_try='./$ac_file'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 cross_compiling=no
10601 else
10602 if test "$cross_compiling" = maybe; then
10603 cross_compiling=yes
10604 else
10605 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10606If you meant to cross compile, use \`--host'.
10607See \`config.log' for more details." >&5
10608echo "$as_me: error: cannot run C compiled programs.
10609If you meant to cross compile, use \`--host'.
10610See \`config.log' for more details." >&2;}
10611 { (exit 1); exit 1; }; }
10612 fi
10613 fi
10614fi
10615echo "$as_me:$LINENO: result: yes" >&5
10616echo "${ECHO_T}yes" >&6
10617
10618rm -f a.out a.exe conftest$ac_cv_exeext b.out
10619ac_clean_files=$ac_clean_files_save
10620# Check the compiler produces executables we can run. If not, either
10621# the compiler is broken, or we cross compile.
10622echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10623echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10624echo "$as_me:$LINENO: result: $cross_compiling" >&5
10625echo "${ECHO_T}$cross_compiling" >&6
10626
10627echo "$as_me:$LINENO: checking for suffix of executables" >&5
10628echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630 (eval $ac_link) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; then
10634 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10635# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10636# work properly (i.e., refer to `conftest.exe'), while it won't with
10637# `rm'.
10638for ac_file in conftest.exe conftest conftest.*; do
10639 test -f "$ac_file" || continue
10640 case $ac_file in
10641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10642 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10643 export ac_cv_exeext
10644 break;;
a848cd7e
SC
10645 * ) break;;
10646 esac
10647done
10648else
10649 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10650See \`config.log' for more details." >&5
10651echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10652See \`config.log' for more details." >&2;}
10653 { (exit 1); exit 1; }; }
10654fi
10655
10656rm -f conftest$ac_cv_exeext
10657echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10658echo "${ECHO_T}$ac_cv_exeext" >&6
10659
10660rm -f conftest.$ac_ext
10661EXEEXT=$ac_cv_exeext
10662ac_exeext=$EXEEXT
10663echo "$as_me:$LINENO: checking for suffix of object files" >&5
10664echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10665if test "${ac_cv_objext+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10667else
10668 cat >conftest.$ac_ext <<_ACEOF
10669/* confdefs.h. */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h. */
10674
10675int
10676main ()
10677{
10678
10679 ;
10680 return 0;
10681}
10682_ACEOF
10683rm -f conftest.o conftest.obj
10684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10685 (eval $ac_compile) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; then
10689 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10690 case $ac_file in
10691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10693 break;;
10694 esac
10695done
10696else
10697 echo "$as_me: failed program was:" >&5
10698sed 's/^/| /' conftest.$ac_ext >&5
10699
10700{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10701See \`config.log' for more details." >&5
10702echo "$as_me: error: cannot compute suffix of object files: cannot compile
10703See \`config.log' for more details." >&2;}
10704 { (exit 1); exit 1; }; }
10705fi
10706
10707rm -f conftest.$ac_cv_objext conftest.$ac_ext
10708fi
10709echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10710echo "${ECHO_T}$ac_cv_objext" >&6
10711OBJEXT=$ac_cv_objext
10712ac_objext=$OBJEXT
10713echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10714echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10715if test "${ac_cv_c_compiler_gnu+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10717else
10718 cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h. */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h. */
10724
10725int
10726main ()
10727{
10728#ifndef __GNUC__
10729 choke me
10730#endif
10731
10732 ;
10733 return 0;
10734}
10735_ACEOF
10736rm -f conftest.$ac_objext
10737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10738 (eval $ac_compile) 2>conftest.er1
a848cd7e 10739 ac_status=$?
ac1cb8d3
VS
10740 grep -v '^ *+' conftest.er1 >conftest.err
10741 rm -f conftest.er1
10742 cat conftest.err >&5
a848cd7e
SC
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
ac1cb8d3
VS
10745 { ac_try='test -z "$ac_c_werror_flag"
10746 || test ! -s conftest.err'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_compiler_gnu=yes
10759else
10760 echo "$as_me: failed program was:" >&5
10761sed 's/^/| /' conftest.$ac_ext >&5
10762
10763ac_compiler_gnu=no
10764fi
ac1cb8d3 10765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10766ac_cv_c_compiler_gnu=$ac_compiler_gnu
10767
10768fi
10769echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10770echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10771GCC=`test $ac_compiler_gnu = yes && echo yes`
10772ac_test_CFLAGS=${CFLAGS+set}
10773ac_save_CFLAGS=$CFLAGS
10774CFLAGS="-g"
10775echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10776echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10777if test "${ac_cv_prog_cc_g+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779else
10780 cat >conftest.$ac_ext <<_ACEOF
10781/* confdefs.h. */
10782_ACEOF
10783cat confdefs.h >>conftest.$ac_ext
10784cat >>conftest.$ac_ext <<_ACEOF
10785/* end confdefs.h. */
10786
10787int
10788main ()
10789{
10790
10791 ;
10792 return 0;
10793}
10794_ACEOF
10795rm -f conftest.$ac_objext
10796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10797 (eval $ac_compile) 2>conftest.er1
a848cd7e 10798 ac_status=$?
ac1cb8d3
VS
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
a848cd7e
SC
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
ac1cb8d3
VS
10804 { ac_try='test -z "$ac_c_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_cv_prog_cc_g=yes
10818else
10819 echo "$as_me: failed program was:" >&5
10820sed 's/^/| /' conftest.$ac_ext >&5
10821
10822ac_cv_prog_cc_g=no
10823fi
ac1cb8d3 10824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10825fi
10826echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10827echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10828if test "$ac_test_CFLAGS" = set; then
10829 CFLAGS=$ac_save_CFLAGS
10830elif test $ac_cv_prog_cc_g = yes; then
10831 if test "$GCC" = yes; then
10832 CFLAGS="-g -O2"
10833 else
10834 CFLAGS="-g"
10835 fi
10836else
10837 if test "$GCC" = yes; then
10838 CFLAGS="-O2"
10839 else
10840 CFLAGS=
10841 fi
10842fi
10843echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10844echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10845if test "${ac_cv_prog_cc_stdc+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847else
10848 ac_cv_prog_cc_stdc=no
10849ac_save_CC=$CC
10850cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
10856#include <stdarg.h>
10857#include <stdio.h>
10858#include <sys/types.h>
10859#include <sys/stat.h>
10860/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10861struct buf { int x; };
10862FILE * (*rcsopen) (struct buf *, struct stat *, int);
10863static char *e (p, i)
10864 char **p;
10865 int i;
10866{
10867 return p[i];
10868}
10869static char *f (char * (*g) (char **, int), char **p, ...)
10870{
10871 char *s;
10872 va_list v;
10873 va_start (v,p);
10874 s = g (p, va_arg (v,int));
10875 va_end (v);
10876 return s;
10877}
ac1cb8d3
VS
10878
10879/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10880 function prototypes and stuff, but not '\xHH' hex character constants.
10881 These don't provoke an error unfortunately, instead are silently treated
10882 as 'x'. The following induces an error, until -std1 is added to get
10883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10884 array size at least. It's necessary to write '\x00'==0 to get something
10885 that's true only with -std1. */
10886int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10887
a848cd7e
SC
10888int test (int i, double x);
10889struct s1 {int (*f) (int a);};
10890struct s2 {int (*f) (double a);};
10891int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10892int argc;
10893char **argv;
10894int
10895main ()
10896{
10897return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10898 ;
10899 return 0;
10900}
10901_ACEOF
10902# Don't try gcc -ansi; that turns off useful extensions and
10903# breaks some systems' header files.
10904# AIX -qlanglvl=ansi
10905# Ultrix and OSF/1 -std1
10906# HP-UX 10.20 and later -Ae
10907# HP-UX older versions -Aa -D_HPUX_SOURCE
10908# SVR4 -Xc -D__EXTENSIONS__
10909for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10910do
10911 CC="$ac_save_CC $ac_arg"
10912 rm -f conftest.$ac_objext
10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10914 (eval $ac_compile) 2>conftest.er1
a848cd7e 10915 ac_status=$?
ac1cb8d3
VS
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
a848cd7e
SC
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
ac1cb8d3
VS
10921 { ac_try='test -z "$ac_c_werror_flag"
10922 || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 ac_cv_prog_cc_stdc=$ac_arg
10935break
10936else
10937 echo "$as_me: failed program was:" >&5
10938sed 's/^/| /' conftest.$ac_ext >&5
10939
10940fi
ac1cb8d3 10941rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
10942done
10943rm -f conftest.$ac_ext conftest.$ac_objext
10944CC=$ac_save_CC
10945
10946fi
10947
10948case "x$ac_cv_prog_cc_stdc" in
10949 x|xno)
10950 echo "$as_me:$LINENO: result: none needed" >&5
10951echo "${ECHO_T}none needed" >&6 ;;
10952 *)
10953 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10954echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10955 CC="$CC $ac_cv_prog_cc_stdc" ;;
10956esac
10957
10958# Some people use a C++ compiler to compile C. Since we use `exit',
10959# in C++ we need to declare it. In case someone uses the same compiler
10960# for both compiling C and C++ we need to have the C++ compiler decide
10961# the declaration of exit, since it's the most demanding environment.
10962cat >conftest.$ac_ext <<_ACEOF
10963#ifndef __cplusplus
10964 choke me
10965#endif
10966_ACEOF
10967rm -f conftest.$ac_objext
10968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10969 (eval $ac_compile) 2>conftest.er1
a848cd7e 10970 ac_status=$?
ac1cb8d3
VS
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
a848cd7e
SC
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
ac1cb8d3
VS
10976 { ac_try='test -z "$ac_c_werror_flag"
10977 || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 for ac_declaration in \
ac1cb8d3 10990 '' \
a848cd7e
SC
10991 'extern "C" void std::exit (int) throw (); using std::exit;' \
10992 'extern "C" void std::exit (int); using std::exit;' \
10993 'extern "C" void exit (int) throw ();' \
10994 'extern "C" void exit (int);' \
10995 'void exit (int);'
10996do
10997 cat >conftest.$ac_ext <<_ACEOF
10998/* confdefs.h. */
10999_ACEOF
11000cat confdefs.h >>conftest.$ac_ext
11001cat >>conftest.$ac_ext <<_ACEOF
11002/* end confdefs.h. */
de59c161 11003$ac_declaration
ac1cb8d3 11004#include <stdlib.h>
a848cd7e
SC
11005int
11006main ()
11007{
11008exit (42);
11009 ;
11010 return 0;
11011}
11012_ACEOF
11013rm -f conftest.$ac_objext
11014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11015 (eval $ac_compile) 2>conftest.er1
a848cd7e 11016 ac_status=$?
ac1cb8d3
VS
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
a848cd7e
SC
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
ac1cb8d3
VS
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 :
11036else
11037 echo "$as_me: failed program was:" >&5
11038sed 's/^/| /' conftest.$ac_ext >&5
11039
11040continue
11041fi
ac1cb8d3 11042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11043 cat >conftest.$ac_ext <<_ACEOF
11044/* confdefs.h. */
11045_ACEOF
11046cat confdefs.h >>conftest.$ac_ext
11047cat >>conftest.$ac_ext <<_ACEOF
11048/* end confdefs.h. */
11049$ac_declaration
11050int
11051main ()
11052{
11053exit (42);
11054 ;
11055 return 0;
11056}
11057_ACEOF
11058rm -f conftest.$ac_objext
11059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11060 (eval $ac_compile) 2>conftest.er1
a848cd7e 11061 ac_status=$?
ac1cb8d3
VS
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
a848cd7e
SC
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
ac1cb8d3
VS
11067 { ac_try='test -z "$ac_c_werror_flag"
11068 || test ! -s conftest.err'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 break
11081else
11082 echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
11085fi
ac1cb8d3 11086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11087done
11088rm -f conftest*
11089if test -n "$ac_declaration"; then
11090 echo '#ifdef __cplusplus' >>confdefs.h
11091 echo $ac_declaration >>confdefs.h
11092 echo '#endif' >>confdefs.h
11093fi
11094
11095else
11096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099fi
ac1cb8d3 11100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11101ac_ext=c
11102ac_cpp='$CPP $CPPFLAGS'
11103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11105ac_compiler_gnu=$ac_cv_c_compiler_gnu
11106
11107
11108
11109ac_ext=c
11110ac_cpp='$CPP $CPPFLAGS'
11111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11113ac_compiler_gnu=$ac_cv_c_compiler_gnu
11114echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11115echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11116# On Suns, sometimes $CPP names a directory.
11117if test -n "$CPP" && test -d "$CPP"; then
11118 CPP=
11119fi
11120if test -z "$CPP"; then
11121 if test "${ac_cv_prog_CPP+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123else
11124 # Double quotes because CPP needs to be expanded
11125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11126 do
11127 ac_preproc_ok=false
11128for ac_c_preproc_warn_flag in '' yes
11129do
11130 # Use a header file that comes with gcc, so configuring glibc
11131 # with a fresh cross-compiler works.
11132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11133 # <limits.h> exists even on freestanding compilers.
11134 # On the NeXT, cc -E runs the code through the compiler's parser,
11135 # not just through cpp. "Syntax error" is here to catch this case.
11136 cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142#ifdef __STDC__
11143# include <limits.h>
11144#else
11145# include <assert.h>
11146#endif
ac1cb8d3 11147 Syntax error
a848cd7e
SC
11148_ACEOF
11149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } >/dev/null; then
11157 if test -s conftest.err; then
11158 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11160 else
11161 ac_cpp_err=
11162 fi
11163else
11164 ac_cpp_err=yes
11165fi
11166if test -z "$ac_cpp_err"; then
11167 :
11168else
11169 echo "$as_me: failed program was:" >&5
11170sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 # Broken: fails on valid input.
11173continue
11174fi
11175rm -f conftest.err conftest.$ac_ext
11176
11177 # OK, works on sane cases. Now check whether non-existent headers
11178 # can be detected and how.
11179 cat >conftest.$ac_ext <<_ACEOF
11180/* confdefs.h. */
11181_ACEOF
11182cat confdefs.h >>conftest.$ac_ext
11183cat >>conftest.$ac_ext <<_ACEOF
11184/* end confdefs.h. */
11185#include <ac_nonexistent.h>
11186_ACEOF
11187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } >/dev/null; then
11195 if test -s conftest.err; then
11196 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11198 else
11199 ac_cpp_err=
11200 fi
11201else
11202 ac_cpp_err=yes
11203fi
11204if test -z "$ac_cpp_err"; then
11205 # Broken: success on invalid input.
11206continue
11207else
11208 echo "$as_me: failed program was:" >&5
11209sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 # Passes both tests.
11212ac_preproc_ok=:
11213break
11214fi
11215rm -f conftest.err conftest.$ac_ext
11216
11217done
11218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11219rm -f conftest.err conftest.$ac_ext
11220if $ac_preproc_ok; then
11221 break
11222fi
11223
11224 done
11225 ac_cv_prog_CPP=$CPP
11226
11227fi
11228 CPP=$ac_cv_prog_CPP
11229else
11230 ac_cv_prog_CPP=$CPP
11231fi
11232echo "$as_me:$LINENO: result: $CPP" >&5
11233echo "${ECHO_T}$CPP" >&6
11234ac_preproc_ok=false
11235for ac_c_preproc_warn_flag in '' yes
11236do
11237 # Use a header file that comes with gcc, so configuring glibc
11238 # with a fresh cross-compiler works.
11239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11240 # <limits.h> exists even on freestanding compilers.
11241 # On the NeXT, cc -E runs the code through the compiler's parser,
11242 # not just through cpp. "Syntax error" is here to catch this case.
11243 cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249#ifdef __STDC__
11250# include <limits.h>
11251#else
11252# include <assert.h>
11253#endif
ac1cb8d3 11254 Syntax error
a848cd7e
SC
11255_ACEOF
11256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } >/dev/null; then
11264 if test -s conftest.err; then
11265 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11267 else
11268 ac_cpp_err=
11269 fi
11270else
11271 ac_cpp_err=yes
11272fi
11273if test -z "$ac_cpp_err"; then
11274 :
11275else
11276 echo "$as_me: failed program was:" >&5
11277sed 's/^/| /' conftest.$ac_ext >&5
11278
11279 # Broken: fails on valid input.
11280continue
11281fi
11282rm -f conftest.err conftest.$ac_ext
11283
11284 # OK, works on sane cases. Now check whether non-existent headers
11285 # can be detected and how.
11286 cat >conftest.$ac_ext <<_ACEOF
11287/* confdefs.h. */
11288_ACEOF
11289cat confdefs.h >>conftest.$ac_ext
11290cat >>conftest.$ac_ext <<_ACEOF
11291/* end confdefs.h. */
11292#include <ac_nonexistent.h>
11293_ACEOF
11294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } >/dev/null; then
11302 if test -s conftest.err; then
11303 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11305 else
11306 ac_cpp_err=
11307 fi
11308else
11309 ac_cpp_err=yes
11310fi
11311if test -z "$ac_cpp_err"; then
11312 # Broken: success on invalid input.
11313continue
11314else
11315 echo "$as_me: failed program was:" >&5
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
11318 # Passes both tests.
11319ac_preproc_ok=:
11320break
11321fi
11322rm -f conftest.err conftest.$ac_ext
11323
11324done
11325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11326rm -f conftest.err conftest.$ac_ext
11327if $ac_preproc_ok; then
11328 :
11329else
11330 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11331See \`config.log' for more details." >&5
11332echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11333See \`config.log' for more details." >&2;}
11334 { (exit 1); exit 1; }; }
11335fi
11336
11337ac_ext=c
11338ac_cpp='$CPP $CPPFLAGS'
11339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11341ac_compiler_gnu=$ac_cv_c_compiler_gnu
11342
11343
11344echo "$as_me:$LINENO: checking for egrep" >&5
11345echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11346if test "${ac_cv_prog_egrep+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348else
11349 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11350 then ac_cv_prog_egrep='grep -E'
11351 else ac_cv_prog_egrep='egrep'
11352 fi
11353fi
11354echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11355echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11356 EGREP=$ac_cv_prog_egrep
11357
11358
11359if test $ac_cv_c_compiler_gnu = yes; then
11360 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11361echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11362if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11364else
11365 ac_pattern="Autoconf.*'x'"
11366 cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h. */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h. */
11372#include <sgtty.h>
11373Autoconf TIOCGETP
11374_ACEOF
11375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11376 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11377 ac_cv_prog_gcc_traditional=yes
11378else
11379 ac_cv_prog_gcc_traditional=no
11380fi
11381rm -f conftest*
11382
11383
11384 if test $ac_cv_prog_gcc_traditional = no; then
11385 cat >conftest.$ac_ext <<_ACEOF
11386/* confdefs.h. */
11387_ACEOF
11388cat confdefs.h >>conftest.$ac_ext
11389cat >>conftest.$ac_ext <<_ACEOF
11390/* end confdefs.h. */
11391#include <termio.h>
11392Autoconf TCGETA
11393_ACEOF
11394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11395 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11396 ac_cv_prog_gcc_traditional=yes
11397fi
11398rm -f conftest*
11399
11400 fi
11401fi
11402echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11403echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11404 if test $ac_cv_prog_gcc_traditional = yes; then
11405 CC="$CC -traditional"
11406 fi
11407fi
11408
11409
11410
11411
11412ac_ext=cc
11413ac_cpp='$CXXCPP $CPPFLAGS'
11414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11417
11418
11419CXXFLAGS=${CXXFLAGS:=}
11420ac_ext=cc
11421ac_cpp='$CXXCPP $CPPFLAGS'
11422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11425if test -n "$ac_tool_prefix"; then
11426 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11427 do
11428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11429set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11430echo "$as_me:$LINENO: checking for $ac_word" >&5
11431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11432if test "${ac_cv_prog_CXX+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434else
11435 if test -n "$CXX"; then
11436 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11437else
11438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439for as_dir in $PATH
11440do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11445 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 break 2
11448 fi
11449done
11450done
11451
11452fi
11453fi
11454CXX=$ac_cv_prog_CXX
11455if test -n "$CXX"; then
11456 echo "$as_me:$LINENO: result: $CXX" >&5
11457echo "${ECHO_T}$CXX" >&6
11458else
11459 echo "$as_me:$LINENO: result: no" >&5
11460echo "${ECHO_T}no" >&6
11461fi
11462
11463 test -n "$CXX" && break
11464 done
11465fi
11466if test -z "$CXX"; then
11467 ac_ct_CXX=$CXX
11468 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11469do
11470 # Extract the first word of "$ac_prog", so it can be a program name with args.
11471set dummy $ac_prog; ac_word=$2
11472echo "$as_me:$LINENO: checking for $ac_word" >&5
11473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11474if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476else
11477 if test -n "$ac_ct_CXX"; then
11478 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11479else
11480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $PATH
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11487 ac_cv_prog_ac_ct_CXX="$ac_prog"
11488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 break 2
11490 fi
11491done
11492done
11493
11494fi
11495fi
11496ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11497if test -n "$ac_ct_CXX"; then
11498 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11499echo "${ECHO_T}$ac_ct_CXX" >&6
11500else
11501 echo "$as_me:$LINENO: result: no" >&5
11502echo "${ECHO_T}no" >&6
11503fi
11504
11505 test -n "$ac_ct_CXX" && break
11506done
11507test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11508
11509 CXX=$ac_ct_CXX
11510fi
11511
11512
11513# Provide some information about the compiler.
11514echo "$as_me:$LINENO:" \
11515 "checking for C++ compiler version" >&5
11516ac_compiler=`set X $ac_compile; echo $2`
11517{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11518 (eval $ac_compiler --version </dev/null >&5) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }
11522{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11523 (eval $ac_compiler -v </dev/null >&5) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }
11527{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11528 (eval $ac_compiler -V </dev/null >&5) 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }
11532
11533echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11534echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11535if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537else
11538 cat >conftest.$ac_ext <<_ACEOF
11539/* confdefs.h. */
11540_ACEOF
11541cat confdefs.h >>conftest.$ac_ext
11542cat >>conftest.$ac_ext <<_ACEOF
11543/* end confdefs.h. */
11544
11545int
11546main ()
11547{
11548#ifndef __GNUC__
11549 choke me
11550#endif
11551
11552 ;
11553 return 0;
11554}
11555_ACEOF
11556rm -f conftest.$ac_objext
11557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11558 (eval $ac_compile) 2>conftest.er1
a848cd7e 11559 ac_status=$?
ac1cb8d3
VS
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
a848cd7e
SC
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
ac1cb8d3
VS
11565 { ac_try='test -z "$ac_cxx_werror_flag"
11566 || test ! -s conftest.err'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 ac_compiler_gnu=yes
11579else
11580 echo "$as_me: failed program was:" >&5
11581sed 's/^/| /' conftest.$ac_ext >&5
11582
11583ac_compiler_gnu=no
11584fi
ac1cb8d3 11585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11586ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11587
11588fi
11589echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11590echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11591GXX=`test $ac_compiler_gnu = yes && echo yes`
11592ac_test_CXXFLAGS=${CXXFLAGS+set}
11593ac_save_CXXFLAGS=$CXXFLAGS
11594CXXFLAGS="-g"
11595echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11596echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11597if test "${ac_cv_prog_cxx_g+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599else
11600 cat >conftest.$ac_ext <<_ACEOF
11601/* confdefs.h. */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h. */
11606
11607int
11608main ()
11609{
11610
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext
11616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11617 (eval $ac_compile) 2>conftest.er1
a848cd7e 11618 ac_status=$?
ac1cb8d3
VS
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
a848cd7e
SC
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
ac1cb8d3
VS
11624 { ac_try='test -z "$ac_cxx_werror_flag"
11625 || test ! -s conftest.err'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_cv_prog_cxx_g=yes
11638else
11639 echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642ac_cv_prog_cxx_g=no
11643fi
ac1cb8d3 11644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11645fi
11646echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11647echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11648if test "$ac_test_CXXFLAGS" = set; then
11649 CXXFLAGS=$ac_save_CXXFLAGS
11650elif test $ac_cv_prog_cxx_g = yes; then
11651 if test "$GXX" = yes; then
11652 CXXFLAGS="-g -O2"
11653 else
11654 CXXFLAGS="-g"
11655 fi
11656else
11657 if test "$GXX" = yes; then
11658 CXXFLAGS="-O2"
11659 else
11660 CXXFLAGS=
11661 fi
11662fi
11663for ac_declaration in \
ac1cb8d3 11664 '' \
a848cd7e
SC
11665 'extern "C" void std::exit (int) throw (); using std::exit;' \
11666 'extern "C" void std::exit (int); using std::exit;' \
11667 'extern "C" void exit (int) throw ();' \
11668 'extern "C" void exit (int);' \
11669 'void exit (int);'
11670do
11671 cat >conftest.$ac_ext <<_ACEOF
11672/* confdefs.h. */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h. */
de59c161 11677$ac_declaration
ac1cb8d3 11678#include <stdlib.h>
a848cd7e
SC
11679int
11680main ()
11681{
11682exit (42);
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext
11688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11689 (eval $ac_compile) 2>conftest.er1
a848cd7e 11690 ac_status=$?
ac1cb8d3
VS
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
a848cd7e
SC
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
ac1cb8d3
VS
11696 { ac_try='test -z "$ac_cxx_werror_flag"
11697 || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 :
11710else
11711 echo "$as_me: failed program was:" >&5
11712sed 's/^/| /' conftest.$ac_ext >&5
11713
11714continue
11715fi
ac1cb8d3 11716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11717 cat >conftest.$ac_ext <<_ACEOF
11718/* confdefs.h. */
11719_ACEOF
11720cat confdefs.h >>conftest.$ac_ext
11721cat >>conftest.$ac_ext <<_ACEOF
11722/* end confdefs.h. */
11723$ac_declaration
11724int
11725main ()
11726{
11727exit (42);
11728 ;
11729 return 0;
11730}
11731_ACEOF
11732rm -f conftest.$ac_objext
11733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11734 (eval $ac_compile) 2>conftest.er1
a848cd7e 11735 ac_status=$?
ac1cb8d3
VS
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
a848cd7e
SC
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } &&
ac1cb8d3
VS
11741 { ac_try='test -z "$ac_cxx_werror_flag"
11742 || test ! -s conftest.err'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 break
11755else
11756 echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
11759fi
ac1cb8d3 11760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11761done
11762rm -f conftest*
11763if test -n "$ac_declaration"; then
11764 echo '#ifdef __cplusplus' >>confdefs.h
11765 echo $ac_declaration >>confdefs.h
11766 echo '#endif' >>confdefs.h
11767fi
11768
11769ac_ext=cc
11770ac_cpp='$CXXCPP $CPPFLAGS'
11771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11774
11775
11776ac_ext=c
11777ac_cpp='$CPP $CPPFLAGS'
11778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780ac_compiler_gnu=$ac_cv_c_compiler_gnu
11781
11782
a848cd7e
SC
11783if test -n "$ac_tool_prefix"; then
11784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11785set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11786echo "$as_me:$LINENO: checking for $ac_word" >&5
11787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11788if test "${ac_cv_prog_RANLIB+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791 if test -n "$RANLIB"; then
11792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11793else
11794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795for as_dir in $PATH
11796do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11804 fi
11805done
11806done
11807
11808fi
11809fi
11810RANLIB=$ac_cv_prog_RANLIB
11811if test -n "$RANLIB"; then
11812 echo "$as_me:$LINENO: result: $RANLIB" >&5
11813echo "${ECHO_T}$RANLIB" >&6
11814else
11815 echo "$as_me:$LINENO: result: no" >&5
11816echo "${ECHO_T}no" >&6
11817fi
11818
11819fi
11820if test -z "$ac_cv_prog_RANLIB"; then
11821 ac_ct_RANLIB=$RANLIB
11822 # Extract the first word of "ranlib", so it can be a program name with args.
11823set dummy ranlib; ac_word=$2
11824echo "$as_me:$LINENO: checking for $ac_word" >&5
11825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11826if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828else
11829 if test -n "$ac_ct_RANLIB"; then
11830 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11831else
11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $PATH
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_prog_ac_ct_RANLIB="ranlib"
11840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843done
11844done
11845
11846 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11847fi
11848fi
11849ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11850if test -n "$ac_ct_RANLIB"; then
11851 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11852echo "${ECHO_T}$ac_ct_RANLIB" >&6
11853else
11854 echo "$as_me:$LINENO: result: no" >&5
11855echo "${ECHO_T}no" >&6
11856fi
11857
11858 RANLIB=$ac_ct_RANLIB
11859else
11860 RANLIB="$ac_cv_prog_RANLIB"
11861fi
11862
11863
11864# Extract the first word of "ar", so it can be a program name with args.
11865set dummy ar; ac_word=$2
11866echo "$as_me:$LINENO: checking for $ac_word" >&5
11867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11868if test "${ac_cv_prog_AR+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870else
11871 if test -n "$AR"; then
11872 ac_cv_prog_AR="$AR" # Let the user override the test.
11873else
11874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875for as_dir in $PATH
11876do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11881 ac_cv_prog_AR="ar"
11882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11884 fi
11885done
11886done
11887
11888fi
11889fi
11890AR=$ac_cv_prog_AR
11891if test -n "$AR"; then
11892 echo "$as_me:$LINENO: result: $AR" >&5
11893echo "${ECHO_T}$AR" >&6
11894else
11895 echo "$as_me:$LINENO: result: no" >&5
11896echo "${ECHO_T}no" >&6
11897fi
11898
11899if test "x$AR" = "x" ; then
77ffb593
JS
11900 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11901echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11902 { (exit 1); exit 1; }; }
11903fi
11904
11905# Find a good install program. We prefer a C program (faster),
11906# so one script is as good as another. But avoid the broken or
11907# incompatible versions:
11908# SysV /etc/install, /usr/sbin/install
11909# SunOS /usr/etc/install
11910# IRIX /sbin/install
11911# AIX /bin/install
11912# AmigaOS /C/install, which installs bootblocks on floppy discs
11913# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11914# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11915# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11916# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11917# ./install, which can be erroneously created by make from ./install.sh.
11918echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11919echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11920if test -z "$INSTALL"; then
11921if test "${ac_cv_path_install+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923else
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
11929 # Account for people who put trailing slashes in PATH elements.
11930case $as_dir/ in
11931 ./ | .// | /cC/* | \
11932 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11933 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11934 /usr/ucb/* ) ;;
11935 *)
11936 # OSF1 and SCO ODT 3.0 have their own names for install.
11937 # Don't use installbsd from OSF since it installs stuff as root
11938 # by default.
11939 for ac_prog in ginstall scoinst install; do
11940 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11941 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11942 if test $ac_prog = install &&
11943 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11944 # AIX install. It has an incompatible calling convention.
11945 :
11946 elif test $ac_prog = install &&
11947 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11948 # program-specific install script used by HP pwplus--don't use.
11949 :
11950 else
11951 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11952 break 3
11953 fi
11954 fi
a848cd7e
SC
11955 done
11956 done
11957 ;;
11958esac
11959done
11960
11961
11962fi
11963 if test "${ac_cv_path_install+set}" = set; then
11964 INSTALL=$ac_cv_path_install
11965 else
11966 # As a last resort, use the slow shell script. We don't cache a
11967 # path for INSTALL within a source directory, because that will
11968 # break other packages using the cache if that directory is
11969 # removed, or if the path is relative.
11970 INSTALL=$ac_install_sh
11971 fi
11972fi
11973echo "$as_me:$LINENO: result: $INSTALL" >&5
11974echo "${ECHO_T}$INSTALL" >&6
11975
11976# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11977# It thinks the first close brace ends the variable substitution.
11978test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11979
11980test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11981
11982test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11983
11984
11985case ${INSTALL} in
11986 /* ) # Absolute
11987 ;;
11988 ?:* ) # Drive letter, considered as absolute.
11989 ;;
11990 *)
11991 INSTALL=`pwd`/${INSTALL} ;;
11992esac
11993
11994case ${host} in
11995 *-hp-hpux* )
11996 INSTALL_DIR="mkdir"
11997 ;;
11998
11999 *) INSTALL_DIR="$INSTALL -d"
12000 ;;
12001esac
12002
12003
12004case "${host}" in
12005
12006 powerpc-*-darwin* )
12007 INSTALL_PROGRAM="cp -fp"
12008 INSTALL_DATA="cp -fp"
12009 ;;
12010 *)
12011 ;;
12012esac
12013
12014# Extract the first word of "strip", so it can be a program name with args.
12015set dummy strip; ac_word=$2
12016echo "$as_me:$LINENO: checking for $ac_word" >&5
12017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12018if test "${ac_cv_prog_STRIP+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
12021 if test -n "$STRIP"; then
12022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12023else
12024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_prog_STRIP="strip"
12032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12034 fi
12035done
12036done
12037
12038 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12039fi
12040fi
12041STRIP=$ac_cv_prog_STRIP
12042if test -n "$STRIP"; then
12043 echo "$as_me:$LINENO: result: $STRIP" >&5
12044echo "${ECHO_T}$STRIP" >&6
12045else
12046 echo "$as_me:$LINENO: result: no" >&5
12047echo "${ECHO_T}no" >&6
12048fi
12049
12050
12051echo "$as_me:$LINENO: checking if make is GNU make" >&5
12052echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12053if test "${wx_cv_prog_makeisgnu+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055else
12056
12057 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12058 egrep -s GNU > /dev/null); then
12059 wx_cv_prog_makeisgnu="yes"
12060 else
12061 wx_cv_prog_makeisgnu="no"
12062 fi
12063
12064fi
12065echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12066echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12067
12068if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12069 IF_GNU_MAKE=""
12070else
12071 IF_GNU_MAKE="#"
12072fi
12073
12074
12075
12076if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12077echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12078echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12079if test "${wx_cv_prog_makevpath+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082
12083cat - << EOF > confMake
12084check : file
12085 cp \$? \$@
12086 cp \$? final_file
12087EOF
12088
12089if test ! -d sub ; then
12090 mkdir sub
12091fi
12092echo dummy > sub/file
12093${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12094RESULT=$?
12095rm -f sub/file check final_file confMake
12096rmdir sub
12097if test "$RESULT" = 0; then
12098 wx_cv_prog_makevpath="yes"
12099else
12100 wx_cv_prog_makevpath="no"
12101fi
12102
12103fi
12104echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12105echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12106
12107if test "x$wx_cv_prog_makevpath" != "xyes"; then
12108{ { echo "$as_me:$LINENO: error:
12109You need a make-utility that is able to use the variable
12110VPATH correctly.
12111If your version of make does not support VPATH correctly,
12112please install GNU-make (possibly as gmake), and start
12113configure with the following command:
12114export MAKE=gmake; ./configure for sh-type shells
12115setenv MAKE gmake; ./configure for csh-type shells
12116Also please do remember to use gmake in this case every time
12117you are trying to compile.
12118" >&5
12119echo "$as_me: error:
12120You need a make-utility that is able to use the variable
12121VPATH correctly.
12122If your version of make does not support VPATH correctly,
12123please install GNU-make (possibly as gmake), and start
12124configure with the following command:
12125export MAKE=gmake; ./configure for sh-type shells
12126setenv MAKE gmake; ./configure for csh-type shells
12127Also please do remember to use gmake in this case every time
12128you are trying to compile.
12129" >&2;}
12130 { (exit 1); exit 1; }; }
12131fi fi
12132echo "$as_me:$LINENO: checking whether ln -s works" >&5
12133echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12134LN_S=$as_ln_s
12135if test "$LN_S" = "ln -s"; then
12136 echo "$as_me:$LINENO: result: yes" >&5
12137echo "${ECHO_T}yes" >&6
12138else
12139 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12140echo "${ECHO_T}no, using $LN_S" >&6
12141fi
12142
12143
12144
12145case "${host}" in
12146 *-pc-os2_emx | *-pc-os2-emx )
12147 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12148 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12149echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12150if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152else
12153 ac_check_lib_save_LIBS=$LIBS
12154LIBS="-lcExt $LIBS"
12155cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h. */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h. */
12161
12162/* Override any gcc2 internal prototype to avoid an error. */
12163#ifdef __cplusplus
12164extern "C"
12165#endif
12166/* We use char because int might match the return type of a gcc2
12167 builtin and then its argument prototype would still apply. */
12168char drand48 ();
12169int
12170main ()
12171{
12172drand48 ();
12173 ;
12174 return 0;
12175}
12176_ACEOF
12177rm -f conftest.$ac_objext conftest$ac_exeext
12178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12179 (eval $ac_link) 2>conftest.er1
a848cd7e 12180 ac_status=$?
ac1cb8d3
VS
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
a848cd7e
SC
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
ac1cb8d3
VS
12186 { ac_try='test -z "$ac_c_werror_flag"
12187 || test ! -s conftest.err'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_cv_lib_cExt_drand48=yes
12200else
12201 echo "$as_me: failed program was:" >&5
12202sed 's/^/| /' conftest.$ac_ext >&5
12203
12204ac_cv_lib_cExt_drand48=no
12205fi
ac1cb8d3
VS
12206rm -f conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12208LIBS=$ac_check_lib_save_LIBS
12209fi
12210echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12211echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12212if test $ac_cv_lib_cExt_drand48 = yes; then
12213 LIBS="$LIBS -lcExt"
12214fi
12215
12216 else
12217 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12218 fi
12219 echo "$as_me:$LINENO: checking for gcc version" >&5
12220echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12221if test "${wx_cv_gccversion+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
12224
12225 cat >conftest.$ac_ext <<_ACEOF
12226/* confdefs.h. */
12227_ACEOF
12228cat confdefs.h >>conftest.$ac_ext
12229cat >>conftest.$ac_ext <<_ACEOF
12230/* end confdefs.h. */
12231
12232int
12233main ()
12234{
12235
12236 #if (__GNUC__ < 3)
12237 #error old gcc
12238 #endif
12239
12240 ;
12241 return 0;
12242}
12243_ACEOF
12244rm -f conftest.$ac_objext
12245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12246 (eval $ac_compile) 2>conftest.er1
a848cd7e 12247 ac_status=$?
ac1cb8d3
VS
12248 grep -v '^ *+' conftest.er1 >conftest.err
12249 rm -f conftest.er1
12250 cat conftest.err >&5
a848cd7e
SC
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
ac1cb8d3
VS
12253 { ac_try='test -z "$ac_c_werror_flag"
12254 || test ! -s conftest.err'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; }; then
12266
12267 cat >conftest.$ac_ext <<_ACEOF
12268/* confdefs.h. */
12269_ACEOF
12270cat confdefs.h >>conftest.$ac_ext
12271cat >>conftest.$ac_ext <<_ACEOF
12272/* end confdefs.h. */
12273
12274int
12275main ()
12276{
12277
12278 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12279 #error intermediate gcc
12280 #endif
12281
12282 ;
12283 return 0;
12284}
12285_ACEOF
12286rm -f conftest.$ac_objext
12287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12288 (eval $ac_compile) 2>conftest.er1
a848cd7e 12289 ac_status=$?
ac1cb8d3
VS
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
a848cd7e
SC
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
ac1cb8d3
VS
12295 { ac_try='test -z "$ac_c_werror_flag"
12296 || test ! -s conftest.err'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308
12309 wx_cv_gccversion=Innotek
12310
12311else
12312 echo "$as_me: failed program was:" >&5
12313sed 's/^/| /' conftest.$ac_ext >&5
12314
12315
12316 wx_cv_gccversion=3
12317
12318
12319fi
ac1cb8d3 12320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12321
12322else
12323 echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326
12327 wx_cv_gccversion=2
12328
12329
12330fi
ac1cb8d3 12331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12332
12333fi
12334echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12335echo "${ECHO_T}$wx_cv_gccversion" >&6
12336 if test "$wx_cv_gccversion" = "2"; then
12337 LIBS="$LIBS -lstdcpp"
12338 LDFLAGS="$LDFLAGS -Zsysv-signals"
12339 else
12340 if test "$wx_cv_gccversion" = "3"; then
12341 LIBS="$LIBS -lstdcxx"
12342 LDFLAGS="$LDFLAGS -Zsysv-signals"
12343 else
12344 LIBS="$LIBS -lstdc++"
12345 fi
12346 fi
12347 if test "$wxUSE_OMF" = "yes"; then
de59c161 12348 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12349 fi
12350 ;;
12351 *)
12352
12353
12354
12355 ac_ext=cc
12356ac_cpp='$CXXCPP $CPPFLAGS'
12357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12360
12361
12362
12363echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12364echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12365if test "${ac_cv_string_strcasecmp+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367else
12368
12369 cat >conftest.$ac_ext <<_ACEOF
12370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
12375
12376 #include <string.h>
12377
12378int
12379main ()
12380{
12381
12382 strcasecmp("foo", "bar");
12383
12384 ;
12385 return 0;
12386}
12387_ACEOF
12388rm -f conftest.$ac_objext conftest$ac_exeext
12389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12390 (eval $ac_link) 2>conftest.er1
a848cd7e 12391 ac_status=$?
ac1cb8d3
VS
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
a848cd7e
SC
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
ac1cb8d3
VS
12397 { ac_try='test -z "$ac_cxx_werror_flag"
12398 || test ! -s conftest.err'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_cv_string_strcasecmp=yes
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415ac_cv_string_strcasecmp=no
12416
12417fi
ac1cb8d3
VS
12418rm -f conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12420
12421fi
12422echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12423echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12424
12425 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12426 cat >>confdefs.h <<\_ACEOF
12427#define HAVE_STRCASECMP_IN_STRING_H 1
12428_ACEOF
12429
12430 else
12431 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12432echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12433if test "${ac_cv_strings_strcasecmp+set}" = set; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12435else
12436
12437 cat >conftest.$ac_ext <<_ACEOF
12438/* confdefs.h. */
12439_ACEOF
12440cat confdefs.h >>conftest.$ac_ext
12441cat >>conftest.$ac_ext <<_ACEOF
12442/* end confdefs.h. */
12443
12444 #include <strings.h>
12445
12446int
12447main ()
12448{
12449
12450 strcasecmp("foo", "bar");
12451
12452 ;
12453 return 0;
12454}
12455_ACEOF
12456rm -f conftest.$ac_objext conftest$ac_exeext
12457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12458 (eval $ac_link) 2>conftest.er1
a848cd7e 12459 ac_status=$?
ac1cb8d3
VS
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
a848cd7e
SC
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } &&
ac1cb8d3
VS
12465 { ac_try='test -z "$ac_cxx_werror_flag"
12466 || test ! -s conftest.err'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; }; then
12478 ac_cv_strings_strcasecmp=yes
12479else
12480 echo "$as_me: failed program was:" >&5
12481sed 's/^/| /' conftest.$ac_ext >&5
12482
12483ac_cv_strings_strcasecmp=no
12484
12485fi
ac1cb8d3
VS
12486rm -f conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12488
12489fi
12490echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12491echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12492
12493 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12494 cat >>confdefs.h <<\_ACEOF
12495#define HAVE_STRCASECMP_IN_STRINGS_H 1
12496_ACEOF
12497
12498 else
12499 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12500echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12501 { (exit 1); exit 1; }; }
12502 fi
12503 fi
12504
12505 ac_ext=c
12506ac_cpp='$CPP $CPPFLAGS'
12507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12509ac_compiler_gnu=$ac_cv_c_compiler_gnu
12510
12511 ;;
12512esac
12513
12514
12515echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12516echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12517if test "${ac_cv_header_stdc+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519else
12520 cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
12526#include <stdlib.h>
12527#include <stdarg.h>
12528#include <string.h>
12529#include <float.h>
12530
12531int
12532main ()
12533{
12534
12535 ;
12536 return 0;
12537}
12538_ACEOF
12539rm -f conftest.$ac_objext
12540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12541 (eval $ac_compile) 2>conftest.er1
a848cd7e 12542 ac_status=$?
ac1cb8d3
VS
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
a848cd7e
SC
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
ac1cb8d3
VS
12548 { ac_try='test -z "$ac_c_werror_flag"
12549 || test ! -s conftest.err'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_header_stdc=yes
12562else
12563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
12566ac_cv_header_stdc=no
12567fi
ac1cb8d3 12568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12569
12570if test $ac_cv_header_stdc = yes; then
12571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12572 cat >conftest.$ac_ext <<_ACEOF
12573/* confdefs.h. */
12574_ACEOF
12575cat confdefs.h >>conftest.$ac_ext
12576cat >>conftest.$ac_ext <<_ACEOF
12577/* end confdefs.h. */
12578#include <string.h>
12579
12580_ACEOF
12581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12582 $EGREP "memchr" >/dev/null 2>&1; then
12583 :
12584else
12585 ac_cv_header_stdc=no
12586fi
12587rm -f conftest*
12588
12589fi
12590
12591if test $ac_cv_header_stdc = yes; then
12592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12593 cat >conftest.$ac_ext <<_ACEOF
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h. */
12599#include <stdlib.h>
12600
12601_ACEOF
12602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12603 $EGREP "free" >/dev/null 2>&1; then
12604 :
12605else
12606 ac_cv_header_stdc=no
12607fi
12608rm -f conftest*
12609
12610fi
12611
12612if test $ac_cv_header_stdc = yes; then
12613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12614 if test "$cross_compiling" = yes; then
12615 :
12616else
12617 cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h. */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
12622/* end confdefs.h. */
12623#include <ctype.h>
12624#if ((' ' & 0x0FF) == 0x020)
12625# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12626# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12627#else
12628# define ISLOWER(c) \
ac1cb8d3
VS
12629 (('a' <= (c) && (c) <= 'i') \
12630 || ('j' <= (c) && (c) <= 'r') \
12631 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12632# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12633#endif
12634
12635#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12636int
12637main ()
12638{
12639 int i;
12640 for (i = 0; i < 256; i++)
12641 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12642 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12643 exit(2);
12644 exit (0);
12645}
12646_ACEOF
12647rm -f conftest$ac_exeext
12648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649 (eval $ac_link) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 :
12659else
12660 echo "$as_me: program exited with status $ac_status" >&5
12661echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664( exit $ac_status )
12665ac_cv_header_stdc=no
12666fi
ac1cb8d3 12667rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12668fi
12669fi
12670fi
12671echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12672echo "${ECHO_T}$ac_cv_header_stdc" >&6
12673if test $ac_cv_header_stdc = yes; then
12674
12675cat >>confdefs.h <<\_ACEOF
12676#define STDC_HEADERS 1
12677_ACEOF
12678
12679fi
12680
12681# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12692 inttypes.h stdint.h unistd.h
a848cd7e
SC
12693do
12694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12695echo "$as_me:$LINENO: checking for $ac_header" >&5
12696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12697if eval "test \"\${$as_ac_Header+set}\" = set"; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699else
12700 cat >conftest.$ac_ext <<_ACEOF
12701/* confdefs.h. */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */
12706$ac_includes_default
12707
12708#include <$ac_header>
12709_ACEOF
12710rm -f conftest.$ac_objext
12711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12712 (eval $ac_compile) 2>conftest.er1
a848cd7e 12713 ac_status=$?
ac1cb8d3
VS
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
a848cd7e
SC
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
ac1cb8d3
VS
12719 { ac_try='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 eval "$as_ac_Header=yes"
12733else
12734 echo "$as_me: failed program was:" >&5
12735sed 's/^/| /' conftest.$ac_ext >&5
12736
12737eval "$as_ac_Header=no"
12738fi
ac1cb8d3 12739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12740fi
12741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12743if test `eval echo '${'$as_ac_Header'}'` = yes; then
12744 cat >>confdefs.h <<_ACEOF
12745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12746_ACEOF
12747
12748fi
12749
12750done
12751
12752
12753
12754for ac_header in stdlib.h
12755do
12756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12757if eval "test \"\${$as_ac_Header+set}\" = set"; then
12758 echo "$as_me:$LINENO: checking for $ac_header" >&5
12759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12760if eval "test \"\${$as_ac_Header+set}\" = set"; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762fi
12763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12765else
12766 # Is the header compilable?
12767echo "$as_me:$LINENO: checking $ac_header usability" >&5
12768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12769cat >conftest.$ac_ext <<_ACEOF
12770/* confdefs.h. */
12771_ACEOF
12772cat confdefs.h >>conftest.$ac_ext
12773cat >>conftest.$ac_ext <<_ACEOF
12774/* end confdefs.h. */
12775$ac_includes_default
12776#include <$ac_header>
12777_ACEOF
12778rm -f conftest.$ac_objext
12779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12780 (eval $ac_compile) 2>conftest.er1
a848cd7e 12781 ac_status=$?
ac1cb8d3
VS
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
a848cd7e
SC
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
ac1cb8d3
VS
12787 { ac_try='test -z "$ac_c_werror_flag"
12788 || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_header_compiler=yes
12801else
12802 echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
12804
12805ac_header_compiler=no
12806fi
ac1cb8d3 12807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12809echo "${ECHO_T}$ac_header_compiler" >&6
12810
12811# Is the header present?
12812echo "$as_me:$LINENO: checking $ac_header presence" >&5
12813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12814cat >conftest.$ac_ext <<_ACEOF
12815/* confdefs.h. */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h. */
12820#include <$ac_header>
12821_ACEOF
12822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } >/dev/null; then
12830 if test -s conftest.err; then
12831 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12833 else
12834 ac_cpp_err=
12835 fi
12836else
12837 ac_cpp_err=yes
12838fi
12839if test -z "$ac_cpp_err"; then
12840 ac_header_preproc=yes
12841else
12842 echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
12844
12845 ac_header_preproc=no
12846fi
12847rm -f conftest.err conftest.$ac_ext
12848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12849echo "${ECHO_T}$ac_header_preproc" >&6
12850
12851# So? What about this header?
ac1cb8d3
VS
12852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12853 yes:no: )
a848cd7e
SC
12854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12858 ac_header_preproc=yes
a848cd7e 12859 ;;
ac1cb8d3 12860 no:yes:* )
a848cd7e
SC
12861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12873 (
12874 cat <<\_ASBOX
ac1cb8d3
VS
12875## ----------------------------------------- ##
12876## Report this to wx-dev@lists.wxwidgets.org ##
12877## ----------------------------------------- ##
a848cd7e
SC
12878_ASBOX
12879 ) |
12880 sed "s/^/$as_me: WARNING: /" >&2
12881 ;;
12882esac
12883echo "$as_me:$LINENO: checking for $ac_header" >&5
12884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12885if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12887else
ac1cb8d3 12888 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12889fi
12890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12892
12893fi
12894if test `eval echo '${'$as_ac_Header'}'` = yes; then
12895 cat >>confdefs.h <<_ACEOF
12896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12897_ACEOF
12898
12899fi
12900
12901done
12902
12903
12904for ac_header in malloc.h
12905do
12906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12907if eval "test \"\${$as_ac_Header+set}\" = set"; then
12908 echo "$as_me:$LINENO: checking for $ac_header" >&5
12909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12910if eval "test \"\${$as_ac_Header+set}\" = set"; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912fi
12913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12915else
12916 # Is the header compilable?
12917echo "$as_me:$LINENO: checking $ac_header usability" >&5
12918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12919cat >conftest.$ac_ext <<_ACEOF
12920/* confdefs.h. */
12921_ACEOF
12922cat confdefs.h >>conftest.$ac_ext
12923cat >>conftest.$ac_ext <<_ACEOF
12924/* end confdefs.h. */
12925$ac_includes_default
12926#include <$ac_header>
12927_ACEOF
12928rm -f conftest.$ac_objext
12929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12930 (eval $ac_compile) 2>conftest.er1
a848cd7e 12931 ac_status=$?
ac1cb8d3
VS
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
a848cd7e
SC
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
ac1cb8d3
VS
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_header_compiler=yes
12951else
12952 echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
12955ac_header_compiler=no
12956fi
ac1cb8d3 12957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12958echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12959echo "${ECHO_T}$ac_header_compiler" >&6
12960
12961# Is the header present?
12962echo "$as_me:$LINENO: checking $ac_header presence" >&5
12963echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12964cat >conftest.$ac_ext <<_ACEOF
12965/* confdefs.h. */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
12969/* end confdefs.h. */
12970#include <$ac_header>
12971_ACEOF
12972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } >/dev/null; then
12980 if test -s conftest.err; then
12981 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12983 else
12984 ac_cpp_err=
12985 fi
12986else
12987 ac_cpp_err=yes
12988fi
12989if test -z "$ac_cpp_err"; then
12990 ac_header_preproc=yes
12991else
12992 echo "$as_me: failed program was:" >&5
12993sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 ac_header_preproc=no
12996fi
12997rm -f conftest.err conftest.$ac_ext
12998echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12999echo "${ECHO_T}$ac_header_preproc" >&6
13000
13001# So? What about this header?
ac1cb8d3
VS
13002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13003 yes:no: )
a848cd7e
SC
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13005echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13007echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13008 ac_header_preproc=yes
a848cd7e 13009 ;;
ac1cb8d3 13010 no:yes:* )
a848cd7e
SC
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13012echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13014echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13016echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13018echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13020echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13022echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13023 (
13024 cat <<\_ASBOX
ac1cb8d3
VS
13025## ----------------------------------------- ##
13026## Report this to wx-dev@lists.wxwidgets.org ##
13027## ----------------------------------------- ##
a848cd7e
SC
13028_ASBOX
13029 ) |
13030 sed "s/^/$as_me: WARNING: /" >&2
13031 ;;
13032esac
13033echo "$as_me:$LINENO: checking for $ac_header" >&5
13034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13035if eval "test \"\${$as_ac_Header+set}\" = set"; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037else
ac1cb8d3 13038 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13039fi
13040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13042
13043fi
13044if test `eval echo '${'$as_ac_Header'}'` = yes; then
13045 cat >>confdefs.h <<_ACEOF
13046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13047_ACEOF
13048
13049fi
13050
13051done
13052
13053
13054for ac_header in unistd.h
13055do
13056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13057if eval "test \"\${$as_ac_Header+set}\" = set"; then
13058 echo "$as_me:$LINENO: checking for $ac_header" >&5
13059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13060if eval "test \"\${$as_ac_Header+set}\" = set"; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062fi
13063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13065else
13066 # Is the header compilable?
13067echo "$as_me:$LINENO: checking $ac_header usability" >&5
13068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13069cat >conftest.$ac_ext <<_ACEOF
13070/* confdefs.h. */
13071_ACEOF
13072cat confdefs.h >>conftest.$ac_ext
13073cat >>conftest.$ac_ext <<_ACEOF
13074/* end confdefs.h. */
13075$ac_includes_default
13076#include <$ac_header>
13077_ACEOF
13078rm -f conftest.$ac_objext
13079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13080 (eval $ac_compile) 2>conftest.er1
a848cd7e 13081 ac_status=$?
ac1cb8d3
VS
13082 grep -v '^ *+' conftest.er1 >conftest.err
13083 rm -f conftest.er1
13084 cat conftest.err >&5
a848cd7e
SC
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
ac1cb8d3
VS
13087 { ac_try='test -z "$ac_c_werror_flag"
13088 || test ! -s conftest.err'
13089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090 (eval $ac_try) 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; } &&
13094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }; then
13100 ac_header_compiler=yes
13101else
13102 echo "$as_me: failed program was:" >&5
13103sed 's/^/| /' conftest.$ac_ext >&5
13104
13105ac_header_compiler=no
13106fi
ac1cb8d3 13107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13109echo "${ECHO_T}$ac_header_compiler" >&6
13110
13111# Is the header present?
13112echo "$as_me:$LINENO: checking $ac_header presence" >&5
13113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13114cat >conftest.$ac_ext <<_ACEOF
13115/* confdefs.h. */
13116_ACEOF
13117cat confdefs.h >>conftest.$ac_ext
13118cat >>conftest.$ac_ext <<_ACEOF
13119/* end confdefs.h. */
13120#include <$ac_header>
13121_ACEOF
13122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } >/dev/null; then
13130 if test -s conftest.err; then
13131 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13133 else
13134 ac_cpp_err=
13135 fi
13136else
13137 ac_cpp_err=yes
13138fi
13139if test -z "$ac_cpp_err"; then
13140 ac_header_preproc=yes
13141else
13142 echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
13145 ac_header_preproc=no
13146fi
13147rm -f conftest.err conftest.$ac_ext
13148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13149echo "${ECHO_T}$ac_header_preproc" >&6
13150
13151# So? What about this header?
ac1cb8d3
VS
13152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13153 yes:no: )
a848cd7e
SC
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13157echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13158 ac_header_preproc=yes
a848cd7e 13159 ;;
ac1cb8d3 13160 no:yes:* )
a848cd7e
SC
13161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13166echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13168echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13172echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13173 (
13174 cat <<\_ASBOX
ac1cb8d3
VS
13175## ----------------------------------------- ##
13176## Report this to wx-dev@lists.wxwidgets.org ##
13177## ----------------------------------------- ##
a848cd7e
SC
13178_ASBOX
13179 ) |
13180 sed "s/^/$as_me: WARNING: /" >&2
13181 ;;
13182esac
13183echo "$as_me:$LINENO: checking for $ac_header" >&5
13184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13185if eval "test \"\${$as_ac_Header+set}\" = set"; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
ac1cb8d3 13188 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13189fi
13190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13192
13193fi
13194if test `eval echo '${'$as_ac_Header'}'` = yes; then
13195 cat >>confdefs.h <<_ACEOF
13196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13197_ACEOF
13198
13199fi
13200
13201done
13202
13203
13204for ac_header in wchar.h
13205do
13206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13207if eval "test \"\${$as_ac_Header+set}\" = set"; then
13208 echo "$as_me:$LINENO: checking for $ac_header" >&5
13209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13210if eval "test \"\${$as_ac_Header+set}\" = set"; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212fi
13213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13215else
13216 # Is the header compilable?
13217echo "$as_me:$LINENO: checking $ac_header usability" >&5
13218echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13219cat >conftest.$ac_ext <<_ACEOF
13220/* confdefs.h. */
13221_ACEOF
13222cat confdefs.h >>conftest.$ac_ext
13223cat >>conftest.$ac_ext <<_ACEOF
13224/* end confdefs.h. */
13225$ac_includes_default
13226#include <$ac_header>
13227_ACEOF
13228rm -f conftest.$ac_objext
13229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13230 (eval $ac_compile) 2>conftest.er1
a848cd7e 13231 ac_status=$?
ac1cb8d3
VS
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
a848cd7e
SC
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
ac1cb8d3
VS
13237 { ac_try='test -z "$ac_c_werror_flag"
13238 || test ! -s conftest.err'
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_header_compiler=yes
13251else
13252 echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
13255ac_header_compiler=no
13256fi
ac1cb8d3 13257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13258echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13259echo "${ECHO_T}$ac_header_compiler" >&6
13260
13261# Is the header present?
13262echo "$as_me:$LINENO: checking $ac_header presence" >&5
13263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13264cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */
13270#include <$ac_header>
13271_ACEOF
13272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } >/dev/null; then
13280 if test -s conftest.err; then
13281 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13283 else
13284 ac_cpp_err=
13285 fi
13286else
13287 ac_cpp_err=yes
13288fi
13289if test -z "$ac_cpp_err"; then
13290 ac_header_preproc=yes
13291else
13292 echo "$as_me: failed program was:" >&5
13293sed 's/^/| /' conftest.$ac_ext >&5
13294
13295 ac_header_preproc=no
13296fi
13297rm -f conftest.err conftest.$ac_ext
13298echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13299echo "${ECHO_T}$ac_header_preproc" >&6
13300
13301# So? What about this header?
ac1cb8d3
VS
13302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13303 yes:no: )
a848cd7e
SC
13304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13305echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13307echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13308 ac_header_preproc=yes
a848cd7e 13309 ;;
ac1cb8d3 13310 no:yes:* )
a848cd7e
SC
13311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13312echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13314echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13316echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13318echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13320echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13322echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13323 (
13324 cat <<\_ASBOX
ac1cb8d3
VS
13325## ----------------------------------------- ##
13326## Report this to wx-dev@lists.wxwidgets.org ##
13327## ----------------------------------------- ##
a848cd7e
SC
13328_ASBOX
13329 ) |
13330 sed "s/^/$as_me: WARNING: /" >&2
13331 ;;
13332esac
13333echo "$as_me:$LINENO: checking for $ac_header" >&5
13334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13335if eval "test \"\${$as_ac_Header+set}\" = set"; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337else
ac1cb8d3 13338 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13339fi
13340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13342
13343fi
13344if test `eval echo '${'$as_ac_Header'}'` = yes; then
13345 cat >>confdefs.h <<_ACEOF
13346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13347_ACEOF
13348
13349fi
13350
13351done
13352
13353
13354if test "$ac_cv_header_wchar_h" != "yes"; then
13355
13356for ac_header in wcstr.h
13357do
13358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13359if eval "test \"\${$as_ac_Header+set}\" = set"; then
13360 echo "$as_me:$LINENO: checking for $ac_header" >&5
13361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13362if eval "test \"\${$as_ac_Header+set}\" = set"; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364fi
13365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13367else
13368 # Is the header compilable?
13369echo "$as_me:$LINENO: checking $ac_header usability" >&5
13370echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13371cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377$ac_includes_default
13378#include <$ac_header>
13379_ACEOF
13380rm -f conftest.$ac_objext
13381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13382 (eval $ac_compile) 2>conftest.er1
a848cd7e 13383 ac_status=$?
ac1cb8d3
VS
13384 grep -v '^ *+' conftest.er1 >conftest.err
13385 rm -f conftest.er1
13386 cat conftest.err >&5
a848cd7e
SC
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
ac1cb8d3
VS
13389 { ac_try='test -z "$ac_c_werror_flag"
13390 || test ! -s conftest.err'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_header_compiler=yes
13403else
13404 echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
13407ac_header_compiler=no
13408fi
ac1cb8d3 13409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13410echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13411echo "${ECHO_T}$ac_header_compiler" >&6
13412
13413# Is the header present?
13414echo "$as_me:$LINENO: checking $ac_header presence" >&5
13415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13416cat >conftest.$ac_ext <<_ACEOF
13417/* confdefs.h. */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h. */
13422#include <$ac_header>
13423_ACEOF
13424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13426 ac_status=$?
13427 grep -v '^ *+' conftest.er1 >conftest.err
13428 rm -f conftest.er1
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } >/dev/null; then
13432 if test -s conftest.err; then
13433 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13435 else
13436 ac_cpp_err=
13437 fi
13438else
13439 ac_cpp_err=yes
13440fi
13441if test -z "$ac_cpp_err"; then
13442 ac_header_preproc=yes
13443else
13444 echo "$as_me: failed program was:" >&5
13445sed 's/^/| /' conftest.$ac_ext >&5
13446
13447 ac_header_preproc=no
13448fi
13449rm -f conftest.err conftest.$ac_ext
13450echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13451echo "${ECHO_T}$ac_header_preproc" >&6
13452
13453# So? What about this header?
ac1cb8d3
VS
13454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13455 yes:no: )
a848cd7e
SC
13456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13460 ac_header_preproc=yes
a848cd7e 13461 ;;
ac1cb8d3 13462 no:yes:* )
a848cd7e
SC
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13475 (
13476 cat <<\_ASBOX
ac1cb8d3
VS
13477## ----------------------------------------- ##
13478## Report this to wx-dev@lists.wxwidgets.org ##
13479## ----------------------------------------- ##
a848cd7e
SC
13480_ASBOX
13481 ) |
13482 sed "s/^/$as_me: WARNING: /" >&2
13483 ;;
13484esac
13485echo "$as_me:$LINENO: checking for $ac_header" >&5
13486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13487if eval "test \"\${$as_ac_Header+set}\" = set"; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489else
ac1cb8d3 13490 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13491fi
13492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13494
13495fi
13496if test `eval echo '${'$as_ac_Header'}'` = yes; then
13497 cat >>confdefs.h <<_ACEOF
13498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13499_ACEOF
13500
13501fi
13502
13503done
13504
13505fi
13506
13507
13508for ac_header in fnmatch.h
13509do
13510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13511if eval "test \"\${$as_ac_Header+set}\" = set"; then
13512 echo "$as_me:$LINENO: checking for $ac_header" >&5
13513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13514if eval "test \"\${$as_ac_Header+set}\" = set"; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516fi
13517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13519else
13520 # Is the header compilable?
13521echo "$as_me:$LINENO: checking $ac_header usability" >&5
13522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13523cat >conftest.$ac_ext <<_ACEOF
13524/* confdefs.h. */
13525_ACEOF
13526cat confdefs.h >>conftest.$ac_ext
13527cat >>conftest.$ac_ext <<_ACEOF
13528/* end confdefs.h. */
13529$ac_includes_default
13530#include <$ac_header>
13531_ACEOF
13532rm -f conftest.$ac_objext
13533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13534 (eval $ac_compile) 2>conftest.er1
a848cd7e 13535 ac_status=$?
ac1cb8d3
VS
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
a848cd7e
SC
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
ac1cb8d3
VS
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_header_compiler=yes
13555else
13556 echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
13559ac_header_compiler=no
13560fi
ac1cb8d3 13561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13563echo "${ECHO_T}$ac_header_compiler" >&6
13564
13565# Is the header present?
13566echo "$as_me:$LINENO: checking $ac_header presence" >&5
13567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13568cat >conftest.$ac_ext <<_ACEOF
13569/* confdefs.h. */
13570_ACEOF
13571cat confdefs.h >>conftest.$ac_ext
13572cat >>conftest.$ac_ext <<_ACEOF
13573/* end confdefs.h. */
13574#include <$ac_header>
13575_ACEOF
13576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } >/dev/null; then
13584 if test -s conftest.err; then
13585 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13587 else
13588 ac_cpp_err=
13589 fi
13590else
13591 ac_cpp_err=yes
13592fi
13593if test -z "$ac_cpp_err"; then
13594 ac_header_preproc=yes
13595else
13596 echo "$as_me: failed program was:" >&5
13597sed 's/^/| /' conftest.$ac_ext >&5
13598
13599 ac_header_preproc=no
13600fi
13601rm -f conftest.err conftest.$ac_ext
13602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13603echo "${ECHO_T}$ac_header_preproc" >&6
13604
13605# So? What about this header?
ac1cb8d3
VS
13606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13607 yes:no: )
a848cd7e
SC
13608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13612 ac_header_preproc=yes
a848cd7e 13613 ;;
ac1cb8d3 13614 no:yes:* )
a848cd7e
SC
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13622echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13627 (
13628 cat <<\_ASBOX
ac1cb8d3
VS
13629## ----------------------------------------- ##
13630## Report this to wx-dev@lists.wxwidgets.org ##
13631## ----------------------------------------- ##
a848cd7e
SC
13632_ASBOX
13633 ) |
13634 sed "s/^/$as_me: WARNING: /" >&2
13635 ;;
13636esac
13637echo "$as_me:$LINENO: checking for $ac_header" >&5
13638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13639if eval "test \"\${$as_ac_Header+set}\" = set"; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641else
ac1cb8d3 13642 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13643fi
13644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13646
13647fi
13648if test `eval echo '${'$as_ac_Header'}'` = yes; then
13649 cat >>confdefs.h <<_ACEOF
13650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13651_ACEOF
13652
13653fi
13654
13655done
13656
13657
13658if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13659
13660for ac_func in fnmatch
13661do
13662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13663echo "$as_me:$LINENO: checking for $ac_func" >&5
13664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13665if eval "test \"\${$as_ac_var+set}\" = set"; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668 cat >conftest.$ac_ext <<_ACEOF
13669/* confdefs.h. */
13670_ACEOF
13671cat confdefs.h >>conftest.$ac_ext
13672cat >>conftest.$ac_ext <<_ACEOF
13673/* end confdefs.h. */
ac1cb8d3
VS
13674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13676#define $ac_func innocuous_$ac_func
13677
a848cd7e
SC
13678/* System header to define __stub macros and hopefully few prototypes,
13679 which can conflict with char $ac_func (); below.
13680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13682
a848cd7e
SC
13683#ifdef __STDC__
13684# include <limits.h>
13685#else
13686# include <assert.h>
13687#endif
ac1cb8d3
VS
13688
13689#undef $ac_func
13690
a848cd7e
SC
13691/* Override any gcc2 internal prototype to avoid an error. */
13692#ifdef __cplusplus
13693extern "C"
13694{
13695#endif
13696/* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13698char $ac_func ();
13699/* The GNU C library defines this for functions which it implements
13700 to always fail with ENOSYS. Some functions are actually named
13701 something starting with __ and the normal name is an alias. */
13702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13703choke me
13704#else
13705char (*f) () = $ac_func;
13706#endif
13707#ifdef __cplusplus
13708}
13709#endif
13710
13711int
13712main ()
13713{
13714return f != $ac_func;
13715 ;
13716 return 0;
13717}
13718_ACEOF
13719rm -f conftest.$ac_objext conftest$ac_exeext
13720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13721 (eval $ac_link) 2>conftest.er1
a848cd7e 13722 ac_status=$?
ac1cb8d3
VS
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
a848cd7e
SC
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
ac1cb8d3
VS
13728 { ac_try='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 eval "$as_ac_var=yes"
13742else
13743 echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746eval "$as_ac_var=no"
13747fi
ac1cb8d3
VS
13748rm -f conftest.err conftest.$ac_objext \
13749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13750fi
13751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13753if test `eval echo '${'$as_ac_var'}'` = yes; then
13754 cat >>confdefs.h <<_ACEOF
13755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13756_ACEOF
13757
13758fi
13759done
13760
13761fi
13762
13763
13764for ac_header in langinfo.h
13765do
13766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13767if eval "test \"\${$as_ac_Header+set}\" = set"; then
13768 echo "$as_me:$LINENO: checking for $ac_header" >&5
13769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13770if eval "test \"\${$as_ac_Header+set}\" = set"; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772fi
13773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13775else
13776 # Is the header compilable?
13777echo "$as_me:$LINENO: checking $ac_header usability" >&5
13778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13779cat >conftest.$ac_ext <<_ACEOF
13780/* confdefs.h. */
13781_ACEOF
13782cat confdefs.h >>conftest.$ac_ext
13783cat >>conftest.$ac_ext <<_ACEOF
13784/* end confdefs.h. */
13785$ac_includes_default
13786#include <$ac_header>
13787_ACEOF
13788rm -f conftest.$ac_objext
13789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13790 (eval $ac_compile) 2>conftest.er1
a848cd7e 13791 ac_status=$?
ac1cb8d3
VS
13792 grep -v '^ *+' conftest.er1 >conftest.err
13793 rm -f conftest.er1
13794 cat conftest.err >&5
a848cd7e
SC
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } &&
ac1cb8d3
VS
13797 { ac_try='test -z "$ac_c_werror_flag"
13798 || test ! -s conftest.err'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_header_compiler=yes
13811else
13812 echo "$as_me: failed program was:" >&5
13813sed 's/^/| /' conftest.$ac_ext >&5
13814
13815ac_header_compiler=no
13816fi
ac1cb8d3 13817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13819echo "${ECHO_T}$ac_header_compiler" >&6
13820
13821# Is the header present?
13822echo "$as_me:$LINENO: checking $ac_header presence" >&5
13823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13824cat >conftest.$ac_ext <<_ACEOF
13825/* confdefs.h. */
13826_ACEOF
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h. */
13830#include <$ac_header>
13831_ACEOF
13832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } >/dev/null; then
13840 if test -s conftest.err; then
13841 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13843 else
13844 ac_cpp_err=
13845 fi
13846else
13847 ac_cpp_err=yes
13848fi
13849if test -z "$ac_cpp_err"; then
13850 ac_header_preproc=yes
13851else
13852 echo "$as_me: failed program was:" >&5
13853sed 's/^/| /' conftest.$ac_ext >&5
13854
13855 ac_header_preproc=no
13856fi
13857rm -f conftest.err conftest.$ac_ext
13858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13859echo "${ECHO_T}$ac_header_preproc" >&6
13860
13861# So? What about this header?
ac1cb8d3
VS
13862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13863 yes:no: )
a848cd7e
SC
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13868 ac_header_preproc=yes
a848cd7e 13869 ;;
ac1cb8d3 13870 no:yes:* )
a848cd7e
SC
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13883 (
13884 cat <<\_ASBOX
ac1cb8d3
VS
13885## ----------------------------------------- ##
13886## Report this to wx-dev@lists.wxwidgets.org ##
13887## ----------------------------------------- ##
a848cd7e
SC
13888_ASBOX
13889 ) |
13890 sed "s/^/$as_me: WARNING: /" >&2
13891 ;;
13892esac
13893echo "$as_me:$LINENO: checking for $ac_header" >&5
13894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13895if eval "test \"\${$as_ac_Header+set}\" = set"; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897else
ac1cb8d3 13898 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13899fi
13900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13902
13903fi
13904if test `eval echo '${'$as_ac_Header'}'` = yes; then
13905 cat >>confdefs.h <<_ACEOF
13906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13907_ACEOF
13908
13909fi
13910
13911done
13912
13913
13914case "${host}" in
13915 *-pc-os2_emx | *-pc-os2-emx )
13916 if test $ac_cv_header_langinfo_h = "yes"; then
13917 LIBS="$LIBS -lintl"
13918 fi
13919 ;;
13920esac
13921
13922if test "$wxUSE_GUI" = "yes"; then
13923 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13924
13925for ac_header in X11/Xlib.h
13926do
13927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13928if eval "test \"\${$as_ac_Header+set}\" = set"; then
13929 echo "$as_me:$LINENO: checking for $ac_header" >&5
13930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13931if eval "test \"\${$as_ac_Header+set}\" = set"; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933fi
13934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13936else
13937 # Is the header compilable?
13938echo "$as_me:$LINENO: checking $ac_header usability" >&5
13939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13940cat >conftest.$ac_ext <<_ACEOF
13941/* confdefs.h. */
13942_ACEOF
13943cat confdefs.h >>conftest.$ac_ext
13944cat >>conftest.$ac_ext <<_ACEOF
13945/* end confdefs.h. */
13946$ac_includes_default
13947#include <$ac_header>
13948_ACEOF
13949rm -f conftest.$ac_objext
13950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13951 (eval $ac_compile) 2>conftest.er1
a848cd7e 13952 ac_status=$?
ac1cb8d3
VS
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
a848cd7e
SC
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
ac1cb8d3
VS
13958 { ac_try='test -z "$ac_c_werror_flag"
13959 || test ! -s conftest.err'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_header_compiler=yes
13972else
13973 echo "$as_me: failed program was:" >&5
13974sed 's/^/| /' conftest.$ac_ext >&5
13975
13976ac_header_compiler=no
13977fi
ac1cb8d3 13978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13980echo "${ECHO_T}$ac_header_compiler" >&6
13981
13982# Is the header present?
13983echo "$as_me:$LINENO: checking $ac_header presence" >&5
13984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13985cat >conftest.$ac_ext <<_ACEOF
13986/* confdefs.h. */
13987_ACEOF
13988cat confdefs.h >>conftest.$ac_ext
13989cat >>conftest.$ac_ext <<_ACEOF
13990/* end confdefs.h. */
13991#include <$ac_header>
13992_ACEOF
13993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13995 ac_status=$?
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } >/dev/null; then
14001 if test -s conftest.err; then
14002 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14004 else
14005 ac_cpp_err=
14006 fi
14007else
14008 ac_cpp_err=yes
14009fi
14010if test -z "$ac_cpp_err"; then
14011 ac_header_preproc=yes
14012else
14013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016 ac_header_preproc=no
14017fi
14018rm -f conftest.err conftest.$ac_ext
14019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14020echo "${ECHO_T}$ac_header_preproc" >&6
14021
14022# So? What about this header?
ac1cb8d3
VS
14023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14024 yes:no: )
a848cd7e
SC
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14029 ac_header_preproc=yes
a848cd7e 14030 ;;
ac1cb8d3 14031 no:yes:* )
a848cd7e
SC
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14044 (
14045 cat <<\_ASBOX
ac1cb8d3
VS
14046## ----------------------------------------- ##
14047## Report this to wx-dev@lists.wxwidgets.org ##
14048## ----------------------------------------- ##
a848cd7e
SC
14049_ASBOX
14050 ) |
14051 sed "s/^/$as_me: WARNING: /" >&2
14052 ;;
14053esac
14054echo "$as_me:$LINENO: checking for $ac_header" >&5
14055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058else
ac1cb8d3 14059 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14060fi
14061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14063
14064fi
14065if test `eval echo '${'$as_ac_Header'}'` = yes; then
14066 cat >>confdefs.h <<_ACEOF
14067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14068_ACEOF
14069
14070fi
14071
14072done
14073
14074
14075for ac_header in X11/XKBlib.h
14076do
14077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14078echo "$as_me:$LINENO: checking for $ac_header" >&5
14079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14080if eval "test \"\${$as_ac_Header+set}\" = set"; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083 cat >conftest.$ac_ext <<_ACEOF
14084/* confdefs.h. */
14085_ACEOF
14086cat confdefs.h >>conftest.$ac_ext
14087cat >>conftest.$ac_ext <<_ACEOF
14088/* end confdefs.h. */
14089
14090 #if HAVE_X11_XLIB_H
14091 #include <X11/Xlib.h>
14092 #endif
14093
14094
14095#include <$ac_header>
14096_ACEOF
14097rm -f conftest.$ac_objext
14098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14099 (eval $ac_compile) 2>conftest.er1
a848cd7e 14100 ac_status=$?
ac1cb8d3
VS
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
a848cd7e
SC
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
ac1cb8d3
VS
14106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 eval "$as_ac_Header=yes"
14120else
14121 echo "$as_me: failed program was:" >&5
14122sed 's/^/| /' conftest.$ac_ext >&5
14123
14124eval "$as_ac_Header=no"
14125fi
ac1cb8d3 14126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14127fi
14128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14130if test `eval echo '${'$as_ac_Header'}'` = yes; then
14131 cat >>confdefs.h <<_ACEOF
14132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14133_ACEOF
14134
14135fi
14136
14137done
14138
14139 fi
14140fi
14141
14142
14143echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14144echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14145if test "${ac_cv_c_const+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147else
14148 cat >conftest.$ac_ext <<_ACEOF
14149/* confdefs.h. */
14150_ACEOF
14151cat confdefs.h >>conftest.$ac_ext
14152cat >>conftest.$ac_ext <<_ACEOF
14153/* end confdefs.h. */
14154
14155int
14156main ()
14157{
14158/* FIXME: Include the comments suggested by Paul. */
14159#ifndef __cplusplus
14160 /* Ultrix mips cc rejects this. */
14161 typedef int charset[2];
14162 const charset x;
14163 /* SunOS 4.1.1 cc rejects this. */
14164 char const *const *ccp;
14165 char **p;
14166 /* NEC SVR4.0.2 mips cc rejects this. */
14167 struct point {int x, y;};
14168 static struct point const zero = {0,0};
14169 /* AIX XL C 1.02.0.0 rejects this.
14170 It does not let you subtract one const X* pointer from another in
14171 an arm of an if-expression whose if-part is not a constant
14172 expression */
14173 const char *g = "string";
14174 ccp = &g + (g ? g-g : 0);
14175 /* HPUX 7.0 cc rejects these. */
14176 ++ccp;
14177 p = (char**) ccp;
14178 ccp = (char const *const *) p;
14179 { /* SCO 3.2v4 cc rejects this. */
14180 char *t;
14181 char const *s = 0 ? (char *) 0 : (char const *) 0;
14182
14183 *t++ = 0;
14184 }
14185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14186 int x[] = {25, 17};
14187 const int *foo = &x[0];
14188 ++foo;
14189 }
14190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14191 typedef const int *iptr;
14192 iptr p = 0;
14193 ++p;
14194 }
14195 { /* AIX XL C 1.02.0.0 rejects this saying
14196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14197 struct s { int j; const int *ap[3]; };
14198 struct s *b; b->j = 5;
14199 }
14200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14201 const int foo = 10;
14202 }
14203#endif
14204
14205 ;
14206 return 0;
14207}
14208_ACEOF
14209rm -f conftest.$ac_objext
14210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14211 (eval $ac_compile) 2>conftest.er1
a848cd7e 14212 ac_status=$?
ac1cb8d3
VS
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
a848cd7e
SC
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
ac1cb8d3
VS
14218 { ac_try='test -z "$ac_c_werror_flag"
14219 || test ! -s conftest.err'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; } &&
14225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14231 ac_cv_c_const=yes
14232else
14233 echo "$as_me: failed program was:" >&5
14234sed 's/^/| /' conftest.$ac_ext >&5
14235
14236ac_cv_c_const=no
14237fi
ac1cb8d3 14238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14239fi
14240echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14241echo "${ECHO_T}$ac_cv_c_const" >&6
14242if test $ac_cv_c_const = no; then
14243
14244cat >>confdefs.h <<\_ACEOF
14245#define const
14246_ACEOF
14247
14248fi
14249
14250echo "$as_me:$LINENO: checking for inline" >&5
14251echo $ECHO_N "checking for inline... $ECHO_C" >&6
14252if test "${ac_cv_c_inline+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254else
14255 ac_cv_c_inline=no
14256for ac_kw in inline __inline__ __inline; do
14257 cat >conftest.$ac_ext <<_ACEOF
14258/* confdefs.h. */
14259_ACEOF
14260cat confdefs.h >>conftest.$ac_ext
14261cat >>conftest.$ac_ext <<_ACEOF
14262/* end confdefs.h. */
14263#ifndef __cplusplus
14264typedef int foo_t;
14265static $ac_kw foo_t static_foo () {return 0; }
14266$ac_kw foo_t foo () {return 0; }
14267#endif
14268
14269_ACEOF
14270rm -f conftest.$ac_objext
14271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14272 (eval $ac_compile) 2>conftest.er1
a848cd7e 14273 ac_status=$?
ac1cb8d3
VS
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
a848cd7e
SC
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
ac1cb8d3
VS
14279 { ac_try='test -z "$ac_c_werror_flag"
14280 || test ! -s conftest.err'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 ac_cv_c_inline=$ac_kw; break
14293else
14294 echo "$as_me: failed program was:" >&5
14295sed 's/^/| /' conftest.$ac_ext >&5
14296
14297fi
ac1cb8d3 14298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14299done
14300
14301fi
14302echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14303echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14304
14305
a848cd7e
SC
14306case $ac_cv_c_inline in
14307 inline | yes) ;;
ac1cb8d3
VS
14308 *)
14309 case $ac_cv_c_inline in
14310 no) ac_val=;;
14311 *) ac_val=$ac_cv_c_inline;;
14312 esac
14313 cat >>confdefs.h <<_ACEOF
14314#ifndef __cplusplus
14315#define inline $ac_val
14316#endif
de59c161 14317_ACEOF
ac1cb8d3 14318 ;;
a848cd7e
SC
14319esac
14320
14321
14322echo "$as_me:$LINENO: checking for char" >&5
14323echo $ECHO_N "checking for char... $ECHO_C" >&6
14324if test "${ac_cv_type_char+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326else
14327 cat >conftest.$ac_ext <<_ACEOF
14328/* confdefs.h. */
14329_ACEOF
14330cat confdefs.h >>conftest.$ac_ext
14331cat >>conftest.$ac_ext <<_ACEOF
14332/* end confdefs.h. */
14333$ac_includes_default
14334int
14335main ()
14336{
14337if ((char *) 0)
14338 return 0;
14339if (sizeof (char))
14340 return 0;
14341 ;
14342 return 0;
14343}
14344_ACEOF
14345rm -f conftest.$ac_objext
14346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14347 (eval $ac_compile) 2>conftest.er1
a848cd7e 14348 ac_status=$?
ac1cb8d3
VS
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
a848cd7e
SC
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
ac1cb8d3
VS
14354 { ac_try='test -z "$ac_c_werror_flag"
14355 || test ! -s conftest.err'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367 ac_cv_type_char=yes
14368else
14369 echo "$as_me: failed program was:" >&5
14370sed 's/^/| /' conftest.$ac_ext >&5
14371
14372ac_cv_type_char=no
14373fi
ac1cb8d3 14374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14375fi
14376echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14377echo "${ECHO_T}$ac_cv_type_char" >&6
14378
14379echo "$as_me:$LINENO: checking size of char" >&5
14380echo $ECHO_N "checking size of char... $ECHO_C" >&6
14381if test "${ac_cv_sizeof_char+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14383else
14384 if test "$ac_cv_type_char" = yes; then
14385 # The cast to unsigned long works around a bug in the HP C Compiler
14386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14388 # This bug is HP SR number 8606223364.
14389 if test "$cross_compiling" = yes; then
14390 # Depending upon the size, compute the lo and hi bounds.
14391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397$ac_includes_default
14398int
14399main ()
14400{
14401static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14402test_array [0] = 0
14403
14404 ;
14405 return 0;
14406}
14407_ACEOF
14408rm -f conftest.$ac_objext
14409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14410 (eval $ac_compile) 2>conftest.er1
a848cd7e 14411 ac_status=$?
ac1cb8d3
VS
14412 grep -v '^ *+' conftest.er1 >conftest.err
14413 rm -f conftest.er1
14414 cat conftest.err >&5
a848cd7e
SC
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
ac1cb8d3
VS
14417 { ac_try='test -z "$ac_c_werror_flag"
14418 || test ! -s conftest.err'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_lo=0 ac_mid=0
14431 while :; do
14432 cat >conftest.$ac_ext <<_ACEOF
14433/* confdefs.h. */
14434_ACEOF
14435cat confdefs.h >>conftest.$ac_ext
14436cat >>conftest.$ac_ext <<_ACEOF
14437/* end confdefs.h. */
14438$ac_includes_default
14439int
14440main ()
14441{
14442static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14443test_array [0] = 0
14444
14445 ;
14446 return 0;
14447}
14448_ACEOF
14449rm -f conftest.$ac_objext
14450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14451 (eval $ac_compile) 2>conftest.er1
a848cd7e 14452 ac_status=$?
ac1cb8d3
VS
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
a848cd7e
SC
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
ac1cb8d3
VS
14458 { ac_try='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_hi=$ac_mid; break
14472else
14473 echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14477 if test $ac_lo -le $ac_mid; then
14478 ac_lo= ac_hi=
14479 break
14480 fi
14481 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14482fi
ac1cb8d3 14483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14484 done
14485else
14486 echo "$as_me: failed program was:" >&5
14487sed 's/^/| /' conftest.$ac_ext >&5
14488
14489cat >conftest.$ac_ext <<_ACEOF
14490/* confdefs.h. */
14491_ACEOF
14492cat confdefs.h >>conftest.$ac_ext
14493cat >>conftest.$ac_ext <<_ACEOF
14494/* end confdefs.h. */
14495$ac_includes_default
14496int
14497main ()
14498{
14499static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14500test_array [0] = 0
14501
14502 ;
14503 return 0;
14504}
14505_ACEOF
14506rm -f conftest.$ac_objext
14507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14508 (eval $ac_compile) 2>conftest.er1
a848cd7e 14509 ac_status=$?
ac1cb8d3
VS
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
a848cd7e
SC
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
ac1cb8d3
VS
14515 { ac_try='test -z "$ac_c_werror_flag"
14516 || test ! -s conftest.err'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_hi=-1 ac_mid=-1
14529 while :; do
14530 cat >conftest.$ac_ext <<_ACEOF
14531/* confdefs.h. */
14532_ACEOF
14533cat confdefs.h >>conftest.$ac_ext
14534cat >>conftest.$ac_ext <<_ACEOF
14535/* end confdefs.h. */
14536$ac_includes_default
14537int
14538main ()
14539{
14540static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14541test_array [0] = 0
14542
14543 ;
14544 return 0;
14545}
14546_ACEOF
14547rm -f conftest.$ac_objext
14548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14549 (eval $ac_compile) 2>conftest.er1
a848cd7e 14550 ac_status=$?
ac1cb8d3
VS
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -f conftest.er1
14553 cat conftest.err >&5
a848cd7e
SC
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
ac1cb8d3
VS
14556 { ac_try='test -z "$ac_c_werror_flag"
14557 || test ! -s conftest.err'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_lo=$ac_mid; break
14570else
14571 echo "$as_me: failed program was:" >&5
14572sed 's/^/| /' conftest.$ac_ext >&5
14573
14574ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14575 if test $ac_mid -le $ac_hi; then
14576 ac_lo= ac_hi=
14577 break
14578 fi
14579 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14580fi
ac1cb8d3 14581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14582 done
14583else
14584 echo "$as_me: failed program was:" >&5
14585sed 's/^/| /' conftest.$ac_ext >&5
14586
14587ac_lo= ac_hi=
14588fi
ac1cb8d3 14589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14590fi
ac1cb8d3 14591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14592# Binary search between lo and hi bounds.
14593while test "x$ac_lo" != "x$ac_hi"; do
14594 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14595 cat >conftest.$ac_ext <<_ACEOF
14596/* confdefs.h. */
14597_ACEOF
14598cat confdefs.h >>conftest.$ac_ext
14599cat >>conftest.$ac_ext <<_ACEOF
14600/* end confdefs.h. */
14601$ac_includes_default
14602int
14603main ()
14604{
14605static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14606test_array [0] = 0
14607
14608 ;
14609 return 0;
14610}
14611_ACEOF
14612rm -f conftest.$ac_objext
14613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14614 (eval $ac_compile) 2>conftest.er1
a848cd7e 14615 ac_status=$?
ac1cb8d3
VS
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
a848cd7e
SC
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
ac1cb8d3
VS
14621 { ac_try='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_hi=$ac_mid
14635else
14636 echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
14639ac_lo=`expr '(' $ac_mid ')' + 1`
14640fi
ac1cb8d3 14641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14642done
14643case $ac_lo in
14644?*) ac_cv_sizeof_char=$ac_lo;;
14645'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14646See \`config.log' for more details." >&5
14647echo "$as_me: error: cannot compute sizeof (char), 77
14648See \`config.log' for more details." >&2;}
14649 { (exit 1); exit 1; }; } ;;
14650esac
14651else
14652 if test "$cross_compiling" = yes; then
14653 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14654See \`config.log' for more details." >&5
14655echo "$as_me: error: cannot run test program while cross compiling
14656See \`config.log' for more details." >&2;}
14657 { (exit 1); exit 1; }; }
14658else
14659 cat >conftest.$ac_ext <<_ACEOF
14660/* confdefs.h. */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h. */
14665$ac_includes_default
14666long longval () { return (long) (sizeof (char)); }
14667unsigned long ulongval () { return (long) (sizeof (char)); }
14668#include <stdio.h>
14669#include <stdlib.h>
14670int
14671main ()
14672{
14673
14674 FILE *f = fopen ("conftest.val", "w");
14675 if (! f)
14676 exit (1);
14677 if (((long) (sizeof (char))) < 0)
14678 {
14679 long i = longval ();
14680 if (i != ((long) (sizeof (char))))
14681 exit (1);
14682 fprintf (f, "%ld\n", i);
14683 }
14684 else
14685 {
14686 unsigned long i = ulongval ();
14687 if (i != ((long) (sizeof (char))))
14688 exit (1);
14689 fprintf (f, "%lu\n", i);
14690 }
14691 exit (ferror (f) || fclose (f) != 0);
14692
14693 ;
14694 return 0;
14695}
14696_ACEOF
14697rm -f conftest$ac_exeext
14698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14699 (eval $ac_link) 2>&5
14700 ac_status=$?
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14708 ac_cv_sizeof_char=`cat conftest.val`
14709else
14710 echo "$as_me: program exited with status $ac_status" >&5
14711echo "$as_me: failed program was:" >&5
14712sed 's/^/| /' conftest.$ac_ext >&5
14713
14714( exit $ac_status )
14715{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14716See \`config.log' for more details." >&5
14717echo "$as_me: error: cannot compute sizeof (char), 77
14718See \`config.log' for more details." >&2;}
14719 { (exit 1); exit 1; }; }
14720fi
ac1cb8d3 14721rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14722fi
14723fi
14724rm -f conftest.val
14725else
14726 ac_cv_sizeof_char=0
14727fi
14728fi
14729echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14730echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14731cat >>confdefs.h <<_ACEOF
14732#define SIZEOF_CHAR $ac_cv_sizeof_char
14733_ACEOF
14734
14735
14736echo "$as_me:$LINENO: checking for short" >&5
14737echo $ECHO_N "checking for short... $ECHO_C" >&6
14738if test "${ac_cv_type_short+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14740else
14741 cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h. */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
14747$ac_includes_default
14748int
14749main ()
14750{
14751if ((short *) 0)
14752 return 0;
14753if (sizeof (short))
14754 return 0;
14755 ;
14756 return 0;
14757}
14758_ACEOF
14759rm -f conftest.$ac_objext
14760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14761 (eval $ac_compile) 2>conftest.er1
a848cd7e 14762 ac_status=$?
ac1cb8d3
VS
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
a848cd7e
SC
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
ac1cb8d3
VS
14768 { ac_try='test -z "$ac_c_werror_flag"
14769 || test ! -s conftest.err'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_cv_type_short=yes
14782else
14783 echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
14786ac_cv_type_short=no
14787fi
ac1cb8d3 14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14789fi
14790echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14791echo "${ECHO_T}$ac_cv_type_short" >&6
14792
14793echo "$as_me:$LINENO: checking size of short" >&5
14794echo $ECHO_N "checking size of short... $ECHO_C" >&6
14795if test "${ac_cv_sizeof_short+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14797else
14798 if test "$ac_cv_type_short" = yes; then
14799 # The cast to unsigned long works around a bug in the HP C Compiler
14800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14802 # This bug is HP SR number 8606223364.
14803 if test "$cross_compiling" = yes; then
14804 # Depending upon the size, compute the lo and hi bounds.
14805cat >conftest.$ac_ext <<_ACEOF
14806/* confdefs.h. */
14807_ACEOF
14808cat confdefs.h >>conftest.$ac_ext
14809cat >>conftest.$ac_ext <<_ACEOF
14810/* end confdefs.h. */
14811$ac_includes_default
14812int
14813main ()
14814{
14815static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14816test_array [0] = 0
14817
14818 ;
14819 return 0;
14820}
14821_ACEOF
14822rm -f conftest.$ac_objext
14823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14824 (eval $ac_compile) 2>conftest.er1
a848cd7e 14825 ac_status=$?
ac1cb8d3
VS
14826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
a848cd7e
SC
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
ac1cb8d3
VS
14831 { ac_try='test -z "$ac_c_werror_flag"
14832 || test ! -s conftest.err'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 ac_lo=0 ac_mid=0
14845 while :; do
14846 cat >conftest.$ac_ext <<_ACEOF
14847/* confdefs.h. */
14848_ACEOF
14849cat confdefs.h >>conftest.$ac_ext
14850cat >>conftest.$ac_ext <<_ACEOF
14851/* end confdefs.h. */
14852$ac_includes_default
14853int
14854main ()
14855{
14856static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14857test_array [0] = 0
14858
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14865 (eval $ac_compile) 2>conftest.er1
a848cd7e 14866 ac_status=$?
ac1cb8d3
VS
14867 grep -v '^ *+' conftest.er1 >conftest.err
14868 rm -f conftest.er1
14869 cat conftest.err >&5
a848cd7e
SC
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } &&
ac1cb8d3
VS
14872 { ac_try='test -z "$ac_c_werror_flag"
14873 || test ! -s conftest.err'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } &&
14879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_hi=$ac_mid; break
14886else
14887 echo "$as_me: failed program was:" >&5
14888sed 's/^/| /' conftest.$ac_ext >&5
14889
14890ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14891 if test $ac_lo -le $ac_mid; then
14892 ac_lo= ac_hi=
14893 break
14894 fi
14895 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14896fi
ac1cb8d3 14897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14898 done
14899else
14900 echo "$as_me: failed program was:" >&5
14901sed 's/^/| /' conftest.$ac_ext >&5
14902
14903cat >conftest.$ac_ext <<_ACEOF
14904/* confdefs.h. */
14905_ACEOF
14906cat confdefs.h >>conftest.$ac_ext
14907cat >>conftest.$ac_ext <<_ACEOF
14908/* end confdefs.h. */
14909$ac_includes_default
14910int
14911main ()
14912{
14913static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14914test_array [0] = 0
14915
14916 ;
14917 return 0;
14918}
14919_ACEOF
14920rm -f conftest.$ac_objext
14921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14922 (eval $ac_compile) 2>conftest.er1
a848cd7e 14923 ac_status=$?
ac1cb8d3
VS
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
a848cd7e
SC
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
ac1cb8d3
VS
14929 { ac_try='test -z "$ac_c_werror_flag"
14930 || test ! -s conftest.err'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 ac_hi=-1 ac_mid=-1
14943 while :; do
14944 cat >conftest.$ac_ext <<_ACEOF
14945/* confdefs.h. */
14946_ACEOF
14947cat confdefs.h >>conftest.$ac_ext
14948cat >>conftest.$ac_ext <<_ACEOF
14949/* end confdefs.h. */
14950$ac_includes_default
14951int
14952main ()
14953{
14954static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14955test_array [0] = 0
14956
14957 ;
14958 return 0;
14959}
14960_ACEOF
14961rm -f conftest.$ac_objext
14962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14963 (eval $ac_compile) 2>conftest.er1
a848cd7e 14964 ac_status=$?
ac1cb8d3
VS
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
a848cd7e
SC
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
ac1cb8d3
VS
14970 { ac_try='test -z "$ac_c_werror_flag"
14971 || test ! -s conftest.err'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_lo=$ac_mid; break
14984else
14985 echo "$as_me: failed program was:" >&5
14986sed 's/^/| /' conftest.$ac_ext >&5
14987
14988ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14989 if test $ac_mid -le $ac_hi; then
14990 ac_lo= ac_hi=
14991 break
14992 fi
14993 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14994fi
ac1cb8d3 14995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14996 done
14997else
14998 echo "$as_me: failed program was:" >&5
14999sed 's/^/| /' conftest.$ac_ext >&5
15000
15001ac_lo= ac_hi=
15002fi
ac1cb8d3 15003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15004fi
ac1cb8d3 15005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15006# Binary search between lo and hi bounds.
15007while test "x$ac_lo" != "x$ac_hi"; do
15008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15009 cat >conftest.$ac_ext <<_ACEOF
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015$ac_includes_default
15016int
15017main ()
15018{
15019static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15020test_array [0] = 0
15021
15022 ;
15023 return 0;
15024}
15025_ACEOF
15026rm -f conftest.$ac_objext
15027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15028 (eval $ac_compile) 2>conftest.er1
a848cd7e 15029 ac_status=$?
ac1cb8d3
VS
15030 grep -v '^ *+' conftest.er1 >conftest.err
15031 rm -f conftest.er1
15032 cat conftest.err >&5
a848cd7e
SC
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
ac1cb8d3
VS
15035 { ac_try='test -z "$ac_c_werror_flag"
15036 || test ! -s conftest.err'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; } &&
15042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 ac_hi=$ac_mid
15049else
15050 echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053ac_lo=`expr '(' $ac_mid ')' + 1`
15054fi
ac1cb8d3 15055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15056done
15057case $ac_lo in
15058?*) ac_cv_sizeof_short=$ac_lo;;
15059'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15060See \`config.log' for more details." >&5
15061echo "$as_me: error: cannot compute sizeof (short), 77
15062See \`config.log' for more details." >&2;}
15063 { (exit 1); exit 1; }; } ;;
15064esac
15065else
15066 if test "$cross_compiling" = yes; then
15067 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15068See \`config.log' for more details." >&5
15069echo "$as_me: error: cannot run test program while cross compiling
15070See \`config.log' for more details." >&2;}
15071 { (exit 1); exit 1; }; }
15072else
15073 cat >conftest.$ac_ext <<_ACEOF
15074/* confdefs.h. */
15075_ACEOF
15076cat confdefs.h >>conftest.$ac_ext
15077cat >>conftest.$ac_ext <<_ACEOF
15078/* end confdefs.h. */
15079$ac_includes_default
15080long longval () { return (long) (sizeof (short)); }
15081unsigned long ulongval () { return (long) (sizeof (short)); }
15082#include <stdio.h>
15083#include <stdlib.h>
15084int
15085main ()
15086{
15087
15088 FILE *f = fopen ("conftest.val", "w");
15089 if (! f)
15090 exit (1);
15091 if (((long) (sizeof (short))) < 0)
15092 {
15093 long i = longval ();
15094 if (i != ((long) (sizeof (short))))
15095 exit (1);
15096 fprintf (f, "%ld\n", i);
15097 }
15098 else
15099 {
15100 unsigned long i = ulongval ();
15101 if (i != ((long) (sizeof (short))))
15102 exit (1);
15103 fprintf (f, "%lu\n", i);
15104 }
15105 exit (ferror (f) || fclose (f) != 0);
15106
15107 ;
15108 return 0;
15109}
15110_ACEOF
15111rm -f conftest$ac_exeext
15112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15113 (eval $ac_link) 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 ac_cv_sizeof_short=`cat conftest.val`
15123else
15124 echo "$as_me: program exited with status $ac_status" >&5
15125echo "$as_me: failed program was:" >&5
15126sed 's/^/| /' conftest.$ac_ext >&5
15127
15128( exit $ac_status )
15129{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15130See \`config.log' for more details." >&5
15131echo "$as_me: error: cannot compute sizeof (short), 77
15132See \`config.log' for more details." >&2;}
15133 { (exit 1); exit 1; }; }
15134fi
ac1cb8d3 15135rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15136fi
15137fi
15138rm -f conftest.val
15139else
15140 ac_cv_sizeof_short=0
15141fi
15142fi
15143echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15144echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15145cat >>confdefs.h <<_ACEOF
15146#define SIZEOF_SHORT $ac_cv_sizeof_short
15147_ACEOF
15148
15149
15150echo "$as_me:$LINENO: checking for void *" >&5
15151echo $ECHO_N "checking for void *... $ECHO_C" >&6
15152if test "${ac_cv_type_void_p+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154else
15155 cat >conftest.$ac_ext <<_ACEOF
15156/* confdefs.h. */
15157_ACEOF
15158cat confdefs.h >>conftest.$ac_ext
15159cat >>conftest.$ac_ext <<_ACEOF
15160/* end confdefs.h. */
15161$ac_includes_default
15162int
15163main ()
15164{
15165if ((void * *) 0)
15166 return 0;
15167if (sizeof (void *))
15168 return 0;
15169 ;
15170 return 0;
15171}
15172_ACEOF
15173rm -f conftest.$ac_objext
15174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15175 (eval $ac_compile) 2>conftest.er1
a848cd7e 15176 ac_status=$?
ac1cb8d3
VS
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
a848cd7e
SC
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
ac1cb8d3
VS
15182 { ac_try='test -z "$ac_c_werror_flag"
15183 || test ! -s conftest.err'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; } &&
15189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 ac_cv_type_void_p=yes
15196else
15197 echo "$as_me: failed program was:" >&5
15198sed 's/^/| /' conftest.$ac_ext >&5
15199
15200ac_cv_type_void_p=no
15201fi
ac1cb8d3 15202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15203fi
15204echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15205echo "${ECHO_T}$ac_cv_type_void_p" >&6
15206
15207echo "$as_me:$LINENO: checking size of void *" >&5
15208echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15209if test "${ac_cv_sizeof_void_p+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15211else
15212 if test "$ac_cv_type_void_p" = yes; then
15213 # The cast to unsigned long works around a bug in the HP C Compiler
15214 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15215 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15216 # This bug is HP SR number 8606223364.
15217 if test "$cross_compiling" = yes; then
15218 # Depending upon the size, compute the lo and hi bounds.
15219cat >conftest.$ac_ext <<_ACEOF
15220/* confdefs.h. */
15221_ACEOF
15222cat confdefs.h >>conftest.$ac_ext
15223cat >>conftest.$ac_ext <<_ACEOF
15224/* end confdefs.h. */
15225$ac_includes_default
15226int
15227main ()
15228{
15229static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15230test_array [0] = 0
15231
15232 ;
15233 return 0;
15234}
15235_ACEOF
15236rm -f conftest.$ac_objext
15237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15238 (eval $ac_compile) 2>conftest.er1
a848cd7e 15239 ac_status=$?
ac1cb8d3
VS
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
a848cd7e
SC
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
ac1cb8d3
VS
15245 { ac_try='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_lo=0 ac_mid=0
15259 while :; do
15260 cat >conftest.$ac_ext <<_ACEOF
15261/* confdefs.h. */
15262_ACEOF
15263cat confdefs.h >>conftest.$ac_ext
15264cat >>conftest.$ac_ext <<_ACEOF
15265/* end confdefs.h. */
15266$ac_includes_default
15267int
15268main ()
15269{
15270static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15271test_array [0] = 0
15272
15273 ;
15274 return 0;
15275}
15276_ACEOF
15277rm -f conftest.$ac_objext
15278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15279 (eval $ac_compile) 2>conftest.er1
a848cd7e 15280 ac_status=$?
ac1cb8d3
VS
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
a848cd7e
SC
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
ac1cb8d3
VS
15286 { ac_try='test -z "$ac_c_werror_flag"
15287 || test ! -s conftest.err'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; } &&
15293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 ac_hi=$ac_mid; break
15300else
15301 echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
15304ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15305 if test $ac_lo -le $ac_mid; then
15306 ac_lo= ac_hi=
15307 break
15308 fi
15309 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15310fi
ac1cb8d3 15311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15312 done
15313else
15314 echo "$as_me: failed program was:" >&5
15315sed 's/^/| /' conftest.$ac_ext >&5
15316
15317cat >conftest.$ac_ext <<_ACEOF
15318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
15323$ac_includes_default
15324int
15325main ()
15326{
15327static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15328test_array [0] = 0
15329
15330 ;
15331 return 0;
15332}
15333_ACEOF
15334rm -f conftest.$ac_objext
15335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15336 (eval $ac_compile) 2>conftest.er1
a848cd7e 15337 ac_status=$?
ac1cb8d3
VS
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
a848cd7e
SC
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
ac1cb8d3
VS
15343 { ac_try='test -z "$ac_c_werror_flag"
15344 || test ! -s conftest.err'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; } &&
15350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_hi=-1 ac_mid=-1
15357 while :; do
15358 cat >conftest.$ac_ext <<_ACEOF
15359/* confdefs.h. */
15360_ACEOF
15361cat confdefs.h >>conftest.$ac_ext
15362cat >>conftest.$ac_ext <<_ACEOF
15363/* end confdefs.h. */
15364$ac_includes_default
15365int
15366main ()
15367{
15368static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15369test_array [0] = 0
15370
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15377 (eval $ac_compile) 2>conftest.er1
a848cd7e 15378 ac_status=$?
ac1cb8d3
VS
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
a848cd7e
SC
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
ac1cb8d3
VS
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_lo=$ac_mid; break
15398else
15399 echo "$as_me: failed program was:" >&5
15400sed 's/^/| /' conftest.$ac_ext >&5
15401
15402ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15403 if test $ac_mid -le $ac_hi; then
15404 ac_lo= ac_hi=
15405 break
15406 fi
15407 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15408fi
ac1cb8d3 15409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15410 done
15411else
15412 echo "$as_me: failed program was:" >&5
15413sed 's/^/| /' conftest.$ac_ext >&5
15414
15415ac_lo= ac_hi=
15416fi
ac1cb8d3 15417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15418fi
ac1cb8d3 15419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15420# Binary search between lo and hi bounds.
15421while test "x$ac_lo" != "x$ac_hi"; do
15422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15423 cat >conftest.$ac_ext <<_ACEOF
15424/* confdefs.h. */
15425_ACEOF
15426cat confdefs.h >>conftest.$ac_ext
15427cat >>conftest.$ac_ext <<_ACEOF
15428/* end confdefs.h. */
15429$ac_includes_default
15430int
15431main ()
15432{
15433static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15434test_array [0] = 0
15435
15436 ;
15437 return 0;
15438}
15439_ACEOF
15440rm -f conftest.$ac_objext
15441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15442 (eval $ac_compile) 2>conftest.er1
a848cd7e 15443 ac_status=$?
ac1cb8d3
VS
15444 grep -v '^ *+' conftest.er1 >conftest.err
15445 rm -f conftest.er1
15446 cat conftest.err >&5
a848cd7e
SC
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
ac1cb8d3
VS
15449 { ac_try='test -z "$ac_c_werror_flag"
15450 || test ! -s conftest.err'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; } &&
15456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 ac_hi=$ac_mid
15463else
15464 echo "$as_me: failed program was:" >&5
15465sed 's/^/| /' conftest.$ac_ext >&5
15466
15467ac_lo=`expr '(' $ac_mid ')' + 1`
15468fi
ac1cb8d3 15469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15470done
15471case $ac_lo in
15472?*) ac_cv_sizeof_void_p=$ac_lo;;
15473'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15474See \`config.log' for more details." >&5
15475echo "$as_me: error: cannot compute sizeof (void *), 77
15476See \`config.log' for more details." >&2;}
15477 { (exit 1); exit 1; }; } ;;
15478esac
15479else
15480 if test "$cross_compiling" = yes; then
15481 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15482See \`config.log' for more details." >&5
15483echo "$as_me: error: cannot run test program while cross compiling
15484See \`config.log' for more details." >&2;}
15485 { (exit 1); exit 1; }; }
15486else
15487 cat >conftest.$ac_ext <<_ACEOF
15488/* confdefs.h. */
15489_ACEOF
15490cat confdefs.h >>conftest.$ac_ext
15491cat >>conftest.$ac_ext <<_ACEOF
15492/* end confdefs.h. */
15493$ac_includes_default
15494long longval () { return (long) (sizeof (void *)); }
15495unsigned long ulongval () { return (long) (sizeof (void *)); }
15496#include <stdio.h>
15497#include <stdlib.h>
15498int
15499main ()
15500{
15501
15502 FILE *f = fopen ("conftest.val", "w");
15503 if (! f)
15504 exit (1);
15505 if (((long) (sizeof (void *))) < 0)
15506 {
15507 long i = longval ();
15508 if (i != ((long) (sizeof (void *))))
15509 exit (1);
15510 fprintf (f, "%ld\n", i);
15511 }
15512 else
15513 {
15514 unsigned long i = ulongval ();
15515 if (i != ((long) (sizeof (void *))))
15516 exit (1);
15517 fprintf (f, "%lu\n", i);
15518 }
15519 exit (ferror (f) || fclose (f) != 0);
15520
15521 ;
15522 return 0;
15523}
15524_ACEOF
15525rm -f conftest$ac_exeext
15526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15527 (eval $ac_link) 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_cv_sizeof_void_p=`cat conftest.val`
15537else
15538 echo "$as_me: program exited with status $ac_status" >&5
15539echo "$as_me: failed program was:" >&5
15540sed 's/^/| /' conftest.$ac_ext >&5
15541
15542( exit $ac_status )
15543{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15544See \`config.log' for more details." >&5
15545echo "$as_me: error: cannot compute sizeof (void *), 77
15546See \`config.log' for more details." >&2;}
15547 { (exit 1); exit 1; }; }
15548fi
ac1cb8d3 15549rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15550fi
15551fi
15552rm -f conftest.val
15553else
15554 ac_cv_sizeof_void_p=0
15555fi
15556fi
15557echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15558echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15559cat >>confdefs.h <<_ACEOF
15560#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15561_ACEOF
15562
15563
15564echo "$as_me:$LINENO: checking for int" >&5
15565echo $ECHO_N "checking for int... $ECHO_C" >&6
15566if test "${ac_cv_type_int+set}" = set; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15568else
15569 cat >conftest.$ac_ext <<_ACEOF
15570/* confdefs.h. */
15571_ACEOF
15572cat confdefs.h >>conftest.$ac_ext
15573cat >>conftest.$ac_ext <<_ACEOF
15574/* end confdefs.h. */
15575$ac_includes_default
15576int
15577main ()
15578{
15579if ((int *) 0)
15580 return 0;
15581if (sizeof (int))
15582 return 0;
15583 ;
15584 return 0;
15585}
15586_ACEOF
15587rm -f conftest.$ac_objext
15588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15589 (eval $ac_compile) 2>conftest.er1
a848cd7e 15590 ac_status=$?
ac1cb8d3
VS
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
a848cd7e
SC
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
ac1cb8d3
VS
15596 { ac_try='test -z "$ac_c_werror_flag"
15597 || test ! -s conftest.err'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; } &&
15603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_type_int=yes
15610else
15611 echo "$as_me: failed program was:" >&5
15612sed 's/^/| /' conftest.$ac_ext >&5
15613
15614ac_cv_type_int=no
15615fi
ac1cb8d3 15616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15617fi
15618echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15619echo "${ECHO_T}$ac_cv_type_int" >&6
15620
15621echo "$as_me:$LINENO: checking size of int" >&5
15622echo $ECHO_N "checking size of int... $ECHO_C" >&6
15623if test "${ac_cv_sizeof_int+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625else
15626 if test "$ac_cv_type_int" = yes; then
15627 # The cast to unsigned long works around a bug in the HP C Compiler
15628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15630 # This bug is HP SR number 8606223364.
15631 if test "$cross_compiling" = yes; then
15632 # Depending upon the size, compute the lo and hi bounds.
15633cat >conftest.$ac_ext <<_ACEOF
15634/* confdefs.h. */
15635_ACEOF
15636cat confdefs.h >>conftest.$ac_ext
15637cat >>conftest.$ac_ext <<_ACEOF
15638/* end confdefs.h. */
15639$ac_includes_default
15640int
15641main ()
15642{
15643static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15644test_array [0] = 0
15645
15646 ;
15647 return 0;
15648}
15649_ACEOF
15650rm -f conftest.$ac_objext
15651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15652 (eval $ac_compile) 2>conftest.er1
a848cd7e 15653 ac_status=$?
ac1cb8d3
VS
15654 grep -v '^ *+' conftest.er1 >conftest.err
15655 rm -f conftest.er1
15656 cat conftest.err >&5
a848cd7e
SC
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
ac1cb8d3
VS
15659 { ac_try='test -z "$ac_c_werror_flag"
15660 || test ! -s conftest.err'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; } &&
15666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_lo=0 ac_mid=0
15673 while :; do
15674 cat >conftest.$ac_ext <<_ACEOF
15675/* confdefs.h. */
15676_ACEOF
15677cat confdefs.h >>conftest.$ac_ext
15678cat >>conftest.$ac_ext <<_ACEOF
15679/* end confdefs.h. */
15680$ac_includes_default
15681int
15682main ()
15683{
15684static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15685test_array [0] = 0
15686
15687 ;
15688 return 0;
15689}
15690_ACEOF
15691rm -f conftest.$ac_objext
15692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15693 (eval $ac_compile) 2>conftest.er1
a848cd7e 15694 ac_status=$?
ac1cb8d3
VS
15695 grep -v '^ *+' conftest.er1 >conftest.err
15696 rm -f conftest.er1
15697 cat conftest.err >&5
a848cd7e
SC
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
ac1cb8d3
VS
15700 { ac_try='test -z "$ac_c_werror_flag"
15701 || test ! -s conftest.err'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; } &&
15707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 ac_hi=$ac_mid; break
15714else
15715 echo "$as_me: failed program was:" >&5
15716sed 's/^/| /' conftest.$ac_ext >&5
15717
15718ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15719 if test $ac_lo -le $ac_mid; then
15720 ac_lo= ac_hi=
15721 break
15722 fi
15723 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15724fi
ac1cb8d3 15725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15726 done
15727else
15728 echo "$as_me: failed program was:" >&5
15729sed 's/^/| /' conftest.$ac_ext >&5
15730
15731cat >conftest.$ac_ext <<_ACEOF
15732/* confdefs.h. */
15733_ACEOF
15734cat confdefs.h >>conftest.$ac_ext
15735cat >>conftest.$ac_ext <<_ACEOF
15736/* end confdefs.h. */
15737$ac_includes_default
15738int
15739main ()
15740{
15741static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15742test_array [0] = 0
15743
15744 ;
15745 return 0;
15746}
15747_ACEOF
15748rm -f conftest.$ac_objext
15749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15750 (eval $ac_compile) 2>conftest.er1
a848cd7e 15751 ac_status=$?
ac1cb8d3
VS
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
a848cd7e
SC
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
ac1cb8d3
VS
15757 { ac_try='test -z "$ac_c_werror_flag"
15758 || test ! -s conftest.err'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15770 ac_hi=-1 ac_mid=-1
15771 while :; do
15772 cat >conftest.$ac_ext <<_ACEOF
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
15778$ac_includes_default
15779int
15780main ()
15781{
15782static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15783test_array [0] = 0
15784
15785 ;
15786 return 0;
15787}
15788_ACEOF
15789rm -f conftest.$ac_objext
15790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15791 (eval $ac_compile) 2>conftest.er1
a848cd7e 15792 ac_status=$?
ac1cb8d3
VS
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
a848cd7e
SC
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
ac1cb8d3
VS
15798 { ac_try='test -z "$ac_c_werror_flag"
15799 || test ! -s conftest.err'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_lo=$ac_mid; break
15812else
15813 echo "$as_me: failed program was:" >&5
15814sed 's/^/| /' conftest.$ac_ext >&5
15815
15816ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15817 if test $ac_mid -le $ac_hi; then
15818 ac_lo= ac_hi=
15819 break
15820 fi
15821 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15822fi
ac1cb8d3 15823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15824 done
15825else
15826 echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829ac_lo= ac_hi=
15830fi
ac1cb8d3 15831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15832fi
ac1cb8d3 15833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15834# Binary search between lo and hi bounds.
15835while test "x$ac_lo" != "x$ac_hi"; do
15836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15837 cat >conftest.$ac_ext <<_ACEOF
15838/* confdefs.h. */
15839_ACEOF
15840cat confdefs.h >>conftest.$ac_ext
15841cat >>conftest.$ac_ext <<_ACEOF
15842/* end confdefs.h. */
15843$ac_includes_default
15844int
15845main ()
15846{
15847static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15848test_array [0] = 0
15849
15850 ;
15851 return 0;
15852}
15853_ACEOF
15854rm -f conftest.$ac_objext
15855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15856 (eval $ac_compile) 2>conftest.er1
a848cd7e 15857 ac_status=$?
ac1cb8d3
VS
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
a848cd7e
SC
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
ac1cb8d3
VS
15863 { ac_try='test -z "$ac_c_werror_flag"
15864 || test ! -s conftest.err'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_hi=$ac_mid
15877else
15878 echo "$as_me: failed program was:" >&5
15879sed 's/^/| /' conftest.$ac_ext >&5
15880
15881ac_lo=`expr '(' $ac_mid ')' + 1`
15882fi
ac1cb8d3 15883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15884done
15885case $ac_lo in
15886?*) ac_cv_sizeof_int=$ac_lo;;
15887'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15888See \`config.log' for more details." >&5
15889echo "$as_me: error: cannot compute sizeof (int), 77
15890See \`config.log' for more details." >&2;}
15891 { (exit 1); exit 1; }; } ;;
15892esac
15893else
15894 if test "$cross_compiling" = yes; then
15895 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15896See \`config.log' for more details." >&5
15897echo "$as_me: error: cannot run test program while cross compiling
15898See \`config.log' for more details." >&2;}
15899 { (exit 1); exit 1; }; }
15900else
15901 cat >conftest.$ac_ext <<_ACEOF
15902/* confdefs.h. */
15903_ACEOF
15904cat confdefs.h >>conftest.$ac_ext
15905cat >>conftest.$ac_ext <<_ACEOF
15906/* end confdefs.h. */
15907$ac_includes_default
15908long longval () { return (long) (sizeof (int)); }
15909unsigned long ulongval () { return (long) (sizeof (int)); }
15910#include <stdio.h>
15911#include <stdlib.h>
15912int
15913main ()
15914{
15915
15916 FILE *f = fopen ("conftest.val", "w");
15917 if (! f)
15918 exit (1);
15919 if (((long) (sizeof (int))) < 0)
15920 {
15921 long i = longval ();
15922 if (i != ((long) (sizeof (int))))
15923 exit (1);
15924 fprintf (f, "%ld\n", i);
15925 }
15926 else
15927 {
15928 unsigned long i = ulongval ();
15929 if (i != ((long) (sizeof (int))))
15930 exit (1);
15931 fprintf (f, "%lu\n", i);
15932 }
15933 exit (ferror (f) || fclose (f) != 0);
15934
15935 ;
15936 return 0;
15937}
15938_ACEOF
15939rm -f conftest$ac_exeext
15940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15941 (eval $ac_link) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_cv_sizeof_int=`cat conftest.val`
15951else
15952 echo "$as_me: program exited with status $ac_status" >&5
15953echo "$as_me: failed program was:" >&5
15954sed 's/^/| /' conftest.$ac_ext >&5
15955
15956( exit $ac_status )
15957{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15958See \`config.log' for more details." >&5
15959echo "$as_me: error: cannot compute sizeof (int), 77
15960See \`config.log' for more details." >&2;}
15961 { (exit 1); exit 1; }; }
15962fi
ac1cb8d3 15963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15964fi
15965fi
15966rm -f conftest.val
15967else
15968 ac_cv_sizeof_int=0
15969fi
15970fi
15971echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15972echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15973cat >>confdefs.h <<_ACEOF
15974#define SIZEOF_INT $ac_cv_sizeof_int
15975_ACEOF
15976
15977
15978echo "$as_me:$LINENO: checking for long" >&5
15979echo $ECHO_N "checking for long... $ECHO_C" >&6
15980if test "${ac_cv_type_long+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982else
15983 cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */
15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
15989$ac_includes_default
15990int
15991main ()
15992{
15993if ((long *) 0)
15994 return 0;
15995if (sizeof (long))
15996 return 0;
15997 ;
15998 return 0;
15999}
16000_ACEOF
16001rm -f conftest.$ac_objext
16002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16003 (eval $ac_compile) 2>conftest.er1
a848cd7e 16004 ac_status=$?
ac1cb8d3
VS
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
a848cd7e
SC
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
ac1cb8d3
VS
16010 { ac_try='test -z "$ac_c_werror_flag"
16011 || test ! -s conftest.err'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_cv_type_long=yes
16024else
16025 echo "$as_me: failed program was:" >&5
16026sed 's/^/| /' conftest.$ac_ext >&5
16027
16028ac_cv_type_long=no
16029fi
ac1cb8d3 16030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16031fi
16032echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16033echo "${ECHO_T}$ac_cv_type_long" >&6
16034
16035echo "$as_me:$LINENO: checking size of long" >&5
16036echo $ECHO_N "checking size of long... $ECHO_C" >&6
16037if test "${ac_cv_sizeof_long+set}" = set; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16039else
16040 if test "$ac_cv_type_long" = yes; then
16041 # The cast to unsigned long works around a bug in the HP C Compiler
16042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16044 # This bug is HP SR number 8606223364.
16045 if test "$cross_compiling" = yes; then
16046 # Depending upon the size, compute the lo and hi bounds.
16047cat >conftest.$ac_ext <<_ACEOF
16048/* confdefs.h. */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h. */
16053$ac_includes_default
16054int
16055main ()
16056{
16057static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16058test_array [0] = 0
16059
16060 ;
16061 return 0;
16062}
16063_ACEOF
16064rm -f conftest.$ac_objext
16065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16066 (eval $ac_compile) 2>conftest.er1
a848cd7e 16067 ac_status=$?
ac1cb8d3
VS
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
a848cd7e
SC
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
ac1cb8d3
VS
16073 { ac_try='test -z "$ac_c_werror_flag"
16074 || test ! -s conftest.err'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_lo=0 ac_mid=0
16087 while :; do
16088 cat >conftest.$ac_ext <<_ACEOF
16089/* confdefs.h. */
16090_ACEOF
16091cat confdefs.h >>conftest.$ac_ext
16092cat >>conftest.$ac_ext <<_ACEOF
16093/* end confdefs.h. */
16094$ac_includes_default
16095int
16096main ()
16097{
16098static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16099test_array [0] = 0
16100
16101 ;
16102 return 0;
16103}
16104_ACEOF
16105rm -f conftest.$ac_objext
16106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16107 (eval $ac_compile) 2>conftest.er1
a848cd7e 16108 ac_status=$?
ac1cb8d3
VS
16109 grep -v '^ *+' conftest.er1 >conftest.err
16110 rm -f conftest.er1
16111 cat conftest.err >&5
a848cd7e
SC
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
ac1cb8d3
VS
16114 { ac_try='test -z "$ac_c_werror_flag"
16115 || test ! -s conftest.err'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; } &&
16121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16127 ac_hi=$ac_mid; break
16128else
16129 echo "$as_me: failed program was:" >&5
16130sed 's/^/| /' conftest.$ac_ext >&5
16131
16132ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16133 if test $ac_lo -le $ac_mid; then
16134 ac_lo= ac_hi=
16135 break
16136 fi
16137 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16138fi
ac1cb8d3 16139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16140 done
16141else
16142 echo "$as_me: failed program was:" >&5
16143sed 's/^/| /' conftest.$ac_ext >&5
16144
16145cat >conftest.$ac_ext <<_ACEOF
16146/* confdefs.h. */
16147_ACEOF
16148cat confdefs.h >>conftest.$ac_ext
16149cat >>conftest.$ac_ext <<_ACEOF
16150/* end confdefs.h. */
16151$ac_includes_default
16152int
16153main ()
16154{
16155static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16156test_array [0] = 0
16157
16158 ;
16159 return 0;
16160}
16161_ACEOF
16162rm -f conftest.$ac_objext
16163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16164 (eval $ac_compile) 2>conftest.er1
a848cd7e 16165 ac_status=$?
ac1cb8d3
VS
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
a848cd7e
SC
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
ac1cb8d3
VS
16171 { ac_try='test -z "$ac_c_werror_flag"
16172 || test ! -s conftest.err'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ac_hi=-1 ac_mid=-1
16185 while :; do
16186 cat >conftest.$ac_ext <<_ACEOF
16187/* confdefs.h. */
16188_ACEOF
16189cat confdefs.h >>conftest.$ac_ext
16190cat >>conftest.$ac_ext <<_ACEOF
16191/* end confdefs.h. */
16192$ac_includes_default
16193int
16194main ()
16195{
16196static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16197test_array [0] = 0
16198
16199 ;
16200 return 0;
16201}
16202_ACEOF
16203rm -f conftest.$ac_objext
16204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16205 (eval $ac_compile) 2>conftest.er1
a848cd7e 16206 ac_status=$?
ac1cb8d3
VS
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
a848cd7e
SC
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
ac1cb8d3
VS
16212 { ac_try='test -z "$ac_c_werror_flag"
16213 || test ! -s conftest.err'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; } &&
16219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ac_lo=$ac_mid; break
16226else
16227 echo "$as_me: failed program was:" >&5
16228sed 's/^/| /' conftest.$ac_ext >&5
16229
16230ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16231 if test $ac_mid -le $ac_hi; then
16232 ac_lo= ac_hi=
16233 break
16234 fi
16235 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16236fi
ac1cb8d3 16237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16238 done
16239else
16240 echo "$as_me: failed program was:" >&5
16241sed 's/^/| /' conftest.$ac_ext >&5
16242
16243ac_lo= ac_hi=
16244fi
ac1cb8d3 16245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16246fi
ac1cb8d3 16247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16248# Binary search between lo and hi bounds.
16249while test "x$ac_lo" != "x$ac_hi"; do
16250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16251 cat >conftest.$ac_ext <<_ACEOF
16252/* confdefs.h. */
16253_ACEOF
16254cat confdefs.h >>conftest.$ac_ext
16255cat >>conftest.$ac_ext <<_ACEOF
16256/* end confdefs.h. */
16257$ac_includes_default
16258int
16259main ()
16260{
16261static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16262test_array [0] = 0
16263
16264 ;
16265 return 0;
16266}
16267_ACEOF
16268rm -f conftest.$ac_objext
16269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16270 (eval $ac_compile) 2>conftest.er1
a848cd7e 16271 ac_status=$?
ac1cb8d3
VS
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
a848cd7e
SC
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
ac1cb8d3
VS
16277 { ac_try='test -z "$ac_c_werror_flag"
16278 || test ! -s conftest.err'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_hi=$ac_mid
16291else
16292 echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
16294
16295ac_lo=`expr '(' $ac_mid ')' + 1`
16296fi
ac1cb8d3 16297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16298done
16299case $ac_lo in
16300?*) ac_cv_sizeof_long=$ac_lo;;
16301'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16302See \`config.log' for more details." >&5
16303echo "$as_me: error: cannot compute sizeof (long), 77
16304See \`config.log' for more details." >&2;}
16305 { (exit 1); exit 1; }; } ;;
16306esac
16307else
16308 if test "$cross_compiling" = yes; then
16309 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16310See \`config.log' for more details." >&5
16311echo "$as_me: error: cannot run test program while cross compiling
16312See \`config.log' for more details." >&2;}
16313 { (exit 1); exit 1; }; }
16314else
16315 cat >conftest.$ac_ext <<_ACEOF
16316/* confdefs.h. */
16317_ACEOF
16318cat confdefs.h >>conftest.$ac_ext
16319cat >>conftest.$ac_ext <<_ACEOF
16320/* end confdefs.h. */
16321$ac_includes_default
16322long longval () { return (long) (sizeof (long)); }
16323unsigned long ulongval () { return (long) (sizeof (long)); }
16324#include <stdio.h>
16325#include <stdlib.h>
16326int
16327main ()
16328{
16329
16330 FILE *f = fopen ("conftest.val", "w");
16331 if (! f)
16332 exit (1);
16333 if (((long) (sizeof (long))) < 0)
16334 {
16335 long i = longval ();
16336 if (i != ((long) (sizeof (long))))
16337 exit (1);
16338 fprintf (f, "%ld\n", i);
16339 }
16340 else
16341 {
16342 unsigned long i = ulongval ();
16343 if (i != ((long) (sizeof (long))))
16344 exit (1);
16345 fprintf (f, "%lu\n", i);
16346 }
16347 exit (ferror (f) || fclose (f) != 0);
16348
16349 ;
16350 return 0;
16351}
16352_ACEOF
16353rm -f conftest$ac_exeext
16354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16355 (eval $ac_link) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_sizeof_long=`cat conftest.val`
16365else
16366 echo "$as_me: program exited with status $ac_status" >&5
16367echo "$as_me: failed program was:" >&5
16368sed 's/^/| /' conftest.$ac_ext >&5
16369
16370( exit $ac_status )
16371{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16372See \`config.log' for more details." >&5
16373echo "$as_me: error: cannot compute sizeof (long), 77
16374See \`config.log' for more details." >&2;}
16375 { (exit 1); exit 1; }; }
16376fi
ac1cb8d3 16377rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16378fi
16379fi
16380rm -f conftest.val
16381else
16382 ac_cv_sizeof_long=0
16383fi
16384fi
16385echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16386echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16387cat >>confdefs.h <<_ACEOF
16388#define SIZEOF_LONG $ac_cv_sizeof_long
16389_ACEOF
16390
16391
16392echo "$as_me:$LINENO: checking for size_t" >&5
16393echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16394if test "${ac_cv_type_size_t+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16396else
16397 cat >conftest.$ac_ext <<_ACEOF
16398/* confdefs.h. */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
16402/* end confdefs.h. */
16403$ac_includes_default
16404int
16405main ()
16406{
16407if ((size_t *) 0)
16408 return 0;
16409if (sizeof (size_t))
16410 return 0;
16411 ;
16412 return 0;
16413}
16414_ACEOF
16415rm -f conftest.$ac_objext
16416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16417 (eval $ac_compile) 2>conftest.er1
a848cd7e 16418 ac_status=$?
ac1cb8d3
VS
16419 grep -v '^ *+' conftest.er1 >conftest.err
16420 rm -f conftest.er1
16421 cat conftest.err >&5
a848cd7e
SC
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
ac1cb8d3
VS
16424 { ac_try='test -z "$ac_c_werror_flag"
16425 || test ! -s conftest.err'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; } &&
16431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_cv_type_size_t=yes
16438else
16439 echo "$as_me: failed program was:" >&5
16440sed 's/^/| /' conftest.$ac_ext >&5
16441
16442ac_cv_type_size_t=no
16443fi
ac1cb8d3 16444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16445fi
16446echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16447echo "${ECHO_T}$ac_cv_type_size_t" >&6
16448
16449echo "$as_me:$LINENO: checking size of size_t" >&5
16450echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16451if test "${ac_cv_sizeof_size_t+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16453else
16454 if test "$ac_cv_type_size_t" = yes; then
16455 # The cast to unsigned long works around a bug in the HP C Compiler
16456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16458 # This bug is HP SR number 8606223364.
16459 if test "$cross_compiling" = yes; then
16460 # Depending upon the size, compute the lo and hi bounds.
16461cat >conftest.$ac_ext <<_ACEOF
16462/* confdefs.h. */
16463_ACEOF
16464cat confdefs.h >>conftest.$ac_ext
16465cat >>conftest.$ac_ext <<_ACEOF
16466/* end confdefs.h. */
16467$ac_includes_default
16468int
16469main ()
16470{
16471static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16472test_array [0] = 0
16473
16474 ;
16475 return 0;
16476}
16477_ACEOF
16478rm -f conftest.$ac_objext
16479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16480 (eval $ac_compile) 2>conftest.er1
a848cd7e 16481 ac_status=$?
ac1cb8d3
VS
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
a848cd7e
SC
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
ac1cb8d3
VS
16487 { ac_try='test -z "$ac_c_werror_flag"
16488 || test ! -s conftest.err'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
16494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16500 ac_lo=0 ac_mid=0
16501 while :; do
16502 cat >conftest.$ac_ext <<_ACEOF
16503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
16508$ac_includes_default
16509int
16510main ()
16511{
16512static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16513test_array [0] = 0
16514
16515 ;
16516 return 0;
16517}
16518_ACEOF
16519rm -f conftest.$ac_objext
16520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16521 (eval $ac_compile) 2>conftest.er1
a848cd7e 16522 ac_status=$?
ac1cb8d3
VS
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
a848cd7e
SC
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
ac1cb8d3
VS
16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_hi=$ac_mid; break
16542else
16543 echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
16546ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16547 if test $ac_lo -le $ac_mid; then
16548 ac_lo= ac_hi=
16549 break
16550 fi
16551 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16552fi
ac1cb8d3 16553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16554 done
16555else
16556 echo "$as_me: failed program was:" >&5
16557sed 's/^/| /' conftest.$ac_ext >&5
16558
16559cat >conftest.$ac_ext <<_ACEOF
16560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
16565$ac_includes_default
16566int
16567main ()
16568{
16569static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16570test_array [0] = 0
16571
16572 ;
16573 return 0;
16574}
16575_ACEOF
16576rm -f conftest.$ac_objext
16577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16578 (eval $ac_compile) 2>conftest.er1
a848cd7e 16579 ac_status=$?
ac1cb8d3
VS
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
a848cd7e
SC
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
ac1cb8d3
VS
16585 { ac_try='test -z "$ac_c_werror_flag"
16586 || test ! -s conftest.err'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } &&
16592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; }; then
16598 ac_hi=-1 ac_mid=-1
16599 while :; do
16600 cat >conftest.$ac_ext <<_ACEOF
16601/* confdefs.h. */
16602_ACEOF
16603cat confdefs.h >>conftest.$ac_ext
16604cat >>conftest.$ac_ext <<_ACEOF
16605/* end confdefs.h. */
16606$ac_includes_default
16607int
16608main ()
16609{
16610static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16611test_array [0] = 0
16612
16613 ;
16614 return 0;
16615}
16616_ACEOF
16617rm -f conftest.$ac_objext
16618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16619 (eval $ac_compile) 2>conftest.er1
a848cd7e 16620 ac_status=$?
ac1cb8d3
VS
16621 grep -v '^ *+' conftest.er1 >conftest.err
16622 rm -f conftest.er1
16623 cat conftest.err >&5
a848cd7e
SC
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
ac1cb8d3
VS
16626 { ac_try='test -z "$ac_c_werror_flag"
16627 || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_lo=$ac_mid; break
16640else
16641 echo "$as_me: failed program was:" >&5
16642sed 's/^/| /' conftest.$ac_ext >&5
16643
16644ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16645 if test $ac_mid -le $ac_hi; then
16646 ac_lo= ac_hi=
16647 break
16648 fi
16649 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16650fi
ac1cb8d3 16651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16652 done
16653else
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
16657ac_lo= ac_hi=
16658fi
ac1cb8d3 16659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16660fi
ac1cb8d3 16661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16662# Binary search between lo and hi bounds.
16663while test "x$ac_lo" != "x$ac_hi"; do
16664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16665 cat >conftest.$ac_ext <<_ACEOF
16666/* confdefs.h. */
16667_ACEOF
16668cat confdefs.h >>conftest.$ac_ext
16669cat >>conftest.$ac_ext <<_ACEOF
16670/* end confdefs.h. */
16671$ac_includes_default
16672int
16673main ()
16674{
16675static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16676test_array [0] = 0
16677
16678 ;
16679 return 0;
16680}
16681_ACEOF
16682rm -f conftest.$ac_objext
16683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16684 (eval $ac_compile) 2>conftest.er1
a848cd7e 16685 ac_status=$?
ac1cb8d3
VS
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
a848cd7e
SC
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
ac1cb8d3
VS
16691 { ac_try='test -z "$ac_c_werror_flag"
16692 || test ! -s conftest.err'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704 ac_hi=$ac_mid
16705else
16706 echo "$as_me: failed program was:" >&5
16707sed 's/^/| /' conftest.$ac_ext >&5
16708
16709ac_lo=`expr '(' $ac_mid ')' + 1`
16710fi
ac1cb8d3 16711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16712done
16713case $ac_lo in
16714?*) ac_cv_sizeof_size_t=$ac_lo;;
16715'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16716See \`config.log' for more details." >&5
16717echo "$as_me: error: cannot compute sizeof (size_t), 77
16718See \`config.log' for more details." >&2;}
16719 { (exit 1); exit 1; }; } ;;
16720esac
16721else
16722 if test "$cross_compiling" = yes; then
16723 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16724See \`config.log' for more details." >&5
16725echo "$as_me: error: cannot run test program while cross compiling
16726See \`config.log' for more details." >&2;}
16727 { (exit 1); exit 1; }; }
16728else
16729 cat >conftest.$ac_ext <<_ACEOF
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735$ac_includes_default
16736long longval () { return (long) (sizeof (size_t)); }
16737unsigned long ulongval () { return (long) (sizeof (size_t)); }
16738#include <stdio.h>
16739#include <stdlib.h>
16740int
16741main ()
16742{
16743
16744 FILE *f = fopen ("conftest.val", "w");
16745 if (! f)
16746 exit (1);
16747 if (((long) (sizeof (size_t))) < 0)
16748 {
16749 long i = longval ();
16750 if (i != ((long) (sizeof (size_t))))
16751 exit (1);
16752 fprintf (f, "%ld\n", i);
16753 }
16754 else
16755 {
16756 unsigned long i = ulongval ();
16757 if (i != ((long) (sizeof (size_t))))
16758 exit (1);
16759 fprintf (f, "%lu\n", i);
16760 }
16761 exit (ferror (f) || fclose (f) != 0);
16762
16763 ;
16764 return 0;
16765}
16766_ACEOF
16767rm -f conftest$ac_exeext
16768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16769 (eval $ac_link) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 ac_cv_sizeof_size_t=`cat conftest.val`
16779else
16780 echo "$as_me: program exited with status $ac_status" >&5
16781echo "$as_me: failed program was:" >&5
16782sed 's/^/| /' conftest.$ac_ext >&5
16783
16784( exit $ac_status )
16785{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16786See \`config.log' for more details." >&5
16787echo "$as_me: error: cannot compute sizeof (size_t), 77
16788See \`config.log' for more details." >&2;}
16789 { (exit 1); exit 1; }; }
16790fi
ac1cb8d3 16791rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16792fi
16793fi
16794rm -f conftest.val
16795else
16796 ac_cv_sizeof_size_t=0
16797fi
16798fi
16799echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16800echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16801cat >>confdefs.h <<_ACEOF
16802#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16803_ACEOF
16804
16805
16806
16807case "${host}" in
16808 arm-*-linux* )
16809 echo "$as_me:$LINENO: checking for long long" >&5
16810echo $ECHO_N "checking for long long... $ECHO_C" >&6
16811if test "${ac_cv_type_long_long+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813else
16814 cat >conftest.$ac_ext <<_ACEOF
16815/* confdefs.h. */
16816_ACEOF
16817cat confdefs.h >>conftest.$ac_ext
16818cat >>conftest.$ac_ext <<_ACEOF
16819/* end confdefs.h. */
16820$ac_includes_default
16821int
16822main ()
16823{
16824if ((long long *) 0)
16825 return 0;
16826if (sizeof (long long))
16827 return 0;
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832rm -f conftest.$ac_objext
16833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16834 (eval $ac_compile) 2>conftest.er1
a848cd7e 16835 ac_status=$?
ac1cb8d3
VS
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
a848cd7e
SC
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
ac1cb8d3
VS
16841 { ac_try='test -z "$ac_c_werror_flag"
16842 || test ! -s conftest.err'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; } &&
16848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16854 ac_cv_type_long_long=yes
16855else
16856 echo "$as_me: failed program was:" >&5
16857sed 's/^/| /' conftest.$ac_ext >&5
16858
16859ac_cv_type_long_long=no
16860fi
ac1cb8d3 16861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16862fi
16863echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16864echo "${ECHO_T}$ac_cv_type_long_long" >&6
16865
16866echo "$as_me:$LINENO: checking size of long long" >&5
16867echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16868if test "${ac_cv_sizeof_long_long+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16870else
16871 if test "$ac_cv_type_long_long" = yes; then
16872 # The cast to unsigned long works around a bug in the HP C Compiler
16873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16875 # This bug is HP SR number 8606223364.
16876 if test "$cross_compiling" = yes; then
16877 # Depending upon the size, compute the lo and hi bounds.
16878cat >conftest.$ac_ext <<_ACEOF
16879/* confdefs.h. */
16880_ACEOF
16881cat confdefs.h >>conftest.$ac_ext
16882cat >>conftest.$ac_ext <<_ACEOF
16883/* end confdefs.h. */
16884$ac_includes_default
16885int
16886main ()
16887{
16888static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16889test_array [0] = 0
16890
16891 ;
16892 return 0;
16893}
16894_ACEOF
16895rm -f conftest.$ac_objext
16896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16897 (eval $ac_compile) 2>conftest.er1
a848cd7e 16898 ac_status=$?
ac1cb8d3
VS
16899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
a848cd7e
SC
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
ac1cb8d3
VS
16904 { ac_try='test -z "$ac_c_werror_flag"
16905 || test ! -s conftest.err'
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_lo=0 ac_mid=0
16918 while :; do
16919 cat >conftest.$ac_ext <<_ACEOF
16920/* confdefs.h. */
16921_ACEOF
16922cat confdefs.h >>conftest.$ac_ext
16923cat >>conftest.$ac_ext <<_ACEOF
16924/* end confdefs.h. */
16925$ac_includes_default
16926int
16927main ()
16928{
16929static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16930test_array [0] = 0
16931
16932 ;
16933 return 0;
16934}
16935_ACEOF
16936rm -f conftest.$ac_objext
16937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16938 (eval $ac_compile) 2>conftest.er1
a848cd7e 16939 ac_status=$?
ac1cb8d3
VS
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
a848cd7e
SC
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
ac1cb8d3
VS
16945 { ac_try='test -z "$ac_c_werror_flag"
16946 || test ! -s conftest.err'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 ac_hi=$ac_mid; break
16959else
16960 echo "$as_me: failed program was:" >&5
16961sed 's/^/| /' conftest.$ac_ext >&5
16962
16963ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16964 if test $ac_lo -le $ac_mid; then
16965 ac_lo= ac_hi=
16966 break
16967 fi
16968 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16969fi
ac1cb8d3 16970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16971 done
16972else
16973 echo "$as_me: failed program was:" >&5
16974sed 's/^/| /' conftest.$ac_ext >&5
16975
16976cat >conftest.$ac_ext <<_ACEOF
16977/* confdefs.h. */
16978_ACEOF
16979cat confdefs.h >>conftest.$ac_ext
16980cat >>conftest.$ac_ext <<_ACEOF
16981/* end confdefs.h. */
16982$ac_includes_default
16983int
16984main ()
16985{
16986static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16987test_array [0] = 0
16988
16989 ;
16990 return 0;
16991}
16992_ACEOF
16993rm -f conftest.$ac_objext
16994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16995 (eval $ac_compile) 2>conftest.er1
a848cd7e 16996 ac_status=$?
ac1cb8d3
VS
16997 grep -v '^ *+' conftest.er1 >conftest.err
16998 rm -f conftest.er1
16999 cat conftest.err >&5
a848cd7e
SC
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
ac1cb8d3
VS
17002 { ac_try='test -z "$ac_c_werror_flag"
17003 || test ! -s conftest.err'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 ac_hi=-1 ac_mid=-1
17016 while :; do
17017 cat >conftest.$ac_ext <<_ACEOF
17018/* confdefs.h. */
17019_ACEOF
17020cat confdefs.h >>conftest.$ac_ext
17021cat >>conftest.$ac_ext <<_ACEOF
17022/* end confdefs.h. */
17023$ac_includes_default
17024int
17025main ()
17026{
17027static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17028test_array [0] = 0
17029
17030 ;
17031 return 0;
17032}
17033_ACEOF
17034rm -f conftest.$ac_objext
17035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17036 (eval $ac_compile) 2>conftest.er1
a848cd7e 17037 ac_status=$?
ac1cb8d3
VS
17038 grep -v '^ *+' conftest.er1 >conftest.err
17039 rm -f conftest.er1
17040 cat conftest.err >&5
a848cd7e
SC
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
ac1cb8d3
VS
17043 { ac_try='test -z "$ac_c_werror_flag"
17044 || test ! -s conftest.err'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_lo=$ac_mid; break
17057else
17058 echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
17061ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17062 if test $ac_mid -le $ac_hi; then
17063 ac_lo= ac_hi=
17064 break
17065 fi
17066 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17067fi
ac1cb8d3 17068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17069 done
17070else
17071 echo "$as_me: failed program was:" >&5
17072sed 's/^/| /' conftest.$ac_ext >&5
17073
17074ac_lo= ac_hi=
17075fi
ac1cb8d3 17076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17077fi
ac1cb8d3 17078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17079# Binary search between lo and hi bounds.
17080while test "x$ac_lo" != "x$ac_hi"; do
17081 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17082 cat >conftest.$ac_ext <<_ACEOF
17083/* confdefs.h. */
17084_ACEOF
17085cat confdefs.h >>conftest.$ac_ext
17086cat >>conftest.$ac_ext <<_ACEOF
17087/* end confdefs.h. */
17088$ac_includes_default
17089int
17090main ()
17091{
17092static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17093test_array [0] = 0
17094
17095 ;
17096 return 0;
17097}
17098_ACEOF
17099rm -f conftest.$ac_objext
17100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17101 (eval $ac_compile) 2>conftest.er1
a848cd7e 17102 ac_status=$?
ac1cb8d3
VS
17103 grep -v '^ *+' conftest.er1 >conftest.err
17104 rm -f conftest.er1
17105 cat conftest.err >&5
a848cd7e
SC
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
ac1cb8d3
VS
17108 { ac_try='test -z "$ac_c_werror_flag"
17109 || test ! -s conftest.err'
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 ac_hi=$ac_mid
17122else
17123 echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
17126ac_lo=`expr '(' $ac_mid ')' + 1`
17127fi
ac1cb8d3 17128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17129done
17130case $ac_lo in
17131?*) ac_cv_sizeof_long_long=$ac_lo;;
17132'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17133See \`config.log' for more details." >&5
17134echo "$as_me: error: cannot compute sizeof (long long), 77
17135See \`config.log' for more details." >&2;}
17136 { (exit 1); exit 1; }; } ;;
17137esac
17138else
17139 if test "$cross_compiling" = yes; then
17140 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17141See \`config.log' for more details." >&5
17142echo "$as_me: error: cannot run test program while cross compiling
17143See \`config.log' for more details." >&2;}
17144 { (exit 1); exit 1; }; }
17145else
17146 cat >conftest.$ac_ext <<_ACEOF
17147/* confdefs.h. */
17148_ACEOF
17149cat confdefs.h >>conftest.$ac_ext
17150cat >>conftest.$ac_ext <<_ACEOF
17151/* end confdefs.h. */
17152$ac_includes_default
17153long longval () { return (long) (sizeof (long long)); }
17154unsigned long ulongval () { return (long) (sizeof (long long)); }
17155#include <stdio.h>
17156#include <stdlib.h>
17157int
17158main ()
17159{
17160
17161 FILE *f = fopen ("conftest.val", "w");
17162 if (! f)
17163 exit (1);
17164 if (((long) (sizeof (long long))) < 0)
17165 {
17166 long i = longval ();
17167 if (i != ((long) (sizeof (long long))))
17168 exit (1);
17169 fprintf (f, "%ld\n", i);
17170 }
17171 else
17172 {
17173 unsigned long i = ulongval ();
17174 if (i != ((long) (sizeof (long long))))
17175 exit (1);
17176 fprintf (f, "%lu\n", i);
17177 }
17178 exit (ferror (f) || fclose (f) != 0);
17179
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184rm -f conftest$ac_exeext
17185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17186 (eval $ac_link) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195 ac_cv_sizeof_long_long=`cat conftest.val`
17196else
17197 echo "$as_me: program exited with status $ac_status" >&5
17198echo "$as_me: failed program was:" >&5
17199sed 's/^/| /' conftest.$ac_ext >&5
17200
17201( exit $ac_status )
17202{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17203See \`config.log' for more details." >&5
17204echo "$as_me: error: cannot compute sizeof (long long), 77
17205See \`config.log' for more details." >&2;}
17206 { (exit 1); exit 1; }; }
17207fi
ac1cb8d3 17208rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17209fi
17210fi
17211rm -f conftest.val
17212else
17213 ac_cv_sizeof_long_long=0
17214fi
17215fi
17216echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17217echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17218cat >>confdefs.h <<_ACEOF
17219#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17220_ACEOF
17221
17222
17223 ;;
17224 *-hp-hpux* )
17225 echo "$as_me:$LINENO: checking for long long" >&5
17226echo $ECHO_N "checking for long long... $ECHO_C" >&6
17227if test "${ac_cv_type_long_long+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17230 cat >conftest.$ac_ext <<_ACEOF
17231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h. */
17236$ac_includes_default
17237int
17238main ()
17239{
17240if ((long long *) 0)
17241 return 0;
17242if (sizeof (long long))
17243 return 0;
17244 ;
17245 return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext
17249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17250 (eval $ac_compile) 2>conftest.er1
a848cd7e 17251 ac_status=$?
ac1cb8d3
VS
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
a848cd7e
SC
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
ac1cb8d3
VS
17257 { ac_try='test -z "$ac_c_werror_flag"
17258 || test ! -s conftest.err'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_type_long_long=yes
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275ac_cv_type_long_long=no
17276fi
ac1cb8d3 17277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17278fi
17279echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17280echo "${ECHO_T}$ac_cv_type_long_long" >&6
17281
17282echo "$as_me:$LINENO: checking size of long long" >&5
17283echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17284if test "${ac_cv_sizeof_long_long+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286else
17287 if test "$ac_cv_type_long_long" = yes; then
17288 # The cast to unsigned long works around a bug in the HP C Compiler
17289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17291 # This bug is HP SR number 8606223364.
17292 if test "$cross_compiling" = yes; then
17293 # Depending upon the size, compute the lo and hi bounds.
17294cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300$ac_includes_default
17301int
17302main ()
17303{
17304static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17305test_array [0] = 0
17306
17307 ;
17308 return 0;
17309}
17310_ACEOF
17311rm -f conftest.$ac_objext
17312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17313 (eval $ac_compile) 2>conftest.er1
a848cd7e 17314 ac_status=$?
ac1cb8d3
VS
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
a848cd7e
SC
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
ac1cb8d3
VS
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_lo=0 ac_mid=0
17334 while :; do
17335 cat >conftest.$ac_ext <<_ACEOF
17336/* confdefs.h. */
17337_ACEOF
17338cat confdefs.h >>conftest.$ac_ext
17339cat >>conftest.$ac_ext <<_ACEOF
17340/* end confdefs.h. */
17341$ac_includes_default
17342int
17343main ()
17344{
17345static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17346test_array [0] = 0
17347
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext
17353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17354 (eval $ac_compile) 2>conftest.er1
a848cd7e 17355 ac_status=$?
ac1cb8d3
VS
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
a848cd7e
SC
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
ac1cb8d3
VS
17361 { ac_try='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_hi=$ac_mid; break
17375else
17376 echo "$as_me: failed program was:" >&5
17377sed 's/^/| /' conftest.$ac_ext >&5
17378
17379ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17380 if test $ac_lo -le $ac_mid; then
17381 ac_lo= ac_hi=
17382 break
17383 fi
17384 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17385fi
ac1cb8d3 17386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17387 done
17388else
17389 echo "$as_me: failed program was:" >&5
17390sed 's/^/| /' conftest.$ac_ext >&5
17391
17392cat >conftest.$ac_ext <<_ACEOF
17393/* confdefs.h. */
17394_ACEOF
17395cat confdefs.h >>conftest.$ac_ext
17396cat >>conftest.$ac_ext <<_ACEOF
17397/* end confdefs.h. */
17398$ac_includes_default
17399int
17400main ()
17401{
17402static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17403test_array [0] = 0
17404
17405 ;
17406 return 0;
17407}
17408_ACEOF
17409rm -f conftest.$ac_objext
17410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17411 (eval $ac_compile) 2>conftest.er1
a848cd7e 17412 ac_status=$?
ac1cb8d3
VS
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
a848cd7e
SC
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
ac1cb8d3
VS
17418 { ac_try='test -z "$ac_c_werror_flag"
17419 || test ! -s conftest.err'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; } &&
17425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 ac_hi=-1 ac_mid=-1
17432 while :; do
17433 cat >conftest.$ac_ext <<_ACEOF
17434/* confdefs.h. */
17435_ACEOF
17436cat confdefs.h >>conftest.$ac_ext
17437cat >>conftest.$ac_ext <<_ACEOF
17438/* end confdefs.h. */
17439$ac_includes_default
17440int
17441main ()
17442{
17443static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17444test_array [0] = 0
17445
17446 ;
17447 return 0;
17448}
17449_ACEOF
17450rm -f conftest.$ac_objext
17451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17452 (eval $ac_compile) 2>conftest.er1
a848cd7e 17453 ac_status=$?
ac1cb8d3
VS
17454 grep -v '^ *+' conftest.er1 >conftest.err
17455 rm -f conftest.er1
17456 cat conftest.err >&5
a848cd7e
SC
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
ac1cb8d3
VS
17459 { ac_try='test -z "$ac_c_werror_flag"
17460 || test ! -s conftest.err'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_lo=$ac_mid; break
17473else
17474 echo "$as_me: failed program was:" >&5
17475sed 's/^/| /' conftest.$ac_ext >&5
17476
17477ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17478 if test $ac_mid -le $ac_hi; then
17479 ac_lo= ac_hi=
17480 break
17481 fi
17482 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17483fi
ac1cb8d3 17484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17485 done
17486else
17487 echo "$as_me: failed program was:" >&5
17488sed 's/^/| /' conftest.$ac_ext >&5
17489
17490ac_lo= ac_hi=
17491fi
ac1cb8d3 17492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17493fi
ac1cb8d3 17494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17495# Binary search between lo and hi bounds.
17496while test "x$ac_lo" != "x$ac_hi"; do
17497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17498 cat >conftest.$ac_ext <<_ACEOF
17499/* confdefs.h. */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h. */
17504$ac_includes_default
17505int
17506main ()
17507{
17508static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17509test_array [0] = 0
17510
17511 ;
17512 return 0;
17513}
17514_ACEOF
17515rm -f conftest.$ac_objext
17516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17517 (eval $ac_compile) 2>conftest.er1
a848cd7e 17518 ac_status=$?
ac1cb8d3
VS
17519 grep -v '^ *+' conftest.er1 >conftest.err
17520 rm -f conftest.er1
17521 cat conftest.err >&5
a848cd7e
SC
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } &&
ac1cb8d3
VS
17524 { ac_try='test -z "$ac_c_werror_flag"
17525 || test ! -s conftest.err'
17526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; } &&
17531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17537 ac_hi=$ac_mid
17538else
17539 echo "$as_me: failed program was:" >&5
17540sed 's/^/| /' conftest.$ac_ext >&5
17541
17542ac_lo=`expr '(' $ac_mid ')' + 1`
17543fi
ac1cb8d3 17544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17545done
17546case $ac_lo in
17547?*) ac_cv_sizeof_long_long=$ac_lo;;
17548'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17549See \`config.log' for more details." >&5
17550echo "$as_me: error: cannot compute sizeof (long long), 77
17551See \`config.log' for more details." >&2;}
17552 { (exit 1); exit 1; }; } ;;
17553esac
17554else
17555 if test "$cross_compiling" = yes; then
17556 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17557See \`config.log' for more details." >&5
17558echo "$as_me: error: cannot run test program while cross compiling
17559See \`config.log' for more details." >&2;}
17560 { (exit 1); exit 1; }; }
17561else
17562 cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h. */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h. */
17568$ac_includes_default
17569long longval () { return (long) (sizeof (long long)); }
17570unsigned long ulongval () { return (long) (sizeof (long long)); }
17571#include <stdio.h>
17572#include <stdlib.h>
17573int
17574main ()
17575{
17576
17577 FILE *f = fopen ("conftest.val", "w");
17578 if (! f)
17579 exit (1);
17580 if (((long) (sizeof (long long))) < 0)
17581 {
17582 long i = longval ();
17583 if (i != ((long) (sizeof (long long))))
17584 exit (1);
17585 fprintf (f, "%ld\n", i);
17586 }
17587 else
17588 {
17589 unsigned long i = ulongval ();
17590 if (i != ((long) (sizeof (long long))))
17591 exit (1);
17592 fprintf (f, "%lu\n", i);
17593 }
17594 exit (ferror (f) || fclose (f) != 0);
17595
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600rm -f conftest$ac_exeext
17601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602 (eval $ac_link) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; }; then
17611 ac_cv_sizeof_long_long=`cat conftest.val`
17612else
17613 echo "$as_me: program exited with status $ac_status" >&5
17614echo "$as_me: failed program was:" >&5
17615sed 's/^/| /' conftest.$ac_ext >&5
17616
17617( exit $ac_status )
17618{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17619See \`config.log' for more details." >&5
17620echo "$as_me: error: cannot compute sizeof (long long), 77
17621See \`config.log' for more details." >&2;}
17622 { (exit 1); exit 1; }; }
17623fi
ac1cb8d3 17624rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17625fi
17626fi
17627rm -f conftest.val
17628else
17629 ac_cv_sizeof_long_long=0
17630fi
17631fi
17632echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17633echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17634cat >>confdefs.h <<_ACEOF
17635#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17636_ACEOF
17637
17638
17639 if test "$ac_cv_sizeof_long_long" != "0"; then
17640 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17641 fi
17642 ;;
17643 * )
17644 echo "$as_me:$LINENO: checking for long long" >&5
17645echo $ECHO_N "checking for long long... $ECHO_C" >&6
17646if test "${ac_cv_type_long_long+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648else
17649 cat >conftest.$ac_ext <<_ACEOF
17650/* confdefs.h. */
17651_ACEOF
17652cat confdefs.h >>conftest.$ac_ext
17653cat >>conftest.$ac_ext <<_ACEOF
17654/* end confdefs.h. */
17655$ac_includes_default
17656int
17657main ()
17658{
17659if ((long long *) 0)
17660 return 0;
17661if (sizeof (long long))
17662 return 0;
17663 ;
17664 return 0;
17665}
17666_ACEOF
17667rm -f conftest.$ac_objext
17668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17669 (eval $ac_compile) 2>conftest.er1
a848cd7e 17670 ac_status=$?
ac1cb8d3
VS
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
a848cd7e
SC
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
ac1cb8d3
VS
17676 { ac_try='test -z "$ac_c_werror_flag"
17677 || test ! -s conftest.err'
17678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679 (eval $ac_try) 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
17689 ac_cv_type_long_long=yes
17690else
17691 echo "$as_me: failed program was:" >&5
17692sed 's/^/| /' conftest.$ac_ext >&5
17693
17694ac_cv_type_long_long=no
17695fi
ac1cb8d3 17696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17697fi
17698echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17699echo "${ECHO_T}$ac_cv_type_long_long" >&6
17700
17701echo "$as_me:$LINENO: checking size of long long" >&5
17702echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17703if test "${ac_cv_sizeof_long_long+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17705else
17706 if test "$ac_cv_type_long_long" = yes; then
17707 # The cast to unsigned long works around a bug in the HP C Compiler
17708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17710 # This bug is HP SR number 8606223364.
17711 if test "$cross_compiling" = yes; then
17712 # Depending upon the size, compute the lo and hi bounds.
17713cat >conftest.$ac_ext <<_ACEOF
17714/* confdefs.h. */
17715_ACEOF
17716cat confdefs.h >>conftest.$ac_ext
17717cat >>conftest.$ac_ext <<_ACEOF
17718/* end confdefs.h. */
17719$ac_includes_default
17720int
17721main ()
17722{
17723static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17724test_array [0] = 0
17725
17726 ;
17727 return 0;
17728}
17729_ACEOF
17730rm -f conftest.$ac_objext
17731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17732 (eval $ac_compile) 2>conftest.er1
a848cd7e 17733 ac_status=$?
ac1cb8d3
VS
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
a848cd7e
SC
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
ac1cb8d3
VS
17739 { ac_try='test -z "$ac_c_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_lo=0 ac_mid=0
17753 while :; do
17754 cat >conftest.$ac_ext <<_ACEOF
17755/* confdefs.h. */
17756_ACEOF
17757cat confdefs.h >>conftest.$ac_ext
17758cat >>conftest.$ac_ext <<_ACEOF
17759/* end confdefs.h. */
17760$ac_includes_default
17761int
17762main ()
17763{
17764static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17765test_array [0] = 0
17766
17767 ;
17768 return 0;
17769}
17770_ACEOF
17771rm -f conftest.$ac_objext
17772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17773 (eval $ac_compile) 2>conftest.er1
a848cd7e 17774 ac_status=$?
ac1cb8d3
VS
17775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
a848cd7e
SC
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
ac1cb8d3
VS
17780 { ac_try='test -z "$ac_c_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ac_hi=$ac_mid; break
17794else
17795 echo "$as_me: failed program was:" >&5
17796sed 's/^/| /' conftest.$ac_ext >&5
17797
17798ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17799 if test $ac_lo -le $ac_mid; then
17800 ac_lo= ac_hi=
17801 break
17802 fi
17803 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17804fi
ac1cb8d3 17805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17806 done
17807else
17808 echo "$as_me: failed program was:" >&5
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
17811cat >conftest.$ac_ext <<_ACEOF
17812/* confdefs.h. */
17813_ACEOF
17814cat confdefs.h >>conftest.$ac_ext
17815cat >>conftest.$ac_ext <<_ACEOF
17816/* end confdefs.h. */
17817$ac_includes_default
17818int
17819main ()
17820{
17821static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17822test_array [0] = 0
17823
17824 ;
17825 return 0;
17826}
17827_ACEOF
17828rm -f conftest.$ac_objext
17829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17830 (eval $ac_compile) 2>conftest.er1
a848cd7e 17831 ac_status=$?
ac1cb8d3
VS
17832 grep -v '^ *+' conftest.er1 >conftest.err
17833 rm -f conftest.er1
17834 cat conftest.err >&5
a848cd7e
SC
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
ac1cb8d3
VS
17837 { ac_try='test -z "$ac_c_werror_flag"
17838 || test ! -s conftest.err'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ac_hi=-1 ac_mid=-1
17851 while :; do
17852 cat >conftest.$ac_ext <<_ACEOF
17853/* confdefs.h. */
17854_ACEOF
17855cat confdefs.h >>conftest.$ac_ext
17856cat >>conftest.$ac_ext <<_ACEOF
17857/* end confdefs.h. */
17858$ac_includes_default
17859int
17860main ()
17861{
17862static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17863test_array [0] = 0
17864
17865 ;
17866 return 0;
17867}
17868_ACEOF
17869rm -f conftest.$ac_objext
17870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17871 (eval $ac_compile) 2>conftest.er1
a848cd7e 17872 ac_status=$?
ac1cb8d3
VS
17873 grep -v '^ *+' conftest.er1 >conftest.err
17874 rm -f conftest.er1
17875 cat conftest.err >&5
a848cd7e
SC
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
ac1cb8d3
VS
17878 { ac_try='test -z "$ac_c_werror_flag"
17879 || test ! -s conftest.err'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 ac_lo=$ac_mid; break
17892else
17893 echo "$as_me: failed program was:" >&5
17894sed 's/^/| /' conftest.$ac_ext >&5
17895
17896ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17897 if test $ac_mid -le $ac_hi; then
17898 ac_lo= ac_hi=
17899 break
17900 fi
17901 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17902fi
ac1cb8d3 17903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17904 done
17905else
17906 echo "$as_me: failed program was:" >&5
17907sed 's/^/| /' conftest.$ac_ext >&5
17908
17909ac_lo= ac_hi=
17910fi
ac1cb8d3 17911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17912fi
ac1cb8d3 17913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17914# Binary search between lo and hi bounds.
17915while test "x$ac_lo" != "x$ac_hi"; do
17916 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17917 cat >conftest.$ac_ext <<_ACEOF
17918/* confdefs.h. */
17919_ACEOF
17920cat confdefs.h >>conftest.$ac_ext
17921cat >>conftest.$ac_ext <<_ACEOF
17922/* end confdefs.h. */
17923$ac_includes_default
17924int
17925main ()
17926{
17927static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17928test_array [0] = 0
17929
17930 ;
17931 return 0;
17932}
17933_ACEOF
17934rm -f conftest.$ac_objext
17935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17936 (eval $ac_compile) 2>conftest.er1
a848cd7e 17937 ac_status=$?
ac1cb8d3
VS
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
a848cd7e
SC
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
ac1cb8d3
VS
17943 { ac_try='test -z "$ac_c_werror_flag"
17944 || test ! -s conftest.err'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 ac_hi=$ac_mid
17957else
17958 echo "$as_me: failed program was:" >&5
17959sed 's/^/| /' conftest.$ac_ext >&5
17960
17961ac_lo=`expr '(' $ac_mid ')' + 1`
17962fi
ac1cb8d3 17963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17964done
17965case $ac_lo in
17966?*) ac_cv_sizeof_long_long=$ac_lo;;
17967'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17968See \`config.log' for more details." >&5
17969echo "$as_me: error: cannot compute sizeof (long long), 77
17970See \`config.log' for more details." >&2;}
17971 { (exit 1); exit 1; }; } ;;
17972esac
17973else
17974 if test "$cross_compiling" = yes; then
17975 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17976See \`config.log' for more details." >&5
17977echo "$as_me: error: cannot run test program while cross compiling
17978See \`config.log' for more details." >&2;}
17979 { (exit 1); exit 1; }; }
17980else
17981 cat >conftest.$ac_ext <<_ACEOF
17982/* confdefs.h. */
17983_ACEOF
17984cat confdefs.h >>conftest.$ac_ext
17985cat >>conftest.$ac_ext <<_ACEOF
17986/* end confdefs.h. */
17987$ac_includes_default
17988long longval () { return (long) (sizeof (long long)); }
17989unsigned long ulongval () { return (long) (sizeof (long long)); }
17990#include <stdio.h>
17991#include <stdlib.h>
17992int
17993main ()
17994{
17995
17996 FILE *f = fopen ("conftest.val", "w");
17997 if (! f)
17998 exit (1);
17999 if (((long) (sizeof (long long))) < 0)
18000 {
18001 long i = longval ();
18002 if (i != ((long) (sizeof (long long))))
18003 exit (1);
18004 fprintf (f, "%ld\n", i);
18005 }
18006 else
18007 {
18008 unsigned long i = ulongval ();
18009 if (i != ((long) (sizeof (long long))))
18010 exit (1);
18011 fprintf (f, "%lu\n", i);
18012 }
18013 exit (ferror (f) || fclose (f) != 0);
18014
18015 ;
18016 return 0;
18017}
18018_ACEOF
18019rm -f conftest$ac_exeext
18020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_sizeof_long_long=`cat conftest.val`
18031else
18032 echo "$as_me: program exited with status $ac_status" >&5
18033echo "$as_me: failed program was:" >&5
18034sed 's/^/| /' conftest.$ac_ext >&5
18035
18036( exit $ac_status )
18037{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18038See \`config.log' for more details." >&5
18039echo "$as_me: error: cannot compute sizeof (long long), 77
18040See \`config.log' for more details." >&2;}
18041 { (exit 1); exit 1; }; }
18042fi
ac1cb8d3 18043rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18044fi
18045fi
18046rm -f conftest.val
18047else
18048 ac_cv_sizeof_long_long=0
18049fi
18050fi
18051echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18052echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18053cat >>confdefs.h <<_ACEOF
18054#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18055_ACEOF
18056
18057
18058esac
18059
18060echo "$as_me:$LINENO: checking size of wchar_t" >&5
18061echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18062if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064else
18065
18066 if test "$cross_compiling" = yes; then
18067
18068 case "${host}" in
18069 *-pc-msdosdjgpp )
18070 wx_cv_sizeof_wchar_t=0
18071 ;;
18072 * )
18073 wx_cv_sizeof_wchar_t=4
18074 ;;
18075 esac
18076
18077
18078else
18079 cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085
18086 /* DJGPP only has fake wchar_t: */
18087 #ifdef __DJGPP__
18088 # error "fake wchar_t"
18089 #endif
18090 #ifdef HAVE_WCHAR_H
18091 # ifdef __CYGWIN__
18092 # include <stddef.h>
18093 # endif
18094 # include <wchar.h>
18095 #endif
18096 #ifdef HAVE_STDLIB_H
18097 # include <stdlib.h>
18098 #endif
18099 #include <stdio.h>
18100 int main()
18101 {
18102 FILE *f=fopen("conftestval", "w");
18103 if (!f) exit(1);
18104 fprintf(f, "%i", sizeof(wchar_t));
18105 exit(0);
18106 }
18107
18108_ACEOF
18109rm -f conftest$ac_exeext
18110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18111 (eval $ac_link) 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
18120 wx_cv_sizeof_wchar_t=`cat conftestval`
18121else
18122 echo "$as_me: program exited with status $ac_status" >&5
18123echo "$as_me: failed program was:" >&5
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
18126( exit $ac_status )
18127wx_cv_sizeof_wchar_t=0
18128fi
ac1cb8d3 18129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18130fi
18131
18132fi
18133echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18134echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18135
18136cat >>confdefs.h <<_ACEOF
18137#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18138_ACEOF
18139
18140
18141# Check whether --enable-largefile or --disable-largefile was given.
18142if test "${enable_largefile+set}" = set; then
18143 enableval="$enable_largefile"
18144
18145fi;
18146if test "$enable_largefile" != no; then
18147 wx_largefile=no
18148
18149 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18150echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18151if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18153else
18154
18155 cat >conftest.$ac_ext <<_ACEOF
18156/* confdefs.h. */
18157_ACEOF
18158cat confdefs.h >>conftest.$ac_ext
18159cat >>conftest.$ac_ext <<_ACEOF
18160/* end confdefs.h. */
18161#define _FILE_OFFSET_BITS 64
18162 #include <sys/types.h>
18163int
18164main ()
18165{
18166typedef struct {
18167 unsigned int field: sizeof(off_t) == 8;
18168} wxlf;
18169
18170 ;
18171 return 0;
18172}
18173_ACEOF
18174rm -f conftest.$ac_objext
18175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18176 (eval $ac_compile) 2>conftest.er1
a848cd7e 18177 ac_status=$?
ac1cb8d3
VS
18178 grep -v '^ *+' conftest.er1 >conftest.err
18179 rm -f conftest.er1
18180 cat conftest.err >&5
a848cd7e
SC
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
ac1cb8d3
VS
18183 { ac_try='test -z "$ac_c_werror_flag"
18184 || test ! -s conftest.err'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_sys_file_offset_bits=64
18197else
18198 echo "$as_me: failed program was:" >&5
18199sed 's/^/| /' conftest.$ac_ext >&5
18200
18201ac_cv_sys_file_offset_bits=no
18202fi
ac1cb8d3 18203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18204
18205
18206fi
18207echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18208echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18209
18210 if test "$ac_cv_sys_file_offset_bits" != no; then
18211 wx_largefile=yes
18212 cat >>confdefs.h <<_ACEOF
18213#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18214_ACEOF
18215
18216 fi
18217
18218 if test "x$wx_largefile" != "xyes"; then
18219
18220 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18221echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18222if test "${ac_cv_sys_large_files+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225
18226 cat >conftest.$ac_ext <<_ACEOF
18227/* confdefs.h. */
18228_ACEOF
18229cat confdefs.h >>conftest.$ac_ext
18230cat >>conftest.$ac_ext <<_ACEOF
18231/* end confdefs.h. */
18232#define _LARGE_FILES 1
18233 #include <sys/types.h>
18234int
18235main ()
18236{
18237typedef struct {
18238 unsigned int field: sizeof(off_t) == 8;
18239} wxlf;
18240
18241 ;
18242 return 0;
18243}
18244_ACEOF
18245rm -f conftest.$ac_objext
18246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18247 (eval $ac_compile) 2>conftest.er1
a848cd7e 18248 ac_status=$?
ac1cb8d3
VS
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
a848cd7e
SC
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
ac1cb8d3
VS
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_cv_sys_large_files=1
18268else
18269 echo "$as_me: failed program was:" >&5
18270sed 's/^/| /' conftest.$ac_ext >&5
18271
18272ac_cv_sys_large_files=no
18273fi
ac1cb8d3 18274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18275
18276
18277fi
18278echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18279echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18280
18281 if test "$ac_cv_sys_large_files" != no; then
18282 wx_largefile=yes
18283 cat >>confdefs.h <<_ACEOF
18284#define _LARGE_FILES $ac_cv_sys_large_files
18285_ACEOF
18286
18287 fi
18288
18289 fi
18290
18291 echo "$as_me:$LINENO: checking if large file support is available" >&5
18292echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18293 if test "x$wx_largefile" = "xyes"; then
18294 cat >>confdefs.h <<\_ACEOF
18295#define HAVE_LARGEFILE_SUPPORT 1
18296_ACEOF
18297
18298 fi
18299 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18300echo "${ECHO_T}$wx_largefile" >&6
18301fi
18302
18303
18304if test "x$wx_largefile" = "xyes"; then
18305 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18306 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18307 else
18308 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18309 fi
18310 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18311fi
18312
18313echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18314echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18315if test "${ac_cv_c_bigendian+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18317else
18318 ac_cv_c_bigendian=unknown
18319# See if sys/param.h defines the BYTE_ORDER macro.
18320cat >conftest.$ac_ext <<_ACEOF
18321/* confdefs.h. */
18322_ACEOF
18323cat confdefs.h >>conftest.$ac_ext
18324cat >>conftest.$ac_ext <<_ACEOF
18325/* end confdefs.h. */
18326#include <sys/types.h>
18327#include <sys/param.h>
18328int
18329main ()
18330{
18331
18332#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18333 bogus endian macros
18334#endif
18335 ;
18336 return 0;
18337}
18338_ACEOF
18339rm -f conftest.$ac_objext
18340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18341 (eval $ac_compile) 2>conftest.er1
a848cd7e 18342 ac_status=$?
ac1cb8d3
VS
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
a848cd7e
SC
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
ac1cb8d3
VS
18348 { ac_try='test -z "$ac_c_werror_flag"
18349 || test ! -s conftest.err'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } &&
18355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 # It does; now see whether it defined to BIG_ENDIAN or not.
18362cat >conftest.$ac_ext <<_ACEOF
18363/* confdefs.h. */
18364_ACEOF
18365cat confdefs.h >>conftest.$ac_ext
18366cat >>conftest.$ac_ext <<_ACEOF
18367/* end confdefs.h. */
18368#include <sys/types.h>
18369#include <sys/param.h>
18370int
18371main ()
18372{
18373
18374#if BYTE_ORDER != BIG_ENDIAN
18375 not big endian
18376#endif
18377 ;
18378 return 0;
18379}
18380_ACEOF
18381rm -f conftest.$ac_objext
18382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18383 (eval $ac_compile) 2>conftest.er1
a848cd7e 18384 ac_status=$?
ac1cb8d3
VS
18385 grep -v '^ *+' conftest.er1 >conftest.err
18386 rm -f conftest.er1
18387 cat conftest.err >&5
a848cd7e
SC
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } &&
ac1cb8d3
VS
18390 { ac_try='test -z "$ac_c_werror_flag"
18391 || test ! -s conftest.err'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; }; then
18403 ac_cv_c_bigendian=yes
18404else
18405 echo "$as_me: failed program was:" >&5
18406sed 's/^/| /' conftest.$ac_ext >&5
18407
18408ac_cv_c_bigendian=no
18409fi
ac1cb8d3 18410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18411else
18412 echo "$as_me: failed program was:" >&5
18413sed 's/^/| /' conftest.$ac_ext >&5
18414
18415fi
ac1cb8d3 18416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18417if test $ac_cv_c_bigendian = unknown; then
18418if test "$cross_compiling" = yes; then
18419 ac_cv_c_bigendian=unknown
18420else
18421 cat >conftest.$ac_ext <<_ACEOF
18422/* confdefs.h. */
18423_ACEOF
18424cat confdefs.h >>conftest.$ac_ext
18425cat >>conftest.$ac_ext <<_ACEOF
18426/* end confdefs.h. */
18427main () {
18428 /* Are we little or big endian? From Harbison&Steele. */
18429 union
18430 {
18431 long l;
18432 char c[sizeof (long)];
18433 } u;
18434 u.l = 1;
18435 exit (u.c[sizeof (long) - 1] == 1);
18436}
18437_ACEOF
18438rm -f conftest$ac_exeext
18439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18440 (eval $ac_link) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18449 ac_cv_c_bigendian=no
18450else
18451 echo "$as_me: program exited with status $ac_status" >&5
18452echo "$as_me: failed program was:" >&5
18453sed 's/^/| /' conftest.$ac_ext >&5
18454
18455( exit $ac_status )
18456ac_cv_c_bigendian=yes
18457fi
ac1cb8d3 18458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18459fi
18460fi
18461fi
18462echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18463echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18464if test $ac_cv_c_bigendian = unknown; then
18465 { 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
18466echo "$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;}
18467fi
18468if test $ac_cv_c_bigendian = yes; then
18469 cat >>confdefs.h <<\_ACEOF
18470#define WORDS_BIGENDIAN 1
18471_ACEOF
18472
18473fi
18474
18475
18476ac_ext=cc
18477ac_cpp='$CXXCPP $CPPFLAGS'
18478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18481echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18482echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18483if test -z "$CXXCPP"; then
18484 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486else
18487 # Double quotes because CXXCPP needs to be expanded
18488 for CXXCPP in "$CXX -E" "/lib/cpp"
18489 do
18490 ac_preproc_ok=false
18491for ac_cxx_preproc_warn_flag in '' yes
18492do
18493 # Use a header file that comes with gcc, so configuring glibc
18494 # with a fresh cross-compiler works.
18495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18496 # <limits.h> exists even on freestanding compilers.
18497 # On the NeXT, cc -E runs the code through the compiler's parser,
18498 # not just through cpp. "Syntax error" is here to catch this case.
18499 cat >conftest.$ac_ext <<_ACEOF
18500/* confdefs.h. */
18501_ACEOF
18502cat confdefs.h >>conftest.$ac_ext
18503cat >>conftest.$ac_ext <<_ACEOF
18504/* end confdefs.h. */
18505#ifdef __STDC__
18506# include <limits.h>
18507#else
18508# include <assert.h>
18509#endif
ac1cb8d3 18510 Syntax error
a848cd7e
SC
18511_ACEOF
18512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18514 ac_status=$?
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } >/dev/null; then
18520 if test -s conftest.err; then
18521 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18522 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18523 else
18524 ac_cpp_err=
18525 fi
18526else
18527 ac_cpp_err=yes
18528fi
18529if test -z "$ac_cpp_err"; then
18530 :
18531else
18532 echo "$as_me: failed program was:" >&5
18533sed 's/^/| /' conftest.$ac_ext >&5
18534
18535 # Broken: fails on valid input.
18536continue
18537fi
18538rm -f conftest.err conftest.$ac_ext
18539
18540 # OK, works on sane cases. Now check whether non-existent headers
18541 # can be detected and how.
18542 cat >conftest.$ac_ext <<_ACEOF
18543/* confdefs.h. */
18544_ACEOF
18545cat confdefs.h >>conftest.$ac_ext
18546cat >>conftest.$ac_ext <<_ACEOF
18547/* end confdefs.h. */
18548#include <ac_nonexistent.h>
18549_ACEOF
18550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } >/dev/null; then
18558 if test -s conftest.err; then
18559 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18560 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18561 else
18562 ac_cpp_err=
18563 fi
18564else
18565 ac_cpp_err=yes
18566fi
18567if test -z "$ac_cpp_err"; then
18568 # Broken: success on invalid input.
18569continue
18570else
18571 echo "$as_me: failed program was:" >&5
18572sed 's/^/| /' conftest.$ac_ext >&5
18573
18574 # Passes both tests.
18575ac_preproc_ok=:
18576break
18577fi
18578rm -f conftest.err conftest.$ac_ext
18579
18580done
18581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18582rm -f conftest.err conftest.$ac_ext
18583if $ac_preproc_ok; then
18584 break
18585fi
18586
18587 done
18588 ac_cv_prog_CXXCPP=$CXXCPP
18589
18590fi
18591 CXXCPP=$ac_cv_prog_CXXCPP
18592else
18593 ac_cv_prog_CXXCPP=$CXXCPP
18594fi
18595echo "$as_me:$LINENO: result: $CXXCPP" >&5
18596echo "${ECHO_T}$CXXCPP" >&6
18597ac_preproc_ok=false
18598for ac_cxx_preproc_warn_flag in '' yes
18599do
18600 # Use a header file that comes with gcc, so configuring glibc
18601 # with a fresh cross-compiler works.
18602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18603 # <limits.h> exists even on freestanding compilers.
18604 # On the NeXT, cc -E runs the code through the compiler's parser,
18605 # not just through cpp. "Syntax error" is here to catch this case.
18606 cat >conftest.$ac_ext <<_ACEOF
18607/* confdefs.h. */
18608_ACEOF
18609cat confdefs.h >>conftest.$ac_ext
18610cat >>conftest.$ac_ext <<_ACEOF
18611/* end confdefs.h. */
18612#ifdef __STDC__
18613# include <limits.h>
18614#else
18615# include <assert.h>
18616#endif
ac1cb8d3 18617 Syntax error
a848cd7e
SC
18618_ACEOF
18619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18621 ac_status=$?
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } >/dev/null; then
18627 if test -s conftest.err; then
18628 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18629 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18630 else
18631 ac_cpp_err=
18632 fi
18633else
18634 ac_cpp_err=yes
18635fi
18636if test -z "$ac_cpp_err"; then
18637 :
18638else
18639 echo "$as_me: failed program was:" >&5
18640sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 # Broken: fails on valid input.
18643continue
18644fi
18645rm -f conftest.err conftest.$ac_ext
18646
18647 # OK, works on sane cases. Now check whether non-existent headers
18648 # can be detected and how.
18649 cat >conftest.$ac_ext <<_ACEOF
18650/* confdefs.h. */
18651_ACEOF
18652cat confdefs.h >>conftest.$ac_ext
18653cat >>conftest.$ac_ext <<_ACEOF
18654/* end confdefs.h. */
18655#include <ac_nonexistent.h>
18656_ACEOF
18657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18659 ac_status=$?
18660 grep -v '^ *+' conftest.er1 >conftest.err
18661 rm -f conftest.er1
18662 cat conftest.err >&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } >/dev/null; then
18665 if test -s conftest.err; then
18666 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18667 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18668 else
18669 ac_cpp_err=
18670 fi
18671else
18672 ac_cpp_err=yes
18673fi
18674if test -z "$ac_cpp_err"; then
18675 # Broken: success on invalid input.
18676continue
18677else
18678 echo "$as_me: failed program was:" >&5
18679sed 's/^/| /' conftest.$ac_ext >&5
18680
18681 # Passes both tests.
18682ac_preproc_ok=:
18683break
18684fi
18685rm -f conftest.err conftest.$ac_ext
18686
18687done
18688# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18689rm -f conftest.err conftest.$ac_ext
18690if $ac_preproc_ok; then
18691 :
18692else
18693 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18694See \`config.log' for more details." >&5
18695echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18696See \`config.log' for more details." >&2;}
18697 { (exit 1); exit 1; }; }
18698fi
18699
18700ac_ext=cc
18701ac_cpp='$CXXCPP $CPPFLAGS'
18702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18705
18706
18707
9f45f08e
VS
18708 if test "$cross_compiling" = "yes"; then
18709 cat >>confdefs.h <<\_ACEOF
18710#define wxUSE_IOSTREAMH 1
18711_ACEOF
18712
18713 else
a848cd7e
SC
18714
18715
18716 ac_ext=cc
18717ac_cpp='$CXXCPP $CPPFLAGS'
18718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18721
18722
18723
18724for ac_header in iostream
18725do
18726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18727if eval "test \"\${$as_ac_Header+set}\" = set"; then
18728 echo "$as_me:$LINENO: checking for $ac_header" >&5
18729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18730if eval "test \"\${$as_ac_Header+set}\" = set"; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18732fi
18733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18735else
18736 # Is the header compilable?
18737echo "$as_me:$LINENO: checking $ac_header usability" >&5
18738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18739cat >conftest.$ac_ext <<_ACEOF
18740/* confdefs.h. */
18741_ACEOF
18742cat confdefs.h >>conftest.$ac_ext
18743cat >>conftest.$ac_ext <<_ACEOF
18744/* end confdefs.h. */
18745$ac_includes_default
18746#include <$ac_header>
18747_ACEOF
18748rm -f conftest.$ac_objext
18749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18750 (eval $ac_compile) 2>conftest.er1
a848cd7e 18751 ac_status=$?
ac1cb8d3
VS
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
a848cd7e
SC
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
ac1cb8d3
VS
18757 { ac_try='test -z "$ac_cxx_werror_flag"
18758 || test ! -s conftest.err'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 ac_header_compiler=yes
18771else
18772 echo "$as_me: failed program was:" >&5
18773sed 's/^/| /' conftest.$ac_ext >&5
18774
18775ac_header_compiler=no
18776fi
ac1cb8d3 18777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18779echo "${ECHO_T}$ac_header_compiler" >&6
18780
18781# Is the header present?
18782echo "$as_me:$LINENO: checking $ac_header presence" >&5
18783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18784cat >conftest.$ac_ext <<_ACEOF
18785/* confdefs.h. */
18786_ACEOF
18787cat confdefs.h >>conftest.$ac_ext
18788cat >>conftest.$ac_ext <<_ACEOF
18789/* end confdefs.h. */
18790#include <$ac_header>
18791_ACEOF
18792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } >/dev/null; then
18800 if test -s conftest.err; then
18801 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18802 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18803 else
18804 ac_cpp_err=
18805 fi
18806else
18807 ac_cpp_err=yes
18808fi
18809if test -z "$ac_cpp_err"; then
18810 ac_header_preproc=yes
18811else
18812 echo "$as_me: failed program was:" >&5
18813sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 ac_header_preproc=no
18816fi
18817rm -f conftest.err conftest.$ac_ext
18818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18819echo "${ECHO_T}$ac_header_preproc" >&6
18820
18821# So? What about this header?
ac1cb8d3
VS
18822case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18823 yes:no: )
a848cd7e
SC
18824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18828 ac_header_preproc=yes
a848cd7e 18829 ;;
ac1cb8d3 18830 no:yes:* )
a848cd7e
SC
18831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18843 (
18844 cat <<\_ASBOX
ac1cb8d3
VS
18845## ----------------------------------------- ##
18846## Report this to wx-dev@lists.wxwidgets.org ##
18847## ----------------------------------------- ##
a848cd7e
SC
18848_ASBOX
18849 ) |
18850 sed "s/^/$as_me: WARNING: /" >&2
18851 ;;
18852esac
18853echo "$as_me:$LINENO: checking for $ac_header" >&5
18854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18855if eval "test \"\${$as_ac_Header+set}\" = set"; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18857else
ac1cb8d3 18858 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18859fi
18860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18862
18863fi
18864if test `eval echo '${'$as_ac_Header'}'` = yes; then
18865 cat >>confdefs.h <<_ACEOF
18866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18867_ACEOF
18868
18869fi
18870
18871done
18872
18873
18874 if test "$ac_cv_header_iostream" = "yes" ; then
18875 :
18876 else
18877 cat >>confdefs.h <<\_ACEOF
18878#define wxUSE_IOSTREAMH 1
18879_ACEOF
18880
18881 fi
18882
18883 ac_ext=c
18884ac_cpp='$CPP $CPPFLAGS'
18885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18887ac_compiler_gnu=$ac_cv_c_compiler_gnu
18888
9f45f08e 18889 fi
a848cd7e
SC
18890
18891
18892
18893 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18894echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18895if test "${wx_cv_cpp_bool+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18897else
18898
18899
18900
18901 ac_ext=cc
18902ac_cpp='$CXXCPP $CPPFLAGS'
18903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18906
18907
18908 cat >conftest.$ac_ext <<_ACEOF
18909/* confdefs.h. */
18910_ACEOF
18911cat confdefs.h >>conftest.$ac_ext
18912cat >>conftest.$ac_ext <<_ACEOF
18913/* end confdefs.h. */
18914
18915
18916int
18917main ()
18918{
18919
18920 bool b = true;
18921
18922 return 0;
18923
18924 ;
18925 return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext
18929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18930 (eval $ac_compile) 2>conftest.er1
a848cd7e 18931 ac_status=$?
ac1cb8d3
VS
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
a848cd7e
SC
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
ac1cb8d3
VS
18937 { ac_try='test -z "$ac_cxx_werror_flag"
18938 || test ! -s conftest.err'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; } &&
18944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950
18951 wx_cv_cpp_bool=yes
18952
18953else
18954 echo "$as_me: failed program was:" >&5
18955sed 's/^/| /' conftest.$ac_ext >&5
18956
18957
18958 wx_cv_cpp_bool=no
18959
18960
18961fi
ac1cb8d3 18962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18963
18964 ac_ext=c
18965ac_cpp='$CPP $CPPFLAGS'
18966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968ac_compiler_gnu=$ac_cv_c_compiler_gnu
18969
18970
18971fi
18972echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18973echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18974
18975 if test "$wx_cv_cpp_bool" = "yes"; then
18976 cat >>confdefs.h <<\_ACEOF
18977#define HAVE_BOOL 1
18978_ACEOF
18979
18980 fi
18981
18982
18983
18984 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18985echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18986if test "${wx_cv_explicit+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18988else
18989
18990
18991
18992 ac_ext=cc
18993ac_cpp='$CXXCPP $CPPFLAGS'
18994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18997
18998
18999 cat >conftest.$ac_ext <<_ACEOF
19000/* confdefs.h. */
19001_ACEOF
19002cat confdefs.h >>conftest.$ac_ext
19003cat >>conftest.$ac_ext <<_ACEOF
19004/* end confdefs.h. */
19005
19006 class Foo { public: explicit Foo(int) {} };
19007
19008int
19009main ()
19010{
19011
19012 return 0;
19013
19014 ;
19015 return 0;
19016}
19017_ACEOF
19018rm -f conftest.$ac_objext
19019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19020 (eval $ac_compile) 2>conftest.er1
a848cd7e 19021 ac_status=$?
ac1cb8d3
VS
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
a848cd7e
SC
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
ac1cb8d3
VS
19027 { ac_try='test -z "$ac_cxx_werror_flag"
19028 || test ! -s conftest.err'
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); }; } &&
19034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040
19041 cat >conftest.$ac_ext <<_ACEOF
19042/* confdefs.h. */
19043_ACEOF
19044cat confdefs.h >>conftest.$ac_ext
19045cat >>conftest.$ac_ext <<_ACEOF
19046/* end confdefs.h. */
19047
19048 class Foo { public: explicit Foo(int) {} };
19049 static void TakeFoo(const Foo& foo) { }
19050
19051int
19052main ()
19053{
19054
19055 TakeFoo(17);
19056 return 0;
19057
19058 ;
19059 return 0;
19060}
19061_ACEOF
19062rm -f conftest.$ac_objext
19063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19064 (eval $ac_compile) 2>conftest.er1
a848cd7e 19065 ac_status=$?
ac1cb8d3
VS
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
a848cd7e
SC
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
ac1cb8d3
VS
19071 { ac_try='test -z "$ac_cxx_werror_flag"
19072 || test ! -s conftest.err'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
19084 wx_cv_explicit=no
19085else
19086 echo "$as_me: failed program was:" >&5
19087sed 's/^/| /' conftest.$ac_ext >&5
19088
19089wx_cv_explicit=yes
19090
19091fi
ac1cb8d3 19092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19093
19094else
19095 echo "$as_me: failed program was:" >&5
19096sed 's/^/| /' conftest.$ac_ext >&5
19097
19098wx_cv_explicit=no
19099
19100fi
ac1cb8d3 19101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19102
19103 ac_ext=c
19104ac_cpp='$CPP $CPPFLAGS'
19105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19107ac_compiler_gnu=$ac_cv_c_compiler_gnu
19108
19109
19110fi
19111echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19112echo "${ECHO_T}$wx_cv_explicit" >&6
19113
19114 if test "$wx_cv_explicit" = "yes"; then
19115 cat >>confdefs.h <<\_ACEOF
19116#define HAVE_EXPLICIT 1
19117_ACEOF
19118
19119 fi
19120
19121
19122echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19123echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19124if test "${ac_cv_cxx_const_cast+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19126else
19127
19128
19129 ac_ext=cc
19130ac_cpp='$CXXCPP $CPPFLAGS'
19131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19134
19135 cat >conftest.$ac_ext <<_ACEOF
19136/* confdefs.h. */
19137_ACEOF
19138cat confdefs.h >>conftest.$ac_ext
19139cat >>conftest.$ac_ext <<_ACEOF
19140/* end confdefs.h. */
19141
19142int
19143main ()
19144{
19145int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19146 ;
19147 return 0;
19148}
19149_ACEOF
19150rm -f conftest.$ac_objext
19151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19152 (eval $ac_compile) 2>conftest.er1
a848cd7e 19153 ac_status=$?
ac1cb8d3
VS
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
a848cd7e
SC
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
ac1cb8d3
VS
19159 { ac_try='test -z "$ac_cxx_werror_flag"
19160 || test ! -s conftest.err'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; } &&
19166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_cv_cxx_const_cast=yes
19173else
19174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
19177ac_cv_cxx_const_cast=no
19178fi
ac1cb8d3 19179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19180 ac_ext=c
19181ac_cpp='$CPP $CPPFLAGS'
19182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19184ac_compiler_gnu=$ac_cv_c_compiler_gnu
19185
19186
19187fi
19188echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19189echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19190if test "$ac_cv_cxx_const_cast" = yes; then
19191
19192cat >>confdefs.h <<\_ACEOF
19193#define HAVE_CONST_CAST
19194_ACEOF
19195
19196fi
19197
19198echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19199echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19200if test "${ac_cv_cxx_static_cast+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19202else
19203
19204
19205 ac_ext=cc
19206ac_cpp='$CXXCPP $CPPFLAGS'
19207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19210
19211 cat >conftest.$ac_ext <<_ACEOF
19212/* confdefs.h. */
19213_ACEOF
19214cat confdefs.h >>conftest.$ac_ext
19215cat >>conftest.$ac_ext <<_ACEOF
19216/* end confdefs.h. */
19217#include <typeinfo>
19218class Base { public : Base () {} virtual void f () = 0; };
19219class Derived : public Base { public : Derived () {} virtual void f () {} };
19220int g (Derived&) { return 0; }
19221int
19222main ()
19223{
19224
19225Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19226 ;
19227 return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19232 (eval $ac_compile) 2>conftest.er1
a848cd7e 19233 ac_status=$?
ac1cb8d3
VS
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
a848cd7e
SC
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
ac1cb8d3
VS
19239 { ac_try='test -z "$ac_cxx_werror_flag"
19240 || test ! -s conftest.err'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
19252 ac_cv_cxx_static_cast=yes
19253else
19254 echo "$as_me: failed program was:" >&5
19255sed 's/^/| /' conftest.$ac_ext >&5
19256
19257ac_cv_cxx_static_cast=no
19258fi
ac1cb8d3 19259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19260 ac_ext=c
19261ac_cpp='$CPP $CPPFLAGS'
19262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19264ac_compiler_gnu=$ac_cv_c_compiler_gnu
19265
19266
19267fi
19268echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19269echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19270if test "$ac_cv_cxx_static_cast" = yes; then
19271
19272cat >>confdefs.h <<\_ACEOF
19273#define HAVE_STATIC_CAST
19274_ACEOF
19275
19276fi
19277
19278
19279if test "$wxUSE_STL" = "yes"; then
19280 ac_ext=cc
19281ac_cpp='$CXXCPP $CPPFLAGS'
19282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19285
19286
19287 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19288echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
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 <string>
19296 #include <functional>
19297 #include <algorithm>
19298 #include <vector>
19299 #include <list>
19300int
19301main ()
19302{
19303std::vector<int> moo;
19304 std::list<int> foo;
19305 std::vector<int>::iterator it =
19306 std::find_if(moo.begin(), moo.end(),
19307 std::bind2nd(std::less<int>(), 3));
19308 ;
19309 return 0;
19310}
19311_ACEOF
19312rm -f conftest.$ac_objext
19313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19314 (eval $ac_compile) 2>conftest.er1
a848cd7e 19315 ac_status=$?
ac1cb8d3
VS
19316 grep -v '^ *+' conftest.er1 >conftest.err
19317 rm -f conftest.er1
19318 cat conftest.err >&5
a848cd7e
SC
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } &&
ac1cb8d3
VS
19321 { ac_try='test -z "$ac_cxx_werror_flag"
19322 || test ! -s conftest.err'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; } &&
19328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 echo "$as_me:$LINENO: result: yes" >&5
19335echo "${ECHO_T}yes" >&6
19336else
19337 echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
19340echo "$as_me:$LINENO: result: no" >&5
19341echo "${ECHO_T}no" >&6
19342 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19343echo "$as_me: error: Basic STL functionality missing" >&2;}
19344 { (exit 1); exit 1; }; }
19345fi
ac1cb8d3 19346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19347
19348 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19349echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19351/* confdefs.h. */
19352_ACEOF
19353cat confdefs.h >>conftest.$ac_ext
19354cat >>conftest.$ac_ext <<_ACEOF
19355/* end confdefs.h. */
19356#include <string>
19357int
19358main ()
19359{
19360std::wstring foo;
19361 ;
19362 return 0;
19363}
19364_ACEOF
19365rm -f conftest.$ac_objext
19366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19367 (eval $ac_compile) 2>conftest.er1
a848cd7e 19368 ac_status=$?
ac1cb8d3
VS
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
a848cd7e
SC
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } &&
ac1cb8d3
VS
19374 { ac_try='test -z "$ac_cxx_werror_flag"
19375 || test ! -s conftest.err'
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377 (eval $ac_try) 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; } &&
19381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
19387 echo "$as_me:$LINENO: result: yes" >&5
19388echo "${ECHO_T}yes" >&6
19389 cat >>confdefs.h <<\_ACEOF
19390#define HAVE_STD_WSTRING 1
19391_ACEOF
19392
19393else
19394 echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
19397echo "$as_me:$LINENO: result: no" >&5
19398echo "${ECHO_T}no" >&6
19399fi
ac1cb8d3 19400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19401
19402 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19403echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19404 cat >conftest.$ac_ext <<_ACEOF
19405/* confdefs.h. */
19406_ACEOF
19407cat confdefs.h >>conftest.$ac_ext
19408cat >>conftest.$ac_ext <<_ACEOF
19409/* end confdefs.h. */
19410#include <string>
19411int
19412main ()
19413{
19414std::string foo, bar;
19415 foo.compare(bar);
19416 foo.compare(1, 1, bar);
19417 foo.compare(1, 1, bar, 1, 1);
19418 foo.compare("");
19419 foo.compare(1, 1, "");
19420 foo.compare(1, 1, "", 2);
19421 ;
19422 return 0;
19423}
19424_ACEOF
19425rm -f conftest.$ac_objext
19426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19427 (eval $ac_compile) 2>conftest.er1
a848cd7e 19428 ac_status=$?
ac1cb8d3
VS
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
a848cd7e
SC
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
ac1cb8d3
VS
19434 { ac_try='test -z "$ac_cxx_werror_flag"
19435 || test ! -s conftest.err'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 echo "$as_me:$LINENO: result: yes" >&5
19448echo "${ECHO_T}yes" >&6
19449 cat >>confdefs.h <<\_ACEOF
19450#define HAVE_STD_STRING_COMPARE 1
19451_ACEOF
19452
19453else
19454 echo "$as_me: failed program was:" >&5
19455sed 's/^/| /' conftest.$ac_ext >&5
19456
19457echo "$as_me:$LINENO: result: no" >&5
19458echo "${ECHO_T}no" >&6
19459fi
ac1cb8d3 19460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19461
19462 if test "${ac_cv_header_hash_map+set}" = set; then
19463 echo "$as_me:$LINENO: checking for hash_map" >&5
19464echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19465if test "${ac_cv_header_hash_map+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467fi
19468echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19469echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19470else
19471 # Is the header compilable?
19472echo "$as_me:$LINENO: checking hash_map usability" >&5
19473echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19474cat >conftest.$ac_ext <<_ACEOF
19475/* confdefs.h. */
19476_ACEOF
19477cat confdefs.h >>conftest.$ac_ext
19478cat >>conftest.$ac_ext <<_ACEOF
19479/* end confdefs.h. */
19480$ac_includes_default
19481#include <hash_map>
19482_ACEOF
19483rm -f conftest.$ac_objext
19484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19485 (eval $ac_compile) 2>conftest.er1
bdcade0a 19486 ac_status=$?
ac1cb8d3
VS
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
bdcade0a
MB
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
ac1cb8d3
VS
19492 { ac_try='test -z "$ac_cxx_werror_flag"
19493 || test ! -s conftest.err'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; } &&
19499 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
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); }; }; then
19505 ac_header_compiler=yes
19506else
19507 echo "$as_me: failed program was:" >&5
19508sed 's/^/| /' conftest.$ac_ext >&5
19509
19510ac_header_compiler=no
19511fi
ac1cb8d3 19512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19514echo "${ECHO_T}$ac_header_compiler" >&6
19515
19516# Is the header present?
19517echo "$as_me:$LINENO: checking hash_map presence" >&5
19518echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19519cat >conftest.$ac_ext <<_ACEOF
19520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
19524/* end confdefs.h. */
19525#include <hash_map>
19526_ACEOF
19527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } >/dev/null; then
19535 if test -s conftest.err; then
19536 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19538 else
19539 ac_cpp_err=
19540 fi
19541else
19542 ac_cpp_err=yes
19543fi
19544if test -z "$ac_cpp_err"; then
19545 ac_header_preproc=yes
19546else
19547 echo "$as_me: failed program was:" >&5
19548sed 's/^/| /' conftest.$ac_ext >&5
19549
19550 ac_header_preproc=no
19551fi
19552rm -f conftest.err conftest.$ac_ext
19553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19554echo "${ECHO_T}$ac_header_preproc" >&6
19555
19556# So? What about this header?
ac1cb8d3
VS
19557case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19558 yes:no: )
bdcade0a
MB
19559 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19560echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19561 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19562echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19563 ac_header_preproc=yes
bdcade0a 19564 ;;
ac1cb8d3 19565 no:yes:* )
bdcade0a
MB
19566 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19567echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19568 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19569echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19570 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19571echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19573echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19574 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19575echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19576 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19577echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19578 (
19579 cat <<\_ASBOX
ac1cb8d3
VS
19580## ----------------------------------------- ##
19581## Report this to wx-dev@lists.wxwidgets.org ##
19582## ----------------------------------------- ##
bdcade0a
MB
19583_ASBOX
19584 ) |
19585 sed "s/^/$as_me: WARNING: /" >&2
19586 ;;
19587esac
19588echo "$as_me:$LINENO: checking for hash_map" >&5
19589echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19590if test "${ac_cv_header_hash_map+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592else
19593 ac_cv_header_hash_map=$ac_header_preproc
19594fi
19595echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19596echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19597
19598fi
19599if test $ac_cv_header_hash_map = yes; then
19600 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19601echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19602 cat >conftest.$ac_ext <<_ACEOF
19603/* confdefs.h. */
19604_ACEOF
19605cat confdefs.h >>conftest.$ac_ext
19606cat >>conftest.$ac_ext <<_ACEOF
19607/* end confdefs.h. */
19608#include <hash_map>
19609 #include <hash_set>
19610int
19611main ()
19612{
19613std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19614 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19615 ;
19616 return 0;
19617}
19618_ACEOF
19619rm -f conftest.$ac_objext
19620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19621 (eval $ac_compile) 2>conftest.er1
bdcade0a 19622 ac_status=$?
ac1cb8d3
VS
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
bdcade0a
MB
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
ac1cb8d3
VS
19628 { ac_try='test -z "$ac_cxx_werror_flag"
19629 || test ! -s conftest.err'
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; } &&
19635 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 echo "$as_me:$LINENO: result: yes" >&5
19642echo "${ECHO_T}yes" >&6
19643 cat >>confdefs.h <<\_ACEOF
19644#define HAVE_HASH_MAP 1
19645_ACEOF
19646
19647 cat >>confdefs.h <<\_ACEOF
19648#define HAVE_STD_HASH_MAP 1
19649_ACEOF
19650
19651else
19652 echo "$as_me: failed program was:" >&5
19653sed 's/^/| /' conftest.$ac_ext >&5
19654
19655echo "$as_me:$LINENO: result: no" >&5
19656echo "${ECHO_T}no" >&6
19657fi
ac1cb8d3 19658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19659
19660fi
19661
19662
19663
19664 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19665 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19666echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19667if test "${ac_cv_header_ext_hash_map+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669fi
19670echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19671echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19672else
19673 # Is the header compilable?
19674echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19675echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19676cat >conftest.$ac_ext <<_ACEOF
19677/* confdefs.h. */
19678_ACEOF
19679cat confdefs.h >>conftest.$ac_ext
19680cat >>conftest.$ac_ext <<_ACEOF
19681/* end confdefs.h. */
19682$ac_includes_default
19683#include <ext/hash_map>
19684_ACEOF
19685rm -f conftest.$ac_objext
19686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19687 (eval $ac_compile) 2>conftest.er1
bdcade0a 19688 ac_status=$?
ac1cb8d3
VS
19689 grep -v '^ *+' conftest.er1 >conftest.err
19690 rm -f conftest.er1
19691 cat conftest.err >&5
bdcade0a
MB
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } &&
ac1cb8d3
VS
19694 { ac_try='test -z "$ac_cxx_werror_flag"
19695 || test ! -s conftest.err'
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; } &&
19701 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19707 ac_header_compiler=yes
19708else
19709 echo "$as_me: failed program was:" >&5
19710sed 's/^/| /' conftest.$ac_ext >&5
19711
19712ac_header_compiler=no
19713fi
ac1cb8d3 19714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19716echo "${ECHO_T}$ac_header_compiler" >&6
19717
19718# Is the header present?
19719echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19720echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19721cat >conftest.$ac_ext <<_ACEOF
19722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
19726/* end confdefs.h. */
19727#include <ext/hash_map>
19728_ACEOF
19729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19731 ac_status=$?
19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } >/dev/null; then
19737 if test -s conftest.err; then
19738 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19739 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19740 else
19741 ac_cpp_err=
19742 fi
19743else
19744 ac_cpp_err=yes
19745fi
19746if test -z "$ac_cpp_err"; then
19747 ac_header_preproc=yes
19748else
19749 echo "$as_me: failed program was:" >&5
19750sed 's/^/| /' conftest.$ac_ext >&5
19751
19752 ac_header_preproc=no
19753fi
19754rm -f conftest.err conftest.$ac_ext
19755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19756echo "${ECHO_T}$ac_header_preproc" >&6
19757
19758# So? What about this header?
ac1cb8d3
VS
19759case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19760 yes:no: )
bdcade0a
MB
19761 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19762echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19763 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19764echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19765 ac_header_preproc=yes
bdcade0a 19766 ;;
ac1cb8d3 19767 no:yes:* )
bdcade0a
MB
19768 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19769echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19770 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19771echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19772 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19773echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19774 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19775echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19776 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19777echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19778 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19779echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19780 (
19781 cat <<\_ASBOX
ac1cb8d3
VS
19782## ----------------------------------------- ##
19783## Report this to wx-dev@lists.wxwidgets.org ##
19784## ----------------------------------------- ##
bdcade0a
MB
19785_ASBOX
19786 ) |
19787 sed "s/^/$as_me: WARNING: /" >&2
19788 ;;
19789esac
19790echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19791echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19792if test "${ac_cv_header_ext_hash_map+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19794else
19795 ac_cv_header_ext_hash_map=$ac_header_preproc
19796fi
19797echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19798echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19799
19800fi
19801if test $ac_cv_header_ext_hash_map = yes; then
19802 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19803echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19804 cat >conftest.$ac_ext <<_ACEOF
19805/* confdefs.h. */
19806_ACEOF
19807cat confdefs.h >>conftest.$ac_ext
19808cat >>conftest.$ac_ext <<_ACEOF
19809/* end confdefs.h. */
19810#include <ext/hash_map>
19811 #include <ext/hash_set>
19812int
19813main ()
19814{
19815__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19816 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19817 ;
19818 return 0;
19819}
19820_ACEOF
19821rm -f conftest.$ac_objext
19822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19823 (eval $ac_compile) 2>conftest.er1
bdcade0a 19824 ac_status=$?
ac1cb8d3
VS
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
bdcade0a
MB
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } &&
ac1cb8d3
VS
19830 { ac_try='test -z "$ac_cxx_werror_flag"
19831 || test ! -s conftest.err'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 echo "$as_me:$LINENO: result: yes" >&5
19844echo "${ECHO_T}yes" >&6
19845 cat >>confdefs.h <<\_ACEOF
19846#define HAVE_EXT_HASH_MAP 1
19847_ACEOF
19848
19849 cat >>confdefs.h <<\_ACEOF
19850#define HAVE_GNU_CXX_HASH_MAP 1
19851_ACEOF
19852
19853else
19854 echo "$as_me: failed program was:" >&5
19855sed 's/^/| /' conftest.$ac_ext >&5
19856
19857echo "$as_me:$LINENO: result: no" >&5
19858echo "${ECHO_T}no" >&6
19859fi
ac1cb8d3 19860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19861
19862fi
19863
19864
a848cd7e
SC
19865
19866 ac_ext=c
19867ac_cpp='$CPP $CPPFLAGS'
19868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870ac_compiler_gnu=$ac_cv_c_compiler_gnu
19871
19872fi
19873
19874
19875SEARCH_INCLUDE="\
19876 /usr/local/include \
19877 \
19878 /usr/Motif-2.1/include \
19879 /usr/Motif-1.2/include \
19880 /usr/include/Motif1.2 \
19881 /opt/xpm/include/X11 \
19882 /opt/GBxpm/include/ \
19883 /opt/GBxpm/X11/include/ \
19884 \
19885 /usr/dt/include \
19886 /usr/openwin/include \
19887 \
19888 /usr/include/Xm \
19889 \
19890 /usr/X11R6/include \
19891 /usr/X11R6.4/include \
19892 /usr/X11R5/include \
19893 /usr/X11R4/include \
19894 \
19895 /usr/include/X11R6 \
19896 /usr/include/X11R5 \
19897 /usr/include/X11R4 \
19898 \
19899 /usr/local/X11R6/include \
19900 /usr/local/X11R5/include \
19901 /usr/local/X11R4/include \
19902 \
19903 /usr/local/include/X11R6 \
19904 /usr/local/include/X11R5 \
19905 /usr/local/include/X11R4 \
19906 \
19907 /usr/X11/include \
19908 /usr/include/X11 \
19909 /usr/local/X11/include \
19910 /usr/local/include/X11 \
19911 \
19912 /usr/X386/include \
19913 /usr/x386/include \
19914 /usr/XFree86/include/X11 \
19915 \
19916 X:/XFree86/include \
19917 X:/XFree86/include/X11 \
19918 \
19919 /usr/include/gtk \
19920 /usr/local/include/gtk \
19921 /usr/include/glib \
19922 /usr/local/include/glib \
19923 \
19924 /usr/include/qt \
19925 /usr/local/include/qt \
19926 \
19927 /usr/local/arm/3.3.2/include \
19928 \
19929 /usr/include/windows \
19930 /usr/include/wine \
19931 /usr/local/include/wine \
19932 \
19933 /usr/unsupported/include \
19934 /usr/athena/include \
19935 /usr/local/x11r5/include \
19936 /usr/lpp/Xamples/include \
19937 \
19938 /usr/openwin/share/include"
19939
19940SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19941
19942
19943cat >confcache <<\_ACEOF
19944# This file is a shell script that caches the results of configure
19945# tests run on this system so they can be shared between configure
19946# scripts and configure runs, see configure's option --config-cache.
19947# It is not useful on other systems. If it contains results you don't
19948# want to keep, you may remove or edit it.
19949#
19950# config.status only pays attention to the cache file if you give it
19951# the --recheck option to rerun configure.
19952#
19953# `ac_cv_env_foo' variables (set or unset) will be overridden when
19954# loading this file, other *unset* `ac_cv_foo' will be assigned the
19955# following values.
19956
19957_ACEOF
19958
19959# The following way of writing the cache mishandles newlines in values,
19960# but we know of no workaround that is simple, portable, and efficient.
19961# So, don't put newlines in cache variables' values.
19962# Ultrix sh set writes to stderr and can't be redirected directly,
19963# and sets the high bit in the cache file unless we assign to the vars.
19964{
19965 (set) 2>&1 |
19966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19967 *ac_space=\ *)
19968 # `set' does not quote correctly, so add quotes (double-quote
19969 # substitution turns \\\\ into \\, and sed turns \\ into \).
19970 sed -n \
ac1cb8d3
VS
19971 "s/'/'\\\\''/g;
19972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19973 ;;
19974 *)
19975 # `set' quotes correctly as required by POSIX, so do not add quotes.
19976 sed -n \
ac1cb8d3 19977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19978 ;;
19979 esac;
19980} |
19981 sed '
19982 t clear
19983 : clear
19984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19985 t end
19986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19987 : end' >>confcache
19988if diff $cache_file confcache >/dev/null 2>&1; then :; else
19989 if test -w $cache_file; then
19990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19991 cat confcache >$cache_file
19992 else
19993 echo "not updating unwritable cache $cache_file"
19994 fi
19995fi
19996rm -f confcache
19997
19998if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19999 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20000echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20001if test "${wx_cv_lib_glibc21+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003else
20004
20005 cat >conftest.$ac_ext <<_ACEOF
20006/* confdefs.h. */
20007_ACEOF
20008cat confdefs.h >>conftest.$ac_ext
20009cat >>conftest.$ac_ext <<_ACEOF
20010/* end confdefs.h. */
20011#include <features.h>
20012int
20013main ()
20014{
20015
20016 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20017 #error not glibc2.1
20018 #endif
20019
20020 ;
20021 return 0;
20022}
20023_ACEOF
20024rm -f conftest.$ac_objext
20025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20026 (eval $ac_compile) 2>conftest.er1
a848cd7e 20027 ac_status=$?
ac1cb8d3
VS
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
a848cd7e
SC
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
ac1cb8d3
VS
20033 { ac_try='test -z "$ac_c_werror_flag"
20034 || test ! -s conftest.err'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; } &&
20040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
20046
20047 wx_cv_lib_glibc21=yes
20048
20049else
20050 echo "$as_me: failed program was:" >&5
20051sed 's/^/| /' conftest.$ac_ext >&5
20052
20053
20054 wx_cv_lib_glibc21=no
20055
20056
20057fi
ac1cb8d3 20058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20059
20060fi
20061echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20062echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20063 if test "$wx_cv_lib_glibc21" = "yes"; then
20064 cat >>confdefs.h <<\_ACEOF
20065#define wxHAVE_GLIBC2 1
20066_ACEOF
20067
20068 fi
20069fi
20070
20071if test "x$wx_cv_lib_glibc21" = "xyes"; then
20072 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20073 cat >>confdefs.h <<\_ACEOF
20074#define _GNU_SOURCE 1
20075_ACEOF
20076
20077 fi
20078fi
20079
20080
20081
20082if test "$wxUSE_REGEX" != "no"; then
20083 cat >>confdefs.h <<\_ACEOF
20084#define wxUSE_REGEX 1
20085_ACEOF
20086
20087
20088 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20089 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20090echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20091 wxUSE_REGEX=builtin
20092 fi
20093
20094 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20095 if test "${ac_cv_header_regex_h+set}" = set; then
20096 echo "$as_me:$LINENO: checking for regex.h" >&5
20097echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20098if test "${ac_cv_header_regex_h+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20100fi
20101echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20102echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20103else
20104 # Is the header compilable?
20105echo "$as_me:$LINENO: checking regex.h usability" >&5
20106echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20107cat >conftest.$ac_ext <<_ACEOF
20108/* confdefs.h. */
20109_ACEOF
20110cat confdefs.h >>conftest.$ac_ext
20111cat >>conftest.$ac_ext <<_ACEOF
20112/* end confdefs.h. */
20113$ac_includes_default
20114#include <regex.h>
20115_ACEOF
20116rm -f conftest.$ac_objext
20117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20118 (eval $ac_compile) 2>conftest.er1
a848cd7e 20119 ac_status=$?
ac1cb8d3
VS
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
a848cd7e
SC
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
ac1cb8d3
VS
20125 { ac_try='test -z "$ac_c_werror_flag"
20126 || test ! -s conftest.err'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; } &&
20132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ac_header_compiler=yes
20139else
20140 echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
20143ac_header_compiler=no
20144fi
ac1cb8d3 20145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20147echo "${ECHO_T}$ac_header_compiler" >&6
20148
20149# Is the header present?
20150echo "$as_me:$LINENO: checking regex.h presence" >&5
20151echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20152cat >conftest.$ac_ext <<_ACEOF
20153/* confdefs.h. */
20154_ACEOF
20155cat confdefs.h >>conftest.$ac_ext
20156cat >>conftest.$ac_ext <<_ACEOF
20157/* end confdefs.h. */
20158#include <regex.h>
20159_ACEOF
20160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } >/dev/null; then
20168 if test -s conftest.err; then
20169 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20171 else
20172 ac_cpp_err=
20173 fi
20174else
20175 ac_cpp_err=yes
20176fi
20177if test -z "$ac_cpp_err"; then
20178 ac_header_preproc=yes
20179else
20180 echo "$as_me: failed program was:" >&5
20181sed 's/^/| /' conftest.$ac_ext >&5
20182
20183 ac_header_preproc=no
20184fi
20185rm -f conftest.err conftest.$ac_ext
20186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20187echo "${ECHO_T}$ac_header_preproc" >&6
20188
20189# So? What about this header?
ac1cb8d3
VS
20190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20191 yes:no: )
a848cd7e
SC
20192 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20193echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20194 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20195echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20196 ac_header_preproc=yes
a848cd7e 20197 ;;
ac1cb8d3 20198 no:yes:* )
a848cd7e
SC
20199 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20200echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20201 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20202echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20203 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20204echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20206echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20207 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20208echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20209 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20210echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20211 (
20212 cat <<\_ASBOX
ac1cb8d3
VS
20213## ----------------------------------------- ##
20214## Report this to wx-dev@lists.wxwidgets.org ##
20215## ----------------------------------------- ##
a848cd7e
SC
20216_ASBOX
20217 ) |
20218 sed "s/^/$as_me: WARNING: /" >&2
20219 ;;
20220esac
20221echo "$as_me:$LINENO: checking for regex.h" >&5
20222echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20223if test "${ac_cv_header_regex_h+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225else
20226 ac_cv_header_regex_h=$ac_header_preproc
20227fi
20228echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20229echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20230
20231fi
20232if test $ac_cv_header_regex_h = yes; then
20233
20234for ac_func in regcomp
20235do
20236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20237echo "$as_me:$LINENO: checking for $ac_func" >&5
20238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20239if eval "test \"\${$as_ac_var+set}\" = set"; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20241else
20242 cat >conftest.$ac_ext <<_ACEOF
20243/* confdefs.h. */
20244_ACEOF
20245cat confdefs.h >>conftest.$ac_ext
20246cat >>conftest.$ac_ext <<_ACEOF
20247/* end confdefs.h. */
ac1cb8d3
VS
20248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20250#define $ac_func innocuous_$ac_func
20251
a848cd7e
SC
20252/* System header to define __stub macros and hopefully few prototypes,
20253 which can conflict with char $ac_func (); below.
20254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20255 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20256
a848cd7e
SC
20257#ifdef __STDC__
20258# include <limits.h>
20259#else
20260# include <assert.h>
20261#endif
ac1cb8d3
VS
20262
20263#undef $ac_func
20264
a848cd7e
SC
20265/* Override any gcc2 internal prototype to avoid an error. */
20266#ifdef __cplusplus
20267extern "C"
20268{
20269#endif
20270/* We use char because int might match the return type of a gcc2
20271 builtin and then its argument prototype would still apply. */
20272char $ac_func ();
20273/* The GNU C library defines this for functions which it implements
20274 to always fail with ENOSYS. Some functions are actually named
20275 something starting with __ and the normal name is an alias. */
20276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20277choke me
20278#else
20279char (*f) () = $ac_func;
20280#endif
20281#ifdef __cplusplus
20282}
20283#endif
20284
20285int
20286main ()
20287{
20288return f != $ac_func;
20289 ;
20290 return 0;
20291}
20292_ACEOF
20293rm -f conftest.$ac_objext conftest$ac_exeext
20294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20295 (eval $ac_link) 2>conftest.er1
a848cd7e 20296 ac_status=$?
ac1cb8d3
VS
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
a848cd7e
SC
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
ac1cb8d3
VS
20302 { ac_try='test -z "$ac_c_werror_flag"
20303 || test ! -s conftest.err'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } &&
20309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 eval "$as_ac_var=yes"
20316else
20317 echo "$as_me: failed program was:" >&5
20318sed 's/^/| /' conftest.$ac_ext >&5
20319
20320eval "$as_ac_var=no"
20321fi
ac1cb8d3
VS
20322rm -f conftest.err conftest.$ac_objext \
20323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20324fi
20325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20327if test `eval echo '${'$as_ac_var'}'` = yes; then
20328 cat >>confdefs.h <<_ACEOF
20329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20330_ACEOF
20331
20332fi
20333done
20334
20335fi
20336
20337
20338
20339 if test "x$ac_cv_func_regcomp" != "xyes"; then
20340 if test "$wxUSE_REGEX" = "sys" ; then
20341 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20342echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20343 { (exit 1); exit 1; }; }
20344 else
20345 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20346echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20347 wxUSE_REGEX=builtin
20348 fi
20349 else
20350 wxUSE_REGEX=sys
20351 cat >>confdefs.h <<\_ACEOF
20352#define WX_NO_REGEX_ADVANCED 1
20353_ACEOF
20354
20355 fi
20356 fi
20357fi
20358
20359
20360ZLIB_LINK=
20361if test "$wxUSE_ZLIB" != "no" ; then
20362 cat >>confdefs.h <<\_ACEOF
20363#define wxUSE_ZLIB 1
20364_ACEOF
20365
20366
20367 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20368 if test "$USE_DARWIN" = 1; then
20369 system_zlib_h_ok="yes"
20370 else
20371 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20372echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20373if test "${ac_cv_header_zlib_h+set}" = set; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20375else
20376 if test "$cross_compiling" = yes; then
20377 unset ac_cv_header_zlib_h
20378
20379else
20380 cat >conftest.$ac_ext <<_ACEOF
20381/* confdefs.h. */
20382_ACEOF
20383cat confdefs.h >>conftest.$ac_ext
20384cat >>conftest.$ac_ext <<_ACEOF
20385/* end confdefs.h. */
20386
20387 #include <zlib.h>
20388 #include <stdio.h>
20389
20390 int main()
20391 {
20392 FILE *f=fopen("conftestval", "w");
20393 if (!f) exit(1);
20394 fprintf(f, "%s",
20395 ZLIB_VERSION[0] == '1' &&
20396 (ZLIB_VERSION[2] > '1' ||
20397 (ZLIB_VERSION[2] == '1' &&
20398 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20399 exit(0);
20400 }
20401
20402_ACEOF
20403rm -f conftest$ac_exeext
20404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20405 (eval $ac_link) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_cv_header_zlib_h=`cat conftestval`
20415else
20416 echo "$as_me: program exited with status $ac_status" >&5
20417echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420( exit $ac_status )
20421ac_cv_header_zlib_h=no
20422fi
ac1cb8d3 20423rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20424fi
20425
20426fi
20427echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20428echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20429 if test "${ac_cv_header_zlib_h+set}" = set; then
20430 echo "$as_me:$LINENO: checking for zlib.h" >&5
20431echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20432if test "${ac_cv_header_zlib_h+set}" = set; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20434fi
20435echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20436echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20437else
20438 # Is the header compilable?
20439echo "$as_me:$LINENO: checking zlib.h usability" >&5
20440echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20441cat >conftest.$ac_ext <<_ACEOF
20442/* confdefs.h. */
20443_ACEOF
20444cat confdefs.h >>conftest.$ac_ext
20445cat >>conftest.$ac_ext <<_ACEOF
20446/* end confdefs.h. */
20447$ac_includes_default
20448#include <zlib.h>
20449_ACEOF
20450rm -f conftest.$ac_objext
20451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20452 (eval $ac_compile) 2>conftest.er1
a848cd7e 20453 ac_status=$?
ac1cb8d3
VS
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
a848cd7e
SC
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
ac1cb8d3
VS
20459 { ac_try='test -z "$ac_c_werror_flag"
20460 || test ! -s conftest.err'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 ac_header_compiler=yes
20473else
20474 echo "$as_me: failed program was:" >&5
20475sed 's/^/| /' conftest.$ac_ext >&5
20476
20477ac_header_compiler=no
20478fi
ac1cb8d3 20479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20481echo "${ECHO_T}$ac_header_compiler" >&6
20482
20483# Is the header present?
20484echo "$as_me:$LINENO: checking zlib.h presence" >&5
20485echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20486cat >conftest.$ac_ext <<_ACEOF
20487/* confdefs.h. */
20488_ACEOF
20489cat confdefs.h >>conftest.$ac_ext
20490cat >>conftest.$ac_ext <<_ACEOF
20491/* end confdefs.h. */
20492#include <zlib.h>
20493_ACEOF
20494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20496 ac_status=$?
20497 grep -v '^ *+' conftest.er1 >conftest.err
20498 rm -f conftest.er1
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } >/dev/null; then
20502 if test -s conftest.err; then
20503 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20505 else
20506 ac_cpp_err=
20507 fi
20508else
20509 ac_cpp_err=yes
20510fi
20511if test -z "$ac_cpp_err"; then
20512 ac_header_preproc=yes
20513else
20514 echo "$as_me: failed program was:" >&5
20515sed 's/^/| /' conftest.$ac_ext >&5
20516
20517 ac_header_preproc=no
20518fi
20519rm -f conftest.err conftest.$ac_ext
20520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20521echo "${ECHO_T}$ac_header_preproc" >&6
20522
20523# So? What about this header?
ac1cb8d3
VS
20524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20525 yes:no: )
a848cd7e
SC
20526 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20527echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20528 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20529echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20530 ac_header_preproc=yes
a848cd7e 20531 ;;
ac1cb8d3 20532 no:yes:* )
a848cd7e
SC
20533 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20534echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20535 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20536echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20538echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20540echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20541 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20542echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20543 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20544echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20545 (
20546 cat <<\_ASBOX
ac1cb8d3
VS
20547## ----------------------------------------- ##
20548## Report this to wx-dev@lists.wxwidgets.org ##
20549## ----------------------------------------- ##
a848cd7e
SC
20550_ASBOX
20551 ) |
20552 sed "s/^/$as_me: WARNING: /" >&2
20553 ;;
20554esac
20555echo "$as_me:$LINENO: checking for zlib.h" >&5
20556echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20557if test "${ac_cv_header_zlib_h+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559else
20560 ac_cv_header_zlib_h=$ac_header_preproc
20561fi
20562echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20563echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20564
20565fi
20566
20567
20568
20569 system_zlib_h_ok=$ac_cv_header_zlib_h
20570 fi
20571
20572 if test "$system_zlib_h_ok" = "yes"; then
20573 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20574echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20575if test "${ac_cv_lib_z_deflate+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577else
20578 ac_check_lib_save_LIBS=$LIBS
20579LIBS="-lz $LIBS"
20580cat >conftest.$ac_ext <<_ACEOF
20581/* confdefs.h. */
20582_ACEOF
20583cat confdefs.h >>conftest.$ac_ext
20584cat >>conftest.$ac_ext <<_ACEOF
20585/* end confdefs.h. */
20586
20587/* Override any gcc2 internal prototype to avoid an error. */
20588#ifdef __cplusplus
20589extern "C"
20590#endif
20591/* We use char because int might match the return type of a gcc2
20592 builtin and then its argument prototype would still apply. */
20593char deflate ();
20594int
20595main ()
20596{
20597deflate ();
20598 ;
20599 return 0;
20600}
20601_ACEOF
20602rm -f conftest.$ac_objext conftest$ac_exeext
20603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20604 (eval $ac_link) 2>conftest.er1
a848cd7e 20605 ac_status=$?
ac1cb8d3
VS
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
a848cd7e
SC
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
ac1cb8d3
VS
20611 { ac_try='test -z "$ac_c_werror_flag"
20612 || test ! -s conftest.err'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_lib_z_deflate=yes
20625else
20626 echo "$as_me: failed program was:" >&5
20627sed 's/^/| /' conftest.$ac_ext >&5
20628
20629ac_cv_lib_z_deflate=no
20630fi
ac1cb8d3
VS
20631rm -f conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20633LIBS=$ac_check_lib_save_LIBS
20634fi
20635echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20636echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20637if test $ac_cv_lib_z_deflate = yes; then
20638 ZLIB_LINK=" -lz"
20639fi
20640
20641 fi
20642
20643 if test "x$ZLIB_LINK" = "x" ; then
20644 if test "$wxUSE_ZLIB" = "sys" ; then
20645 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20646echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20647 { (exit 1); exit 1; }; }
20648 else
20649 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20650echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20651 wxUSE_ZLIB=builtin
20652 fi
20653 else
20654 wxUSE_ZLIB=sys
20655 fi
20656 fi
20657fi
20658
20659
20660PNG_LINK=
20661if test "$wxUSE_LIBPNG" != "no" ; then
20662 cat >>confdefs.h <<\_ACEOF
20663#define wxUSE_LIBPNG 1
20664_ACEOF
20665
20666
20667 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20668 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20669echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20670 wxUSE_LIBPNG=sys
20671 fi
20672
20673 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20674 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20675echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20676 wxUSE_LIBPNG=builtin
20677 fi
20678
20679 if test "$wxUSE_MGL" != 1 ; then
20680 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20681 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20682echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20683if test "${ac_cv_header_png_h+set}" = set; then
20684 echo $ECHO_N "(cached) $ECHO_C" >&6
20685else
20686 if test "$cross_compiling" = yes; then
20687 unset ac_cv_header_png_h
20688
20689else
20690 cat >conftest.$ac_ext <<_ACEOF
20691/* confdefs.h. */
20692_ACEOF
20693cat confdefs.h >>conftest.$ac_ext
20694cat >>conftest.$ac_ext <<_ACEOF
20695/* end confdefs.h. */
20696
20697 #include <png.h>
20698 #include <stdio.h>
20699
20700 int main()
20701 {
20702 FILE *f=fopen("conftestval", "w");
20703 if (!f) exit(1);
20704 fprintf(f, "%s",
20705 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20706 exit(0);
20707 }
20708
20709_ACEOF
20710rm -f conftest$ac_exeext
20711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20712 (eval $ac_link) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ac_cv_header_png_h=`cat conftestval`
20722else
20723 echo "$as_me: program exited with status $ac_status" >&5
20724echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727( exit $ac_status )
20728ac_cv_header_png_h=no
20729fi
ac1cb8d3 20730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20731fi
20732
20733fi
20734echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20735echo "${ECHO_T}$ac_cv_header_png_h" >&6
20736 if test "${ac_cv_header_png_h+set}" = set; then
20737 echo "$as_me:$LINENO: checking for png.h" >&5
20738echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20739if test "${ac_cv_header_png_h+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20741fi
20742echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20743echo "${ECHO_T}$ac_cv_header_png_h" >&6
20744else
20745 # Is the header compilable?
20746echo "$as_me:$LINENO: checking png.h usability" >&5
20747echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20748cat >conftest.$ac_ext <<_ACEOF
20749/* confdefs.h. */
20750_ACEOF
20751cat confdefs.h >>conftest.$ac_ext
20752cat >>conftest.$ac_ext <<_ACEOF
20753/* end confdefs.h. */
20754$ac_includes_default
20755#include <png.h>
20756_ACEOF
20757rm -f conftest.$ac_objext
20758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20759 (eval $ac_compile) 2>conftest.er1
a848cd7e 20760 ac_status=$?
ac1cb8d3
VS
20761 grep -v '^ *+' conftest.er1 >conftest.err
20762 rm -f conftest.er1
20763 cat conftest.err >&5
a848cd7e
SC
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } &&
ac1cb8d3
VS
20766 { ac_try='test -z "$ac_c_werror_flag"
20767 || test ! -s conftest.err'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_header_compiler=yes
20780else
20781 echo "$as_me: failed program was:" >&5
20782sed 's/^/| /' conftest.$ac_ext >&5
20783
20784ac_header_compiler=no
20785fi
ac1cb8d3 20786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20788echo "${ECHO_T}$ac_header_compiler" >&6
20789
20790# Is the header present?
20791echo "$as_me:$LINENO: checking png.h presence" >&5
20792echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20793cat >conftest.$ac_ext <<_ACEOF
20794/* confdefs.h. */
20795_ACEOF
20796cat confdefs.h >>conftest.$ac_ext
20797cat >>conftest.$ac_ext <<_ACEOF
20798/* end confdefs.h. */
20799#include <png.h>
20800_ACEOF
20801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20803 ac_status=$?
20804 grep -v '^ *+' conftest.er1 >conftest.err
20805 rm -f conftest.er1
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } >/dev/null; then
20809 if test -s conftest.err; then
20810 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20812 else
20813 ac_cpp_err=
20814 fi
20815else
20816 ac_cpp_err=yes
20817fi
20818if test -z "$ac_cpp_err"; then
20819 ac_header_preproc=yes
20820else
20821 echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824 ac_header_preproc=no
20825fi
20826rm -f conftest.err conftest.$ac_ext
20827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20828echo "${ECHO_T}$ac_header_preproc" >&6
20829
20830# So? What about this header?
ac1cb8d3
VS
20831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20832 yes:no: )
a848cd7e
SC
20833 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20834echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20835 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20836echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20837 ac_header_preproc=yes
a848cd7e 20838 ;;
ac1cb8d3 20839 no:yes:* )
a848cd7e
SC
20840 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20841echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20842 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20843echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20845echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20846 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20847echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20848 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20849echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20850 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20851echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20852 (
20853 cat <<\_ASBOX
ac1cb8d3
VS
20854## ----------------------------------------- ##
20855## Report this to wx-dev@lists.wxwidgets.org ##
20856## ----------------------------------------- ##
a848cd7e
SC
20857_ASBOX
20858 ) |
20859 sed "s/^/$as_me: WARNING: /" >&2
20860 ;;
20861esac
20862echo "$as_me:$LINENO: checking for png.h" >&5
20863echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20864if test "${ac_cv_header_png_h+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866else
20867 ac_cv_header_png_h=$ac_header_preproc
20868fi
20869echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20870echo "${ECHO_T}$ac_cv_header_png_h" >&6
20871
20872fi
20873
20874
20875
20876 if test "$ac_cv_header_png_h" = "yes"; then
20877 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20878echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20879if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20881else
20882 ac_check_lib_save_LIBS=$LIBS
20883LIBS="-lpng -lz -lm $LIBS"
20884cat >conftest.$ac_ext <<_ACEOF
20885/* confdefs.h. */
20886_ACEOF
20887cat confdefs.h >>conftest.$ac_ext
20888cat >>conftest.$ac_ext <<_ACEOF
20889/* end confdefs.h. */
20890
20891/* Override any gcc2 internal prototype to avoid an error. */
20892#ifdef __cplusplus
20893extern "C"
20894#endif
20895/* We use char because int might match the return type of a gcc2
20896 builtin and then its argument prototype would still apply. */
20897char png_check_sig ();
20898int
20899main ()
20900{
20901png_check_sig ();
20902 ;
20903 return 0;
20904}
20905_ACEOF
20906rm -f conftest.$ac_objext conftest$ac_exeext
20907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20908 (eval $ac_link) 2>conftest.er1
a848cd7e 20909 ac_status=$?
ac1cb8d3
VS
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
a848cd7e
SC
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
ac1cb8d3
VS
20915 { ac_try='test -z "$ac_c_werror_flag"
20916 || test ! -s conftest.err'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_cv_lib_png_png_check_sig=yes
20929else
20930 echo "$as_me: failed program was:" >&5
20931sed 's/^/| /' conftest.$ac_ext >&5
20932
20933ac_cv_lib_png_png_check_sig=no
20934fi
ac1cb8d3
VS
20935rm -f conftest.err conftest.$ac_objext \
20936 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20937LIBS=$ac_check_lib_save_LIBS
20938fi
20939echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20940echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20941if test $ac_cv_lib_png_png_check_sig = yes; then
20942 PNG_LINK=" -lpng -lz"
20943fi
20944
20945 fi
20946
20947 if test "x$PNG_LINK" = "x" ; then
20948 if test "$wxUSE_LIBPNG" = "sys" ; then
20949 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20950echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20951 { (exit 1); exit 1; }; }
20952 else
20953 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20954echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20955 wxUSE_LIBPNG=builtin
20956 fi
20957 else
20958 wxUSE_LIBPNG=sys
20959 fi
20960 fi
20961 fi
20962
20963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20964fi
20965
20966
20967JPEG_LINK=
20968if test "$wxUSE_LIBJPEG" != "no" ; then
20969 cat >>confdefs.h <<\_ACEOF
20970#define wxUSE_LIBJPEG 1
20971_ACEOF
20972
20973
20974 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20975 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20976echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20977 wxUSE_LIBJPEG=sys
20978 fi
20979
20980 if test "$wxUSE_MGL" != 1 ; then
20981 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20982 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20983echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20984 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986else
20987 cat >conftest.$ac_ext <<_ACEOF
20988/* confdefs.h. */
20989_ACEOF
20990cat confdefs.h >>conftest.$ac_ext
20991cat >>conftest.$ac_ext <<_ACEOF
20992/* end confdefs.h. */
20993
20994 #undef HAVE_STDLIB_H
20995 #include <stdio.h>
20996 #include <jpeglib.h>
20997
20998int
20999main ()
21000{
21001
21002
21003 ;
21004 return 0;
21005}
21006_ACEOF
21007rm -f conftest.$ac_objext
21008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21009 (eval $ac_compile) 2>conftest.er1
a848cd7e 21010 ac_status=$?
ac1cb8d3
VS
21011 grep -v '^ *+' conftest.er1 >conftest.err
21012 rm -f conftest.er1
21013 cat conftest.err >&5
a848cd7e
SC
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
ac1cb8d3
VS
21016 { ac_try='test -z "$ac_c_werror_flag"
21017 || test ! -s conftest.err'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; } &&
21023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ac_cv_header_jpeglib_h=yes
21030else
21031 echo "$as_me: failed program was:" >&5
21032sed 's/^/| /' conftest.$ac_ext >&5
21033
21034ac_cv_header_jpeglib_h=no
21035
21036fi
ac1cb8d3 21037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21038
21039fi
21040
21041 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21042echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21043
21044 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21045 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21046echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21047if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049else
21050 ac_check_lib_save_LIBS=$LIBS
21051LIBS="-ljpeg $LIBS"
21052cat >conftest.$ac_ext <<_ACEOF
21053/* confdefs.h. */
21054_ACEOF
21055cat confdefs.h >>conftest.$ac_ext
21056cat >>conftest.$ac_ext <<_ACEOF
21057/* end confdefs.h. */
21058
21059/* Override any gcc2 internal prototype to avoid an error. */
21060#ifdef __cplusplus
21061extern "C"
21062#endif
21063/* We use char because int might match the return type of a gcc2
21064 builtin and then its argument prototype would still apply. */
21065char jpeg_read_header ();
21066int
21067main ()
21068{
21069jpeg_read_header ();
21070 ;
21071 return 0;
21072}
21073_ACEOF
21074rm -f conftest.$ac_objext conftest$ac_exeext
21075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21076 (eval $ac_link) 2>conftest.er1
a848cd7e 21077 ac_status=$?
ac1cb8d3
VS
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
a848cd7e
SC
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
ac1cb8d3
VS
21083 { ac_try='test -z "$ac_c_werror_flag"
21084 || test ! -s conftest.err'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; } &&
21090 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
21096 ac_cv_lib_jpeg_jpeg_read_header=yes
21097else
21098 echo "$as_me: failed program was:" >&5
21099sed 's/^/| /' conftest.$ac_ext >&5
21100
21101ac_cv_lib_jpeg_jpeg_read_header=no
21102fi
ac1cb8d3
VS
21103rm -f conftest.err conftest.$ac_objext \
21104 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21105LIBS=$ac_check_lib_save_LIBS
21106fi
21107echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21108echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21109if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21110 JPEG_LINK=" -ljpeg"
21111fi
21112
21113 fi
21114
21115 if test "x$JPEG_LINK" = "x" ; then
21116 if test "$wxUSE_LIBJPEG" = "sys" ; then
21117 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21118echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21119 { (exit 1); exit 1; }; }
21120 else
21121 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21122echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21123 wxUSE_LIBJPEG=builtin
21124 fi
21125 else
21126 wxUSE_LIBJPEG=sys
21127 fi
21128 fi
21129 fi
21130fi
21131
21132
21133TIFF_LINK=
21134TIFF_PREREQ_LINKS=-lm
21135if test "$wxUSE_LIBTIFF" != "no" ; then
21136 cat >>confdefs.h <<\_ACEOF
21137#define wxUSE_LIBTIFF 1
21138_ACEOF
21139
21140
21141 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21142 if test "$wxUSE_LIBJPEG" = "sys"; then
21143 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21144 fi
21145 if test "$wxUSE_ZLIB" = "sys"; then
21146 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21147 fi
21148 if test "${ac_cv_header_tiffio_h+set}" = set; then
21149 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21150echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21151if test "${ac_cv_header_tiffio_h+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21153fi
21154echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21155echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21156else
21157 # Is the header compilable?
21158echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21159echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21160cat >conftest.$ac_ext <<_ACEOF
21161/* confdefs.h. */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h. */
21166$ac_includes_default
21167#include <tiffio.h>
21168_ACEOF
21169rm -f conftest.$ac_objext
21170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21171 (eval $ac_compile) 2>conftest.er1
a848cd7e 21172 ac_status=$?
ac1cb8d3
VS
21173 grep -v '^ *+' conftest.er1 >conftest.err
21174 rm -f conftest.er1
21175 cat conftest.err >&5
a848cd7e
SC
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } &&
ac1cb8d3
VS
21178 { ac_try='test -z "$ac_c_werror_flag"
21179 || test ! -s conftest.err'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; } &&
21185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 ac_header_compiler=yes
21192else
21193 echo "$as_me: failed program was:" >&5
21194sed 's/^/| /' conftest.$ac_ext >&5
21195
21196ac_header_compiler=no
21197fi
ac1cb8d3 21198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21199echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21200echo "${ECHO_T}$ac_header_compiler" >&6
21201
21202# Is the header present?
21203echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21204echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21205cat >conftest.$ac_ext <<_ACEOF
21206/* confdefs.h. */
21207_ACEOF
21208cat confdefs.h >>conftest.$ac_ext
21209cat >>conftest.$ac_ext <<_ACEOF
21210/* end confdefs.h. */
21211#include <tiffio.h>
21212_ACEOF
21213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21215 ac_status=$?
21216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } >/dev/null; then
21221 if test -s conftest.err; then
21222 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21224 else
21225 ac_cpp_err=
21226 fi
21227else
21228 ac_cpp_err=yes
21229fi
21230if test -z "$ac_cpp_err"; then
21231 ac_header_preproc=yes
21232else
21233 echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 ac_header_preproc=no
21237fi
21238rm -f conftest.err conftest.$ac_ext
21239echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21240echo "${ECHO_T}$ac_header_preproc" >&6
21241
21242# So? What about this header?
ac1cb8d3
VS
21243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21244 yes:no: )
a848cd7e
SC
21245 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21246echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21247 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21248echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21249 ac_header_preproc=yes
a848cd7e 21250 ;;
ac1cb8d3 21251 no:yes:* )
a848cd7e
SC
21252 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21253echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21254 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21255echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21256 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21257echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21259echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21260 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21261echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21262 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21263echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21264 (
21265 cat <<\_ASBOX
ac1cb8d3
VS
21266## ----------------------------------------- ##
21267## Report this to wx-dev@lists.wxwidgets.org ##
21268## ----------------------------------------- ##
a848cd7e
SC
21269_ASBOX
21270 ) |
21271 sed "s/^/$as_me: WARNING: /" >&2
21272 ;;
21273esac
21274echo "$as_me:$LINENO: checking for tiffio.h" >&5
21275echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21276if test "${ac_cv_header_tiffio_h+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278else
21279 ac_cv_header_tiffio_h=$ac_header_preproc
21280fi
21281echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21282echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21283
21284fi
21285if test $ac_cv_header_tiffio_h = yes; then
21286
21287 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21288echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21289if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291else
21292 ac_check_lib_save_LIBS=$LIBS
21293LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21294cat >conftest.$ac_ext <<_ACEOF
21295/* confdefs.h. */
21296_ACEOF
21297cat confdefs.h >>conftest.$ac_ext
21298cat >>conftest.$ac_ext <<_ACEOF
21299/* end confdefs.h. */
21300
21301/* Override any gcc2 internal prototype to avoid an error. */
21302#ifdef __cplusplus
21303extern "C"
21304#endif
21305/* We use char because int might match the return type of a gcc2
21306 builtin and then its argument prototype would still apply. */
21307char TIFFError ();
21308int
21309main ()
21310{
21311TIFFError ();
21312 ;
21313 return 0;
21314}
21315_ACEOF
21316rm -f conftest.$ac_objext conftest$ac_exeext
21317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21318 (eval $ac_link) 2>conftest.er1
a848cd7e 21319 ac_status=$?
ac1cb8d3
VS
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
a848cd7e
SC
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
ac1cb8d3
VS
21325 { ac_try='test -z "$ac_c_werror_flag"
21326 || test ! -s conftest.err'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; } &&
21332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21338 ac_cv_lib_tiff_TIFFError=yes
21339else
21340 echo "$as_me: failed program was:" >&5
21341sed 's/^/| /' conftest.$ac_ext >&5
21342
21343ac_cv_lib_tiff_TIFFError=no
21344fi
ac1cb8d3
VS
21345rm -f conftest.err conftest.$ac_objext \
21346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21347LIBS=$ac_check_lib_save_LIBS
21348fi
21349echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21350echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21351if test $ac_cv_lib_tiff_TIFFError = yes; then
21352 TIFF_LINK=" -ltiff"
21353fi
21354
21355
21356
21357fi
21358
21359
21360
21361 if test "x$TIFF_LINK" = "x" ; then
21362 if test "$wxUSE_LIBTIFF" = "sys" ; then
21363 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21364echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21365 { (exit 1); exit 1; }; }
21366 else
21367 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21368echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21369 wxUSE_LIBTIFF=builtin
21370 fi
21371 else
21372 wxUSE_LIBTIFF=sys
21373 fi
21374 fi
21375fi
21376
21377
21378if test "$wxUSE_EXPAT" != "no"; then
21379 wxUSE_XML=yes
21380 cat >>confdefs.h <<\_ACEOF
21381#define wxUSE_EXPAT 1
21382_ACEOF
21383
21384 cat >>confdefs.h <<\_ACEOF
21385#define wxUSE_XML 1
21386_ACEOF
21387
21388
21389 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21390 if test "${ac_cv_header_expat_h+set}" = set; then
21391 echo "$as_me:$LINENO: checking for expat.h" >&5
21392echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21393if test "${ac_cv_header_expat_h+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21395fi
21396echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21397echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21398else
21399 # Is the header compilable?
21400echo "$as_me:$LINENO: checking expat.h usability" >&5
21401echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21402cat >conftest.$ac_ext <<_ACEOF
21403/* confdefs.h. */
21404_ACEOF
21405cat confdefs.h >>conftest.$ac_ext
21406cat >>conftest.$ac_ext <<_ACEOF
21407/* end confdefs.h. */
21408$ac_includes_default
21409#include <expat.h>
21410_ACEOF
21411rm -f conftest.$ac_objext
21412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21413 (eval $ac_compile) 2>conftest.er1
a848cd7e 21414 ac_status=$?
ac1cb8d3
VS
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
a848cd7e
SC
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
ac1cb8d3
VS
21420 { ac_try='test -z "$ac_c_werror_flag"
21421 || test ! -s conftest.err'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 ac_header_compiler=yes
21434else
21435 echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
21437
21438ac_header_compiler=no
21439fi
ac1cb8d3 21440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21441echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21442echo "${ECHO_T}$ac_header_compiler" >&6
21443
21444# Is the header present?
21445echo "$as_me:$LINENO: checking expat.h presence" >&5
21446echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21447cat >conftest.$ac_ext <<_ACEOF
21448/* confdefs.h. */
21449_ACEOF
21450cat confdefs.h >>conftest.$ac_ext
21451cat >>conftest.$ac_ext <<_ACEOF
21452/* end confdefs.h. */
21453#include <expat.h>
21454_ACEOF
21455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21457 ac_status=$?
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } >/dev/null; then
21463 if test -s conftest.err; then
21464 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21466 else
21467 ac_cpp_err=
21468 fi
21469else
21470 ac_cpp_err=yes
21471fi
21472if test -z "$ac_cpp_err"; then
21473 ac_header_preproc=yes
21474else
21475 echo "$as_me: failed program was:" >&5
21476sed 's/^/| /' conftest.$ac_ext >&5
21477
21478 ac_header_preproc=no
21479fi
21480rm -f conftest.err conftest.$ac_ext
21481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21482echo "${ECHO_T}$ac_header_preproc" >&6
21483
21484# So? What about this header?
ac1cb8d3
VS
21485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21486 yes:no: )
a848cd7e
SC
21487 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21488echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21489 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21490echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21491 ac_header_preproc=yes
a848cd7e 21492 ;;
ac1cb8d3 21493 no:yes:* )
a848cd7e
SC
21494 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21495echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21496 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21497echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21499echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21501echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21502 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21503echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21504 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21505echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21506 (
21507 cat <<\_ASBOX
ac1cb8d3
VS
21508## ----------------------------------------- ##
21509## Report this to wx-dev@lists.wxwidgets.org ##
21510## ----------------------------------------- ##
a848cd7e
SC
21511_ASBOX
21512 ) |
21513 sed "s/^/$as_me: WARNING: /" >&2
21514 ;;
21515esac
21516echo "$as_me:$LINENO: checking for expat.h" >&5
21517echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21518if test "${ac_cv_header_expat_h+set}" = set; then
21519 echo $ECHO_N "(cached) $ECHO_C" >&6
21520else
21521 ac_cv_header_expat_h=$ac_header_preproc
21522fi
21523echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21524echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21525
21526fi
21527if test $ac_cv_header_expat_h = yes; then
21528 found_expat_h=1
21529fi
21530
21531
21532 if test "x$found_expat_h" = "x1"; then
21533 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21534echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21535if test "${wx_cv_expat_is_not_broken+set}" = set; then
21536 echo $ECHO_N "(cached) $ECHO_C" >&6
21537else
21538
21539
21540
21541 ac_ext=cc
21542ac_cpp='$CXXCPP $CPPFLAGS'
21543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21546
21547 cat >conftest.$ac_ext <<_ACEOF
21548/* confdefs.h. */
21549_ACEOF
21550cat confdefs.h >>conftest.$ac_ext
21551cat >>conftest.$ac_ext <<_ACEOF
21552/* end confdefs.h. */
21553#include <expat.h>
21554int
21555main ()
21556{
21557
21558 ;
21559 return 0;
21560}
21561_ACEOF
21562rm -f conftest.$ac_objext
21563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21564 (eval $ac_compile) 2>conftest.er1
a848cd7e 21565 ac_status=$?
ac1cb8d3
VS
21566 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1
21568 cat conftest.err >&5
a848cd7e
SC
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } &&
ac1cb8d3
VS
21571 { ac_try='test -z "$ac_cxx_werror_flag"
21572 || test ! -s conftest.err'
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; } &&
21578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); }; }; then
21584 wx_cv_expat_is_not_broken=yes
21585else
21586 echo "$as_me: failed program was:" >&5
21587sed 's/^/| /' conftest.$ac_ext >&5
21588
21589wx_cv_expat_is_not_broken=no
21590
21591fi
ac1cb8d3 21592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21593 ac_ext=c
21594ac_cpp='$CPP $CPPFLAGS'
21595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21597ac_compiler_gnu=$ac_cv_c_compiler_gnu
21598
21599
21600
21601fi
21602echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21603echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21604 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21605 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21606echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21607if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21609else
21610 ac_check_lib_save_LIBS=$LIBS
21611LIBS="-lexpat $LIBS"
21612cat >conftest.$ac_ext <<_ACEOF
21613/* confdefs.h. */
21614_ACEOF
21615cat confdefs.h >>conftest.$ac_ext
21616cat >>conftest.$ac_ext <<_ACEOF
21617/* end confdefs.h. */
21618
21619/* Override any gcc2 internal prototype to avoid an error. */
21620#ifdef __cplusplus
21621extern "C"
21622#endif
21623/* We use char because int might match the return type of a gcc2
21624 builtin and then its argument prototype would still apply. */
21625char XML_ParserCreate ();
21626int
21627main ()
21628{
21629XML_ParserCreate ();
21630 ;
21631 return 0;
21632}
21633_ACEOF
21634rm -f conftest.$ac_objext conftest$ac_exeext
21635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21636 (eval $ac_link) 2>conftest.er1
a848cd7e 21637 ac_status=$?
ac1cb8d3
VS
21638 grep -v '^ *+' conftest.er1 >conftest.err
21639 rm -f conftest.er1
21640 cat conftest.err >&5
a848cd7e
SC
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } &&
ac1cb8d3
VS
21643 { ac_try='test -z "$ac_c_werror_flag"
21644 || test ! -s conftest.err'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; } &&
21650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
21656 ac_cv_lib_expat_XML_ParserCreate=yes
21657else
21658 echo "$as_me: failed program was:" >&5
21659sed 's/^/| /' conftest.$ac_ext >&5
21660
21661ac_cv_lib_expat_XML_ParserCreate=no
21662fi
ac1cb8d3
VS
21663rm -f conftest.err conftest.$ac_objext \
21664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21665LIBS=$ac_check_lib_save_LIBS
21666fi
21667echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21668echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21669if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21670 EXPAT_LINK=" -lexpat"
21671fi
21672
21673 fi
21674 fi
21675 if test "x$EXPAT_LINK" = "x" ; then
21676 if test "$wxUSE_EXPAT" = "sys" ; then
21677 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21678echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21679 { (exit 1); exit 1; }; }
21680 else
21681 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21682echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21683 wxUSE_EXPAT=builtin
21684 fi
21685 else
21686 wxUSE_EXPAT=sys
21687 fi
21688 fi
21689 if test "$wxUSE_EXPAT" = "builtin" ; then
21690
21691
21692subdirs="$subdirs src/expat"
21693
21694 fi
21695fi
21696
21697
21698
21699if test "$wxUSE_LIBMSPACK" != "no"; then
21700
21701 if test "${ac_cv_header_mspack_h+set}" = set; then
21702 echo "$as_me:$LINENO: checking for mspack.h" >&5
21703echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21704if test "${ac_cv_header_mspack_h+set}" = set; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21706fi
21707echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21708echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21709else
21710 # Is the header compilable?
21711echo "$as_me:$LINENO: checking mspack.h usability" >&5
21712echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21713cat >conftest.$ac_ext <<_ACEOF
21714/* confdefs.h. */
21715_ACEOF
21716cat confdefs.h >>conftest.$ac_ext
21717cat >>conftest.$ac_ext <<_ACEOF
21718/* end confdefs.h. */
21719$ac_includes_default
21720#include <mspack.h>
21721_ACEOF
21722rm -f conftest.$ac_objext
21723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21724 (eval $ac_compile) 2>conftest.er1
a848cd7e 21725 ac_status=$?
ac1cb8d3
VS
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
a848cd7e
SC
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
ac1cb8d3
VS
21731 { ac_try='test -z "$ac_c_werror_flag"
21732 || test ! -s conftest.err'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 ac_header_compiler=yes
21745else
21746 echo "$as_me: failed program was:" >&5
21747sed 's/^/| /' conftest.$ac_ext >&5
21748
21749ac_header_compiler=no
21750fi
ac1cb8d3 21751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21753echo "${ECHO_T}$ac_header_compiler" >&6
21754
21755# Is the header present?
21756echo "$as_me:$LINENO: checking mspack.h presence" >&5
21757echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21758cat >conftest.$ac_ext <<_ACEOF
21759/* confdefs.h. */
21760_ACEOF
21761cat confdefs.h >>conftest.$ac_ext
21762cat >>conftest.$ac_ext <<_ACEOF
21763/* end confdefs.h. */
21764#include <mspack.h>
21765_ACEOF
21766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } >/dev/null; then
21774 if test -s conftest.err; then
21775 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21777 else
21778 ac_cpp_err=
21779 fi
21780else
21781 ac_cpp_err=yes
21782fi
21783if test -z "$ac_cpp_err"; then
21784 ac_header_preproc=yes
21785else
21786 echo "$as_me: failed program was:" >&5
21787sed 's/^/| /' conftest.$ac_ext >&5
21788
21789 ac_header_preproc=no
21790fi
21791rm -f conftest.err conftest.$ac_ext
21792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21793echo "${ECHO_T}$ac_header_preproc" >&6
21794
21795# So? What about this header?
ac1cb8d3
VS
21796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21797 yes:no: )
a848cd7e
SC
21798 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21799echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21800 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21801echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21802 ac_header_preproc=yes
a848cd7e 21803 ;;
ac1cb8d3 21804 no:yes:* )
a848cd7e
SC
21805 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21806echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21807 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21808echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21809 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21810echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21811 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21812echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21813 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21814echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21815 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21816echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21817 (
21818 cat <<\_ASBOX
ac1cb8d3
VS
21819## ----------------------------------------- ##
21820## Report this to wx-dev@lists.wxwidgets.org ##
21821## ----------------------------------------- ##
a848cd7e
SC
21822_ASBOX
21823 ) |
21824 sed "s/^/$as_me: WARNING: /" >&2
21825 ;;
21826esac
21827echo "$as_me:$LINENO: checking for mspack.h" >&5
21828echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21829if test "${ac_cv_header_mspack_h+set}" = set; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21831else
21832 ac_cv_header_mspack_h=$ac_header_preproc
21833fi
21834echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21835echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21836
21837fi
21838if test $ac_cv_header_mspack_h = yes; then
21839 found_mspack_h=1
21840fi
21841
21842
21843 if test "x$found_mspack_h" = "x1"; then
21844 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21845echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21846if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21848else
21849 ac_check_lib_save_LIBS=$LIBS
21850LIBS="-lmspack $LIBS"
21851cat >conftest.$ac_ext <<_ACEOF
21852/* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
21857
21858/* Override any gcc2 internal prototype to avoid an error. */
21859#ifdef __cplusplus
21860extern "C"
21861#endif
21862/* We use char because int might match the return type of a gcc2
21863 builtin and then its argument prototype would still apply. */
21864char mspack_create_chm_decompressor ();
21865int
21866main ()
21867{
21868mspack_create_chm_decompressor ();
21869 ;
21870 return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext conftest$ac_exeext
21874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21875 (eval $ac_link) 2>conftest.er1
a848cd7e 21876 ac_status=$?
ac1cb8d3
VS
21877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
a848cd7e
SC
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } &&
ac1cb8d3
VS
21882 { ac_try='test -z "$ac_c_werror_flag"
21883 || test ! -s conftest.err'
21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; } &&
21889 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21896else
21897 echo "$as_me: failed program was:" >&5
21898sed 's/^/| /' conftest.$ac_ext >&5
21899
21900ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21901fi
ac1cb8d3
VS
21902rm -f conftest.err conftest.$ac_objext \
21903 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21904LIBS=$ac_check_lib_save_LIBS
21905fi
21906echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21907echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21908if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21909 MSPACK_LINK=" -lmspack"
21910fi
21911
21912 fi
21913 if test "x$MSPACK_LINK" = "x" ; then
21914 wxUSE_LIBMSPACK=no
21915 else
21916 cat >>confdefs.h <<\_ACEOF
21917#define wxUSE_LIBMSPACK 1
21918_ACEOF
21919
21920 fi
21921fi
21922
21923
21924
21925AFMINSTALL=
21926WIN32INSTALL=
21927
21928TOOLKIT=
21929TOOLKIT_INCLUDE=
21930WIDGET_SET=
21931
21932if test "$USE_WIN32" = 1 ; then
21933
21934for ac_header in w32api.h
21935do
21936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21937if eval "test \"\${$as_ac_Header+set}\" = set"; then
21938 echo "$as_me:$LINENO: checking for $ac_header" >&5
21939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21940if eval "test \"\${$as_ac_Header+set}\" = set"; then
21941 echo $ECHO_N "(cached) $ECHO_C" >&6
21942fi
21943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21945else
21946 # Is the header compilable?
21947echo "$as_me:$LINENO: checking $ac_header usability" >&5
21948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21949cat >conftest.$ac_ext <<_ACEOF
21950/* confdefs.h. */
21951_ACEOF
21952cat confdefs.h >>conftest.$ac_ext
21953cat >>conftest.$ac_ext <<_ACEOF
21954/* end confdefs.h. */
21955$ac_includes_default
21956#include <$ac_header>
21957_ACEOF
21958rm -f conftest.$ac_objext
21959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21960 (eval $ac_compile) 2>conftest.er1
a848cd7e 21961 ac_status=$?
ac1cb8d3
VS
21962 grep -v '^ *+' conftest.er1 >conftest.err
21963 rm -f conftest.er1
21964 cat conftest.err >&5
a848cd7e
SC
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
ac1cb8d3
VS
21967 { ac_try='test -z "$ac_c_werror_flag"
21968 || test ! -s conftest.err'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; } &&
21974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }; then
21980 ac_header_compiler=yes
21981else
21982 echo "$as_me: failed program was:" >&5
21983sed 's/^/| /' conftest.$ac_ext >&5
21984
21985ac_header_compiler=no
21986fi
ac1cb8d3 21987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21989echo "${ECHO_T}$ac_header_compiler" >&6
21990
21991# Is the header present?
21992echo "$as_me:$LINENO: checking $ac_header presence" >&5
21993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21994cat >conftest.$ac_ext <<_ACEOF
21995/* confdefs.h. */
21996_ACEOF
21997cat confdefs.h >>conftest.$ac_ext
21998cat >>conftest.$ac_ext <<_ACEOF
21999/* end confdefs.h. */
22000#include <$ac_header>
22001_ACEOF
22002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22004 ac_status=$?
22005 grep -v '^ *+' conftest.er1 >conftest.err
22006 rm -f conftest.er1
22007 cat conftest.err >&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } >/dev/null; then
22010 if test -s conftest.err; then
22011 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22013 else
22014 ac_cpp_err=
22015 fi
22016else
22017 ac_cpp_err=yes
22018fi
22019if test -z "$ac_cpp_err"; then
22020 ac_header_preproc=yes
22021else
22022 echo "$as_me: failed program was:" >&5
22023sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 ac_header_preproc=no
22026fi
22027rm -f conftest.err conftest.$ac_ext
22028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22029echo "${ECHO_T}$ac_header_preproc" >&6
22030
22031# So? What about this header?
ac1cb8d3
VS
22032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22033 yes:no: )
a848cd7e
SC
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22038 ac_header_preproc=yes
a848cd7e 22039 ;;
ac1cb8d3 22040 no:yes:* )
a848cd7e
SC
22041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22044echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22048echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22053 (
22054 cat <<\_ASBOX
ac1cb8d3
VS
22055## ----------------------------------------- ##
22056## Report this to wx-dev@lists.wxwidgets.org ##
22057## ----------------------------------------- ##
a848cd7e
SC
22058_ASBOX
22059 ) |
22060 sed "s/^/$as_me: WARNING: /" >&2
22061 ;;
22062esac
22063echo "$as_me:$LINENO: checking for $ac_header" >&5
22064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22065if eval "test \"\${$as_ac_Header+set}\" = set"; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22067else
ac1cb8d3 22068 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22069fi
22070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22072
22073fi
22074if test `eval echo '${'$as_ac_Header'}'` = yes; then
22075 cat >>confdefs.h <<_ACEOF
22076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22077_ACEOF
22078
22079fi
22080
22081done
22082
22083 if test "${ac_cv_header_windows_h+set}" = set; then
22084 echo "$as_me:$LINENO: checking for windows.h" >&5
22085echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22086if test "${ac_cv_header_windows_h+set}" = set; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088fi
22089echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22090echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22091else
22092 # Is the header compilable?
22093echo "$as_me:$LINENO: checking windows.h usability" >&5
22094echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22095cat >conftest.$ac_ext <<_ACEOF
22096/* confdefs.h. */
22097_ACEOF
22098cat confdefs.h >>conftest.$ac_ext
22099cat >>conftest.$ac_ext <<_ACEOF
22100/* end confdefs.h. */
22101$ac_includes_default
22102#include <windows.h>
22103_ACEOF
22104rm -f conftest.$ac_objext
22105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22106 (eval $ac_compile) 2>conftest.er1
a848cd7e 22107 ac_status=$?
ac1cb8d3
VS
22108 grep -v '^ *+' conftest.er1 >conftest.err
22109 rm -f conftest.er1
22110 cat conftest.err >&5
a848cd7e
SC
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } &&
ac1cb8d3
VS
22113 { ac_try='test -z "$ac_c_werror_flag"
22114 || test ! -s conftest.err'
22115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; } &&
22120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122 (eval $ac_try) 2>&5
22123 ac_status=$?
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; }; then
22126 ac_header_compiler=yes
22127else
22128 echo "$as_me: failed program was:" >&5
22129sed 's/^/| /' conftest.$ac_ext >&5
22130
22131ac_header_compiler=no
22132fi
ac1cb8d3 22133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22135echo "${ECHO_T}$ac_header_compiler" >&6
22136
22137# Is the header present?
22138echo "$as_me:$LINENO: checking windows.h presence" >&5
22139echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22140cat >conftest.$ac_ext <<_ACEOF
22141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
22146#include <windows.h>
22147_ACEOF
22148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22150 ac_status=$?
22151 grep -v '^ *+' conftest.er1 >conftest.err
22152 rm -f conftest.er1
22153 cat conftest.err >&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); } >/dev/null; then
22156 if test -s conftest.err; then
22157 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22159 else
22160 ac_cpp_err=
22161 fi
22162else
22163 ac_cpp_err=yes
22164fi
22165if test -z "$ac_cpp_err"; then
22166 ac_header_preproc=yes
22167else
22168 echo "$as_me: failed program was:" >&5
22169sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ac_header_preproc=no
22172fi
22173rm -f conftest.err conftest.$ac_ext
22174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22175echo "${ECHO_T}$ac_header_preproc" >&6
22176
22177# So? What about this header?
ac1cb8d3
VS
22178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22179 yes:no: )
a848cd7e
SC
22180 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22181echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22182 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22183echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22184 ac_header_preproc=yes
a848cd7e 22185 ;;
ac1cb8d3 22186 no:yes:* )
a848cd7e
SC
22187 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22188echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22189 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22190echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22192echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22194echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22195 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22196echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22197 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22198echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22199 (
22200 cat <<\_ASBOX
ac1cb8d3
VS
22201## ----------------------------------------- ##
22202## Report this to wx-dev@lists.wxwidgets.org ##
22203## ----------------------------------------- ##
a848cd7e
SC
22204_ASBOX
22205 ) |
22206 sed "s/^/$as_me: WARNING: /" >&2
22207 ;;
22208esac
22209echo "$as_me:$LINENO: checking for windows.h" >&5
22210echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22211if test "${ac_cv_header_windows_h+set}" = set; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22213else
22214 ac_cv_header_windows_h=$ac_header_preproc
22215fi
22216echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22217echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22218
22219fi
22220if test $ac_cv_header_windows_h = yes; then
22221 :
22222else
22223
22224 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22225echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22226 { (exit 1); exit 1; }; }
22227
22228fi
22229
22230
22231
22232 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22233
22234 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22235 LIBS="$LIBS -loleacc"
22236 fi
22237
22238 case "${host}" in
22239 *-*-cygwin* )
22240 LIBS="$LIBS -lkernel32 -luser32"
22241 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22242 esac
22243
22244 if test "$wxUSE_ODBC" = "sys" ; then
22245 wxUSE_ODBC = "yes"
22246 fi
22247 if test "$wxUSE_ODBC" = "yes" ; then
22248 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22249 cat >>confdefs.h <<\_ACEOF
22250#define wxUSE_ODBC 1
22251_ACEOF
22252
22253 fi
22254
22255 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22256 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22257
22258 WIN32INSTALL=win32install
22259fi
22260
22261if test "$wxUSE_GUI" = "yes"; then
22262 USE_GUI=1
22263
22264 GUI_TK_LIBRARY=
22265
22266 WXGTK12=
22267 WXGTK127=
22268 WXGTK20=
22269 WXGPE=
22270
22271 if test "$wxUSE_MSW" = 1 ; then
22272 TOOLKIT=MSW
22273 GUIDIST=MSW_DIST
22274
22275 case "${host}" in
22276 *-*-mingw32* )
22277 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22278 esac
22279 fi
22280
22281 if test "$wxUSE_GTK" = 1; then
22282 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22283echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22284
22285 gtk_version_cached=1
22286 if test "${wx_cv_lib_gtk+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22288else
22289
22290 gtk_version_cached=0
22291 echo "$as_me:$LINENO: result: " >&5
22292echo "${ECHO_T}" >&6
22293
22294 GTK_MODULES=
22295 if test "$wxUSE_THREADS" = "yes"; then
22296 GTK_MODULES=gthread
22297 fi
22298
22299 wx_cv_lib_gtk=
22300 if test "x$wxUSE_GTK2" = "xyes"; then
22301 # Check whether --enable-gtktest or --disable-gtktest was given.
22302if test "${enable_gtktest+set}" = set; then
22303 enableval="$enable_gtktest"
22304
22305else
22306 enable_gtktest=yes
22307fi;
22308
22309 pkg_config_args=gtk+-2.0
22310 for module in . $GTK_MODULES
22311 do
22312 case "$module" in
22313 gthread)
22314 pkg_config_args="$pkg_config_args gthread-2.0"
22315 ;;
22316 esac
22317 done
22318
22319 no_gtk=""
22320
22321 # Extract the first word of "pkg-config", so it can be a program name with args.
22322set dummy pkg-config; ac_word=$2
22323echo "$as_me:$LINENO: checking for $ac_word" >&5
22324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22325if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22326 echo $ECHO_N "(cached) $ECHO_C" >&6
22327else
22328 case $PKG_CONFIG in
22329 [\\/]* | ?:[\\/]*)
22330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22331 ;;
22332 *)
22333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22334for as_dir in $PATH
22335do
22336 IFS=$as_save_IFS
22337 test -z "$as_dir" && as_dir=.
22338 for ac_exec_ext in '' $ac_executable_extensions; do
22339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22340 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22342 break 2
22343 fi
22344done
22345done
22346
22347 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22348 ;;
22349esac
22350fi
22351PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22352
22353if test -n "$PKG_CONFIG"; then
22354 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22355echo "${ECHO_T}$PKG_CONFIG" >&6
22356else
22357 echo "$as_me:$LINENO: result: no" >&5
22358echo "${ECHO_T}no" >&6
22359fi
22360
22361
22362 if test x$PKG_CONFIG != xno ; then
22363 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22364 :
22365 else
c2218763 22366 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22367 no_gtk=yes
22368 PKG_CONFIG=no
22369 fi
22370 else
22371 no_gtk=yes
22372 fi
22373
22374 min_gtk_version=2.0.0
22375 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22376echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22377
22378 if test x$PKG_CONFIG != xno ; then
22379 ## don't try to run the test against uninstalled libtool libs
22380 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22381 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22382 enable_gtktest=no
22383 fi
22384
22385 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22386 :
22387 else
22388 no_gtk=yes
22389 fi
22390 fi
22391
22392 if test x"$no_gtk" = x ; then
22393 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22394 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22395 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22396 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22397 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22398 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22399 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22401 if test "x$enable_gtktest" = "xyes" ; then
22402 ac_save_CFLAGS="$CFLAGS"
22403 ac_save_LIBS="$LIBS"
22404 CFLAGS="$CFLAGS $GTK_CFLAGS"
22405 LIBS="$GTK_LIBS $LIBS"
22406 rm -f conf.gtktest
22407 if test "$cross_compiling" = yes; then
22408 echo $ac_n "cross compiling; assumed OK... $ac_c"
22409else
22410 cat >conftest.$ac_ext <<_ACEOF
22411/* confdefs.h. */
22412_ACEOF
22413cat confdefs.h >>conftest.$ac_ext
22414cat >>conftest.$ac_ext <<_ACEOF
22415/* end confdefs.h. */
22416
22417#include <gtk/gtk.h>
22418#include <stdio.h>
22419#include <stdlib.h>
22420
22421int
22422main ()
22423{
22424 int major, minor, micro;
22425 char *tmp_version;
22426
22427 system ("touch conf.gtktest");
22428
22429 /* HP/UX 9 (%@#!) writes to sscanf strings */
22430 tmp_version = g_strdup("$min_gtk_version");
22431 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22432 printf("%s, bad version string\n", "$min_gtk_version");
22433 exit(1);
22434 }
22435
22436 if ((gtk_major_version != $gtk_config_major_version) ||
22437 (gtk_minor_version != $gtk_config_minor_version) ||
22438 (gtk_micro_version != $gtk_config_micro_version))
22439 {
22440 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22441 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22442 gtk_major_version, gtk_minor_version, gtk_micro_version);
22443 printf ("*** was found! If pkg-config was correct, then it is best\n");
22444 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22445 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22446 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22447 printf("*** required on your system.\n");
22448 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22449 printf("*** to point to the correct configuration files\n");
22450 }
22451 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22452 (gtk_minor_version != GTK_MINOR_VERSION) ||
22453 (gtk_micro_version != GTK_MICRO_VERSION))
22454 {
22455 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22456 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22457 printf("*** library (version %d.%d.%d)\n",
22458 gtk_major_version, gtk_minor_version, gtk_micro_version);
22459 }
22460 else
22461 {
22462 if ((gtk_major_version > major) ||
22463 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22464 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22465 {
22466 return 0;
22467 }
22468 else
22469 {
22470 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22471 gtk_major_version, gtk_minor_version, gtk_micro_version);
22472 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22473 major, minor, micro);
22474 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22475 printf("***\n");
22476 printf("*** If you have already installed a sufficiently new version, this error\n");
22477 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22478 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22479 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22480 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22481 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22482 printf("*** so that the correct libraries are found at run-time))\n");
22483 }
22484 }
22485 return 1;
22486}
22487
22488_ACEOF
22489rm -f conftest$ac_exeext
22490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22491 (eval $ac_link) 2>&5
22492 ac_status=$?
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496 (eval $ac_try) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; }; then
22500 :
22501else
22502 echo "$as_me: program exited with status $ac_status" >&5
22503echo "$as_me: failed program was:" >&5
22504sed 's/^/| /' conftest.$ac_ext >&5
22505
22506( exit $ac_status )
22507no_gtk=yes
22508fi
ac1cb8d3 22509rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22510fi
22511 CFLAGS="$ac_save_CFLAGS"
22512 LIBS="$ac_save_LIBS"
22513 fi
22514 fi
22515 if test "x$no_gtk" = x ; then
22516 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22517echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22518 wx_cv_lib_gtk=2.0
22519 else
22520 echo "$as_me:$LINENO: result: no" >&5
22521echo "${ECHO_T}no" >&6
22522 if test "$PKG_CONFIG" = "no" ; then
22523 echo "*** A new enough version of pkg-config was not found."
22524 echo "*** See http://pkgconfig.sourceforge.net"
22525 else
22526 if test -f conf.gtktest ; then
22527 :
22528 else
22529 echo "*** Could not run GTK+ test program, checking why..."
22530 ac_save_CFLAGS="$CFLAGS"
22531 ac_save_LIBS="$LIBS"
22532 CFLAGS="$CFLAGS $GTK_CFLAGS"
22533 LIBS="$LIBS $GTK_LIBS"
22534 cat >conftest.$ac_ext <<_ACEOF
22535/* confdefs.h. */
22536_ACEOF
22537cat confdefs.h >>conftest.$ac_ext
22538cat >>conftest.$ac_ext <<_ACEOF
22539/* end confdefs.h. */
22540
22541#include <gtk/gtk.h>
22542#include <stdio.h>
22543
22544int
22545main ()
22546{
22547 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22548 ;
22549 return 0;
22550}
22551_ACEOF
22552rm -f conftest.$ac_objext conftest$ac_exeext
22553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22554 (eval $ac_link) 2>conftest.er1
a848cd7e 22555 ac_status=$?
ac1cb8d3
VS
22556 grep -v '^ *+' conftest.er1 >conftest.err
22557 rm -f conftest.er1
22558 cat conftest.err >&5
a848cd7e
SC
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } &&
ac1cb8d3
VS
22561 { ac_try='test -z "$ac_c_werror_flag"
22562 || test ! -s conftest.err'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; } &&
22568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; }; then
22574 echo "*** The test program compiled, but did not run. This usually means"
22575 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22576 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22577 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22578 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22579 echo "*** is required on your system"
22580 echo "***"
22581 echo "*** If you have an old version installed, it is best to remove it, although"
22582 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22583else
22584 echo "$as_me: failed program was:" >&5
22585sed 's/^/| /' conftest.$ac_ext >&5
22586
22587 echo "*** The test program failed to compile or link. See the file config.log for the"
22588 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22589fi
ac1cb8d3
VS
22590rm -f conftest.err conftest.$ac_objext \
22591 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22592 CFLAGS="$ac_save_CFLAGS"
22593 LIBS="$ac_save_LIBS"
22594 fi
22595 fi
22596 GTK_CFLAGS=""
22597 GTK_LIBS=""
22598 :
22599 fi
22600
22601
22602 rm -f conf.gtktest
22603
22604 else
22605
22606# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22607if test "${with_gtk_prefix+set}" = set; then
22608 withval="$with_gtk_prefix"
22609 gtk_config_prefix="$withval"
22610else
22611 gtk_config_prefix=""
22612fi;
22613
22614# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22615if test "${with_gtk_exec_prefix+set}" = set; then
22616 withval="$with_gtk_exec_prefix"
22617 gtk_config_exec_prefix="$withval"
22618else
22619 gtk_config_exec_prefix=""
22620fi;
22621# Check whether --enable-gtktest or --disable-gtktest was given.
22622if test "${enable_gtktest+set}" = set; then
22623 enableval="$enable_gtktest"
22624
22625else
22626 enable_gtktest=yes
22627fi;
22628
22629 for module in . $GTK_MODULES
22630 do
22631 case "$module" in
22632 gthread)
22633 gtk_config_args="$gtk_config_args gthread"
22634 ;;
22635 esac
22636 done
22637
22638 if test x$gtk_config_exec_prefix != x ; then
22639 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22640 if test x${GTK_CONFIG+set} != xset ; then
22641 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22642 fi
22643 fi
22644 if test x$gtk_config_prefix != x ; then
22645 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22646 if test x${GTK_CONFIG+set} != xset ; then
22647 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22648 fi
22649 fi
22650
22651 # Extract the first word of "gtk-config", so it can be a program name with args.
22652set dummy gtk-config; ac_word=$2
22653echo "$as_me:$LINENO: checking for $ac_word" >&5
22654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22655if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22657else
22658 case $GTK_CONFIG in
22659 [\\/]* | ?:[\\/]*)
22660 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22661 ;;
22662 *)
22663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22664for as_dir in $PATH
22665do
22666 IFS=$as_save_IFS
22667 test -z "$as_dir" && as_dir=.
22668 for ac_exec_ext in '' $ac_executable_extensions; do
22669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22670 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22672 break 2
22673 fi
22674done
22675done
22676
22677 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22678 ;;
22679esac
22680fi
22681GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22682
22683if test -n "$GTK_CONFIG"; then
22684 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22685echo "${ECHO_T}$GTK_CONFIG" >&6
22686else
22687 echo "$as_me:$LINENO: result: no" >&5
22688echo "${ECHO_T}no" >&6
22689fi
22690
22691 min_gtk_version=1.2.7
22692 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22693echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22694 no_gtk=""
22695 if test "$GTK_CONFIG" = "no" ; then
22696 no_gtk=yes
22697 else
22698 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22699 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22700 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22701 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22702 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22703 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22704 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22706 if test "x$enable_gtktest" = "xyes" ; then
22707 ac_save_CFLAGS="$CFLAGS"
22708 ac_save_LIBS="$LIBS"
22709 CFLAGS="$CFLAGS $GTK_CFLAGS"
22710 LIBS="$GTK_LIBS $LIBS"
22711 rm -f conf.gtktest
22712 if test "$cross_compiling" = yes; then
22713 echo $ac_n "cross compiling; assumed OK... $ac_c"
22714else
22715 cat >conftest.$ac_ext <<_ACEOF
22716/* confdefs.h. */
22717_ACEOF
22718cat confdefs.h >>conftest.$ac_ext
22719cat >>conftest.$ac_ext <<_ACEOF
22720/* end confdefs.h. */
22721
22722#include <gtk/gtk.h>
22723#include <stdio.h>
22724#include <stdlib.h>
22725
22726int
22727main ()
22728{
22729 int major, minor, micro;
22730 char *tmp_version;
22731
22732 system ("touch conf.gtktest");
22733
22734 /* HP/UX 9 (%@#!) writes to sscanf strings */
22735 tmp_version = g_strdup("$min_gtk_version");
22736 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22737 printf("%s, bad version string\n", "$min_gtk_version");
22738 exit(1);
22739 }
22740
22741 if ((gtk_major_version != $gtk_config_major_version) ||
22742 (gtk_minor_version != $gtk_config_minor_version) ||
22743 (gtk_micro_version != $gtk_config_micro_version))
22744 {
22745 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22746 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22747 gtk_major_version, gtk_minor_version, gtk_micro_version);
22748 printf ("*** was found! If gtk-config was correct, then it is best\n");
22749 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22750 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22751 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22752 printf("*** required on your system.\n");
22753 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22754 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22755 printf("*** before re-running configure\n");
22756 }
22757#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22758 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22759 (gtk_minor_version != GTK_MINOR_VERSION) ||
22760 (gtk_micro_version != GTK_MICRO_VERSION))
22761 {
22762 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22763 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22764 printf("*** library (version %d.%d.%d)\n",
22765 gtk_major_version, gtk_minor_version, gtk_micro_version);
22766 }
22767#endif /* defined (GTK_MAJOR_VERSION) ... */
22768 else
22769 {
22770 if ((gtk_major_version > major) ||
22771 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22772 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22773 {
22774 return 0;
22775 }
22776 else
22777 {
22778 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22779 gtk_major_version, gtk_minor_version, gtk_micro_version);
22780 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22781 major, minor, micro);
22782 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22783 printf("***\n");
22784 printf("*** If you have already installed a sufficiently new version, this error\n");
22785 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22786 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22787 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22788 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22789 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22790 printf("*** so that the correct libraries are found at run-time))\n");
22791 }
22792 }
22793 return 1;
22794}
22795
22796_ACEOF
22797rm -f conftest$ac_exeext
22798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22799 (eval $ac_link) 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 :
22809else
22810 echo "$as_me: program exited with status $ac_status" >&5
22811echo "$as_me: failed program was:" >&5
22812sed 's/^/| /' conftest.$ac_ext >&5
22813
22814( exit $ac_status )
22815no_gtk=yes
22816fi
ac1cb8d3 22817rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22818fi
22819 CFLAGS="$ac_save_CFLAGS"
22820 LIBS="$ac_save_LIBS"
22821 fi
22822 fi
22823 if test "x$no_gtk" = x ; then
22824 echo "$as_me:$LINENO: result: yes" >&5
22825echo "${ECHO_T}yes" >&6
22826 wx_cv_lib_gtk=1.2.7
22827 else
22828 echo "$as_me:$LINENO: result: no" >&5
22829echo "${ECHO_T}no" >&6
22830 if test "$GTK_CONFIG" = "no" ; then
22831 echo "*** The gtk-config script installed by GTK could not be found"
22832 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22833 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22834 echo "*** full path to gtk-config."
22835 else
22836 if test -f conf.gtktest ; then
22837 :
22838 else
22839 echo "*** Could not run GTK test program, checking why..."
22840 CFLAGS="$CFLAGS $GTK_CFLAGS"
22841 LIBS="$LIBS $GTK_LIBS"
22842 cat >conftest.$ac_ext <<_ACEOF
22843/* confdefs.h. */
22844_ACEOF
22845cat confdefs.h >>conftest.$ac_ext
22846cat >>conftest.$ac_ext <<_ACEOF
22847/* end confdefs.h. */
22848
22849#include <gtk/gtk.h>
22850#include <stdio.h>
22851
22852int
22853main ()
22854{
22855 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22856 ;
22857 return 0;
22858}
22859_ACEOF
22860rm -f conftest.$ac_objext conftest$ac_exeext
22861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22862 (eval $ac_link) 2>conftest.er1
a848cd7e 22863 ac_status=$?
ac1cb8d3
VS
22864 grep -v '^ *+' conftest.er1 >conftest.err
22865 rm -f conftest.er1
22866 cat conftest.err >&5
a848cd7e
SC
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } &&
ac1cb8d3
VS
22869 { ac_try='test -z "$ac_c_werror_flag"
22870 || test ! -s conftest.err'
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; } &&
22876 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22879 ac_status=$?
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; }; then
22882 echo "*** The test program compiled, but did not run. This usually means"
22883 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22884 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22885 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22886 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22887 echo "*** is required on your system"
22888 echo "***"
22889 echo "*** If you have an old version installed, it is best to remove it, although"
22890 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22891 echo "***"
22892 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22893 echo "*** came with the system with the command"
22894 echo "***"
22895 echo "*** rpm --erase --nodeps gtk gtk-devel"
22896else
22897 echo "$as_me: failed program was:" >&5
22898sed 's/^/| /' conftest.$ac_ext >&5
22899
22900 echo "*** The test program failed to compile or link. See the file config.log for the"
22901 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22902 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22903 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22904fi
ac1cb8d3
VS
22905rm -f conftest.err conftest.$ac_objext \
22906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22907 CFLAGS="$ac_save_CFLAGS"
22908 LIBS="$ac_save_LIBS"
22909 fi
22910 fi
22911 GTK_CFLAGS=""
22912 GTK_LIBS=""
22913 :
22914 fi
22915
22916
22917 rm -f conf.gtktest
22918
22919
22920 if test -z "$wx_cv_lib_gtk"; then
22921
22922# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22923if test "${with_gtk_prefix+set}" = set; then
22924 withval="$with_gtk_prefix"
22925 gtk_config_prefix="$withval"
22926else
22927 gtk_config_prefix=""
22928fi;
22929
22930# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22931if test "${with_gtk_exec_prefix+set}" = set; then
22932 withval="$with_gtk_exec_prefix"
22933 gtk_config_exec_prefix="$withval"
22934else
22935 gtk_config_exec_prefix=""
22936fi;
22937# Check whether --enable-gtktest or --disable-gtktest was given.
22938if test "${enable_gtktest+set}" = set; then
22939 enableval="$enable_gtktest"
22940
22941else
22942 enable_gtktest=yes
22943fi;
22944
22945 for module in . $GTK_MODULES
22946 do
22947 case "$module" in
22948 gthread)
22949 gtk_config_args="$gtk_config_args gthread"
22950 ;;
22951 esac
22952 done
22953
22954 if test x$gtk_config_exec_prefix != x ; then
22955 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22956 if test x${GTK_CONFIG+set} != xset ; then
22957 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22958 fi
22959 fi
22960 if test x$gtk_config_prefix != x ; then
22961 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22962 if test x${GTK_CONFIG+set} != xset ; then
22963 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22964 fi
22965 fi
22966
22967 # Extract the first word of "gtk-config", so it can be a program name with args.
22968set dummy gtk-config; ac_word=$2
22969echo "$as_me:$LINENO: checking for $ac_word" >&5
22970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22971if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22973else
22974 case $GTK_CONFIG in
22975 [\\/]* | ?:[\\/]*)
22976 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22977 ;;
22978 *)
22979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22980for as_dir in $PATH
22981do
22982 IFS=$as_save_IFS
22983 test -z "$as_dir" && as_dir=.
22984 for ac_exec_ext in '' $ac_executable_extensions; do
22985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22986 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22988 break 2
22989 fi
22990done
22991done
22992
22993 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22994 ;;
22995esac
22996fi
22997GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22998
22999if test -n "$GTK_CONFIG"; then
23000 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23001echo "${ECHO_T}$GTK_CONFIG" >&6
23002else
23003 echo "$as_me:$LINENO: result: no" >&5
23004echo "${ECHO_T}no" >&6
23005fi
23006
23007 min_gtk_version=1.2.3
23008 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23009echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23010 no_gtk=""
23011 if test "$GTK_CONFIG" = "no" ; then
23012 no_gtk=yes
23013 else
23014 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23015 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23016 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23017 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23018 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23019 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23020 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23022 if test "x$enable_gtktest" = "xyes" ; then
23023 ac_save_CFLAGS="$CFLAGS"
23024 ac_save_LIBS="$LIBS"
23025 CFLAGS="$CFLAGS $GTK_CFLAGS"
23026 LIBS="$GTK_LIBS $LIBS"
23027 rm -f conf.gtktest
23028 if test "$cross_compiling" = yes; then
23029 echo $ac_n "cross compiling; assumed OK... $ac_c"
23030else
23031 cat >conftest.$ac_ext <<_ACEOF
23032/* confdefs.h. */
23033_ACEOF
23034cat confdefs.h >>conftest.$ac_ext
23035cat >>conftest.$ac_ext <<_ACEOF
23036/* end confdefs.h. */
23037
23038#include <gtk/gtk.h>
23039#include <stdio.h>
23040#include <stdlib.h>
23041
23042int
23043main ()
23044{
23045 int major, minor, micro;
23046 char *tmp_version;
23047
23048 system ("touch conf.gtktest");
23049
23050 /* HP/UX 9 (%@#!) writes to sscanf strings */
23051 tmp_version = g_strdup("$min_gtk_version");
23052 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23053 printf("%s, bad version string\n", "$min_gtk_version");
23054 exit(1);
23055 }
23056
23057 if ((gtk_major_version != $gtk_config_major_version) ||
23058 (gtk_minor_version != $gtk_config_minor_version) ||
23059 (gtk_micro_version != $gtk_config_micro_version))
23060 {
23061 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23062 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23063 gtk_major_version, gtk_minor_version, gtk_micro_version);
23064 printf ("*** was found! If gtk-config was correct, then it is best\n");
23065 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23066 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23067 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23068 printf("*** required on your system.\n");
23069 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23070 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23071 printf("*** before re-running configure\n");
23072 }
23073#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23074 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23075 (gtk_minor_version != GTK_MINOR_VERSION) ||
23076 (gtk_micro_version != GTK_MICRO_VERSION))
23077 {
23078 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23079 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23080 printf("*** library (version %d.%d.%d)\n",
23081 gtk_major_version, gtk_minor_version, gtk_micro_version);
23082 }
23083#endif /* defined (GTK_MAJOR_VERSION) ... */
23084 else
23085 {
23086 if ((gtk_major_version > major) ||
23087 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23088 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23089 {
23090 return 0;
23091 }
23092 else
23093 {
23094 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23095 gtk_major_version, gtk_minor_version, gtk_micro_version);
23096 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23097 major, minor, micro);
23098 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23099 printf("***\n");
23100 printf("*** If you have already installed a sufficiently new version, this error\n");
23101 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23102 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23103 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23104 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23105 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23106 printf("*** so that the correct libraries are found at run-time))\n");
23107 }
23108 }
23109 return 1;
23110}
23111
23112_ACEOF
23113rm -f conftest$ac_exeext
23114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23115 (eval $ac_link) 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; }; then
23124 :
23125else
23126 echo "$as_me: program exited with status $ac_status" >&5
23127echo "$as_me: failed program was:" >&5
23128sed 's/^/| /' conftest.$ac_ext >&5
23129
23130( exit $ac_status )
23131no_gtk=yes
23132fi
ac1cb8d3 23133rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23134fi
23135 CFLAGS="$ac_save_CFLAGS"
23136 LIBS="$ac_save_LIBS"
23137 fi
23138 fi
23139 if test "x$no_gtk" = x ; then
23140 echo "$as_me:$LINENO: result: yes" >&5
23141echo "${ECHO_T}yes" >&6
23142 wx_cv_lib_gtk=1.2.3
23143 else
23144 echo "$as_me:$LINENO: result: no" >&5
23145echo "${ECHO_T}no" >&6
23146 if test "$GTK_CONFIG" = "no" ; then
23147 echo "*** The gtk-config script installed by GTK could not be found"
23148 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23149 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23150 echo "*** full path to gtk-config."
23151 else
23152 if test -f conf.gtktest ; then
23153 :
23154 else
23155 echo "*** Could not run GTK test program, checking why..."
23156 CFLAGS="$CFLAGS $GTK_CFLAGS"
23157 LIBS="$LIBS $GTK_LIBS"
23158 cat >conftest.$ac_ext <<_ACEOF
23159/* confdefs.h. */
23160_ACEOF
23161cat confdefs.h >>conftest.$ac_ext
23162cat >>conftest.$ac_ext <<_ACEOF
23163/* end confdefs.h. */
23164
23165#include <gtk/gtk.h>
23166#include <stdio.h>
23167
23168int
23169main ()
23170{
23171 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23172 ;
23173 return 0;
23174}
23175_ACEOF
23176rm -f conftest.$ac_objext conftest$ac_exeext
23177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23178 (eval $ac_link) 2>conftest.er1
a848cd7e 23179 ac_status=$?
ac1cb8d3
VS
23180 grep -v '^ *+' conftest.er1 >conftest.err
23181 rm -f conftest.er1
23182 cat conftest.err >&5
a848cd7e
SC
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } &&
ac1cb8d3
VS
23185 { ac_try='test -z "$ac_c_werror_flag"
23186 || test ! -s conftest.err'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23189 ac_status=$?
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; } &&
23192 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23194 (eval $ac_try) 2>&5
23195 ac_status=$?
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); }; }; then
23198 echo "*** The test program compiled, but did not run. This usually means"
23199 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23200 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23201 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23202 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23203 echo "*** is required on your system"
23204 echo "***"
23205 echo "*** If you have an old version installed, it is best to remove it, although"
23206 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23207 echo "***"
23208 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23209 echo "*** came with the system with the command"
23210 echo "***"
23211 echo "*** rpm --erase --nodeps gtk gtk-devel"
23212else
23213 echo "$as_me: failed program was:" >&5
23214sed 's/^/| /' conftest.$ac_ext >&5
23215
23216 echo "*** The test program failed to compile or link. See the file config.log for the"
23217 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23218 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23219 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23220fi
ac1cb8d3
VS
23221rm -f conftest.err conftest.$ac_objext \
23222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23223 CFLAGS="$ac_save_CFLAGS"
23224 LIBS="$ac_save_LIBS"
23225 fi
23226 fi
23227 GTK_CFLAGS=""
23228 GTK_LIBS=""
23229 :
23230 fi
23231
23232
23233 rm -f conf.gtktest
23234
23235 fi
23236 fi
23237
23238 if test -z "$wx_cv_lib_gtk"; then
23239 wx_cv_lib_gtk=none
23240 else
23241 wx_cv_cflags_gtk=$GTK_CFLAGS
23242 wx_cv_libs_gtk=$GTK_LIBS
23243 fi
23244
23245
23246fi
23247
23248
23249 if test "$gtk_version_cached" = 1; then
23250 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23251echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23252 fi
23253
23254 case "$wx_cv_lib_gtk" in
23255 2.0) WXGTK20=1
23256 TOOLKIT_VERSION=2
23257 ;;
23258 1.2.7) WXGTK127=1
23259 WXGTK12=1
23260 ;;
23261 1.2.3) WXGTK12=1
23262 ;;
23263 *) { { echo "$as_me:$LINENO: error:
23264Please check that gtk-config is in path, the directory
23265where GTK+ libraries are installed (returned by
23266'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23267equivalent variable and GTK+ is version 1.2.3 or above.
23268 " >&5
23269echo "$as_me: error:
23270Please check that gtk-config is in path, the directory
23271where GTK+ libraries are installed (returned by
23272'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23273equivalent variable and GTK+ is version 1.2.3 or above.
23274 " >&2;}
23275 { (exit 1); exit 1; }; }
23276 ;;
23277 esac
23278
23279 if test "$WXGTK20" = 1; then
23280 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23281
23282 succeeded=no
23283
23284 if test -z "$PKG_CONFIG"; then
23285 # Extract the first word of "pkg-config", so it can be a program name with args.
23286set dummy pkg-config; ac_word=$2
23287echo "$as_me:$LINENO: checking for $ac_word" >&5
23288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23289if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23290 echo $ECHO_N "(cached) $ECHO_C" >&6
23291else
23292 case $PKG_CONFIG in
23293 [\\/]* | ?:[\\/]*)
23294 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23295 ;;
23296 *)
23297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23298for as_dir in $PATH
23299do
23300 IFS=$as_save_IFS
23301 test -z "$as_dir" && as_dir=.
23302 for ac_exec_ext in '' $ac_executable_extensions; do
23303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23304 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23306 break 2
23307 fi
23308done
23309done
23310
23311 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23312 ;;
23313esac
23314fi
23315PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23316
23317if test -n "$PKG_CONFIG"; then
23318 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23319echo "${ECHO_T}$PKG_CONFIG" >&6
23320else
23321 echo "$as_me:$LINENO: result: no" >&5
23322echo "${ECHO_T}no" >&6
23323fi
23324
23325 fi
23326
23327 if test "$PKG_CONFIG" = "no" ; then
23328 echo "*** The pkg-config script could not be found. Make sure it is"
23329 echo "*** in your path, or set the PKG_CONFIG environment variable"
23330 echo "*** to the full path to pkg-config."
23331 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23332 else
23333 PKG_CONFIG_MIN_VERSION=0.9.0
23334 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23335 echo "$as_me:$LINENO: checking for pangoft2" >&5
23336echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23337
23338 if $PKG_CONFIG --exists "pangoft2" ; then
23339 echo "$as_me:$LINENO: result: yes" >&5
23340echo "${ECHO_T}yes" >&6
23341 succeeded=yes
23342
23343 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23344echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23345 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23346 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23347echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23348
23349 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23350echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23351 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23352 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23353echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23354 else
23355 PANGOFT2_CFLAGS=""
23356 PANGOFT2_LIBS=""
23357 ## If we have a custom action on failure, don't print errors, but
23358 ## do set a variable so people can do so.
23359 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23360
23361 fi
23362
23363
23364
23365 else
23366 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23367 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23368 fi
23369 fi
23370
23371 if test $succeeded = yes; then
23372
23373 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23374 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23375
23376 else
23377
23378 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23379echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23380 wxUSE_PRINTING_ARCHITECTURE="no"
23381
23382
23383 fi
23384
23385 fi
304205f1
VS
23386
23387 save_CFLAGS="$CFLAGS"
23388 save_LIBS="$LIBS"
23389 CFLAGS="$CFLAGS $GTK_CFLAGS"
23390 LIBS="$LIBS $GTK_LIBS"
23391
23392for ac_func in pango_font_family_is_monospace
23393do
23394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23395echo "$as_me:$LINENO: checking for $ac_func" >&5
23396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23397if eval "test \"\${$as_ac_var+set}\" = set"; then
23398 echo $ECHO_N "(cached) $ECHO_C" >&6
23399else
23400 cat >conftest.$ac_ext <<_ACEOF
23401/* confdefs.h. */
23402_ACEOF
23403cat confdefs.h >>conftest.$ac_ext
23404cat >>conftest.$ac_ext <<_ACEOF
23405/* end confdefs.h. */
23406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23408#define $ac_func innocuous_$ac_func
23409
23410/* System header to define __stub macros and hopefully few prototypes,
23411 which can conflict with char $ac_func (); below.
23412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23413 <limits.h> exists even on freestanding compilers. */
23414
23415#ifdef __STDC__
23416# include <limits.h>
23417#else
23418# include <assert.h>
23419#endif
23420
23421#undef $ac_func
23422
23423/* Override any gcc2 internal prototype to avoid an error. */
23424#ifdef __cplusplus
23425extern "C"
23426{
23427#endif
23428/* We use char because int might match the return type of a gcc2
23429 builtin and then its argument prototype would still apply. */
23430char $ac_func ();
23431/* The GNU C library defines this for functions which it implements
23432 to always fail with ENOSYS. Some functions are actually named
23433 something starting with __ and the normal name is an alias. */
23434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23435choke me
23436#else
23437char (*f) () = $ac_func;
23438#endif
23439#ifdef __cplusplus
23440}
23441#endif
23442
23443int
23444main ()
23445{
23446return f != $ac_func;
23447 ;
23448 return 0;
23449}
23450_ACEOF
23451rm -f conftest.$ac_objext conftest$ac_exeext
23452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23453 (eval $ac_link) 2>conftest.er1
23454 ac_status=$?
23455 grep -v '^ *+' conftest.er1 >conftest.err
23456 rm -f conftest.er1
23457 cat conftest.err >&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); } &&
23460 { ac_try='test -z "$ac_c_werror_flag"
23461 || test ! -s conftest.err'
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; } &&
23467 { ac_try='test -s conftest$ac_exeext'
23468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469 (eval $ac_try) 2>&5
23470 ac_status=$?
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }; then
23473 eval "$as_ac_var=yes"
23474else
23475 echo "$as_me: failed program was:" >&5
23476sed 's/^/| /' conftest.$ac_ext >&5
23477
23478eval "$as_ac_var=no"
23479fi
23480rm -f conftest.err conftest.$ac_objext \
23481 conftest$ac_exeext conftest.$ac_ext
23482fi
23483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23484echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23485if test `eval echo '${'$as_ac_var'}'` = yes; then
23486 cat >>confdefs.h <<_ACEOF
23487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23488_ACEOF
23489
23490fi
23491done
23492
23493 CFLAGS="$save_CFLAGS"
23494 LIBS="$save_LIBS"
a848cd7e
SC
23495 else
23496 if test "$wxUSE_UNICODE" = "yes"; then
23497 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23498echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23499 wxUSE_UNICODE=no
23500 fi
23501 fi
23502
23503 if test "$USE_DARWIN" != 1; then
23504
23505for ac_func in poll
23506do
23507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23508echo "$as_me:$LINENO: checking for $ac_func" >&5
23509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23510if eval "test \"\${$as_ac_var+set}\" = set"; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23512else
23513 cat >conftest.$ac_ext <<_ACEOF
23514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
ac1cb8d3
VS
23519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23521#define $ac_func innocuous_$ac_func
23522
a848cd7e
SC
23523/* System header to define __stub macros and hopefully few prototypes,
23524 which can conflict with char $ac_func (); below.
23525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23526 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23527
a848cd7e
SC
23528#ifdef __STDC__
23529# include <limits.h>
23530#else
23531# include <assert.h>
23532#endif
ac1cb8d3
VS
23533
23534#undef $ac_func
23535
a848cd7e
SC
23536/* Override any gcc2 internal prototype to avoid an error. */
23537#ifdef __cplusplus
23538extern "C"
23539{
23540#endif
23541/* We use char because int might match the return type of a gcc2
23542 builtin and then its argument prototype would still apply. */
23543char $ac_func ();
23544/* The GNU C library defines this for functions which it implements
23545 to always fail with ENOSYS. Some functions are actually named
23546 something starting with __ and the normal name is an alias. */
23547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23548choke me
23549#else
23550char (*f) () = $ac_func;
23551#endif
23552#ifdef __cplusplus
23553}
23554#endif
23555
23556int
23557main ()
23558{
23559return f != $ac_func;
23560 ;
23561 return 0;
23562}
23563_ACEOF
23564rm -f conftest.$ac_objext conftest$ac_exeext
23565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23566 (eval $ac_link) 2>conftest.er1
a848cd7e 23567 ac_status=$?
ac1cb8d3
VS
23568 grep -v '^ *+' conftest.er1 >conftest.err
23569 rm -f conftest.er1
23570 cat conftest.err >&5
a848cd7e
SC
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } &&
ac1cb8d3
VS
23573 { ac_try='test -z "$ac_c_werror_flag"
23574 || test ! -s conftest.err'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; } &&
23580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 eval "$as_ac_var=yes"
23587else
23588 echo "$as_me: failed program was:" >&5
23589sed 's/^/| /' conftest.$ac_ext >&5
23590
23591eval "$as_ac_var=no"
23592fi
ac1cb8d3
VS
23593rm -f conftest.err conftest.$ac_objext \
23594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23595fi
23596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23598if test `eval echo '${'$as_ac_var'}'` = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23601_ACEOF
23602
23603fi
23604done
23605
23606 fi
23607
23608 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23609 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23610
23611 AFMINSTALL=afminstall
23612 TOOLKIT=GTK
23613 GUIDIST=GTK_DIST
23614
23615 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23616echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23617if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23619else
23620 ac_check_lib_save_LIBS=$LIBS
23621LIBS="-lgdk $LIBS"
23622cat >conftest.$ac_ext <<_ACEOF
23623/* confdefs.h. */
23624_ACEOF
23625cat confdefs.h >>conftest.$ac_ext
23626cat >>conftest.$ac_ext <<_ACEOF
23627/* end confdefs.h. */
23628
23629/* Override any gcc2 internal prototype to avoid an error. */
23630#ifdef __cplusplus
23631extern "C"
23632#endif
23633/* We use char because int might match the return type of a gcc2
23634 builtin and then its argument prototype would still apply. */
23635char gdk_im_open ();
23636int
23637main ()
23638{
23639gdk_im_open ();
23640 ;
23641 return 0;
23642}
23643_ACEOF
23644rm -f conftest.$ac_objext conftest$ac_exeext
23645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23646 (eval $ac_link) 2>conftest.er1
a848cd7e 23647 ac_status=$?
ac1cb8d3
VS
23648 grep -v '^ *+' conftest.er1 >conftest.err
23649 rm -f conftest.er1
23650 cat conftest.err >&5
a848cd7e
SC
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } &&
ac1cb8d3
VS
23653 { ac_try='test -z "$ac_c_werror_flag"
23654 || test ! -s conftest.err'
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; } &&
23660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662 (eval $ac_try) 2>&5
23663 ac_status=$?
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); }; }; then
23666 ac_cv_lib_gdk_gdk_im_open=yes
23667else
23668 echo "$as_me: failed program was:" >&5
23669sed 's/^/| /' conftest.$ac_ext >&5
23670
23671ac_cv_lib_gdk_gdk_im_open=no
23672fi
ac1cb8d3
VS
23673rm -f conftest.err conftest.$ac_objext \
23674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23675LIBS=$ac_check_lib_save_LIBS
23676fi
23677echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23678echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23679if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23680 cat >>confdefs.h <<\_ACEOF
23681#define HAVE_XIM 1
23682_ACEOF
23683
23684fi
23685
23686
23687
23688 if test "$wxUSE_GPE" = "yes"; then
23689 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23690echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23691
23692ac_find_libraries=
23693for ac_dir in $SEARCH_LIB /usr/lib;
23694 do
23695 for ac_extension in a so sl dylib; do
23696 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23697 ac_find_libraries=$ac_dir
23698 break 2
23699 fi
23700 done
23701 done
23702
23703 if test "$ac_find_libraries" != "" ; then
23704
23705 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23706 result=$?
23707 if test $result = 0; then
23708 ac_path_to_link=""
23709 else
23710 ac_path_to_link=" -L$ac_find_libraries"
23711 fi
23712
23713 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23714 WXGPE=1
23715 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23716echo "${ECHO_T}found at $ac_find_libraries" >&6
23717 else
23718 echo "$as_me:$LINENO: result: not found" >&5
23719echo "${ECHO_T}not found" >&6
23720 fi
23721
23722 fi
23723 fi
23724
23725 if test "$wxUSE_MGL" = 1; then
23726 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23727echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23728 if test "x$MGL_ROOT" = x ; then
23729 echo "$as_me:$LINENO: result: not found" >&5
23730echo "${ECHO_T}not found" >&6
23731 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23732echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23733 { (exit 1); exit 1; }; }
23734 else
23735 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23736echo "${ECHO_T}$MGL_ROOT" >&6
23737 fi
23738
23739 echo "$as_me:$LINENO: checking for libmgl location" >&5
23740echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23741 case "${host}" in
23742 *-*-linux* )
23743 if test "x$wxUSE_SHARED" = xyes ; then
23744 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23745 else
23746 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23747 fi
23748 ;;
23749 *-pc-msdosdjgpp )
23750 mgl_os_candidates="dos32/dj2"
23751 ;;
23752 *)
23753 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23754echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23755 { (exit 1); exit 1; }; }
23756 esac
23757
23758 mgl_lib_type=""
23759 mgl_os=""
23760
23761 for mgl_os_i in $mgl_os_candidates ; do
23762 if test "x$mgl_os" = x ; then
23763 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23764 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23765 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23766 mgl_lib_type=debug
23767 mgl_os=$mgl_os_i
23768 fi
23769 fi
23770 if test "x$mgl_lib_type" = x ; then
23771 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23772 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23773 mgl_lib_type=release
23774 mgl_os=$mgl_os_i
23775 fi
23776 fi
23777 fi
23778 done
23779
23780 if test "x$mgl_os" = x ; then
23781 echo "$as_me:$LINENO: result: not found" >&5
23782echo "${ECHO_T}not found" >&6
23783 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23784echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23785 { (exit 1); exit 1; }; }
23786 fi
23787 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23788echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23789
23790 wxUSE_UNIVERSAL="yes"
23791
23792 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23793 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23794
23795 AFMINSTALL=afminstall
23796 TOOLKIT=MGL
23797 GUIDIST=MGL_DIST
23798 fi
23799
23800 if test "$wxUSE_MICROWIN" = 1; then
23801 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23802echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23803 if test "x$MICROWINDOWS" = x ; then
23804 echo "$as_me:$LINENO: result: not found" >&5
23805echo "${ECHO_T}not found" >&6
23806 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23807echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23808 { (exit 1); exit 1; }; }
23809 else
23810 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23811echo "${ECHO_T}$MICROWINDOWS" >&6
23812 fi
23813
23814 if test -f $MICROWINDOWS/lib/libmwin.a; then
23815 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23816echo "${ECHO_T}MicroWindows' libraries found." >&6
23817 else
23818 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23819echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23820 { (exit 1); exit 1; }; }
23821 fi
23822
23823 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23824 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23825
23826 wxUSE_UNIVERSAL="yes"
23827
23828 AFMINSTALL=afminstall
23829 TOOLKIT=MICROWIN
23830 GUIDIST=MICROWIN_DIST
23831
23832 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23833 fi
23834
74b84332
VS
23835 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
23836 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23837echo $ECHO_N "checking for X... $ECHO_C" >&6
23838
23839
23840# Check whether --with-x or --without-x was given.
23841if test "${with_x+set}" = set; then
23842 withval="$with_x"
23843
23844fi;
23845# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23846if test "x$with_x" = xno; then
23847 # The user explicitly disabled X.
23848 have_x=disabled
23849else
23850 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23851 # Both variables are already set.
23852 have_x=yes
23853 else
23854 if test "${ac_cv_have_x+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23856else
23857 # One or both of the vars are not set, and there is no cached value.
23858ac_x_includes=no ac_x_libraries=no
23859rm -fr conftest.dir
23860if mkdir conftest.dir; then
23861 cd conftest.dir
23862 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23863 cat >Imakefile <<'_ACEOF'
23864acfindx:
23865 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23866_ACEOF
23867 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23869 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23870 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23871 for ac_extension in a so sl; do
23872 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23873 test -f $ac_im_libdir/libX11.$ac_extension; then
23874 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23875 fi
23876 done
23877 # Screen out bogus values from the imake configuration. They are
23878 # bogus both because they are the default anyway, and because
23879 # using them would break gcc on systems where it needs fixed includes.
23880 case $ac_im_incroot in
23881 /usr/include) ;;
23882 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23883 esac
23884 case $ac_im_usrlibdir in
23885 /usr/lib | /lib) ;;
23886 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23887 esac
23888 fi
23889 cd ..
23890 rm -fr conftest.dir
23891fi
23892
23893# Standard set of common directories for X headers.
23894# Check X11 before X11Rn because it is often a symlink to the current release.
23895ac_x_header_dirs='
23896/usr/X11/include
23897/usr/X11R6/include
23898/usr/X11R5/include
23899/usr/X11R4/include
23900
23901/usr/include/X11
23902/usr/include/X11R6
23903/usr/include/X11R5
23904/usr/include/X11R4
23905
23906/usr/local/X11/include
23907/usr/local/X11R6/include
23908/usr/local/X11R5/include
23909/usr/local/X11R4/include
23910
23911/usr/local/include/X11
23912/usr/local/include/X11R6
23913/usr/local/include/X11R5
23914/usr/local/include/X11R4
23915
23916/usr/X386/include
23917/usr/x386/include
23918/usr/XFree86/include/X11
23919
23920/usr/include
23921/usr/local/include
23922/usr/unsupported/include
23923/usr/athena/include
23924/usr/local/x11r5/include
23925/usr/lpp/Xamples/include
23926
23927/usr/openwin/include
23928/usr/openwin/share/include'
23929
23930if test "$ac_x_includes" = no; then
23931 # Guess where to find include files, by looking for Intrinsic.h.
23932 # First, try using that file with no special directory specified.
23933 cat >conftest.$ac_ext <<_ACEOF
23934/* confdefs.h. */
23935_ACEOF
23936cat confdefs.h >>conftest.$ac_ext
23937cat >>conftest.$ac_ext <<_ACEOF
23938/* end confdefs.h. */
23939#include <X11/Intrinsic.h>
23940_ACEOF
23941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23943 ac_status=$?
23944 grep -v '^ *+' conftest.er1 >conftest.err
23945 rm -f conftest.er1
23946 cat conftest.err >&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } >/dev/null; then
23949 if test -s conftest.err; then
23950 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23952 else
23953 ac_cpp_err=
23954 fi
23955else
23956 ac_cpp_err=yes
23957fi
23958if test -z "$ac_cpp_err"; then
23959 # We can compile using X headers with no special include directory.
23960ac_x_includes=
23961else
23962 echo "$as_me: failed program was:" >&5
23963sed 's/^/| /' conftest.$ac_ext >&5
23964
23965 for ac_dir in $ac_x_header_dirs; do
23966 if test -r "$ac_dir/X11/Intrinsic.h"; then
23967 ac_x_includes=$ac_dir
23968 break
23969 fi
23970done
23971fi
23972rm -f conftest.err conftest.$ac_ext
23973fi # $ac_x_includes = no
23974
23975if test "$ac_x_libraries" = no; then
23976 # Check for the libraries.
23977 # See if we find them without any special options.
23978 # Don't add to $LIBS permanently.
23979 ac_save_LIBS=$LIBS
23980 LIBS="-lXt $LIBS"
23981 cat >conftest.$ac_ext <<_ACEOF
23982/* confdefs.h. */
23983_ACEOF
23984cat confdefs.h >>conftest.$ac_ext
23985cat >>conftest.$ac_ext <<_ACEOF
23986/* end confdefs.h. */
23987#include <X11/Intrinsic.h>
23988int
23989main ()
23990{
23991XtMalloc (0)
23992 ;
23993 return 0;
23994}
23995_ACEOF
23996rm -f conftest.$ac_objext conftest$ac_exeext
23997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23998 (eval $ac_link) 2>conftest.er1
a848cd7e 23999 ac_status=$?
ac1cb8d3
VS
24000 grep -v '^ *+' conftest.er1 >conftest.err
24001 rm -f conftest.er1
24002 cat conftest.err >&5
a848cd7e
SC
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
ac1cb8d3
VS
24005 { ac_try='test -z "$ac_c_werror_flag"
24006 || test ! -s conftest.err'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 LIBS=$ac_save_LIBS
24019# We can link X programs with no special library path.
24020ac_x_libraries=
24021else
24022 echo "$as_me: failed program was:" >&5
24023sed 's/^/| /' conftest.$ac_ext >&5
24024
24025LIBS=$ac_save_LIBS
24026for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24027do
24028 # Don't even attempt the hair of trying to link an X program!
24029 for ac_extension in a so sl; do
24030 if test -r $ac_dir/libXt.$ac_extension; then
24031 ac_x_libraries=$ac_dir
24032 break 2
24033 fi
24034 done
24035done
24036fi
ac1cb8d3
VS
24037rm -f conftest.err conftest.$ac_objext \
24038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24039fi # $ac_x_libraries = no
24040
24041if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24042 # Didn't find X anywhere. Cache the known absence of X.
24043 ac_cv_have_x="have_x=no"
24044else
24045 # Record where we found X for the cache.
24046 ac_cv_have_x="have_x=yes \
ac1cb8d3 24047 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24048fi
24049fi
24050
24051 fi
24052 eval "$ac_cv_have_x"
24053fi # $with_x != no
24054
24055if test "$have_x" != yes; then
24056 echo "$as_me:$LINENO: result: $have_x" >&5
24057echo "${ECHO_T}$have_x" >&6
24058 no_x=yes
24059else
24060 # If each of the values was on the command line, it overrides each guess.
24061 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24062 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24063 # Update the cache value to reflect the command line values.
24064 ac_cv_have_x="have_x=yes \
24065 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24066 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24067echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
24068fi
24069
24070if test "$no_x" = yes; then
24071 # Not all programs may use this symbol, but it does not hurt to define it.
24072
24073cat >>confdefs.h <<\_ACEOF
24074#define X_DISPLAY_MISSING 1
24075_ACEOF
24076
24077 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24078else
24079 if test -n "$x_includes"; then
24080 X_CFLAGS="$X_CFLAGS -I$x_includes"
24081 fi
24082
24083 # It would also be nice to do this for all -L options, not just this one.
24084 if test -n "$x_libraries"; then
24085 X_LIBS="$X_LIBS -L$x_libraries"
24086 # For Solaris; some versions of Sun CC require a space after -R and
24087 # others require no space. Words are not sufficient . . . .
24088 case `(uname -sr) 2>/dev/null` in
24089 "SunOS 5"*)
24090 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24091echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24092 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24093 cat >conftest.$ac_ext <<_ACEOF
24094/* confdefs.h. */
24095_ACEOF
24096cat confdefs.h >>conftest.$ac_ext
24097cat >>conftest.$ac_ext <<_ACEOF
24098/* end confdefs.h. */
24099
24100int
24101main ()
24102{
24103
24104 ;
24105 return 0;
24106}
24107_ACEOF
24108rm -f conftest.$ac_objext conftest$ac_exeext
24109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24110 (eval $ac_link) 2>conftest.er1
a848cd7e 24111 ac_status=$?
ac1cb8d3
VS
24112 grep -v '^ *+' conftest.er1 >conftest.err
24113 rm -f conftest.er1
24114 cat conftest.err >&5
a848cd7e
SC
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); } &&
ac1cb8d3
VS
24117 { ac_try='test -z "$ac_c_werror_flag"
24118 || test ! -s conftest.err'
24119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120 (eval $ac_try) 2>&5
24121 ac_status=$?
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); }; } &&
24124 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24126 (eval $ac_try) 2>&5
24127 ac_status=$?
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); }; }; then
24130 ac_R_nospace=yes
24131else
24132 echo "$as_me: failed program was:" >&5
24133sed 's/^/| /' conftest.$ac_ext >&5
24134
24135ac_R_nospace=no
24136fi
ac1cb8d3
VS
24137rm -f conftest.err conftest.$ac_objext \
24138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24139 if test $ac_R_nospace = yes; then
24140 echo "$as_me:$LINENO: result: no" >&5
24141echo "${ECHO_T}no" >&6
24142 X_LIBS="$X_LIBS -R$x_libraries"
24143 else
24144 LIBS="$ac_xsave_LIBS -R $x_libraries"
24145 cat >conftest.$ac_ext <<_ACEOF
24146/* confdefs.h. */
24147_ACEOF
24148cat confdefs.h >>conftest.$ac_ext
24149cat >>conftest.$ac_ext <<_ACEOF
24150/* end confdefs.h. */
24151
24152int
24153main ()
24154{
24155
24156 ;
24157 return 0;
24158}
24159_ACEOF
24160rm -f conftest.$ac_objext conftest$ac_exeext
24161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24162 (eval $ac_link) 2>conftest.er1
a848cd7e 24163 ac_status=$?
ac1cb8d3
VS
24164 grep -v '^ *+' conftest.er1 >conftest.err
24165 rm -f conftest.er1
24166 cat conftest.err >&5
a848cd7e
SC
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } &&
ac1cb8d3
VS
24169 { ac_try='test -z "$ac_c_werror_flag"
24170 || test ! -s conftest.err'
24171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172 (eval $ac_try) 2>&5
24173 ac_status=$?
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); }; } &&
24176 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24179 ac_status=$?
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; }; then
24182 ac_R_space=yes
24183else
24184 echo "$as_me: failed program was:" >&5
24185sed 's/^/| /' conftest.$ac_ext >&5
24186
24187ac_R_space=no
24188fi
ac1cb8d3
VS
24189rm -f conftest.err conftest.$ac_objext \
24190 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24191 if test $ac_R_space = yes; then
24192 echo "$as_me:$LINENO: result: yes" >&5
24193echo "${ECHO_T}yes" >&6
24194 X_LIBS="$X_LIBS -R $x_libraries"
24195 else
24196 echo "$as_me:$LINENO: result: neither works" >&5
24197echo "${ECHO_T}neither works" >&6
24198 fi
24199 fi
24200 LIBS=$ac_xsave_LIBS
24201 esac
24202 fi
24203
24204 # Check for system-dependent libraries X programs must link with.
24205 # Do this before checking for the system-independent R6 libraries
24206 # (-lICE), since we may need -lsocket or whatever for X linking.
24207
24208 if test "$ISC" = yes; then
24209 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24210 else
24211 # Martyn Johnson says this is needed for Ultrix, if the X
24212 # libraries were built with DECnet support. And Karl Berry says
24213 # the Alpha needs dnet_stub (dnet does not exist).
24214 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24215 cat >conftest.$ac_ext <<_ACEOF
24216/* confdefs.h. */
24217_ACEOF
24218cat confdefs.h >>conftest.$ac_ext
24219cat >>conftest.$ac_ext <<_ACEOF
24220/* end confdefs.h. */
24221
24222/* Override any gcc2 internal prototype to avoid an error. */
24223#ifdef __cplusplus
24224extern "C"
24225#endif
24226/* We use char because int might match the return type of a gcc2
24227 builtin and then its argument prototype would still apply. */
24228char XOpenDisplay ();
24229int
24230main ()
24231{
24232XOpenDisplay ();
24233 ;
24234 return 0;
24235}
24236_ACEOF
24237rm -f conftest.$ac_objext conftest$ac_exeext
24238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24239 (eval $ac_link) 2>conftest.er1
a848cd7e 24240 ac_status=$?
ac1cb8d3
VS
24241 grep -v '^ *+' conftest.er1 >conftest.err
24242 rm -f conftest.er1
24243 cat conftest.err >&5
a848cd7e
SC
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); } &&
ac1cb8d3
VS
24246 { ac_try='test -z "$ac_c_werror_flag"
24247 || test ! -s conftest.err'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; } &&
24253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255 (eval $ac_try) 2>&5
24256 ac_status=$?
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); }; }; then
24259 :
24260else
24261 echo "$as_me: failed program was:" >&5
24262sed 's/^/| /' conftest.$ac_ext >&5
24263
24264echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24265echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24266if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24268else
24269 ac_check_lib_save_LIBS=$LIBS
24270LIBS="-ldnet $LIBS"
24271cat >conftest.$ac_ext <<_ACEOF
24272/* confdefs.h. */
24273_ACEOF
24274cat confdefs.h >>conftest.$ac_ext
24275cat >>conftest.$ac_ext <<_ACEOF
24276/* end confdefs.h. */
24277
24278/* Override any gcc2 internal prototype to avoid an error. */
24279#ifdef __cplusplus
24280extern "C"
24281#endif
24282/* We use char because int might match the return type of a gcc2
24283 builtin and then its argument prototype would still apply. */
24284char dnet_ntoa ();
24285int
24286main ()
24287{
24288dnet_ntoa ();
24289 ;
24290 return 0;
24291}
24292_ACEOF
24293rm -f conftest.$ac_objext conftest$ac_exeext
24294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24295 (eval $ac_link) 2>conftest.er1
a848cd7e 24296 ac_status=$?
ac1cb8d3
VS
24297 grep -v '^ *+' conftest.er1 >conftest.err
24298 rm -f conftest.er1
24299 cat conftest.err >&5
a848cd7e
SC
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } &&
ac1cb8d3
VS
24302 { ac_try='test -z "$ac_c_werror_flag"
24303 || test ! -s conftest.err'
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; } &&
24309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311 (eval $ac_try) 2>&5
24312 ac_status=$?
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; }; then
24315 ac_cv_lib_dnet_dnet_ntoa=yes
24316else
24317 echo "$as_me: failed program was:" >&5
24318sed 's/^/| /' conftest.$ac_ext >&5
24319
24320ac_cv_lib_dnet_dnet_ntoa=no
24321fi
ac1cb8d3
VS
24322rm -f conftest.err conftest.$ac_objext \
24323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24324LIBS=$ac_check_lib_save_LIBS
24325fi
24326echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24327echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24328if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24329 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24330fi
24331
24332 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24333 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24334echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24335if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24336 echo $ECHO_N "(cached) $ECHO_C" >&6
24337else
24338 ac_check_lib_save_LIBS=$LIBS
24339LIBS="-ldnet_stub $LIBS"
24340cat >conftest.$ac_ext <<_ACEOF
24341/* confdefs.h. */
24342_ACEOF
24343cat confdefs.h >>conftest.$ac_ext
24344cat >>conftest.$ac_ext <<_ACEOF
24345/* end confdefs.h. */
24346
24347/* Override any gcc2 internal prototype to avoid an error. */
24348#ifdef __cplusplus
24349extern "C"
24350#endif
24351/* We use char because int might match the return type of a gcc2
24352 builtin and then its argument prototype would still apply. */
24353char dnet_ntoa ();
24354int
24355main ()
24356{
24357dnet_ntoa ();
24358 ;
24359 return 0;
24360}
24361_ACEOF
24362rm -f conftest.$ac_objext conftest$ac_exeext
24363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24364 (eval $ac_link) 2>conftest.er1
a848cd7e 24365 ac_status=$?
ac1cb8d3
VS
24366 grep -v '^ *+' conftest.er1 >conftest.err
24367 rm -f conftest.er1
24368 cat conftest.err >&5
a848cd7e
SC
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } &&
ac1cb8d3
VS
24371 { ac_try='test -z "$ac_c_werror_flag"
24372 || test ! -s conftest.err'
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; } &&
24378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24380 (eval $ac_try) 2>&5
24381 ac_status=$?
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); }; }; then
24384 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24385else
24386 echo "$as_me: failed program was:" >&5
24387sed 's/^/| /' conftest.$ac_ext >&5
24388
24389ac_cv_lib_dnet_stub_dnet_ntoa=no
24390fi
ac1cb8d3
VS
24391rm -f conftest.err conftest.$ac_objext \
24392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24393LIBS=$ac_check_lib_save_LIBS
24394fi
24395echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24396echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24397if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24398 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24399fi
24400
24401 fi
24402fi
ac1cb8d3
VS
24403rm -f conftest.err conftest.$ac_objext \
24404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24405 LIBS="$ac_xsave_LIBS"
24406
24407 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24408 # to get the SysV transport functions.
24409 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24410 # needs -lnsl.
24411 # The nsl library prevents programs from opening the X display
24412 # on Irix 5.2, according to T.E. Dickey.
24413 # The functions gethostbyname, getservbyname, and inet_addr are
24414 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24415 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24416echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24417if test "${ac_cv_func_gethostbyname+set}" = set; then
24418 echo $ECHO_N "(cached) $ECHO_C" >&6
24419else
24420 cat >conftest.$ac_ext <<_ACEOF
24421/* confdefs.h. */
24422_ACEOF
24423cat confdefs.h >>conftest.$ac_ext
24424cat >>conftest.$ac_ext <<_ACEOF
24425/* end confdefs.h. */
ac1cb8d3
VS
24426/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24428#define gethostbyname innocuous_gethostbyname
24429
a848cd7e
SC
24430/* System header to define __stub macros and hopefully few prototypes,
24431 which can conflict with char gethostbyname (); below.
24432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24433 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24434
a848cd7e
SC
24435#ifdef __STDC__
24436# include <limits.h>
24437#else
24438# include <assert.h>
24439#endif
ac1cb8d3
VS
24440
24441#undef gethostbyname
24442
a848cd7e
SC
24443/* Override any gcc2 internal prototype to avoid an error. */
24444#ifdef __cplusplus
24445extern "C"
24446{
24447#endif
24448/* We use char because int might match the return type of a gcc2
24449 builtin and then its argument prototype would still apply. */
24450char gethostbyname ();
24451/* The GNU C library defines this for functions which it implements
24452 to always fail with ENOSYS. Some functions are actually named
24453 something starting with __ and the normal name is an alias. */
24454#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24455choke me
24456#else
24457char (*f) () = gethostbyname;
24458#endif
24459#ifdef __cplusplus
24460}
24461#endif
24462
24463int
24464main ()
24465{
24466return f != gethostbyname;
24467 ;
24468 return 0;
24469}
24470_ACEOF
24471rm -f conftest.$ac_objext conftest$ac_exeext
24472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24473 (eval $ac_link) 2>conftest.er1
a848cd7e 24474 ac_status=$?
ac1cb8d3
VS
24475 grep -v '^ *+' conftest.er1 >conftest.err
24476 rm -f conftest.er1
24477 cat conftest.err >&5
a848cd7e
SC
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } &&
ac1cb8d3
VS
24480 { ac_try='test -z "$ac_c_werror_flag"
24481 || test ! -s conftest.err'
24482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483 (eval $ac_try) 2>&5
24484 ac_status=$?
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); }; } &&
24487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24490 ac_status=$?
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; }; then
24493 ac_cv_func_gethostbyname=yes
24494else
24495 echo "$as_me: failed program was:" >&5
24496sed 's/^/| /' conftest.$ac_ext >&5
24497
24498ac_cv_func_gethostbyname=no
24499fi
ac1cb8d3
VS
24500rm -f conftest.err conftest.$ac_objext \
24501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24502fi
24503echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24504echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24505
24506 if test $ac_cv_func_gethostbyname = no; then
24507 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24508echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24509if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24511else
24512 ac_check_lib_save_LIBS=$LIBS
24513LIBS="-lnsl $LIBS"
24514cat >conftest.$ac_ext <<_ACEOF
24515/* confdefs.h. */
24516_ACEOF
24517cat confdefs.h >>conftest.$ac_ext
24518cat >>conftest.$ac_ext <<_ACEOF
24519/* end confdefs.h. */
24520
24521/* Override any gcc2 internal prototype to avoid an error. */
24522#ifdef __cplusplus
24523extern "C"
24524#endif
24525/* We use char because int might match the return type of a gcc2
24526 builtin and then its argument prototype would still apply. */
24527char gethostbyname ();
24528int
24529main ()
24530{
24531gethostbyname ();
24532 ;
24533 return 0;
24534}
24535_ACEOF
24536rm -f conftest.$ac_objext conftest$ac_exeext
24537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24538 (eval $ac_link) 2>conftest.er1
24539 ac_status=$?
24540 grep -v '^ *+' conftest.er1 >conftest.err
24541 rm -f conftest.er1
24542 cat conftest.err >&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } &&
24545 { ac_try='test -z "$ac_c_werror_flag"
24546 || test ! -s conftest.err'
24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); }; } &&
24552 { ac_try='test -s conftest$ac_exeext'
24553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554 (eval $ac_try) 2>&5
24555 ac_status=$?
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; }; then
24558 ac_cv_lib_nsl_gethostbyname=yes
24559else
24560 echo "$as_me: failed program was:" >&5
24561sed 's/^/| /' conftest.$ac_ext >&5
24562
24563ac_cv_lib_nsl_gethostbyname=no
24564fi
24565rm -f conftest.err conftest.$ac_objext \
24566 conftest$ac_exeext conftest.$ac_ext
24567LIBS=$ac_check_lib_save_LIBS
24568fi
24569echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24570echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24571if test $ac_cv_lib_nsl_gethostbyname = yes; then
24572 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24573fi
24574
24575 if test $ac_cv_lib_nsl_gethostbyname = no; then
24576 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24577echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24578if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24579 echo $ECHO_N "(cached) $ECHO_C" >&6
24580else
24581 ac_check_lib_save_LIBS=$LIBS
24582LIBS="-lbsd $LIBS"
24583cat >conftest.$ac_ext <<_ACEOF
24584/* confdefs.h. */
24585_ACEOF
24586cat confdefs.h >>conftest.$ac_ext
24587cat >>conftest.$ac_ext <<_ACEOF
24588/* end confdefs.h. */
24589
24590/* Override any gcc2 internal prototype to avoid an error. */
24591#ifdef __cplusplus
24592extern "C"
24593#endif
24594/* We use char because int might match the return type of a gcc2
24595 builtin and then its argument prototype would still apply. */
24596char gethostbyname ();
24597int
24598main ()
24599{
24600gethostbyname ();
24601 ;
24602 return 0;
24603}
24604_ACEOF
24605rm -f conftest.$ac_objext conftest$ac_exeext
24606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24607 (eval $ac_link) 2>conftest.er1
a848cd7e 24608 ac_status=$?
ac1cb8d3
VS
24609 grep -v '^ *+' conftest.er1 >conftest.err
24610 rm -f conftest.er1
24611 cat conftest.err >&5
a848cd7e
SC
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } &&
ac1cb8d3
VS
24614 { ac_try='test -z "$ac_c_werror_flag"
24615 || test ! -s conftest.err'
a848cd7e
SC
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24620 (exit $ac_status); }; } &&
24621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623 (eval $ac_try) 2>&5
24624 ac_status=$?
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
24627 ac_cv_lib_bsd_gethostbyname=yes
24628else
24629 echo "$as_me: failed program was:" >&5
24630sed 's/^/| /' conftest.$ac_ext >&5
24631
24632ac_cv_lib_bsd_gethostbyname=no
24633fi
ac1cb8d3
VS
24634rm -f conftest.err conftest.$ac_objext \
24635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24636LIBS=$ac_check_lib_save_LIBS
24637fi
24638echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24639echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24640if test $ac_cv_lib_bsd_gethostbyname = yes; then
24641 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24642fi
24643
24644 fi
24645 fi
24646
24647 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24648 # socket/setsockopt and other routines are undefined under SCO ODT
24649 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24650 # on later versions), says Simon Leinen: it contains gethostby*
24651 # variants that don't use the name server (or something). -lsocket
24652 # must be given before -lnsl if both are needed. We assume that
24653 # if connect needs -lnsl, so does gethostbyname.
24654 echo "$as_me:$LINENO: checking for connect" >&5
24655echo $ECHO_N "checking for connect... $ECHO_C" >&6
24656if test "${ac_cv_func_connect+set}" = set; then
24657 echo $ECHO_N "(cached) $ECHO_C" >&6
24658else
24659 cat >conftest.$ac_ext <<_ACEOF
24660/* confdefs.h. */
24661_ACEOF
24662cat confdefs.h >>conftest.$ac_ext
24663cat >>conftest.$ac_ext <<_ACEOF
24664/* end confdefs.h. */
ac1cb8d3
VS
24665/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24667#define connect innocuous_connect
24668
a848cd7e
SC
24669/* System header to define __stub macros and hopefully few prototypes,
24670 which can conflict with char connect (); below.
24671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24672 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24673
a848cd7e
SC
24674#ifdef __STDC__
24675# include <limits.h>
24676#else
24677# include <assert.h>
24678#endif
ac1cb8d3
VS
24679
24680#undef connect
24681
a848cd7e
SC
24682/* Override any gcc2 internal prototype to avoid an error. */
24683#ifdef __cplusplus
24684extern "C"
24685{
24686#endif
24687/* We use char because int might match the return type of a gcc2
24688 builtin and then its argument prototype would still apply. */
24689char connect ();
24690/* The GNU C library defines this for functions which it implements
24691 to always fail with ENOSYS. Some functions are actually named
24692 something starting with __ and the normal name is an alias. */
24693#if defined (__stub_connect) || defined (__stub___connect)
24694choke me
24695#else
24696char (*f) () = connect;
24697#endif
24698#ifdef __cplusplus
24699}
24700#endif
24701
24702int
24703main ()
24704{
24705return f != connect;
24706 ;
24707 return 0;
24708}
24709_ACEOF
24710rm -f conftest.$ac_objext conftest$ac_exeext
24711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24712 (eval $ac_link) 2>conftest.er1
a848cd7e 24713 ac_status=$?
ac1cb8d3
VS
24714 grep -v '^ *+' conftest.er1 >conftest.err
24715 rm -f conftest.er1
24716 cat conftest.err >&5
a848cd7e
SC
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } &&
ac1cb8d3
VS
24719 { ac_try='test -z "$ac_c_werror_flag"
24720 || test ! -s conftest.err'
24721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722 (eval $ac_try) 2>&5
24723 ac_status=$?
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); }; } &&
24726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); }; }; then
24732 ac_cv_func_connect=yes
24733else
24734 echo "$as_me: failed program was:" >&5
24735sed 's/^/| /' conftest.$ac_ext >&5
24736
24737ac_cv_func_connect=no
24738fi
ac1cb8d3
VS
24739rm -f conftest.err conftest.$ac_objext \
24740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24741fi
24742echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24743echo "${ECHO_T}$ac_cv_func_connect" >&6
24744
24745 if test $ac_cv_func_connect = no; then
24746 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24747echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24748if test "${ac_cv_lib_socket_connect+set}" = set; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24750else
24751 ac_check_lib_save_LIBS=$LIBS
24752LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24753cat >conftest.$ac_ext <<_ACEOF
24754/* confdefs.h. */
24755_ACEOF
24756cat confdefs.h >>conftest.$ac_ext
24757cat >>conftest.$ac_ext <<_ACEOF
24758/* end confdefs.h. */
24759
24760/* Override any gcc2 internal prototype to avoid an error. */
24761#ifdef __cplusplus
24762extern "C"
24763#endif
24764/* We use char because int might match the return type of a gcc2
24765 builtin and then its argument prototype would still apply. */
24766char connect ();
24767int
24768main ()
24769{
24770connect ();
24771 ;
24772 return 0;
24773}
24774_ACEOF
24775rm -f conftest.$ac_objext conftest$ac_exeext
24776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24777 (eval $ac_link) 2>conftest.er1
a848cd7e 24778 ac_status=$?
ac1cb8d3
VS
24779 grep -v '^ *+' conftest.er1 >conftest.err
24780 rm -f conftest.er1
24781 cat conftest.err >&5
a848cd7e
SC
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } &&
ac1cb8d3
VS
24784 { ac_try='test -z "$ac_c_werror_flag"
24785 || test ! -s conftest.err'
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; } &&
24791 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); }; }; then
24797 ac_cv_lib_socket_connect=yes
24798else
24799 echo "$as_me: failed program was:" >&5
24800sed 's/^/| /' conftest.$ac_ext >&5
24801
24802ac_cv_lib_socket_connect=no
24803fi
ac1cb8d3
VS
24804rm -f conftest.err conftest.$ac_objext \
24805 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24806LIBS=$ac_check_lib_save_LIBS
24807fi
24808echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24809echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24810if test $ac_cv_lib_socket_connect = yes; then
24811 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24812fi
24813
24814 fi
24815
24816 # Guillermo Gomez says -lposix is necessary on A/UX.
24817 echo "$as_me:$LINENO: checking for remove" >&5
24818echo $ECHO_N "checking for remove... $ECHO_C" >&6
24819if test "${ac_cv_func_remove+set}" = set; then
24820 echo $ECHO_N "(cached) $ECHO_C" >&6
24821else
24822 cat >conftest.$ac_ext <<_ACEOF
24823/* confdefs.h. */
24824_ACEOF
24825cat confdefs.h >>conftest.$ac_ext
24826cat >>conftest.$ac_ext <<_ACEOF
24827/* end confdefs.h. */
ac1cb8d3
VS
24828/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24830#define remove innocuous_remove
24831
a848cd7e
SC
24832/* System header to define __stub macros and hopefully few prototypes,
24833 which can conflict with char remove (); below.
24834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24835 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24836
a848cd7e
SC
24837#ifdef __STDC__
24838# include <limits.h>
24839#else
24840# include <assert.h>
24841#endif
ac1cb8d3
VS
24842
24843#undef remove
24844
a848cd7e
SC
24845/* Override any gcc2 internal prototype to avoid an error. */
24846#ifdef __cplusplus
24847extern "C"
24848{
24849#endif
24850/* We use char because int might match the return type of a gcc2
24851 builtin and then its argument prototype would still apply. */
24852char remove ();
24853/* The GNU C library defines this for functions which it implements
24854 to always fail with ENOSYS. Some functions are actually named
24855 something starting with __ and the normal name is an alias. */
24856#if defined (__stub_remove) || defined (__stub___remove)
24857choke me
24858#else
24859char (*f) () = remove;
24860#endif
24861#ifdef __cplusplus
24862}
24863#endif
24864
24865int
24866main ()
24867{
24868return f != remove;
24869 ;
24870 return 0;
24871}
24872_ACEOF
24873rm -f conftest.$ac_objext conftest$ac_exeext
24874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24875 (eval $ac_link) 2>conftest.er1
a848cd7e 24876 ac_status=$?
ac1cb8d3
VS
24877 grep -v '^ *+' conftest.er1 >conftest.err
24878 rm -f conftest.er1
24879 cat conftest.err >&5
a848cd7e
SC
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } &&
ac1cb8d3
VS
24882 { ac_try='test -z "$ac_c_werror_flag"
24883 || test ! -s conftest.err'
24884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885 (eval $ac_try) 2>&5
24886 ac_status=$?
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; } &&
24889 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891 (eval $ac_try) 2>&5
24892 ac_status=$?
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; }; then
24895 ac_cv_func_remove=yes
24896else
24897 echo "$as_me: failed program was:" >&5
24898sed 's/^/| /' conftest.$ac_ext >&5
24899
24900ac_cv_func_remove=no
24901fi
ac1cb8d3
VS
24902rm -f conftest.err conftest.$ac_objext \
24903 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24904fi
24905echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24906echo "${ECHO_T}$ac_cv_func_remove" >&6
24907
24908 if test $ac_cv_func_remove = no; then
24909 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24910echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24911if test "${ac_cv_lib_posix_remove+set}" = set; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24913else
24914 ac_check_lib_save_LIBS=$LIBS
24915LIBS="-lposix $LIBS"
24916cat >conftest.$ac_ext <<_ACEOF
24917/* confdefs.h. */
24918_ACEOF
24919cat confdefs.h >>conftest.$ac_ext
24920cat >>conftest.$ac_ext <<_ACEOF
24921/* end confdefs.h. */
24922
24923/* Override any gcc2 internal prototype to avoid an error. */
24924#ifdef __cplusplus
24925extern "C"
24926#endif
24927/* We use char because int might match the return type of a gcc2
24928 builtin and then its argument prototype would still apply. */
24929char remove ();
24930int
24931main ()
24932{
24933remove ();
24934 ;
24935 return 0;
24936}
24937_ACEOF
24938rm -f conftest.$ac_objext conftest$ac_exeext
24939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24940 (eval $ac_link) 2>conftest.er1
a848cd7e 24941 ac_status=$?
ac1cb8d3
VS
24942 grep -v '^ *+' conftest.er1 >conftest.err
24943 rm -f conftest.er1
24944 cat conftest.err >&5
a848cd7e
SC
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); } &&
ac1cb8d3
VS
24947 { ac_try='test -z "$ac_c_werror_flag"
24948 || test ! -s conftest.err'
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; } &&
24954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; }; then
24960 ac_cv_lib_posix_remove=yes
24961else
24962 echo "$as_me: failed program was:" >&5
24963sed 's/^/| /' conftest.$ac_ext >&5
24964
24965ac_cv_lib_posix_remove=no
24966fi
ac1cb8d3
VS
24967rm -f conftest.err conftest.$ac_objext \
24968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24969LIBS=$ac_check_lib_save_LIBS
24970fi
24971echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24972echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24973if test $ac_cv_lib_posix_remove = yes; then
24974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24975fi
24976
24977 fi
24978
24979 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24980 echo "$as_me:$LINENO: checking for shmat" >&5
24981echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24982if test "${ac_cv_func_shmat+set}" = set; then
24983 echo $ECHO_N "(cached) $ECHO_C" >&6
24984else
24985 cat >conftest.$ac_ext <<_ACEOF
24986/* confdefs.h. */
24987_ACEOF
24988cat confdefs.h >>conftest.$ac_ext
24989cat >>conftest.$ac_ext <<_ACEOF
24990/* end confdefs.h. */
ac1cb8d3
VS
24991/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24993#define shmat innocuous_shmat
24994
a848cd7e
SC
24995/* System header to define __stub macros and hopefully few prototypes,
24996 which can conflict with char shmat (); below.
24997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24998 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24999
a848cd7e
SC
25000#ifdef __STDC__
25001# include <limits.h>
25002#else
25003# include <assert.h>
25004#endif
ac1cb8d3
VS
25005
25006#undef shmat
25007
a848cd7e
SC
25008/* Override any gcc2 internal prototype to avoid an error. */
25009#ifdef __cplusplus
25010extern "C"
25011{
25012#endif
25013/* We use char because int might match the return type of a gcc2
25014 builtin and then its argument prototype would still apply. */
25015char shmat ();
25016/* The GNU C library defines this for functions which it implements
25017 to always fail with ENOSYS. Some functions are actually named
25018 something starting with __ and the normal name is an alias. */
25019#if defined (__stub_shmat) || defined (__stub___shmat)
25020choke me
25021#else
25022char (*f) () = shmat;
25023#endif
25024#ifdef __cplusplus
25025}
25026#endif
25027
25028int
25029main ()
25030{
25031return f != shmat;
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); } &&
ac1cb8d3
VS
25045 { ac_try='test -z "$ac_c_werror_flag"
25046 || test ! -s conftest.err'
25047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048 (eval $ac_try) 2>&5
25049 ac_status=$?
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); }; } &&
25052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054 (eval $ac_try) 2>&5
25055 ac_status=$?
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); }; }; then
25058 ac_cv_func_shmat=yes
25059else
25060 echo "$as_me: failed program was:" >&5
25061sed 's/^/| /' conftest.$ac_ext >&5
25062
25063ac_cv_func_shmat=no
25064fi
ac1cb8d3
VS
25065rm -f conftest.err conftest.$ac_objext \
25066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25067fi
25068echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25069echo "${ECHO_T}$ac_cv_func_shmat" >&6
25070
25071 if test $ac_cv_func_shmat = no; then
25072 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25073echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25074if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25076else
25077 ac_check_lib_save_LIBS=$LIBS
25078LIBS="-lipc $LIBS"
25079cat >conftest.$ac_ext <<_ACEOF
25080/* confdefs.h. */
25081_ACEOF
25082cat confdefs.h >>conftest.$ac_ext
25083cat >>conftest.$ac_ext <<_ACEOF
25084/* end confdefs.h. */
25085
25086/* Override any gcc2 internal prototype to avoid an error. */
25087#ifdef __cplusplus
25088extern "C"
25089#endif
25090/* We use char because int might match the return type of a gcc2
25091 builtin and then its argument prototype would still apply. */
25092char shmat ();
25093int
25094main ()
25095{
25096shmat ();
25097 ;
25098 return 0;
25099}
25100_ACEOF
25101rm -f conftest.$ac_objext conftest$ac_exeext
25102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25103 (eval $ac_link) 2>conftest.er1
a848cd7e 25104 ac_status=$?
ac1cb8d3
VS
25105 grep -v '^ *+' conftest.er1 >conftest.err
25106 rm -f conftest.er1
25107 cat conftest.err >&5
a848cd7e
SC
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } &&
ac1cb8d3
VS
25110 { ac_try='test -z "$ac_c_werror_flag"
25111 || test ! -s conftest.err'
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; } &&
25117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; }; then
25123 ac_cv_lib_ipc_shmat=yes
25124else
25125 echo "$as_me: failed program was:" >&5
25126sed 's/^/| /' conftest.$ac_ext >&5
25127
25128ac_cv_lib_ipc_shmat=no
25129fi
ac1cb8d3
VS
25130rm -f conftest.err conftest.$ac_objext \
25131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25132LIBS=$ac_check_lib_save_LIBS
25133fi
25134echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25135echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25136if test $ac_cv_lib_ipc_shmat = yes; then
25137 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25138fi
25139
25140 fi
25141 fi
25142
25143 # Check for libraries that X11R6 Xt/Xaw programs need.
25144 ac_save_LDFLAGS=$LDFLAGS
25145 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25146 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25147 # check for ICE first), but we must link in the order -lSM -lICE or
25148 # we get undefined symbols. So assume we have SM if we have ICE.
25149 # These have to be linked with before -lX11, unlike the other
25150 # libraries we check for below, so use a different variable.
25151 # John Interrante, Karl Berry
25152 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25153echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25154if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25156else
25157 ac_check_lib_save_LIBS=$LIBS
25158LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25159cat >conftest.$ac_ext <<_ACEOF
25160/* confdefs.h. */
25161_ACEOF
25162cat confdefs.h >>conftest.$ac_ext
25163cat >>conftest.$ac_ext <<_ACEOF
25164/* end confdefs.h. */
25165
25166/* Override any gcc2 internal prototype to avoid an error. */
25167#ifdef __cplusplus
25168extern "C"
25169#endif
25170/* We use char because int might match the return type of a gcc2
25171 builtin and then its argument prototype would still apply. */
25172char IceConnectionNumber ();
25173int
25174main ()
25175{
25176IceConnectionNumber ();
25177 ;
25178 return 0;
25179}
25180_ACEOF
25181rm -f conftest.$ac_objext conftest$ac_exeext
25182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25183 (eval $ac_link) 2>conftest.er1
a848cd7e 25184 ac_status=$?
ac1cb8d3
VS
25185 grep -v '^ *+' conftest.er1 >conftest.err
25186 rm -f conftest.er1
25187 cat conftest.err >&5
a848cd7e
SC
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } &&
ac1cb8d3
VS
25190 { ac_try='test -z "$ac_c_werror_flag"
25191 || test ! -s conftest.err'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; } &&
25197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ac_cv_lib_ICE_IceConnectionNumber=yes
25204else
25205 echo "$as_me: failed program was:" >&5
25206sed 's/^/| /' conftest.$ac_ext >&5
25207
25208ac_cv_lib_ICE_IceConnectionNumber=no
25209fi
ac1cb8d3
VS
25210rm -f conftest.err conftest.$ac_objext \
25211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25212LIBS=$ac_check_lib_save_LIBS
25213fi
25214echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25215echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25216if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25217 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25218fi
25219
25220 LDFLAGS=$ac_save_LDFLAGS
25221
25222fi
25223
25224
25225 if test "$no_x" = "yes"; then
25226 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25227echo "$as_me: error: X11 not found" >&2;}
25228 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25229 fi
25230
74b84332
VS
25231 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25232 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25233 AFMINSTALL=afminstall
25234 COMPILED_X_PROGRAM=0
25235
74b84332
VS
25236 fi
25237
25238 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25239 if test "$wxUSE_NANOX" = "yes"; then
25240 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25241echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25242 if test "x$MICROWIN" = x ; then
25243 echo "$as_me:$LINENO: result: not found" >&5
25244echo "${ECHO_T}not found" >&6
25245 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25246echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25247 { (exit 1); exit 1; }; }
25248 else
25249 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25250echo "${ECHO_T}$MICROWIN" >&6
25251 cat >>confdefs.h <<\_ACEOF
25252#define wxUSE_NANOX 1
25253_ACEOF
25254
25255 fi
25256 fi
25257
25258 if test "$wxUSE_UNICODE" = "yes"; then
25259
25260 succeeded=no
25261
25262 if test -z "$PKG_CONFIG"; then
25263 # Extract the first word of "pkg-config", so it can be a program name with args.
25264set dummy pkg-config; ac_word=$2
25265echo "$as_me:$LINENO: checking for $ac_word" >&5
25266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25267if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25269else
25270 case $PKG_CONFIG in
25271 [\\/]* | ?:[\\/]*)
25272 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25273 ;;
25274 *)
25275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25276for as_dir in $PATH
25277do
25278 IFS=$as_save_IFS
25279 test -z "$as_dir" && as_dir=.
25280 for ac_exec_ext in '' $ac_executable_extensions; do
25281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25282 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25284 break 2
25285 fi
25286done
25287done
25288
25289 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25290 ;;
25291esac
25292fi
25293PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25294
25295if test -n "$PKG_CONFIG"; then
25296 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25297echo "${ECHO_T}$PKG_CONFIG" >&6
25298else
25299 echo "$as_me:$LINENO: result: no" >&5
25300echo "${ECHO_T}no" >&6
25301fi
25302
25303 fi
25304
25305 if test "$PKG_CONFIG" = "no" ; then
25306 echo "*** The pkg-config script could not be found. Make sure it is"
25307 echo "*** in your path, or set the PKG_CONFIG environment variable"
25308 echo "*** to the full path to pkg-config."
25309 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25310 else
25311 PKG_CONFIG_MIN_VERSION=0.9.0
25312 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25313 echo "$as_me:$LINENO: checking for pangox" >&5
25314echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25315
25316 if $PKG_CONFIG --exists "pangox" ; then
25317 echo "$as_me:$LINENO: result: yes" >&5
25318echo "${ECHO_T}yes" >&6
25319 succeeded=yes
25320
25321 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25322echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25323 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25324 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25325echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25326
25327 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25328echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25329 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25330 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25331echo "${ECHO_T}$PANGOX_LIBS" >&6
25332 else
25333 PANGOX_CFLAGS=""
25334 PANGOX_LIBS=""
25335 ## If we have a custom action on failure, don't print errors, but
25336 ## do set a variable so people can do so.
25337 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25338
25339 fi
25340
25341
25342
25343 else
25344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25346 fi
25347 fi
25348
25349 if test $succeeded = yes; then
25350
25351 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25352 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25353
25354 else
25355
25356 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25357echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25358 { (exit 1); exit 1; }; }
25359
25360
25361 fi
25362
25363
25364 succeeded=no
25365
25366 if test -z "$PKG_CONFIG"; then
25367 # Extract the first word of "pkg-config", so it can be a program name with args.
25368set dummy pkg-config; ac_word=$2
25369echo "$as_me:$LINENO: checking for $ac_word" >&5
25370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25371if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25373else
25374 case $PKG_CONFIG in
25375 [\\/]* | ?:[\\/]*)
25376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25377 ;;
25378 *)
25379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25380for as_dir in $PATH
25381do
25382 IFS=$as_save_IFS
25383 test -z "$as_dir" && as_dir=.
25384 for ac_exec_ext in '' $ac_executable_extensions; do
25385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25388 break 2
25389 fi
25390done
25391done
25392
25393 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25394 ;;
25395esac
25396fi
25397PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25398
25399if test -n "$PKG_CONFIG"; then
25400 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25401echo "${ECHO_T}$PKG_CONFIG" >&6
25402else
25403 echo "$as_me:$LINENO: result: no" >&5
25404echo "${ECHO_T}no" >&6
25405fi
25406
25407 fi
25408
25409 if test "$PKG_CONFIG" = "no" ; then
25410 echo "*** The pkg-config script could not be found. Make sure it is"
25411 echo "*** in your path, or set the PKG_CONFIG environment variable"
25412 echo "*** to the full path to pkg-config."
25413 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25414 else
25415 PKG_CONFIG_MIN_VERSION=0.9.0
25416 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25417 echo "$as_me:$LINENO: checking for pangoft2" >&5
25418echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25419
25420 if $PKG_CONFIG --exists "pangoft2" ; then
25421 echo "$as_me:$LINENO: result: yes" >&5
25422echo "${ECHO_T}yes" >&6
25423 succeeded=yes
25424
25425 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25426echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25427 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25428 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25429echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25430
25431 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25432echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25433 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25434 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25435echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25436 else
25437 PANGOFT2_CFLAGS=""
25438 PANGOFT2_LIBS=""
25439 ## If we have a custom action on failure, don't print errors, but
25440 ## do set a variable so people can do so.
25441 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25442
25443 fi
25444
25445
25446
25447 else
25448 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25449 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25450 fi
25451 fi
25452
25453 if test $succeeded = yes; then
25454
25455 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25456 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25457
25458 else
25459
25460 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25461echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25462 wxUSE_PRINTING_ARCHITECTURE="no"
25463
25464
25465 fi
25466
25467
25468 succeeded=no
25469
25470 if test -z "$PKG_CONFIG"; then
25471 # Extract the first word of "pkg-config", so it can be a program name with args.
25472set dummy pkg-config; ac_word=$2
25473echo "$as_me:$LINENO: checking for $ac_word" >&5
25474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25475if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25476 echo $ECHO_N "(cached) $ECHO_C" >&6
25477else
25478 case $PKG_CONFIG in
25479 [\\/]* | ?:[\\/]*)
25480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25481 ;;
25482 *)
25483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25484for as_dir in $PATH
25485do
25486 IFS=$as_save_IFS
25487 test -z "$as_dir" && as_dir=.
25488 for ac_exec_ext in '' $ac_executable_extensions; do
25489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25492 break 2
25493 fi
25494done
25495done
25496
25497 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25498 ;;
25499esac
25500fi
25501PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25502
25503if test -n "$PKG_CONFIG"; then
25504 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25505echo "${ECHO_T}$PKG_CONFIG" >&6
25506else
25507 echo "$as_me:$LINENO: result: no" >&5
25508echo "${ECHO_T}no" >&6
25509fi
25510
25511 fi
25512
25513 if test "$PKG_CONFIG" = "no" ; then
25514 echo "*** The pkg-config script could not be found. Make sure it is"
25515 echo "*** in your path, or set the PKG_CONFIG environment variable"
25516 echo "*** to the full path to pkg-config."
25517 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25518 else
25519 PKG_CONFIG_MIN_VERSION=0.9.0
25520 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25521 echo "$as_me:$LINENO: checking for pangoxft" >&5
25522echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25523
25524 if $PKG_CONFIG --exists "pangoxft" ; then
25525 echo "$as_me:$LINENO: result: yes" >&5
25526echo "${ECHO_T}yes" >&6
25527 succeeded=yes
25528
25529 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25530echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25531 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25532 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25533echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25534
25535 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25536echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25537 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25538 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25539echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25540 else
25541 PANGOXFT_CFLAGS=""
25542 PANGOXFT_LIBS=""
25543 ## If we have a custom action on failure, don't print errors, but
25544 ## do set a variable so people can do so.
25545 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25546
25547 fi
25548
25549
25550
25551 else
25552 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25553 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25554 fi
25555 fi
25556
25557 if test $succeeded = yes; then
25558
25559 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25560 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25561
25562 else
25563
25564 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25565echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25566
25567
25568 fi
25569
304205f1
VS
25570 save_CFLAGS="$CFLAGS"
25571 save_LIBS="$LIBS"
25572 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25573 LIBS="$LIBS $PANGOX_LIBS"
25574
25575for ac_func in pango_font_family_is_monospace
25576do
25577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25578echo "$as_me:$LINENO: checking for $ac_func" >&5
25579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25580if eval "test \"\${$as_ac_var+set}\" = set"; then
25581 echo $ECHO_N "(cached) $ECHO_C" >&6
25582else
25583 cat >conftest.$ac_ext <<_ACEOF
25584/* confdefs.h. */
25585_ACEOF
25586cat confdefs.h >>conftest.$ac_ext
25587cat >>conftest.$ac_ext <<_ACEOF
25588/* end confdefs.h. */
25589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25591#define $ac_func innocuous_$ac_func
25592
25593/* System header to define __stub macros and hopefully few prototypes,
25594 which can conflict with char $ac_func (); below.
25595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25596 <limits.h> exists even on freestanding compilers. */
25597
25598#ifdef __STDC__
25599# include <limits.h>
25600#else
25601# include <assert.h>
25602#endif
25603
25604#undef $ac_func
25605
25606/* Override any gcc2 internal prototype to avoid an error. */
25607#ifdef __cplusplus
25608extern "C"
25609{
25610#endif
25611/* We use char because int might match the return type of a gcc2
25612 builtin and then its argument prototype would still apply. */
25613char $ac_func ();
25614/* The GNU C library defines this for functions which it implements
25615 to always fail with ENOSYS. Some functions are actually named
25616 something starting with __ and the normal name is an alias. */
25617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25618choke me
25619#else
25620char (*f) () = $ac_func;
25621#endif
25622#ifdef __cplusplus
25623}
25624#endif
25625
25626int
25627main ()
25628{
25629return f != $ac_func;
25630 ;
25631 return 0;
25632}
25633_ACEOF
25634rm -f conftest.$ac_objext conftest$ac_exeext
25635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25636 (eval $ac_link) 2>conftest.er1
25637 ac_status=$?
25638 grep -v '^ *+' conftest.er1 >conftest.err
25639 rm -f conftest.er1
25640 cat conftest.err >&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } &&
25643 { ac_try='test -z "$ac_c_werror_flag"
25644 || test ! -s conftest.err'
25645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646 (eval $ac_try) 2>&5
25647 ac_status=$?
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); }; } &&
25650 { ac_try='test -s conftest$ac_exeext'
25651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25652 (eval $ac_try) 2>&5
25653 ac_status=$?
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); }; }; then
25656 eval "$as_ac_var=yes"
25657else
25658 echo "$as_me: failed program was:" >&5
25659sed 's/^/| /' conftest.$ac_ext >&5
25660
25661eval "$as_ac_var=no"
25662fi
25663rm -f conftest.err conftest.$ac_objext \
25664 conftest$ac_exeext conftest.$ac_ext
25665fi
25666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25667echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25668if test `eval echo '${'$as_ac_var'}'` = yes; then
25669 cat >>confdefs.h <<_ACEOF
25670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25671_ACEOF
25672
25673fi
25674done
25675
25676 CFLAGS="$save_CFLAGS"
25677 LIBS="$save_LIBS"
a848cd7e
SC
25678 fi
25679
25680 wxUSE_UNIVERSAL="yes"
25681
25682 if test "$wxUSE_NANOX" = "yes"; then
25683 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25684 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"
25685 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25686 else
25687 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25688 fi
25689
25690 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25691 TOOLKIT=X11
25692 GUIDIST=X11_DIST
25693 fi
25694
25695 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25696 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25697echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25698
74b84332
VS
25699ac_find_includes=
25700for ac_dir in $SEARCH_INCLUDE /usr/include;
25701 do
25702 if test -f "$ac_dir/Xm/Xm.h"; then
25703 ac_find_includes=$ac_dir
25704 break
25705 fi
25706 done
a848cd7e 25707
74b84332
VS
25708 if test "$ac_find_includes" != "" ; then
25709 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25710echo "${ECHO_T}found in $ac_find_includes" >&6
25711
25712 if test "x$ac_find_includes" = "x/usr/include"; then
25713 ac_path_to_include=""
25714 else
25715 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25716 result=$?
25717 if test $result = 0; then
25718 ac_path_to_include=""
25719 else
25720 ac_path_to_include=" -I$ac_find_includes"
25721 fi
a848cd7e
SC
25722 fi
25723
74b84332
VS
25724 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25725 else
25726 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25727/* confdefs.h. */
25728_ACEOF
25729cat confdefs.h >>conftest.$ac_ext
25730cat >>conftest.$ac_ext <<_ACEOF
25731/* end confdefs.h. */
25732
74b84332
VS
25733 #include <Xm/Xm.h>
25734
a848cd7e
SC
25735int
25736main ()
25737{
25738
74b84332
VS
25739 int version;
25740 version = xmUseVersion;
25741
a848cd7e
SC
25742 ;
25743 return 0;
25744}
25745_ACEOF
74b84332
VS
25746rm -f conftest.$ac_objext
25747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25748 (eval $ac_compile) 2>conftest.er1
a848cd7e 25749 ac_status=$?
ac1cb8d3
VS
25750 grep -v '^ *+' conftest.er1 >conftest.err
25751 rm -f conftest.er1
25752 cat conftest.err >&5
a848cd7e
SC
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } &&
ac1cb8d3
VS
25755 { ac_try='test -z "$ac_c_werror_flag"
25756 || test ! -s conftest.err'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; } &&
74b84332 25762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25765 ac_status=$?
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; }; then
74b84332
VS
25768
25769 echo "$as_me:$LINENO: result: found in default search path" >&5
25770echo "${ECHO_T}found in default search path" >&6
25771 COMPILED_X_PROGRAM=1
25772
a848cd7e
SC
25773else
25774 echo "$as_me: failed program was:" >&5
25775sed 's/^/| /' conftest.$ac_ext >&5
25776
a848cd7e 25777
74b84332
VS
25778 echo "$as_me:$LINENO: result: no" >&5
25779echo "${ECHO_T}no" >&6
25780 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25781echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25782 { (exit 1); exit 1; }; }
a848cd7e 25783
a848cd7e 25784
a848cd7e 25785fi
74b84332
VS
25786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25787 fi
25788
25789 if test "$COMPILED_X_PROGRAM" = 0; then
25790 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25791echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25792
25793ac_find_libraries=
25794for ac_dir in $SEARCH_LIB /usr/lib;
25795 do
25796 for ac_extension in a so sl dylib; do
25797 if test -f "$ac_dir/libXm.$ac_extension"; then
25798 ac_find_libraries=$ac_dir
25799 break 2
a848cd7e 25800 fi
74b84332
VS
25801 done
25802 done
a848cd7e 25803
74b84332
VS
25804 if test "$ac_find_libraries" != "" ; then
25805 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25806echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25807
74b84332
VS
25808
25809 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25810 result=$?
25811 if test $result = 0; then
25812 ac_path_to_link=""
a848cd7e 25813 else
74b84332
VS
25814 ac_path_to_link=" -L$ac_find_libraries"
25815 fi
25816
25817 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25818 else
25819 save_CFLAGS=$CFLAGS
25820 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25821
25822 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25823/* confdefs.h. */
25824_ACEOF
25825cat confdefs.h >>conftest.$ac_ext
25826cat >>conftest.$ac_ext <<_ACEOF
25827/* end confdefs.h. */
25828
74b84332
VS
25829 #include <Xm/Xm.h>
25830
a848cd7e
SC
25831int
25832main ()
25833{
74b84332
VS
25834
25835 int version;
25836 version = xmUseVersion;
25837
a848cd7e
SC
25838 ;
25839 return 0;
25840}
25841_ACEOF
74b84332
VS
25842rm -f conftest.$ac_objext
25843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25844 (eval $ac_compile) 2>conftest.er1
a848cd7e 25845 ac_status=$?
ac1cb8d3
VS
25846 grep -v '^ *+' conftest.er1 >conftest.err
25847 rm -f conftest.er1
25848 cat conftest.err >&5
a848cd7e
SC
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } &&
ac1cb8d3
VS
25851 { ac_try='test -z "$ac_c_werror_flag"
25852 || test ! -s conftest.err'
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; } &&
74b84332 25858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860 (eval $ac_try) 2>&5
25861 ac_status=$?
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; }; then
74b84332
VS
25864
25865 echo "$as_me:$LINENO: result: found in default search path" >&5
25866echo "${ECHO_T}found in default search path" >&6
25867 COMPILED_X_PROGRAM=1
25868
a848cd7e
SC
25869else
25870 echo "$as_me: failed program was:" >&5
25871sed 's/^/| /' conftest.$ac_ext >&5
25872
74b84332
VS
25873
25874 echo "$as_me:$LINENO: result: no" >&5
25875echo "${ECHO_T}no" >&6
25876 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25877echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25878 { (exit 1); exit 1; }; }
25879
25880
25881fi
25882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25883
25884 CFLAGS=$save_CFLAGS
25885 fi
25886 fi
25887
25888 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25889echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25890 libp_link=""
25891 libsm_ice_link=""
25892 libs_found=0
25893 for libp in "" " -lXp"; do
25894 if test "$libs_found" = "0"; then
25895 for libsm_ice in "" " -lSM -lICE"; do
25896 if test "$libs_found" = "0"; then
25897 save_LIBS="$LIBS"
25898 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25899 save_CFLAGS=$CFLAGS
25900 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25901
25902 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25903/* confdefs.h. */
25904_ACEOF
25905cat confdefs.h >>conftest.$ac_ext
25906cat >>conftest.$ac_ext <<_ACEOF
25907/* end confdefs.h. */
25908
74b84332
VS
25909 #include <Xm/Xm.h>
25910 #include <Xm/List.h>
25911
a848cd7e
SC
25912int
25913main ()
25914{
74b84332
VS
25915
25916 XmString string = NULL;
25917 Widget w = NULL;
25918 int position = 0;
25919 XmListAddItem(w, string, position);
25920
a848cd7e
SC
25921 ;
25922 return 0;
25923}
25924_ACEOF
25925rm -f conftest.$ac_objext conftest$ac_exeext
25926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25927 (eval $ac_link) 2>conftest.er1
a848cd7e 25928 ac_status=$?
ac1cb8d3
VS
25929 grep -v '^ *+' conftest.er1 >conftest.err
25930 rm -f conftest.er1
25931 cat conftest.err >&5
a848cd7e
SC
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); } &&
ac1cb8d3
VS
25934 { ac_try='test -z "$ac_c_werror_flag"
25935 || test ! -s conftest.err'
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; } &&
25941 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943 (eval $ac_try) 2>&5
25944 ac_status=$?
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); }; }; then
25947
25948 libp_link="$libp"
25949 libsm_ice_link="$libsm_ice"
25950 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25951echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25952 libs_found=1
25953
25954else
25955 echo "$as_me: failed program was:" >&5
25956sed 's/^/| /' conftest.$ac_ext >&5
25957
25958
25959
25960fi
ac1cb8d3
VS
25961rm -f conftest.err conftest.$ac_objext \
25962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25963
25964 LIBS="$save_LIBS"
25965 CFLAGS=$save_CFLAGS
25966 fi
25967 done
25968 fi
25969 done
25970
25971 if test "$libs_found" = "0"; then
25972 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25973echo "${ECHO_T}can't find the right libraries" >&6
25974 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25975echo "$as_me: error: can't link a simple motif program" >&2;}
25976 { (exit 1); exit 1; }; }
25977 fi
25978
25979 save_CFLAGS=$CFLAGS
25980 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25981 echo "$as_me:$LINENO: checking for Motif 2" >&5
25982echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25983 cat >conftest.$ac_ext <<_ACEOF
25984/* confdefs.h. */
25985_ACEOF
25986cat confdefs.h >>conftest.$ac_ext
25987cat >>conftest.$ac_ext <<_ACEOF
25988/* end confdefs.h. */
25989
25990 #include <Xm/Xm.h>
25991
25992int
25993main ()
25994{
25995
25996 #if XmVersion < 2000
25997 #error "Not Motif 2"
25998 #endif
25999
26000 ;
26001 return 0;
26002}
26003_ACEOF
26004rm -f conftest.$ac_objext
26005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26006 (eval $ac_compile) 2>conftest.er1
a848cd7e 26007 ac_status=$?
ac1cb8d3
VS
26008 grep -v '^ *+' conftest.er1 >conftest.err
26009 rm -f conftest.er1
26010 cat conftest.err >&5
a848cd7e
SC
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } &&
ac1cb8d3
VS
26013 { ac_try='test -z "$ac_c_werror_flag"
26014 || test ! -s conftest.err'
26015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26016 (eval $ac_try) 2>&5
26017 ac_status=$?
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); }; } &&
26020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26023 ac_status=$?
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; }; then
26026
26027 cat >>confdefs.h <<\_ACEOF
26028#define __WXMOTIF20__ 1
26029_ACEOF
26030
26031 echo "$as_me:$LINENO: result: found" >&5
26032echo "${ECHO_T}found" >&6
26033
26034else
26035 echo "$as_me: failed program was:" >&5
26036sed 's/^/| /' conftest.$ac_ext >&5
26037
26038
26039 cat >>confdefs.h <<\_ACEOF
26040#define __WXMOTIF20__ 0
26041_ACEOF
26042
26043 echo "$as_me:$LINENO: result: not found" >&5
26044echo "${ECHO_T}not found" >&6
26045
26046fi
ac1cb8d3 26047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26048 CFLAGS=$save_CFLAGS
26049
26050 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26051 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26052 TOOLKIT=MOTIF
26053 GUIDIST=MOTIF_DIST
26054 fi
26055
74b84332 26056 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26057 if test "$wxUSE_LIBXPM" = "sys"; then
26058 echo "$as_me:$LINENO: checking for Xpm library" >&5
26059echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26060
26061ac_find_libraries=
26062for ac_dir in $SEARCH_LIB /usr/lib;
26063 do
26064 for ac_extension in a so sl dylib; do
26065 if test -f "$ac_dir/libXpm.$ac_extension"; then
26066 ac_find_libraries=$ac_dir
26067 break 2
26068 fi
26069 done
26070 done
26071
26072 if test "$ac_find_libraries" != "" ; then
26073
26074 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26075 result=$?
26076 if test $result = 0; then
26077 ac_path_to_link=""
26078 else
26079 ac_path_to_link=" -L$ac_find_libraries"
26080 fi
26081
26082 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26083 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26084echo "${ECHO_T}found at $ac_find_libraries" >&6
26085
26086 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26087echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26088if test "${wx_cv_x11_xpm_h+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26090else
26091
26092 save_CFLAGS=$CFLAGS
26093 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26094
26095 cat >conftest.$ac_ext <<_ACEOF
26096/* confdefs.h. */
26097_ACEOF
26098cat confdefs.h >>conftest.$ac_ext
26099cat >>conftest.$ac_ext <<_ACEOF
26100/* end confdefs.h. */
26101
26102 #include <X11/xpm.h>
26103
26104int
26105main ()
26106{
26107
26108 int version;
26109 version = XpmLibraryVersion();
26110
26111 ;
26112 return 0;
26113}
26114_ACEOF
26115rm -f conftest.$ac_objext
26116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26117 (eval $ac_compile) 2>conftest.er1
a848cd7e 26118 ac_status=$?
ac1cb8d3
VS
26119 grep -v '^ *+' conftest.er1 >conftest.err
26120 rm -f conftest.er1
26121 cat conftest.err >&5
a848cd7e
SC
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } &&
ac1cb8d3
VS
26124 { ac_try='test -z "$ac_c_werror_flag"
26125 || test ! -s conftest.err'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; } &&
26131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 wx_cv_x11_xpm_h=yes
26138else
26139 echo "$as_me: failed program was:" >&5
26140sed 's/^/| /' conftest.$ac_ext >&5
26141
26142wx_cv_x11_xpm_h=no
26143
26144fi
ac1cb8d3 26145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26146
26147 CFLAGS=$save_CFLAGS
26148
26149
26150fi
26151echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26152echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26153
26154 if test $wx_cv_x11_xpm_h = "yes"; then
26155 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26156 cat >>confdefs.h <<\_ACEOF
26157#define wxHAVE_LIB_XPM 1
26158_ACEOF
26159
26160 else
26161 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26162echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26163 fi
26164 fi
26165
26166 fi
26167
26168 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26169echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26170if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26172else
26173 ac_check_lib_save_LIBS=$LIBS
26174LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26175cat >conftest.$ac_ext <<_ACEOF
26176/* confdefs.h. */
26177_ACEOF
26178cat confdefs.h >>conftest.$ac_ext
26179cat >>conftest.$ac_ext <<_ACEOF
26180/* end confdefs.h. */
26181
26182/* Override any gcc2 internal prototype to avoid an error. */
26183#ifdef __cplusplus
26184extern "C"
26185#endif
26186/* We use char because int might match the return type of a gcc2
26187 builtin and then its argument prototype would still apply. */
26188char XShapeQueryExtension ();
26189int
26190main ()
26191{
26192XShapeQueryExtension ();
26193 ;
26194 return 0;
26195}
26196_ACEOF
26197rm -f conftest.$ac_objext conftest$ac_exeext
26198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26199 (eval $ac_link) 2>conftest.er1
a848cd7e 26200 ac_status=$?
ac1cb8d3
VS
26201 grep -v '^ *+' conftest.er1 >conftest.err
26202 rm -f conftest.er1
26203 cat conftest.err >&5
a848cd7e
SC
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); } &&
ac1cb8d3
VS
26206 { ac_try='test -z "$ac_c_werror_flag"
26207 || test ! -s conftest.err'
26208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; } &&
26213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26215 (eval $ac_try) 2>&5
26216 ac_status=$?
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); }; }; then
26219 ac_cv_lib_Xext_XShapeQueryExtension=yes
26220else
26221 echo "$as_me: failed program was:" >&5
26222sed 's/^/| /' conftest.$ac_ext >&5
26223
26224ac_cv_lib_Xext_XShapeQueryExtension=no
26225fi
ac1cb8d3
VS
26226rm -f conftest.err conftest.$ac_objext \
26227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26228LIBS=$ac_check_lib_save_LIBS
26229fi
26230echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26231echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26232if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26233
26234 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26235 wxHAVE_XEXT_LIB=1
26236
26237fi
26238
26239
26240 if test "$wxHAVE_XEXT_LIB" = 1; then
26241 save_CFLAGS="$CFLAGS"
26242 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26243
26244 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26245echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26246 cat >conftest.$ac_ext <<_ACEOF
26247/* confdefs.h. */
26248_ACEOF
26249cat confdefs.h >>conftest.$ac_ext
26250cat >>conftest.$ac_ext <<_ACEOF
26251/* end confdefs.h. */
26252
26253 #include <X11/Xlib.h>
26254 #include <X11/extensions/shape.h>
26255
26256int
26257main ()
26258{
26259
26260 int dummy1, dummy2;
26261 XShapeQueryExtension((Display*)NULL,
26262 (int*)NULL, (int*)NULL);
26263
26264 ;
26265 return 0;
26266}
26267_ACEOF
26268rm -f conftest.$ac_objext
26269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26270 (eval $ac_compile) 2>conftest.er1
a848cd7e 26271 ac_status=$?
ac1cb8d3
VS
26272 grep -v '^ *+' conftest.er1 >conftest.err
26273 rm -f conftest.er1
26274 cat conftest.err >&5
a848cd7e
SC
26275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); } &&
ac1cb8d3
VS
26277 { ac_try='test -z "$ac_c_werror_flag"
26278 || test ! -s conftest.err'
26279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26280 (eval $ac_try) 2>&5
26281 ac_status=$?
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); }; } &&
26284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26286 (eval $ac_try) 2>&5
26287 ac_status=$?
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); }; }; then
26290
26291 cat >>confdefs.h <<\_ACEOF
26292#define HAVE_XSHAPE 1
26293_ACEOF
26294
26295 echo "$as_me:$LINENO: result: found" >&5
26296echo "${ECHO_T}found" >&6
26297
26298else
26299 echo "$as_me: failed program was:" >&5
26300sed 's/^/| /' conftest.$ac_ext >&5
26301
26302
26303 echo "$as_me:$LINENO: result: not found" >&5
26304echo "${ECHO_T}not found" >&6
26305
26306fi
ac1cb8d3 26307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26308 CFLAGS="$save_CFLAGS"
26309
26310 fi
26311 fi
26312
26313 if test "$wxUSE_MAC" = 1; then
26314 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26315echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26316 if test "$GCC" = yes; then
26317 echo "$as_me:$LINENO: result: gcc" >&5
26318echo "${ECHO_T}gcc" >&6
26319 CPPFLAGS_PASCAL="-fpascal-strings"
26320 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26321 echo "$as_me:$LINENO: result: xlc" >&5
26322echo "${ECHO_T}xlc" >&6
26323 CPPFLAGS_PASCAL="-qmacpstr"
26324 else
26325 echo "$as_me:$LINENO: result: none" >&5
26326echo "${ECHO_T}none" >&6
26327 fi
26328
26329 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26330
26331 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26332 TOOLKIT=MAC
26333 GUIDIST=MACX_DIST
26334 WXBASEPORT="_carbon"
26335 fi
26336
26337 if test "$wxUSE_COCOA" = 1; then
26338 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26339 TOOLKIT=COCOA
26340 GUIDIST=COCOA_DIST
26341 fi
26342
26343 if test "$wxUSE_PM" = 1; then
26344 TOOLKIT=PM
de59c161
RD
26345 GUIDIST=PM_DIST
26346 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26347echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26348if test "${wx_cv_spbcdata+set}" = set; then
26349 echo $ECHO_N "(cached) $ECHO_C" >&6
26350else
26351
26352 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26353/* confdefs.h. */
26354_ACEOF
26355cat confdefs.h >>conftest.$ac_ext
26356cat >>conftest.$ac_ext <<_ACEOF
26357/* end confdefs.h. */
26358
26359 #define INCL_PM
26360 #include <os2.h>
26361
26362int
26363main ()
26364{
26365
26366 SPBCDATA test;
26367
26368 ;
26369 return 0;
26370}
26371_ACEOF
26372rm -f conftest.$ac_objext
26373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26374 (eval $ac_compile) 2>conftest.er1
de59c161 26375 ac_status=$?
ac1cb8d3
VS
26376 grep -v '^ *+' conftest.er1 >conftest.err
26377 rm -f conftest.er1
26378 cat conftest.err >&5
de59c161
RD
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } &&
ac1cb8d3
VS
26381 { ac_try='test -z "$ac_c_werror_flag"
26382 || test ! -s conftest.err'
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26385 ac_status=$?
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); }; } &&
26388 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26391 ac_status=$?
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; }; then
26394 wx_cv_spbcdata=yes
26395else
26396 echo "$as_me: failed program was:" >&5
26397sed 's/^/| /' conftest.$ac_ext >&5
26398
26399wx_cv_spbcdata=no
26400
26401fi
ac1cb8d3 26402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26403
26404
26405fi
26406echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26407echo "${ECHO_T}$wx_cv_spbcdata" >&6
26408
26409 if test $wx_cv_spbcdata = "yes"; then
26410 cat >>confdefs.h <<\_ACEOF
26411#define HAVE_SPBCDATA 1
26412_ACEOF
26413
26414 fi
a848cd7e
SC
26415 fi
26416
26417 if test "$TOOLKIT" = "PM" ; then
26418 TOOLKIT_DIR="os2"
26419 else
26420 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26421 fi
26422
26423 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26424
26425 if test "$wxUSE_UNIVERSAL" = "yes"; then
26426 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26427
26428 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26429 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26430
26431 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26432 if test "$wxUSE_X11" = 1; then
26433 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26434 else
26435 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26436 fi
26437 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26438 WIDGET_SET=univ
26439 else
26440 ALL_OBJECTS="\$(GUIOBJS)"
26441 ALL_SOURCES="\$(ALL_SOURCES)"
26442 ALL_HEADERS="\$(ALL_HEADERS)"
26443 fi
26444
26445 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26446
26447 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26448 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26449 fi
26450
26451 if test "$wxUSE_HTML" = "yes"; then
26452 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26453 fi
26454
26455 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26456 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26457 fi
26458 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26459 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26460 fi
26461 if test "$wxUSE_LIBPNG" = "builtin" ; then
26462 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26463 fi
26464
26465 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26466 DISTDIR="wx\$(TOOLKIT)"
26467else
26468 USE_GUI=0
26469
26470 TOOLKIT_DIR="base"
26471
26472 if test "$USE_WIN32" = 1 ; then
26473 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26474 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26475
26476 TOOLKIT="MSW"
26477 else
26478 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26479 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26480 fi
26481
26482 ALL_SOURCES="\$(ALL_SOURCES)"
26483 ALL_HEADERS="\$(ALL_HEADERS)"
26484
26485 PORT_FILES="\${top_srcdir}/src/files.lst"
26486
26487 GUIDIST="BASE_DIST"
26488 DISTDIR="wxBase"
26489fi
26490
26491
26492
26493
26494IODBC_C_SRC=""
26495
26496
26497if test "$TOOLKIT" != "MSW" ; then
26498
26499 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26500
26501 if test "${ac_cv_header_sql_h+set}" = set; then
26502 echo "$as_me:$LINENO: checking for sql.h" >&5
26503echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26504if test "${ac_cv_header_sql_h+set}" = set; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26506fi
26507echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26508echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26509else
26510 # Is the header compilable?
26511echo "$as_me:$LINENO: checking sql.h usability" >&5
26512echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26513cat >conftest.$ac_ext <<_ACEOF
26514/* confdefs.h. */
26515_ACEOF
26516cat confdefs.h >>conftest.$ac_ext
26517cat >>conftest.$ac_ext <<_ACEOF
26518/* end confdefs.h. */
26519$ac_includes_default
26520#include <sql.h>
26521_ACEOF
26522rm -f conftest.$ac_objext
26523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26524 (eval $ac_compile) 2>conftest.er1
a848cd7e 26525 ac_status=$?
ac1cb8d3
VS
26526 grep -v '^ *+' conftest.er1 >conftest.err
26527 rm -f conftest.er1
26528 cat conftest.err >&5
a848cd7e
SC
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); } &&
ac1cb8d3
VS
26531 { ac_try='test -z "$ac_c_werror_flag"
26532 || test ! -s conftest.err'
26533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534 (eval $ac_try) 2>&5
26535 ac_status=$?
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); }; } &&
26538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); }; }; then
26544 ac_header_compiler=yes
26545else
26546 echo "$as_me: failed program was:" >&5
26547sed 's/^/| /' conftest.$ac_ext >&5
26548
26549ac_header_compiler=no
26550fi
ac1cb8d3 26551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26552echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26553echo "${ECHO_T}$ac_header_compiler" >&6
26554
26555# Is the header present?
26556echo "$as_me:$LINENO: checking sql.h presence" >&5
26557echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26558cat >conftest.$ac_ext <<_ACEOF
26559/* confdefs.h. */
26560_ACEOF
26561cat confdefs.h >>conftest.$ac_ext
26562cat >>conftest.$ac_ext <<_ACEOF
26563/* end confdefs.h. */
26564#include <sql.h>
26565_ACEOF
26566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26568 ac_status=$?
26569 grep -v '^ *+' conftest.er1 >conftest.err
26570 rm -f conftest.er1
26571 cat conftest.err >&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } >/dev/null; then
26574 if test -s conftest.err; then
26575 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26577 else
26578 ac_cpp_err=
26579 fi
26580else
26581 ac_cpp_err=yes
26582fi
26583if test -z "$ac_cpp_err"; then
26584 ac_header_preproc=yes
26585else
26586 echo "$as_me: failed program was:" >&5
26587sed 's/^/| /' conftest.$ac_ext >&5
26588
26589 ac_header_preproc=no
26590fi
26591rm -f conftest.err conftest.$ac_ext
26592echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26593echo "${ECHO_T}$ac_header_preproc" >&6
26594
26595# So? What about this header?
ac1cb8d3
VS
26596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26597 yes:no: )
a848cd7e
SC
26598 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26599echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26600 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26601echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26602 ac_header_preproc=yes
a848cd7e 26603 ;;
ac1cb8d3 26604 no:yes:* )
a848cd7e
SC
26605 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26606echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26607 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26608echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26609 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26610echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26611 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26612echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26613 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26614echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26615 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26616echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26617 (
26618 cat <<\_ASBOX
ac1cb8d3
VS
26619## ----------------------------------------- ##
26620## Report this to wx-dev@lists.wxwidgets.org ##
26621## ----------------------------------------- ##
a848cd7e
SC
26622_ASBOX
26623 ) |
26624 sed "s/^/$as_me: WARNING: /" >&2
26625 ;;
26626esac
26627echo "$as_me:$LINENO: checking for sql.h" >&5
26628echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26629if test "${ac_cv_header_sql_h+set}" = set; then
26630 echo $ECHO_N "(cached) $ECHO_C" >&6
26631else
26632 ac_cv_header_sql_h=$ac_header_preproc
26633fi
26634echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26635echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26636
26637fi
26638if test $ac_cv_header_sql_h = yes; then
26639 found_sql_h=1
26640fi
26641
26642
26643 if test "x$found_sql_h" = "x1" ; then
26644 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26645echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26646if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26647 echo $ECHO_N "(cached) $ECHO_C" >&6
26648else
26649 ac_check_lib_save_LIBS=$LIBS
26650LIBS="-liodbc $LIBS"
26651cat >conftest.$ac_ext <<_ACEOF
26652/* confdefs.h. */
26653_ACEOF
26654cat confdefs.h >>conftest.$ac_ext
26655cat >>conftest.$ac_ext <<_ACEOF
26656/* end confdefs.h. */
26657
26658/* Override any gcc2 internal prototype to avoid an error. */
26659#ifdef __cplusplus
26660extern "C"
26661#endif
26662/* We use char because int might match the return type of a gcc2
26663 builtin and then its argument prototype would still apply. */
26664char SQLAllocEnv ();
26665int
26666main ()
26667{
26668SQLAllocEnv ();
26669 ;
26670 return 0;
26671}
26672_ACEOF
26673rm -f conftest.$ac_objext conftest$ac_exeext
26674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26675 (eval $ac_link) 2>conftest.er1
a848cd7e 26676 ac_status=$?
ac1cb8d3
VS
26677 grep -v '^ *+' conftest.er1 >conftest.err
26678 rm -f conftest.er1
26679 cat conftest.err >&5
a848cd7e
SC
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); } &&
ac1cb8d3
VS
26682 { ac_try='test -z "$ac_c_werror_flag"
26683 || test ! -s conftest.err'
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26686 ac_status=$?
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; } &&
26689 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; }; then
26695 ac_cv_lib_iodbc_SQLAllocEnv=yes
26696else
26697 echo "$as_me: failed program was:" >&5
26698sed 's/^/| /' conftest.$ac_ext >&5
26699
26700ac_cv_lib_iodbc_SQLAllocEnv=no
26701fi
ac1cb8d3
VS
26702rm -f conftest.err conftest.$ac_objext \
26703 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26704LIBS=$ac_check_lib_save_LIBS
26705fi
26706echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26707echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26708if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26709 ODBC_LINK=" -liodbc"
26710else
26711
26712 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26713echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26714if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26715 echo $ECHO_N "(cached) $ECHO_C" >&6
26716else
26717 ac_check_lib_save_LIBS=$LIBS
26718LIBS="-lunixodbc $LIBS"
26719cat >conftest.$ac_ext <<_ACEOF
26720/* confdefs.h. */
26721_ACEOF
26722cat confdefs.h >>conftest.$ac_ext
26723cat >>conftest.$ac_ext <<_ACEOF
26724/* end confdefs.h. */
26725
26726/* Override any gcc2 internal prototype to avoid an error. */
26727#ifdef __cplusplus
26728extern "C"
26729#endif
26730/* We use char because int might match the return type of a gcc2
26731 builtin and then its argument prototype would still apply. */
26732char SQLAllocEnv ();
26733int
26734main ()
26735{
26736SQLAllocEnv ();
26737 ;
26738 return 0;
26739}
26740_ACEOF
26741rm -f conftest.$ac_objext conftest$ac_exeext
26742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26743 (eval $ac_link) 2>conftest.er1
a848cd7e 26744 ac_status=$?
ac1cb8d3
VS
26745 grep -v '^ *+' conftest.er1 >conftest.err
26746 rm -f conftest.er1
26747 cat conftest.err >&5
a848cd7e
SC
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); } &&
ac1cb8d3
VS
26750 { ac_try='test -z "$ac_c_werror_flag"
26751 || test ! -s conftest.err'
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; } &&
26757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; }; then
26763 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26764else
26765 echo "$as_me: failed program was:" >&5
26766sed 's/^/| /' conftest.$ac_ext >&5
26767
26768ac_cv_lib_unixodbc_SQLAllocEnv=no
26769fi
ac1cb8d3
VS
26770rm -f conftest.err conftest.$ac_objext \
26771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26772LIBS=$ac_check_lib_save_LIBS
26773fi
26774echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26775echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26776if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26777 ODBC_LINK=" -lunixodbc"
26778else
26779
26780 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26781echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26782if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26783 echo $ECHO_N "(cached) $ECHO_C" >&6
26784else
26785 ac_check_lib_save_LIBS=$LIBS
26786LIBS="-lodbc $LIBS"
26787cat >conftest.$ac_ext <<_ACEOF
26788/* confdefs.h. */
26789_ACEOF
26790cat confdefs.h >>conftest.$ac_ext
26791cat >>conftest.$ac_ext <<_ACEOF
26792/* end confdefs.h. */
26793
26794/* Override any gcc2 internal prototype to avoid an error. */
26795#ifdef __cplusplus
26796extern "C"
26797#endif
26798/* We use char because int might match the return type of a gcc2
26799 builtin and then its argument prototype would still apply. */
26800char SQLAllocEnv ();
26801int
26802main ()
26803{
26804SQLAllocEnv ();
26805 ;
26806 return 0;
26807}
26808_ACEOF
26809rm -f conftest.$ac_objext conftest$ac_exeext
26810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26811 (eval $ac_link) 2>conftest.er1
a848cd7e 26812 ac_status=$?
ac1cb8d3
VS
26813 grep -v '^ *+' conftest.er1 >conftest.err
26814 rm -f conftest.er1
26815 cat conftest.err >&5
a848cd7e
SC
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } &&
ac1cb8d3
VS
26818 { ac_try='test -z "$ac_c_werror_flag"
26819 || test ! -s conftest.err'
26820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; } &&
26825 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; }; then
26831 ac_cv_lib_odbc_SQLAllocEnv=yes
26832else
26833 echo "$as_me: failed program was:" >&5
26834sed 's/^/| /' conftest.$ac_ext >&5
26835
26836ac_cv_lib_odbc_SQLAllocEnv=no
26837fi
ac1cb8d3
VS
26838rm -f conftest.err conftest.$ac_objext \
26839 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26840LIBS=$ac_check_lib_save_LIBS
26841fi
26842echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26843echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26844if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26845 ODBC_LINK=" -lodbc"
26846fi
26847
26848
26849fi
26850
26851
26852fi
26853
26854 fi
26855 if test "x$ODBC_LINK" = "x" ; then
26856 if test "$wxUSE_ODBC" = "sys" ; then
26857 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26858echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26859 { (exit 1); exit 1; }; }
26860 else
26861 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26862echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26863 wxUSE_ODBC=builtin
26864 fi
26865 else
26866 wxUSE_ODBC=sys
26867 fi
26868 fi
26869 if test "$wxUSE_ODBC" != "no" ; then
26870 cat >>confdefs.h <<\_ACEOF
26871#define wxUSE_ODBC 1
26872_ACEOF
26873
26874 if test "$wxUSE_ODBC" = "builtin" ; then
26875 cat >>confdefs.h <<\_ACEOF
26876#define wxUSE_BUILTIN_IODBC 1
26877_ACEOF
26878
26879 fi
26880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26881
26882 WXODBCFLAG="-D_IODBC_"
26883 fi
26884fi
26885
26886if test "$wxUSE_REGEX" = "builtin" ; then
26887 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26888fi
26889if test "$wxUSE_ZLIB" = "builtin" ; then
26890 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26891fi
26892
01cb68df 26893
a848cd7e 26894if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26895 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26896 echo "$as_me:$LINENO: checking for Xinerama" >&5
26897echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26898
26899ac_find_libraries=
26900for ac_dir in $SEARCH_LIB /usr/lib;
26901 do
26902 for ac_extension in a so sl dylib; do
26903 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26904 ac_find_libraries=$ac_dir
26905 break 2
26906 fi
26907 done
26908 done
26909
26910 if test "$ac_find_libraries" != "" ; then
26911
26912 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26913 result=$?
26914 if test $result = 0; then
26915 ac_path_to_link=""
26916 else
26917 ac_path_to_link=" -L$ac_find_libraries"
26918 fi
26919
26920 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26921 LDFLAGS="$LDFLAGS $ac_path_to_link"
26922 fi
26923 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26924 echo "$as_me:$LINENO: result: yes" >&5
26925echo "${ECHO_T}yes" >&6
26926
26927 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26928echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26929
26930ac_find_libraries=
26931for ac_dir in $SEARCH_LIB /usr/lib;
26932 do
26933 for ac_extension in a so sl dylib; do
26934 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26935 ac_find_libraries=$ac_dir
26936 break 2
26937 fi
26938 done
26939 done
26940
26941 if test "$ac_find_libraries" != "" ; then
26942 echo "$as_me:$LINENO: result: yes" >&5
26943echo "${ECHO_T}yes" >&6
26944
26945for ac_header in X11/extensions/xf86vmode.h
26946do
26947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26948echo "$as_me:$LINENO: checking for $ac_header" >&5
26949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26950if eval "test \"\${$as_ac_Header+set}\" = set"; then
26951 echo $ECHO_N "(cached) $ECHO_C" >&6
26952else
26953 cat >conftest.$ac_ext <<_ACEOF
26954/* confdefs.h. */
26955_ACEOF
26956cat confdefs.h >>conftest.$ac_ext
26957cat >>conftest.$ac_ext <<_ACEOF
26958/* end confdefs.h. */
26959
26960 #if HAVE_X11_XLIB_H
26961 #include <X11/Xlib.h>
26962 #endif
26963
26964
26965#include <$ac_header>
26966_ACEOF
26967rm -f conftest.$ac_objext
26968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26969 (eval $ac_compile) 2>conftest.er1
a848cd7e 26970 ac_status=$?
ac1cb8d3
VS
26971 grep -v '^ *+' conftest.er1 >conftest.err
26972 rm -f conftest.er1
26973 cat conftest.err >&5
a848cd7e
SC
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } &&
ac1cb8d3
VS
26976 { ac_try='test -z "$ac_c_werror_flag"
26977 || test ! -s conftest.err'
26978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26979 (eval $ac_try) 2>&5
26980 ac_status=$?
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; } &&
26983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26985 (eval $ac_try) 2>&5
26986 ac_status=$?
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); }; }; then
26989 eval "$as_ac_Header=yes"
26990else
26991 echo "$as_me: failed program was:" >&5
26992sed 's/^/| /' conftest.$ac_ext >&5
26993
26994eval "$as_ac_Header=no"
26995fi
ac1cb8d3 26996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26997fi
26998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27000if test `eval echo '${'$as_ac_Header'}'` = yes; then
27001 cat >>confdefs.h <<_ACEOF
27002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27003_ACEOF
27004
27005 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27006
27007fi
27008
27009done
27010
27011 else
27012 echo "$as_me:$LINENO: result: no" >&5
27013echo "${ECHO_T}no" >&6
27014 fi
27015
27016 else
27017 echo "$as_me:$LINENO: result: no" >&5
27018echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27019 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27020echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27021 wxUSE_DISPLAY="no"
27022 fi
01cb68df
RG
27023 elif test "$wxUSE_MSW" = 1; then
27024
27025
27026for ac_header in multimon.h ddraw.h
27027do
27028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27029if eval "test \"\${$as_ac_Header+set}\" = set"; then
27030 echo "$as_me:$LINENO: checking for $ac_header" >&5
27031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27032if eval "test \"\${$as_ac_Header+set}\" = set"; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27034fi
27035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27037else
27038 # Is the header compilable?
27039echo "$as_me:$LINENO: checking $ac_header usability" >&5
27040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27041cat >conftest.$ac_ext <<_ACEOF
27042/* confdefs.h. */
27043_ACEOF
27044cat confdefs.h >>conftest.$ac_ext
27045cat >>conftest.$ac_ext <<_ACEOF
27046/* end confdefs.h. */
27047$ac_includes_default
27048#include <$ac_header>
27049_ACEOF
27050rm -f conftest.$ac_objext
27051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27052 (eval $ac_compile) 2>conftest.er1
01cb68df 27053 ac_status=$?
ac1cb8d3
VS
27054 grep -v '^ *+' conftest.er1 >conftest.err
27055 rm -f conftest.er1
27056 cat conftest.err >&5
01cb68df
RG
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } &&
ac1cb8d3
VS
27059 { ac_try='test -z "$ac_c_werror_flag"
27060 || test ! -s conftest.err'
27061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062 (eval $ac_try) 2>&5
27063 ac_status=$?
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); }; } &&
27066 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27068 (eval $ac_try) 2>&5
27069 ac_status=$?
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); }; }; then
27072 ac_header_compiler=yes
27073else
27074 echo "$as_me: failed program was:" >&5
27075sed 's/^/| /' conftest.$ac_ext >&5
27076
27077ac_header_compiler=no
27078fi
ac1cb8d3 27079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27080echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27081echo "${ECHO_T}$ac_header_compiler" >&6
27082
27083# Is the header present?
27084echo "$as_me:$LINENO: checking $ac_header presence" >&5
27085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27086cat >conftest.$ac_ext <<_ACEOF
27087/* confdefs.h. */
27088_ACEOF
27089cat confdefs.h >>conftest.$ac_ext
27090cat >>conftest.$ac_ext <<_ACEOF
27091/* end confdefs.h. */
27092#include <$ac_header>
27093_ACEOF
27094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27096 ac_status=$?
27097 grep -v '^ *+' conftest.er1 >conftest.err
27098 rm -f conftest.er1
27099 cat conftest.err >&5
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); } >/dev/null; then
27102 if test -s conftest.err; then
27103 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27105 else
27106 ac_cpp_err=
27107 fi
27108else
27109 ac_cpp_err=yes
27110fi
27111if test -z "$ac_cpp_err"; then
27112 ac_header_preproc=yes
27113else
27114 echo "$as_me: failed program was:" >&5
27115sed 's/^/| /' conftest.$ac_ext >&5
27116
27117 ac_header_preproc=no
27118fi
27119rm -f conftest.err conftest.$ac_ext
27120echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27121echo "${ECHO_T}$ac_header_preproc" >&6
27122
27123# So? What about this header?
ac1cb8d3
VS
27124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27125 yes:no: )
01cb68df
RG
27126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27130 ac_header_preproc=yes
01cb68df 27131 ;;
ac1cb8d3 27132 no:yes:* )
01cb68df
RG
27133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27145 (
27146 cat <<\_ASBOX
ac1cb8d3
VS
27147## ----------------------------------------- ##
27148## Report this to wx-dev@lists.wxwidgets.org ##
27149## ----------------------------------------- ##
01cb68df
RG
27150_ASBOX
27151 ) |
27152 sed "s/^/$as_me: WARNING: /" >&2
27153 ;;
27154esac
27155echo "$as_me:$LINENO: checking for $ac_header" >&5
27156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27157if eval "test \"\${$as_ac_Header+set}\" = set"; then
27158 echo $ECHO_N "(cached) $ECHO_C" >&6
27159else
ac1cb8d3 27160 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27161fi
27162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27164
27165fi
27166if test `eval echo '${'$as_ac_Header'}'` = yes; then
27167 cat >>confdefs.h <<_ACEOF
27168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27169_ACEOF
27170
27171else
27172
27173 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27174 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27175echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27176
27177fi
27178
27179done
27180
a848cd7e
SC
27181 fi
27182fi
27183
27184
27185USE_OPENGL=0
27186if test "$wxUSE_OPENGL" = "yes"; then
27187 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27188 OPENGL_LIBS="-framework OpenGL -framework AGL"
27189 elif test "$wxUSE_MSW" = 1; then
27190 OPENGL_LIBS="-lopengl32 -lglu32"
27191 else
27192
27193
27194ac_find_includes=
27195for ac_dir in $SEARCH_INCLUDE /usr/include;
27196 do
27197 if test -f "$ac_dir/GL/gl.h"; then
27198 ac_find_includes=$ac_dir
27199 break
27200 fi
27201 done
27202
27203 if test "$ac_find_includes" != "" ; then
27204 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27205echo "${ECHO_T}found in $ac_find_includes" >&6
27206
27207 if test "x$ac_find_includes" = "x/usr/include"; then
27208 ac_path_to_include=""
27209 else
27210 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27211 result=$?
27212 if test $result = 0; then
27213 ac_path_to_include=""
27214 else
27215 ac_path_to_include=" -I$ac_find_includes"
27216 fi
27217 fi
27218
27219 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27220 fi
27221
27222 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27223 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27224echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27225if test "${ac_cv_header_GL_gl_h+set}" = set; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27227fi
27228echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27229echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27230else
27231 # Is the header compilable?
27232echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27233echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27234cat >conftest.$ac_ext <<_ACEOF
27235/* confdefs.h. */
27236_ACEOF
27237cat confdefs.h >>conftest.$ac_ext
27238cat >>conftest.$ac_ext <<_ACEOF
27239/* end confdefs.h. */
27240$ac_includes_default
27241#include <GL/gl.h>
27242_ACEOF
27243rm -f conftest.$ac_objext
27244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27245 (eval $ac_compile) 2>conftest.er1
a848cd7e 27246 ac_status=$?
ac1cb8d3
VS
27247 grep -v '^ *+' conftest.er1 >conftest.err
27248 rm -f conftest.er1
27249 cat conftest.err >&5
a848cd7e
SC
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); } &&
ac1cb8d3
VS
27252 { ac_try='test -z "$ac_c_werror_flag"
27253 || test ! -s conftest.err'
27254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }; } &&
27259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27261 (eval $ac_try) 2>&5
27262 ac_status=$?
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); }; }; then
27265 ac_header_compiler=yes
27266else
27267 echo "$as_me: failed program was:" >&5
27268sed 's/^/| /' conftest.$ac_ext >&5
27269
27270ac_header_compiler=no
27271fi
ac1cb8d3 27272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27274echo "${ECHO_T}$ac_header_compiler" >&6
27275
27276# Is the header present?
27277echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27278echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27279cat >conftest.$ac_ext <<_ACEOF
27280/* confdefs.h. */
27281_ACEOF
27282cat confdefs.h >>conftest.$ac_ext
27283cat >>conftest.$ac_ext <<_ACEOF
27284/* end confdefs.h. */
27285#include <GL/gl.h>
27286_ACEOF
27287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27289 ac_status=$?
27290 grep -v '^ *+' conftest.er1 >conftest.err
27291 rm -f conftest.er1
27292 cat conftest.err >&5
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } >/dev/null; then
27295 if test -s conftest.err; then
27296 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27298 else
27299 ac_cpp_err=
27300 fi
27301else
27302 ac_cpp_err=yes
27303fi
27304if test -z "$ac_cpp_err"; then
27305 ac_header_preproc=yes
27306else
27307 echo "$as_me: failed program was:" >&5
27308sed 's/^/| /' conftest.$ac_ext >&5
27309
27310 ac_header_preproc=no
27311fi
27312rm -f conftest.err conftest.$ac_ext
27313echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27314echo "${ECHO_T}$ac_header_preproc" >&6
27315
27316# So? What about this header?
ac1cb8d3
VS
27317case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27318 yes:no: )
a848cd7e
SC
27319 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27320echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27321 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27322echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27323 ac_header_preproc=yes
a848cd7e 27324 ;;
ac1cb8d3 27325 no:yes:* )
a848cd7e
SC
27326 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27327echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27328 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27329echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27330 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27331echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27332 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27333echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27334 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27335echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27336 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27337echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27338 (
27339 cat <<\_ASBOX
ac1cb8d3
VS
27340## ----------------------------------------- ##
27341## Report this to wx-dev@lists.wxwidgets.org ##
27342## ----------------------------------------- ##
a848cd7e
SC
27343_ASBOX
27344 ) |
27345 sed "s/^/$as_me: WARNING: /" >&2
27346 ;;
27347esac
27348echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27349echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27350if test "${ac_cv_header_GL_gl_h+set}" = set; then
27351 echo $ECHO_N "(cached) $ECHO_C" >&6
27352else
27353 ac_cv_header_GL_gl_h=$ac_header_preproc
27354fi
27355echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27356echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27357
27358fi
27359if test $ac_cv_header_GL_gl_h = yes; then
27360
27361 found_gl=0
27362
27363 echo "$as_me:$LINENO: checking for -lGL" >&5
27364echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27365
27366ac_find_libraries=
27367for ac_dir in $SEARCH_LIB /usr/lib;
27368 do
27369 for ac_extension in a so sl dylib; do
27370 if test -f "$ac_dir/libGL.$ac_extension"; then
27371 ac_find_libraries=$ac_dir
27372 break 2
27373 fi
27374 done
27375 done
27376
27377 if test "$ac_find_libraries" != "" ; then
27378
27379 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27380 result=$?
27381 if test $result = 0; then
27382 ac_path_to_link=""
27383 else
27384 ac_path_to_link=" -L$ac_find_libraries"
27385 fi
27386
27387 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27388 LDFLAGS_GL="$ac_path_to_link"
27389 fi
27390
27391
27392ac_find_libraries=
27393for ac_dir in $SEARCH_LIB /usr/lib;
27394 do
27395 for ac_extension in a so sl dylib; do
27396 if test -f "$ac_dir/libGLU.$ac_extension"; then
27397 ac_find_libraries=$ac_dir
27398 break 2
27399 fi
27400 done
27401 done
27402
27403 if test "$ac_find_libraries" != "" ; then
27404
27405 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27406 result=$?
27407 if test $result = 0; then
27408 ac_path_to_link=""
27409 else
27410 ac_path_to_link=" -L$ac_find_libraries"
27411 fi
27412
27413 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27414 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27415 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27416 fi
27417
27418 found_gl=1
27419 OPENGL_LIBS="-lGL -lGLU"
27420 echo "$as_me:$LINENO: result: yes" >&5
27421echo "${ECHO_T}yes" >&6
27422 fi
27423 fi
27424
27425 if test "$found_gl" != 1; then
27426 echo "$as_me:$LINENO: result: no" >&5
27427echo "${ECHO_T}no" >&6
27428 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27429echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27430
27431ac_find_libraries=
27432for ac_dir in $SEARCH_LIB /usr/lib;
27433 do
27434 for ac_extension in a so sl dylib; do
27435 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27436 ac_find_libraries=$ac_dir
27437 break 2
27438 fi
27439 done
27440 done
27441
27442 if test "$ac_find_libraries" != "" ; then
27443
27444 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27445 result=$?
27446 if test $result = 0; then
27447 ac_path_to_link=""
27448 else
27449 ac_path_to_link=" -L$ac_find_libraries"
27450 fi
27451
27452 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27453 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27454 echo "$as_me:$LINENO: result: yes" >&5
27455echo "${ECHO_T}yes" >&6
27456 else
27457 echo "$as_me:$LINENO: result: no" >&5
27458echo "${ECHO_T}no" >&6
27459 fi
27460 fi
27461
27462fi
27463
27464
27465
27466 if test "x$OPENGL_LIBS" = "x"; then
27467 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27468echo "$as_me: error: OpenGL libraries not available" >&2;}
27469 { (exit 1); exit 1; }; }
27470 fi
27471 fi
27472
27473 if test "$wxUSE_OPENGL" = "yes"; then
27474 USE_OPENGL=1
27475 cat >>confdefs.h <<\_ACEOF
27476#define wxUSE_OPENGL 1
27477_ACEOF
27478
27479 cat >>confdefs.h <<\_ACEOF
27480#define wxUSE_GLCANVAS 1
27481_ACEOF
27482
27483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27484 fi
27485fi
27486
27487if test -z "$TOOLKIT_VPATH" ; then
27488 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27489fi
27490
27491if test -n "$TOOLKIT" ; then
27492 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27493fi
27494
27495UNICODE=0
27496lib_unicode_suffix=
48112931 27497wxconfig_filename_unicode="ansi"
a848cd7e
SC
27498if test "$wxUSE_UNICODE" = "yes"; then
27499 lib_unicode_suffix=u
48112931 27500 wxconfig_filename_unicode="unicode"
a848cd7e
SC
27501 UNICODE=1
27502fi
27503
27504lib_debug_suffix=
48112931 27505wxconfig_filename_debug="release"
a848cd7e
SC
27506DEBUG_FLAG=0
27507if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27508 lib_debug_suffix=d
48112931 27509 wxconfig_filename_debug="debug"
a848cd7e
SC
27510 DEBUG_FLAG=1
27511fi
27512
27513DEBUG_INFO=0
27514if test "$wxUSE_DEBUG_INFO" = "yes"; then
27515 DEBUG_INFO=1
27516fi
27517
27518WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27519
27520TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27521TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27522
48112931
VS
27523WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27524
a848cd7e
SC
27525if test "$cross_compiling" = "yes"; then
27526 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27527 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
48112931 27528 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
a848cd7e
SC
27529 HOST_SUFFIX="-${host_alias}"
27530fi
27531
27532WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27533WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27534WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27535WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27536
27537WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27538WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27539
27540WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27541WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27542WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27543WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27544
27545case "${host}" in
27546 *-*-cygwin* | *-*-mingw32* )
27547 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27548 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27549 ;;
27550
27551 *-*-darwin* )
27552
27553 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27554 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27555
27556 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27557 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27558 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27559 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27560
27561 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27562 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27563 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27564 fi
27565 ;;
27566esac
27567
27568WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27569WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27570
27571WXCONFIG_LIBS="-l${WX_LIBRARY}"
27572WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27573
27574if test "$wxUSE_OPENGL" = "yes"; then
27575 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27576 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27577fi
27578
27579
27580
27581if test "$wxUSE_SHARED" = "yes"; then
27582 case "${host}" in
27583 *-pc-msdosdjgpp )
27584 wxUSE_SHARED=no
27585 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27586echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27587 ;;
27588 esac
27589fi
27590
27591SHARED=0
27592if test "$wxUSE_SHARED" = "yes"; then
27593 SHARED=1
27594
27595
27596 found_versioning=no
27597
27598
27599 if test $found_versioning = no ; then
27600 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27601echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27602if test "${wx_cv_version_script+set}" = set; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
27604else
27605
27606 echo "VER_1 { *; };" >conftest.sym
27607 echo "int main() { return 0; }" >conftest.cpp
27608
27609 if { ac_try='
27610 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27611 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27613 (eval $ac_try) 2>&5
27614 ac_status=$?
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); }; } ; then
27617 if test -s conftest.stderr ; then
27618 wx_cv_version_script=no
27619 else
27620 wx_cv_version_script=yes
27621 fi
27622 else
27623 wx_cv_version_script=no
27624 fi
27625 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27626
27627fi
27628echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27629echo "${ECHO_T}$wx_cv_version_script" >&6
27630 if test $wx_cv_version_script = yes ; then
27631 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27632 fi
27633 fi
27634
27635
27636 case "${host}" in
27637 *-*-linux* | *-*-gnu* )
27638 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27639 ;;
27640
27641 *-*-solaris2* )
27642 if test "$GCC" = yes ; then
27643 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27644
27645 saveLdflags="$LDFLAGS"
27646 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27647 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27648echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27649 cat >conftest.$ac_ext <<_ACEOF
27650/* confdefs.h. */
27651_ACEOF
27652cat confdefs.h >>conftest.$ac_ext
27653cat >>conftest.$ac_ext <<_ACEOF
27654/* end confdefs.h. */
27655
27656int
27657main ()
27658{
27659
27660 ;
27661 return 0;
27662}
27663_ACEOF
27664rm -f conftest.$ac_objext conftest$ac_exeext
27665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27666 (eval $ac_link) 2>conftest.er1
a848cd7e 27667 ac_status=$?
ac1cb8d3
VS
27668 grep -v '^ *+' conftest.er1 >conftest.err
27669 rm -f conftest.er1
27670 cat conftest.err >&5
a848cd7e
SC
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
ac1cb8d3
VS
27673 { ac_try='test -z "$ac_c_werror_flag"
27674 || test ! -s conftest.err'
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; } &&
27680 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27683 ac_status=$?
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27686
27687 echo "$as_me:$LINENO: result: yes" >&5
27688echo "${ECHO_T}yes" >&6
27689 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27690
27691else
27692 echo "$as_me: failed program was:" >&5
27693sed 's/^/| /' conftest.$ac_ext >&5
27694
27695
27696 echo "$as_me:$LINENO: result: no" >&5
27697echo "${ECHO_T}no" >&6
27698 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27699echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27700 LDFLAGS="$saveLdflags -Wl,-R,/"
27701 cat >conftest.$ac_ext <<_ACEOF
27702/* confdefs.h. */
27703_ACEOF
27704cat confdefs.h >>conftest.$ac_ext
27705cat >>conftest.$ac_ext <<_ACEOF
27706/* end confdefs.h. */
27707
27708int
27709main ()
27710{
27711
27712 ;
27713 return 0;
27714}
27715_ACEOF
27716rm -f conftest.$ac_objext conftest$ac_exeext
27717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27718 (eval $ac_link) 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); } &&
ac1cb8d3
VS
27725 { ac_try='test -z "$ac_c_werror_flag"
27726 || test ! -s conftest.err'
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_exeext'
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
27739 echo "$as_me:$LINENO: result: yes" >&5
27740echo "${ECHO_T}yes" >&6
27741 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27742else
27743 echo "$as_me: failed program was:" >&5
27744sed 's/^/| /' conftest.$ac_ext >&5
27745
27746
27747 echo "$as_me:$LINENO: result: no" >&5
27748echo "${ECHO_T}no" >&6
27749
27750fi
ac1cb8d3
VS
27751rm -f conftest.err conftest.$ac_objext \
27752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27753
27754fi
ac1cb8d3
VS
27755rm -f conftest.err conftest.$ac_objext \
27756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27757 LDFLAGS="$saveLdflags"
27758 else
27759 SHARED_LD="${CXX} -G -o"
27760 PIC_FLAG="-KPIC"
27761 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27762 fi
27763 ;;
27764
27765 powerpc-*-darwin* )
27766 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27767 cat <<EOF >change-install-names
27768#!/bin/sh
27769libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27770inst_cmd="install_name_tool "
27771for i in \${libnames} ; do
27772 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27773done
27774\${inst_cmd} \${3}
27775EOF
27776 chmod +x change-install-names
27777 ;;
27778
27779 *-*-cygwin* | *-*-mingw32* )
27780 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27781 ;;
27782
27783 esac
27784
27785 if test "x$WX_TARGET_LIBRARY" = "x"; then
27786 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27787 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27788 fi
27789
27790 WX_TARGET_LIBRARY_TYPE="so"
27791 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27792fi
27793
27794if test "$wxUSE_SHARED" = "no"; then
27795
27796 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27797 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27798 fi
27799
27800 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27801 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27802 fi
27803
27804 if test "$wxUSE_OPENGL" = "yes"; then
27805 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27806 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27807 else
27808 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27809 fi
27810
27811 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27812 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27813
27814 WX_TARGET_LIBRARY_TYPE="a"
27815 INSTALL_LIBRARY='$(INSTALL_DATA)'
27816
27817 STATIC_FLAG="yes"
27818else
27819 STATIC_FLAG="no"
27820fi
27821
27822if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27823 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27824 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27825 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27826
27827 # Extract the first word of "Rez", so it can be a program name with args.
27828set dummy Rez; ac_word=$2
27829echo "$as_me:$LINENO: checking for $ac_word" >&5
27830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27831if test "${ac_cv_prog_RESCOMP+set}" = set; then
27832 echo $ECHO_N "(cached) $ECHO_C" >&6
27833else
27834 if test -n "$RESCOMP"; then
27835 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27836else
27837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27838for as_dir in $PATH
27839do
27840 IFS=$as_save_IFS
27841 test -z "$as_dir" && as_dir=.
27842 for ac_exec_ext in '' $ac_executable_extensions; do
27843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27844 ac_cv_prog_RESCOMP="Rez"
27845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27846 break 2
27847 fi
27848done
27849done
27850
27851 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27852fi
27853fi
27854RESCOMP=$ac_cv_prog_RESCOMP
27855if test -n "$RESCOMP"; then
27856 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27857echo "${ECHO_T}$RESCOMP" >&6
27858else
27859 echo "$as_me:$LINENO: result: no" >&5
27860echo "${ECHO_T}no" >&6
27861fi
27862
27863 # Extract the first word of "DeRez", so it can be a program name with args.
27864set dummy DeRez; ac_word=$2
27865echo "$as_me:$LINENO: checking for $ac_word" >&5
27866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27867if test "${ac_cv_prog_DEREZ+set}" = set; then
27868 echo $ECHO_N "(cached) $ECHO_C" >&6
27869else
27870 if test -n "$DEREZ"; then
27871 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27872else
27873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27874for as_dir in $PATH
27875do
27876 IFS=$as_save_IFS
27877 test -z "$as_dir" && as_dir=.
27878 for ac_exec_ext in '' $ac_executable_extensions; do
27879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27880 ac_cv_prog_DEREZ="DeRez"
27881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27882 break 2
27883 fi
27884done
27885done
27886
27887 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27888fi
27889fi
27890DEREZ=$ac_cv_prog_DEREZ
27891if test -n "$DEREZ"; then
27892 echo "$as_me:$LINENO: result: $DEREZ" >&5
27893echo "${ECHO_T}$DEREZ" >&6
27894else
27895 echo "$as_me:$LINENO: result: no" >&5
27896echo "${ECHO_T}no" >&6
27897fi
27898
27899 # Extract the first word of "SetFile", so it can be a program name with args.
27900set dummy SetFile; ac_word=$2
27901echo "$as_me:$LINENO: checking for $ac_word" >&5
27902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27903if test "${ac_cv_prog_SETFILE+set}" = set; then
27904 echo $ECHO_N "(cached) $ECHO_C" >&6
27905else
27906 if test -n "$SETFILE"; then
27907 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27908else
27909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27910for as_dir in $PATH
27911do
27912 IFS=$as_save_IFS
27913 test -z "$as_dir" && as_dir=.
27914 for ac_exec_ext in '' $ac_executable_extensions; do
27915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27916 ac_cv_prog_SETFILE="SetFile"
27917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27918 break 2
27919 fi
27920done
27921done
27922
27923 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27924fi
27925fi
27926SETFILE=$ac_cv_prog_SETFILE
27927if test -n "$SETFILE"; then
27928 echo "$as_me:$LINENO: result: $SETFILE" >&5
27929echo "${ECHO_T}$SETFILE" >&6
27930else
27931 echo "$as_me:$LINENO: result: no" >&5
27932echo "${ECHO_T}no" >&6
27933fi
27934
27935
27936 MACSETFILE="\$(SETFILE)"
27937
27938 if test "$wxUSE_MAC" = 1; then
27939 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27940
27941 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27942 else
27943 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27944 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27945 fi
27946else
27947 MACSETFILE="@#"
27948 MACRESWXCONFIG="#"
27949
27950 if test "$wxUSE_PM" = 1; then
27951 MACRESCOMP="emxbind -ep"
27952 else
27953 MACRESCOMP="@#"
27954 fi
27955fi
27956
27957
27958
27959echo "$as_me:$LINENO: checking for mode_t" >&5
27960echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27961if test "${ac_cv_type_mode_t+set}" = set; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27963else
27964 cat >conftest.$ac_ext <<_ACEOF
27965/* confdefs.h. */
27966_ACEOF
27967cat confdefs.h >>conftest.$ac_ext
27968cat >>conftest.$ac_ext <<_ACEOF
27969/* end confdefs.h. */
27970$ac_includes_default
27971int
27972main ()
27973{
27974if ((mode_t *) 0)
27975 return 0;
27976if (sizeof (mode_t))
27977 return 0;
27978 ;
27979 return 0;
27980}
27981_ACEOF
27982rm -f conftest.$ac_objext
27983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27984 (eval $ac_compile) 2>conftest.er1
a848cd7e 27985 ac_status=$?
ac1cb8d3
VS
27986 grep -v '^ *+' conftest.er1 >conftest.err
27987 rm -f conftest.er1
27988 cat conftest.err >&5
a848cd7e
SC
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); } &&
ac1cb8d3
VS
27991 { ac_try='test -z "$ac_c_werror_flag"
27992 || test ! -s conftest.err'
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27995 ac_status=$?
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; } &&
27998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28000 (eval $ac_try) 2>&5
28001 ac_status=$?
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); }; }; then
28004 ac_cv_type_mode_t=yes
28005else
28006 echo "$as_me: failed program was:" >&5
28007sed 's/^/| /' conftest.$ac_ext >&5
28008
28009ac_cv_type_mode_t=no
28010fi
ac1cb8d3 28011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28012fi
28013echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28014echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28015if test $ac_cv_type_mode_t = yes; then
28016 :
28017else
28018
28019cat >>confdefs.h <<_ACEOF
28020#define mode_t int
28021_ACEOF
28022
28023fi
28024
28025echo "$as_me:$LINENO: checking for off_t" >&5
28026echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28027if test "${ac_cv_type_off_t+set}" = set; then
28028 echo $ECHO_N "(cached) $ECHO_C" >&6
28029else
28030 cat >conftest.$ac_ext <<_ACEOF
28031/* confdefs.h. */
28032_ACEOF
28033cat confdefs.h >>conftest.$ac_ext
28034cat >>conftest.$ac_ext <<_ACEOF
28035/* end confdefs.h. */
28036$ac_includes_default
28037int
28038main ()
28039{
28040if ((off_t *) 0)
28041 return 0;
28042if (sizeof (off_t))
28043 return 0;
28044 ;
28045 return 0;
28046}
28047_ACEOF
28048rm -f conftest.$ac_objext
28049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28050 (eval $ac_compile) 2>conftest.er1
a848cd7e 28051 ac_status=$?
ac1cb8d3
VS
28052 grep -v '^ *+' conftest.er1 >conftest.err
28053 rm -f conftest.er1
28054 cat conftest.err >&5
a848cd7e
SC
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); } &&
ac1cb8d3
VS
28057 { ac_try='test -z "$ac_c_werror_flag"
28058 || test ! -s conftest.err'
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; } &&
28064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28066 (eval $ac_try) 2>&5
28067 ac_status=$?
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; }; then
28070 ac_cv_type_off_t=yes
28071else
28072 echo "$as_me: failed program was:" >&5
28073sed 's/^/| /' conftest.$ac_ext >&5
28074
28075ac_cv_type_off_t=no
28076fi
ac1cb8d3 28077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28078fi
28079echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28080echo "${ECHO_T}$ac_cv_type_off_t" >&6
28081if test $ac_cv_type_off_t = yes; then
28082 :
28083else
28084
28085cat >>confdefs.h <<_ACEOF
28086#define off_t long
28087_ACEOF
28088
28089fi
28090
28091echo "$as_me:$LINENO: checking for pid_t" >&5
28092echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28093if test "${ac_cv_type_pid_t+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
28095else
28096 cat >conftest.$ac_ext <<_ACEOF
28097/* confdefs.h. */
28098_ACEOF
28099cat confdefs.h >>conftest.$ac_ext
28100cat >>conftest.$ac_ext <<_ACEOF
28101/* end confdefs.h. */
28102$ac_includes_default
28103int
28104main ()
28105{
28106if ((pid_t *) 0)
28107 return 0;
28108if (sizeof (pid_t))
28109 return 0;
28110 ;
28111 return 0;
28112}
28113_ACEOF
28114rm -f conftest.$ac_objext
28115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28116 (eval $ac_compile) 2>conftest.er1
a848cd7e 28117 ac_status=$?
ac1cb8d3
VS
28118 grep -v '^ *+' conftest.er1 >conftest.err
28119 rm -f conftest.er1
28120 cat conftest.err >&5
a848cd7e
SC
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } &&
ac1cb8d3
VS
28123 { ac_try='test -z "$ac_c_werror_flag"
28124 || test ! -s conftest.err'
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; } &&
28130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132 (eval $ac_try) 2>&5
28133 ac_status=$?
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; }; then
28136 ac_cv_type_pid_t=yes
28137else
28138 echo "$as_me: failed program was:" >&5
28139sed 's/^/| /' conftest.$ac_ext >&5
28140
28141ac_cv_type_pid_t=no
28142fi
ac1cb8d3 28143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28144fi
28145echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28146echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28147if test $ac_cv_type_pid_t = yes; then
28148 :
28149else
28150
28151cat >>confdefs.h <<_ACEOF
28152#define pid_t int
28153_ACEOF
28154
28155fi
28156
28157echo "$as_me:$LINENO: checking for size_t" >&5
28158echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28159if test "${ac_cv_type_size_t+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28161else
28162 cat >conftest.$ac_ext <<_ACEOF
28163/* confdefs.h. */
28164_ACEOF
28165cat confdefs.h >>conftest.$ac_ext
28166cat >>conftest.$ac_ext <<_ACEOF
28167/* end confdefs.h. */
28168$ac_includes_default
28169int
28170main ()
28171{
28172if ((size_t *) 0)
28173 return 0;
28174if (sizeof (size_t))
28175 return 0;
28176 ;
28177 return 0;
28178}
28179_ACEOF
28180rm -f conftest.$ac_objext
28181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28182 (eval $ac_compile) 2>conftest.er1
a848cd7e 28183 ac_status=$?
ac1cb8d3
VS
28184 grep -v '^ *+' conftest.er1 >conftest.err
28185 rm -f conftest.er1
28186 cat conftest.err >&5
a848cd7e
SC
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); } &&
ac1cb8d3
VS
28189 { ac_try='test -z "$ac_c_werror_flag"
28190 || test ! -s conftest.err'
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
28196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28199 ac_status=$?
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
28202 ac_cv_type_size_t=yes
28203else
28204 echo "$as_me: failed program was:" >&5
28205sed 's/^/| /' conftest.$ac_ext >&5
28206
28207ac_cv_type_size_t=no
28208fi
ac1cb8d3 28209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28210fi
28211echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28212echo "${ECHO_T}$ac_cv_type_size_t" >&6
28213if test $ac_cv_type_size_t = yes; then
28214 :
28215else
28216
28217cat >>confdefs.h <<_ACEOF
28218#define size_t unsigned
28219_ACEOF
28220
28221fi
28222
28223echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28224echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28225if test "${ac_cv_type_uid_t+set}" = set; then
28226 echo $ECHO_N "(cached) $ECHO_C" >&6
28227else
28228 cat >conftest.$ac_ext <<_ACEOF
28229/* confdefs.h. */
28230_ACEOF
28231cat confdefs.h >>conftest.$ac_ext
28232cat >>conftest.$ac_ext <<_ACEOF
28233/* end confdefs.h. */
28234#include <sys/types.h>
28235
28236_ACEOF
28237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28238 $EGREP "uid_t" >/dev/null 2>&1; then
28239 ac_cv_type_uid_t=yes
28240else
28241 ac_cv_type_uid_t=no
28242fi
28243rm -f conftest*
28244
28245fi
28246echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28247echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28248if test $ac_cv_type_uid_t = no; then
28249
28250cat >>confdefs.h <<\_ACEOF
28251#define uid_t int
28252_ACEOF
28253
28254
28255cat >>confdefs.h <<\_ACEOF
28256#define gid_t int
28257_ACEOF
28258
28259fi
28260
28261
28262
28263
28264ac_ext=cc
28265ac_cpp='$CXXCPP $CPPFLAGS'
28266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28269
28270echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28271echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28272if test "${wx_cv_size_t_is_uint+set}" = set; then
28273 echo $ECHO_N "(cached) $ECHO_C" >&6
28274else
28275
28276 cat >conftest.$ac_ext <<_ACEOF
28277/* confdefs.h. */
28278_ACEOF
28279cat confdefs.h >>conftest.$ac_ext
28280cat >>conftest.$ac_ext <<_ACEOF
28281/* end confdefs.h. */
28282#include <stddef.h>
28283int
28284main ()
28285{
28286
28287 return 0; }
28288
28289 struct Foo { void foo(size_t); void foo(unsigned int); };
28290
28291 int bar() {
28292
28293 ;
28294 return 0;
28295}
28296_ACEOF
28297rm -f conftest.$ac_objext
28298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28299 (eval $ac_compile) 2>conftest.er1
a848cd7e 28300 ac_status=$?
ac1cb8d3
VS
28301 grep -v '^ *+' conftest.er1 >conftest.err
28302 rm -f conftest.er1
28303 cat conftest.err >&5
a848cd7e
SC
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); } &&
ac1cb8d3
VS
28306 { ac_try='test -z "$ac_cxx_werror_flag"
28307 || test ! -s conftest.err'
28308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; } &&
28313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28315 (eval $ac_try) 2>&5
28316 ac_status=$?
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; }; then
28319 wx_cv_size_t_is_uint=no
28320else
28321 echo "$as_me: failed program was:" >&5
28322sed 's/^/| /' conftest.$ac_ext >&5
28323
28324wx_cv_size_t_is_uint=yes
28325
28326fi
ac1cb8d3 28327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28328
28329
28330fi
28331echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28332echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28333
28334if test "$wx_cv_size_t_is_uint" = "yes"; then
28335 cat >>confdefs.h <<\_ACEOF
28336#define wxSIZE_T_IS_UINT 1
28337_ACEOF
28338
28339else
28340 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28341echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28342if test "${wx_cv_size_t_is_ulong+set}" = set; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28344else
28345 cat >conftest.$ac_ext <<_ACEOF
28346/* confdefs.h. */
28347_ACEOF
28348cat confdefs.h >>conftest.$ac_ext
28349cat >>conftest.$ac_ext <<_ACEOF
28350/* end confdefs.h. */
28351#include <stddef.h>
28352int
28353main ()
28354{
28355
28356 return 0; }
28357
28358 struct Foo { void foo(size_t); void foo(unsigned long); };
28359
28360 int bar() {
28361
28362 ;
28363 return 0;
28364}
28365_ACEOF
28366rm -f conftest.$ac_objext
28367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28368 (eval $ac_compile) 2>conftest.er1
a848cd7e 28369 ac_status=$?
ac1cb8d3
VS
28370 grep -v '^ *+' conftest.er1 >conftest.err
28371 rm -f conftest.er1
28372 cat conftest.err >&5
a848cd7e
SC
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } &&
ac1cb8d3
VS
28375 { ac_try='test -z "$ac_cxx_werror_flag"
28376 || test ! -s conftest.err'
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; } &&
28382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384 (eval $ac_try) 2>&5
28385 ac_status=$?
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; }; then
28388 wx_cv_size_t_is_ulong=no
28389else
28390 echo "$as_me: failed program was:" >&5
28391sed 's/^/| /' conftest.$ac_ext >&5
28392
28393wx_cv_size_t_is_ulong=yes
28394
28395fi
ac1cb8d3 28396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28397
28398fi
28399echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28400echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28401
28402 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28403 cat >>confdefs.h <<\_ACEOF
28404#define wxSIZE_T_IS_ULONG 1
28405_ACEOF
28406
28407 fi
28408fi
28409
28410ac_ext=c
28411ac_cpp='$CPP $CPPFLAGS'
28412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28414ac_compiler_gnu=$ac_cv_c_compiler_gnu
28415
28416
28417
28418echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28419echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28420if test "${wx_cv_struct_pw_gecos+set}" = set; then
28421 echo $ECHO_N "(cached) $ECHO_C" >&6
28422else
28423
28424 cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430#include <pwd.h>
28431int
28432main ()
28433{
28434
28435 char *p;
28436 struct passwd *pw;
28437 p = pw->pw_gecos;
28438
28439 ;
28440 return 0;
28441}
28442_ACEOF
28443rm -f conftest.$ac_objext
28444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28445 (eval $ac_compile) 2>conftest.er1
a848cd7e 28446 ac_status=$?
ac1cb8d3
VS
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
a848cd7e
SC
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
ac1cb8d3
VS
28452 { ac_try='test -z "$ac_c_werror_flag"
28453 || test ! -s conftest.err'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; } &&
28459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461 (eval $ac_try) 2>&5
28462 ac_status=$?
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; }; then
28465
28466 wx_cv_struct_pw_gecos=yes
28467
28468else
28469 echo "$as_me: failed program was:" >&5
28470sed 's/^/| /' conftest.$ac_ext >&5
28471
28472
28473 wx_cv_struct_pw_gecos=no
28474
28475
28476fi
ac1cb8d3 28477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28478
28479
28480fi
28481echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28482echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28483
28484if test "$wx_cv_struct_pw_gecos" = "yes"; then
28485 cat >>confdefs.h <<\_ACEOF
28486#define HAVE_PW_GECOS 1
28487_ACEOF
28488
28489fi
28490
28491
28492if test "$wx_cv_sizeof_wchar_t" != "0"; then
28493 cat >>confdefs.h <<\_ACEOF
28494#define wxUSE_WCHAR_T 1
28495_ACEOF
28496
28497
28498 WCSLEN_FOUND=0
28499 WCHAR_LINK=
28500
28501for ac_func in wcslen
28502do
28503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28504echo "$as_me:$LINENO: checking for $ac_func" >&5
28505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28506if eval "test \"\${$as_ac_var+set}\" = set"; then
28507 echo $ECHO_N "(cached) $ECHO_C" >&6
28508else
28509 cat >conftest.$ac_ext <<_ACEOF
28510/* confdefs.h. */
28511_ACEOF
28512cat confdefs.h >>conftest.$ac_ext
28513cat >>conftest.$ac_ext <<_ACEOF
28514/* end confdefs.h. */
ac1cb8d3
VS
28515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28517#define $ac_func innocuous_$ac_func
28518
a848cd7e
SC
28519/* System header to define __stub macros and hopefully few prototypes,
28520 which can conflict with char $ac_func (); below.
28521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28522 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28523
a848cd7e
SC
28524#ifdef __STDC__
28525# include <limits.h>
28526#else
28527# include <assert.h>
28528#endif
ac1cb8d3
VS
28529
28530#undef $ac_func
28531
a848cd7e
SC
28532/* Override any gcc2 internal prototype to avoid an error. */
28533#ifdef __cplusplus
28534extern "C"
28535{
28536#endif
28537/* We use char because int might match the return type of a gcc2
28538 builtin and then its argument prototype would still apply. */
28539char $ac_func ();
28540/* The GNU C library defines this for functions which it implements
28541 to always fail with ENOSYS. Some functions are actually named
28542 something starting with __ and the normal name is an alias. */
28543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28544choke me
28545#else
28546char (*f) () = $ac_func;
28547#endif
28548#ifdef __cplusplus
28549}
28550#endif
28551
28552int
28553main ()
28554{
28555return f != $ac_func;
28556 ;
28557 return 0;
28558}
28559_ACEOF
28560rm -f conftest.$ac_objext conftest$ac_exeext
28561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28562 (eval $ac_link) 2>conftest.er1
a848cd7e 28563 ac_status=$?
ac1cb8d3
VS
28564 grep -v '^ *+' conftest.er1 >conftest.err
28565 rm -f conftest.er1
28566 cat conftest.err >&5
a848cd7e
SC
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); } &&
ac1cb8d3
VS
28569 { ac_try='test -z "$ac_c_werror_flag"
28570 || test ! -s conftest.err'
28571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572 (eval $ac_try) 2>&5
28573 ac_status=$?
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; } &&
28576 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578 (eval $ac_try) 2>&5
28579 ac_status=$?
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
28582 eval "$as_ac_var=yes"
28583else
28584 echo "$as_me: failed program was:" >&5
28585sed 's/^/| /' conftest.$ac_ext >&5
28586
28587eval "$as_ac_var=no"
28588fi
ac1cb8d3
VS
28589rm -f conftest.err conftest.$ac_objext \
28590 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28591fi
28592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28594if test `eval echo '${'$as_ac_var'}'` = yes; then
28595 cat >>confdefs.h <<_ACEOF
28596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28597_ACEOF
28598 WCSLEN_FOUND=1
28599fi
28600done
28601
28602
28603 if test "$WCSLEN_FOUND" = 0; then
28604 if test "$TOOLKIT" = "MSW"; then
28605 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28606echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28607if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28608 echo $ECHO_N "(cached) $ECHO_C" >&6
28609else
28610 ac_check_lib_save_LIBS=$LIBS
28611LIBS="-lmsvcrt $LIBS"
28612cat >conftest.$ac_ext <<_ACEOF
28613/* confdefs.h. */
28614_ACEOF
28615cat confdefs.h >>conftest.$ac_ext
28616cat >>conftest.$ac_ext <<_ACEOF
28617/* end confdefs.h. */
28618
28619/* Override any gcc2 internal prototype to avoid an error. */
28620#ifdef __cplusplus
28621extern "C"
28622#endif
28623/* We use char because int might match the return type of a gcc2
28624 builtin and then its argument prototype would still apply. */
28625char wcslen ();
28626int
28627main ()
28628{
28629wcslen ();
28630 ;
28631 return 0;
28632}
28633_ACEOF
28634rm -f conftest.$ac_objext conftest$ac_exeext
28635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28636 (eval $ac_link) 2>conftest.er1
a848cd7e 28637 ac_status=$?
ac1cb8d3
VS
28638 grep -v '^ *+' conftest.er1 >conftest.err
28639 rm -f conftest.er1
28640 cat conftest.err >&5
a848cd7e
SC
28641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); } &&
ac1cb8d3
VS
28643 { ac_try='test -z "$ac_c_werror_flag"
28644 || test ! -s conftest.err'
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28647 ac_status=$?
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; } &&
28650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28652 (eval $ac_try) 2>&5
28653 ac_status=$?
28654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655 (exit $ac_status); }; }; then
28656 ac_cv_lib_msvcrt_wcslen=yes
28657else
28658 echo "$as_me: failed program was:" >&5
28659sed 's/^/| /' conftest.$ac_ext >&5
28660
28661ac_cv_lib_msvcrt_wcslen=no
28662fi
ac1cb8d3
VS
28663rm -f conftest.err conftest.$ac_objext \
28664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28665LIBS=$ac_check_lib_save_LIBS
28666fi
28667echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28668echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28669if test $ac_cv_lib_msvcrt_wcslen = yes; then
28670 WCHAR_OK=1
28671fi
28672
28673 else
28674 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28675echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28676if test "${ac_cv_lib_w_wcslen+set}" = set; then
28677 echo $ECHO_N "(cached) $ECHO_C" >&6
28678else
28679 ac_check_lib_save_LIBS=$LIBS
28680LIBS="-lw $LIBS"
28681cat >conftest.$ac_ext <<_ACEOF
28682/* confdefs.h. */
28683_ACEOF
28684cat confdefs.h >>conftest.$ac_ext
28685cat >>conftest.$ac_ext <<_ACEOF
28686/* end confdefs.h. */
28687
28688/* Override any gcc2 internal prototype to avoid an error. */
28689#ifdef __cplusplus
28690extern "C"
28691#endif
28692/* We use char because int might match the return type of a gcc2
28693 builtin and then its argument prototype would still apply. */
28694char wcslen ();
28695int
28696main ()
28697{
28698wcslen ();
28699 ;
28700 return 0;
28701}
28702_ACEOF
28703rm -f conftest.$ac_objext conftest$ac_exeext
28704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28705 (eval $ac_link) 2>conftest.er1
a848cd7e 28706 ac_status=$?
ac1cb8d3
VS
28707 grep -v '^ *+' conftest.er1 >conftest.err
28708 rm -f conftest.er1
28709 cat conftest.err >&5
a848cd7e
SC
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); } &&
ac1cb8d3
VS
28712 { ac_try='test -z "$ac_c_werror_flag"
28713 || test ! -s conftest.err'
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; } &&
28719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721 (eval $ac_try) 2>&5
28722 ac_status=$?
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; }; then
28725 ac_cv_lib_w_wcslen=yes
28726else
28727 echo "$as_me: failed program was:" >&5
28728sed 's/^/| /' conftest.$ac_ext >&5
28729
28730ac_cv_lib_w_wcslen=no
28731fi
ac1cb8d3
VS
28732rm -f conftest.err conftest.$ac_objext \
28733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28734LIBS=$ac_check_lib_save_LIBS
28735fi
28736echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28737echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28738if test $ac_cv_lib_w_wcslen = yes; then
28739
28740 WCHAR_LINK=" -lw"
28741 WCSLEN_FOUND=1
28742
28743fi
28744
28745 fi
28746 fi
28747
28748 if test "$WCSLEN_FOUND" = 1; then
28749 cat >>confdefs.h <<\_ACEOF
28750#define HAVE_WCSLEN 1
28751_ACEOF
28752
28753 fi
28754
473276a9
VS
28755 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28756 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28757 fi
28758
a848cd7e
SC
28759
28760for ac_func in wcsrtombs
28761do
28762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28763echo "$as_me:$LINENO: checking for $ac_func" >&5
28764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28765if eval "test \"\${$as_ac_var+set}\" = set"; then
28766 echo $ECHO_N "(cached) $ECHO_C" >&6
28767else
28768 cat >conftest.$ac_ext <<_ACEOF
28769/* confdefs.h. */
28770_ACEOF
28771cat confdefs.h >>conftest.$ac_ext
28772cat >>conftest.$ac_ext <<_ACEOF
28773/* end confdefs.h. */
ac1cb8d3
VS
28774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28776#define $ac_func innocuous_$ac_func
28777
a848cd7e
SC
28778/* System header to define __stub macros and hopefully few prototypes,
28779 which can conflict with char $ac_func (); below.
28780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28781 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28782
a848cd7e
SC
28783#ifdef __STDC__
28784# include <limits.h>
28785#else
28786# include <assert.h>
28787#endif
ac1cb8d3
VS
28788
28789#undef $ac_func
28790
a848cd7e
SC
28791/* Override any gcc2 internal prototype to avoid an error. */
28792#ifdef __cplusplus
28793extern "C"
28794{
28795#endif
28796/* We use char because int might match the return type of a gcc2
28797 builtin and then its argument prototype would still apply. */
28798char $ac_func ();
28799/* The GNU C library defines this for functions which it implements
28800 to always fail with ENOSYS. Some functions are actually named
28801 something starting with __ and the normal name is an alias. */
28802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28803choke me
28804#else
28805char (*f) () = $ac_func;
28806#endif
28807#ifdef __cplusplus
28808}
28809#endif
28810
28811int
28812main ()
28813{
28814return f != $ac_func;
28815 ;
28816 return 0;
28817}
28818_ACEOF
28819rm -f conftest.$ac_objext conftest$ac_exeext
28820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28821 (eval $ac_link) 2>conftest.er1
a848cd7e 28822 ac_status=$?
ac1cb8d3
VS
28823 grep -v '^ *+' conftest.er1 >conftest.err
28824 rm -f conftest.er1
28825 cat conftest.err >&5
a848cd7e
SC
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); } &&
ac1cb8d3
VS
28828 { ac_try='test -z "$ac_c_werror_flag"
28829 || test ! -s conftest.err'
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28832 ac_status=$?
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; } &&
28835 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28838 ac_status=$?
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; }; then
28841 eval "$as_ac_var=yes"
28842else
28843 echo "$as_me: failed program was:" >&5
28844sed 's/^/| /' conftest.$ac_ext >&5
28845
28846eval "$as_ac_var=no"
28847fi
ac1cb8d3
VS
28848rm -f conftest.err conftest.$ac_objext \
28849 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28850fi
28851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28852echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28853if test `eval echo '${'$as_ac_var'}'` = yes; then
28854 cat >>confdefs.h <<_ACEOF
28855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28856_ACEOF
28857
28858fi
28859done
28860
28861else
28862 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28863echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28864fi
28865
28866
28867
28868ac_ext=cc
28869ac_cpp='$CXXCPP $CPPFLAGS'
28870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28873
28874
28875
28876for ac_func in vsnprintf
28877do
28878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28879echo "$as_me:$LINENO: checking for $ac_func" >&5
28880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28881if eval "test \"\${$as_ac_var+set}\" = set"; then
28882 echo $ECHO_N "(cached) $ECHO_C" >&6
28883else
28884 cat >conftest.$ac_ext <<_ACEOF
28885/* confdefs.h. */
28886_ACEOF
28887cat confdefs.h >>conftest.$ac_ext
28888cat >>conftest.$ac_ext <<_ACEOF
28889/* end confdefs.h. */
ac1cb8d3
VS
28890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28892#define $ac_func innocuous_$ac_func
28893
a848cd7e
SC
28894/* System header to define __stub macros and hopefully few prototypes,
28895 which can conflict with char $ac_func (); below.
28896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28897 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28898
a848cd7e
SC
28899#ifdef __STDC__
28900# include <limits.h>
28901#else
28902# include <assert.h>
28903#endif
ac1cb8d3
VS
28904
28905#undef $ac_func
28906
a848cd7e
SC
28907/* Override any gcc2 internal prototype to avoid an error. */
28908#ifdef __cplusplus
28909extern "C"
28910{
28911#endif
28912/* We use char because int might match the return type of a gcc2
28913 builtin and then its argument prototype would still apply. */
28914char $ac_func ();
28915/* The GNU C library defines this for functions which it implements
28916 to always fail with ENOSYS. Some functions are actually named
28917 something starting with __ and the normal name is an alias. */
28918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28919choke me
28920#else
28921char (*f) () = $ac_func;
28922#endif
28923#ifdef __cplusplus
28924}
28925#endif
28926
28927int
28928main ()
28929{
28930return f != $ac_func;
28931 ;
28932 return 0;
28933}
28934_ACEOF
28935rm -f conftest.$ac_objext conftest$ac_exeext
28936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28937 (eval $ac_link) 2>conftest.er1
a848cd7e 28938 ac_status=$?
ac1cb8d3
VS
28939 grep -v '^ *+' conftest.er1 >conftest.err
28940 rm -f conftest.er1
28941 cat conftest.err >&5
a848cd7e
SC
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } &&
ac1cb8d3
VS
28944 { ac_try='test -z "$ac_cxx_werror_flag"
28945 || test ! -s conftest.err'
28946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947 (eval $ac_try) 2>&5
28948 ac_status=$?
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); }; } &&
28951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953 (eval $ac_try) 2>&5
28954 ac_status=$?
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; }; then
28957 eval "$as_ac_var=yes"
28958else
28959 echo "$as_me: failed program was:" >&5
28960sed 's/^/| /' conftest.$ac_ext >&5
28961
28962eval "$as_ac_var=no"
28963fi
ac1cb8d3
VS
28964rm -f conftest.err conftest.$ac_objext \
28965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28966fi
28967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28969if test `eval echo '${'$as_ac_var'}'` = yes; then
28970 cat >>confdefs.h <<_ACEOF
28971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28972_ACEOF
28973
28974fi
28975done
28976
28977
28978if test "$ac_cv_func_vsnprintf" = "yes"; then
28979 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28980echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28981if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28982 echo $ECHO_N "(cached) $ECHO_C" >&6
28983else
28984
28985 cat >conftest.$ac_ext <<_ACEOF
28986/* confdefs.h. */
28987_ACEOF
28988cat confdefs.h >>conftest.$ac_ext
28989cat >>conftest.$ac_ext <<_ACEOF
28990/* end confdefs.h. */
28991
28992 #include <stdio.h>
28993 #include <stdarg.h>
28994
28995int
28996main ()
28997{
28998
28999 char *buf;
29000 va_list ap;
29001 vsnprintf(buf, 10u, "%s", ap);
29002
29003 ;
29004 return 0;
29005}
29006_ACEOF
29007rm -f conftest.$ac_objext
29008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29009 (eval $ac_compile) 2>conftest.er1
a848cd7e 29010 ac_status=$?
ac1cb8d3
VS
29011 grep -v '^ *+' conftest.er1 >conftest.err
29012 rm -f conftest.er1
29013 cat conftest.err >&5
a848cd7e
SC
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); } &&
ac1cb8d3
VS
29016 { ac_try='test -z "$ac_cxx_werror_flag"
29017 || test ! -s conftest.err'
29018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29019 (eval $ac_try) 2>&5
29020 ac_status=$?
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; } &&
29023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29025 (eval $ac_try) 2>&5
29026 ac_status=$?
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); }; }; then
29029 wx_cv_func_vsnprintf_decl=yes
29030else
29031 echo "$as_me: failed program was:" >&5
29032sed 's/^/| /' conftest.$ac_ext >&5
29033
29034wx_cv_func_vsnprintf_decl=no
29035
29036fi
ac1cb8d3 29037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29038
29039
29040fi
29041echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29042echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29043
29044 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29045 cat >>confdefs.h <<\_ACEOF
29046#define HAVE_VSNPRINTF_DECL 1
29047_ACEOF
29048
29049 fi
29050fi
29051
29052if test "$wxUSE_UNICODE" = yes; then
29053
29054
29055
fbe47c7b
VS
29056
29057
29058
29059for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29060do
29061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29062echo "$as_me:$LINENO: checking for $ac_func" >&5
29063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29064if eval "test \"\${$as_ac_var+set}\" = set"; then
29065 echo $ECHO_N "(cached) $ECHO_C" >&6
29066else
29067 cat >conftest.$ac_ext <<_ACEOF
29068/* confdefs.h. */
29069_ACEOF
29070cat confdefs.h >>conftest.$ac_ext
29071cat >>conftest.$ac_ext <<_ACEOF
29072/* end confdefs.h. */
ac1cb8d3
VS
29073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29075#define $ac_func innocuous_$ac_func
29076
a848cd7e
SC
29077/* System header to define __stub macros and hopefully few prototypes,
29078 which can conflict with char $ac_func (); below.
29079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29080 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29081
a848cd7e
SC
29082#ifdef __STDC__
29083# include <limits.h>
29084#else
29085# include <assert.h>
29086#endif
ac1cb8d3
VS
29087
29088#undef $ac_func
29089
a848cd7e
SC
29090/* Override any gcc2 internal prototype to avoid an error. */
29091#ifdef __cplusplus
29092extern "C"
29093{
29094#endif
29095/* We use char because int might match the return type of a gcc2
29096 builtin and then its argument prototype would still apply. */
29097char $ac_func ();
29098/* The GNU C library defines this for functions which it implements
29099 to always fail with ENOSYS. Some functions are actually named
29100 something starting with __ and the normal name is an alias. */
29101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29102choke me
29103#else
29104char (*f) () = $ac_func;
29105#endif
29106#ifdef __cplusplus
29107}
29108#endif
29109
29110int
29111main ()
29112{
29113return f != $ac_func;
29114 ;
29115 return 0;
29116}
29117_ACEOF
29118rm -f conftest.$ac_objext conftest$ac_exeext
29119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29120 (eval $ac_link) 2>conftest.er1
a848cd7e 29121 ac_status=$?
ac1cb8d3
VS
29122 grep -v '^ *+' conftest.er1 >conftest.err
29123 rm -f conftest.er1
29124 cat conftest.err >&5
a848cd7e
SC
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); } &&
ac1cb8d3
VS
29127 { ac_try='test -z "$ac_cxx_werror_flag"
29128 || test ! -s conftest.err'
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; } &&
29134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29137 ac_status=$?
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; }; then
29140 eval "$as_ac_var=yes"
29141else
29142 echo "$as_me: failed program was:" >&5
29143sed 's/^/| /' conftest.$ac_ext >&5
29144
29145eval "$as_ac_var=no"
29146fi
ac1cb8d3
VS
29147rm -f conftest.err conftest.$ac_objext \
29148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29149fi
29150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29152if test `eval echo '${'$as_ac_var'}'` = yes; then
29153 cat >>confdefs.h <<_ACEOF
29154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29155_ACEOF
29156
29157fi
29158done
29159
29160
29161 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29162echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29163 cat >conftest.$ac_ext <<_ACEOF
29164/* confdefs.h. */
29165_ACEOF
29166cat confdefs.h >>conftest.$ac_ext
29167cat >>conftest.$ac_ext <<_ACEOF
29168/* end confdefs.h. */
29169#include <wchar.h>
29170int
29171main ()
29172{
29173&_vsnwprintf;
29174 ;
29175 return 0;
29176}
29177_ACEOF
29178rm -f conftest.$ac_objext
29179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29180 (eval $ac_compile) 2>conftest.er1
a848cd7e 29181 ac_status=$?
ac1cb8d3
VS
29182 grep -v '^ *+' conftest.er1 >conftest.err
29183 rm -f conftest.er1
29184 cat conftest.err >&5
a848cd7e
SC
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); } &&
ac1cb8d3
VS
29187 { ac_try='test -z "$ac_cxx_werror_flag"
29188 || test ! -s conftest.err'
29189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; } &&
29194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29196 (eval $ac_try) 2>&5
29197 ac_status=$?
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); }; }; then
29200 echo "$as_me:$LINENO: result: yes" >&5
29201echo "${ECHO_T}yes" >&6
29202 cat >>confdefs.h <<\_ACEOF
29203#define HAVE__VSNWPRINTF 1
29204_ACEOF
29205
29206else
29207 echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
29209
29210echo "$as_me:$LINENO: result: no" >&5
29211echo "${ECHO_T}no" >&6
29212fi
ac1cb8d3 29213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29214fi
29215
29216ac_ext=c
29217ac_cpp='$CPP $CPPFLAGS'
29218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29220ac_compiler_gnu=$ac_cv_c_compiler_gnu
29221
29222
29223
29224
29225if test "$TOOLKIT" != "MSW"; then
29226
29227
29228
29229
29230ac_ext=cc
29231ac_cpp='$CXXCPP $CPPFLAGS'
29232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29235
29236
29237
29238
29239# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29240if test "${with_libiconv_prefix+set}" = set; then
29241 withval="$with_libiconv_prefix"
29242
29243 for dir in `echo "$withval" | tr : ' '`; do
29244 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29245 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29246 done
29247
29248fi;
29249
29250 echo "$as_me:$LINENO: checking for iconv" >&5
29251echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29252if test "${am_cv_func_iconv+set}" = set; then
29253 echo $ECHO_N "(cached) $ECHO_C" >&6
29254else
29255
29256 am_cv_func_iconv="no, consider installing GNU libiconv"
29257 am_cv_lib_iconv=no
29258 cat >conftest.$ac_ext <<_ACEOF
29259/* confdefs.h. */
29260_ACEOF
29261cat confdefs.h >>conftest.$ac_ext
29262cat >>conftest.$ac_ext <<_ACEOF
29263/* end confdefs.h. */
29264#include <stdlib.h>
29265#include <iconv.h>
29266int
29267main ()
29268{
29269iconv_t cd = iconv_open("","");
29270 iconv(cd,NULL,NULL,NULL,NULL);
29271 iconv_close(cd);
29272 ;
29273 return 0;
29274}
29275_ACEOF
29276rm -f conftest.$ac_objext conftest$ac_exeext
29277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29278 (eval $ac_link) 2>conftest.er1
a848cd7e 29279 ac_status=$?
ac1cb8d3
VS
29280 grep -v '^ *+' conftest.er1 >conftest.err
29281 rm -f conftest.er1
29282 cat conftest.err >&5
a848cd7e
SC
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); } &&
ac1cb8d3
VS
29285 { ac_try='test -z "$ac_cxx_werror_flag"
29286 || test ! -s conftest.err'
29287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288 (eval $ac_try) 2>&5
29289 ac_status=$?
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); }; } &&
29292 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294 (eval $ac_try) 2>&5
29295 ac_status=$?
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; }; then
29298 am_cv_func_iconv=yes
29299else
29300 echo "$as_me: failed program was:" >&5
29301sed 's/^/| /' conftest.$ac_ext >&5
29302
29303fi
ac1cb8d3
VS
29304rm -f conftest.err conftest.$ac_objext \
29305 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29306 if test "$am_cv_func_iconv" != yes; then
29307 am_save_LIBS="$LIBS"
29308 LIBS="$LIBS -liconv"
29309 cat >conftest.$ac_ext <<_ACEOF
29310/* confdefs.h. */
29311_ACEOF
29312cat confdefs.h >>conftest.$ac_ext
29313cat >>conftest.$ac_ext <<_ACEOF
29314/* end confdefs.h. */
29315#include <stdlib.h>
29316#include <iconv.h>
29317int
29318main ()
29319{
29320iconv_t cd = iconv_open("","");
29321 iconv(cd,NULL,NULL,NULL,NULL);
29322 iconv_close(cd);
29323 ;
29324 return 0;
29325}
29326_ACEOF
29327rm -f conftest.$ac_objext conftest$ac_exeext
29328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29329 (eval $ac_link) 2>conftest.er1
a848cd7e 29330 ac_status=$?
ac1cb8d3
VS
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
a848cd7e
SC
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } &&
ac1cb8d3
VS
29336 { ac_try='test -z "$ac_cxx_werror_flag"
29337 || test ! -s conftest.err'
29338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29339 (eval $ac_try) 2>&5
29340 ac_status=$?
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; } &&
29343 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29345 (eval $ac_try) 2>&5
29346 ac_status=$?
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); }; }; then
29349 am_cv_lib_iconv=yes
29350 am_cv_func_iconv=yes
29351else
29352 echo "$as_me: failed program was:" >&5
29353sed 's/^/| /' conftest.$ac_ext >&5
29354
29355fi
ac1cb8d3
VS
29356rm -f conftest.err conftest.$ac_objext \
29357 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29358 LIBS="$am_save_LIBS"
29359 fi
29360
29361fi
29362echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29363echo "${ECHO_T}$am_cv_func_iconv" >&6
29364 if test "$am_cv_func_iconv" = yes; then
29365
29366cat >>confdefs.h <<\_ACEOF
29367#define HAVE_ICONV 1
29368_ACEOF
29369
29370 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29371echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29372if test "${wx_cv_func_iconv_const+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29374else
29375 cat >conftest.$ac_ext <<_ACEOF
29376/* confdefs.h. */
29377_ACEOF
29378cat confdefs.h >>conftest.$ac_ext
29379cat >>conftest.$ac_ext <<_ACEOF
29380/* end confdefs.h. */
29381
29382#include <stdlib.h>
29383#include <iconv.h>
29384extern
29385#ifdef __cplusplus
29386"C"
29387#endif
29388#if defined(__STDC__) || defined(__cplusplus)
29389size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29390#else
29391size_t iconv();
29392#endif
29393
29394int
29395main ()
29396{
29397
29398 ;
29399 return 0;
29400}
29401_ACEOF
29402rm -f conftest.$ac_objext
29403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29404 (eval $ac_compile) 2>conftest.er1
a848cd7e 29405 ac_status=$?
ac1cb8d3
VS
29406 grep -v '^ *+' conftest.er1 >conftest.err
29407 rm -f conftest.er1
29408 cat conftest.err >&5
a848cd7e
SC
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); } &&
ac1cb8d3
VS
29411 { ac_try='test -z "$ac_cxx_werror_flag"
29412 || test ! -s conftest.err'
29413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414 (eval $ac_try) 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; } &&
29418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420 (eval $ac_try) 2>&5
29421 ac_status=$?
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
29424 wx_cv_func_iconv_const="no"
29425else
29426 echo "$as_me: failed program was:" >&5
29427sed 's/^/| /' conftest.$ac_ext >&5
29428
29429wx_cv_func_iconv_const="yes"
29430
29431fi
ac1cb8d3 29432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29433
29434fi
29435echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29436echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29437
29438 iconv_const=
29439 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29440 iconv_const="const"
29441 fi
29442
29443
29444cat >>confdefs.h <<_ACEOF
29445#define ICONV_CONST $iconv_const
29446_ACEOF
29447
29448 fi
29449 LIBICONV=
29450 if test "$am_cv_lib_iconv" = yes; then
29451 LIBICONV="-liconv"
29452 fi
29453
29454
29455LIBS="$LIBICONV $LIBS"
29456ac_ext=c
29457ac_cpp='$CPP $CPPFLAGS'
29458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29460ac_compiler_gnu=$ac_cv_c_compiler_gnu
29461
29462
29463if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29464
29465for ac_func in sigaction
29466do
29467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29468echo "$as_me:$LINENO: checking for $ac_func" >&5
29469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29470if eval "test \"\${$as_ac_var+set}\" = set"; then
29471 echo $ECHO_N "(cached) $ECHO_C" >&6
29472else
29473 cat >conftest.$ac_ext <<_ACEOF
29474/* confdefs.h. */
29475_ACEOF
29476cat confdefs.h >>conftest.$ac_ext
29477cat >>conftest.$ac_ext <<_ACEOF
29478/* end confdefs.h. */
ac1cb8d3
VS
29479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29481#define $ac_func innocuous_$ac_func
29482
a848cd7e
SC
29483/* System header to define __stub macros and hopefully few prototypes,
29484 which can conflict with char $ac_func (); below.
29485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29486 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29487
a848cd7e
SC
29488#ifdef __STDC__
29489# include <limits.h>
29490#else
29491# include <assert.h>
29492#endif
ac1cb8d3
VS
29493
29494#undef $ac_func
29495
a848cd7e
SC
29496/* Override any gcc2 internal prototype to avoid an error. */
29497#ifdef __cplusplus
29498extern "C"
29499{
29500#endif
29501/* We use char because int might match the return type of a gcc2
29502 builtin and then its argument prototype would still apply. */
29503char $ac_func ();
29504/* The GNU C library defines this for functions which it implements
29505 to always fail with ENOSYS. Some functions are actually named
29506 something starting with __ and the normal name is an alias. */
29507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29508choke me
29509#else
29510char (*f) () = $ac_func;
29511#endif
29512#ifdef __cplusplus
29513}
29514#endif
29515
29516int
29517main ()
29518{
29519return f != $ac_func;
29520 ;
29521 return 0;
29522}
29523_ACEOF
29524rm -f conftest.$ac_objext conftest$ac_exeext
29525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29526 (eval $ac_link) 2>conftest.er1
a848cd7e 29527 ac_status=$?
ac1cb8d3
VS
29528 grep -v '^ *+' conftest.er1 >conftest.err
29529 rm -f conftest.er1
29530 cat conftest.err >&5
a848cd7e
SC
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); } &&
ac1cb8d3
VS
29533 { ac_try='test -z "$ac_c_werror_flag"
29534 || test ! -s conftest.err'
29535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536 (eval $ac_try) 2>&5
29537 ac_status=$?
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); }; } &&
29540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542 (eval $ac_try) 2>&5
29543 ac_status=$?
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; }; then
29546 eval "$as_ac_var=yes"
29547else
29548 echo "$as_me: failed program was:" >&5
29549sed 's/^/| /' conftest.$ac_ext >&5
29550
29551eval "$as_ac_var=no"
29552fi
ac1cb8d3
VS
29553rm -f conftest.err conftest.$ac_objext \
29554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29555fi
29556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29558if test `eval echo '${'$as_ac_var'}'` = yes; then
29559 cat >>confdefs.h <<_ACEOF
29560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29561_ACEOF
29562
29563fi
29564done
29565
29566
29567 if test "$ac_cv_func_sigaction" = "no"; then
29568 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29569echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29570 wxUSE_ON_FATAL_EXCEPTION=no
29571 fi
29572
29573 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29574
29575
29576 ac_ext=cc
29577ac_cpp='$CXXCPP $CPPFLAGS'
29578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29581
29582
29583 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29584echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29585if test "${wx_cv_type_sa_handler+set}" = set; then
29586 echo $ECHO_N "(cached) $ECHO_C" >&6
29587else
29588
29589 cat >conftest.$ac_ext <<_ACEOF
29590/* confdefs.h. */
29591_ACEOF
29592cat confdefs.h >>conftest.$ac_ext
29593cat >>conftest.$ac_ext <<_ACEOF
29594/* end confdefs.h. */
29595#include <signal.h>
29596int
29597main ()
29598{
29599
29600 extern void testSigHandler(int);
29601
29602 struct sigaction sa;
29603 sa.sa_handler = testSigHandler;
29604
29605 ;
29606 return 0;
29607}
29608_ACEOF
29609rm -f conftest.$ac_objext
29610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29611 (eval $ac_compile) 2>conftest.er1
a848cd7e 29612 ac_status=$?
ac1cb8d3
VS
29613 grep -v '^ *+' conftest.er1 >conftest.err
29614 rm -f conftest.er1
29615 cat conftest.err >&5
a848cd7e
SC
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } &&
ac1cb8d3
VS
29618 { ac_try='test -z "$ac_cxx_werror_flag"
29619 || test ! -s conftest.err'
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); }; } &&
29625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627 (eval $ac_try) 2>&5
29628 ac_status=$?
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; }; then
29631
29632 wx_cv_type_sa_handler=int
29633
29634else
29635 echo "$as_me: failed program was:" >&5
29636sed 's/^/| /' conftest.$ac_ext >&5
29637
29638
29639 wx_cv_type_sa_handler=void
29640
29641fi
ac1cb8d3 29642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29643
29644fi
29645echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29646echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29647
29648 ac_ext=c
29649ac_cpp='$CPP $CPPFLAGS'
29650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29652ac_compiler_gnu=$ac_cv_c_compiler_gnu
29653
29654
29655 cat >>confdefs.h <<_ACEOF
29656#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29657_ACEOF
29658
29659 fi
29660fi
29661
29662
29663
29664for ac_func in mkstemp mktemp
29665do
29666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29667echo "$as_me:$LINENO: checking for $ac_func" >&5
29668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29669if eval "test \"\${$as_ac_var+set}\" = set"; then
29670 echo $ECHO_N "(cached) $ECHO_C" >&6
29671else
29672 cat >conftest.$ac_ext <<_ACEOF
29673/* confdefs.h. */
29674_ACEOF
29675cat confdefs.h >>conftest.$ac_ext
29676cat >>conftest.$ac_ext <<_ACEOF
29677/* end confdefs.h. */
ac1cb8d3
VS
29678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29680#define $ac_func innocuous_$ac_func
29681
a848cd7e
SC
29682/* System header to define __stub macros and hopefully few prototypes,
29683 which can conflict with char $ac_func (); below.
29684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29685 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29686
a848cd7e
SC
29687#ifdef __STDC__
29688# include <limits.h>
29689#else
29690# include <assert.h>
29691#endif
ac1cb8d3
VS
29692
29693#undef $ac_func
29694
a848cd7e
SC
29695/* Override any gcc2 internal prototype to avoid an error. */
29696#ifdef __cplusplus
29697extern "C"
29698{
29699#endif
29700/* We use char because int might match the return type of a gcc2
29701 builtin and then its argument prototype would still apply. */
29702char $ac_func ();
29703/* The GNU C library defines this for functions which it implements
29704 to always fail with ENOSYS. Some functions are actually named
29705 something starting with __ and the normal name is an alias. */
29706#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29707choke me
29708#else
29709char (*f) () = $ac_func;
29710#endif
29711#ifdef __cplusplus
29712}
29713#endif
29714
29715int
29716main ()
29717{
29718return f != $ac_func;
29719 ;
29720 return 0;
29721}
29722_ACEOF
29723rm -f conftest.$ac_objext conftest$ac_exeext
29724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29725 (eval $ac_link) 2>conftest.er1
a848cd7e 29726 ac_status=$?
ac1cb8d3
VS
29727 grep -v '^ *+' conftest.er1 >conftest.err
29728 rm -f conftest.er1
29729 cat conftest.err >&5
a848cd7e
SC
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); } &&
ac1cb8d3
VS
29732 { ac_try='test -z "$ac_c_werror_flag"
29733 || test ! -s conftest.err'
29734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29735 (eval $ac_try) 2>&5
29736 ac_status=$?
29737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); }; } &&
29739 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29741 (eval $ac_try) 2>&5
29742 ac_status=$?
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); }; }; then
29745 eval "$as_ac_var=yes"
29746else
29747 echo "$as_me: failed program was:" >&5
29748sed 's/^/| /' conftest.$ac_ext >&5
29749
29750eval "$as_ac_var=no"
29751fi
ac1cb8d3
VS
29752rm -f conftest.err conftest.$ac_objext \
29753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29754fi
29755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29756echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29757if test `eval echo '${'$as_ac_var'}'` = yes; then
29758 cat >>confdefs.h <<_ACEOF
29759#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29760_ACEOF
29761 break
29762fi
29763done
29764
29765
29766echo "$as_me:$LINENO: checking for statfs" >&5
29767echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29768if test "${wx_cv_func_statfs+set}" = set; then
29769 echo $ECHO_N "(cached) $ECHO_C" >&6
29770else
29771 cat >conftest.$ac_ext <<_ACEOF
29772/* confdefs.h. */
29773_ACEOF
29774cat confdefs.h >>conftest.$ac_ext
29775cat >>conftest.$ac_ext <<_ACEOF
29776/* end confdefs.h. */
29777
29778 #if defined(__BSD__)
29779 #include <sys/param.h>
29780 #include <sys/mount.h>
29781 #else
29782 #include <sys/vfs.h>
29783 #endif
29784
29785int
29786main ()
29787{
29788
29789 long l;
29790 struct statfs fs;
29791 statfs("/", &fs);
29792 l = fs.f_bsize;
29793 l += fs.f_blocks;
29794 l += fs.f_bavail;
29795
29796 ;
29797 return 0;
29798}
29799_ACEOF
29800rm -f conftest.$ac_objext
29801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29802 (eval $ac_compile) 2>conftest.er1
a848cd7e 29803 ac_status=$?
ac1cb8d3
VS
29804 grep -v '^ *+' conftest.er1 >conftest.err
29805 rm -f conftest.er1
29806 cat conftest.err >&5
a848cd7e
SC
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); } &&
ac1cb8d3
VS
29809 { ac_try='test -z "$ac_c_werror_flag"
29810 || test ! -s conftest.err'
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; } &&
29816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; }; then
29822
29823 wx_cv_func_statfs=yes
29824
29825else
29826 echo "$as_me: failed program was:" >&5
29827sed 's/^/| /' conftest.$ac_ext >&5
29828
29829
29830 wx_cv_func_statfs=no
29831
29832
29833fi
ac1cb8d3 29834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29835
29836fi
29837echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29838echo "${ECHO_T}$wx_cv_func_statfs" >&6
29839
29840if test "$wx_cv_func_statfs" = "yes"; then
29841 wx_cv_type_statvfs_t="struct statfs"
29842 cat >>confdefs.h <<\_ACEOF
29843#define HAVE_STATFS 1
29844_ACEOF
29845
29846else
29847 echo "$as_me:$LINENO: checking for statvfs" >&5
29848echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29849if test "${wx_cv_func_statvfs+set}" = set; then
29850 echo $ECHO_N "(cached) $ECHO_C" >&6
29851else
29852 cat >conftest.$ac_ext <<_ACEOF
29853/* confdefs.h. */
29854_ACEOF
29855cat confdefs.h >>conftest.$ac_ext
29856cat >>conftest.$ac_ext <<_ACEOF
29857/* end confdefs.h. */
29858
29859 #include <stddef.h>
29860 #include <sys/statvfs.h>
29861
29862int
29863main ()
29864{
29865
29866 statvfs("/", NULL);
29867
29868 ;
29869 return 0;
29870}
29871_ACEOF
29872rm -f conftest.$ac_objext
29873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29874 (eval $ac_compile) 2>conftest.er1
a848cd7e 29875 ac_status=$?
ac1cb8d3
VS
29876 grep -v '^ *+' conftest.er1 >conftest.err
29877 rm -f conftest.er1
29878 cat conftest.err >&5
a848cd7e
SC
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } &&
ac1cb8d3
VS
29881 { ac_try='test -z "$ac_c_werror_flag"
29882 || test ! -s conftest.err'
29883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884 (eval $ac_try) 2>&5
29885 ac_status=$?
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; } &&
29888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890 (eval $ac_try) 2>&5
29891 ac_status=$?
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; }; then
29894 wx_cv_func_statvfs=yes
29895else
29896 echo "$as_me: failed program was:" >&5
29897sed 's/^/| /' conftest.$ac_ext >&5
29898
29899wx_cv_func_statvfs=no
29900
29901fi
ac1cb8d3 29902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29903
29904fi
29905echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29906echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29907
29908 if test "$wx_cv_func_statvfs" = "yes"; then
29909
29910
29911 ac_ext=cc
29912ac_cpp='$CXXCPP $CPPFLAGS'
29913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29916
29917
29918 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29919echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29920if test "${wx_cv_type_statvfs_t+set}" = set; then
29921 echo $ECHO_N "(cached) $ECHO_C" >&6
29922else
29923 cat >conftest.$ac_ext <<_ACEOF
29924/* confdefs.h. */
29925_ACEOF
29926cat confdefs.h >>conftest.$ac_ext
29927cat >>conftest.$ac_ext <<_ACEOF
29928/* end confdefs.h. */
29929
29930 #include <sys/statvfs.h>
29931
29932int
29933main ()
29934{
29935
29936 long l;
29937 statvfs_t fs;
29938 statvfs("/", &fs);
29939 l = fs.f_bsize;
29940 l += fs.f_blocks;
29941 l += fs.f_bavail;
29942
29943 ;
29944 return 0;
29945}
29946_ACEOF
29947rm -f conftest.$ac_objext
29948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29949 (eval $ac_compile) 2>conftest.er1
a848cd7e 29950 ac_status=$?
ac1cb8d3
VS
29951 grep -v '^ *+' conftest.er1 >conftest.err
29952 rm -f conftest.er1
29953 cat conftest.err >&5
a848cd7e
SC
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); } &&
ac1cb8d3
VS
29956 { ac_try='test -z "$ac_cxx_werror_flag"
29957 || test ! -s conftest.err'
29958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29959 (eval $ac_try) 2>&5
29960 ac_status=$?
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; } &&
29963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965 (eval $ac_try) 2>&5
29966 ac_status=$?
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); }; }; then
29969 wx_cv_type_statvfs_t=statvfs_t
29970else
29971 echo "$as_me: failed program was:" >&5
29972sed 's/^/| /' conftest.$ac_ext >&5
29973
29974
29975 cat >conftest.$ac_ext <<_ACEOF
29976/* confdefs.h. */
29977_ACEOF
29978cat confdefs.h >>conftest.$ac_ext
29979cat >>conftest.$ac_ext <<_ACEOF
29980/* end confdefs.h. */
29981
29982 #include <sys/statvfs.h>
29983
29984int
29985main ()
29986{
29987
29988 long l;
29989 struct statvfs fs;
29990 statvfs("/", &fs);
29991 l = fs.f_bsize;
29992 l += fs.f_blocks;
29993 l += fs.f_bavail;
29994
29995 ;
29996 return 0;
29997}
29998_ACEOF
29999rm -f conftest.$ac_objext
30000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30001 (eval $ac_compile) 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); } &&
ac1cb8d3
VS
30008 { ac_try='test -z "$ac_cxx_werror_flag"
30009 || test ! -s conftest.err'
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_objext'
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 wx_cv_type_statvfs_t="struct statvfs"
30022else
30023 echo "$as_me: failed program was:" >&5
30024sed 's/^/| /' conftest.$ac_ext >&5
30025
30026wx_cv_type_statvfs_t="unknown"
30027
30028fi
ac1cb8d3 30029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30030
30031
30032fi
ac1cb8d3 30033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30034
30035fi
30036echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30037echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30038
30039 ac_ext=c
30040ac_cpp='$CPP $CPPFLAGS'
30041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30043ac_compiler_gnu=$ac_cv_c_compiler_gnu
30044
30045
30046 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30047 cat >>confdefs.h <<\_ACEOF
30048#define HAVE_STATVFS 1
30049_ACEOF
30050
30051 fi
30052 else
30053 wx_cv_type_statvfs_t="unknown"
30054 fi
30055fi
30056
30057if test "$wx_cv_type_statvfs_t" != "unknown"; then
30058 cat >>confdefs.h <<_ACEOF
30059#define WX_STATFS_T $wx_cv_type_statvfs_t
30060_ACEOF
30061
30062else
30063 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30064echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30065fi
30066
30067if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30068
30069
30070for ac_func in fcntl flock
30071do
30072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30073echo "$as_me:$LINENO: checking for $ac_func" >&5
30074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30075if eval "test \"\${$as_ac_var+set}\" = set"; then
30076 echo $ECHO_N "(cached) $ECHO_C" >&6
30077else
30078 cat >conftest.$ac_ext <<_ACEOF
30079/* confdefs.h. */
30080_ACEOF
30081cat confdefs.h >>conftest.$ac_ext
30082cat >>conftest.$ac_ext <<_ACEOF
30083/* end confdefs.h. */
ac1cb8d3
VS
30084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30086#define $ac_func innocuous_$ac_func
30087
a848cd7e
SC
30088/* System header to define __stub macros and hopefully few prototypes,
30089 which can conflict with char $ac_func (); below.
30090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30091 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30092
a848cd7e
SC
30093#ifdef __STDC__
30094# include <limits.h>
30095#else
30096# include <assert.h>
30097#endif
ac1cb8d3
VS
30098
30099#undef $ac_func
30100
a848cd7e
SC
30101/* Override any gcc2 internal prototype to avoid an error. */
30102#ifdef __cplusplus
30103extern "C"
30104{
30105#endif
30106/* We use char because int might match the return type of a gcc2
30107 builtin and then its argument prototype would still apply. */
30108char $ac_func ();
30109/* The GNU C library defines this for functions which it implements
30110 to always fail with ENOSYS. Some functions are actually named
30111 something starting with __ and the normal name is an alias. */
30112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30113choke me
30114#else
30115char (*f) () = $ac_func;
30116#endif
30117#ifdef __cplusplus
30118}
30119#endif
30120
30121int
30122main ()
30123{
30124return f != $ac_func;
30125 ;
30126 return 0;
30127}
30128_ACEOF
30129rm -f conftest.$ac_objext conftest$ac_exeext
30130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30131 (eval $ac_link) 2>conftest.er1
a848cd7e 30132 ac_status=$?
ac1cb8d3
VS
30133 grep -v '^ *+' conftest.er1 >conftest.err
30134 rm -f conftest.er1
30135 cat conftest.err >&5
a848cd7e
SC
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } &&
ac1cb8d3
VS
30138 { ac_try='test -z "$ac_c_werror_flag"
30139 || test ! -s conftest.err'
30140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141 (eval $ac_try) 2>&5
30142 ac_status=$?
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; } &&
30145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30147 (eval $ac_try) 2>&5
30148 ac_status=$?
30149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150 (exit $ac_status); }; }; then
30151 eval "$as_ac_var=yes"
30152else
30153 echo "$as_me: failed program was:" >&5
30154sed 's/^/| /' conftest.$ac_ext >&5
30155
30156eval "$as_ac_var=no"
30157fi
ac1cb8d3
VS
30158rm -f conftest.err conftest.$ac_objext \
30159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30160fi
30161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30162echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30163if test `eval echo '${'$as_ac_var'}'` = yes; then
30164 cat >>confdefs.h <<_ACEOF
30165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30166_ACEOF
30167 break
30168fi
30169done
30170
30171
30172 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30173 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30174echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30175 wxUSE_SNGLINST_CHECKER=no
30176 fi
30177fi
30178
30179
30180for ac_func in timegm
30181do
30182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30183echo "$as_me:$LINENO: checking for $ac_func" >&5
30184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30185if eval "test \"\${$as_ac_var+set}\" = set"; then
30186 echo $ECHO_N "(cached) $ECHO_C" >&6
30187else
30188 cat >conftest.$ac_ext <<_ACEOF
30189/* confdefs.h. */
30190_ACEOF
30191cat confdefs.h >>conftest.$ac_ext
30192cat >>conftest.$ac_ext <<_ACEOF
30193/* end confdefs.h. */
ac1cb8d3
VS
30194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30196#define $ac_func innocuous_$ac_func
30197
a848cd7e
SC
30198/* System header to define __stub macros and hopefully few prototypes,
30199 which can conflict with char $ac_func (); below.
30200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30201 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30202
a848cd7e
SC
30203#ifdef __STDC__
30204# include <limits.h>
30205#else
30206# include <assert.h>
30207#endif
ac1cb8d3
VS
30208
30209#undef $ac_func
30210
a848cd7e
SC
30211/* Override any gcc2 internal prototype to avoid an error. */
30212#ifdef __cplusplus
30213extern "C"
30214{
30215#endif
30216/* We use char because int might match the return type of a gcc2
30217 builtin and then its argument prototype would still apply. */
30218char $ac_func ();
30219/* The GNU C library defines this for functions which it implements
30220 to always fail with ENOSYS. Some functions are actually named
30221 something starting with __ and the normal name is an alias. */
30222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30223choke me
30224#else
30225char (*f) () = $ac_func;
30226#endif
30227#ifdef __cplusplus
30228}
30229#endif
30230
30231int
30232main ()
30233{
30234return f != $ac_func;
30235 ;
30236 return 0;
30237}
30238_ACEOF
30239rm -f conftest.$ac_objext conftest$ac_exeext
30240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30241 (eval $ac_link) 2>conftest.er1
a848cd7e 30242 ac_status=$?
ac1cb8d3
VS
30243 grep -v '^ *+' conftest.er1 >conftest.err
30244 rm -f conftest.er1
30245 cat conftest.err >&5
a848cd7e
SC
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247 (exit $ac_status); } &&
ac1cb8d3
VS
30248 { ac_try='test -z "$ac_c_werror_flag"
30249 || test ! -s conftest.err'
30250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251 (eval $ac_try) 2>&5
30252 ac_status=$?
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; } &&
30255 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257 (eval $ac_try) 2>&5
30258 ac_status=$?
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; }; then
30261 eval "$as_ac_var=yes"
30262else
30263 echo "$as_me: failed program was:" >&5
30264sed 's/^/| /' conftest.$ac_ext >&5
30265
30266eval "$as_ac_var=no"
30267fi
ac1cb8d3
VS
30268rm -f conftest.err conftest.$ac_objext \
30269 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30270fi
30271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30273if test `eval echo '${'$as_ac_var'}'` = yes; then
30274 cat >>confdefs.h <<_ACEOF
30275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30276_ACEOF
30277
30278fi
30279done
30280
30281
30282
30283
30284for ac_func in putenv setenv
30285do
30286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30287echo "$as_me:$LINENO: checking for $ac_func" >&5
30288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30289if eval "test \"\${$as_ac_var+set}\" = set"; then
30290 echo $ECHO_N "(cached) $ECHO_C" >&6
30291else
30292 cat >conftest.$ac_ext <<_ACEOF
30293/* confdefs.h. */
30294_ACEOF
30295cat confdefs.h >>conftest.$ac_ext
30296cat >>conftest.$ac_ext <<_ACEOF
30297/* end confdefs.h. */
ac1cb8d3
VS
30298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30300#define $ac_func innocuous_$ac_func
30301
a848cd7e
SC
30302/* System header to define __stub macros and hopefully few prototypes,
30303 which can conflict with char $ac_func (); below.
30304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30305 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30306
a848cd7e
SC
30307#ifdef __STDC__
30308# include <limits.h>
30309#else
30310# include <assert.h>
30311#endif
ac1cb8d3
VS
30312
30313#undef $ac_func
30314
a848cd7e
SC
30315/* Override any gcc2 internal prototype to avoid an error. */
30316#ifdef __cplusplus
30317extern "C"
30318{
30319#endif
30320/* We use char because int might match the return type of a gcc2
30321 builtin and then its argument prototype would still apply. */
30322char $ac_func ();
30323/* The GNU C library defines this for functions which it implements
30324 to always fail with ENOSYS. Some functions are actually named
30325 something starting with __ and the normal name is an alias. */
30326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30327choke me
30328#else
30329char (*f) () = $ac_func;
30330#endif
30331#ifdef __cplusplus
30332}
30333#endif
30334
30335int
30336main ()
30337{
30338return f != $ac_func;
30339 ;
30340 return 0;
30341}
30342_ACEOF
30343rm -f conftest.$ac_objext conftest$ac_exeext
30344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30345 (eval $ac_link) 2>conftest.er1
a848cd7e 30346 ac_status=$?
ac1cb8d3
VS
30347 grep -v '^ *+' conftest.er1 >conftest.err
30348 rm -f conftest.er1
30349 cat conftest.err >&5
a848cd7e
SC
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } &&
ac1cb8d3
VS
30352 { ac_try='test -z "$ac_c_werror_flag"
30353 || test ! -s conftest.err'
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; } &&
30359 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361 (eval $ac_try) 2>&5
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; }; then
30365 eval "$as_ac_var=yes"
30366else
30367 echo "$as_me: failed program was:" >&5
30368sed 's/^/| /' conftest.$ac_ext >&5
30369
30370eval "$as_ac_var=no"
30371fi
ac1cb8d3
VS
30372rm -f conftest.err conftest.$ac_objext \
30373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30374fi
30375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30377if test `eval echo '${'$as_ac_var'}'` = yes; then
30378 cat >>confdefs.h <<_ACEOF
30379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30380_ACEOF
30381 break
30382fi
30383done
30384
30385
30386HAVE_SOME_SLEEP_FUNC=0
30387if test "$USE_BEOS" = 1; then
30388 cat >>confdefs.h <<\_ACEOF
30389#define HAVE_SLEEP 1
30390_ACEOF
30391
30392 HAVE_SOME_SLEEP_FUNC=1
30393fi
30394
30395if test "$USE_DARWIN" = 1; then
30396 cat >>confdefs.h <<\_ACEOF
30397#define HAVE_USLEEP 1
30398_ACEOF
30399
30400 HAVE_SOME_SLEEP_FUNC=1
30401fi
30402
30403if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30404 POSIX4_LINK=
30405
30406for ac_func in nanosleep
30407do
30408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30409echo "$as_me:$LINENO: checking for $ac_func" >&5
30410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30411if eval "test \"\${$as_ac_var+set}\" = set"; then
30412 echo $ECHO_N "(cached) $ECHO_C" >&6
30413else
30414 cat >conftest.$ac_ext <<_ACEOF
30415/* confdefs.h. */
30416_ACEOF
30417cat confdefs.h >>conftest.$ac_ext
30418cat >>conftest.$ac_ext <<_ACEOF
30419/* end confdefs.h. */
ac1cb8d3
VS
30420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30422#define $ac_func innocuous_$ac_func
30423
a848cd7e
SC
30424/* System header to define __stub macros and hopefully few prototypes,
30425 which can conflict with char $ac_func (); below.
30426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30427 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30428
a848cd7e
SC
30429#ifdef __STDC__
30430# include <limits.h>
30431#else
30432# include <assert.h>
30433#endif
ac1cb8d3
VS
30434
30435#undef $ac_func
30436
a848cd7e
SC
30437/* Override any gcc2 internal prototype to avoid an error. */
30438#ifdef __cplusplus
30439extern "C"
30440{
30441#endif
30442/* We use char because int might match the return type of a gcc2
30443 builtin and then its argument prototype would still apply. */
30444char $ac_func ();
30445/* The GNU C library defines this for functions which it implements
30446 to always fail with ENOSYS. Some functions are actually named
30447 something starting with __ and the normal name is an alias. */
30448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30449choke me
30450#else
30451char (*f) () = $ac_func;
30452#endif
30453#ifdef __cplusplus
30454}
30455#endif
30456
30457int
30458main ()
30459{
30460return f != $ac_func;
30461 ;
30462 return 0;
30463}
30464_ACEOF
30465rm -f conftest.$ac_objext conftest$ac_exeext
30466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30467 (eval $ac_link) 2>conftest.er1
a848cd7e 30468 ac_status=$?
ac1cb8d3
VS
30469 grep -v '^ *+' conftest.er1 >conftest.err
30470 rm -f conftest.er1
30471 cat conftest.err >&5
a848cd7e
SC
30472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30473 (exit $ac_status); } &&
ac1cb8d3
VS
30474 { ac_try='test -z "$ac_c_werror_flag"
30475 || test ! -s conftest.err'
30476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30477 (eval $ac_try) 2>&5
30478 ac_status=$?
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; } &&
30481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30483 (eval $ac_try) 2>&5
30484 ac_status=$?
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); }; }; then
30487 eval "$as_ac_var=yes"
30488else
30489 echo "$as_me: failed program was:" >&5
30490sed 's/^/| /' conftest.$ac_ext >&5
30491
30492eval "$as_ac_var=no"
30493fi
ac1cb8d3
VS
30494rm -f conftest.err conftest.$ac_objext \
30495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30496fi
30497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30498echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30499if test `eval echo '${'$as_ac_var'}'` = yes; then
30500 cat >>confdefs.h <<_ACEOF
30501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30502_ACEOF
30503 cat >>confdefs.h <<\_ACEOF
30504#define HAVE_NANOSLEEP 1
30505_ACEOF
30506
30507else
30508
30509 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30510echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30511if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30512 echo $ECHO_N "(cached) $ECHO_C" >&6
30513else
30514 ac_check_lib_save_LIBS=$LIBS
30515LIBS="-lposix4 $LIBS"
30516cat >conftest.$ac_ext <<_ACEOF
30517/* confdefs.h. */
30518_ACEOF
30519cat confdefs.h >>conftest.$ac_ext
30520cat >>conftest.$ac_ext <<_ACEOF
30521/* end confdefs.h. */
30522
30523/* Override any gcc2 internal prototype to avoid an error. */
30524#ifdef __cplusplus
30525extern "C"
30526#endif
30527/* We use char because int might match the return type of a gcc2
30528 builtin and then its argument prototype would still apply. */
30529char nanosleep ();
30530int
30531main ()
30532{
30533nanosleep ();
30534 ;
30535 return 0;
30536}
30537_ACEOF
30538rm -f conftest.$ac_objext conftest$ac_exeext
30539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30540 (eval $ac_link) 2>conftest.er1
a848cd7e 30541 ac_status=$?
ac1cb8d3
VS
30542 grep -v '^ *+' conftest.er1 >conftest.err
30543 rm -f conftest.er1
30544 cat conftest.err >&5
a848cd7e
SC
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); } &&
ac1cb8d3
VS
30547 { ac_try='test -z "$ac_c_werror_flag"
30548 || test ! -s conftest.err'
30549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550 (eval $ac_try) 2>&5
30551 ac_status=$?
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); }; } &&
30554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556 (eval $ac_try) 2>&5
30557 ac_status=$?
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; }; then
30560 ac_cv_lib_posix4_nanosleep=yes
30561else
30562 echo "$as_me: failed program was:" >&5
30563sed 's/^/| /' conftest.$ac_ext >&5
30564
30565ac_cv_lib_posix4_nanosleep=no
30566fi
ac1cb8d3
VS
30567rm -f conftest.err conftest.$ac_objext \
30568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30569LIBS=$ac_check_lib_save_LIBS
30570fi
30571echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30572echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30573if test $ac_cv_lib_posix4_nanosleep = yes; then
30574
30575 cat >>confdefs.h <<\_ACEOF
30576#define HAVE_NANOSLEEP 1
30577_ACEOF
30578
30579 POSIX4_LINK=" -lposix4"
30580
30581else
30582
30583
30584for ac_func in usleep
30585do
30586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30587echo "$as_me:$LINENO: checking for $ac_func" >&5
30588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30589if eval "test \"\${$as_ac_var+set}\" = set"; then
30590 echo $ECHO_N "(cached) $ECHO_C" >&6
30591else
30592 cat >conftest.$ac_ext <<_ACEOF
30593/* confdefs.h. */
30594_ACEOF
30595cat confdefs.h >>conftest.$ac_ext
30596cat >>conftest.$ac_ext <<_ACEOF
30597/* end confdefs.h. */
ac1cb8d3
VS
30598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30600#define $ac_func innocuous_$ac_func
30601
a848cd7e
SC
30602/* System header to define __stub macros and hopefully few prototypes,
30603 which can conflict with char $ac_func (); below.
30604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30605 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30606
a848cd7e
SC
30607#ifdef __STDC__
30608# include <limits.h>
30609#else
30610# include <assert.h>
30611#endif
ac1cb8d3
VS
30612
30613#undef $ac_func
30614
a848cd7e
SC
30615/* Override any gcc2 internal prototype to avoid an error. */
30616#ifdef __cplusplus
30617extern "C"
30618{
30619#endif
30620/* We use char because int might match the return type of a gcc2
30621 builtin and then its argument prototype would still apply. */
30622char $ac_func ();
30623/* The GNU C library defines this for functions which it implements
30624 to always fail with ENOSYS. Some functions are actually named
30625 something starting with __ and the normal name is an alias. */
30626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30627choke me
30628#else
30629char (*f) () = $ac_func;
30630#endif
30631#ifdef __cplusplus
30632}
30633#endif
30634
30635int
30636main ()
30637{
30638return f != $ac_func;
30639 ;
30640 return 0;
30641}
30642_ACEOF
30643rm -f conftest.$ac_objext conftest$ac_exeext
30644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30645 (eval $ac_link) 2>conftest.er1
a848cd7e 30646 ac_status=$?
ac1cb8d3
VS
30647 grep -v '^ *+' conftest.er1 >conftest.err
30648 rm -f conftest.er1
30649 cat conftest.err >&5
a848cd7e
SC
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); } &&
ac1cb8d3
VS
30652 { ac_try='test -z "$ac_c_werror_flag"
30653 || test ! -s conftest.err'
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661 (eval $ac_try) 2>&5
30662 ac_status=$?
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; }; then
30665 eval "$as_ac_var=yes"
30666else
30667 echo "$as_me: failed program was:" >&5
30668sed 's/^/| /' conftest.$ac_ext >&5
30669
30670eval "$as_ac_var=no"
30671fi
ac1cb8d3
VS
30672rm -f conftest.err conftest.$ac_objext \
30673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30674fi
30675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30677if test `eval echo '${'$as_ac_var'}'` = yes; then
30678 cat >>confdefs.h <<_ACEOF
30679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30680_ACEOF
30681 cat >>confdefs.h <<\_ACEOF
30682#define HAVE_USLEEP 1
30683_ACEOF
30684
30685else
30686 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30687echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30688
30689fi
30690done
30691
30692
30693
30694fi
30695
30696
30697
30698fi
30699done
30700
30701fi
30702
30703
30704
30705for ac_func in uname gethostname
30706do
30707as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30708echo "$as_me:$LINENO: checking for $ac_func" >&5
30709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30710if eval "test \"\${$as_ac_var+set}\" = set"; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30712else
30713 cat >conftest.$ac_ext <<_ACEOF
30714/* confdefs.h. */
30715_ACEOF
30716cat confdefs.h >>conftest.$ac_ext
30717cat >>conftest.$ac_ext <<_ACEOF
30718/* end confdefs.h. */
ac1cb8d3
VS
30719/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30721#define $ac_func innocuous_$ac_func
30722
a848cd7e
SC
30723/* System header to define __stub macros and hopefully few prototypes,
30724 which can conflict with char $ac_func (); below.
30725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30726 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30727
a848cd7e
SC
30728#ifdef __STDC__
30729# include <limits.h>
30730#else
30731# include <assert.h>
30732#endif
ac1cb8d3
VS
30733
30734#undef $ac_func
30735
a848cd7e
SC
30736/* Override any gcc2 internal prototype to avoid an error. */
30737#ifdef __cplusplus
30738extern "C"
30739{
30740#endif
30741/* We use char because int might match the return type of a gcc2
30742 builtin and then its argument prototype would still apply. */
30743char $ac_func ();
30744/* The GNU C library defines this for functions which it implements
30745 to always fail with ENOSYS. Some functions are actually named
30746 something starting with __ and the normal name is an alias. */
30747#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30748choke me
30749#else
30750char (*f) () = $ac_func;
30751#endif
30752#ifdef __cplusplus
30753}
30754#endif
30755
30756int
30757main ()
30758{
30759return f != $ac_func;
30760 ;
30761 return 0;
30762}
30763_ACEOF
30764rm -f conftest.$ac_objext conftest$ac_exeext
30765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30766 (eval $ac_link) 2>conftest.er1
a848cd7e 30767 ac_status=$?
ac1cb8d3
VS
30768 grep -v '^ *+' conftest.er1 >conftest.err
30769 rm -f conftest.er1
30770 cat conftest.err >&5
a848cd7e
SC
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); } &&
ac1cb8d3
VS
30773 { ac_try='test -z "$ac_c_werror_flag"
30774 || test ! -s conftest.err'
30775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30776 (eval $ac_try) 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; } &&
30780 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30782 (eval $ac_try) 2>&5
30783 ac_status=$?
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); }; }; then
30786 eval "$as_ac_var=yes"
30787else
30788 echo "$as_me: failed program was:" >&5
30789sed 's/^/| /' conftest.$ac_ext >&5
30790
30791eval "$as_ac_var=no"
30792fi
ac1cb8d3
VS
30793rm -f conftest.err conftest.$ac_objext \
30794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30795fi
30796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30798if test `eval echo '${'$as_ac_var'}'` = yes; then
30799 cat >>confdefs.h <<_ACEOF
30800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30801_ACEOF
30802 break
30803fi
30804done
30805
30806
30807
30808
30809ac_ext=cc
30810ac_cpp='$CXXCPP $CPPFLAGS'
30811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30814
30815
30816
30817for ac_func in strtok_r
30818do
30819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30820echo "$as_me:$LINENO: checking for $ac_func" >&5
30821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30822if eval "test \"\${$as_ac_var+set}\" = set"; then
30823 echo $ECHO_N "(cached) $ECHO_C" >&6
30824else
30825 cat >conftest.$ac_ext <<_ACEOF
30826/* confdefs.h. */
30827_ACEOF
30828cat confdefs.h >>conftest.$ac_ext
30829cat >>conftest.$ac_ext <<_ACEOF
30830/* end confdefs.h. */
ac1cb8d3
VS
30831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30833#define $ac_func innocuous_$ac_func
30834
a848cd7e
SC
30835/* System header to define __stub macros and hopefully few prototypes,
30836 which can conflict with char $ac_func (); below.
30837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30839
a848cd7e
SC
30840#ifdef __STDC__
30841# include <limits.h>
30842#else
30843# include <assert.h>
30844#endif
ac1cb8d3
VS
30845
30846#undef $ac_func
30847
a848cd7e
SC
30848/* Override any gcc2 internal prototype to avoid an error. */
30849#ifdef __cplusplus
30850extern "C"
30851{
30852#endif
30853/* We use char because int might match the return type of a gcc2
30854 builtin and then its argument prototype would still apply. */
30855char $ac_func ();
30856/* The GNU C library defines this for functions which it implements
30857 to always fail with ENOSYS. Some functions are actually named
30858 something starting with __ and the normal name is an alias. */
30859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30860choke me
30861#else
30862char (*f) () = $ac_func;
30863#endif
30864#ifdef __cplusplus
30865}
30866#endif
30867
30868int
30869main ()
30870{
30871return f != $ac_func;
30872 ;
30873 return 0;
30874}
30875_ACEOF
30876rm -f conftest.$ac_objext conftest$ac_exeext
30877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30878 (eval $ac_link) 2>conftest.er1
a848cd7e 30879 ac_status=$?
ac1cb8d3
VS
30880 grep -v '^ *+' conftest.er1 >conftest.err
30881 rm -f conftest.er1
30882 cat conftest.err >&5
a848cd7e
SC
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); } &&
ac1cb8d3
VS
30885 { ac_try='test -z "$ac_cxx_werror_flag"
30886 || test ! -s conftest.err'
30887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888 (eval $ac_try) 2>&5
30889 ac_status=$?
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; } &&
30892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30894 (eval $ac_try) 2>&5
30895 ac_status=$?
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
30898 eval "$as_ac_var=yes"
30899else
30900 echo "$as_me: failed program was:" >&5
30901sed 's/^/| /' conftest.$ac_ext >&5
30902
30903eval "$as_ac_var=no"
30904fi
ac1cb8d3
VS
30905rm -f conftest.err conftest.$ac_objext \
30906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30907fi
30908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30910if test `eval echo '${'$as_ac_var'}'` = yes; then
30911 cat >>confdefs.h <<_ACEOF
30912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30913_ACEOF
30914
30915fi
30916done
30917
30918
30919ac_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
30926INET_LINK=
30927
30928for ac_func in inet_addr
30929do
30930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30931echo "$as_me:$LINENO: checking for $ac_func" >&5
30932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30933if eval "test \"\${$as_ac_var+set}\" = set"; then
30934 echo $ECHO_N "(cached) $ECHO_C" >&6
30935else
30936 cat >conftest.$ac_ext <<_ACEOF
30937/* confdefs.h. */
30938_ACEOF
30939cat confdefs.h >>conftest.$ac_ext
30940cat >>conftest.$ac_ext <<_ACEOF
30941/* end confdefs.h. */
ac1cb8d3
VS
30942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30944#define $ac_func innocuous_$ac_func
30945
a848cd7e
SC
30946/* System header to define __stub macros and hopefully few prototypes,
30947 which can conflict with char $ac_func (); below.
30948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30949 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30950
a848cd7e
SC
30951#ifdef __STDC__
30952# include <limits.h>
30953#else
30954# include <assert.h>
30955#endif
ac1cb8d3
VS
30956
30957#undef $ac_func
30958
a848cd7e
SC
30959/* Override any gcc2 internal prototype to avoid an error. */
30960#ifdef __cplusplus
30961extern "C"
30962{
30963#endif
30964/* We use char because int might match the return type of a gcc2
30965 builtin and then its argument prototype would still apply. */
30966char $ac_func ();
30967/* The GNU C library defines this for functions which it implements
30968 to always fail with ENOSYS. Some functions are actually named
30969 something starting with __ and the normal name is an alias. */
30970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30971choke me
30972#else
30973char (*f) () = $ac_func;
30974#endif
30975#ifdef __cplusplus
30976}
30977#endif
30978
30979int
30980main ()
30981{
30982return f != $ac_func;
30983 ;
30984 return 0;
30985}
30986_ACEOF
30987rm -f conftest.$ac_objext conftest$ac_exeext
30988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30989 (eval $ac_link) 2>conftest.er1
a848cd7e 30990 ac_status=$?
ac1cb8d3
VS
30991 grep -v '^ *+' conftest.er1 >conftest.err
30992 rm -f conftest.er1
30993 cat conftest.err >&5
a848cd7e
SC
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } &&
ac1cb8d3
VS
30996 { ac_try='test -z "$ac_c_werror_flag"
30997 || test ! -s conftest.err'
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; } &&
31003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31005 (eval $ac_try) 2>&5
31006 ac_status=$?
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); }; }; then
31009 eval "$as_ac_var=yes"
31010else
31011 echo "$as_me: failed program was:" >&5
31012sed 's/^/| /' conftest.$ac_ext >&5
31013
31014eval "$as_ac_var=no"
31015fi
ac1cb8d3
VS
31016rm -f conftest.err conftest.$ac_objext \
31017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31018fi
31019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31020echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31021if test `eval echo '${'$as_ac_var'}'` = yes; then
31022 cat >>confdefs.h <<_ACEOF
31023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31024_ACEOF
31025 cat >>confdefs.h <<\_ACEOF
31026#define HAVE_INET_ADDR 1
31027_ACEOF
31028
31029else
31030
31031 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31032echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31033if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31034 echo $ECHO_N "(cached) $ECHO_C" >&6
31035else
31036 ac_check_lib_save_LIBS=$LIBS
31037LIBS="-lnsl $LIBS"
31038cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h. */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h. */
31044
31045/* Override any gcc2 internal prototype to avoid an error. */
31046#ifdef __cplusplus
31047extern "C"
31048#endif
31049/* We use char because int might match the return type of a gcc2
31050 builtin and then its argument prototype would still apply. */
31051char inet_addr ();
31052int
31053main ()
31054{
31055inet_addr ();
31056 ;
31057 return 0;
31058}
31059_ACEOF
31060rm -f conftest.$ac_objext conftest$ac_exeext
31061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31062 (eval $ac_link) 2>conftest.er1
a848cd7e 31063 ac_status=$?
ac1cb8d3
VS
31064 grep -v '^ *+' conftest.er1 >conftest.err
31065 rm -f conftest.er1
31066 cat conftest.err >&5
a848cd7e
SC
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); } &&
ac1cb8d3
VS
31069 { ac_try='test -z "$ac_c_werror_flag"
31070 || test ! -s conftest.err'
31071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31072 (eval $ac_try) 2>&5
31073 ac_status=$?
31074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31075 (exit $ac_status); }; } &&
31076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31078 (eval $ac_try) 2>&5
31079 ac_status=$?
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); }; }; then
31082 ac_cv_lib_nsl_inet_addr=yes
31083else
31084 echo "$as_me: failed program was:" >&5
31085sed 's/^/| /' conftest.$ac_ext >&5
31086
31087ac_cv_lib_nsl_inet_addr=no
31088fi
ac1cb8d3
VS
31089rm -f conftest.err conftest.$ac_objext \
31090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31091LIBS=$ac_check_lib_save_LIBS
31092fi
31093echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31094echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31095if test $ac_cv_lib_nsl_inet_addr = yes; then
31096 INET_LINK="nsl"
31097else
31098
31099 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31100echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31101if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31103else
31104 ac_check_lib_save_LIBS=$LIBS
31105LIBS="-lresolv $LIBS"
31106cat >conftest.$ac_ext <<_ACEOF
31107/* confdefs.h. */
31108_ACEOF
31109cat confdefs.h >>conftest.$ac_ext
31110cat >>conftest.$ac_ext <<_ACEOF
31111/* end confdefs.h. */
31112
31113/* Override any gcc2 internal prototype to avoid an error. */
31114#ifdef __cplusplus
31115extern "C"
31116#endif
31117/* We use char because int might match the return type of a gcc2
31118 builtin and then its argument prototype would still apply. */
31119char inet_addr ();
31120int
31121main ()
31122{
31123inet_addr ();
31124 ;
31125 return 0;
31126}
31127_ACEOF
31128rm -f conftest.$ac_objext conftest$ac_exeext
31129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31130 (eval $ac_link) 2>conftest.er1
a848cd7e 31131 ac_status=$?
ac1cb8d3
VS
31132 grep -v '^ *+' conftest.er1 >conftest.err
31133 rm -f conftest.er1
31134 cat conftest.err >&5
a848cd7e
SC
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); } &&
ac1cb8d3
VS
31137 { ac_try='test -z "$ac_c_werror_flag"
31138 || test ! -s conftest.err'
31139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31140 (eval $ac_try) 2>&5
31141 ac_status=$?
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); }; } &&
31144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31146 (eval $ac_try) 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; }; then
31150 ac_cv_lib_resolv_inet_addr=yes
31151else
31152 echo "$as_me: failed program was:" >&5
31153sed 's/^/| /' conftest.$ac_ext >&5
31154
31155ac_cv_lib_resolv_inet_addr=no
31156fi
ac1cb8d3
VS
31157rm -f conftest.err conftest.$ac_objext \
31158 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31159LIBS=$ac_check_lib_save_LIBS
31160fi
31161echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31162echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31163if test $ac_cv_lib_resolv_inet_addr = yes; then
31164 INET_LINK="resolv"
31165else
31166
31167 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31168echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31169if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31170 echo $ECHO_N "(cached) $ECHO_C" >&6
31171else
31172 ac_check_lib_save_LIBS=$LIBS
31173LIBS="-lsocket $LIBS"
31174cat >conftest.$ac_ext <<_ACEOF
31175/* confdefs.h. */
31176_ACEOF
31177cat confdefs.h >>conftest.$ac_ext
31178cat >>conftest.$ac_ext <<_ACEOF
31179/* end confdefs.h. */
31180
31181/* Override any gcc2 internal prototype to avoid an error. */
31182#ifdef __cplusplus
31183extern "C"
31184#endif
31185/* We use char because int might match the return type of a gcc2
31186 builtin and then its argument prototype would still apply. */
31187char inet_addr ();
31188int
31189main ()
31190{
31191inet_addr ();
31192 ;
31193 return 0;
31194}
31195_ACEOF
31196rm -f conftest.$ac_objext conftest$ac_exeext
31197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31198 (eval $ac_link) 2>conftest.er1
a848cd7e 31199 ac_status=$?
ac1cb8d3
VS
31200 grep -v '^ *+' conftest.er1 >conftest.err
31201 rm -f conftest.er1
31202 cat conftest.err >&5
a848cd7e
SC
31203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31204 (exit $ac_status); } &&
ac1cb8d3
VS
31205 { ac_try='test -z "$ac_c_werror_flag"
31206 || test ! -s conftest.err'
31207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31208 (eval $ac_try) 2>&5
31209 ac_status=$?
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); }; } &&
31212 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31214 (eval $ac_try) 2>&5
31215 ac_status=$?
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; }; then
31218 ac_cv_lib_socket_inet_addr=yes
31219else
31220 echo "$as_me: failed program was:" >&5
31221sed 's/^/| /' conftest.$ac_ext >&5
31222
31223ac_cv_lib_socket_inet_addr=no
31224fi
ac1cb8d3
VS
31225rm -f conftest.err conftest.$ac_objext \
31226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31227LIBS=$ac_check_lib_save_LIBS
31228fi
31229echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31230echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31231if test $ac_cv_lib_socket_inet_addr = yes; then
31232 INET_LINK="socket"
31233
31234fi
31235
31236
31237
31238fi
31239
31240
31241
31242fi
31243
31244
31245
31246fi
31247done
31248
31249
31250
31251for ac_func in inet_aton
31252do
31253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31254echo "$as_me:$LINENO: checking for $ac_func" >&5
31255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31256if eval "test \"\${$as_ac_var+set}\" = set"; then
31257 echo $ECHO_N "(cached) $ECHO_C" >&6
31258else
31259 cat >conftest.$ac_ext <<_ACEOF
31260/* confdefs.h. */
31261_ACEOF
31262cat confdefs.h >>conftest.$ac_ext
31263cat >>conftest.$ac_ext <<_ACEOF
31264/* end confdefs.h. */
ac1cb8d3
VS
31265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31267#define $ac_func innocuous_$ac_func
31268
a848cd7e
SC
31269/* System header to define __stub macros and hopefully few prototypes,
31270 which can conflict with char $ac_func (); below.
31271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31272 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31273
a848cd7e
SC
31274#ifdef __STDC__
31275# include <limits.h>
31276#else
31277# include <assert.h>
31278#endif
ac1cb8d3
VS
31279
31280#undef $ac_func
31281
a848cd7e
SC
31282/* Override any gcc2 internal prototype to avoid an error. */
31283#ifdef __cplusplus
31284extern "C"
31285{
31286#endif
31287/* We use char because int might match the return type of a gcc2
31288 builtin and then its argument prototype would still apply. */
31289char $ac_func ();
31290/* The GNU C library defines this for functions which it implements
31291 to always fail with ENOSYS. Some functions are actually named
31292 something starting with __ and the normal name is an alias. */
31293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31294choke me
31295#else
31296char (*f) () = $ac_func;
31297#endif
31298#ifdef __cplusplus
31299}
31300#endif
31301
31302int
31303main ()
31304{
31305return f != $ac_func;
31306 ;
31307 return 0;
31308}
31309_ACEOF
31310rm -f conftest.$ac_objext conftest$ac_exeext
31311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31312 (eval $ac_link) 2>conftest.er1
a848cd7e 31313 ac_status=$?
ac1cb8d3
VS
31314 grep -v '^ *+' conftest.er1 >conftest.err
31315 rm -f conftest.er1
31316 cat conftest.err >&5
a848cd7e
SC
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); } &&
ac1cb8d3
VS
31319 { ac_try='test -z "$ac_c_werror_flag"
31320 || test ! -s conftest.err'
31321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31322 (eval $ac_try) 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; } &&
31326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31328 (eval $ac_try) 2>&5
31329 ac_status=$?
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); }; }; then
31332 eval "$as_ac_var=yes"
31333else
31334 echo "$as_me: failed program was:" >&5
31335sed 's/^/| /' conftest.$ac_ext >&5
31336
31337eval "$as_ac_var=no"
31338fi
ac1cb8d3
VS
31339rm -f conftest.err conftest.$ac_objext \
31340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31341fi
31342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31344if test `eval echo '${'$as_ac_var'}'` = yes; then
31345 cat >>confdefs.h <<_ACEOF
31346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31347_ACEOF
31348 cat >>confdefs.h <<\_ACEOF
31349#define HAVE_INET_ATON 1
31350_ACEOF
31351
31352else
31353
31354 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31355echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31356echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31357if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31358 echo $ECHO_N "(cached) $ECHO_C" >&6
31359else
31360 ac_check_lib_save_LIBS=$LIBS
31361LIBS="-l$INET_LINK $LIBS"
31362cat >conftest.$ac_ext <<_ACEOF
31363/* confdefs.h. */
31364_ACEOF
31365cat confdefs.h >>conftest.$ac_ext
31366cat >>conftest.$ac_ext <<_ACEOF
31367/* end confdefs.h. */
31368
31369/* Override any gcc2 internal prototype to avoid an error. */
31370#ifdef __cplusplus
31371extern "C"
31372#endif
31373/* We use char because int might match the return type of a gcc2
31374 builtin and then its argument prototype would still apply. */
31375char inet_aton ();
31376int
31377main ()
31378{
31379inet_aton ();
31380 ;
31381 return 0;
31382}
31383_ACEOF
31384rm -f conftest.$ac_objext conftest$ac_exeext
31385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31386 (eval $ac_link) 2>conftest.er1
a848cd7e 31387 ac_status=$?
ac1cb8d3
VS
31388 grep -v '^ *+' conftest.er1 >conftest.err
31389 rm -f conftest.er1
31390 cat conftest.err >&5
a848cd7e
SC
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); } &&
ac1cb8d3
VS
31393 { ac_try='test -z "$ac_c_werror_flag"
31394 || test ! -s conftest.err'
31395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31396 (eval $ac_try) 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; } &&
31400 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31402 (eval $ac_try) 2>&5
31403 ac_status=$?
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); }; }; then
31406 eval "$as_ac_Lib=yes"
31407else
31408 echo "$as_me: failed program was:" >&5
31409sed 's/^/| /' conftest.$ac_ext >&5
31410
31411eval "$as_ac_Lib=no"
31412fi
ac1cb8d3
VS
31413rm -f conftest.err conftest.$ac_objext \
31414 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31415LIBS=$ac_check_lib_save_LIBS
31416fi
31417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31418echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31419if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31420 cat >>confdefs.h <<\_ACEOF
31421#define HAVE_INET_ATON 1
31422_ACEOF
31423
31424fi
31425
31426
31427fi
31428done
31429
31430
31431if test "x$INET_LINK" != "x"; then
31432 cat >>confdefs.h <<\_ACEOF
31433#define HAVE_INET_ADDR 1
31434_ACEOF
31435
31436 INET_LINK=" -l$INET_LINK"
31437fi
31438
31439fi
31440
31441
31442
31443EXTRALIBS_ESD=
31444echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31445echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31446if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31447 echo $ECHO_N "(cached) $ECHO_C" >&6
31448else
31449 ac_check_lib_save_LIBS=$LIBS
31450LIBS="-lesd $LIBS"
31451cat >conftest.$ac_ext <<_ACEOF
31452/* confdefs.h. */
31453_ACEOF
31454cat confdefs.h >>conftest.$ac_ext
31455cat >>conftest.$ac_ext <<_ACEOF
31456/* end confdefs.h. */
31457
31458/* Override any gcc2 internal prototype to avoid an error. */
31459#ifdef __cplusplus
31460extern "C"
31461#endif
31462/* We use char because int might match the return type of a gcc2
31463 builtin and then its argument prototype would still apply. */
31464char esd_close ();
31465int
31466main ()
31467{
31468esd_close ();
31469 ;
31470 return 0;
31471}
31472_ACEOF
31473rm -f conftest.$ac_objext conftest$ac_exeext
31474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31475 (eval $ac_link) 2>conftest.er1
a848cd7e 31476 ac_status=$?
ac1cb8d3
VS
31477 grep -v '^ *+' conftest.er1 >conftest.err
31478 rm -f conftest.er1
31479 cat conftest.err >&5
a848cd7e
SC
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } &&
ac1cb8d3
VS
31482 { ac_try='test -z "$ac_c_werror_flag"
31483 || test ! -s conftest.err'
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; } &&
31489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491 (eval $ac_try) 2>&5
31492 ac_status=$?
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; }; then
31495 ac_cv_lib_esd_esd_close=yes
31496else
31497 echo "$as_me: failed program was:" >&5
31498sed 's/^/| /' conftest.$ac_ext >&5
31499
31500ac_cv_lib_esd_esd_close=no
31501fi
ac1cb8d3
VS
31502rm -f conftest.err conftest.$ac_objext \
31503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31504LIBS=$ac_check_lib_save_LIBS
31505fi
31506echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31507echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31508if test $ac_cv_lib_esd_esd_close = yes; then
31509
31510
31511for ac_header in esd.h
31512do
31513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31514if eval "test \"\${$as_ac_Header+set}\" = set"; then
31515 echo "$as_me:$LINENO: checking for $ac_header" >&5
31516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31517if eval "test \"\${$as_ac_Header+set}\" = set"; then
31518 echo $ECHO_N "(cached) $ECHO_C" >&6
31519fi
31520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31522else
31523 # Is the header compilable?
31524echo "$as_me:$LINENO: checking $ac_header usability" >&5
31525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31526cat >conftest.$ac_ext <<_ACEOF
31527/* confdefs.h. */
31528_ACEOF
31529cat confdefs.h >>conftest.$ac_ext
31530cat >>conftest.$ac_ext <<_ACEOF
31531/* end confdefs.h. */
31532$ac_includes_default
31533#include <$ac_header>
31534_ACEOF
31535rm -f conftest.$ac_objext
31536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31537 (eval $ac_compile) 2>conftest.er1
a848cd7e 31538 ac_status=$?
ac1cb8d3
VS
31539 grep -v '^ *+' conftest.er1 >conftest.err
31540 rm -f conftest.er1
31541 cat conftest.err >&5
a848cd7e
SC
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); } &&
ac1cb8d3
VS
31544 { ac_try='test -z "$ac_c_werror_flag"
31545 || test ! -s conftest.err'
31546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547 (eval $ac_try) 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; } &&
31551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553 (eval $ac_try) 2>&5
31554 ac_status=$?
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; }; then
31557 ac_header_compiler=yes
31558else
31559 echo "$as_me: failed program was:" >&5
31560sed 's/^/| /' conftest.$ac_ext >&5
31561
31562ac_header_compiler=no
31563fi
ac1cb8d3 31564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31565echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31566echo "${ECHO_T}$ac_header_compiler" >&6
31567
31568# Is the header present?
31569echo "$as_me:$LINENO: checking $ac_header presence" >&5
31570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31571cat >conftest.$ac_ext <<_ACEOF
31572/* confdefs.h. */
31573_ACEOF
31574cat confdefs.h >>conftest.$ac_ext
31575cat >>conftest.$ac_ext <<_ACEOF
31576/* end confdefs.h. */
31577#include <$ac_header>
31578_ACEOF
31579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31581 ac_status=$?
31582 grep -v '^ *+' conftest.er1 >conftest.err
31583 rm -f conftest.er1
31584 cat conftest.err >&5
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); } >/dev/null; then
31587 if test -s conftest.err; then
31588 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31590 else
31591 ac_cpp_err=
31592 fi
31593else
31594 ac_cpp_err=yes
31595fi
31596if test -z "$ac_cpp_err"; then
31597 ac_header_preproc=yes
31598else
31599 echo "$as_me: failed program was:" >&5
31600sed 's/^/| /' conftest.$ac_ext >&5
31601
31602 ac_header_preproc=no
31603fi
31604rm -f conftest.err conftest.$ac_ext
31605echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31606echo "${ECHO_T}$ac_header_preproc" >&6
31607
31608# So? What about this header?
ac1cb8d3
VS
31609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31610 yes:no: )
a848cd7e
SC
31611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31615 ac_header_preproc=yes
a848cd7e 31616 ;;
ac1cb8d3 31617 no:yes:* )
a848cd7e
SC
31618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31630 (
31631 cat <<\_ASBOX
ac1cb8d3
VS
31632## ----------------------------------------- ##
31633## Report this to wx-dev@lists.wxwidgets.org ##
31634## ----------------------------------------- ##
a848cd7e
SC
31635_ASBOX
31636 ) |
31637 sed "s/^/$as_me: WARNING: /" >&2
31638 ;;
31639esac
31640echo "$as_me:$LINENO: checking for $ac_header" >&5
31641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31642if eval "test \"\${$as_ac_Header+set}\" = set"; then
31643 echo $ECHO_N "(cached) $ECHO_C" >&6
31644else
ac1cb8d3 31645 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31646fi
31647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31649
31650fi
31651if test `eval echo '${'$as_ac_Header'}'` = yes; then
31652 cat >>confdefs.h <<_ACEOF
31653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31654_ACEOF
31655
31656 EXTRALIBS_ESD="-lesd"
31657
31658fi
31659
31660done
31661
31662
31663fi
31664
31665
31666
31667echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31668echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31669cat >conftest.$ac_ext <<_ACEOF
31670/* confdefs.h. */
31671_ACEOF
31672cat confdefs.h >>conftest.$ac_ext
31673cat >>conftest.$ac_ext <<_ACEOF
31674/* end confdefs.h. */
31675#ifdef __linux__
31676 #include <linux/cdrom.h>
31677 #else
31678 /* For Solaris */
31679 #include <sys/cdio.h>
31680 #endif
31681
31682int
31683main ()
31684{
31685struct cdrom_tocentry entry, old_entry;
31686 ;
31687 return 0;
31688}
31689_ACEOF
31690rm -f conftest.$ac_objext
31691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31692 (eval $ac_compile) 2>conftest.er1
a848cd7e 31693 ac_status=$?
ac1cb8d3
VS
31694 grep -v '^ *+' conftest.er1 >conftest.err
31695 rm -f conftest.er1
31696 cat conftest.err >&5
a848cd7e
SC
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } &&
ac1cb8d3
VS
31699 { ac_try='test -z "$ac_c_werror_flag"
31700 || test ! -s conftest.err'
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; } &&
31706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708 (eval $ac_try) 2>&5
31709 ac_status=$?
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; }; then
31712 echo "$as_me:$LINENO: result: yes" >&5
31713echo "${ECHO_T}yes" >&6
31714 cat >>confdefs.h <<\_ACEOF
31715#define HAVE_KNOWN_CDROM_INTERFACE 1
31716_ACEOF
31717
31718else
31719 echo "$as_me: failed program was:" >&5
31720sed 's/^/| /' conftest.$ac_ext >&5
31721
31722echo "$as_me:$LINENO: result: no" >&5
31723echo "${ECHO_T}no" >&6
31724fi
ac1cb8d3 31725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31726
31727
31728cat >confcache <<\_ACEOF
31729# This file is a shell script that caches the results of configure
31730# tests run on this system so they can be shared between configure
31731# scripts and configure runs, see configure's option --config-cache.
31732# It is not useful on other systems. If it contains results you don't
31733# want to keep, you may remove or edit it.
31734#
31735# config.status only pays attention to the cache file if you give it
31736# the --recheck option to rerun configure.
31737#
31738# `ac_cv_env_foo' variables (set or unset) will be overridden when
31739# loading this file, other *unset* `ac_cv_foo' will be assigned the
31740# following values.
31741
31742_ACEOF
31743
31744# The following way of writing the cache mishandles newlines in values,
31745# but we know of no workaround that is simple, portable, and efficient.
31746# So, don't put newlines in cache variables' values.
31747# Ultrix sh set writes to stderr and can't be redirected directly,
31748# and sets the high bit in the cache file unless we assign to the vars.
31749{
31750 (set) 2>&1 |
31751 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31752 *ac_space=\ *)
31753 # `set' does not quote correctly, so add quotes (double-quote
31754 # substitution turns \\\\ into \\, and sed turns \\ into \).
31755 sed -n \
ac1cb8d3
VS
31756 "s/'/'\\\\''/g;
31757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31758 ;;
31759 *)
31760 # `set' quotes correctly as required by POSIX, so do not add quotes.
31761 sed -n \
ac1cb8d3 31762 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31763 ;;
31764 esac;
31765} |
31766 sed '
31767 t clear
31768 : clear
31769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31770 t end
31771 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31772 : end' >>confcache
31773if diff $cache_file confcache >/dev/null 2>&1; then :; else
31774 if test -w $cache_file; then
31775 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31776 cat confcache >$cache_file
31777 else
31778 echo "not updating unwritable cache $cache_file"
31779 fi
31780fi
31781rm -f confcache
31782
31783
31784CPP_MT_FLAG=
31785if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31786
31787
31788 THREADS_LINK=
31789 THREADS_CFLAGS=
31790
31791 if test "$wxUSE_THREADS" = "yes" ; then
31792 if test "$USE_BEOS" = 1; then
31793 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31794echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31795 wxUSE_THREADS="no"
31796 fi
31797 fi
31798
31799 if test "$wxUSE_THREADS" = "yes" ; then
31800
31801
31802 THREAD_OPTS="-pthread"
31803 case "${host}" in
31804 *-*-solaris2* | *-*-sunos4* )
31805 if test "x$GCC" = "xyes"; then
31806 THREAD_OPTS="-pthreads $THREAD_OPTS"
31807 else
31808 THREAD_OPTS="-mt $THREAD_OPTS"
31809 fi
31810 ;;
31811 *-*-freebsd*)
31812 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31813 ;;
31814 *-*-darwin* | *-*-cygwin* )
31815 THREAD_OPTS=""
31816 ;;
31817 *-*-aix*)
31818 THREAD_OPTS="pthreads"
31819 ;;
31820 *-hp-hpux* )
31821 if test "x$GCC" != "xyes"; then
31822 THREAD_OPTS=""
31823 fi
31824 ;;
31825
31826 *-*-irix* )
31827 if test "x$GCC" = "xyes"; then
31828 THREAD_OPTS=""
31829 fi
31830 ;;
31831
31832 *-*-*UnixWare*)
31833 if test "x$GCC" != "xyes"; then
31834 THREAD_OPTS="-Ethread"
31835 fi
31836 ;;
31837 esac
31838
31839 THREAD_OPTS="$THREAD_OPTS pthread none"
31840
31841 THREADS_OK=no
31842 for flag in $THREAD_OPTS; do
31843 case $flag in
31844 none)
31845 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31846echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31847 ;;
31848
31849 -*)
31850 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31851echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31852 THREADS_CFLAGS="$flag"
31853 ;;
31854
31855 *)
31856 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31857echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31858 THREADS_LINK="-l$flag"
31859 ;;
31860 esac
31861
31862 save_LIBS="$LIBS"
31863 save_CFLAGS="$CFLAGS"
31864 LIBS="$THREADS_LINK $LIBS"
31865 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31866
31867 cat >conftest.$ac_ext <<_ACEOF
31868/* confdefs.h. */
31869_ACEOF
31870cat confdefs.h >>conftest.$ac_ext
31871cat >>conftest.$ac_ext <<_ACEOF
31872/* end confdefs.h. */
31873#include <pthread.h>
31874int
31875main ()
31876{
31877pthread_create(0,0,0,0);
31878 ;
31879 return 0;
31880}
31881_ACEOF
31882rm -f conftest.$ac_objext conftest$ac_exeext
31883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31884 (eval $ac_link) 2>conftest.er1
a848cd7e 31885 ac_status=$?
ac1cb8d3
VS
31886 grep -v '^ *+' conftest.er1 >conftest.err
31887 rm -f conftest.er1
31888 cat conftest.err >&5
a848cd7e
SC
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); } &&
ac1cb8d3
VS
31891 { ac_try='test -z "$ac_c_werror_flag"
31892 || test ! -s conftest.err'
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; } &&
31898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900 (eval $ac_try) 2>&5
31901 ac_status=$?
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; }; then
31904 THREADS_OK=yes
31905else
31906 echo "$as_me: failed program was:" >&5
31907sed 's/^/| /' conftest.$ac_ext >&5
31908
31909fi
ac1cb8d3
VS
31910rm -f conftest.err conftest.$ac_objext \
31911 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31912
31913 LIBS="$save_LIBS"
31914 CFLAGS="$save_CFLAGS"
31915
31916 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31917echo "${ECHO_T}$THREADS_OK" >&6
31918 if test "x$THREADS_OK" = "xyes"; then
31919 break;
31920 fi
31921
31922 THREADS_LINK=""
31923 THREADS_CFLAGS=""
31924 done
31925
31926 if test "x$THREADS_OK" != "xyes"; then
31927 wxUSE_THREADS=no
31928 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31929echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31930 else
31931 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31932 LIBS="$THREADS_LINK $LIBS"
31933
31934 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31935echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31936 flag=no
31937 case "${host}" in
31938 *-aix*)
31939 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31940 flag="-D_THREAD_SAFE"
31941 ;;
31942 *-freebsd*)
31943 flag="-D_THREAD_SAFE"
31944 ;;
31945 *-hp-hpux* )
31946 flag="-D_REENTRANT"
31947 if test "x$GCC" != "xyes"; then
31948 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31949
31950 LIBS="$LIBS -lcma"
a848cd7e
SC
31951 fi
31952 ;;
31953 *solaris* | alpha*-osf*)
31954 flag="-D_REENTRANT"
31955 ;;
31956 esac
31957 echo "$as_me:$LINENO: result: ${flag}" >&5
31958echo "${ECHO_T}${flag}" >&6
31959 if test "x$flag" != xno; then
31960 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31961 fi
31962
31963 if test "x$THREADS_CFLAGS" != "x"; then
31964 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31965 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31966 fi
31967 fi
31968 fi
31969
31970 if test "$wxUSE_THREADS" = "yes" ; then
31971
31972for ac_func in thr_setconcurrency
31973do
31974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31975echo "$as_me:$LINENO: checking for $ac_func" >&5
31976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31977if eval "test \"\${$as_ac_var+set}\" = set"; then
31978 echo $ECHO_N "(cached) $ECHO_C" >&6
31979else
31980 cat >conftest.$ac_ext <<_ACEOF
31981/* confdefs.h. */
31982_ACEOF
31983cat confdefs.h >>conftest.$ac_ext
31984cat >>conftest.$ac_ext <<_ACEOF
31985/* end confdefs.h. */
ac1cb8d3
VS
31986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31988#define $ac_func innocuous_$ac_func
31989
a848cd7e
SC
31990/* System header to define __stub macros and hopefully few prototypes,
31991 which can conflict with char $ac_func (); below.
31992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31993 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31994
a848cd7e
SC
31995#ifdef __STDC__
31996# include <limits.h>
31997#else
31998# include <assert.h>
31999#endif
ac1cb8d3
VS
32000
32001#undef $ac_func
32002
a848cd7e
SC
32003/* Override any gcc2 internal prototype to avoid an error. */
32004#ifdef __cplusplus
32005extern "C"
32006{
32007#endif
32008/* We use char because int might match the return type of a gcc2
32009 builtin and then its argument prototype would still apply. */
32010char $ac_func ();
32011/* The GNU C library defines this for functions which it implements
32012 to always fail with ENOSYS. Some functions are actually named
32013 something starting with __ and the normal name is an alias. */
32014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32015choke me
32016#else
32017char (*f) () = $ac_func;
32018#endif
32019#ifdef __cplusplus
32020}
32021#endif
32022
32023int
32024main ()
32025{
32026return f != $ac_func;
32027 ;
32028 return 0;
32029}
32030_ACEOF
32031rm -f conftest.$ac_objext conftest$ac_exeext
32032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32033 (eval $ac_link) 2>conftest.er1
a848cd7e 32034 ac_status=$?
ac1cb8d3
VS
32035 grep -v '^ *+' conftest.er1 >conftest.err
32036 rm -f conftest.er1
32037 cat conftest.err >&5
a848cd7e
SC
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); } &&
ac1cb8d3
VS
32040 { ac_try='test -z "$ac_c_werror_flag"
32041 || test ! -s conftest.err'
32042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32043 (eval $ac_try) 2>&5
32044 ac_status=$?
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); }; } &&
32047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32049 (eval $ac_try) 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; }; then
32053 eval "$as_ac_var=yes"
32054else
32055 echo "$as_me: failed program was:" >&5
32056sed 's/^/| /' conftest.$ac_ext >&5
32057
32058eval "$as_ac_var=no"
32059fi
ac1cb8d3
VS
32060rm -f conftest.err conftest.$ac_objext \
32061 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32062fi
32063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32065if test `eval echo '${'$as_ac_var'}'` = yes; then
32066 cat >>confdefs.h <<_ACEOF
32067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32068_ACEOF
32069
32070fi
32071done
32072
32073
32074
32075for ac_header in sched.h
32076do
32077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32078if eval "test \"\${$as_ac_Header+set}\" = set"; then
32079 echo "$as_me:$LINENO: checking for $ac_header" >&5
32080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32081if eval "test \"\${$as_ac_Header+set}\" = set"; then
32082 echo $ECHO_N "(cached) $ECHO_C" >&6
32083fi
32084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32086else
32087 # Is the header compilable?
32088echo "$as_me:$LINENO: checking $ac_header usability" >&5
32089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32090cat >conftest.$ac_ext <<_ACEOF
32091/* confdefs.h. */
32092_ACEOF
32093cat confdefs.h >>conftest.$ac_ext
32094cat >>conftest.$ac_ext <<_ACEOF
32095/* end confdefs.h. */
32096$ac_includes_default
32097#include <$ac_header>
32098_ACEOF
32099rm -f conftest.$ac_objext
32100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32101 (eval $ac_compile) 2>conftest.er1
a848cd7e 32102 ac_status=$?
ac1cb8d3
VS
32103 grep -v '^ *+' conftest.er1 >conftest.err
32104 rm -f conftest.er1
32105 cat conftest.err >&5
a848cd7e
SC
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); } &&
ac1cb8d3
VS
32108 { ac_try='test -z "$ac_c_werror_flag"
32109 || test ! -s conftest.err'
32110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32111 (eval $ac_try) 2>&5
32112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; } &&
32115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32117 (eval $ac_try) 2>&5
32118 ac_status=$?
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); }; }; then
32121 ac_header_compiler=yes
32122else
32123 echo "$as_me: failed program was:" >&5
32124sed 's/^/| /' conftest.$ac_ext >&5
32125
32126ac_header_compiler=no
32127fi
ac1cb8d3 32128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32130echo "${ECHO_T}$ac_header_compiler" >&6
32131
32132# Is the header present?
32133echo "$as_me:$LINENO: checking $ac_header presence" >&5
32134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32135cat >conftest.$ac_ext <<_ACEOF
32136/* confdefs.h. */
32137_ACEOF
32138cat confdefs.h >>conftest.$ac_ext
32139cat >>conftest.$ac_ext <<_ACEOF
32140/* end confdefs.h. */
32141#include <$ac_header>
32142_ACEOF
32143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32145 ac_status=$?
32146 grep -v '^ *+' conftest.er1 >conftest.err
32147 rm -f conftest.er1
32148 cat conftest.err >&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); } >/dev/null; then
32151 if test -s conftest.err; then
32152 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32154 else
32155 ac_cpp_err=
32156 fi
32157else
32158 ac_cpp_err=yes
32159fi
32160if test -z "$ac_cpp_err"; then
32161 ac_header_preproc=yes
32162else
32163 echo "$as_me: failed program was:" >&5
32164sed 's/^/| /' conftest.$ac_ext >&5
32165
32166 ac_header_preproc=no
32167fi
32168rm -f conftest.err conftest.$ac_ext
32169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32170echo "${ECHO_T}$ac_header_preproc" >&6
32171
32172# So? What about this header?
ac1cb8d3
VS
32173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32174 yes:no: )
a848cd7e
SC
32175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32179 ac_header_preproc=yes
a848cd7e 32180 ;;
ac1cb8d3 32181 no:yes:* )
a848cd7e
SC
32182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32194 (
32195 cat <<\_ASBOX
ac1cb8d3
VS
32196## ----------------------------------------- ##
32197## Report this to wx-dev@lists.wxwidgets.org ##
32198## ----------------------------------------- ##
a848cd7e
SC
32199_ASBOX
32200 ) |
32201 sed "s/^/$as_me: WARNING: /" >&2
32202 ;;
32203esac
32204echo "$as_me:$LINENO: checking for $ac_header" >&5
32205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32206if eval "test \"\${$as_ac_Header+set}\" = set"; then
32207 echo $ECHO_N "(cached) $ECHO_C" >&6
32208else
ac1cb8d3 32209 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32210fi
32211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32213
32214fi
32215if test `eval echo '${'$as_ac_Header'}'` = yes; then
32216 cat >>confdefs.h <<_ACEOF
32217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32218_ACEOF
32219
32220fi
32221
32222done
32223
32224 if test "$ac_cv_header_sched_h" = "yes"; then
32225 echo "$as_me:$LINENO: checking for sched_yield" >&5
32226echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32227if test "${ac_cv_func_sched_yield+set}" = set; then
32228 echo $ECHO_N "(cached) $ECHO_C" >&6
32229else
32230 cat >conftest.$ac_ext <<_ACEOF
32231/* confdefs.h. */
32232_ACEOF
32233cat confdefs.h >>conftest.$ac_ext
32234cat >>conftest.$ac_ext <<_ACEOF
32235/* end confdefs.h. */
ac1cb8d3
VS
32236/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32238#define sched_yield innocuous_sched_yield
32239
a848cd7e
SC
32240/* System header to define __stub macros and hopefully few prototypes,
32241 which can conflict with char sched_yield (); below.
32242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32243 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32244
a848cd7e
SC
32245#ifdef __STDC__
32246# include <limits.h>
32247#else
32248# include <assert.h>
32249#endif
ac1cb8d3
VS
32250
32251#undef sched_yield
32252
a848cd7e
SC
32253/* Override any gcc2 internal prototype to avoid an error. */
32254#ifdef __cplusplus
32255extern "C"
32256{
32257#endif
32258/* We use char because int might match the return type of a gcc2
32259 builtin and then its argument prototype would still apply. */
32260char sched_yield ();
32261/* The GNU C library defines this for functions which it implements
32262 to always fail with ENOSYS. Some functions are actually named
32263 something starting with __ and the normal name is an alias. */
32264#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32265choke me
32266#else
32267char (*f) () = sched_yield;
32268#endif
32269#ifdef __cplusplus
32270}
32271#endif
32272
32273int
32274main ()
32275{
32276return f != sched_yield;
32277 ;
32278 return 0;
32279}
32280_ACEOF
32281rm -f conftest.$ac_objext conftest$ac_exeext
32282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32283 (eval $ac_link) 2>conftest.er1
a848cd7e 32284 ac_status=$?
ac1cb8d3
VS
32285 grep -v '^ *+' conftest.er1 >conftest.err
32286 rm -f conftest.er1
32287 cat conftest.err >&5
a848cd7e
SC
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); } &&
ac1cb8d3
VS
32290 { ac_try='test -z "$ac_c_werror_flag"
32291 || test ! -s conftest.err'
32292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32293 (eval $ac_try) 2>&5
32294 ac_status=$?
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); }; } &&
32297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32299 (eval $ac_try) 2>&5
32300 ac_status=$?
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; }; then
32303 ac_cv_func_sched_yield=yes
32304else
32305 echo "$as_me: failed program was:" >&5
32306sed 's/^/| /' conftest.$ac_ext >&5
32307
32308ac_cv_func_sched_yield=no
32309fi
ac1cb8d3
VS
32310rm -f conftest.err conftest.$ac_objext \
32311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32312fi
32313echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32314echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32315if test $ac_cv_func_sched_yield = yes; then
32316 cat >>confdefs.h <<\_ACEOF
32317#define HAVE_SCHED_YIELD 1
32318_ACEOF
32319
32320else
32321
32322 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32323echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32324if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32325 echo $ECHO_N "(cached) $ECHO_C" >&6
32326else
32327 ac_check_lib_save_LIBS=$LIBS
32328LIBS="-lposix4 $LIBS"
32329cat >conftest.$ac_ext <<_ACEOF
32330/* confdefs.h. */
32331_ACEOF
32332cat confdefs.h >>conftest.$ac_ext
32333cat >>conftest.$ac_ext <<_ACEOF
32334/* end confdefs.h. */
32335
32336/* Override any gcc2 internal prototype to avoid an error. */
32337#ifdef __cplusplus
32338extern "C"
32339#endif
32340/* We use char because int might match the return type of a gcc2
32341 builtin and then its argument prototype would still apply. */
32342char sched_yield ();
32343int
32344main ()
32345{
32346sched_yield ();
32347 ;
32348 return 0;
32349}
32350_ACEOF
32351rm -f conftest.$ac_objext conftest$ac_exeext
32352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32353 (eval $ac_link) 2>conftest.er1
a848cd7e 32354 ac_status=$?
ac1cb8d3
VS
32355 grep -v '^ *+' conftest.er1 >conftest.err
32356 rm -f conftest.er1
32357 cat conftest.err >&5
a848cd7e
SC
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); } &&
ac1cb8d3
VS
32360 { ac_try='test -z "$ac_c_werror_flag"
32361 || test ! -s conftest.err'
32362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32363 (eval $ac_try) 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369 (eval $ac_try) 2>&5
32370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; }; then
32373 ac_cv_lib_posix4_sched_yield=yes
32374else
32375 echo "$as_me: failed program was:" >&5
32376sed 's/^/| /' conftest.$ac_ext >&5
32377
32378ac_cv_lib_posix4_sched_yield=no
32379fi
ac1cb8d3
VS
32380rm -f conftest.err conftest.$ac_objext \
32381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32382LIBS=$ac_check_lib_save_LIBS
32383fi
32384echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32385echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32386if test $ac_cv_lib_posix4_sched_yield = yes; then
32387 cat >>confdefs.h <<\_ACEOF
32388#define HAVE_SCHED_YIELD 1
32389_ACEOF
32390 POSIX4_LINK=" -lposix4"
32391else
32392 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32393echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32394
32395fi
32396
32397
32398
32399fi
32400
32401 fi
32402
32403 HAVE_PRIOR_FUNCS=0
32404 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32405echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32406if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32408else
32409 cat >conftest.$ac_ext <<_ACEOF
32410/* confdefs.h. */
32411_ACEOF
32412cat confdefs.h >>conftest.$ac_ext
32413cat >>conftest.$ac_ext <<_ACEOF
32414/* end confdefs.h. */
ac1cb8d3
VS
32415/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32417#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32418
a848cd7e
SC
32419/* System header to define __stub macros and hopefully few prototypes,
32420 which can conflict with char pthread_attr_getschedpolicy (); below.
32421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32422 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32423
a848cd7e
SC
32424#ifdef __STDC__
32425# include <limits.h>
32426#else
32427# include <assert.h>
32428#endif
ac1cb8d3
VS
32429
32430#undef pthread_attr_getschedpolicy
32431
a848cd7e
SC
32432/* Override any gcc2 internal prototype to avoid an error. */
32433#ifdef __cplusplus
32434extern "C"
32435{
32436#endif
32437/* We use char because int might match the return type of a gcc2
32438 builtin and then its argument prototype would still apply. */
32439char pthread_attr_getschedpolicy ();
32440/* The GNU C library defines this for functions which it implements
32441 to always fail with ENOSYS. Some functions are actually named
32442 something starting with __ and the normal name is an alias. */
32443#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32444choke me
32445#else
32446char (*f) () = pthread_attr_getschedpolicy;
32447#endif
32448#ifdef __cplusplus
32449}
32450#endif
32451
32452int
32453main ()
32454{
32455return f != pthread_attr_getschedpolicy;
32456 ;
32457 return 0;
32458}
32459_ACEOF
32460rm -f conftest.$ac_objext conftest$ac_exeext
32461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32462 (eval $ac_link) 2>conftest.er1
a848cd7e 32463 ac_status=$?
ac1cb8d3
VS
32464 grep -v '^ *+' conftest.er1 >conftest.err
32465 rm -f conftest.er1
32466 cat conftest.err >&5
a848cd7e
SC
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); } &&
ac1cb8d3
VS
32469 { ac_try='test -z "$ac_c_werror_flag"
32470 || test ! -s conftest.err'
32471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32472 (eval $ac_try) 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; } &&
32476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478 (eval $ac_try) 2>&5
32479 ac_status=$?
32480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481 (exit $ac_status); }; }; then
32482 ac_cv_func_pthread_attr_getschedpolicy=yes
32483else
32484 echo "$as_me: failed program was:" >&5
32485sed 's/^/| /' conftest.$ac_ext >&5
32486
32487ac_cv_func_pthread_attr_getschedpolicy=no
32488fi
ac1cb8d3
VS
32489rm -f conftest.err conftest.$ac_objext \
32490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32491fi
32492echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32493echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32494if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32495 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32496echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32497if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32498 echo $ECHO_N "(cached) $ECHO_C" >&6
32499else
32500 cat >conftest.$ac_ext <<_ACEOF
32501/* confdefs.h. */
32502_ACEOF
32503cat confdefs.h >>conftest.$ac_ext
32504cat >>conftest.$ac_ext <<_ACEOF
32505/* end confdefs.h. */
ac1cb8d3
VS
32506/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32508#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32509
a848cd7e
SC
32510/* System header to define __stub macros and hopefully few prototypes,
32511 which can conflict with char pthread_attr_setschedparam (); below.
32512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32513 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32514
a848cd7e
SC
32515#ifdef __STDC__
32516# include <limits.h>
32517#else
32518# include <assert.h>
32519#endif
ac1cb8d3
VS
32520
32521#undef pthread_attr_setschedparam
32522
a848cd7e
SC
32523/* Override any gcc2 internal prototype to avoid an error. */
32524#ifdef __cplusplus
32525extern "C"
32526{
32527#endif
32528/* We use char because int might match the return type of a gcc2
32529 builtin and then its argument prototype would still apply. */
32530char pthread_attr_setschedparam ();
32531/* The GNU C library defines this for functions which it implements
32532 to always fail with ENOSYS. Some functions are actually named
32533 something starting with __ and the normal name is an alias. */
32534#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32535choke me
32536#else
32537char (*f) () = pthread_attr_setschedparam;
32538#endif
32539#ifdef __cplusplus
32540}
32541#endif
32542
32543int
32544main ()
32545{
32546return f != pthread_attr_setschedparam;
32547 ;
32548 return 0;
32549}
32550_ACEOF
32551rm -f conftest.$ac_objext conftest$ac_exeext
32552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32553 (eval $ac_link) 2>conftest.er1
a848cd7e 32554 ac_status=$?
ac1cb8d3
VS
32555 grep -v '^ *+' conftest.er1 >conftest.err
32556 rm -f conftest.er1
32557 cat conftest.err >&5
a848cd7e
SC
32558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559 (exit $ac_status); } &&
ac1cb8d3
VS
32560 { ac_try='test -z "$ac_c_werror_flag"
32561 || test ! -s conftest.err'
32562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32563 (eval $ac_try) 2>&5
32564 ac_status=$?
32565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32566 (exit $ac_status); }; } &&
32567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32569 (eval $ac_try) 2>&5
32570 ac_status=$?
32571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32572 (exit $ac_status); }; }; then
32573 ac_cv_func_pthread_attr_setschedparam=yes
32574else
32575 echo "$as_me: failed program was:" >&5
32576sed 's/^/| /' conftest.$ac_ext >&5
32577
32578ac_cv_func_pthread_attr_setschedparam=no
32579fi
ac1cb8d3
VS
32580rm -f conftest.err conftest.$ac_objext \
32581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32582fi
32583echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32584echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32585if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32586 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32587echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32588if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32589 echo $ECHO_N "(cached) $ECHO_C" >&6
32590else
32591 cat >conftest.$ac_ext <<_ACEOF
32592/* confdefs.h. */
32593_ACEOF
32594cat confdefs.h >>conftest.$ac_ext
32595cat >>conftest.$ac_ext <<_ACEOF
32596/* end confdefs.h. */
ac1cb8d3
VS
32597/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32599#define sched_get_priority_max innocuous_sched_get_priority_max
32600
a848cd7e
SC
32601/* System header to define __stub macros and hopefully few prototypes,
32602 which can conflict with char sched_get_priority_max (); below.
32603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32604 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32605
a848cd7e
SC
32606#ifdef __STDC__
32607# include <limits.h>
32608#else
32609# include <assert.h>
32610#endif
ac1cb8d3
VS
32611
32612#undef sched_get_priority_max
32613
a848cd7e
SC
32614/* Override any gcc2 internal prototype to avoid an error. */
32615#ifdef __cplusplus
32616extern "C"
32617{
32618#endif
32619/* We use char because int might match the return type of a gcc2
32620 builtin and then its argument prototype would still apply. */
32621char sched_get_priority_max ();
32622/* The GNU C library defines this for functions which it implements
32623 to always fail with ENOSYS. Some functions are actually named
32624 something starting with __ and the normal name is an alias. */
32625#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32626choke me
32627#else
32628char (*f) () = sched_get_priority_max;
32629#endif
32630#ifdef __cplusplus
32631}
32632#endif
32633
32634int
32635main ()
32636{
32637return f != sched_get_priority_max;
32638 ;
32639 return 0;
32640}
32641_ACEOF
32642rm -f conftest.$ac_objext conftest$ac_exeext
32643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32644 (eval $ac_link) 2>conftest.er1
a848cd7e 32645 ac_status=$?
ac1cb8d3
VS
32646 grep -v '^ *+' conftest.er1 >conftest.err
32647 rm -f conftest.er1
32648 cat conftest.err >&5
a848cd7e
SC
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); } &&
ac1cb8d3
VS
32651 { ac_try='test -z "$ac_c_werror_flag"
32652 || test ! -s conftest.err'
32653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654 (eval $ac_try) 2>&5
32655 ac_status=$?
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); }; } &&
32658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32660 (eval $ac_try) 2>&5
32661 ac_status=$?
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); }; }; then
32664 ac_cv_func_sched_get_priority_max=yes
32665else
32666 echo "$as_me: failed program was:" >&5
32667sed 's/^/| /' conftest.$ac_ext >&5
32668
32669ac_cv_func_sched_get_priority_max=no
32670fi
ac1cb8d3
VS
32671rm -f conftest.err conftest.$ac_objext \
32672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32673fi
32674echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32675echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32676if test $ac_cv_func_sched_get_priority_max = yes; then
32677 HAVE_PRIOR_FUNCS=1
32678else
32679 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32680echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32681if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32682 echo $ECHO_N "(cached) $ECHO_C" >&6
32683else
32684 ac_check_lib_save_LIBS=$LIBS
32685LIBS="-lposix4 $LIBS"
32686cat >conftest.$ac_ext <<_ACEOF
32687/* confdefs.h. */
32688_ACEOF
32689cat confdefs.h >>conftest.$ac_ext
32690cat >>conftest.$ac_ext <<_ACEOF
32691/* end confdefs.h. */
32692
32693/* Override any gcc2 internal prototype to avoid an error. */
32694#ifdef __cplusplus
32695extern "C"
32696#endif
32697/* We use char because int might match the return type of a gcc2
32698 builtin and then its argument prototype would still apply. */
32699char sched_get_priority_max ();
32700int
32701main ()
32702{
32703sched_get_priority_max ();
32704 ;
32705 return 0;
32706}
32707_ACEOF
32708rm -f conftest.$ac_objext conftest$ac_exeext
32709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32710 (eval $ac_link) 2>conftest.er1
a848cd7e 32711 ac_status=$?
ac1cb8d3
VS
32712 grep -v '^ *+' conftest.er1 >conftest.err
32713 rm -f conftest.er1
32714 cat conftest.err >&5
a848cd7e
SC
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); } &&
ac1cb8d3
VS
32717 { ac_try='test -z "$ac_c_werror_flag"
32718 || test ! -s conftest.err'
32719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720 (eval $ac_try) 2>&5
32721 ac_status=$?
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); }; } &&
32724 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32726 (eval $ac_try) 2>&5
32727 ac_status=$?
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; }; then
32730 ac_cv_lib_posix4_sched_get_priority_max=yes
32731else
32732 echo "$as_me: failed program was:" >&5
32733sed 's/^/| /' conftest.$ac_ext >&5
32734
32735ac_cv_lib_posix4_sched_get_priority_max=no
32736fi
ac1cb8d3
VS
32737rm -f conftest.err conftest.$ac_objext \
32738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32739LIBS=$ac_check_lib_save_LIBS
32740fi
32741echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32742echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32743if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32744
32745 HAVE_PRIOR_FUNCS=1
32746 POSIX4_LINK=" -lposix4"
32747
32748fi
32749
32750
32751fi
32752
32753
32754fi
32755
32756
32757fi
32758
32759
32760 if test "$HAVE_PRIOR_FUNCS" = 1; then
32761 cat >>confdefs.h <<\_ACEOF
32762#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32763_ACEOF
32764
32765 else
32766 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32767echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32768 fi
32769
32770 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32771echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32772if test "${ac_cv_func_pthread_cancel+set}" = set; then
32773 echo $ECHO_N "(cached) $ECHO_C" >&6
32774else
32775 cat >conftest.$ac_ext <<_ACEOF
32776/* confdefs.h. */
32777_ACEOF
32778cat confdefs.h >>conftest.$ac_ext
32779cat >>conftest.$ac_ext <<_ACEOF
32780/* end confdefs.h. */
ac1cb8d3
VS
32781/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32783#define pthread_cancel innocuous_pthread_cancel
32784
a848cd7e
SC
32785/* System header to define __stub macros and hopefully few prototypes,
32786 which can conflict with char pthread_cancel (); below.
32787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32788 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32789
a848cd7e
SC
32790#ifdef __STDC__
32791# include <limits.h>
32792#else
32793# include <assert.h>
32794#endif
ac1cb8d3
VS
32795
32796#undef pthread_cancel
32797
a848cd7e
SC
32798/* Override any gcc2 internal prototype to avoid an error. */
32799#ifdef __cplusplus
32800extern "C"
32801{
32802#endif
32803/* We use char because int might match the return type of a gcc2
32804 builtin and then its argument prototype would still apply. */
32805char pthread_cancel ();
32806/* The GNU C library defines this for functions which it implements
32807 to always fail with ENOSYS. Some functions are actually named
32808 something starting with __ and the normal name is an alias. */
32809#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32810choke me
32811#else
32812char (*f) () = pthread_cancel;
32813#endif
32814#ifdef __cplusplus
32815}
32816#endif
32817
32818int
32819main ()
32820{
32821return f != pthread_cancel;
32822 ;
32823 return 0;
32824}
32825_ACEOF
32826rm -f conftest.$ac_objext conftest$ac_exeext
32827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32828 (eval $ac_link) 2>conftest.er1
a848cd7e 32829 ac_status=$?
ac1cb8d3
VS
32830 grep -v '^ *+' conftest.er1 >conftest.err
32831 rm -f conftest.er1
32832 cat conftest.err >&5
a848cd7e
SC
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); } &&
ac1cb8d3
VS
32835 { ac_try='test -z "$ac_c_werror_flag"
32836 || test ! -s conftest.err'
32837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838 (eval $ac_try) 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844 (eval $ac_try) 2>&5
32845 ac_status=$?
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); }; }; then
32848 ac_cv_func_pthread_cancel=yes
32849else
32850 echo "$as_me: failed program was:" >&5
32851sed 's/^/| /' conftest.$ac_ext >&5
32852
32853ac_cv_func_pthread_cancel=no
32854fi
ac1cb8d3
VS
32855rm -f conftest.err conftest.$ac_objext \
32856 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32857fi
32858echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32859echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32860if test $ac_cv_func_pthread_cancel = yes; then
32861 cat >>confdefs.h <<\_ACEOF
32862#define HAVE_PTHREAD_CANCEL 1
32863_ACEOF
32864
32865else
32866 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32867echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32868fi
32869
32870
32871
32872
32873 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32874echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32875if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32876 echo $ECHO_N "(cached) $ECHO_C" >&6
32877else
32878
32879 cat >conftest.$ac_ext <<_ACEOF
32880/* confdefs.h. */
32881_ACEOF
32882cat confdefs.h >>conftest.$ac_ext
32883cat >>conftest.$ac_ext <<_ACEOF
32884/* end confdefs.h. */
32885#include <pthread.h>
32886int
32887main ()
32888{
32889
32890 pthread_mutexattr_t attr;
32891 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32892
32893 ;
32894 return 0;
32895}
32896_ACEOF
32897rm -f conftest.$ac_objext
32898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32899 (eval $ac_compile) 2>conftest.er1
a848cd7e 32900 ac_status=$?
ac1cb8d3
VS
32901 grep -v '^ *+' conftest.er1 >conftest.err
32902 rm -f conftest.er1
32903 cat conftest.err >&5
a848cd7e
SC
32904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32905 (exit $ac_status); } &&
ac1cb8d3
VS
32906 { ac_try='test -z "$ac_c_werror_flag"
32907 || test ! -s conftest.err'
32908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32909 (eval $ac_try) 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; } &&
32913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32915 (eval $ac_try) 2>&5
32916 ac_status=$?
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); }; }; then
32919
32920 wx_cv_type_pthread_mutexattr_t=yes
32921
32922else
32923 echo "$as_me: failed program was:" >&5
32924sed 's/^/| /' conftest.$ac_ext >&5
32925
32926
32927 wx_cv_type_pthread_mutexattr_t=no
32928
32929
32930fi
ac1cb8d3 32931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32932
32933fi
32934echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32935echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32936
32937 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32938 cat >>confdefs.h <<\_ACEOF
32939#define HAVE_PTHREAD_MUTEXATTR_T 1
32940_ACEOF
32941
32942 else
32943 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32944echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32945if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32946 echo $ECHO_N "(cached) $ECHO_C" >&6
32947else
32948
32949 cat >conftest.$ac_ext <<_ACEOF
32950/* confdefs.h. */
32951_ACEOF
32952cat confdefs.h >>conftest.$ac_ext
32953cat >>conftest.$ac_ext <<_ACEOF
32954/* end confdefs.h. */
32955#include <pthread.h>
32956int
32957main ()
32958{
32959
32960 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32961
32962 ;
32963 return 0;
32964}
32965_ACEOF
32966rm -f conftest.$ac_objext
32967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32968 (eval $ac_compile) 2>conftest.er1
a848cd7e 32969 ac_status=$?
ac1cb8d3
VS
32970 grep -v '^ *+' conftest.er1 >conftest.err
32971 rm -f conftest.er1
32972 cat conftest.err >&5
a848cd7e
SC
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); } &&
ac1cb8d3
VS
32975 { ac_try='test -z "$ac_c_werror_flag"
32976 || test ! -s conftest.err'
32977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32978 (eval $ac_try) 2>&5
32979 ac_status=$?
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); }; } &&
32982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32984 (eval $ac_try) 2>&5
32985 ac_status=$?
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987 (exit $ac_status); }; }; then
32988
32989 wx_cv_type_pthread_rec_mutex_init=yes
32990
32991else
32992 echo "$as_me: failed program was:" >&5
32993sed 's/^/| /' conftest.$ac_ext >&5
32994
32995
32996 wx_cv_type_pthread_rec_mutex_init=no
32997
32998
32999fi
ac1cb8d3 33000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33001
33002fi
33003echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33004echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33005 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33006 cat >>confdefs.h <<\_ACEOF
33007#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33008_ACEOF
33009
33010 else
33011 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33012echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33013 fi
33014 fi
33015 fi
33016
33017else
33018 if test "$wxUSE_THREADS" = "yes" ; then
33019 case "${host}" in
33020 *-*-mingw32* )
33021 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33022echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33023if test "${wx_cv_cflags_mthread+set}" = set; then
33024 echo $ECHO_N "(cached) $ECHO_C" >&6
33025else
33026
33027 CFLAGS_OLD="$CFLAGS"
33028 CFLAGS="$CFLAGS -mthreads"
33029 cat >conftest.$ac_ext <<_ACEOF
33030/* confdefs.h. */
33031_ACEOF
33032cat confdefs.h >>conftest.$ac_ext
33033cat >>conftest.$ac_ext <<_ACEOF
33034/* end confdefs.h. */
33035
33036int
33037main ()
33038{
33039
33040 ;
33041 return 0;
33042}
33043_ACEOF
33044rm -f conftest.$ac_objext
33045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33046 (eval $ac_compile) 2>conftest.er1
a848cd7e 33047 ac_status=$?
ac1cb8d3
VS
33048 grep -v '^ *+' conftest.er1 >conftest.err
33049 rm -f conftest.er1
33050 cat conftest.err >&5
a848cd7e
SC
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); } &&
ac1cb8d3
VS
33053 { ac_try='test -z "$ac_c_werror_flag"
33054 || test ! -s conftest.err'
33055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056 (eval $ac_try) 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; } &&
33060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33062 (eval $ac_try) 2>&5
33063 ac_status=$?
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); }; }; then
33066 wx_cv_cflags_mthread=yes
33067else
33068 echo "$as_me: failed program was:" >&5
33069sed 's/^/| /' conftest.$ac_ext >&5
33070
33071wx_cv_cflags_mthread=no
33072
33073fi
ac1cb8d3 33074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33075
33076
33077fi
33078echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33079echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33080
33081 if test "$wx_cv_cflags_mthread" = "yes"; then
33082 CXXFLAGS="$CXXFLAGS -mthreads"
33083 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33084 LDFLAGS="$LDFLAGS -mthreads"
33085 else
33086 CFLAGS="$CFLAGS_OLD"
33087 fi
33088 ;;
33089 *-pc-os2*emx )
33090 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33091 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33092 LDFLAGS="$LDFLAGS -Zmt"
33093 ;;
33094 esac
33095 fi
33096fi
33097
33098if test "$wxUSE_THREADS" = "yes"; then
33099 cat >>confdefs.h <<\_ACEOF
33100#define wxUSE_THREADS 1
33101_ACEOF
33102
33103
33104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33105else
33106 if test "$ac_cv_func_strtok_r" = "yes"; then
33107 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33108echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33109 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33110 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33111 echo "$as_me:$LINENO: result: yes" >&5
33112echo "${ECHO_T}yes" >&6
33113 else
33114 echo "$as_me:$LINENO: result: no" >&5
33115echo "${ECHO_T}no" >&6
33116 fi
33117 fi
33118fi
33119
33120if test "$WXGTK20" = 1 ; then
33121 cat >>confdefs.h <<_ACEOF
33122#define __WXGTK20__ $WXGTK20
33123_ACEOF
33124
33125 WXGTK12=1
33126fi
33127
33128if test "$WXGTK12" = 1 ; then
33129 cat >>confdefs.h <<_ACEOF
33130#define __WXGTK12__ $WXGTK12
33131_ACEOF
33132
33133fi
33134
33135if test "$WXGTK127" = 1 ; then
33136 cat >>confdefs.h <<_ACEOF
33137#define __WXGTK127__ $WXGTK127
33138_ACEOF
33139
33140fi
33141
33142if test "$WXGPE" = 1 ; then
33143 cat >>confdefs.h <<_ACEOF
33144#define __WXGPE__ $WXGPE
33145_ACEOF
33146
33147fi
33148
33149WXDEBUG=
33150
33151if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33152 WXDEBUG="-g"
33153 wxUSE_OPTIMISE=no
33154fi
33155
33156if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33157 wxUSE_DEBUG_INFO=yes
33158 WXDEBUG="-ggdb"
33159fi
33160
33161if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33162 cat >>confdefs.h <<\_ACEOF
33163#define WXDEBUG 1
33164_ACEOF
33165
33166 WXDEBUG_DEFINE="-D__WXDEBUG__"
33167else
33168 if test "$wxUSE_GTK" = 1 ; then
33169 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33170 fi
33171fi
33172
33173if test "$wxUSE_MEM_TRACING" = "yes" ; then
33174 cat >>confdefs.h <<\_ACEOF
33175#define wxUSE_MEMORY_TRACING 1
33176_ACEOF
33177
33178 cat >>confdefs.h <<\_ACEOF
33179#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33180_ACEOF
33181
33182 cat >>confdefs.h <<\_ACEOF
33183#define wxUSE_DEBUG_NEW_ALWAYS 1
33184_ACEOF
33185
33186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33187fi
33188
33189if test "$wxUSE_DMALLOC" = "yes" ; then
33190 DMALLOC_LIBS="-ldmalloc"
33191fi
33192
33193PROFILE=
33194if test "$wxUSE_PROFILE" = "yes" ; then
33195 PROFILE=" -pg"
33196fi
33197
33198CODE_GEN_FLAGS=
33199CODE_GEN_FLAGS_CXX=
33200if test "$GCC" = "yes" ; then
33201 if test "$wxUSE_NO_RTTI" = "yes" ; then
33202 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33203 fi
33204 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33205 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33206 fi
33207 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33208 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33209 fi
33210
33211 case "${host}" in
33212 powerpc*-*-aix* )
33213 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33214 ;;
33215 *-hppa* )
33216 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33217 ;;
33218 esac
33219fi
33220
33221OPTIMISE=
33222if test "$wxUSE_OPTIMISE" = "no" ; then
33223 if test "$GCC" = yes ; then
33224 OPTIMISE="-O0"
33225 fi
33226else
33227 if test "$GCC" = yes ; then
33228 OPTIMISE="-O2"
33229
33230 case "${host}" in
33231 i586-*-*|i686-*-* )
33232 OPTIMISE="${OPTIMISE} "
33233 ;;
33234 esac
33235 else
33236 OPTIMISE="-O"
33237 fi
33238fi
33239
33240
33241if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33242 cat >>confdefs.h <<\_ACEOF
33243#define WXWIN_COMPATIBILITY_2_2 1
33244_ACEOF
33245
33246
33247 WXWIN_COMPATIBILITY_2_4="yes"
33248fi
33249
33250if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33251 cat >>confdefs.h <<\_ACEOF
33252#define WXWIN_COMPATIBILITY_2_4 1
33253_ACEOF
33254
33255fi
33256
33257
33258if test "$wxUSE_GUI" = "yes"; then
33259 cat >>confdefs.h <<\_ACEOF
33260#define wxUSE_GUI 1
33261_ACEOF
33262
33263
33264 else
33265 cat >>confdefs.h <<\_ACEOF
33266#define wxUSE_NOGUI 1
33267_ACEOF
33268
33269fi
33270
33271
33272if test "$wxUSE_UNIX" = "yes"; then
33273 cat >>confdefs.h <<\_ACEOF
33274#define wxUSE_UNIX 1
33275_ACEOF
33276
33277fi
33278
33279
33280if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33281
33282 HAVE_DL_FUNCS=0
33283 HAVE_SHL_FUNCS=0
33284 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33285 if test "$USE_DARWIN" = 1; then
33286 HAVE_DL_FUNCS=1
33287 else
33288
33289for ac_func in dlopen
33290do
33291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33292echo "$as_me:$LINENO: checking for $ac_func" >&5
33293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33294if eval "test \"\${$as_ac_var+set}\" = set"; then
33295 echo $ECHO_N "(cached) $ECHO_C" >&6
33296else
33297 cat >conftest.$ac_ext <<_ACEOF
33298/* confdefs.h. */
33299_ACEOF
33300cat confdefs.h >>conftest.$ac_ext
33301cat >>conftest.$ac_ext <<_ACEOF
33302/* end confdefs.h. */
ac1cb8d3
VS
33303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33305#define $ac_func innocuous_$ac_func
33306
a848cd7e
SC
33307/* System header to define __stub macros and hopefully few prototypes,
33308 which can conflict with char $ac_func (); below.
33309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33310 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33311
a848cd7e
SC
33312#ifdef __STDC__
33313# include <limits.h>
33314#else
33315# include <assert.h>
33316#endif
ac1cb8d3
VS
33317
33318#undef $ac_func
33319
a848cd7e
SC
33320/* Override any gcc2 internal prototype to avoid an error. */
33321#ifdef __cplusplus
33322extern "C"
33323{
33324#endif
33325/* We use char because int might match the return type of a gcc2
33326 builtin and then its argument prototype would still apply. */
33327char $ac_func ();
33328/* The GNU C library defines this for functions which it implements
33329 to always fail with ENOSYS. Some functions are actually named
33330 something starting with __ and the normal name is an alias. */
33331#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33332choke me
33333#else
33334char (*f) () = $ac_func;
33335#endif
33336#ifdef __cplusplus
33337}
33338#endif
33339
33340int
33341main ()
33342{
33343return f != $ac_func;
33344 ;
33345 return 0;
33346}
33347_ACEOF
33348rm -f conftest.$ac_objext conftest$ac_exeext
33349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33350 (eval $ac_link) 2>conftest.er1
a848cd7e 33351 ac_status=$?
ac1cb8d3
VS
33352 grep -v '^ *+' conftest.er1 >conftest.err
33353 rm -f conftest.er1
33354 cat conftest.err >&5
a848cd7e
SC
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } &&
ac1cb8d3
VS
33357 { ac_try='test -z "$ac_c_werror_flag"
33358 || test ! -s conftest.err'
33359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33360 (eval $ac_try) 2>&5
33361 ac_status=$?
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); }; } &&
33364 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366 (eval $ac_try) 2>&5
33367 ac_status=$?
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; }; then
33370 eval "$as_ac_var=yes"
33371else
33372 echo "$as_me: failed program was:" >&5
33373sed 's/^/| /' conftest.$ac_ext >&5
33374
33375eval "$as_ac_var=no"
33376fi
ac1cb8d3
VS
33377rm -f conftest.err conftest.$ac_objext \
33378 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33379fi
33380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33382if test `eval echo '${'$as_ac_var'}'` = yes; then
33383 cat >>confdefs.h <<_ACEOF
33384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33385_ACEOF
33386
33387 cat >>confdefs.h <<\_ACEOF
33388#define HAVE_DLOPEN 1
33389_ACEOF
33390
33391 HAVE_DL_FUNCS=1
33392
33393else
33394
33395 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33396echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33397if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33398 echo $ECHO_N "(cached) $ECHO_C" >&6
33399else
33400 ac_check_lib_save_LIBS=$LIBS
33401LIBS="-ldl $LIBS"
33402cat >conftest.$ac_ext <<_ACEOF
33403/* confdefs.h. */
33404_ACEOF
33405cat confdefs.h >>conftest.$ac_ext
33406cat >>conftest.$ac_ext <<_ACEOF
33407/* end confdefs.h. */
33408
33409/* Override any gcc2 internal prototype to avoid an error. */
33410#ifdef __cplusplus
33411extern "C"
33412#endif
33413/* We use char because int might match the return type of a gcc2
33414 builtin and then its argument prototype would still apply. */
33415char dlopen ();
33416int
33417main ()
33418{
33419dlopen ();
33420 ;
33421 return 0;
33422}
33423_ACEOF
33424rm -f conftest.$ac_objext conftest$ac_exeext
33425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33426 (eval $ac_link) 2>conftest.er1
a848cd7e 33427 ac_status=$?
ac1cb8d3
VS
33428 grep -v '^ *+' conftest.er1 >conftest.err
33429 rm -f conftest.er1
33430 cat conftest.err >&5
a848cd7e
SC
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); } &&
ac1cb8d3
VS
33433 { ac_try='test -z "$ac_c_werror_flag"
33434 || test ! -s conftest.err'
33435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33436 (eval $ac_try) 2>&5
33437 ac_status=$?
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; } &&
33440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33442 (eval $ac_try) 2>&5
33443 ac_status=$?
33444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445 (exit $ac_status); }; }; then
33446 ac_cv_lib_dl_dlopen=yes
33447else
33448 echo "$as_me: failed program was:" >&5
33449sed 's/^/| /' conftest.$ac_ext >&5
33450
33451ac_cv_lib_dl_dlopen=no
33452fi
ac1cb8d3
VS
33453rm -f conftest.err conftest.$ac_objext \
33454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33455LIBS=$ac_check_lib_save_LIBS
33456fi
33457echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33458echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33459if test $ac_cv_lib_dl_dlopen = yes; then
33460
33461 cat >>confdefs.h <<\_ACEOF
33462#define HAVE_DLOPEN 1
33463_ACEOF
33464
33465 HAVE_DL_FUNCS=1
33466 DL_LINK=" -ldl$DL_LINK"
33467
33468else
33469
33470
33471for ac_func in shl_load
33472do
33473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33474echo "$as_me:$LINENO: checking for $ac_func" >&5
33475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33476if eval "test \"\${$as_ac_var+set}\" = set"; then
33477 echo $ECHO_N "(cached) $ECHO_C" >&6
33478else
33479 cat >conftest.$ac_ext <<_ACEOF
33480/* confdefs.h. */
33481_ACEOF
33482cat confdefs.h >>conftest.$ac_ext
33483cat >>conftest.$ac_ext <<_ACEOF
33484/* end confdefs.h. */
ac1cb8d3
VS
33485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33487#define $ac_func innocuous_$ac_func
33488
a848cd7e
SC
33489/* System header to define __stub macros and hopefully few prototypes,
33490 which can conflict with char $ac_func (); below.
33491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33492 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33493
a848cd7e
SC
33494#ifdef __STDC__
33495# include <limits.h>
33496#else
33497# include <assert.h>
33498#endif
ac1cb8d3
VS
33499
33500#undef $ac_func
33501
a848cd7e
SC
33502/* Override any gcc2 internal prototype to avoid an error. */
33503#ifdef __cplusplus
33504extern "C"
33505{
33506#endif
33507/* We use char because int might match the return type of a gcc2
33508 builtin and then its argument prototype would still apply. */
33509char $ac_func ();
33510/* The GNU C library defines this for functions which it implements
33511 to always fail with ENOSYS. Some functions are actually named
33512 something starting with __ and the normal name is an alias. */
33513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33514choke me
33515#else
33516char (*f) () = $ac_func;
33517#endif
33518#ifdef __cplusplus
33519}
33520#endif
33521
33522int
33523main ()
33524{
33525return f != $ac_func;
33526 ;
33527 return 0;
33528}
33529_ACEOF
33530rm -f conftest.$ac_objext conftest$ac_exeext
33531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33532 (eval $ac_link) 2>conftest.er1
a848cd7e 33533 ac_status=$?
ac1cb8d3
VS
33534 grep -v '^ *+' conftest.er1 >conftest.err
33535 rm -f conftest.er1
33536 cat conftest.err >&5
a848cd7e
SC
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); } &&
ac1cb8d3
VS
33539 { ac_try='test -z "$ac_c_werror_flag"
33540 || test ! -s conftest.err'
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33543 ac_status=$?
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; } &&
33546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548 (eval $ac_try) 2>&5
33549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; }; then
33552 eval "$as_ac_var=yes"
33553else
33554 echo "$as_me: failed program was:" >&5
33555sed 's/^/| /' conftest.$ac_ext >&5
33556
33557eval "$as_ac_var=no"
33558fi
ac1cb8d3
VS
33559rm -f conftest.err conftest.$ac_objext \
33560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33561fi
33562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33563echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33564if test `eval echo '${'$as_ac_var'}'` = yes; then
33565 cat >>confdefs.h <<_ACEOF
33566#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33567_ACEOF
33568
33569 cat >>confdefs.h <<\_ACEOF
33570#define HAVE_SHL_LOAD 1
33571_ACEOF
33572
33573 HAVE_SHL_FUNCS=1
33574
33575else
33576
33577 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33578echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33579if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33580 echo $ECHO_N "(cached) $ECHO_C" >&6
33581else
33582 ac_check_lib_save_LIBS=$LIBS
33583LIBS="-lshl_load $LIBS"
33584cat >conftest.$ac_ext <<_ACEOF
33585/* confdefs.h. */
33586_ACEOF
33587cat confdefs.h >>conftest.$ac_ext
33588cat >>conftest.$ac_ext <<_ACEOF
33589/* end confdefs.h. */
33590
33591/* Override any gcc2 internal prototype to avoid an error. */
33592#ifdef __cplusplus
33593extern "C"
33594#endif
33595/* We use char because int might match the return type of a gcc2
33596 builtin and then its argument prototype would still apply. */
33597char dld ();
33598int
33599main ()
33600{
33601dld ();
33602 ;
33603 return 0;
33604}
33605_ACEOF
33606rm -f conftest.$ac_objext conftest$ac_exeext
33607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33608 (eval $ac_link) 2>conftest.er1
a848cd7e 33609 ac_status=$?
ac1cb8d3
VS
33610 grep -v '^ *+' conftest.er1 >conftest.err
33611 rm -f conftest.er1
33612 cat conftest.err >&5
a848cd7e
SC
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); } &&
ac1cb8d3
VS
33615 { ac_try='test -z "$ac_c_werror_flag"
33616 || test ! -s conftest.err'
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; } &&
33622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33624 (eval $ac_try) 2>&5
33625 ac_status=$?
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; }; then
33628 ac_cv_lib_shl_load_dld=yes
33629else
33630 echo "$as_me: failed program was:" >&5
33631sed 's/^/| /' conftest.$ac_ext >&5
33632
33633ac_cv_lib_shl_load_dld=no
33634fi
ac1cb8d3
VS
33635rm -f conftest.err conftest.$ac_objext \
33636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33637LIBS=$ac_check_lib_save_LIBS
33638fi
33639echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33640echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33641if test $ac_cv_lib_shl_load_dld = yes; then
33642
33643 HAVE_SHL_FUNCS=1
33644 DL_LINK=" -ldld$DL_LINK"
33645
33646fi
33647
33648
33649fi
33650done
33651
33652
33653fi
33654
33655
33656fi
33657done
33658
33659
33660 if test "$HAVE_DL_FUNCS" = 1; then
33661
33662for ac_func in dlerror
33663do
33664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33665echo "$as_me:$LINENO: checking for $ac_func" >&5
33666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33667if eval "test \"\${$as_ac_var+set}\" = set"; then
33668 echo $ECHO_N "(cached) $ECHO_C" >&6
33669else
33670 cat >conftest.$ac_ext <<_ACEOF
33671/* confdefs.h. */
33672_ACEOF
33673cat confdefs.h >>conftest.$ac_ext
33674cat >>conftest.$ac_ext <<_ACEOF
33675/* end confdefs.h. */
ac1cb8d3
VS
33676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33678#define $ac_func innocuous_$ac_func
33679
a848cd7e
SC
33680/* System header to define __stub macros and hopefully few prototypes,
33681 which can conflict with char $ac_func (); below.
33682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33683 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33684
a848cd7e
SC
33685#ifdef __STDC__
33686# include <limits.h>
33687#else
33688# include <assert.h>
33689#endif
ac1cb8d3
VS
33690
33691#undef $ac_func
33692
a848cd7e
SC
33693/* Override any gcc2 internal prototype to avoid an error. */
33694#ifdef __cplusplus
33695extern "C"
33696{
33697#endif
33698/* We use char because int might match the return type of a gcc2
33699 builtin and then its argument prototype would still apply. */
33700char $ac_func ();
33701/* The GNU C library defines this for functions which it implements
33702 to always fail with ENOSYS. Some functions are actually named
33703 something starting with __ and the normal name is an alias. */
33704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33705choke me
33706#else
33707char (*f) () = $ac_func;
33708#endif
33709#ifdef __cplusplus
33710}
33711#endif
33712
33713int
33714main ()
33715{
33716return f != $ac_func;
33717 ;
33718 return 0;
33719}
33720_ACEOF
33721rm -f conftest.$ac_objext conftest$ac_exeext
33722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33723 (eval $ac_link) 2>conftest.er1
a848cd7e 33724 ac_status=$?
ac1cb8d3
VS
33725 grep -v '^ *+' conftest.er1 >conftest.err
33726 rm -f conftest.er1
33727 cat conftest.err >&5
a848cd7e
SC
33728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33729 (exit $ac_status); } &&
ac1cb8d3
VS
33730 { ac_try='test -z "$ac_c_werror_flag"
33731 || test ! -s conftest.err'
33732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33733 (eval $ac_try) 2>&5
33734 ac_status=$?
33735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736 (exit $ac_status); }; } &&
33737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33739 (eval $ac_try) 2>&5
33740 ac_status=$?
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); }; }; then
33743 eval "$as_ac_var=yes"
33744else
33745 echo "$as_me: failed program was:" >&5
33746sed 's/^/| /' conftest.$ac_ext >&5
33747
33748eval "$as_ac_var=no"
33749fi
ac1cb8d3
VS
33750rm -f conftest.err conftest.$ac_objext \
33751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33752fi
33753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33755if test `eval echo '${'$as_ac_var'}'` = yes; then
33756 cat >>confdefs.h <<_ACEOF
33757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33758_ACEOF
33759 cat >>confdefs.h <<\_ACEOF
33760#define HAVE_DLERROR 1
33761_ACEOF
33762
33763else
33764
33765 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33766echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33767if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33768 echo $ECHO_N "(cached) $ECHO_C" >&6
33769else
33770 ac_check_lib_save_LIBS=$LIBS
33771LIBS="-ldl $LIBS"
33772cat >conftest.$ac_ext <<_ACEOF
33773/* confdefs.h. */
33774_ACEOF
33775cat confdefs.h >>conftest.$ac_ext
33776cat >>conftest.$ac_ext <<_ACEOF
33777/* end confdefs.h. */
33778
33779/* Override any gcc2 internal prototype to avoid an error. */
33780#ifdef __cplusplus
33781extern "C"
33782#endif
33783/* We use char because int might match the return type of a gcc2
33784 builtin and then its argument prototype would still apply. */
33785char dlerror ();
33786int
33787main ()
33788{
33789dlerror ();
33790 ;
33791 return 0;
33792}
33793_ACEOF
33794rm -f conftest.$ac_objext conftest$ac_exeext
33795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33796 (eval $ac_link) 2>conftest.er1
a848cd7e 33797 ac_status=$?
ac1cb8d3
VS
33798 grep -v '^ *+' conftest.er1 >conftest.err
33799 rm -f conftest.er1
33800 cat conftest.err >&5
a848cd7e
SC
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); } &&
ac1cb8d3
VS
33803 { ac_try='test -z "$ac_c_werror_flag"
33804 || test ! -s conftest.err'
33805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33806 (eval $ac_try) 2>&5
33807 ac_status=$?
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); }; } &&
33810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33812 (eval $ac_try) 2>&5
33813 ac_status=$?
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); }; }; then
33816 ac_cv_lib_dl_dlerror=yes
33817else
33818 echo "$as_me: failed program was:" >&5
33819sed 's/^/| /' conftest.$ac_ext >&5
33820
33821ac_cv_lib_dl_dlerror=no
33822fi
ac1cb8d3
VS
33823rm -f conftest.err conftest.$ac_objext \
33824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33825LIBS=$ac_check_lib_save_LIBS
33826fi
33827echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33828echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33829if test $ac_cv_lib_dl_dlerror = yes; then
33830 cat >>confdefs.h <<\_ACEOF
33831#define HAVE_DLERROR 1
33832_ACEOF
33833
33834fi
33835
33836
33837
33838fi
33839done
33840
33841 fi
33842 fi
33843
33844 if test "$HAVE_DL_FUNCS" = 0; then
33845 if test "$HAVE_SHL_FUNCS" = 0; then
33846 if test "$USE_UNIX" = 1; then
33847 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33848echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33849 wxUSE_DYNAMIC_LOADER=no
33850 wxUSE_DYNLIB_CLASS=no
33851 else
33852 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33853echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33854 fi
33855 fi
33856 fi
33857 fi
33858fi
33859
33860if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33861 cat >>confdefs.h <<\_ACEOF
33862#define wxUSE_DYNAMIC_LOADER 1
33863_ACEOF
33864
33865fi
33866if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33867 cat >>confdefs.h <<\_ACEOF
33868#define wxUSE_DYNLIB_CLASS 1
33869_ACEOF
33870
33871fi
33872
33873
33874
33875if test "$wxUSE_PLUGINS" = "yes" ; then
33876 if test "$wxUSE_SHARED" = "no" ; then
33877 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33878echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33879 wxUSE_PLUGINS=no
33880 fi
33881 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33882 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33883echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33884 wxUSE_PLUGINS=no
33885 fi
33886 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33887 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33888echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33889 wxUSE_PLUGINS=no
33890 fi
33891 if test "$wxUSE_PLUGINS" = "yes" ; then
33892 cat >>confdefs.h <<\_ACEOF
33893#define wxUSE_PLUGINS 1
33894_ACEOF
33895
33896 fi
33897fi
33898
33899
33900if test "$wxUSE_STL" = "yes"; then
33901 cat >>confdefs.h <<\_ACEOF
33902#define wxUSE_STL 1
33903_ACEOF
33904
33905fi
33906
33907if test "$wxUSE_APPLE_IEEE" = "yes"; then
33908 cat >>confdefs.h <<\_ACEOF
33909#define wxUSE_APPLE_IEEE 1
33910_ACEOF
33911
33912fi
33913
33914if test "$wxUSE_TIMER" = "yes"; then
33915 cat >>confdefs.h <<\_ACEOF
33916#define wxUSE_TIMER 1
33917_ACEOF
33918
33919fi
33920
33921WITH_PLUGIN_SDL=0
33922if test "$wxUSE_SOUND" = "yes"; then
33923 if test "$USE_UNIX" = "1" ; then
33924
33925for ac_header in sys/soundcard.h
33926do
33927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33928if eval "test \"\${$as_ac_Header+set}\" = set"; then
33929 echo "$as_me:$LINENO: checking for $ac_header" >&5
33930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33931if eval "test \"\${$as_ac_Header+set}\" = set"; then
33932 echo $ECHO_N "(cached) $ECHO_C" >&6
33933fi
33934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33936else
33937 # Is the header compilable?
33938echo "$as_me:$LINENO: checking $ac_header usability" >&5
33939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33940cat >conftest.$ac_ext <<_ACEOF
33941/* confdefs.h. */
33942_ACEOF
33943cat confdefs.h >>conftest.$ac_ext
33944cat >>conftest.$ac_ext <<_ACEOF
33945/* end confdefs.h. */
33946$ac_includes_default
33947#include <$ac_header>
33948_ACEOF
33949rm -f conftest.$ac_objext
33950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33951 (eval $ac_compile) 2>conftest.er1
a848cd7e 33952 ac_status=$?
ac1cb8d3
VS
33953 grep -v '^ *+' conftest.er1 >conftest.err
33954 rm -f conftest.er1
33955 cat conftest.err >&5
a848cd7e
SC
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); } &&
ac1cb8d3
VS
33958 { ac_try='test -z "$ac_c_werror_flag"
33959 || test ! -s conftest.err'
33960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33961 (eval $ac_try) 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; } &&
33965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33967 (eval $ac_try) 2>&5
33968 ac_status=$?
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); }; }; then
33971 ac_header_compiler=yes
33972else
33973 echo "$as_me: failed program was:" >&5
33974sed 's/^/| /' conftest.$ac_ext >&5
33975
33976ac_header_compiler=no
33977fi
ac1cb8d3 33978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33980echo "${ECHO_T}$ac_header_compiler" >&6
33981
33982# Is the header present?
33983echo "$as_me:$LINENO: checking $ac_header presence" >&5
33984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33985cat >conftest.$ac_ext <<_ACEOF
33986/* confdefs.h. */
33987_ACEOF
33988cat confdefs.h >>conftest.$ac_ext
33989cat >>conftest.$ac_ext <<_ACEOF
33990/* end confdefs.h. */
33991#include <$ac_header>
33992_ACEOF
33993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33995 ac_status=$?
33996 grep -v '^ *+' conftest.er1 >conftest.err
33997 rm -f conftest.er1
33998 cat conftest.err >&5
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); } >/dev/null; then
34001 if test -s conftest.err; then
34002 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34004 else
34005 ac_cpp_err=
34006 fi
34007else
34008 ac_cpp_err=yes
34009fi
34010if test -z "$ac_cpp_err"; then
34011 ac_header_preproc=yes
34012else
34013 echo "$as_me: failed program was:" >&5
34014sed 's/^/| /' conftest.$ac_ext >&5
34015
34016 ac_header_preproc=no
34017fi
34018rm -f conftest.err conftest.$ac_ext
34019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34020echo "${ECHO_T}$ac_header_preproc" >&6
34021
34022# So? What about this header?
ac1cb8d3
VS
34023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34024 yes:no: )
a848cd7e
SC
34025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34029 ac_header_preproc=yes
a848cd7e 34030 ;;
ac1cb8d3 34031 no:yes:* )
a848cd7e
SC
34032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34044 (
34045 cat <<\_ASBOX
ac1cb8d3
VS
34046## ----------------------------------------- ##
34047## Report this to wx-dev@lists.wxwidgets.org ##
34048## ----------------------------------------- ##
a848cd7e
SC
34049_ASBOX
34050 ) |
34051 sed "s/^/$as_me: WARNING: /" >&2
34052 ;;
34053esac
34054echo "$as_me:$LINENO: checking for $ac_header" >&5
34055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34056if eval "test \"\${$as_ac_Header+set}\" = set"; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34058else
ac1cb8d3 34059 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34060fi
34061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34063
34064fi
34065if test `eval echo '${'$as_ac_Header'}'` = yes; then
34066 cat >>confdefs.h <<_ACEOF
34067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34068_ACEOF
34069
34070fi
34071
34072done
34073
34074
34075 if test "$wxUSE_LIBSDL" != "no"; then
34076
34077# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34078if test "${with_sdl_prefix+set}" = set; then
34079 withval="$with_sdl_prefix"
34080 sdl_prefix="$withval"
34081else
34082 sdl_prefix=""
34083fi;
34084
34085# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34086if test "${with_sdl_exec_prefix+set}" = set; then
34087 withval="$with_sdl_exec_prefix"
34088 sdl_exec_prefix="$withval"
34089else
34090 sdl_exec_prefix=""
34091fi;
34092# Check whether --enable-sdltest or --disable-sdltest was given.
34093if test "${enable_sdltest+set}" = set; then
34094 enableval="$enable_sdltest"
34095
34096else
34097 enable_sdltest=yes
34098fi;
34099
34100 if test x$sdl_exec_prefix != x ; then
34101 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34102 if test x${SDL_CONFIG+set} != xset ; then
34103 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34104 fi
34105 fi
34106 if test x$sdl_prefix != x ; then
34107 sdl_args="$sdl_args --prefix=$sdl_prefix"
34108 if test x${SDL_CONFIG+set} != xset ; then
34109 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34110 fi
34111 fi
34112
34113
34114 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34115 # Extract the first word of "sdl-config", so it can be a program name with args.
34116set dummy sdl-config; ac_word=$2
34117echo "$as_me:$LINENO: checking for $ac_word" >&5
34118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34119if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34120 echo $ECHO_N "(cached) $ECHO_C" >&6
34121else
34122 case $SDL_CONFIG in
34123 [\\/]* | ?:[\\/]*)
34124 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34125 ;;
34126 *)
34127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34128for as_dir in $PATH
34129do
34130 IFS=$as_save_IFS
34131 test -z "$as_dir" && as_dir=.
34132 for ac_exec_ext in '' $ac_executable_extensions; do
34133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34134 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34136 break 2
34137 fi
34138done
34139done
34140
34141 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34142 ;;
34143esac
34144fi
34145SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34146
34147if test -n "$SDL_CONFIG"; then
34148 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34149echo "${ECHO_T}$SDL_CONFIG" >&6
34150else
34151 echo "$as_me:$LINENO: result: no" >&5
34152echo "${ECHO_T}no" >&6
34153fi
34154
34155 min_sdl_version=1.2.0
34156 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34157echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34158 no_sdl=""
34159 if test "$SDL_CONFIG" = "no" ; then
34160 no_sdl=yes
34161 else
34162 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34163 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34164
34165 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34166 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34167 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34168 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34169 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34170 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34171 if test "x$enable_sdltest" = "xyes" ; then
34172 ac_save_CFLAGS="$CFLAGS"
34173 ac_save_LIBS="$LIBS"
34174 CFLAGS="$CFLAGS $SDL_CFLAGS"
34175 LIBS="$LIBS $SDL_LIBS"
34176 rm -f conf.sdltest
34177 if test "$cross_compiling" = yes; then
34178 echo $ac_n "cross compiling; assumed OK... $ac_c"
34179else
34180 cat >conftest.$ac_ext <<_ACEOF
34181/* confdefs.h. */
34182_ACEOF
34183cat confdefs.h >>conftest.$ac_ext
34184cat >>conftest.$ac_ext <<_ACEOF
34185/* end confdefs.h. */
34186
34187#include <stdio.h>
34188#include <stdlib.h>
34189#include <string.h>
34190#include "SDL.h"
34191
34192char*
34193my_strdup (char *str)
34194{
34195 char *new_str;
34196
34197 if (str)
34198 {
34199 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34200 strcpy (new_str, str);
34201 }
34202 else
34203 new_str = NULL;
34204
34205 return new_str;
34206}
34207
34208int main (int argc, char *argv[])
34209{
34210 int major, minor, micro;
34211 char *tmp_version;
34212
34213 /* This hangs on some systems (?)
34214 system ("touch conf.sdltest");
34215 */
34216 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34217
34218 /* HP/UX 9 (%@#!) writes to sscanf strings */
34219 tmp_version = my_strdup("$min_sdl_version");
34220 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34221 printf("%s, bad version string\n", "$min_sdl_version");
34222 exit(1);
34223 }
34224
34225 if (($sdl_major_version > major) ||
34226 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34227 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34228 {
34229 return 0;
34230 }
34231 else
34232 {
34233 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34234 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34235 printf("*** best to upgrade to the required version.\n");
34236 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34237 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34238 printf("*** config.cache before re-running configure\n");
34239 return 1;
34240 }
34241}
34242
34243
34244_ACEOF
34245rm -f conftest$ac_exeext
34246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34247 (eval $ac_link) 2>&5
34248 ac_status=$?
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34252 (eval $ac_try) 2>&5
34253 ac_status=$?
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); }; }; then
34256 :
34257else
34258 echo "$as_me: program exited with status $ac_status" >&5
34259echo "$as_me: failed program was:" >&5
34260sed 's/^/| /' conftest.$ac_ext >&5
34261
34262( exit $ac_status )
34263no_sdl=yes
34264fi
ac1cb8d3 34265rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34266fi
34267 CFLAGS="$ac_save_CFLAGS"
34268 LIBS="$ac_save_LIBS"
34269 fi
34270 fi
34271 if test "x$no_sdl" = x ; then
34272 echo "$as_me:$LINENO: result: yes" >&5
34273echo "${ECHO_T}yes" >&6
34274
34275 EXTRALIBS_SDL="$SDL_LIBS"
34276 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34277 cat >>confdefs.h <<\_ACEOF
34278#define wxUSE_LIBSDL 1
34279_ACEOF
34280
34281
34282 else
34283 echo "$as_me:$LINENO: result: no" >&5
34284echo "${ECHO_T}no" >&6
34285 if test "$SDL_CONFIG" = "no" ; then
34286 echo "*** The sdl-config script installed by SDL could not be found"
34287 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34288 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34289 echo "*** full path to sdl-config."
34290 else
34291 if test -f conf.sdltest ; then
34292 :
34293 else
34294 echo "*** Could not run SDL test program, checking why..."
34295 CFLAGS="$CFLAGS $SDL_CFLAGS"
34296 LIBS="$LIBS $SDL_LIBS"
34297 cat >conftest.$ac_ext <<_ACEOF
34298/* confdefs.h. */
34299_ACEOF
34300cat confdefs.h >>conftest.$ac_ext
34301cat >>conftest.$ac_ext <<_ACEOF
34302/* end confdefs.h. */
34303
34304#include <stdio.h>
34305#include "SDL.h"
34306
34307int main(int argc, char *argv[])
34308{ return 0; }
34309#undef main
34310#define main K_and_R_C_main
34311
34312int
34313main ()
34314{
34315 return 0;
34316 ;
34317 return 0;
34318}
34319_ACEOF
34320rm -f conftest.$ac_objext conftest$ac_exeext
34321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34322 (eval $ac_link) 2>conftest.er1
a848cd7e 34323 ac_status=$?
ac1cb8d3
VS
34324 grep -v '^ *+' conftest.er1 >conftest.err
34325 rm -f conftest.er1
34326 cat conftest.err >&5
a848cd7e
SC
34327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328 (exit $ac_status); } &&
ac1cb8d3
VS
34329 { ac_try='test -z "$ac_c_werror_flag"
34330 || test ! -s conftest.err'
34331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34332 (eval $ac_try) 2>&5
34333 ac_status=$?
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); }; } &&
34336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34338 (eval $ac_try) 2>&5
34339 ac_status=$?
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); }; }; then
34342 echo "*** The test program compiled, but did not run. This usually means"
34343 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34344 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34345 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34346 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34347 echo "*** is required on your system"
34348 echo "***"
34349 echo "*** If you have an old version installed, it is best to remove it, although"
34350 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34351else
34352 echo "$as_me: failed program was:" >&5
34353sed 's/^/| /' conftest.$ac_ext >&5
34354
34355 echo "*** The test program failed to compile or link. See the file config.log for the"
34356 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34357 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34358 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34359fi
ac1cb8d3
VS
34360rm -f conftest.err conftest.$ac_objext \
34361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34362 CFLAGS="$ac_save_CFLAGS"
34363 LIBS="$ac_save_LIBS"
34364 fi
34365 fi
34366 SDL_CFLAGS=""
34367 SDL_LIBS=""
34368 wxUSE_LIBSDL="no"
34369 fi
34370
34371
34372 rm -f conf.sdltest
34373
34374 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34375 WITH_PLUGIN_SDL=1
34376 fi
34377 fi
34378 fi
34379
34380 cat >>confdefs.h <<\_ACEOF
34381#define wxUSE_SOUND 1
34382_ACEOF
34383
34384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34385fi
34386
34387if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34388 cat >>confdefs.h <<\_ACEOF
34389#define wxUSE_CMDLINE_PARSER 1
34390_ACEOF
34391
34392fi
34393
34394if test "$wxUSE_STOPWATCH" = "yes"; then
34395 cat >>confdefs.h <<\_ACEOF
34396#define wxUSE_STOPWATCH 1
34397_ACEOF
34398
34399fi
34400
34401if test "$wxUSE_DATETIME" = "yes"; then
34402 cat >>confdefs.h <<\_ACEOF
34403#define wxUSE_DATETIME 1
34404_ACEOF
34405
34406fi
34407
34408if test "$wxUSE_FILE" = "yes"; then
34409 cat >>confdefs.h <<\_ACEOF
34410#define wxUSE_FILE 1
34411_ACEOF
34412
34413fi
34414
34415if test "$wxUSE_FFILE" = "yes"; then
34416 cat >>confdefs.h <<\_ACEOF
34417#define wxUSE_FFILE 1
34418_ACEOF
34419
34420fi
34421
34422if test "$wxUSE_FILESYSTEM" = "yes"; then
34423 cat >>confdefs.h <<\_ACEOF
34424#define wxUSE_FILESYSTEM 1
34425_ACEOF
34426
34427fi
34428
34429if test "$wxUSE_FS_ZIP" = "yes"; then
34430 cat >>confdefs.h <<\_ACEOF
34431#define wxUSE_FS_ZIP 1
34432_ACEOF
34433
34434fi
34435
34436if test "$wxUSE_ZIPSTREAM" = "yes"; then
34437 cat >>confdefs.h <<\_ACEOF
34438#define wxUSE_ZIPSTREAM 1
34439_ACEOF
34440
34441fi
34442
a848cd7e
SC
34443if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34444 cat >>confdefs.h <<\_ACEOF
34445#define wxUSE_ON_FATAL_EXCEPTION 1
34446_ACEOF
34447
34448fi
34449
34450if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34451 cat >>confdefs.h <<\_ACEOF
34452#define wxUSE_SNGLINST_CHECKER 1
34453_ACEOF
34454
34455fi
34456
34457if test "$wxUSE_BUSYINFO" = "yes"; then
34458 cat >>confdefs.h <<\_ACEOF
34459#define wxUSE_BUSYINFO 1
34460_ACEOF
34461
34462fi
34463
34464if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34465 cat >>confdefs.h <<\_ACEOF
34466#define wxUSE_STD_IOSTREAM 1
34467_ACEOF
34468
34469fi
34470
34471if test "$wxUSE_TEXTBUFFER" = "yes"; then
34472 cat >>confdefs.h <<\_ACEOF
34473#define wxUSE_TEXTBUFFER 1
34474_ACEOF
34475
34476fi
34477
34478if test "$wxUSE_TEXTFILE" = "yes"; then
34479 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34480 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34481echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34482 else
34483 cat >>confdefs.h <<\_ACEOF
34484#define wxUSE_TEXTFILE 1
34485_ACEOF
34486
34487 fi
34488fi
34489
34490if test "$wxUSE_CONFIG" = "yes" ; then
34491 if test "$wxUSE_TEXTFILE" != "yes"; then
34492 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34493echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34494 else
34495 cat >>confdefs.h <<\_ACEOF
34496#define wxUSE_CONFIG 1
34497_ACEOF
34498
34499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34500 fi
34501fi
34502
34503if test "$wxUSE_INTL" = "yes" ; then
34504 if test "$wxUSE_FILE" != "yes"; then
34505 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34506echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34507 else
34508 cat >>confdefs.h <<\_ACEOF
34509#define wxUSE_INTL 1
34510_ACEOF
34511
34512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34513 GUIDIST="$GUIDIST INTL_DIST"
34514 fi
34515fi
34516
34517if test "$wxUSE_LOG" = "yes"; then
34518 cat >>confdefs.h <<\_ACEOF
34519#define wxUSE_LOG 1
34520_ACEOF
34521
34522
34523 if test "$wxUSE_LOGGUI" = "yes"; then
34524 cat >>confdefs.h <<\_ACEOF
34525#define wxUSE_LOGGUI 1
34526_ACEOF
34527
34528 fi
34529
34530 if test "$wxUSE_LOGWINDOW" = "yes"; then
34531 cat >>confdefs.h <<\_ACEOF
34532#define wxUSE_LOGWINDOW 1
34533_ACEOF
34534
34535 fi
34536
34537 if test "$wxUSE_LOGDIALOG" = "yes"; then
34538 cat >>confdefs.h <<\_ACEOF
34539#define wxUSE_LOG_DIALOG 1
34540_ACEOF
34541
34542 fi
34543fi
34544
34545if test "$wxUSE_LONGLONG" = "yes"; then
34546 cat >>confdefs.h <<\_ACEOF
34547#define wxUSE_LONGLONG 1
34548_ACEOF
34549
34550fi
34551
34552if test "$wxUSE_GEOMETRY" = "yes"; then
34553 cat >>confdefs.h <<\_ACEOF
34554#define wxUSE_GEOMETRY 1
34555_ACEOF
34556
34557fi
34558
34559if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34560 cat >>confdefs.h <<\_ACEOF
34561#define wxUSE_DIALUP_MANAGER 1
34562_ACEOF
34563
34564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34565fi
34566
34567if test "$wxUSE_STREAMS" = "yes" ; then
34568 cat >>confdefs.h <<\_ACEOF
34569#define wxUSE_STREAMS 1
34570_ACEOF
34571
34572fi
34573
34574
34575if test "$wxUSE_DATETIME" = "yes"; then
34576
34577for ac_func in strptime
34578do
34579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34580echo "$as_me:$LINENO: checking for $ac_func" >&5
34581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34582if eval "test \"\${$as_ac_var+set}\" = set"; then
34583 echo $ECHO_N "(cached) $ECHO_C" >&6
34584else
34585 cat >conftest.$ac_ext <<_ACEOF
34586/* confdefs.h. */
34587_ACEOF
34588cat confdefs.h >>conftest.$ac_ext
34589cat >>conftest.$ac_ext <<_ACEOF
34590/* end confdefs.h. */
ac1cb8d3
VS
34591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34593#define $ac_func innocuous_$ac_func
34594
a848cd7e
SC
34595/* System header to define __stub macros and hopefully few prototypes,
34596 which can conflict with char $ac_func (); below.
34597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34598 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34599
a848cd7e
SC
34600#ifdef __STDC__
34601# include <limits.h>
34602#else
34603# include <assert.h>
34604#endif
ac1cb8d3
VS
34605
34606#undef $ac_func
34607
a848cd7e
SC
34608/* Override any gcc2 internal prototype to avoid an error. */
34609#ifdef __cplusplus
34610extern "C"
34611{
34612#endif
34613/* We use char because int might match the return type of a gcc2
34614 builtin and then its argument prototype would still apply. */
34615char $ac_func ();
34616/* The GNU C library defines this for functions which it implements
34617 to always fail with ENOSYS. Some functions are actually named
34618 something starting with __ and the normal name is an alias. */
34619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34620choke me
34621#else
34622char (*f) () = $ac_func;
34623#endif
34624#ifdef __cplusplus
34625}
34626#endif
34627
34628int
34629main ()
34630{
34631return f != $ac_func;
34632 ;
34633 return 0;
34634}
34635_ACEOF
34636rm -f conftest.$ac_objext conftest$ac_exeext
34637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34638 (eval $ac_link) 2>conftest.er1
a848cd7e 34639 ac_status=$?
ac1cb8d3
VS
34640 grep -v '^ *+' conftest.er1 >conftest.err
34641 rm -f conftest.er1
34642 cat conftest.err >&5
a848cd7e
SC
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); } &&
ac1cb8d3
VS
34645 { ac_try='test -z "$ac_c_werror_flag"
34646 || test ! -s conftest.err'
34647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34648 (eval $ac_try) 2>&5
34649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; } &&
34652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34654 (eval $ac_try) 2>&5
34655 ac_status=$?
34656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657 (exit $ac_status); }; }; then
34658 eval "$as_ac_var=yes"
34659else
34660 echo "$as_me: failed program was:" >&5
34661sed 's/^/| /' conftest.$ac_ext >&5
34662
34663eval "$as_ac_var=no"
34664fi
ac1cb8d3
VS
34665rm -f conftest.err conftest.$ac_objext \
34666 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34667fi
34668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34669echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34670if test `eval echo '${'$as_ac_var'}'` = yes; then
34671 cat >>confdefs.h <<_ACEOF
34672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34673_ACEOF
34674
34675fi
34676done
34677
34678
34679 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34680echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34681if test "${wx_cv_var_timezone+set}" = set; then
34682 echo $ECHO_N "(cached) $ECHO_C" >&6
34683else
34684
34685 cat >conftest.$ac_ext <<_ACEOF
34686/* confdefs.h. */
34687_ACEOF
34688cat confdefs.h >>conftest.$ac_ext
34689cat >>conftest.$ac_ext <<_ACEOF
34690/* end confdefs.h. */
34691
34692 #include <time.h>
34693
34694int
34695main ()
34696{
34697
34698 int tz;
34699 tz = timezone;
34700
34701 ;
34702 return 0;
34703}
34704_ACEOF
34705rm -f conftest.$ac_objext
34706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34707 (eval $ac_compile) 2>conftest.er1
a848cd7e 34708 ac_status=$?
ac1cb8d3
VS
34709 grep -v '^ *+' conftest.er1 >conftest.err
34710 rm -f conftest.er1
34711 cat conftest.err >&5
a848cd7e
SC
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); } &&
ac1cb8d3
VS
34714 { ac_try='test -z "$ac_c_werror_flag"
34715 || test ! -s conftest.err'
34716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717 (eval $ac_try) 2>&5
34718 ac_status=$?
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); }; } &&
34721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34723 (eval $ac_try) 2>&5
34724 ac_status=$?
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); }; }; then
34727
34728 wx_cv_var_timezone=timezone
34729
34730else
34731 echo "$as_me: failed program was:" >&5
34732sed 's/^/| /' conftest.$ac_ext >&5
34733
34734
34735 cat >conftest.$ac_ext <<_ACEOF
34736/* confdefs.h. */
34737_ACEOF
34738cat confdefs.h >>conftest.$ac_ext
34739cat >>conftest.$ac_ext <<_ACEOF
34740/* end confdefs.h. */
34741
34742 #include <time.h>
34743
34744int
34745main ()
34746{
34747
34748 int tz;
34749 tz = _timezone;
34750
34751 ;
34752 return 0;
34753}
34754_ACEOF
34755rm -f conftest.$ac_objext
34756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34757 (eval $ac_compile) 2>conftest.er1
a848cd7e 34758 ac_status=$?
ac1cb8d3
VS
34759 grep -v '^ *+' conftest.er1 >conftest.err
34760 rm -f conftest.er1
34761 cat conftest.err >&5
a848cd7e
SC
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); } &&
ac1cb8d3
VS
34764 { ac_try='test -z "$ac_c_werror_flag"
34765 || test ! -s conftest.err'
34766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767 (eval $ac_try) 2>&5
34768 ac_status=$?
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); }; } &&
34771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34773 (eval $ac_try) 2>&5
34774 ac_status=$?
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); }; }; then
34777
34778 wx_cv_var_timezone=_timezone
34779
34780else
34781 echo "$as_me: failed program was:" >&5
34782sed 's/^/| /' conftest.$ac_ext >&5
34783
34784
34785 cat >conftest.$ac_ext <<_ACEOF
34786/* confdefs.h. */
34787_ACEOF
34788cat confdefs.h >>conftest.$ac_ext
34789cat >>conftest.$ac_ext <<_ACEOF
34790/* end confdefs.h. */
34791
34792 #include <time.h>
34793
34794int
34795main ()
34796{
34797
34798 int tz;
34799 tz = __timezone;
34800
34801 ;
34802 return 0;
34803}
34804_ACEOF
34805rm -f conftest.$ac_objext
34806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34807 (eval $ac_compile) 2>conftest.er1
a848cd7e 34808 ac_status=$?
ac1cb8d3
VS
34809 grep -v '^ *+' conftest.er1 >conftest.err
34810 rm -f conftest.er1
34811 cat conftest.err >&5
a848cd7e
SC
34812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813 (exit $ac_status); } &&
ac1cb8d3
VS
34814 { ac_try='test -z "$ac_c_werror_flag"
34815 || test ! -s conftest.err'
34816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817 (eval $ac_try) 2>&5
34818 ac_status=$?
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); }; } &&
34821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823 (eval $ac_try) 2>&5
34824 ac_status=$?
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); }; }; then
34827
34828 wx_cv_var_timezone=__timezone
34829
34830else
34831 echo "$as_me: failed program was:" >&5
34832sed 's/^/| /' conftest.$ac_ext >&5
34833
34834
34835 if test "$USE_DOS" = 0 ; then
34836 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34837echo "$as_me: WARNING: no timezone variable" >&2;}
34838 fi
34839
34840
34841fi
ac1cb8d3 34842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34843
34844
34845fi
ac1cb8d3 34846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34847
34848
34849fi
ac1cb8d3 34850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34851
34852
34853fi
34854echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34855echo "${ECHO_T}$wx_cv_var_timezone" >&6
34856
34857 if test "x$wx_cv_var_timezone" != x ; then
34858 cat >>confdefs.h <<_ACEOF
34859#define WX_TIMEZONE $wx_cv_var_timezone
34860_ACEOF
34861
34862 fi
34863
34864
34865for ac_func in localtime
34866do
34867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34868echo "$as_me:$LINENO: checking for $ac_func" >&5
34869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34870if eval "test \"\${$as_ac_var+set}\" = set"; then
34871 echo $ECHO_N "(cached) $ECHO_C" >&6
34872else
34873 cat >conftest.$ac_ext <<_ACEOF
34874/* confdefs.h. */
34875_ACEOF
34876cat confdefs.h >>conftest.$ac_ext
34877cat >>conftest.$ac_ext <<_ACEOF
34878/* end confdefs.h. */
ac1cb8d3
VS
34879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34881#define $ac_func innocuous_$ac_func
34882
a848cd7e
SC
34883/* System header to define __stub macros and hopefully few prototypes,
34884 which can conflict with char $ac_func (); below.
34885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34886 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34887
a848cd7e
SC
34888#ifdef __STDC__
34889# include <limits.h>
34890#else
34891# include <assert.h>
34892#endif
ac1cb8d3
VS
34893
34894#undef $ac_func
34895
a848cd7e
SC
34896/* Override any gcc2 internal prototype to avoid an error. */
34897#ifdef __cplusplus
34898extern "C"
34899{
34900#endif
34901/* We use char because int might match the return type of a gcc2
34902 builtin and then its argument prototype would still apply. */
34903char $ac_func ();
34904/* The GNU C library defines this for functions which it implements
34905 to always fail with ENOSYS. Some functions are actually named
34906 something starting with __ and the normal name is an alias. */
34907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34908choke me
34909#else
34910char (*f) () = $ac_func;
34911#endif
34912#ifdef __cplusplus
34913}
34914#endif
34915
34916int
34917main ()
34918{
34919return f != $ac_func;
34920 ;
34921 return 0;
34922}
34923_ACEOF
34924rm -f conftest.$ac_objext conftest$ac_exeext
34925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34926 (eval $ac_link) 2>conftest.er1
a848cd7e 34927 ac_status=$?
ac1cb8d3
VS
34928 grep -v '^ *+' conftest.er1 >conftest.err
34929 rm -f conftest.er1
34930 cat conftest.err >&5
a848cd7e
SC
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); } &&
ac1cb8d3
VS
34933 { ac_try='test -z "$ac_c_werror_flag"
34934 || test ! -s conftest.err'
34935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34936 (eval $ac_try) 2>&5
34937 ac_status=$?
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); }; } &&
34940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34942 (eval $ac_try) 2>&5
34943 ac_status=$?
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); }; }; then
34946 eval "$as_ac_var=yes"
34947else
34948 echo "$as_me: failed program was:" >&5
34949sed 's/^/| /' conftest.$ac_ext >&5
34950
34951eval "$as_ac_var=no"
34952fi
ac1cb8d3
VS
34953rm -f conftest.err conftest.$ac_objext \
34954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34955fi
34956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34958if test `eval echo '${'$as_ac_var'}'` = yes; then
34959 cat >>confdefs.h <<_ACEOF
34960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34961_ACEOF
34962
34963fi
34964done
34965
34966
34967 if test "$ac_cv_func_localtime" = "yes"; then
34968 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34969echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34970if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34971 echo $ECHO_N "(cached) $ECHO_C" >&6
34972else
34973
34974 cat >conftest.$ac_ext <<_ACEOF
34975/* confdefs.h. */
34976_ACEOF
34977cat confdefs.h >>conftest.$ac_ext
34978cat >>conftest.$ac_ext <<_ACEOF
34979/* end confdefs.h. */
34980
34981 #include <time.h>
34982
34983int
34984main ()
34985{
34986
34987 struct tm tm;
34988 tm.tm_gmtoff++;
34989
34990 ;
34991 return 0;
34992}
34993_ACEOF
34994rm -f conftest.$ac_objext
34995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34996 (eval $ac_compile) 2>conftest.er1
a848cd7e 34997 ac_status=$?
ac1cb8d3
VS
34998 grep -v '^ *+' conftest.er1 >conftest.err
34999 rm -f conftest.er1
35000 cat conftest.err >&5
a848cd7e
SC
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); } &&
ac1cb8d3
VS
35003 { ac_try='test -z "$ac_c_werror_flag"
35004 || test ! -s conftest.err'
35005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006 (eval $ac_try) 2>&5
35007 ac_status=$?
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); }; } &&
35010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35012 (eval $ac_try) 2>&5
35013 ac_status=$?
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); }; }; then
35016
35017 wx_cv_struct_tm_has_gmtoff=yes
35018
35019else
35020 echo "$as_me: failed program was:" >&5
35021sed 's/^/| /' conftest.$ac_ext >&5
35022
35023wx_cv_struct_tm_has_gmtoff=no
35024
35025fi
ac1cb8d3 35026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35027
35028fi
35029echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35030echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35031 fi
35032
35033 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35034 cat >>confdefs.h <<\_ACEOF
35035#define WX_GMTOFF_IN_TM 1
35036_ACEOF
35037
35038 fi
35039
35040
35041
35042for ac_func in gettimeofday ftime
35043do
35044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35045echo "$as_me:$LINENO: checking for $ac_func" >&5
35046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35047if eval "test \"\${$as_ac_var+set}\" = set"; then
35048 echo $ECHO_N "(cached) $ECHO_C" >&6
35049else
35050 cat >conftest.$ac_ext <<_ACEOF
35051/* confdefs.h. */
35052_ACEOF
35053cat confdefs.h >>conftest.$ac_ext
35054cat >>conftest.$ac_ext <<_ACEOF
35055/* end confdefs.h. */
ac1cb8d3
VS
35056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35058#define $ac_func innocuous_$ac_func
35059
a848cd7e
SC
35060/* System header to define __stub macros and hopefully few prototypes,
35061 which can conflict with char $ac_func (); below.
35062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35063 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35064
a848cd7e
SC
35065#ifdef __STDC__
35066# include <limits.h>
35067#else
35068# include <assert.h>
35069#endif
ac1cb8d3
VS
35070
35071#undef $ac_func
35072
a848cd7e
SC
35073/* Override any gcc2 internal prototype to avoid an error. */
35074#ifdef __cplusplus
35075extern "C"
35076{
35077#endif
35078/* We use char because int might match the return type of a gcc2
35079 builtin and then its argument prototype would still apply. */
35080char $ac_func ();
35081/* The GNU C library defines this for functions which it implements
35082 to always fail with ENOSYS. Some functions are actually named
35083 something starting with __ and the normal name is an alias. */
35084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35085choke me
35086#else
35087char (*f) () = $ac_func;
35088#endif
35089#ifdef __cplusplus
35090}
35091#endif
35092
35093int
35094main ()
35095{
35096return f != $ac_func;
35097 ;
35098 return 0;
35099}
35100_ACEOF
35101rm -f conftest.$ac_objext conftest$ac_exeext
35102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35103 (eval $ac_link) 2>conftest.er1
a848cd7e 35104 ac_status=$?
ac1cb8d3
VS
35105 grep -v '^ *+' conftest.er1 >conftest.err
35106 rm -f conftest.er1
35107 cat conftest.err >&5
a848cd7e
SC
35108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109 (exit $ac_status); } &&
ac1cb8d3
VS
35110 { ac_try='test -z "$ac_c_werror_flag"
35111 || test ! -s conftest.err'
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; } &&
35117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35120 ac_status=$?
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; }; then
35123 eval "$as_ac_var=yes"
35124else
35125 echo "$as_me: failed program was:" >&5
35126sed 's/^/| /' conftest.$ac_ext >&5
35127
35128eval "$as_ac_var=no"
35129fi
ac1cb8d3
VS
35130rm -f conftest.err conftest.$ac_objext \
35131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35132fi
35133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35135if test `eval echo '${'$as_ac_var'}'` = yes; then
35136 cat >>confdefs.h <<_ACEOF
35137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35138_ACEOF
35139 break
35140fi
35141done
35142
35143
35144 if test "$ac_cv_func_gettimeofday" = "yes"; then
35145 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35146echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35147if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35148 echo $ECHO_N "(cached) $ECHO_C" >&6
35149else
35150
35151
35152
35153 ac_ext=cc
35154ac_cpp='$CXXCPP $CPPFLAGS'
35155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35158
35159
35160 cat >conftest.$ac_ext <<_ACEOF
35161/* confdefs.h. */
35162_ACEOF
35163cat confdefs.h >>conftest.$ac_ext
35164cat >>conftest.$ac_ext <<_ACEOF
35165/* end confdefs.h. */
35166
35167 #include <sys/time.h>
35168 #include <unistd.h>
35169
35170int
35171main ()
35172{
35173
35174 struct timeval tv;
35175 gettimeofday(&tv, NULL);
35176
35177 ;
35178 return 0;
35179}
35180_ACEOF
35181rm -f conftest.$ac_objext
35182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35183 (eval $ac_compile) 2>conftest.er1
a848cd7e 35184 ac_status=$?
ac1cb8d3
VS
35185 grep -v '^ *+' conftest.er1 >conftest.err
35186 rm -f conftest.er1
35187 cat conftest.err >&5
a848cd7e
SC
35188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); } &&
ac1cb8d3
VS
35190 { ac_try='test -z "$ac_cxx_werror_flag"
35191 || test ! -s conftest.err'
35192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35193 (eval $ac_try) 2>&5
35194 ac_status=$?
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); }; } &&
35197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35199 (eval $ac_try) 2>&5
35200 ac_status=$?
35201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); }; }; then
35203 wx_cv_func_gettimeofday_has_2_args=yes
35204else
35205 echo "$as_me: failed program was:" >&5
35206sed 's/^/| /' conftest.$ac_ext >&5
35207
35208cat >conftest.$ac_ext <<_ACEOF
35209/* confdefs.h. */
35210_ACEOF
35211cat confdefs.h >>conftest.$ac_ext
35212cat >>conftest.$ac_ext <<_ACEOF
35213/* end confdefs.h. */
35214
35215 #include <sys/time.h>
35216 #include <unistd.h>
35217
35218int
35219main ()
35220{
35221
35222 struct timeval tv;
35223 gettimeofday(&tv);
35224
35225 ;
35226 return 0;
35227}
35228_ACEOF
35229rm -f conftest.$ac_objext
35230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35231 (eval $ac_compile) 2>conftest.er1
a848cd7e 35232 ac_status=$?
ac1cb8d3
VS
35233 grep -v '^ *+' conftest.er1 >conftest.err
35234 rm -f conftest.er1
35235 cat conftest.err >&5
a848cd7e
SC
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); } &&
ac1cb8d3
VS
35238 { ac_try='test -z "$ac_cxx_werror_flag"
35239 || test ! -s conftest.err'
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35242 ac_status=$?
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; } &&
35245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35247 (eval $ac_try) 2>&5
35248 ac_status=$?
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); }; }; then
35251 wx_cv_func_gettimeofday_has_2_args=no
35252else
35253 echo "$as_me: failed program was:" >&5
35254sed 's/^/| /' conftest.$ac_ext >&5
35255
35256
35257 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35258echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35259 wx_cv_func_gettimeofday_has_2_args=unknown
35260
35261
35262fi
ac1cb8d3 35263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35264
35265fi
ac1cb8d3 35266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35267 ac_ext=c
35268ac_cpp='$CPP $CPPFLAGS'
35269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35271ac_compiler_gnu=$ac_cv_c_compiler_gnu
35272
35273
35274fi
35275echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35276echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35277
35278 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35279 cat >>confdefs.h <<\_ACEOF
35280#define WX_GETTIMEOFDAY_NO_TZ 1
35281_ACEOF
35282
35283 fi
35284 fi
35285
35286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35287fi
35288
35289
35290if test "$wxUSE_SOCKETS" = "yes"; then
35291 if test "$wxUSE_MGL" = "1"; then
35292 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35293echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35294 wxUSE_SOCKETS="no"
35295 fi
35296fi
35297
35298if test "$wxUSE_SOCKETS" = "yes"; then
35299 if test "$TOOLKIT" != "MSW"; then
35300 echo "$as_me:$LINENO: checking for socket" >&5
35301echo $ECHO_N "checking for socket... $ECHO_C" >&6
35302if test "${ac_cv_func_socket+set}" = set; then
35303 echo $ECHO_N "(cached) $ECHO_C" >&6
35304else
35305 cat >conftest.$ac_ext <<_ACEOF
35306/* confdefs.h. */
35307_ACEOF
35308cat confdefs.h >>conftest.$ac_ext
35309cat >>conftest.$ac_ext <<_ACEOF
35310/* end confdefs.h. */
ac1cb8d3
VS
35311/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35313#define socket innocuous_socket
35314
a848cd7e
SC
35315/* System header to define __stub macros and hopefully few prototypes,
35316 which can conflict with char socket (); below.
35317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35318 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35319
a848cd7e
SC
35320#ifdef __STDC__
35321# include <limits.h>
35322#else
35323# include <assert.h>
35324#endif
ac1cb8d3
VS
35325
35326#undef socket
35327
a848cd7e
SC
35328/* Override any gcc2 internal prototype to avoid an error. */
35329#ifdef __cplusplus
35330extern "C"
35331{
35332#endif
35333/* We use char because int might match the return type of a gcc2
35334 builtin and then its argument prototype would still apply. */
35335char socket ();
35336/* The GNU C library defines this for functions which it implements
35337 to always fail with ENOSYS. Some functions are actually named
35338 something starting with __ and the normal name is an alias. */
35339#if defined (__stub_socket) || defined (__stub___socket)
35340choke me
35341#else
35342char (*f) () = socket;
35343#endif
35344#ifdef __cplusplus
35345}
35346#endif
35347
35348int
35349main ()
35350{
35351return f != socket;
35352 ;
35353 return 0;
35354}
35355_ACEOF
35356rm -f conftest.$ac_objext conftest$ac_exeext
35357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35358 (eval $ac_link) 2>conftest.er1
a848cd7e 35359 ac_status=$?
ac1cb8d3
VS
35360 grep -v '^ *+' conftest.er1 >conftest.err
35361 rm -f conftest.er1
35362 cat conftest.err >&5
a848cd7e
SC
35363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364 (exit $ac_status); } &&
ac1cb8d3
VS
35365 { ac_try='test -z "$ac_c_werror_flag"
35366 || test ! -s conftest.err'
35367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368 (eval $ac_try) 2>&5
35369 ac_status=$?
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); }; } &&
35372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35374 (eval $ac_try) 2>&5
35375 ac_status=$?
35376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377 (exit $ac_status); }; }; then
35378 ac_cv_func_socket=yes
35379else
35380 echo "$as_me: failed program was:" >&5
35381sed 's/^/| /' conftest.$ac_ext >&5
35382
35383ac_cv_func_socket=no
35384fi
ac1cb8d3
VS
35385rm -f conftest.err conftest.$ac_objext \
35386 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35387fi
35388echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35389echo "${ECHO_T}$ac_cv_func_socket" >&6
35390if test $ac_cv_func_socket = yes; then
35391 :
35392else
35393
35394 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35395echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35396if test "${ac_cv_lib_socket_socket+set}" = set; then
35397 echo $ECHO_N "(cached) $ECHO_C" >&6
35398else
35399 ac_check_lib_save_LIBS=$LIBS
35400LIBS="-lsocket $LIBS"
35401cat >conftest.$ac_ext <<_ACEOF
35402/* confdefs.h. */
35403_ACEOF
35404cat confdefs.h >>conftest.$ac_ext
35405cat >>conftest.$ac_ext <<_ACEOF
35406/* end confdefs.h. */
35407
35408/* Override any gcc2 internal prototype to avoid an error. */
35409#ifdef __cplusplus
35410extern "C"
35411#endif
35412/* We use char because int might match the return type of a gcc2
35413 builtin and then its argument prototype would still apply. */
35414char socket ();
35415int
35416main ()
35417{
35418socket ();
35419 ;
35420 return 0;
35421}
35422_ACEOF
35423rm -f conftest.$ac_objext conftest$ac_exeext
35424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35425 (eval $ac_link) 2>conftest.er1
a848cd7e 35426 ac_status=$?
ac1cb8d3
VS
35427 grep -v '^ *+' conftest.er1 >conftest.err
35428 rm -f conftest.er1
35429 cat conftest.err >&5
a848cd7e
SC
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); } &&
ac1cb8d3
VS
35432 { ac_try='test -z "$ac_c_werror_flag"
35433 || test ! -s conftest.err'
35434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435 (eval $ac_try) 2>&5
35436 ac_status=$?
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); }; } &&
35439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441 (eval $ac_try) 2>&5
35442 ac_status=$?
35443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444 (exit $ac_status); }; }; then
35445 ac_cv_lib_socket_socket=yes
35446else
35447 echo "$as_me: failed program was:" >&5
35448sed 's/^/| /' conftest.$ac_ext >&5
35449
35450ac_cv_lib_socket_socket=no
35451fi
ac1cb8d3
VS
35452rm -f conftest.err conftest.$ac_objext \
35453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35454LIBS=$ac_check_lib_save_LIBS
35455fi
35456echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35457echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35458if test $ac_cv_lib_socket_socket = yes; then
35459 if test "$INET_LINK" != " -lsocket"; then
35460 INET_LINK="$INET_LINK -lsocket"
35461 fi
35462else
35463
35464 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35465echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35466 wxUSE_SOCKETS=no
35467
35468
35469fi
35470
35471
35472
35473fi
35474
35475 fi
35476fi
35477
35478if test "$wxUSE_SOCKETS" = "yes" ; then
35479 if test "$TOOLKIT" != "MSW"; then
35480 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35481echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35482if test "${wx_cv_type_getsockname3+set}" = set; then
35483 echo $ECHO_N "(cached) $ECHO_C" >&6
35484else
35485
35486 cat >conftest.$ac_ext <<_ACEOF
35487/* confdefs.h. */
35488_ACEOF
35489cat confdefs.h >>conftest.$ac_ext
35490cat >>conftest.$ac_ext <<_ACEOF
35491/* end confdefs.h. */
35492
35493 #include <sys/types.h>
35494 #include <sys/socket.h>
35495
35496int
35497main ()
35498{
35499
35500 socklen_t len;
35501 getsockname(0, 0, &len);
35502
35503 ;
35504 return 0;
35505}
35506_ACEOF
35507rm -f conftest.$ac_objext
35508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35509 (eval $ac_compile) 2>conftest.er1
a848cd7e 35510 ac_status=$?
ac1cb8d3
VS
35511 grep -v '^ *+' conftest.er1 >conftest.err
35512 rm -f conftest.er1
35513 cat conftest.err >&5
a848cd7e
SC
35514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515 (exit $ac_status); } &&
ac1cb8d3
VS
35516 { ac_try='test -z "$ac_c_werror_flag"
35517 || test ! -s conftest.err'
35518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35519 (eval $ac_try) 2>&5
35520 ac_status=$?
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); }; } &&
35523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35525 (eval $ac_try) 2>&5
35526 ac_status=$?
35527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35528 (exit $ac_status); }; }; then
35529 wx_cv_type_getsockname3=socklen_t
35530else
35531 echo "$as_me: failed program was:" >&5
35532sed 's/^/| /' conftest.$ac_ext >&5
35533
35534
35535 CFLAGS_OLD="$CFLAGS"
35536 if test "$GCC" = yes ; then
35537 CFLAGS="$CFLAGS -Werror"
35538 fi
35539
35540 cat >conftest.$ac_ext <<_ACEOF
35541/* confdefs.h. */
35542_ACEOF
35543cat confdefs.h >>conftest.$ac_ext
35544cat >>conftest.$ac_ext <<_ACEOF
35545/* end confdefs.h. */
35546
35547 #include <sys/types.h>
35548 #include <sys/socket.h>
35549
35550int
35551main ()
35552{
35553
35554 size_t len;
35555 getsockname(0, 0, &len);
35556
35557 ;
35558 return 0;
35559}
35560_ACEOF
35561rm -f conftest.$ac_objext
35562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35563 (eval $ac_compile) 2>conftest.er1
a848cd7e 35564 ac_status=$?
ac1cb8d3
VS
35565 grep -v '^ *+' conftest.er1 >conftest.err
35566 rm -f conftest.er1
35567 cat conftest.err >&5
a848cd7e
SC
35568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569 (exit $ac_status); } &&
ac1cb8d3
VS
35570 { ac_try='test -z "$ac_c_werror_flag"
35571 || test ! -s conftest.err'
35572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35573 (eval $ac_try) 2>&5
35574 ac_status=$?
35575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576 (exit $ac_status); }; } &&
35577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35579 (eval $ac_try) 2>&5
35580 ac_status=$?
35581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582 (exit $ac_status); }; }; then
35583 wx_cv_type_getsockname3=size_t
35584else
35585 echo "$as_me: failed program was:" >&5
35586sed 's/^/| /' conftest.$ac_ext >&5
35587
35588cat >conftest.$ac_ext <<_ACEOF
35589/* confdefs.h. */
35590_ACEOF
35591cat confdefs.h >>conftest.$ac_ext
35592cat >>conftest.$ac_ext <<_ACEOF
35593/* end confdefs.h. */
35594
35595 #include <sys/types.h>
35596 #include <sys/socket.h>
35597
35598int
35599main ()
35600{
35601
35602 int len;
35603 getsockname(0, 0, &len);
35604
35605 ;
35606 return 0;
35607}
35608_ACEOF
35609rm -f conftest.$ac_objext
35610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35611 (eval $ac_compile) 2>conftest.er1
a848cd7e 35612 ac_status=$?
ac1cb8d3
VS
35613 grep -v '^ *+' conftest.er1 >conftest.err
35614 rm -f conftest.er1
35615 cat conftest.err >&5
a848cd7e
SC
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); } &&
ac1cb8d3
VS
35618 { ac_try='test -z "$ac_c_werror_flag"
35619 || test ! -s conftest.err'
35620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621 (eval $ac_try) 2>&5
35622 ac_status=$?
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); }; } &&
35625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35627 (eval $ac_try) 2>&5
35628 ac_status=$?
35629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630 (exit $ac_status); }; }; then
35631 wx_cv_type_getsockname3=int
35632else
35633 echo "$as_me: failed program was:" >&5
35634sed 's/^/| /' conftest.$ac_ext >&5
35635
35636wx_cv_type_getsockname3=unknown
35637
35638fi
ac1cb8d3 35639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35640
35641fi
ac1cb8d3 35642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35643
35644 CFLAGS="$CFLAGS_OLD"
35645
35646
35647fi
ac1cb8d3 35648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35649
35650fi
35651echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35652echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35653
35654 if test "$wx_cv_type_getsockname3" = "unknown"; then
35655 wxUSE_SOCKETS=no
35656 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35657echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35658 else
35659 cat >>confdefs.h <<_ACEOF
35660#define SOCKLEN_T $wx_cv_type_getsockname3
35661_ACEOF
35662
35663 fi
35664 fi
35665fi
35666
35667if test "$wxUSE_SOCKETS" = "yes" ; then
35668 cat >>confdefs.h <<\_ACEOF
35669#define wxUSE_SOCKETS 1
35670_ACEOF
35671
35672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35673fi
35674
35675if test "$wxUSE_PROTOCOL" = "yes"; then
35676 if test "$wxUSE_SOCKETS" != "yes"; then
35677 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35678echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35679 wxUSE_PROTOCOL=no
35680 fi
35681fi
35682
35683if test "$wxUSE_PROTOCOL" = "yes"; then
35684 cat >>confdefs.h <<\_ACEOF
35685#define wxUSE_PROTOCOL 1
35686_ACEOF
35687
35688
35689 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35690 cat >>confdefs.h <<\_ACEOF
35691#define wxUSE_PROTOCOL_HTTP 1
35692_ACEOF
35693
35694 fi
35695 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35696 cat >>confdefs.h <<\_ACEOF
35697#define wxUSE_PROTOCOL_FTP 1
35698_ACEOF
35699
35700 fi
35701 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35702 cat >>confdefs.h <<\_ACEOF
35703#define wxUSE_PROTOCOL_FILE 1
35704_ACEOF
35705
35706 fi
35707else
35708 if test "$wxUSE_FS_INET" = "yes"; then
35709 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35710echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35711 wxUSE_FS_INET="no"
35712 fi
35713fi
35714
35715if test "$wxUSE_URL" = "yes"; then
35716 if test "$wxUSE_PROTOCOL" != "yes"; then
35717 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35718echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35719 wxUSE_URL=no
35720 fi
35721 if test "$wxUSE_URL" = "yes"; then
35722 cat >>confdefs.h <<\_ACEOF
35723#define wxUSE_URL 1
35724_ACEOF
35725
35726 fi
35727fi
35728
35729if test "$wxUSE_FS_INET" = "yes"; then
35730 cat >>confdefs.h <<\_ACEOF
35731#define wxUSE_FS_INET 1
35732_ACEOF
35733
35734fi
35735
35736
35737if test "$wxUSE_GUI" = "yes"; then
35738
35739 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35740 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35741echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35742 wxUSE_JOYSTICK=no
35743 fi
35744
35745 if test "$TOOLKIT" != "MSW"; then
35746 if test "$wxUSE_JOYSTICK" = "yes"; then
35747
35748for ac_header in linux/joystick.h
35749do
35750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35751if eval "test \"\${$as_ac_Header+set}\" = set"; then
35752 echo "$as_me:$LINENO: checking for $ac_header" >&5
35753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35754if eval "test \"\${$as_ac_Header+set}\" = set"; then
35755 echo $ECHO_N "(cached) $ECHO_C" >&6
35756fi
35757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35759else
35760 # Is the header compilable?
35761echo "$as_me:$LINENO: checking $ac_header usability" >&5
35762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35763cat >conftest.$ac_ext <<_ACEOF
35764/* confdefs.h. */
35765_ACEOF
35766cat confdefs.h >>conftest.$ac_ext
35767cat >>conftest.$ac_ext <<_ACEOF
35768/* end confdefs.h. */
35769$ac_includes_default
35770#include <$ac_header>
35771_ACEOF
35772rm -f conftest.$ac_objext
35773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35774 (eval $ac_compile) 2>conftest.er1
a848cd7e 35775 ac_status=$?
ac1cb8d3
VS
35776 grep -v '^ *+' conftest.er1 >conftest.err
35777 rm -f conftest.er1
35778 cat conftest.err >&5
a848cd7e
SC
35779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35780 (exit $ac_status); } &&
ac1cb8d3
VS
35781 { ac_try='test -z "$ac_c_werror_flag"
35782 || test ! -s conftest.err'
35783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35784 (eval $ac_try) 2>&5
35785 ac_status=$?
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; } &&
35788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790 (eval $ac_try) 2>&5
35791 ac_status=$?
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); }; }; then
35794 ac_header_compiler=yes
35795else
35796 echo "$as_me: failed program was:" >&5
35797sed 's/^/| /' conftest.$ac_ext >&5
35798
35799ac_header_compiler=no
35800fi
ac1cb8d3 35801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35803echo "${ECHO_T}$ac_header_compiler" >&6
35804
35805# Is the header present?
35806echo "$as_me:$LINENO: checking $ac_header presence" >&5
35807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35808cat >conftest.$ac_ext <<_ACEOF
35809/* confdefs.h. */
35810_ACEOF
35811cat confdefs.h >>conftest.$ac_ext
35812cat >>conftest.$ac_ext <<_ACEOF
35813/* end confdefs.h. */
35814#include <$ac_header>
35815_ACEOF
35816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35818 ac_status=$?
35819 grep -v '^ *+' conftest.er1 >conftest.err
35820 rm -f conftest.er1
35821 cat conftest.err >&5
35822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823 (exit $ac_status); } >/dev/null; then
35824 if test -s conftest.err; then
35825 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35827 else
35828 ac_cpp_err=
35829 fi
35830else
35831 ac_cpp_err=yes
35832fi
35833if test -z "$ac_cpp_err"; then
35834 ac_header_preproc=yes
35835else
35836 echo "$as_me: failed program was:" >&5
35837sed 's/^/| /' conftest.$ac_ext >&5
35838
35839 ac_header_preproc=no
35840fi
35841rm -f conftest.err conftest.$ac_ext
35842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35843echo "${ECHO_T}$ac_header_preproc" >&6
35844
35845# So? What about this header?
ac1cb8d3
VS
35846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35847 yes:no: )
a848cd7e
SC
35848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35852 ac_header_preproc=yes
a848cd7e 35853 ;;
ac1cb8d3 35854 no:yes:* )
a848cd7e
SC
35855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35867 (
35868 cat <<\_ASBOX
ac1cb8d3
VS
35869## ----------------------------------------- ##
35870## Report this to wx-dev@lists.wxwidgets.org ##
35871## ----------------------------------------- ##
a848cd7e
SC
35872_ASBOX
35873 ) |
35874 sed "s/^/$as_me: WARNING: /" >&2
35875 ;;
35876esac
35877echo "$as_me:$LINENO: checking for $ac_header" >&5
35878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35879if eval "test \"\${$as_ac_Header+set}\" = set"; then
35880 echo $ECHO_N "(cached) $ECHO_C" >&6
35881else
ac1cb8d3 35882 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35883fi
35884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35886
35887fi
35888if test `eval echo '${'$as_ac_Header'}'` = yes; then
35889 cat >>confdefs.h <<_ACEOF
35890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35891_ACEOF
35892
35893fi
35894
35895done
35896
35897 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35898 wxUSE_JOYSTICK=no
35899 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35900echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35901 fi
35902 fi
35903 fi
35904
35905 if test "$wxUSE_JOYSTICK" = "yes"; then
35906 cat >>confdefs.h <<\_ACEOF
35907#define wxUSE_JOYSTICK 1
35908_ACEOF
35909
35910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35911 fi
35912fi
35913
35914
35915
35916if test "$wxUSE_FONTMAP" = "yes" ; then
35917 cat >>confdefs.h <<\_ACEOF
35918#define wxUSE_FONTMAP 1
35919_ACEOF
35920
35921fi
35922
35923if test "$wxUSE_UNICODE" = "yes" ; then
35924 cat >>confdefs.h <<\_ACEOF
35925#define wxUSE_UNICODE 1
35926_ACEOF
35927
35928
35929 if test "$USE_WIN32" != 1; then
35930 wxUSE_UNICODE_MSLU=no
35931 fi
35932
35933 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35934 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35935echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35936if test "${ac_cv_lib_unicows_main+set}" = set; then
35937 echo $ECHO_N "(cached) $ECHO_C" >&6
35938else
35939 ac_check_lib_save_LIBS=$LIBS
35940LIBS="-lunicows $LIBS"
35941cat >conftest.$ac_ext <<_ACEOF
35942/* confdefs.h. */
35943_ACEOF
35944cat confdefs.h >>conftest.$ac_ext
35945cat >>conftest.$ac_ext <<_ACEOF
35946/* end confdefs.h. */
35947
35948
35949int
35950main ()
35951{
35952main ();
35953 ;
35954 return 0;
35955}
35956_ACEOF
35957rm -f conftest.$ac_objext conftest$ac_exeext
35958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35959 (eval $ac_link) 2>conftest.er1
a848cd7e 35960 ac_status=$?
ac1cb8d3
VS
35961 grep -v '^ *+' conftest.er1 >conftest.err
35962 rm -f conftest.er1
35963 cat conftest.err >&5
a848cd7e
SC
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); } &&
ac1cb8d3
VS
35966 { ac_try='test -z "$ac_c_werror_flag"
35967 || test ! -s conftest.err'
35968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35969 (eval $ac_try) 2>&5
35970 ac_status=$?
35971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972 (exit $ac_status); }; } &&
35973 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35975 (eval $ac_try) 2>&5
35976 ac_status=$?
35977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978 (exit $ac_status); }; }; then
35979 ac_cv_lib_unicows_main=yes
35980else
35981 echo "$as_me: failed program was:" >&5
35982sed 's/^/| /' conftest.$ac_ext >&5
35983
35984ac_cv_lib_unicows_main=no
35985fi
ac1cb8d3
VS
35986rm -f conftest.err conftest.$ac_objext \
35987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35988LIBS=$ac_check_lib_save_LIBS
35989fi
35990echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35991echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35992if test $ac_cv_lib_unicows_main = yes; then
35993
35994 cat >>confdefs.h <<\_ACEOF
35995#define wxUSE_UNICODE_MSLU 1
35996_ACEOF
35997
35998
35999else
36000
36001 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36002 Applications will only run on Windows NT/2000/XP!" >&5
36003echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36004 Applications will only run on Windows NT/2000/XP!" >&2;}
36005 wxUSE_UNICODE_MSLU=no
36006
36007fi
36008
36009 fi
36010fi
36011
36012if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36013 cat >>confdefs.h <<\_ACEOF
36014#define wxUSE_EXPERIMENTAL_PRINTF 1
36015_ACEOF
36016
36017fi
36018
36019
36020if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36021 cat >>confdefs.h <<\_ACEOF
36022#define wxUSE_POSTSCRIPT 1
36023_ACEOF
36024
36025fi
36026
36027cat >>confdefs.h <<\_ACEOF
36028#define wxUSE_AFM_FOR_POSTSCRIPT 1
36029_ACEOF
36030
36031
36032cat >>confdefs.h <<\_ACEOF
36033#define wxUSE_NORMALIZED_PS_FONTS 1
36034_ACEOF
36035
36036
36037
36038if test "$wxUSE_CONSTRAINTS" = "yes"; then
36039 cat >>confdefs.h <<\_ACEOF
36040#define wxUSE_CONSTRAINTS 1
36041_ACEOF
36042
36043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36044fi
36045
8a7b1113
VZ
36046if test "$wxUSE_MDI" = "yes"; then
36047 cat >>confdefs.h <<\_ACEOF
36048#define wxUSE_MDI 1
36049_ACEOF
36050
36051
36052 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36053 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36054#define wxUSE_MDI_ARCHITECTURE 1
36055_ACEOF
36056
8a7b1113
VZ
36057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36058 fi
a848cd7e
SC
36059fi
36060
36061if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36062 cat >>confdefs.h <<\_ACEOF
36063#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36064_ACEOF
36065
36066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36067 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36069 fi
36070fi
36071
36072if test "$wxUSE_HELP" = "yes"; then
36073 cat >>confdefs.h <<\_ACEOF
36074#define wxUSE_HELP 1
36075_ACEOF
36076
36077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36078
36079 if test "$wxUSE_MSW" = 1; then
36080 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36081 cat >>confdefs.h <<\_ACEOF
36082#define wxUSE_MS_HTML_HELP 1
36083_ACEOF
36084
36085 fi
36086 fi
36087
36088 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36089 if test "$wxUSE_HTML" = "yes"; then
36090 cat >>confdefs.h <<\_ACEOF
36091#define wxUSE_WXHTML_HELP 1
36092_ACEOF
36093
36094 else
36095 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36096echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36097 wxUSE_WXHTML_HELP=no
36098 fi
36099 fi
36100fi
36101
36102if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36103 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36104 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36105echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36106 else
36107 cat >>confdefs.h <<\_ACEOF
36108#define wxUSE_PRINTING_ARCHITECTURE 1
36109_ACEOF
36110
36111 fi
36112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36113fi
36114
36115if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36116 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36117echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36118 { (exit 1); exit 1; }; }
36119fi
36120
36121
36122if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36123 -o "$wxUSE_CLIPBOARD" = "yes" \
36124 -o "$wxUSE_OLE" = "yes" \
36125 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36126
36127for ac_header in ole2.h
36128do
36129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36130if eval "test \"\${$as_ac_Header+set}\" = set"; then
36131 echo "$as_me:$LINENO: checking for $ac_header" >&5
36132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36133if eval "test \"\${$as_ac_Header+set}\" = set"; then
36134 echo $ECHO_N "(cached) $ECHO_C" >&6
36135fi
36136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36138else
36139 # Is the header compilable?
36140echo "$as_me:$LINENO: checking $ac_header usability" >&5
36141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36142cat >conftest.$ac_ext <<_ACEOF
36143/* confdefs.h. */
36144_ACEOF
36145cat confdefs.h >>conftest.$ac_ext
36146cat >>conftest.$ac_ext <<_ACEOF
36147/* end confdefs.h. */
36148$ac_includes_default
36149#include <$ac_header>
36150_ACEOF
36151rm -f conftest.$ac_objext
36152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36153 (eval $ac_compile) 2>conftest.er1
a848cd7e 36154 ac_status=$?
ac1cb8d3
VS
36155 grep -v '^ *+' conftest.er1 >conftest.err
36156 rm -f conftest.er1
36157 cat conftest.err >&5
a848cd7e
SC
36158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159 (exit $ac_status); } &&
ac1cb8d3
VS
36160 { ac_try='test -z "$ac_c_werror_flag"
36161 || test ! -s conftest.err'
36162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36163 (eval $ac_try) 2>&5
36164 ac_status=$?
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); }; } &&
36167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36169 (eval $ac_try) 2>&5
36170 ac_status=$?
36171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172 (exit $ac_status); }; }; then
36173 ac_header_compiler=yes
36174else
36175 echo "$as_me: failed program was:" >&5
36176sed 's/^/| /' conftest.$ac_ext >&5
36177
36178ac_header_compiler=no
36179fi
ac1cb8d3 36180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36182echo "${ECHO_T}$ac_header_compiler" >&6
36183
36184# Is the header present?
36185echo "$as_me:$LINENO: checking $ac_header presence" >&5
36186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36187cat >conftest.$ac_ext <<_ACEOF
36188/* confdefs.h. */
36189_ACEOF
36190cat confdefs.h >>conftest.$ac_ext
36191cat >>conftest.$ac_ext <<_ACEOF
36192/* end confdefs.h. */
36193#include <$ac_header>
36194_ACEOF
36195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36197 ac_status=$?
36198 grep -v '^ *+' conftest.er1 >conftest.err
36199 rm -f conftest.er1
36200 cat conftest.err >&5
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); } >/dev/null; then
36203 if test -s conftest.err; then
36204 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36206 else
36207 ac_cpp_err=
36208 fi
36209else
36210 ac_cpp_err=yes
36211fi
36212if test -z "$ac_cpp_err"; then
36213 ac_header_preproc=yes
36214else
36215 echo "$as_me: failed program was:" >&5
36216sed 's/^/| /' conftest.$ac_ext >&5
36217
36218 ac_header_preproc=no
36219fi
36220rm -f conftest.err conftest.$ac_ext
36221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36222echo "${ECHO_T}$ac_header_preproc" >&6
36223
36224# So? What about this header?
ac1cb8d3
VS
36225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36226 yes:no: )
a848cd7e
SC
36227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36231 ac_header_preproc=yes
a848cd7e 36232 ;;
ac1cb8d3 36233 no:yes:* )
a848cd7e
SC
36234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36246 (
36247 cat <<\_ASBOX
ac1cb8d3
VS
36248## ----------------------------------------- ##
36249## Report this to wx-dev@lists.wxwidgets.org ##
36250## ----------------------------------------- ##
a848cd7e
SC
36251_ASBOX
36252 ) |
36253 sed "s/^/$as_me: WARNING: /" >&2
36254 ;;
36255esac
36256echo "$as_me:$LINENO: checking for $ac_header" >&5
36257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36258if eval "test \"\${$as_ac_Header+set}\" = set"; then
36259 echo $ECHO_N "(cached) $ECHO_C" >&6
36260else
ac1cb8d3 36261 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36262fi
36263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36265
36266fi
36267if test `eval echo '${'$as_ac_Header'}'` = yes; then
36268 cat >>confdefs.h <<_ACEOF
36269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36270_ACEOF
36271
36272fi
36273
36274done
36275
36276
36277 if test "$ac_cv_header_ole2_h" = "yes" ; then
36278 if test "$GCC" = yes ; then
36279
36280
36281 ac_ext=cc
36282ac_cpp='$CXXCPP $CPPFLAGS'
36283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36286
36287
36288 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36289echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36290 cat >conftest.$ac_ext <<_ACEOF
36291/* confdefs.h. */
36292_ACEOF
36293cat confdefs.h >>conftest.$ac_ext
36294cat >>conftest.$ac_ext <<_ACEOF
36295/* end confdefs.h. */
36296#include <windows.h>
36297 #include <ole2.h>
36298int
36299main ()
36300{
36301
36302 ;
36303 return 0;
36304}
36305_ACEOF
36306rm -f conftest.$ac_objext
36307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36308 (eval $ac_compile) 2>conftest.er1
a848cd7e 36309 ac_status=$?
ac1cb8d3
VS
36310 grep -v '^ *+' conftest.er1 >conftest.err
36311 rm -f conftest.er1
36312 cat conftest.err >&5
a848cd7e
SC
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); } &&
ac1cb8d3
VS
36315 { ac_try='test -z "$ac_cxx_werror_flag"
36316 || test ! -s conftest.err'
36317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36318 (eval $ac_try) 2>&5
36319 ac_status=$?
36320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); }; } &&
36322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36324 (eval $ac_try) 2>&5
36325 ac_status=$?
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); }; }; then
36328 echo "$as_me:$LINENO: result: no" >&5
36329echo "${ECHO_T}no" >&6
36330else
36331 echo "$as_me: failed program was:" >&5
36332sed 's/^/| /' conftest.$ac_ext >&5
36333
36334echo "$as_me:$LINENO: result: yes" >&5
36335echo "${ECHO_T}yes" >&6
36336 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36337fi
ac1cb8d3 36338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36339 ac_ext=c
36340ac_cpp='$CPP $CPPFLAGS'
36341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36343ac_compiler_gnu=$ac_cv_c_compiler_gnu
36344
36345 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36346 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36347 if test "$wxUSE_OLE" = "yes" ; then
36348 cat >>confdefs.h <<\_ACEOF
36349#define wxUSE_OLE 1
36350_ACEOF
36351
36352 fi
36353 fi
36354
36355 if test "$wxUSE_DATAOBJ" = "yes" ; then
36356 cat >>confdefs.h <<\_ACEOF
36357#define wxUSE_DATAOBJ 1
36358_ACEOF
36359
36360 fi
36361 else
36362 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36363echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36364
36365 wxUSE_CLIPBOARD=no
36366 wxUSE_DRAG_AND_DROP=no
36367 wxUSE_DATAOBJ=no
36368 wxUSE_OLE=no
36369 fi
36370
36371 if test "$wxUSE_METAFILE" = "yes"; then
36372 cat >>confdefs.h <<\_ACEOF
36373#define wxUSE_METAFILE 1
36374_ACEOF
36375
36376
36377 cat >>confdefs.h <<\_ACEOF
36378#define wxUSE_ENH_METAFILE 1
36379_ACEOF
36380
36381 fi
36382fi
36383
36384if test "$wxUSE_IPC" = "yes"; then
36385 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36386 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36387echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36388 fi
36389
36390 cat >>confdefs.h <<\_ACEOF
36391#define wxUSE_IPC 1
36392_ACEOF
36393
36394fi
36395
36396if test "$wxUSE_CLIPBOARD" = "yes"; then
36397 if test "$wxUSE_MGL" = 1; then
36398 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36399echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36400 wxUSE_CLIPBOARD=no
36401 fi
36402
36403 if test "$wxUSE_CLIPBOARD" = "yes"; then
36404 cat >>confdefs.h <<\_ACEOF
36405#define wxUSE_CLIPBOARD 1
36406_ACEOF
36407
36408
36409 cat >>confdefs.h <<\_ACEOF
36410#define wxUSE_DATAOBJ 1
36411_ACEOF
36412
36413 fi
36414fi
36415
36416if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36417 if test "$wxUSE_GTK" = 1; then
36418 if test "$WXGTK12" != 1; then
36419 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36420echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36421 wxUSE_DRAG_AND_DROP=no
36422 fi
36423 fi
36424
36425 if test "$wxUSE_MOTIF" = 1; then
36426 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36427echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36428 wxUSE_DRAG_AND_DROP=no
36429 fi
36430
36431 if test "$wxUSE_X11" = 1; then
36432 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36433echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36434 wxUSE_DRAG_AND_DROP=no
36435 fi
36436
36437 if test "$wxUSE_MGL" = 1; then
36438 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36439echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36440 wxUSE_DRAG_AND_DROP=no
36441 fi
36442
36443 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36444 cat >>confdefs.h <<\_ACEOF
36445#define wxUSE_DRAG_AND_DROP 1
36446_ACEOF
36447
36448 fi
36449
36450fi
36451
36452if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36454fi
36455
36456if test "$wxUSE_SPLINES" = "yes" ; then
36457 cat >>confdefs.h <<\_ACEOF
36458#define wxUSE_SPLINES 1
36459_ACEOF
36460
36461fi
36462
36463
36464USES_CONTROLS=0
36465if test "$wxUSE_CONTROLS" = "yes"; then
36466 USES_CONTROLS=1
36467fi
36468
36469if test "$wxUSE_ACCEL" = "yes"; then
36470 cat >>confdefs.h <<\_ACEOF
36471#define wxUSE_ACCEL 1
36472_ACEOF
36473
36474 USES_CONTROLS=1
36475fi
36476
36477if test "$wxUSE_BUTTON" = "yes"; then
36478 cat >>confdefs.h <<\_ACEOF
36479#define wxUSE_BUTTON 1
36480_ACEOF
36481
36482 USES_CONTROLS=1
36483fi
36484
36485if test "$wxUSE_BMPBUTTON" = "yes"; then
36486 cat >>confdefs.h <<\_ACEOF
36487#define wxUSE_BMPBUTTON 1
36488_ACEOF
36489
36490 USES_CONTROLS=1
36491fi
36492
36493if test "$wxUSE_CALCTRL" = "yes"; then
36494 cat >>confdefs.h <<\_ACEOF
36495#define wxUSE_CALENDARCTRL 1
36496_ACEOF
36497
36498 USES_CONTROLS=1
36499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36500fi
36501
36502if test "$wxUSE_CARET" = "yes"; then
36503 cat >>confdefs.h <<\_ACEOF
36504#define wxUSE_CARET 1
36505_ACEOF
36506
36507 USES_CONTROLS=1
36508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36509fi
36510
36511if test "$wxUSE_COMBOBOX" = "yes"; then
36512 cat >>confdefs.h <<\_ACEOF
36513#define wxUSE_COMBOBOX 1
36514_ACEOF
36515
36516 USES_CONTROLS=1
36517fi
36518
36519if test "$wxUSE_CHOICE" = "yes"; then
36520 cat >>confdefs.h <<\_ACEOF
36521#define wxUSE_CHOICE 1
36522_ACEOF
36523
36524 USES_CONTROLS=1
36525fi
36526
36527if test "$wxUSE_CHECKBOX" = "yes"; then
36528 cat >>confdefs.h <<\_ACEOF
36529#define wxUSE_CHECKBOX 1
36530_ACEOF
36531
36532 USES_CONTROLS=1
36533fi
36534
36535if test "$wxUSE_CHECKLST" = "yes"; then
36536 cat >>confdefs.h <<\_ACEOF
36537#define wxUSE_CHECKLISTBOX 1
36538_ACEOF
36539
36540 USES_CONTROLS=1
36541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36542fi
36543
36544if test "$wxUSE_DISPLAY" = "yes"; then
36545 cat >>confdefs.h <<\_ACEOF
36546#define wxUSE_DISPLAY 1
36547_ACEOF
36548
36549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36550fi
36551
36552if test "$wxUSE_GAUGE" = "yes"; then
36553 cat >>confdefs.h <<\_ACEOF
36554#define wxUSE_GAUGE 1
36555_ACEOF
36556
36557 USES_CONTROLS=1
36558fi
36559
36560if test "$wxUSE_GRID" = "yes"; then
36561 cat >>confdefs.h <<\_ACEOF
36562#define wxUSE_GRID 1
36563_ACEOF
36564
36565 USES_CONTROLS=1
36566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36567fi
36568
36569if test "$wxUSE_IMAGLIST" = "yes"; then
36570 cat >>confdefs.h <<\_ACEOF
36571#define wxUSE_IMAGLIST 1
36572_ACEOF
36573
36574fi
36575
36576if test "$wxUSE_LISTBOOK" = "yes"; then
36577 cat >>confdefs.h <<\_ACEOF
36578#define wxUSE_LISTBOOK 1
36579_ACEOF
36580
36581 USES_CONTROLS=1
36582fi
36583
36584if test "$wxUSE_LISTBOX" = "yes"; then
36585 cat >>confdefs.h <<\_ACEOF
36586#define wxUSE_LISTBOX 1
36587_ACEOF
36588
36589 USES_CONTROLS=1
36590fi
36591
36592if test "$wxUSE_LISTCTRL" = "yes"; then
36593 if test "$wxUSE_IMAGLIST" = "yes"; then
36594 cat >>confdefs.h <<\_ACEOF
36595#define wxUSE_LISTCTRL 1
36596_ACEOF
36597
36598 USES_CONTROLS=1
36599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36600 else
36601 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36602echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36603 fi
36604fi
36605
36606if test "$wxUSE_NOTEBOOK" = "yes"; then
36607 cat >>confdefs.h <<\_ACEOF
36608#define wxUSE_NOTEBOOK 1
36609_ACEOF
36610
36611 USES_CONTROLS=1
36612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36613fi
36614
36615
36616if test "$wxUSE_RADIOBOX" = "yes"; then
36617 cat >>confdefs.h <<\_ACEOF
36618#define wxUSE_RADIOBOX 1
36619_ACEOF
36620
36621 USES_CONTROLS=1
36622fi
36623
36624if test "$wxUSE_RADIOBTN" = "yes"; then
36625 cat >>confdefs.h <<\_ACEOF
36626#define wxUSE_RADIOBTN 1
36627_ACEOF
36628
36629 USES_CONTROLS=1
36630fi
36631
36632if test "$wxUSE_SASH" = "yes"; then
36633 cat >>confdefs.h <<\_ACEOF
36634#define wxUSE_SASH 1
36635_ACEOF
36636
36637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36638fi
36639
36640if test "$wxUSE_SCROLLBAR" = "yes"; then
36641 cat >>confdefs.h <<\_ACEOF
36642#define wxUSE_SCROLLBAR 1
36643_ACEOF
36644
36645 USES_CONTROLS=1
36646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36647fi
36648
36649if test "$wxUSE_SLIDER" = "yes"; then
36650 cat >>confdefs.h <<\_ACEOF
36651#define wxUSE_SLIDER 1
36652_ACEOF
36653
36654 USES_CONTROLS=1
36655fi
36656
36657if test "$wxUSE_SPINBTN" = "yes"; then
36658 cat >>confdefs.h <<\_ACEOF
36659#define wxUSE_SPINBTN 1
36660_ACEOF
36661
36662 USES_CONTROLS=1
36663fi
36664
36665if test "$wxUSE_SPINCTRL" = "yes"; then
36666 cat >>confdefs.h <<\_ACEOF
36667#define wxUSE_SPINCTRL 1
36668_ACEOF
36669
36670 USES_CONTROLS=1
36671fi
36672
36673if test "$wxUSE_SPLITTER" = "yes"; then
36674 cat >>confdefs.h <<\_ACEOF
36675#define wxUSE_SPLITTER 1
36676_ACEOF
36677
36678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36679fi
36680
36681if test "$wxUSE_STATBMP" = "yes"; then
36682 cat >>confdefs.h <<\_ACEOF
36683#define wxUSE_STATBMP 1
36684_ACEOF
36685
36686 USES_CONTROLS=1
36687fi
36688
36689if test "$wxUSE_STATBOX" = "yes"; then
36690 cat >>confdefs.h <<\_ACEOF
36691#define wxUSE_STATBOX 1
36692_ACEOF
36693
36694 USES_CONTROLS=1
36695fi
36696
36697if test "$wxUSE_STATTEXT" = "yes"; then
36698 cat >>confdefs.h <<\_ACEOF
36699#define wxUSE_STATTEXT 1
36700_ACEOF
36701
36702 USES_CONTROLS=1
36703fi
36704
36705if test "$wxUSE_STATLINE" = "yes"; then
36706 cat >>confdefs.h <<\_ACEOF
36707#define wxUSE_STATLINE 1
36708_ACEOF
36709
36710 USES_CONTROLS=1
36711fi
36712
36713if test "$wxUSE_STATUSBAR" = "yes"; then
36714 cat >>confdefs.h <<\_ACEOF
36715#define wxUSE_STATUSBAR 1
36716_ACEOF
36717
36718 USES_CONTROLS=1
36719
36720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36721fi
36722
36723if test "$wxUSE_TABDIALOG" = "yes"; then
36724 cat >>confdefs.h <<\_ACEOF
36725#define wxUSE_TAB_DIALOG 1
36726_ACEOF
36727
36728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36729fi
36730
36731if test "$wxUSE_TEXTCTRL" = "yes"; then
36732 cat >>confdefs.h <<\_ACEOF
36733#define wxUSE_TEXTCTRL 1
36734_ACEOF
36735
36736 USES_CONTROLS=1
36737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36738fi
36739
36740if test "$wxUSE_TOGGLEBTN" = "yes"; then
36741 if test "$wxUSE_COCOA" = 1 ; then
36742 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36743echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36744 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36745 else
36746 if test "$wxUSE_PM" = 1; then
36747 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36748echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36749 wxUSE_TOGGLEBTN=no
36750 fi
a848cd7e
SC
36751 fi
36752 if test "$wxUSE_UNIVERSAL" = "yes"; then
36753 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36754echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36755 wxUSE_TOGGLEBTN=no
36756 fi
36757
36758 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36759 cat >>confdefs.h <<\_ACEOF
36760#define wxUSE_TOGGLEBTN 1
36761_ACEOF
36762
36763 USES_CONTROLS=1
36764 fi
36765fi
36766
36767if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36768 cat >>confdefs.h <<\_ACEOF
36769#define wxUSE_TOOLBAR_SIMPLE 1
36770_ACEOF
36771
36772 wxUSE_TOOLBAR="yes"
36773 USES_CONTROLS=1
36774fi
36775
36776if test "$wxUSE_TOOLBAR" = "yes"; then
36777 cat >>confdefs.h <<\_ACEOF
36778#define wxUSE_TOOLBAR 1
36779_ACEOF
36780
36781 USES_CONTROLS=1
36782
36783 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36784 wxUSE_TOOLBAR_NATIVE="yes"
36785 fi
36786
36787 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36788 cat >>confdefs.h <<\_ACEOF
36789#define wxUSE_TOOLBAR_NATIVE 1
36790_ACEOF
36791
36792 USES_CONTROLS=1
36793 fi
36794
36795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36796fi
36797
36798if test "$wxUSE_TOOLTIPS" = "yes"; then
36799 if test "$wxUSE_MOTIF" = 1; then
36800 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36801echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36802 else
36803 if test "$wxUSE_UNIVERSAL" = "yes"; then
36804 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36805echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36806 else
36807 cat >>confdefs.h <<\_ACEOF
36808#define wxUSE_TOOLTIPS 1
36809_ACEOF
36810
36811 fi
36812 fi
36813fi
36814
36815if test "$wxUSE_TREECTRL" = "yes"; then
36816 if test "$wxUSE_IMAGLIST" = "yes"; then
36817 cat >>confdefs.h <<\_ACEOF
36818#define wxUSE_TREECTRL 1
36819_ACEOF
36820
36821 USES_CONTROLS=1
36822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36823 else
36824 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36825echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36826 fi
36827fi
36828
36829if test "$wxUSE_POPUPWIN" = "yes"; then
36830 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36831 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36832echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36833 else
36834 if test "$wxUSE_PM" = 1; then
36835 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36836echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36837 else
36838 cat >>confdefs.h <<\_ACEOF
36839#define wxUSE_POPUPWIN 1
36840_ACEOF
36841
36842
36843 USES_CONTROLS=1
36844 fi
36845 fi
36846fi
36847
36848if test "$wxUSE_TIPWINDOW" = "yes"; then
36849 if test "$wxUSE_PM" = 1; then
36850 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36851echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36852 else
36853 cat >>confdefs.h <<\_ACEOF
36854#define wxUSE_TIPWINDOW 1
36855_ACEOF
36856
36857 fi
36858fi
36859
36860if test "$USES_CONTROLS" = 1; then
36861 cat >>confdefs.h <<\_ACEOF
36862#define wxUSE_CONTROLS 1
36863_ACEOF
36864
36865fi
36866
36867
36868if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36869 cat >>confdefs.h <<\_ACEOF
36870#define wxUSE_ACCESSIBILITY 1
36871_ACEOF
36872
36873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36874fi
36875
36876if test "$wxUSE_DRAGIMAGE" = "yes"; then
36877 cat >>confdefs.h <<\_ACEOF
36878#define wxUSE_DRAGIMAGE 1
36879_ACEOF
36880
36881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36882fi
36883
36884if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36885 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36886 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36887echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36888 else
36889 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36890#define wxUSE_EXCEPTIONS 1
36891_ACEOF
36892
07bea8f0
VS
36893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36894 fi
a848cd7e
SC
36895fi
36896
36897USE_HTML=0
36898if test "$wxUSE_HTML" = "yes"; then
36899 cat >>confdefs.h <<\_ACEOF
36900#define wxUSE_HTML 1
36901_ACEOF
36902
36903 USE_HTML=1
36904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36905 if test "$wxUSE_MAC" = 1; then
36906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36907 fi
a848cd7e 36908fi
646b6ec1 36909if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36910 if test "$wxUSE_MAC" = 1; then
36911 old_CPPFLAGS="$CPPFLAGS"
36912 CPPFLAGS="$CPPFLAGS -x objective-c++"
36913 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36914echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36915if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36916 echo $ECHO_N "(cached) $ECHO_C" >&6
36917else
36918 cat >conftest.$ac_ext <<_ACEOF
36919/* confdefs.h. */
36920_ACEOF
36921cat confdefs.h >>conftest.$ac_ext
36922cat >>conftest.$ac_ext <<_ACEOF
36923/* end confdefs.h. */
36924#include <Carbon/Carbon.h>
36925
36926#include <WebKit/HIWebView.h>
36927_ACEOF
36928rm -f conftest.$ac_objext
36929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36930 (eval $ac_compile) 2>conftest.er1
36931 ac_status=$?
36932 grep -v '^ *+' conftest.er1 >conftest.err
36933 rm -f conftest.er1
36934 cat conftest.err >&5
36935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936 (exit $ac_status); } &&
36937 { ac_try='test -z "$ac_c_werror_flag"
36938 || test ! -s conftest.err'
36939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36940 (eval $ac_try) 2>&5
36941 ac_status=$?
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); }; } &&
36944 { ac_try='test -s conftest.$ac_objext'
36945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36946 (eval $ac_try) 2>&5
36947 ac_status=$?
36948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 (exit $ac_status); }; }; then
36950 ac_cv_header_WebKit_HIWebView_h=yes
36951else
36952 echo "$as_me: failed program was:" >&5
36953sed 's/^/| /' conftest.$ac_ext >&5
36954
36955ac_cv_header_WebKit_HIWebView_h=no
36956fi
36957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36958fi
36959echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36960echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36961if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36962
36963 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36964#define wxUSE_WEBKIT 1
36965_ACEOF
36966
07bea8f0
VS
36967 WEBKIT_LINK="-framework WebKit"
36968
36969else
36970
36971 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36972echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36973 wxUSE_WEBKIT=no
36974
646b6ec1
VS
36975fi
36976
07bea8f0
VS
36977
36978 CPPFLAGS="$old_CPPFLAGS"
36979 elif test "$wxUSE_COCOA" = 1; then
36980 cat >>confdefs.h <<\_ACEOF
36981#define wxUSE_WEBKIT 1
36982_ACEOF
36983
36984 else
36985 wxUSE_WEBKIT=no
36986 fi
36987fi
36988
36989
a848cd7e
SC
36990if test "$wxUSE_MENUS" = "yes"; then
36991 cat >>confdefs.h <<\_ACEOF
36992#define wxUSE_MENUS 1
36993_ACEOF
36994
36995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36996fi
36997
36998if test "$wxUSE_METAFILE" = "yes"; then
36999 cat >>confdefs.h <<\_ACEOF
37000#define wxUSE_METAFILE 1
37001_ACEOF
37002
37003fi
37004
37005if test "$wxUSE_MIMETYPE" = "yes"; then
37006 cat >>confdefs.h <<\_ACEOF
37007#define wxUSE_MIMETYPE 1
37008_ACEOF
37009
37010fi
37011
37012if test "$wxUSE_MINIFRAME" = "yes"; then
37013 cat >>confdefs.h <<\_ACEOF
37014#define wxUSE_MINIFRAME 1
37015_ACEOF
37016
37017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37018fi
37019
37020if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37021 cat >>confdefs.h <<\_ACEOF
37022#define wxUSE_SYSTEM_OPTIONS 1
37023_ACEOF
37024
37025 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37026 "$TOOLKIT" = "MOTIF"; then
37027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37028 fi
37029fi
37030
37031
37032if test "$wxUSE_VALIDATORS" = "yes"; then
37033 cat >>confdefs.h <<\_ACEOF
37034#define wxUSE_VALIDATORS 1
37035_ACEOF
37036
37037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37038fi
37039
37040if test "$wxUSE_PALETTE" = "yes" ; then
37041 cat >>confdefs.h <<\_ACEOF
37042#define wxUSE_PALETTE 1
37043_ACEOF
37044
37045fi
37046
37047if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37048 LIBS=" -lunicows $LIBS"
37049fi
37050
37051
37052if test "$wxUSE_IMAGE" = "yes" ; then
37053 cat >>confdefs.h <<\_ACEOF
37054#define wxUSE_IMAGE 1
37055_ACEOF
37056
37057
37058 if test "$wxUSE_GIF" = "yes" ; then
37059 cat >>confdefs.h <<\_ACEOF
37060#define wxUSE_GIF 1
37061_ACEOF
37062
37063 fi
37064
37065 if test "$wxUSE_PCX" = "yes" ; then
37066 cat >>confdefs.h <<\_ACEOF
37067#define wxUSE_PCX 1
37068_ACEOF
37069
37070 fi
37071
37072 if test "$wxUSE_IFF" = "yes" ; then
37073 cat >>confdefs.h <<\_ACEOF
37074#define wxUSE_IFF 1
37075_ACEOF
37076
37077 fi
37078
37079 if test "$wxUSE_PNM" = "yes" ; then
37080 cat >>confdefs.h <<\_ACEOF
37081#define wxUSE_PNM 1
37082_ACEOF
37083
37084 fi
37085
37086 if test "$wxUSE_XPM" = "yes" ; then
37087 cat >>confdefs.h <<\_ACEOF
37088#define wxUSE_XPM 1
37089_ACEOF
37090
37091 fi
37092
37093 if test "$wxUSE_ICO_CUR" = "yes" ; then
37094 cat >>confdefs.h <<\_ACEOF
37095#define wxUSE_ICO_CUR 1
37096_ACEOF
37097
37098 fi
37099fi
37100
37101
37102if test "$wxUSE_CHOICEDLG" = "yes"; then
37103 cat >>confdefs.h <<\_ACEOF
37104#define wxUSE_CHOICEDLG 1
37105_ACEOF
37106
37107fi
37108
37109if test "$wxUSE_COLOURDLG" = "yes"; then
37110 cat >>confdefs.h <<\_ACEOF
37111#define wxUSE_COLOURDLG 1
37112_ACEOF
37113
37114fi
37115
37116if test "$wxUSE_FILEDLG" = "yes"; then
37117 cat >>confdefs.h <<\_ACEOF
37118#define wxUSE_FILEDLG 1
37119_ACEOF
37120
37121fi
37122
37123if test "$wxUSE_FINDREPLDLG" = "yes"; then
37124 cat >>confdefs.h <<\_ACEOF
37125#define wxUSE_FINDREPLDLG 1
37126_ACEOF
37127
37128fi
37129
37130if test "$wxUSE_FONTDLG" = "yes"; then
37131 cat >>confdefs.h <<\_ACEOF
37132#define wxUSE_FONTDLG 1
37133_ACEOF
37134
37135fi
37136
37137if test "$wxUSE_DIRDLG" = "yes"; then
37138 if test "$wxUSE_TREECTRL" != "yes"; then
37139 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37140echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37141 else
37142 cat >>confdefs.h <<\_ACEOF
37143#define wxUSE_DIRDLG 1
37144_ACEOF
37145
37146 fi
37147fi
37148
37149if test "$wxUSE_MSGDLG" = "yes"; then
37150 cat >>confdefs.h <<\_ACEOF
37151#define wxUSE_MSGDLG 1
37152_ACEOF
37153
37154fi
37155
37156if test "$wxUSE_NUMBERDLG" = "yes"; then
37157 cat >>confdefs.h <<\_ACEOF
37158#define wxUSE_NUMBERDLG 1
37159_ACEOF
37160
37161fi
37162
37163if test "$wxUSE_PROGRESSDLG" = "yes"; then
37164 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37165 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37166echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37167 else
37168 cat >>confdefs.h <<\_ACEOF
37169#define wxUSE_PROGRESSDLG 1
37170_ACEOF
37171
37172 fi
37173fi
37174
37175if test "$wxUSE_SPLASH" = "yes"; then
37176 cat >>confdefs.h <<\_ACEOF
37177#define wxUSE_SPLASH 1
37178_ACEOF
37179
37180fi
37181
37182if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37183 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37184 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37185echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37186 else
37187 cat >>confdefs.h <<\_ACEOF
37188#define wxUSE_STARTUP_TIPS 1
37189_ACEOF
37190
37191 fi
37192fi
37193
37194if test "$wxUSE_TEXTDLG" = "yes"; then
37195 cat >>confdefs.h <<\_ACEOF
37196#define wxUSE_TEXTDLG 1
37197_ACEOF
37198
37199fi
37200
37201if test "$wxUSE_WIZARDDLG" = "yes"; then
37202 cat >>confdefs.h <<\_ACEOF
37203#define wxUSE_WIZARDDLG 1
37204_ACEOF
37205
37206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37207fi
37208
37209
37210if test "$cross_compiling" = "yes"; then
37211 OSINFO="\"$host\""
37212else
37213 OSINFO=`uname -s -r -m`
37214 OSINFO="\"$OSINFO\""
37215fi
37216
37217cat >>confdefs.h <<_ACEOF
37218#define WXWIN_OS_DESCRIPTION $OSINFO
37219_ACEOF
37220
37221
37222
37223if test "x$prefix" != "xNONE"; then
37224 wxPREFIX=$prefix
37225else
37226 wxPREFIX=$ac_default_prefix
37227fi
37228
37229cat >>confdefs.h <<_ACEOF
37230#define wxINSTALL_PREFIX "$wxPREFIX"
37231_ACEOF
37232
37233
37234top_builddir_wxconfig=`pwd`
37235
37236
37237
37238CORE_BASE_LIBS="net base"
37239CORE_GUI_LIBS="adv core"
37240
37241if test "$wxUSE_XML" = "yes" ; then
37242 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37243fi
37244if test "$wxUSE_ODBC" != "no" ; then
37245 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37246 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37247fi
37248if test "$wxUSE_HTML" = "yes" ; then
37249 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37250fi
37251
37252if test "$wxUSE_GUI" != "yes"; then
37253 CORE_GUI_LIBS=""
37254fi
37255
37256
37257
37258
37259
37260
37261
37262
37263if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37264 if test "$wxUSE_SOUND" = "yes"; then
37265 LDFLAGS="$LDFLAGS -framework QuickTime"
37266 fi
37267 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37268fi
37269if test "$wxUSE_COCOA" = 1 ; then
37270 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37271fi
37272
37273
37274LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37275
37276have_cos=0
37277have_floor=0
37278
37279for ac_func in cos
37280do
37281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37282echo "$as_me:$LINENO: checking for $ac_func" >&5
37283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37284if eval "test \"\${$as_ac_var+set}\" = set"; then
37285 echo $ECHO_N "(cached) $ECHO_C" >&6
37286else
37287 cat >conftest.$ac_ext <<_ACEOF
37288/* confdefs.h. */
37289_ACEOF
37290cat confdefs.h >>conftest.$ac_ext
37291cat >>conftest.$ac_ext <<_ACEOF
37292/* end confdefs.h. */
ac1cb8d3
VS
37293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37295#define $ac_func innocuous_$ac_func
37296
a848cd7e
SC
37297/* System header to define __stub macros and hopefully few prototypes,
37298 which can conflict with char $ac_func (); below.
37299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37301
a848cd7e
SC
37302#ifdef __STDC__
37303# include <limits.h>
37304#else
37305# include <assert.h>
37306#endif
ac1cb8d3
VS
37307
37308#undef $ac_func
37309
a848cd7e
SC
37310/* Override any gcc2 internal prototype to avoid an error. */
37311#ifdef __cplusplus
37312extern "C"
37313{
37314#endif
37315/* We use char because int might match the return type of a gcc2
37316 builtin and then its argument prototype would still apply. */
37317char $ac_func ();
37318/* The GNU C library defines this for functions which it implements
37319 to always fail with ENOSYS. Some functions are actually named
37320 something starting with __ and the normal name is an alias. */
37321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37322choke me
37323#else
37324char (*f) () = $ac_func;
37325#endif
37326#ifdef __cplusplus
37327}
37328#endif
37329
37330int
37331main ()
37332{
37333return f != $ac_func;
37334 ;
37335 return 0;
37336}
37337_ACEOF
37338rm -f conftest.$ac_objext conftest$ac_exeext
37339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37340 (eval $ac_link) 2>conftest.er1
a848cd7e 37341 ac_status=$?
ac1cb8d3
VS
37342 grep -v '^ *+' conftest.er1 >conftest.err
37343 rm -f conftest.er1
37344 cat conftest.err >&5
a848cd7e
SC
37345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346 (exit $ac_status); } &&
ac1cb8d3
VS
37347 { ac_try='test -z "$ac_c_werror_flag"
37348 || test ! -s conftest.err'
37349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350 (eval $ac_try) 2>&5
37351 ac_status=$?
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; } &&
37354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37356 (eval $ac_try) 2>&5
37357 ac_status=$?
37358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359 (exit $ac_status); }; }; then
37360 eval "$as_ac_var=yes"
37361else
37362 echo "$as_me: failed program was:" >&5
37363sed 's/^/| /' conftest.$ac_ext >&5
37364
37365eval "$as_ac_var=no"
37366fi
ac1cb8d3
VS
37367rm -f conftest.err conftest.$ac_objext \
37368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37369fi
37370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37372if test `eval echo '${'$as_ac_var'}'` = yes; then
37373 cat >>confdefs.h <<_ACEOF
37374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37375_ACEOF
37376 have_cos=1
37377fi
37378done
37379
37380
37381for ac_func in floor
37382do
37383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37384echo "$as_me:$LINENO: checking for $ac_func" >&5
37385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37386if eval "test \"\${$as_ac_var+set}\" = set"; then
37387 echo $ECHO_N "(cached) $ECHO_C" >&6
37388else
37389 cat >conftest.$ac_ext <<_ACEOF
37390/* confdefs.h. */
37391_ACEOF
37392cat confdefs.h >>conftest.$ac_ext
37393cat >>conftest.$ac_ext <<_ACEOF
37394/* end confdefs.h. */
ac1cb8d3
VS
37395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37397#define $ac_func innocuous_$ac_func
37398
a848cd7e
SC
37399/* System header to define __stub macros and hopefully few prototypes,
37400 which can conflict with char $ac_func (); below.
37401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37402 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37403
a848cd7e
SC
37404#ifdef __STDC__
37405# include <limits.h>
37406#else
37407# include <assert.h>
37408#endif
ac1cb8d3
VS
37409
37410#undef $ac_func
37411
a848cd7e
SC
37412/* Override any gcc2 internal prototype to avoid an error. */
37413#ifdef __cplusplus
37414extern "C"
37415{
37416#endif
37417/* We use char because int might match the return type of a gcc2
37418 builtin and then its argument prototype would still apply. */
37419char $ac_func ();
37420/* The GNU C library defines this for functions which it implements
37421 to always fail with ENOSYS. Some functions are actually named
37422 something starting with __ and the normal name is an alias. */
37423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37424choke me
37425#else
37426char (*f) () = $ac_func;
37427#endif
37428#ifdef __cplusplus
37429}
37430#endif
37431
37432int
37433main ()
37434{
37435return f != $ac_func;
37436 ;
37437 return 0;
37438}
37439_ACEOF
37440rm -f conftest.$ac_objext conftest$ac_exeext
37441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37442 (eval $ac_link) 2>conftest.er1
a848cd7e 37443 ac_status=$?
ac1cb8d3
VS
37444 grep -v '^ *+' conftest.er1 >conftest.err
37445 rm -f conftest.er1
37446 cat conftest.err >&5
a848cd7e
SC
37447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448 (exit $ac_status); } &&
ac1cb8d3
VS
37449 { ac_try='test -z "$ac_c_werror_flag"
37450 || test ! -s conftest.err'
37451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37452 (eval $ac_try) 2>&5
37453 ac_status=$?
37454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37455 (exit $ac_status); }; } &&
37456 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37458 (eval $ac_try) 2>&5
37459 ac_status=$?
37460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461 (exit $ac_status); }; }; then
37462 eval "$as_ac_var=yes"
37463else
37464 echo "$as_me: failed program was:" >&5
37465sed 's/^/| /' conftest.$ac_ext >&5
37466
37467eval "$as_ac_var=no"
37468fi
ac1cb8d3
VS
37469rm -f conftest.err conftest.$ac_objext \
37470 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37471fi
37472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37474if test `eval echo '${'$as_ac_var'}'` = yes; then
37475 cat >>confdefs.h <<_ACEOF
37476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37477_ACEOF
37478 have_floor=1
37479fi
37480done
37481
37482echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37483echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37484if test "$have_cos" = 1 -a "$have_floor" = 1; then
37485 echo "$as_me:$LINENO: result: yes" >&5
37486echo "${ECHO_T}yes" >&6
37487else
37488 echo "$as_me:$LINENO: result: no" >&5
37489echo "${ECHO_T}no" >&6
37490 LIBS="$LIBS -lm"
37491 # use different functions to avoid configure caching
37492 have_sin=0
37493 have_ceil=0
37494
37495for ac_func in sin
37496do
37497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37498echo "$as_me:$LINENO: checking for $ac_func" >&5
37499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37500if eval "test \"\${$as_ac_var+set}\" = set"; then
37501 echo $ECHO_N "(cached) $ECHO_C" >&6
37502else
37503 cat >conftest.$ac_ext <<_ACEOF
37504/* confdefs.h. */
37505_ACEOF
37506cat confdefs.h >>conftest.$ac_ext
37507cat >>conftest.$ac_ext <<_ACEOF
37508/* end confdefs.h. */
ac1cb8d3
VS
37509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37511#define $ac_func innocuous_$ac_func
37512
a848cd7e
SC
37513/* System header to define __stub macros and hopefully few prototypes,
37514 which can conflict with char $ac_func (); below.
37515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37516 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37517
a848cd7e
SC
37518#ifdef __STDC__
37519# include <limits.h>
37520#else
37521# include <assert.h>
37522#endif
ac1cb8d3
VS
37523
37524#undef $ac_func
37525
a848cd7e
SC
37526/* Override any gcc2 internal prototype to avoid an error. */
37527#ifdef __cplusplus
37528extern "C"
37529{
37530#endif
37531/* We use char because int might match the return type of a gcc2
37532 builtin and then its argument prototype would still apply. */
37533char $ac_func ();
37534/* The GNU C library defines this for functions which it implements
37535 to always fail with ENOSYS. Some functions are actually named
37536 something starting with __ and the normal name is an alias. */
37537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37538choke me
37539#else
37540char (*f) () = $ac_func;
37541#endif
37542#ifdef __cplusplus
37543}
37544#endif
37545
37546int
37547main ()
37548{
37549return f != $ac_func;
37550 ;
37551 return 0;
37552}
37553_ACEOF
37554rm -f conftest.$ac_objext conftest$ac_exeext
37555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37556 (eval $ac_link) 2>conftest.er1
a848cd7e 37557 ac_status=$?
ac1cb8d3
VS
37558 grep -v '^ *+' conftest.er1 >conftest.err
37559 rm -f conftest.er1
37560 cat conftest.err >&5
a848cd7e
SC
37561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562 (exit $ac_status); } &&
ac1cb8d3
VS
37563 { ac_try='test -z "$ac_c_werror_flag"
37564 || test ! -s conftest.err'
37565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37566 (eval $ac_try) 2>&5
37567 ac_status=$?
37568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37569 (exit $ac_status); }; } &&
37570 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37572 (eval $ac_try) 2>&5
37573 ac_status=$?
37574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575 (exit $ac_status); }; }; then
37576 eval "$as_ac_var=yes"
37577else
37578 echo "$as_me: failed program was:" >&5
37579sed 's/^/| /' conftest.$ac_ext >&5
37580
37581eval "$as_ac_var=no"
37582fi
ac1cb8d3
VS
37583rm -f conftest.err conftest.$ac_objext \
37584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37585fi
37586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37588if test `eval echo '${'$as_ac_var'}'` = yes; then
37589 cat >>confdefs.h <<_ACEOF
37590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37591_ACEOF
37592 have_sin=1
37593fi
37594done
37595
37596
37597for ac_func in ceil
37598do
37599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37600echo "$as_me:$LINENO: checking for $ac_func" >&5
37601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37602if eval "test \"\${$as_ac_var+set}\" = set"; then
37603 echo $ECHO_N "(cached) $ECHO_C" >&6
37604else
37605 cat >conftest.$ac_ext <<_ACEOF
37606/* confdefs.h. */
37607_ACEOF
37608cat confdefs.h >>conftest.$ac_ext
37609cat >>conftest.$ac_ext <<_ACEOF
37610/* end confdefs.h. */
ac1cb8d3
VS
37611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37613#define $ac_func innocuous_$ac_func
37614
a848cd7e
SC
37615/* System header to define __stub macros and hopefully few prototypes,
37616 which can conflict with char $ac_func (); below.
37617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37618 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37619
a848cd7e
SC
37620#ifdef __STDC__
37621# include <limits.h>
37622#else
37623# include <assert.h>
37624#endif
ac1cb8d3
VS
37625
37626#undef $ac_func
37627
a848cd7e
SC
37628/* Override any gcc2 internal prototype to avoid an error. */
37629#ifdef __cplusplus
37630extern "C"
37631{
37632#endif
37633/* We use char because int might match the return type of a gcc2
37634 builtin and then its argument prototype would still apply. */
37635char $ac_func ();
37636/* The GNU C library defines this for functions which it implements
37637 to always fail with ENOSYS. Some functions are actually named
37638 something starting with __ and the normal name is an alias. */
37639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37640choke me
37641#else
37642char (*f) () = $ac_func;
37643#endif
37644#ifdef __cplusplus
37645}
37646#endif
37647
37648int
37649main ()
37650{
37651return f != $ac_func;
37652 ;
37653 return 0;
37654}
37655_ACEOF
37656rm -f conftest.$ac_objext conftest$ac_exeext
37657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37658 (eval $ac_link) 2>conftest.er1
a848cd7e 37659 ac_status=$?
ac1cb8d3
VS
37660 grep -v '^ *+' conftest.er1 >conftest.err
37661 rm -f conftest.er1
37662 cat conftest.err >&5
a848cd7e
SC
37663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37664 (exit $ac_status); } &&
ac1cb8d3
VS
37665 { ac_try='test -z "$ac_c_werror_flag"
37666 || test ! -s conftest.err'
37667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668 (eval $ac_try) 2>&5
37669 ac_status=$?
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); }; } &&
37672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37675 ac_status=$?
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; }; then
37678 eval "$as_ac_var=yes"
37679else
37680 echo "$as_me: failed program was:" >&5
37681sed 's/^/| /' conftest.$ac_ext >&5
37682
37683eval "$as_ac_var=no"
37684fi
ac1cb8d3
VS
37685rm -f conftest.err conftest.$ac_objext \
37686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37687fi
37688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37690if test `eval echo '${'$as_ac_var'}'` = yes; then
37691 cat >>confdefs.h <<_ACEOF
37692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37693_ACEOF
37694 have_ceil=1
37695fi
37696done
37697
37698 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37699echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37700 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37701 echo "$as_me:$LINENO: result: yes" >&5
37702echo "${ECHO_T}yes" >&6
37703 else
37704 echo "$as_me:$LINENO: result: no" >&5
37705echo "${ECHO_T}no" >&6
37706 # not sure we should warn the user, crash, etc.
37707 fi
37708fi
37709
37710if test "$wxUSE_GUI" = "yes"; then
37711
37712
37713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37714 drawing dynamic erase event exec font image \
37715 minimal propsize rotate shaped widgets render"
37716
37717 if test "$wxUSE_MONOLITHIC" != "yes"; then
37718 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37719 fi
37720else
37721 SAMPLES_SUBDIRS="console"
37722fi
37723
37724
37725INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37726-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37727
37728if test "$GXX" = yes ; then
37729 CXXWARNINGS="-Wall"
37730 fi
37731
37732EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37733
37734CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37735CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37736CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37737
37738
37739LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37740EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37741EXTRALIBS_XML="$EXPAT_LINK"
37742EXTRALIBS_HTML="$MSPACK_LINK"
37743EXTRALIBS_ODBC="$ODBC_LINK"
37744if test "$wxUSE_GUI" = "yes"; then
07bea8f0 37745 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK | sed 's/ \+/ /g'`
a848cd7e
SC
37746fi
37747if test "$wxUSE_OPENGL" = "yes"; then
37748 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37749fi
37750
37751LDFLAGS="$LDFLAGS $PROFILE"
37752
37753if test "$wxUSE_GTK" = 1; then
37754 WXCONFIG_INCLUDE=
37755else
37756 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37757fi
37758
37759WXCONFIG_EXTRALIBS="$LIBS"
37760
37761if test "$wxUSE_REGEX" = "builtin" ; then
37762 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37763fi
37764if test "$wxUSE_EXPAT" = "builtin" ; then
37765 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37766fi
37767if test "$wxUSE_ODBC" = "builtin" ; then
37768 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37769fi
37770if test "$wxUSE_LIBTIFF" = "builtin" ; then
37771 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37772fi
37773if test "$wxUSE_LIBJPEG" = "builtin" ; then
37774 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37775fi
37776if test "$wxUSE_LIBPNG" = "builtin" ; then
37777 wxconfig_3rdparty="$wxconfig_3rdparty png"
37778fi
37779if test "$wxUSE_ZLIB" = "builtin" ; then
37780 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37781fi
37782if test "$wxUSE_ODBC" = "builtin" ; then
37783 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37784fi
37785
37786for i in $wxconfig_3rdparty ; do
37787 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37788done
37789
37790
37791if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37792 WXUNIV=1
37793else
37794 WXUNIV=0
37795fi
37796
37797
37798
37799
37800
37801
37802
37803
37804
37805if test $wxUSE_MONOLITHIC = "yes" ; then
37806 MONOLITHIC=1
37807else
37808 MONOLITHIC=0
37809fi
37810
37811if test $wxUSE_PLUGINS = "yes" ; then
37812 USE_PLUGINS=1
37813else
37814 USE_PLUGINS=0
37815fi
37816
37817if test $wxUSE_ODBC != "no" ; then
37818 USE_ODBC=1
37819else
37820 USE_ODBC=0
37821fi
37822
37823if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37824 OFFICIAL_BUILD=1
37825else
37826 OFFICIAL_BUILD=0
37827fi
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844
37845
37846
37847
37848
37849TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859 if test "x$BAKEFILE_HOST" = "x"; then
37860 BAKEFILE_HOST="${host}"
37861 fi
37862
37863 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37864
37865 if test -n "$ac_tool_prefix"; then
37866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37867set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37868echo "$as_me:$LINENO: checking for $ac_word" >&5
37869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37870if test "${ac_cv_prog_RANLIB+set}" = set; then
37871 echo $ECHO_N "(cached) $ECHO_C" >&6
37872else
37873 if test -n "$RANLIB"; then
37874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37875else
37876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37877for as_dir in $PATH
37878do
37879 IFS=$as_save_IFS
37880 test -z "$as_dir" && as_dir=.
37881 for ac_exec_ext in '' $ac_executable_extensions; do
37882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37885 break 2
37886 fi
37887done
37888done
37889
37890fi
37891fi
37892RANLIB=$ac_cv_prog_RANLIB
37893if test -n "$RANLIB"; then
37894 echo "$as_me:$LINENO: result: $RANLIB" >&5
37895echo "${ECHO_T}$RANLIB" >&6
37896else
37897 echo "$as_me:$LINENO: result: no" >&5
37898echo "${ECHO_T}no" >&6
37899fi
37900
37901fi
37902if test -z "$ac_cv_prog_RANLIB"; then
37903 ac_ct_RANLIB=$RANLIB
37904 # Extract the first word of "ranlib", so it can be a program name with args.
37905set dummy ranlib; ac_word=$2
37906echo "$as_me:$LINENO: checking for $ac_word" >&5
37907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37908if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37909 echo $ECHO_N "(cached) $ECHO_C" >&6
37910else
37911 if test -n "$ac_ct_RANLIB"; then
37912 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37913else
37914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37915for as_dir in $PATH
37916do
37917 IFS=$as_save_IFS
37918 test -z "$as_dir" && as_dir=.
37919 for ac_exec_ext in '' $ac_executable_extensions; do
37920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37921 ac_cv_prog_ac_ct_RANLIB="ranlib"
37922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37923 break 2
37924 fi
37925done
37926done
37927
37928 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37929fi
37930fi
37931ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37932if test -n "$ac_ct_RANLIB"; then
37933 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37934echo "${ECHO_T}$ac_ct_RANLIB" >&6
37935else
37936 echo "$as_me:$LINENO: result: no" >&5
37937echo "${ECHO_T}no" >&6
37938fi
37939
37940 RANLIB=$ac_ct_RANLIB
37941else
37942 RANLIB="$ac_cv_prog_RANLIB"
37943fi
37944
37945 # Find a good install program. We prefer a C program (faster),
37946# so one script is as good as another. But avoid the broken or
37947# incompatible versions:
37948# SysV /etc/install, /usr/sbin/install
37949# SunOS /usr/etc/install
37950# IRIX /sbin/install
37951# AIX /bin/install
37952# AmigaOS /C/install, which installs bootblocks on floppy discs
37953# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37954# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37955# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37956# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37957# ./install, which can be erroneously created by make from ./install.sh.
37958echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37959echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37960if test -z "$INSTALL"; then
37961if test "${ac_cv_path_install+set}" = set; then
37962 echo $ECHO_N "(cached) $ECHO_C" >&6
37963else
37964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37965for as_dir in $PATH
37966do
37967 IFS=$as_save_IFS
37968 test -z "$as_dir" && as_dir=.
37969 # Account for people who put trailing slashes in PATH elements.
37970case $as_dir/ in
37971 ./ | .// | /cC/* | \
37972 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37973 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37974 /usr/ucb/* ) ;;
37975 *)
37976 # OSF1 and SCO ODT 3.0 have their own names for install.
37977 # Don't use installbsd from OSF since it installs stuff as root
37978 # by default.
37979 for ac_prog in ginstall scoinst install; do
37980 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37981 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37982 if test $ac_prog = install &&
37983 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37984 # AIX install. It has an incompatible calling convention.
37985 :
37986 elif test $ac_prog = install &&
37987 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37988 # program-specific install script used by HP pwplus--don't use.
37989 :
37990 else
37991 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37992 break 3
37993 fi
37994 fi
a848cd7e
SC
37995 done
37996 done
37997 ;;
37998esac
37999done
38000
38001
38002fi
38003 if test "${ac_cv_path_install+set}" = set; then
38004 INSTALL=$ac_cv_path_install
38005 else
38006 # As a last resort, use the slow shell script. We don't cache a
38007 # path for INSTALL within a source directory, because that will
38008 # break other packages using the cache if that directory is
38009 # removed, or if the path is relative.
38010 INSTALL=$ac_install_sh
38011 fi
38012fi
38013echo "$as_me:$LINENO: result: $INSTALL" >&5
38014echo "${ECHO_T}$INSTALL" >&6
38015
38016# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38017# It thinks the first close brace ends the variable substitution.
38018test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38019
38020test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38021
38022test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38023
38024 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38025echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38026LN_S=$as_ln_s
38027if test "$LN_S" = "ln -s"; then
38028 echo "$as_me:$LINENO: result: yes" >&5
38029echo "${ECHO_T}yes" >&6
38030else
38031 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38032echo "${ECHO_T}no, using $LN_S" >&6
38033fi
38034
38035
38036 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38037echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38038set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38039if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38040 echo $ECHO_N "(cached) $ECHO_C" >&6
38041else
38042 cat >conftest.make <<\_ACEOF
38043all:
38044 @echo 'ac_maketemp="$(MAKE)"'
38045_ACEOF
38046# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38047eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38048if test -n "$ac_maketemp"; then
38049 eval ac_cv_prog_make_${ac_make}_set=yes
38050else
38051 eval ac_cv_prog_make_${ac_make}_set=no
38052fi
38053rm -f conftest.make
38054fi
38055if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38056 echo "$as_me:$LINENO: result: yes" >&5
38057echo "${ECHO_T}yes" >&6
38058 SET_MAKE=
38059else
38060 echo "$as_me:$LINENO: result: no" >&5
38061echo "${ECHO_T}no" >&6
38062 SET_MAKE="MAKE=${MAKE-make}"
38063fi
38064
38065
38066
38067 if test -n "$ac_tool_prefix"; then
38068 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38069set dummy ${ac_tool_prefix}ar; ac_word=$2
38070echo "$as_me:$LINENO: checking for $ac_word" >&5
38071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38072if test "${ac_cv_prog_AR+set}" = set; then
38073 echo $ECHO_N "(cached) $ECHO_C" >&6
38074else
38075 if test -n "$AR"; then
38076 ac_cv_prog_AR="$AR" # Let the user override the test.
38077else
38078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38079for as_dir in $PATH
38080do
38081 IFS=$as_save_IFS
38082 test -z "$as_dir" && as_dir=.
38083 for ac_exec_ext in '' $ac_executable_extensions; do
38084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38085 ac_cv_prog_AR="${ac_tool_prefix}ar"
38086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38087 break 2
38088 fi
38089done
38090done
38091
38092fi
38093fi
38094AR=$ac_cv_prog_AR
38095if test -n "$AR"; then
38096 echo "$as_me:$LINENO: result: $AR" >&5
38097echo "${ECHO_T}$AR" >&6
38098else
38099 echo "$as_me:$LINENO: result: no" >&5
38100echo "${ECHO_T}no" >&6
38101fi
38102
38103fi
38104if test -z "$ac_cv_prog_AR"; then
38105 ac_ct_AR=$AR
38106 # Extract the first word of "ar", so it can be a program name with args.
38107set dummy ar; ac_word=$2
38108echo "$as_me:$LINENO: checking for $ac_word" >&5
38109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38110if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38111 echo $ECHO_N "(cached) $ECHO_C" >&6
38112else
38113 if test -n "$ac_ct_AR"; then
38114 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38115else
38116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38117for as_dir in $PATH
38118do
38119 IFS=$as_save_IFS
38120 test -z "$as_dir" && as_dir=.
38121 for ac_exec_ext in '' $ac_executable_extensions; do
38122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38123 ac_cv_prog_ac_ct_AR="ar"
38124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38125 break 2
38126 fi
38127done
38128done
38129
38130 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38131fi
38132fi
38133ac_ct_AR=$ac_cv_prog_ac_ct_AR
38134if test -n "$ac_ct_AR"; then
38135 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38136echo "${ECHO_T}$ac_ct_AR" >&6
38137else
38138 echo "$as_me:$LINENO: result: no" >&5
38139echo "${ECHO_T}no" >&6
38140fi
38141
38142 AR=$ac_ct_AR
38143else
38144 AR="$ac_cv_prog_AR"
38145fi
38146
38147 if test -n "$ac_tool_prefix"; then
38148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38149set dummy ${ac_tool_prefix}strip; ac_word=$2
38150echo "$as_me:$LINENO: checking for $ac_word" >&5
38151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38152if test "${ac_cv_prog_STRIP+set}" = set; then
38153 echo $ECHO_N "(cached) $ECHO_C" >&6
38154else
38155 if test -n "$STRIP"; then
38156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38157else
38158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38159for as_dir in $PATH
38160do
38161 IFS=$as_save_IFS
38162 test -z "$as_dir" && as_dir=.
38163 for ac_exec_ext in '' $ac_executable_extensions; do
38164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38165 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38167 break 2
38168 fi
38169done
38170done
38171
38172fi
38173fi
38174STRIP=$ac_cv_prog_STRIP
38175if test -n "$STRIP"; then
38176 echo "$as_me:$LINENO: result: $STRIP" >&5
38177echo "${ECHO_T}$STRIP" >&6
38178else
38179 echo "$as_me:$LINENO: result: no" >&5
38180echo "${ECHO_T}no" >&6
38181fi
38182
38183fi
38184if test -z "$ac_cv_prog_STRIP"; then
38185 ac_ct_STRIP=$STRIP
38186 # Extract the first word of "strip", so it can be a program name with args.
38187set dummy strip; ac_word=$2
38188echo "$as_me:$LINENO: checking for $ac_word" >&5
38189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38190if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38191 echo $ECHO_N "(cached) $ECHO_C" >&6
38192else
38193 if test -n "$ac_ct_STRIP"; then
38194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38195else
38196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38197for as_dir in $PATH
38198do
38199 IFS=$as_save_IFS
38200 test -z "$as_dir" && as_dir=.
38201 for ac_exec_ext in '' $ac_executable_extensions; do
38202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38203 ac_cv_prog_ac_ct_STRIP="strip"
38204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38205 break 2
38206 fi
38207done
38208done
38209
38210 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38211fi
38212fi
38213ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38214if test -n "$ac_ct_STRIP"; then
38215 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38216echo "${ECHO_T}$ac_ct_STRIP" >&6
38217else
38218 echo "$as_me:$LINENO: result: no" >&5
38219echo "${ECHO_T}no" >&6
38220fi
38221
38222 STRIP=$ac_ct_STRIP
38223else
38224 STRIP="$ac_cv_prog_STRIP"
38225fi
38226
38227 if test -n "$ac_tool_prefix"; then
38228 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38229set dummy ${ac_tool_prefix}nm; ac_word=$2
38230echo "$as_me:$LINENO: checking for $ac_word" >&5
38231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38232if test "${ac_cv_prog_NM+set}" = set; then
38233 echo $ECHO_N "(cached) $ECHO_C" >&6
38234else
38235 if test -n "$NM"; then
38236 ac_cv_prog_NM="$NM" # Let the user override the test.
38237else
38238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38239for as_dir in $PATH
38240do
38241 IFS=$as_save_IFS
38242 test -z "$as_dir" && as_dir=.
38243 for ac_exec_ext in '' $ac_executable_extensions; do
38244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38245 ac_cv_prog_NM="${ac_tool_prefix}nm"
38246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38247 break 2
38248 fi
38249done
38250done
38251
38252fi
38253fi
38254NM=$ac_cv_prog_NM
38255if test -n "$NM"; then
38256 echo "$as_me:$LINENO: result: $NM" >&5
38257echo "${ECHO_T}$NM" >&6
38258else
38259 echo "$as_me:$LINENO: result: no" >&5
38260echo "${ECHO_T}no" >&6
38261fi
38262
38263fi
38264if test -z "$ac_cv_prog_NM"; then
38265 ac_ct_NM=$NM
38266 # Extract the first word of "nm", so it can be a program name with args.
38267set dummy nm; ac_word=$2
38268echo "$as_me:$LINENO: checking for $ac_word" >&5
38269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38270if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38271 echo $ECHO_N "(cached) $ECHO_C" >&6
38272else
38273 if test -n "$ac_ct_NM"; then
38274 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38275else
38276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38277for as_dir in $PATH
38278do
38279 IFS=$as_save_IFS
38280 test -z "$as_dir" && as_dir=.
38281 for ac_exec_ext in '' $ac_executable_extensions; do
38282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38283 ac_cv_prog_ac_ct_NM="nm"
38284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38285 break 2
38286 fi
38287done
38288done
38289
38290 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38291fi
38292fi
38293ac_ct_NM=$ac_cv_prog_ac_ct_NM
38294if test -n "$ac_ct_NM"; then
38295 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38296echo "${ECHO_T}$ac_ct_NM" >&6
38297else
38298 echo "$as_me:$LINENO: result: no" >&5
38299echo "${ECHO_T}no" >&6
38300fi
38301
38302 NM=$ac_ct_NM
38303else
38304 NM="$ac_cv_prog_NM"
38305fi
38306
38307
38308 case ${BAKEFILE_HOST} in
38309 *-hp-hpux* )
38310 INSTALL_DIR="mkdir"
38311 ;;
38312 *) INSTALL_DIR="$INSTALL -d"
38313 ;;
38314 esac
38315
38316
38317 LDFLAGS_GUI=
38318 case ${BAKEFILE_HOST} in
38319 *-*-cygwin* | *-*-mingw32* )
38320 LDFLAGS_GUI="-mwindows"
38321 esac
38322
38323
38324 fi
38325
38326 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38327echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38328if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38329 echo $ECHO_N "(cached) $ECHO_C" >&6
38330else
38331
38332 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38333 egrep -s GNU > /dev/null); then
38334 bakefile_cv_prog_makeisgnu="yes"
38335 else
38336 bakefile_cv_prog_makeisgnu="no"
38337 fi
38338
38339fi
38340echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38341echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38342
38343 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38344 IF_GNU_MAKE=""
38345 else
38346 IF_GNU_MAKE="#"
38347 fi
38348
38349
38350
38351 PLATFORM_UNIX=0
38352 PLATFORM_WIN32=0
38353 PLATFORM_MSDOS=0
38354 PLATFORM_MAC=0
38355 PLATFORM_MACOSX=0
38356 PLATFORM_OS2=0
38357
38358 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38359 case "${BAKEFILE_HOST}" in
38360 *-*-cygwin* | *-*-mingw32* )
38361 PLATFORM_WIN32=1
38362 ;;
38363 *-pc-msdosdjgpp )
38364 PLATFORM_MSDOS=1
38365 ;;
38366 *-pc-os2_emx | *-pc-os2-emx )
38367 PLATFORM_OS2=1
38368 ;;
38369 powerpc-*-darwin* )
38370 PLATFORM_MAC=1
38371 PLATFORM_MACOSX=1
38372 ;;
38373 * )
38374 PLATFORM_UNIX=1
38375 ;;
38376 esac
38377 else
38378 case "$BAKEFILE_FORCE_PLATFORM" in
38379 win32 )
38380 PLATFORM_WIN32=1
38381 ;;
38382 msdos )
38383 PLATFORM_MSDOS=1
38384 ;;
38385 os2 )
38386 PLATFORM_OS2=1
38387 ;;
38388 darwin )
38389 PLATFORM_MAC=1
38390 PLATFORM_MACOSX=1
38391 ;;
38392 unix )
38393 PLATFORM_UNIX=1
38394 ;;
38395 * )
38396 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38397echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38398 { (exit 1); exit 1; }; }
38399 ;;
38400 esac
38401 fi
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411 # Check whether --enable-omf or --disable-omf was given.
38412if test "${enable_omf+set}" = set; then
38413 enableval="$enable_omf"
38414 bk_os2_use_omf="$enableval"
38415fi;
38416
38417 case "${BAKEFILE_HOST}" in
38418 *-*-darwin* )
38419 CFLAGS="$CFLAGS -fno-common"
38420 CXXFLAGS="$CXXFLAGS -fno-common"
38421 ;;
38422
38423 *-pc-os2_emx | *-pc-os2-emx )
38424 if test "x$bk_os2_use_omf" = "xyes" ; then
38425 AR=emxomfar
38426 RANLIB=:
38427 LDFLAGS="-Zomf $LDFLAGS"
38428 CFLAGS="-Zomf $CFLAGS"
38429 CXXFLAGS="-Zomf $CXXFLAGS"
38430 OS2_LIBEXT="lib"
38431 else
38432 OS2_LIBEXT="a"
38433 fi
38434 ;;
38435 esac
38436
38437
38438 SO_SUFFIX="so"
38439 SO_SUFFIX_MODULE="so"
38440 EXEEXT=""
38441 LIBPREFIX="lib"
38442 LIBEXT=".a"
38443 DLLPREFIX="lib"
38444 DLLPREFIX_MODULE=""
38445 DLLIMP_SUFFIX=""
38446
38447 case "${BAKEFILE_HOST}" in
38448 *-hp-hpux* )
38449 SO_SUFFIX="sl"
38450 SO_SUFFIX_MODULE="sl"
38451 ;;
38452 *-*-aix* )
38453 SO_SUFFIX="a"
38454 SO_SUFFIX_MODULE="a"
38455 ;;
38456 *-*-cygwin* | *-*-mingw32* )
38457 SO_SUFFIX="dll"
38458 SO_SUFFIX_MODULE="dll"
38459 DLLIMP_SUFFIX="dll.a"
38460 EXEEXT=".exe"
38461 DLLPREFIX=""
38462 ;;
38463 *-pc-msdosdjgpp )
38464 EXEEXT=".exe"
38465 DLLPREFIX=""
38466 ;;
38467 *-pc-os2_emx | *-pc-os2-emx )
38468 SO_SUFFIX="dll"
38469 SO_SUFFIX_MODULE="dll"
38470 DLLIMP_SUFFIX=$OS2_LIBEXT
38471 EXEEXT=".exe"
38472 DLLPREFIX=""
38473 LIBPREFIX=""
38474 LIBEXT=".$OS2_LIBEXT"
38475 ;;
38476 powerpc-*-darwin* )
38477 SO_SUFFIX="dylib"
38478 SO_SUFFIX_MODULE="bundle"
38479 ;;
38480 esac
38481
38482 if test "x$DLLIMP_SUFFIX" = "x" ; then
38483 DLLIMP_SUFFIX="$SO_SUFFIX"
38484 fi
38485
38486
38487
38488
38489
38490
38491
38492
38493
38494
38495
38496 SHARED_LD_CC="\$(CC) -shared -o"
38497 SHARED_LD_CXX="\$(CXX) -shared -o"
38498
38499 if test "x$GCC" = "xyes"; then
38500 PIC_FLAG="-fPIC"
38501 fi
38502
38503 case "${BAKEFILE_HOST}" in
38504 *-hp-hpux* )
38505 if test "x$GCC" = "xyes"; then
38506 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38507 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38508 else
38509 LDFLAGS="$LDFLAGS -L/usr/lib"
38510
38511 SHARED_LD_CC="${CC} -b -o"
38512 SHARED_LD_CXX="${CXX} -b -o"
38513 PIC_FLAG="+Z"
38514 fi
38515 ;;
38516
38517 *-*-linux* )
38518 if test "x$GCC" != "xyes"; then
38519 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38520echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38521if test "${bakefile_cv_prog_icc+set}" = set; then
38522 echo $ECHO_N "(cached) $ECHO_C" >&6
38523else
38524
38525 cat >conftest.$ac_ext <<_ACEOF
38526/* confdefs.h. */
38527_ACEOF
38528cat confdefs.h >>conftest.$ac_ext
38529cat >>conftest.$ac_ext <<_ACEOF
38530/* end confdefs.h. */
38531
38532int
38533main ()
38534{
38535
38536 #ifndef __INTEL_COMPILER
38537 #error Not icc
38538 #endif
38539
38540 ;
38541 return 0;
38542}
38543_ACEOF
38544rm -f conftest.$ac_objext
38545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38546 (eval $ac_compile) 2>conftest.er1
a848cd7e 38547 ac_status=$?
ac1cb8d3
VS
38548 grep -v '^ *+' conftest.er1 >conftest.err
38549 rm -f conftest.er1
38550 cat conftest.err >&5
a848cd7e
SC
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); } &&
ac1cb8d3
VS
38553 { ac_try='test -z "$ac_c_werror_flag"
38554 || test ! -s conftest.err'
38555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38556 (eval $ac_try) 2>&5
38557 ac_status=$?
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); }; } &&
38560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38562 (eval $ac_try) 2>&5
38563 ac_status=$?
38564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565 (exit $ac_status); }; }; then
38566 bakefile_cv_prog_icc=yes
38567else
38568 echo "$as_me: failed program was:" >&5
38569sed 's/^/| /' conftest.$ac_ext >&5
38570
38571bakefile_cv_prog_icc=no
38572
38573fi
ac1cb8d3 38574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38575
38576fi
38577echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38578echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38579 if test "$bakefile_cv_prog_icc" = "yes"; then
38580 PIC_FLAG="-KPIC"
38581 fi
38582 fi
38583 ;;
38584
38585 *-*-solaris2* )
38586 if test "x$GCC" != xyes ; then
38587 SHARED_LD_CC="${CC} -G -o"
38588 SHARED_LD_CXX="${CXX} -G -o"
38589 PIC_FLAG="-KPIC"
38590 fi
38591 ;;
38592
38593 *-*-darwin* )
38594
38595 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38596echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38597if test "${wx_cv_gcc31+set}" = set; then
38598 echo $ECHO_N "(cached) $ECHO_C" >&6
38599else
38600
38601 cat >conftest.$ac_ext <<_ACEOF
38602/* confdefs.h. */
38603_ACEOF
38604cat confdefs.h >>conftest.$ac_ext
38605cat >>conftest.$ac_ext <<_ACEOF
38606/* end confdefs.h. */
38607
38608int
38609main ()
38610{
38611
38612 #if (__GNUC__ < 3) || \
38613 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38614 #error old gcc
38615 #endif
38616
38617 ;
38618 return 0;
38619}
38620_ACEOF
38621rm -f conftest.$ac_objext
38622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38623 (eval $ac_compile) 2>conftest.er1
a848cd7e 38624 ac_status=$?
ac1cb8d3
VS
38625 grep -v '^ *+' conftest.er1 >conftest.err
38626 rm -f conftest.er1
38627 cat conftest.err >&5
a848cd7e
SC
38628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629 (exit $ac_status); } &&
ac1cb8d3
VS
38630 { ac_try='test -z "$ac_c_werror_flag"
38631 || test ! -s conftest.err'
38632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38633 (eval $ac_try) 2>&5
38634 ac_status=$?
38635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636 (exit $ac_status); }; } &&
38637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38639 (eval $ac_try) 2>&5
38640 ac_status=$?
38641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38642 (exit $ac_status); }; }; then
38643
38644 wx_cv_gcc31=yes
38645
38646else
38647 echo "$as_me: failed program was:" >&5
38648sed 's/^/| /' conftest.$ac_ext >&5
38649
38650
38651 wx_cv_gcc31=no
38652
38653
38654fi
ac1cb8d3 38655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38656
38657fi
38658echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38659echo "${ECHO_T}$wx_cv_gcc31" >&6
38660 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38661
38662D='$'
38663cat <<EOF >shared-ld-sh
a848cd7e
SC
38664#!/bin/sh
38665#-----------------------------------------------------------------------------
38666#-- Name: distrib/mac/shared-ld-sh
38667#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38668#-- Author: Gilles Depeyrot
38669#-- Copyright: (c) 2002 Gilles Depeyrot
38670#-- Licence: any use permitted
38671#-----------------------------------------------------------------------------
38672
38673verbose=0
38674args=""
38675objects=""
38676linking_flag="-dynamiclib"
38677
473276a9
VS
38678while test ${D}# -gt 0; do
38679 case ${D}1 in
a848cd7e
SC
38680
38681 -v)
38682 verbose=1
38683 ;;
38684
38685 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38686 # collect these options and values
473276a9 38687 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38688 shift
38689 ;;
38690
38691 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38692 # collect these options
473276a9 38693 args="${D}{args} ${D}1"
a848cd7e
SC
38694 ;;
38695
38696 -dynamiclib|-bundle)
473276a9 38697 linking_flag="${D}1"
a848cd7e
SC
38698 ;;
38699
38700 -*)
473276a9 38701 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38702 exit 1
38703 ;;
38704
38705 *.o | *.a | *.dylib)
38706 # collect object files
473276a9 38707 objects="${D}{objects} ${D}1"
a848cd7e
SC
38708 ;;
38709
38710 *)
473276a9 38711 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38712 exit 1
38713 ;;
38714
38715 esac
38716 shift
38717done
38718
38719#
38720# Link one module containing all the others
38721#
473276a9
VS
38722if test ${D}{verbose} = 1; then
38723 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38724fi
473276a9
VS
38725c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38726status=${D}?
38727if test ${D}{status} != 0; then
38728 exit ${D}{status}
a848cd7e
SC
38729fi
38730
38731#
38732# Link the shared library from the single module created
38733#
473276a9
VS
38734if test ${D}{verbose} = 1; then
38735 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38736fi
473276a9
VS
38737c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38738status=${D}?
38739if test ${D}{status} != 0; then
38740 exit ${D}{status}
a848cd7e
SC
38741fi
38742
38743#
38744# Remove intermediate module
38745#
473276a9 38746rm -f master.${D}${D}.o
a848cd7e
SC
38747
38748exit 0
38749EOF
473276a9 38750
a848cd7e
SC
38751 chmod +x shared-ld-sh
38752
38753 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38754 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38755 SHARED_LD_CXX="$SHARED_LD_CC"
38756 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38757 else
38758 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38759 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38760 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38761 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38762 fi
38763
38764 PIC_FLAG="-dynamic -fPIC"
38765 ;;
38766
38767 *-*-aix* )
38768 if test "x$GCC" != "xyes"; then
38769 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38770set dummy makeC++SharedLib; ac_word=$2
38771echo "$as_me:$LINENO: checking for $ac_word" >&5
38772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38773if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38774 echo $ECHO_N "(cached) $ECHO_C" >&6
38775else
38776 if test -n "$AIX_CXX_LD"; then
38777 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38778else
38779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38780for as_dir in $PATH
38781do
38782 IFS=$as_save_IFS
38783 test -z "$as_dir" && as_dir=.
38784 for ac_exec_ext in '' $ac_executable_extensions; do
38785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38786 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38788 break 2
38789 fi
38790done
38791done
38792
38793 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38794fi
38795fi
38796AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38797if test -n "$AIX_CXX_LD"; then
38798 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38799echo "${ECHO_T}$AIX_CXX_LD" >&6
38800else
38801 echo "$as_me:$LINENO: result: no" >&5
38802echo "${ECHO_T}no" >&6
38803fi
38804
38805 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38806 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38807 fi
38808 ;;
38809
38810 *-*-beos* )
38811 SHARED_LD_CC="${LD} -shared -o"
38812 SHARED_LD_CXX="${LD} -shared -o"
38813 ;;
38814
38815 *-*-irix* )
38816 if test "x$GCC" != "xyes"; then
38817 PIC_FLAG="-KPIC"
38818 fi
38819 ;;
38820
38821 *-*-cygwin* | *-*-mingw32* )
38822 PIC_FLAG=""
38823 ;;
38824
38825 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38826 SHARED_LD_CC="`pwd`/dllar.sh -o"
38827 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38828 PIC_FLAG=""
473276a9
VS
38829
38830D='$'
38831cat <<EOF >dllar.sh
38832#!/bin/sh
38833#
38834# dllar - a tool to build both a .dll and an .a file
38835# from a set of object (.o) files for EMX/OS2.
38836#
38837# Written by Andrew Zabolotny, bit@freya.etu.ru
38838# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38839#
38840# This script will accept a set of files on the command line.
38841# All the public symbols from the .o files will be exported into
38842# a .DEF file, then linker will be run (through gcc) against them to
38843# build a shared library consisting of all given .o files. All libraries
38844# (.a) will be first decompressed into component .o files then act as
38845# described above. You can optionally give a description (-d "description")
38846# which will be put into .DLL. To see the list of accepted options (as well
38847# as command-line format) simply run this program without options. The .DLL
38848# is built to be imported by name (there is no guarantee that new versions
38849# of the library you build will have same ordinals for same symbols).
38850#
38851# dllar is free software; you can redistribute it and/or modify
38852# it under the terms of the GNU General Public License as published by
38853# the Free Software Foundation; either version 2, or (at your option)
38854# any later version.
38855#
38856# dllar is distributed in the hope that it will be useful,
38857# but WITHOUT ANY WARRANTY; without even the implied warranty of
38858# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38859# GNU General Public License for more details.
38860#
38861# You should have received a copy of the GNU General Public License
38862# along with dllar; see the file COPYING. If not, write to the Free
38863# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38864# 02111-1307, USA.
38865
38866# To successfuly run this program you will need:
38867# - Current drive should have LFN support (HPFS, ext2, network, etc)
38868# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38869# - gcc
38870# (used to build the .dll)
38871# - emxexp
38872# (used to create .def file from .o files)
38873# - emximp
38874# (used to create .a file from .def file)
38875# - GNU text utilites (cat, sort, uniq)
38876# used to process emxexp output
38877# - GNU file utilities (mv, rm)
38878# - GNU sed
38879# - lxlite (optional, see flag below)
38880# (used for general .dll cleanup)
38881#
38882
38883flag_USE_LXLITE=1;
38884
38885#
38886# helper functions
38887# basnam, variant of basename, which does _not_ remove the path, _iff_
38888# second argument (suffix to remove) is given
38889basnam(){
38890 case ${D}# in
38891 1)
38892 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38893 ;;
38894 2)
38895 echo ${D}1 | sed 's/'${D}2'${D}//'
38896 ;;
38897 *)
38898 echo "error in basnam ${D}*"
38899 exit 8
38900 ;;
38901 esac
38902}
38903
38904# Cleanup temporary files and output
38905CleanUp() {
38906 cd ${D}curDir
38907 for i in ${D}inputFiles ; do
38908 case ${D}i in
38909 *!)
38910 rm -rf \`basnam ${D}i !\`
38911 ;;
38912 *)
38913 ;;
38914 esac
38915 done
38916
38917 # Kill result in case of failure as there is just to many stupid make/nmake
38918 # things out there which doesn't do this.
9f45f08e 38919 if [] ${D}# -eq 0 []; then
473276a9
VS
38920 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38921 fi
38922}
38923
38924# Print usage and exit script with rc=1.
38925PrintHelp() {
9f45f08e
VS
38926 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38927 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38928 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38929 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38930 echo ' []*.o[] []*.a[]'
473276a9
VS
38931 echo '*> "output_file" should have no extension.'
38932 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38933 echo ' The import library name is derived from this and is set to "name".a,'
38934 echo ' unless overridden by -import'
38935 echo '*> "importlib_name" should have no extension.'
38936 echo ' If it has the .o, or .a extension, it is automatically removed.'
38937 echo ' This name is used as the import library name and may be longer and'
38938 echo ' more descriptive than the DLL name which has to follow the old '
38939 echo ' 8.3 convention of FAT.'
38940 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38941 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38942 echo ' These flags will be put at the start of GCC command line.'
9f45f08e
VS
38943 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38944 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38945 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38946 echo ' If the last character of a symbol is "*", all symbols beginning'
38947 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
9f45f08e 38948 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38949 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
9f45f08e 38950 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38951 echo ' C runtime DLLs.'
9f45f08e 38952 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38953 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38954 echo ' unchanged to GCC at the end of command line.'
38955 echo '*> If you create a DLL from a library and you do not specify -o,'
38956 echo ' the basename for DLL and import library will be set to library name,'
38957 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38958 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38959 echo ' library will be renamed into gcc_s.a.'
38960 echo '--------'
38961 echo 'Example:'
38962 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38963 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38964 CleanUp
38965 exit 1
38966}
38967
38968# Execute a command.
38969# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38970# @Uses Whatever CleanUp() uses.
38971doCommand() {
38972 echo "${D}*"
38973 eval ${D}*
38974 rcCmd=${D}?
38975
9f45f08e 38976 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38977 echo "command failed, exit code="${D}rcCmd
38978 CleanUp
38979 exit ${D}rcCmd
38980 fi
38981}
38982
38983# main routine
38984# setup globals
38985cmdLine=${D}*
38986outFile=""
38987outimpFile=""
38988inputFiles=""
38989description=""
38990CC=gcc.exe
38991CFLAGS="-s -Zcrtdll"
38992EXTRA_CFLAGS=""
38993EXPORT_BY_ORDINALS=0
38994exclude_symbols=""
38995library_flags=""
38996curDir=\`pwd\`
38997curDirS=curDir
38998case ${D}curDirS in
38999*/)
39000 ;;
39001*)
39002 curDirS=${D}{curDirS}"/"
39003 ;;
39004esac
39005# Parse commandline
39006libsToLink=0
9f45f08e 39007while [] ${D}1 []; do
473276a9
VS
39008 case ${D}1 in
39009 -ord*)
39010 EXPORT_BY_ORDINALS=1;
39011 ;;
39012 -o*)
39013 shift
39014 outFile=${D}1
39015 ;;
39016 -i*)
39017 shift
39018 outimpFile=${D}1
39019 ;;
39020 -d*)
39021 shift
39022 description=${D}1
39023 ;;
39024 -f*)
39025 shift
39026 CFLAGS=${D}1
39027 ;;
39028 -c*)
39029 shift
39030 CC=${D}1
39031 ;;
39032 -h*)
39033 PrintHelp
39034 ;;
39035 -ex*)
39036 shift
39037 exclude_symbols=${D}{exclude_symbols}${D}1" "
39038 ;;
39039 -libf*)
39040 shift
39041 library_flags=${D}{library_flags}${D}1" "
39042 ;;
39043 -nocrt*)
39044 CFLAGS="-s"
39045 ;;
39046 -nolxl*)
39047 flag_USE_LXLITE=0
39048 ;;
39049 -* | /*)
39050 case ${D}1 in
39051 -L* | -l*)
39052 libsToLink=1
39053 ;;
39054 *)
39055 ;;
39056 esac
39057 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39058 ;;
39059 *)
39060 found=0;
9f45f08e 39061 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39062 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39063 else
39064 for file in ${D}1 ; do
9f45f08e 39065 if [] -f ${D}file []; then
473276a9
VS
39066 inputFiles="${D}{inputFiles} ${D}file"
39067 found=1
39068 fi
39069 done
9f45f08e 39070 if [] ${D}found -eq 0 []; then
473276a9
VS
39071 echo "ERROR: No file(s) found: "${D}1
39072 exit 8
39073 fi
39074 fi
39075 ;;
39076 esac
39077 shift
39078done # iterate cmdline words
39079
39080#
9f45f08e 39081if [] -z "${D}inputFiles" []; then
473276a9
VS
39082 echo "dllar: no input files"
39083 PrintHelp
39084fi
39085
39086# Now extract all .o files from .a files
39087newInputFiles=""
39088for file in ${D}inputFiles ; do
39089 case ${D}file in
39090 *.a | *.lib)
39091 case ${D}file in
39092 *.a)
39093 suffix=".a"
39094 AR="ar"
39095 ;;
39096 *.lib)
39097 suffix=".lib"
39098 AR="emxomfar"
39099 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39100 ;;
39101 *)
39102 ;;
39103 esac
39104 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39105 mkdir ${D}dirname
9f45f08e 39106 if [] ${D}? -ne 0 []; then
473276a9
VS
39107 echo "Failed to create subdirectory ./${D}dirname"
39108 CleanUp
39109 exit 8;
39110 fi
39111 # Append '!' to indicate archive
39112 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39113 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39114 cd ${D}curDir
39115 found=0;
39116 for subfile in ${D}dirname/*.o* ; do
9f45f08e 39117 if [] -f ${D}subfile []; then
473276a9 39118 found=1
9f45f08e 39119 if [] -s ${D}subfile []; then
473276a9
VS
39120 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39121 newInputFiles="${D}newInputFiles ${D}subfile"
39122 fi
39123 fi
39124 done
9f45f08e 39125 if [] ${D}found -eq 0 []; then
473276a9
VS
39126 echo "WARNING: there are no files in archive \'${D}file\'"
39127 fi
39128 ;;
39129 *)
39130 newInputFiles="${D}{newInputFiles} ${D}file"
39131 ;;
39132 esac
39133done
39134inputFiles="${D}newInputFiles"
39135
39136# Output filename(s).
39137do_backup=0;
9f45f08e 39138if [] -z ${D}outFile []; then
473276a9
VS
39139 do_backup=1;
39140 set outFile ${D}inputFiles; outFile=${D}2
39141fi
39142
39143# If it is an archive, remove the '!' and the '_%' suffixes
39144case ${D}outFile in
39145*_%!)
39146 outFile=\`basnam ${D}outFile _%!\`
39147 ;;
39148*)
39149 ;;
39150esac
39151case ${D}outFile in
39152*.dll)
39153 outFile=\`basnam ${D}outFile .dll\`
39154 ;;
39155*.DLL)
39156 outFile=\`basnam ${D}outFile .DLL\`
39157 ;;
39158*.o)
39159 outFile=\`basnam ${D}outFile .o\`
39160 ;;
39161*.obj)
39162 outFile=\`basnam ${D}outFile .obj\`
39163 ;;
39164*.a)
39165 outFile=\`basnam ${D}outFile .a\`
39166 ;;
39167*.lib)
39168 outFile=\`basnam ${D}outFile .lib\`
39169 ;;
39170*)
39171 ;;
39172esac
39173case ${D}outimpFile in
39174*.a)
39175 outimpFile=\`basnam ${D}outimpFile .a\`
39176 ;;
39177*.lib)
39178 outimpFile=\`basnam ${D}outimpFile .lib\`
39179 ;;
39180*)
39181 ;;
39182esac
9f45f08e 39183if [] -z ${D}outimpFile []; then
473276a9
VS
39184 outimpFile=${D}outFile
39185fi
39186defFile="${D}{outFile}.def"
39187arcFile="${D}{outimpFile}.a"
39188arcFile2="${D}{outimpFile}.lib"
39189dllFile="${D}outFile"
39190# Add suffix to dllFile later, first we need a version to use as
39191# name in .def file.
39192
9f45f08e
VS
39193if [] ${D}do_backup -ne 0 [] ; then
39194 if [] -f ${D}arcFile [] ; then
473276a9
VS
39195 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39196 fi
9f45f08e 39197 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39198 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39199 fi
39200fi
39201
39202# Extract public symbols from all the object files.
39203tmpdefFile=${D}{defFile}_%
39204rm -f ${D}tmpdefFile
39205for file in ${D}inputFiles ; do
39206 case ${D}file in
39207 *!)
39208 ;;
39209 *)
39210 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39211 ;;
39212 esac
39213done
39214
39215# Create the def file.
39216rm -f ${D}defFile
39217echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39218dllFile="${D}dllFile.dll"
9f45f08e 39219if [] -n ${D}description []; then
473276a9
VS
39220 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39221fi
39222echo "EXPORTS" >> ${D}defFile
39223
39224doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39225grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39226
39227# Checks if the export is ok or not.
39228for word in ${D}exclude_symbols; do
39229 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39230 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39231done
39232
39233
9f45f08e 39234if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39235 sed "=" < ${D}tmpdefFile | \
39236 sed '
39237 N
39238 : loop
9f45f08e 39239 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39240 t loop
39241 ' > ${D}{tmpdefFile}%
39242 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39243else
39244 rm -f ${D}{tmpdefFile}%
39245fi
39246cat ${D}tmpdefFile >> ${D}defFile
39247rm -f ${D}tmpdefFile
39248
39249# Do linking, create implib, and apply lxlite.
39250gccCmdl="";
39251for file in ${D}inputFiles ; do
39252 case ${D}file in
39253 *!)
39254 ;;
39255 *)
39256 gccCmdl="${D}gccCmdl ${D}file"
39257 ;;
39258 esac
39259done
39260doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39261touch "${D}{outFile}.dll"
39262
39263doCommand "emximp -o ${D}arcFile ${D}defFile"
9f45f08e 39264if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39265 add_flags="";
9f45f08e 39266 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39267 add_flags="-ynd"
39268 fi
39269 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39270fi
39271doCommand "emxomf -s -l ${D}arcFile"
39272
39273# Successful exit.
39274CleanUp 1
39275exit 0
39276EOF
39277
39278 chmod +x dllar.sh
a848cd7e
SC
39279 ;;
39280
39281 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39282 *-*-sunos4* | \
39283 *-*-osf* | \
39284 *-*-dgux5* | \
39285 *-*-sysv5* )
39286 ;;
39287
39288 *)
39289 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39290echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39291 { (exit 1); exit 1; }; }
39292 esac
39293
9f45f08e
VS
39294 if test "x$PIC_FLAG" != "x" ; then
39295 PIC_FLAG="$PIC_FLAG -DPIC"
39296 fi
39297
a848cd7e
SC
39298 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39299 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39300 fi
39301 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39302 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39303 fi
39304
39305
39306
39307
39308
39309
39310
39311
39312 USE_SOVERSION=0
39313 USE_SOVERLINUX=0
39314 USE_SOVERSOLARIS=0
39315 USE_SOSYMLINKS=0
39316 USE_MACVERSION=0
39317 SONAME_FLAG=
39318
39319 case "${BAKEFILE_HOST}" in
39320 *-*-linux* )
39321 SONAME_FLAG="-Wl,-soname,"
39322 USE_SOVERSION=1
39323 USE_SOVERLINUX=1
39324 USE_SOSYMLINKS=1
39325 ;;
39326
39327 *-*-solaris2* )
39328 SONAME_FLAG="-h "
39329 USE_SOVERSION=1
39330 USE_SOVERSOLARIS=1
39331 USE_SOSYMLINKS=1
39332 ;;
39333
39334 *-*-darwin* )
39335 USE_MACVERSION=1
39336 USE_SOVERSION=1
39337 USE_SOSYMLINKS=1
39338 ;;
39339 esac
39340
39341
39342
39343
39344
39345
39346
39347
39348
39349 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39350echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39351 DEPS_TRACKING=0
39352
39353 if test "x$GCC" = "xyes"; then
39354 DEPSMODE=gcc
39355 DEPS_TRACKING=1
39356 case "${BAKEFILE_HOST}" in
39357 powerpc-*-darwin* )
39358 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39359 ;;
39360 * )
39361 DEPSFLAG_GCC="-MMD"
39362 ;;
39363 esac
39364 echo "$as_me:$LINENO: result: gcc" >&5
39365echo "${ECHO_T}gcc" >&6
39366 else
39367 echo "$as_me:$LINENO: result: none" >&5
39368echo "${ECHO_T}none" >&6
39369 fi
39370
39371 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39372
39373D='$'
39374cat <<EOF >bk-deps
a848cd7e
SC
39375#!/bin/sh
39376
39377# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39378# script. It is used to track C/C++ files dependencies in portable way.
39379#
39380# Permission is given to use this file in any way.
39381
473276a9 39382DEPSMODE=${DEPSMODE}
a848cd7e 39383DEPSDIR=.deps
473276a9 39384DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39385
473276a9 39386mkdir -p ${D}DEPSDIR
a848cd7e 39387
473276a9
VS
39388if test ${D}DEPSMODE = gcc ; then
39389 ${D}* ${D}{DEPSFLAG_GCC}
39390 status=${D}?
39391 if test ${D}{status} != 0 ; then
39392 exit ${D}{status}
a848cd7e
SC
39393 fi
39394 # move created file to the location we want it in:
473276a9
VS
39395 while test ${D}# -gt 0; do
39396 case "${D}1" in
a848cd7e
SC
39397 -o )
39398 shift
473276a9 39399 objfile=${D}1
a848cd7e
SC
39400 ;;
39401 -* )
39402 ;;
39403 * )
473276a9 39404 srcfile=${D}1
a848cd7e
SC
39405 ;;
39406 esac
39407 shift
39408 done
473276a9
VS
39409 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39410 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39411 if test -f ${D}depfile ; then
39412 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39413 rm -f ${D}depfile
a848cd7e 39414 else
473276a9
VS
39415 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39416 if test -f ${D}depfile ; then
39417 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39418 rm -f ${D}depfile
a848cd7e
SC
39419 fi
39420 fi
39421 exit 0
39422else
473276a9
VS
39423 ${D}*
39424 exit ${D}?
a848cd7e
SC
39425fi
39426EOF
473276a9 39427
a848cd7e
SC
39428 chmod +x bk-deps
39429 fi
39430
39431
39432
39433
39434 RESCOMP=
39435 SETFILE=
39436
39437 case ${BAKEFILE_HOST} in
39438 *-*-cygwin* | *-*-mingw32* )
39439 if test "$build" != "$host" ; then
39440 RESCOMP=$host_alias-windres
39441 else
39442 # Extract the first word of "windres", so it can be a program name with args.
39443set dummy windres; ac_word=$2
39444echo "$as_me:$LINENO: checking for $ac_word" >&5
39445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39446if test "${ac_cv_prog_RESCOMP+set}" = set; then
39447 echo $ECHO_N "(cached) $ECHO_C" >&6
39448else
39449 if test -n "$RESCOMP"; then
39450 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39451else
39452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39453for as_dir in $PATH
39454do
39455 IFS=$as_save_IFS
39456 test -z "$as_dir" && as_dir=.
39457 for ac_exec_ext in '' $ac_executable_extensions; do
39458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39459 ac_cv_prog_RESCOMP="windres"
39460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39461 break 2
39462 fi
39463done
39464done
39465
39466 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39467fi
39468fi
39469RESCOMP=$ac_cv_prog_RESCOMP
39470if test -n "$RESCOMP"; then
39471 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39472echo "${ECHO_T}$RESCOMP" >&6
39473else
39474 echo "$as_me:$LINENO: result: no" >&5
39475echo "${ECHO_T}no" >&6
39476fi
39477
39478 fi
39479 ;;
39480
39481 *-*-darwin* )
39482 # Extract the first word of "Rez", so it can be a program name with args.
39483set dummy Rez; ac_word=$2
39484echo "$as_me:$LINENO: checking for $ac_word" >&5
39485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39486if test "${ac_cv_prog_RESCOMP+set}" = set; then
39487 echo $ECHO_N "(cached) $ECHO_C" >&6
39488else
39489 if test -n "$RESCOMP"; then
39490 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39491else
39492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39493for as_dir in $PATH
39494do
39495 IFS=$as_save_IFS
39496 test -z "$as_dir" && as_dir=.
39497 for ac_exec_ext in '' $ac_executable_extensions; do
39498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39499 ac_cv_prog_RESCOMP="Rez"
39500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39501 break 2
39502 fi
39503done
39504done
39505
39506 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39507fi
39508fi
39509RESCOMP=$ac_cv_prog_RESCOMP
39510if test -n "$RESCOMP"; then
39511 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39512echo "${ECHO_T}$RESCOMP" >&6
39513else
39514 echo "$as_me:$LINENO: result: no" >&5
39515echo "${ECHO_T}no" >&6
39516fi
39517
39518 # Extract the first word of "SetFile", so it can be a program name with args.
39519set dummy SetFile; ac_word=$2
39520echo "$as_me:$LINENO: checking for $ac_word" >&5
39521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39522if test "${ac_cv_prog_SETFILE+set}" = set; then
39523 echo $ECHO_N "(cached) $ECHO_C" >&6
39524else
39525 if test -n "$SETFILE"; then
39526 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39527else
39528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39529for as_dir in $PATH
39530do
39531 IFS=$as_save_IFS
39532 test -z "$as_dir" && as_dir=.
39533 for ac_exec_ext in '' $ac_executable_extensions; do
39534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39535 ac_cv_prog_SETFILE="SetFile"
39536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39537 break 2
39538 fi
39539done
39540done
39541
39542 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39543fi
39544fi
39545SETFILE=$ac_cv_prog_SETFILE
39546if test -n "$SETFILE"; then
39547 echo "$as_me:$LINENO: result: $SETFILE" >&5
39548echo "${ECHO_T}$SETFILE" >&6
39549else
39550 echo "$as_me:$LINENO: result: no" >&5
39551echo "${ECHO_T}no" >&6
39552fi
39553
39554 ;;
39555 esac
39556
39557
39558
39559
39560
9f45f08e 39561 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39562
dcc1b6ad 39563
9f45f08e 39564BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39565
646b6ec1 39566
74b84332 39567
a848cd7e
SC
39568 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39569if test "${enable_precomp_headers+set}" = set; then
39570 enableval="$enable_precomp_headers"
39571 bk_use_pch="$enableval"
39572fi;
39573
39574 GCC_PCH=0
39575
39576 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39577 if test "x$GCC" = "xyes"; then
39578 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39579echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39580 cat >conftest.$ac_ext <<_ACEOF
39581/* confdefs.h. */
39582_ACEOF
39583cat confdefs.h >>conftest.$ac_ext
39584cat >>conftest.$ac_ext <<_ACEOF
39585/* end confdefs.h. */
39586
39587int
39588main ()
39589{
39590
39591 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39592 #error "no pch support"
39593 #endif
39594 #if (__GNUC__ < 3)
39595 #error "no pch support"
39596 #endif
39597 #if (__GNUC__ == 3) && \
39598 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39599 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39600 #error "no pch support"
39601 #endif
39602
39603 ;
39604 return 0;
39605}
39606_ACEOF
39607rm -f conftest.$ac_objext
39608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39609 (eval $ac_compile) 2>conftest.er1
a848cd7e 39610 ac_status=$?
ac1cb8d3
VS
39611 grep -v '^ *+' conftest.er1 >conftest.err
39612 rm -f conftest.er1
39613 cat conftest.err >&5
a848cd7e
SC
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } &&
ac1cb8d3
VS
39616 { ac_try='test -z "$ac_c_werror_flag"
39617 || test ! -s conftest.err'
39618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39619 (eval $ac_try) 2>&5
39620 ac_status=$?
39621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622 (exit $ac_status); }; } &&
39623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39625 (eval $ac_try) 2>&5
39626 ac_status=$?
39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); }; }; then
39629
39630 echo "$as_me:$LINENO: result: yes" >&5
39631echo "${ECHO_T}yes" >&6
39632 CPPFLAGS="-fpch-deps $CPPFLAGS"
39633 GCC_PCH=1
39634
39635else
39636 echo "$as_me: failed program was:" >&5
39637sed 's/^/| /' conftest.$ac_ext >&5
39638
39639
39640 echo "$as_me:$LINENO: result: no" >&5
39641echo "${ECHO_T}no" >&6
39642
39643fi
ac1cb8d3 39644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39645 if test $GCC_PCH = 1 ; then
39646 cat <<EOF >bk-make-pch
39647#!/bin/sh
39648
39649# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39650# script. It is used to generated precompiled headers.
39651#
39652# Permission is given to use this file in any way.
39653
39654outfile="\${1}"
39655header="\${2}"
39656shift
39657shift
39658
39659compiler=
39660headerfile=
39661while test \${#} -gt 0; do
39662 case "\${1}" in
39663 -I* )
39664 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39665 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39666 headerfile="\${incdir}/\${header}"
39667 fi
39668 ;;
39669 esac
39670 compiler="\${compiler} \${1}"
39671 shift
39672done
39673
39674if test "x\${headerfile}" = "x" ; then
39675 echo "error: can't find header \${header} in include paths" >2
39676else
39677 if test -f \${outfile} ; then
39678 rm -f \${outfile}
39679 else
39680 mkdir -p \`dirname \${outfile}\`
39681 fi
39682 depsfile=".deps/\`basename \${outfile}\`.d"
39683 mkdir -p .deps
39684 # can do this because gcc is >= 3.4:
39685 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39686 exit \${?}
39687fi
39688EOF
39689 chmod +x bk-make-pch
39690 fi
39691 fi
39692 fi
39693
39694
39695
39696
39697
dcc1b6ad
VS
39698
39699
39700 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39701if test "${enable_precomp_headers+set}" = set; then
39702 enableval="$enable_precomp_headers"
39703 bk_use_pch="$enableval"
39704fi;
39705
39706 GCC_PCH=0
39707
39708 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39709 if test "x$GCC" = "xyes"; then
39710 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39711echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39712 cat >conftest.$ac_ext <<_ACEOF
39713/* confdefs.h. */
39714_ACEOF
39715cat confdefs.h >>conftest.$ac_ext
39716cat >>conftest.$ac_ext <<_ACEOF
39717/* end confdefs.h. */
39718
39719int
39720main ()
39721{
39722
39723 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39724 #error "no pch support"
39725 #endif
39726 #if (__GNUC__ < 3)
39727 #error "no pch support"
39728 #endif
39729 #if (__GNUC__ == 3) && \
39730 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39731 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39732 #error "no pch support"
39733 #endif
39734
39735 ;
39736 return 0;
39737}
39738_ACEOF
39739rm -f conftest.$ac_objext
39740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39741 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39742 ac_status=$?
ac1cb8d3
VS
39743 grep -v '^ *+' conftest.er1 >conftest.err
39744 rm -f conftest.er1
39745 cat conftest.err >&5
dcc1b6ad
VS
39746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747 (exit $ac_status); } &&
ac1cb8d3
VS
39748 { ac_try='test -z "$ac_c_werror_flag"
39749 || test ! -s conftest.err'
39750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39751 (eval $ac_try) 2>&5
39752 ac_status=$?
39753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754 (exit $ac_status); }; } &&
39755 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39757 (eval $ac_try) 2>&5
39758 ac_status=$?
39759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39760 (exit $ac_status); }; }; then
39761
39762 echo "$as_me:$LINENO: result: yes" >&5
39763echo "${ECHO_T}yes" >&6
39764 CPPFLAGS="-fpch-deps $CPPFLAGS"
39765 GCC_PCH=1
39766
39767else
39768 echo "$as_me: failed program was:" >&5
39769sed 's/^/| /' conftest.$ac_ext >&5
39770
39771
39772 echo "$as_me:$LINENO: result: no" >&5
39773echo "${ECHO_T}no" >&6
39774
39775fi
ac1cb8d3 39776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39777 if test $GCC_PCH = 1 ; then
39778 cat <<EOF >bk-make-pch
39779#!/bin/sh
39780
39781# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39782# script. It is used to generated precompiled headers.
39783#
39784# Permission is given to use this file in any way.
39785
39786outfile="\${1}"
39787header="\${2}"
39788shift
39789shift
39790
39791compiler=
39792headerfile=
39793while test \${#} -gt 0; do
39794 case "\${1}" in
39795 -I* )
39796 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39797 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39798 headerfile="\${incdir}/\${header}"
39799 fi
39800 ;;
39801 esac
39802 compiler="\${compiler} \${1}"
39803 shift
39804done
39805
39806if test "x\${headerfile}" = "x" ; then
39807 echo "error: can't find header \${header} in include paths" >2
39808else
39809 if test -f \${outfile} ; then
39810 rm -f \${outfile}
39811 else
39812 mkdir -p \`dirname \${outfile}\`
39813 fi
39814 depsfile=".deps/\`basename \${outfile}\`.d"
39815 mkdir -p .deps
39816 # can do this because gcc is >= 3.4:
39817 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39818 exit \${?}
39819fi
39820EOF
39821 chmod +x bk-make-pch
39822 fi
39823 fi
39824 fi
39825
39826
39827
39828
a848cd7e
SC
39829 COND_BUILD_DEBUG="#"
39830 if test "x$BUILD" = "xdebug" ; then
39831 COND_BUILD_DEBUG=""
39832 fi
39833
39834 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39835 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39836 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39837 fi
39838
39839 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39840 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39841 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39842 fi
39843
39844 COND_BUILD_DEBUG_UNICODE_0="#"
39845 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39846 COND_BUILD_DEBUG_UNICODE_0=""
39847 fi
39848
39849 COND_BUILD_DEBUG_UNICODE_1="#"
39850 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39851 COND_BUILD_DEBUG_UNICODE_1=""
39852 fi
39853
39854 COND_BUILD_RELEASE="#"
39855 if test "x$BUILD" = "xrelease" ; then
39856 COND_BUILD_RELEASE=""
39857 fi
39858
39859 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39860 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39861 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39862 fi
39863
39864 COND_BUILD_RELEASE_UNICODE_0="#"
39865 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39866 COND_BUILD_RELEASE_UNICODE_0=""
39867 fi
39868
39869 COND_BUILD_RELEASE_UNICODE_1="#"
39870 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39871 COND_BUILD_RELEASE_UNICODE_1=""
39872 fi
39873
39874 COND_DEBUG_FLAG_1="#"
39875 if test "x$DEBUG_FLAG" = "x1" ; then
39876 COND_DEBUG_FLAG_1=""
39877 fi
39878
39879 COND_DEBUG_INFO_0="#"
39880 if test "x$DEBUG_INFO" = "x0" ; then
39881 COND_DEBUG_INFO_0=""
39882 fi
39883
39884 COND_DEBUG_INFO_1="#"
39885 if test "x$DEBUG_INFO" = "x1" ; then
39886 COND_DEBUG_INFO_1=""
39887 fi
39888
39889 COND_DEPS_TRACKING_0="#"
39890 if test "x$DEPS_TRACKING" = "x0" ; then
39891 COND_DEPS_TRACKING_0=""
39892 fi
39893
39894 COND_DEPS_TRACKING_1="#"
39895 if test "x$DEPS_TRACKING" = "x1" ; then
39896 COND_DEPS_TRACKING_1=""
39897 fi
39898
39899 COND_GCC_PCH_1="#"
39900 if test "x$GCC_PCH" = "x1" ; then
39901 COND_GCC_PCH_1=""
39902 fi
39903
39904 COND_MONOLITHIC_0="#"
39905 if test "x$MONOLITHIC" = "x0" ; then
39906 COND_MONOLITHIC_0=""
39907 fi
39908
39909 COND_MONOLITHIC_0_SHARED_0="#"
39910 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39911 COND_MONOLITHIC_0_SHARED_0=""
39912 fi
39913
39914 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39915 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39916 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39917 fi
39918
39919 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39920 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39921 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39922 fi
39923
39924 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39925 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39926 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39927 fi
39928
39929 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39930 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39931 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39932 fi
39933
39934 COND_MONOLITHIC_0_SHARED_1="#"
39935 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39936 COND_MONOLITHIC_0_SHARED_1=""
39937 fi
39938
39939 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39940 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39941 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39942 fi
39943
39944 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39945 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39946 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39947 fi
39948
39949 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39950 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39951 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39952 fi
39953
39954 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39955 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39956 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39957 fi
39958
39959 COND_MONOLITHIC_0_USE_ODBC_1="#"
39960 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39961 COND_MONOLITHIC_0_USE_ODBC_1=""
39962 fi
39963
39964 COND_MONOLITHIC_1="#"
39965 if test "x$MONOLITHIC" = "x1" ; then
39966 COND_MONOLITHIC_1=""
39967 fi
39968
39969 COND_MONOLITHIC_1_SHARED_0="#"
39970 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39971 COND_MONOLITHIC_1_SHARED_0=""
39972 fi
39973
39974 COND_MONOLITHIC_1_SHARED_1="#"
39975 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39976 COND_MONOLITHIC_1_SHARED_1=""
39977 fi
39978
39979 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39980 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39981 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39982 fi
39983
39984 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39985 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39986 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39987 fi
39988
39989 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39990 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39991 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39992 fi
39993
39994 COND_PLATFORM_MACOSX_1="#"
39995 if test "x$PLATFORM_MACOSX" = "x1" ; then
39996 COND_PLATFORM_MACOSX_1=""
39997 fi
39998
39999 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40000 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40001 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40002 fi
40003
40004 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40005 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40006 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40007 fi
40008
40009 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40010 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40011 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40012 fi
40013
40014 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40015 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40016 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40017 fi
40018
40019 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40020 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40021 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40022 fi
40023
40024 COND_PLATFORM_MAC_1="#"
40025 if test "x$PLATFORM_MAC" = "x1" ; then
40026 COND_PLATFORM_MAC_1=""
40027 fi
40028
40029 COND_PLATFORM_OS2_1="#"
40030 if test "x$PLATFORM_OS2" = "x1" ; then
40031 COND_PLATFORM_OS2_1=""
40032 fi
40033
40034 COND_PLATFORM_UNIX_0="#"
40035 if test "x$PLATFORM_UNIX" = "x0" ; then
40036 COND_PLATFORM_UNIX_0=""
40037 fi
40038
40039 COND_PLATFORM_UNIX_1="#"
40040 if test "x$PLATFORM_UNIX" = "x1" ; then
40041 COND_PLATFORM_UNIX_1=""
40042 fi
40043
40044 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40045 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40046 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40047 fi
40048
40049 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40050 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40051 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40052 fi
40053
40054 COND_PLATFORM_WIN32_0="#"
40055 if test "x$PLATFORM_WIN32" = "x0" ; then
40056 COND_PLATFORM_WIN32_0=""
40057 fi
40058
40059 COND_PLATFORM_WIN32_1="#"
40060 if test "x$PLATFORM_WIN32" = "x1" ; then
40061 COND_PLATFORM_WIN32_1=""
40062 fi
40063
40064 COND_SHARED_0="#"
40065 if test "x$SHARED" = "x0" ; then
40066 COND_SHARED_0=""
40067 fi
40068
40069 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40070 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40071 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40072 fi
40073
40074 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40075 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40076 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40077 fi
40078
40079 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40080 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40081 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40082 fi
40083
40084 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40085 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40086 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40087 fi
40088
40089 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40090 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40091 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40092 fi
40093
40094 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40095 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40096 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40097 fi
40098
40099 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40100 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40101 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40102 fi
40103
40104 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40105 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40106 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40107 fi
40108
40109 COND_SHARED_1="#"
40110 if test "x$SHARED" = "x1" ; then
40111 COND_SHARED_1=""
40112 fi
40113
40114 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40115 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40116 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40117 fi
40118
40119 COND_TOOLKIT_COCOA="#"
40120 if test "x$TOOLKIT" = "xCOCOA" ; then
40121 COND_TOOLKIT_COCOA=""
40122 fi
40123
40124 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40125 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40126 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40127 fi
40128
40129 COND_TOOLKIT_GTK="#"
40130 if test "x$TOOLKIT" = "xGTK" ; then
40131 COND_TOOLKIT_GTK=""
40132 fi
40133
40134 COND_TOOLKIT_GTK_USE_GUI_1="#"
40135 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40136 COND_TOOLKIT_GTK_USE_GUI_1=""
40137 fi
40138
40139 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40140 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40141 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40142 fi
40143
40144 COND_TOOLKIT_MAC="#"
40145 if test "x$TOOLKIT" = "xMAC" ; then
40146 COND_TOOLKIT_MAC=""
40147 fi
40148
40149 COND_TOOLKIT_MAC_USE_GUI_1="#"
40150 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40151 COND_TOOLKIT_MAC_USE_GUI_1=""
40152 fi
40153
40154 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40155 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40156 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40157 fi
40158
e835546c
DE
40159 COND_TOOLKIT_MAC_WXUNIV_0="#"
40160 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40161 COND_TOOLKIT_MAC_WXUNIV_0=""
40162 fi
40163
a848cd7e
SC
40164 COND_TOOLKIT_MGL="#"
40165 if test "x$TOOLKIT" = "xMGL" ; then
40166 COND_TOOLKIT_MGL=""
40167 fi
40168
40169 COND_TOOLKIT_MGL_USE_GUI_1="#"
40170 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40171 COND_TOOLKIT_MGL_USE_GUI_1=""
40172 fi
40173
40174 COND_TOOLKIT_MOTIF="#"
40175 if test "x$TOOLKIT" = "xMOTIF" ; then
40176 COND_TOOLKIT_MOTIF=""
40177 fi
40178
40179 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40180 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40181 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40182 fi
40183
40184 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40185 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40186 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40187 fi
40188
40189 COND_TOOLKIT_MSW="#"
40190 if test "x$TOOLKIT" = "xMSW" ; then
40191 COND_TOOLKIT_MSW=""
40192 fi
40193
40194 COND_TOOLKIT_MSW_USE_GUI_1="#"
40195 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40196 COND_TOOLKIT_MSW_USE_GUI_1=""
40197 fi
40198
40199 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40200 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40201 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40202 fi
40203
e835546c
DE
40204 COND_TOOLKIT_MSW_WXUNIV_0="#"
40205 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40206 COND_TOOLKIT_MSW_WXUNIV_0=""
40207 fi
40208
a848cd7e
SC
40209 COND_TOOLKIT_PM="#"
40210 if test "x$TOOLKIT" = "xPM" ; then
40211 COND_TOOLKIT_PM=""
40212 fi
40213
40214 COND_TOOLKIT_PM_USE_GUI_1="#"
40215 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40216 COND_TOOLKIT_PM_USE_GUI_1=""
40217 fi
40218
40219 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40220 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40221 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40222 fi
40223
e835546c
DE
40224 COND_TOOLKIT_PM_WXUNIV_0="#"
40225 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40226 COND_TOOLKIT_PM_WXUNIV_0=""
40227 fi
40228
3fd9c298
DE
40229 COND_TOOLKIT_WINCE="#"
40230 if test "x$TOOLKIT" = "xWINCE" ; then
40231 COND_TOOLKIT_WINCE=""
40232 fi
40233
40234 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40235 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40236 COND_TOOLKIT_WINCE_USE_GUI_1=""
40237 fi
40238
40239 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40240 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40241 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40242 fi
40243
a848cd7e
SC
40244 COND_TOOLKIT_X11="#"
40245 if test "x$TOOLKIT" = "xX11" ; then
40246 COND_TOOLKIT_X11=""
40247 fi
40248
40249 COND_TOOLKIT_X11_USE_GUI_1="#"
40250 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40251 COND_TOOLKIT_X11_USE_GUI_1=""
40252 fi
40253
40254 COND_UNICODE_1="#"
40255 if test "x$UNICODE" = "x1" ; then
40256 COND_UNICODE_1=""
40257 fi
40258
40259 COND_USE_EXCEPTIONS_0="#"
40260 if test "x$USE_EXCEPTIONS" = "x0" ; then
40261 COND_USE_EXCEPTIONS_0=""
40262 fi
40263
40264 COND_USE_EXCEPTIONS_1="#"
40265 if test "x$USE_EXCEPTIONS" = "x1" ; then
40266 COND_USE_EXCEPTIONS_1=""
40267 fi
40268
40269 COND_USE_GUI_0="#"
40270 if test "x$USE_GUI" = "x0" ; then
40271 COND_USE_GUI_0=""
40272 fi
40273
40274 COND_USE_GUI_1="#"
40275 if test "x$USE_GUI" = "x1" ; then
40276 COND_USE_GUI_1=""
40277 fi
40278
40279 COND_USE_GUI_1_WXUNIV_0="#"
40280 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40281 COND_USE_GUI_1_WXUNIV_0=""
40282 fi
40283
40284 COND_USE_GUI_1_WXUNIV_1="#"
40285 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40286 COND_USE_GUI_1_WXUNIV_1=""
40287 fi
40288
40289 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40290 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40291 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40292 fi
40293
40294 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40295 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40296 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40297 fi
40298
40299 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40300 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40301 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40302 fi
40303
40304 COND_USE_ODBC_1="#"
40305 if test "x$USE_ODBC" = "x1" ; then
40306 COND_USE_ODBC_1=""
40307 fi
40308
40309 COND_USE_PLUGINS_0="#"
40310 if test "x$USE_PLUGINS" = "x0" ; then
40311 COND_USE_PLUGINS_0=""
40312 fi
40313
40314 COND_USE_SOSYMLINKS_1="#"
40315 if test "x$USE_SOSYMLINKS" = "x1" ; then
40316 COND_USE_SOSYMLINKS_1=""
40317 fi
40318
40319 COND_USE_SOVERLINUX_1="#"
40320 if test "x$USE_SOVERLINUX" = "x1" ; then
40321 COND_USE_SOVERLINUX_1=""
40322 fi
40323
40324 COND_USE_SOVERSION_0="#"
40325 if test "x$USE_SOVERSION" = "x0" ; then
40326 COND_USE_SOVERSION_0=""
40327 fi
40328
40329 COND_USE_SOVERSOLARIS_1="#"
40330 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40331 COND_USE_SOVERSOLARIS_1=""
40332 fi
40333
40334 COND_WITH_PLUGIN_SDL_1="#"
40335 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40336 COND_WITH_PLUGIN_SDL_1=""
40337 fi
40338
40339 COND_WITH_SDL_1="#"
40340 if test "x$WITH_SDL" = "x1" ; then
40341 COND_WITH_SDL_1=""
40342 fi
40343
40344 COND_WXUNIV_1="#"
40345 if test "x$WXUNIV" = "x1" ; then
40346 COND_WXUNIV_1=""
40347 fi
40348
40349 COND_WXUSE_EXPAT_BUILTIN="#"
40350 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40351 COND_WXUSE_EXPAT_BUILTIN=""
40352 fi
40353
40354 COND_WXUSE_LIBJPEG_BUILTIN="#"
40355 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40356 COND_WXUSE_LIBJPEG_BUILTIN=""
40357 fi
40358
40359 COND_WXUSE_LIBPNG_BUILTIN="#"
40360 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40361 COND_WXUSE_LIBPNG_BUILTIN=""
40362 fi
40363
40364 COND_WXUSE_LIBTIFF_BUILTIN="#"
40365 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40366 COND_WXUSE_LIBTIFF_BUILTIN=""
40367 fi
40368
40369 COND_WXUSE_ODBC_BUILTIN="#"
40370 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40371 COND_WXUSE_ODBC_BUILTIN=""
40372 fi
40373
40374 COND_WXUSE_REGEX_BUILTIN="#"
40375 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40376 COND_WXUSE_REGEX_BUILTIN=""
40377 fi
40378
40379 COND_WXUSE_ZLIB_BUILTIN="#"
40380 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40381 COND_WXUSE_ZLIB_BUILTIN=""
40382 fi
40383
dcc1b6ad
VS
40384 COND_BUILD_DEBUG="#"
40385 if test "x$BUILD" = "xdebug" ; then
40386 COND_BUILD_DEBUG=""
40387 fi
40388
40389 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40390 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40391 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40392 fi
40393
40394 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40395 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40396 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40397 fi
40398
40399 COND_BUILD_DEBUG_UNICODE_0="#"
40400 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40401 COND_BUILD_DEBUG_UNICODE_0=""
40402 fi
40403
40404 COND_BUILD_DEBUG_UNICODE_1="#"
40405 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40406 COND_BUILD_DEBUG_UNICODE_1=""
40407 fi
40408
40409 COND_BUILD_RELEASE="#"
40410 if test "x$BUILD" = "xrelease" ; then
40411 COND_BUILD_RELEASE=""
40412 fi
40413
40414 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40415 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40416 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40417 fi
40418
40419 COND_BUILD_RELEASE_UNICODE_0="#"
40420 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40421 COND_BUILD_RELEASE_UNICODE_0=""
40422 fi
40423
40424 COND_BUILD_RELEASE_UNICODE_1="#"
40425 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40426 COND_BUILD_RELEASE_UNICODE_1=""
40427 fi
40428
40429 COND_DEBUG_FLAG_1="#"
40430 if test "x$DEBUG_FLAG" = "x1" ; then
40431 COND_DEBUG_FLAG_1=""
40432 fi
40433
40434 COND_DEBUG_INFO_0="#"
40435 if test "x$DEBUG_INFO" = "x0" ; then
40436 COND_DEBUG_INFO_0=""
40437 fi
40438
40439 COND_DEBUG_INFO_1="#"
40440 if test "x$DEBUG_INFO" = "x1" ; then
40441 COND_DEBUG_INFO_1=""
40442 fi
40443
40444 COND_DEPS_TRACKING_0="#"
40445 if test "x$DEPS_TRACKING" = "x0" ; then
40446 COND_DEPS_TRACKING_0=""
40447 fi
40448
40449 COND_DEPS_TRACKING_1="#"
40450 if test "x$DEPS_TRACKING" = "x1" ; then
40451 COND_DEPS_TRACKING_1=""
40452 fi
40453
40454 COND_GCC_PCH_1="#"
40455 if test "x$GCC_PCH" = "x1" ; then
40456 COND_GCC_PCH_1=""
40457 fi
40458
40459 COND_MONOLITHIC_0="#"
40460 if test "x$MONOLITHIC" = "x0" ; then
40461 COND_MONOLITHIC_0=""
40462 fi
40463
40464 COND_MONOLITHIC_0_SHARED_0="#"
40465 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40466 COND_MONOLITHIC_0_SHARED_0=""
40467 fi
40468
40469 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40470 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40471 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40472 fi
40473
40474 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40475 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40476 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40477 fi
40478
40479 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40480 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40481 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40482 fi
40483
40484 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40485 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40486 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40487 fi
40488
40489 COND_MONOLITHIC_0_SHARED_1="#"
40490 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40491 COND_MONOLITHIC_0_SHARED_1=""
40492 fi
40493
40494 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40495 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40496 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40497 fi
40498
40499 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40500 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40501 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40502 fi
40503
40504 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40505 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40506 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40507 fi
40508
40509 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40510 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40511 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40512 fi
40513
40514 COND_MONOLITHIC_0_USE_ODBC_1="#"
40515 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40516 COND_MONOLITHIC_0_USE_ODBC_1=""
40517 fi
40518
40519 COND_MONOLITHIC_1="#"
40520 if test "x$MONOLITHIC" = "x1" ; then
40521 COND_MONOLITHIC_1=""
40522 fi
40523
40524 COND_MONOLITHIC_1_SHARED_0="#"
40525 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40526 COND_MONOLITHIC_1_SHARED_0=""
40527 fi
40528
40529 COND_MONOLITHIC_1_SHARED_1="#"
40530 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40531 COND_MONOLITHIC_1_SHARED_1=""
40532 fi
40533
40534 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40535 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40536 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40537 fi
40538
40539 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40540 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40541 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40542 fi
40543
40544 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40545 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40546 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40547 fi
40548
40549 COND_PLATFORM_MACOSX_1="#"
40550 if test "x$PLATFORM_MACOSX" = "x1" ; then
40551 COND_PLATFORM_MACOSX_1=""
40552 fi
40553
40554 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40555 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40556 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40557 fi
40558
40559 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40560 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40561 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40562 fi
40563
40564 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40565 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40566 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40567 fi
40568
40569 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40570 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40571 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40572 fi
40573
40574 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40575 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40576 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40577 fi
40578
40579 COND_PLATFORM_MAC_1="#"
40580 if test "x$PLATFORM_MAC" = "x1" ; then
40581 COND_PLATFORM_MAC_1=""
40582 fi
40583
40584 COND_PLATFORM_OS2_1="#"
40585 if test "x$PLATFORM_OS2" = "x1" ; then
40586 COND_PLATFORM_OS2_1=""
40587 fi
40588
40589 COND_PLATFORM_UNIX_0="#"
40590 if test "x$PLATFORM_UNIX" = "x0" ; then
40591 COND_PLATFORM_UNIX_0=""
40592 fi
40593
40594 COND_PLATFORM_UNIX_1="#"
40595 if test "x$PLATFORM_UNIX" = "x1" ; then
40596 COND_PLATFORM_UNIX_1=""
40597 fi
40598
40599 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40600 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40601 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40602 fi
40603
40604 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40605 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40606 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40607 fi
40608
40609 COND_PLATFORM_WIN32_0="#"
40610 if test "x$PLATFORM_WIN32" = "x0" ; then
40611 COND_PLATFORM_WIN32_0=""
40612 fi
40613
40614 COND_PLATFORM_WIN32_1="#"
40615 if test "x$PLATFORM_WIN32" = "x1" ; then
40616 COND_PLATFORM_WIN32_1=""
40617 fi
40618
40619 COND_SHARED_0="#"
40620 if test "x$SHARED" = "x0" ; then
40621 COND_SHARED_0=""
40622 fi
40623
40624 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40625 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40626 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40627 fi
40628
40629 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40630 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40631 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40632 fi
40633
40634 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40635 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40636 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40637 fi
40638
40639 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40640 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40641 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40642 fi
40643
40644 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40645 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40646 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40647 fi
40648
40649 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40650 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40651 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40652 fi
40653
40654 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40655 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40656 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40657 fi
40658
40659 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40660 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40661 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40662 fi
40663
40664 COND_SHARED_1="#"
40665 if test "x$SHARED" = "x1" ; then
40666 COND_SHARED_1=""
40667 fi
40668
40669 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40670 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40671 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40672 fi
40673
40674 COND_TOOLKIT_COCOA="#"
40675 if test "x$TOOLKIT" = "xCOCOA" ; then
40676 COND_TOOLKIT_COCOA=""
40677 fi
40678
40679 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40680 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40681 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40682 fi
40683
40684 COND_TOOLKIT_GTK="#"
40685 if test "x$TOOLKIT" = "xGTK" ; then
40686 COND_TOOLKIT_GTK=""
40687 fi
40688
40689 COND_TOOLKIT_GTK_USE_GUI_1="#"
40690 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40691 COND_TOOLKIT_GTK_USE_GUI_1=""
40692 fi
40693
40694 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40695 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40696 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40697 fi
40698
40699 COND_TOOLKIT_MAC="#"
40700 if test "x$TOOLKIT" = "xMAC" ; then
40701 COND_TOOLKIT_MAC=""
40702 fi
40703
40704 COND_TOOLKIT_MAC_USE_GUI_1="#"
40705 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40706 COND_TOOLKIT_MAC_USE_GUI_1=""
40707 fi
40708
40709 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40710 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40711 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40712 fi
40713
40714 COND_TOOLKIT_MGL="#"
40715 if test "x$TOOLKIT" = "xMGL" ; then
40716 COND_TOOLKIT_MGL=""
40717 fi
40718
40719 COND_TOOLKIT_MGL_USE_GUI_1="#"
40720 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40721 COND_TOOLKIT_MGL_USE_GUI_1=""
40722 fi
40723
40724 COND_TOOLKIT_MOTIF="#"
40725 if test "x$TOOLKIT" = "xMOTIF" ; then
40726 COND_TOOLKIT_MOTIF=""
40727 fi
40728
40729 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40730 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40731 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40732 fi
40733
40734 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40735 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40736 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40737 fi
40738
40739 COND_TOOLKIT_MSW="#"
40740 if test "x$TOOLKIT" = "xMSW" ; then
40741 COND_TOOLKIT_MSW=""
40742 fi
40743
40744 COND_TOOLKIT_MSW_USE_GUI_1="#"
40745 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40746 COND_TOOLKIT_MSW_USE_GUI_1=""
40747 fi
40748
40749 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40750 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40751 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40752 fi
40753
40754 COND_TOOLKIT_PM="#"
40755 if test "x$TOOLKIT" = "xPM" ; then
40756 COND_TOOLKIT_PM=""
40757 fi
40758
40759 COND_TOOLKIT_PM_USE_GUI_1="#"
40760 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40761 COND_TOOLKIT_PM_USE_GUI_1=""
40762 fi
40763
40764 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40765 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40766 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40767 fi
40768
40769 COND_TOOLKIT_WINCE="#"
40770 if test "x$TOOLKIT" = "xWINCE" ; then
40771 COND_TOOLKIT_WINCE=""
40772 fi
40773
40774 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40775 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40776 COND_TOOLKIT_WINCE_USE_GUI_1=""
40777 fi
40778
40779 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40780 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40781 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40782 fi
40783
40784 COND_TOOLKIT_X11="#"
40785 if test "x$TOOLKIT" = "xX11" ; then
40786 COND_TOOLKIT_X11=""
40787 fi
40788
40789 COND_TOOLKIT_X11_USE_GUI_1="#"
40790 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40791 COND_TOOLKIT_X11_USE_GUI_1=""
40792 fi
40793
40794 COND_UNICODE_1="#"
40795 if test "x$UNICODE" = "x1" ; then
40796 COND_UNICODE_1=""
40797 fi
40798
40799 COND_USE_EXCEPTIONS_0="#"
40800 if test "x$USE_EXCEPTIONS" = "x0" ; then
40801 COND_USE_EXCEPTIONS_0=""
40802 fi
40803
40804 COND_USE_EXCEPTIONS_1="#"
40805 if test "x$USE_EXCEPTIONS" = "x1" ; then
40806 COND_USE_EXCEPTIONS_1=""
40807 fi
40808
40809 COND_USE_GUI_0="#"
40810 if test "x$USE_GUI" = "x0" ; then
40811 COND_USE_GUI_0=""
40812 fi
40813
40814 COND_USE_GUI_1="#"
40815 if test "x$USE_GUI" = "x1" ; then
40816 COND_USE_GUI_1=""
40817 fi
40818
40819 COND_USE_GUI_1_WXUNIV_0="#"
40820 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40821 COND_USE_GUI_1_WXUNIV_0=""
40822 fi
40823
40824 COND_USE_GUI_1_WXUNIV_1="#"
40825 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40826 COND_USE_GUI_1_WXUNIV_1=""
40827 fi
40828
40829 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40830 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40831 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40832 fi
40833
40834 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40835 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40836 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40837 fi
40838
40839 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40840 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40841 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40842 fi
40843
40844 COND_USE_ODBC_1="#"
40845 if test "x$USE_ODBC" = "x1" ; then
40846 COND_USE_ODBC_1=""
40847 fi
40848
40849 COND_USE_PLUGINS_0="#"
40850 if test "x$USE_PLUGINS" = "x0" ; then
40851 COND_USE_PLUGINS_0=""
40852 fi
40853
40854 COND_USE_SOSYMLINKS_1="#"
40855 if test "x$USE_SOSYMLINKS" = "x1" ; then
40856 COND_USE_SOSYMLINKS_1=""
40857 fi
40858
40859 COND_USE_SOVERLINUX_1="#"
40860 if test "x$USE_SOVERLINUX" = "x1" ; then
40861 COND_USE_SOVERLINUX_1=""
40862 fi
40863
40864 COND_USE_SOVERSION_0="#"
40865 if test "x$USE_SOVERSION" = "x0" ; then
40866 COND_USE_SOVERSION_0=""
40867 fi
40868
40869 COND_USE_SOVERSOLARIS_1="#"
40870 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40871 COND_USE_SOVERSOLARIS_1=""
40872 fi
40873
40874 COND_WITH_PLUGIN_SDL_1="#"
40875 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40876 COND_WITH_PLUGIN_SDL_1=""
40877 fi
40878
40879 COND_WXUNIV_1="#"
40880 if test "x$WXUNIV" = "x1" ; then
40881 COND_WXUNIV_1=""
40882 fi
40883
40884 COND_WXUSE_EXPAT_BUILTIN="#"
40885 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40886 COND_WXUSE_EXPAT_BUILTIN=""
40887 fi
40888
40889 COND_WXUSE_LIBJPEG_BUILTIN="#"
40890 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40891 COND_WXUSE_LIBJPEG_BUILTIN=""
40892 fi
40893
40894 COND_WXUSE_LIBPNG_BUILTIN="#"
40895 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40896 COND_WXUSE_LIBPNG_BUILTIN=""
40897 fi
40898
40899 COND_WXUSE_LIBTIFF_BUILTIN="#"
40900 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40901 COND_WXUSE_LIBTIFF_BUILTIN=""
40902 fi
40903
40904 COND_WXUSE_ODBC_BUILTIN="#"
40905 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40906 COND_WXUSE_ODBC_BUILTIN=""
40907 fi
40908
40909 COND_WXUSE_REGEX_BUILTIN="#"
40910 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40911 COND_WXUSE_REGEX_BUILTIN=""
40912 fi
40913
40914 COND_WXUSE_ZLIB_BUILTIN="#"
40915 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40916 COND_WXUSE_ZLIB_BUILTIN=""
40917 fi
40918
a848cd7e
SC
40919
40920
9f45f08e
VS
40921 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40922 { { 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
40923echo "$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;}
40924 { (exit 1); exit 1; }; }
40925 fi
40926
a848cd7e
SC
40927
40928
74b84332 40929GCC_PRAGMA_FLAGS=""
a848cd7e 40930if test $GCC_PCH = 1 ; then
74b84332 40931 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40932else
40933 case "${host}" in
40934 powerpc-*-darwin* )
74b84332 40935 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40936 ;;
bea8e651 40937 *-*-mingw32* )
1f344abf
VS
40938 if test "$wxUSE_STL" = "yes" -o \
40939 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40940 "$wxUSE_NO_RTTI" != "yes"; then
40941 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40942echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40943 cat >conftest.$ac_ext <<_ACEOF
40944/* confdefs.h. */
40945_ACEOF
40946cat confdefs.h >>conftest.$ac_ext
40947cat >>conftest.$ac_ext <<_ACEOF
40948/* end confdefs.h. */
40949
40950int
40951main ()
40952{
1f344abf 40953#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40954 #error "Not GCC 3.2 or greater"
40955 #endif
40956
40957 ;
40958 return 0;
40959}
40960_ACEOF
40961rm -f conftest.$ac_objext
40962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40963 (eval $ac_compile) 2>conftest.er1
bea8e651 40964 ac_status=$?
ac1cb8d3
VS
40965 grep -v '^ *+' conftest.er1 >conftest.err
40966 rm -f conftest.er1
40967 cat conftest.err >&5
bea8e651
MB
40968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969 (exit $ac_status); } &&
ac1cb8d3
VS
40970 { ac_try='test -z "$ac_c_werror_flag"
40971 || test ! -s conftest.err'
40972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40973 (eval $ac_try) 2>&5
40974 ac_status=$?
40975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40976 (exit $ac_status); }; } &&
40977 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40979 (eval $ac_try) 2>&5
40980 ac_status=$?
40981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40982 (exit $ac_status); }; }; then
74b84332 40983 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40984 echo "$as_me:$LINENO: result: yes" >&5
40985echo "${ECHO_T}yes" >&6
40986else
40987 echo "$as_me: failed program was:" >&5
40988sed 's/^/| /' conftest.$ac_ext >&5
40989
40990echo "$as_me:$LINENO: result: no" >&5
40991echo "${ECHO_T}no" >&6
40992fi
ac1cb8d3 40993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40994 fi
40995 ;;
a848cd7e
SC
40996 esac
40997fi
74b84332 40998CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
40999
41000
41001SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41002
41003
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
41084
41085
41086
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099
74b84332 41100
a848cd7e
SC
41101
41102
41103echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41104echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41105set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41106if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41107 echo $ECHO_N "(cached) $ECHO_C" >&6
41108else
41109 cat >conftest.make <<\_ACEOF
41110all:
41111 @echo 'ac_maketemp="$(MAKE)"'
41112_ACEOF
41113# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41114eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41115if test -n "$ac_maketemp"; then
41116 eval ac_cv_prog_make_${ac_make}_set=yes
41117else
41118 eval ac_cv_prog_make_${ac_make}_set=no
41119fi
41120rm -f conftest.make
41121fi
41122if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41123 echo "$as_me:$LINENO: result: yes" >&5
41124echo "${ECHO_T}yes" >&6
41125 SET_MAKE=
41126else
41127 echo "$as_me:$LINENO: result: no" >&5
41128echo "${ECHO_T}no" >&6
41129 SET_MAKE="MAKE=${MAKE-make}"
41130fi
41131
41132
41133if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41134 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41135fi
41136
41137 ac_config_headers="$ac_config_headers setup.h"
41138
41139
8708fa76 41140 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
a848cd7e
SC
41141
41142
41143 ac_config_commands="$ac_config_commands default"
41144
41145
41146
41147if test "$wxUSE_GUI" = "yes"; then
41148 SUBDIRS="samples demos utils contrib"
41149else SUBDIRS="samples utils"
41150fi
41151
41152
41153
41154# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41155if test "${with_cppunit_prefix+set}" = set; then
41156 withval="$with_cppunit_prefix"
41157 cppunit_config_prefix="$withval"
41158else
41159 cppunit_config_prefix=""
41160fi;
41161
41162# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41163if test "${with_cppunit_exec_prefix+set}" = set; then
41164 withval="$with_cppunit_exec_prefix"
41165 cppunit_config_exec_prefix="$withval"
41166else
41167 cppunit_config_exec_prefix=""
41168fi;
41169
41170 if test x$cppunit_config_exec_prefix != x ; then
41171 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41172 if test x${CPPUNIT_CONFIG+set} != xset ; then
41173 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41174 fi
41175 fi
41176 if test x$cppunit_config_prefix != x ; then
41177 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41178 if test x${CPPUNIT_CONFIG+set} != xset ; then
41179 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41180 fi
41181 fi
41182
41183 # Extract the first word of "cppunit-config", so it can be a program name with args.
41184set dummy cppunit-config; ac_word=$2
41185echo "$as_me:$LINENO: checking for $ac_word" >&5
41186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41187if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41188 echo $ECHO_N "(cached) $ECHO_C" >&6
41189else
41190 case $CPPUNIT_CONFIG in
41191 [\\/]* | ?:[\\/]*)
41192 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41193 ;;
41194 *)
41195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41196for as_dir in $PATH
41197do
41198 IFS=$as_save_IFS
41199 test -z "$as_dir" && as_dir=.
41200 for ac_exec_ext in '' $ac_executable_extensions; do
41201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41202 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41204 break 2
41205 fi
41206done
41207done
41208
41209 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41210 ;;
41211esac
41212fi
41213CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41214
41215if test -n "$CPPUNIT_CONFIG"; then
41216 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41217echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41218else
41219 echo "$as_me:$LINENO: result: no" >&5
41220echo "${ECHO_T}no" >&6
41221fi
41222
41223 cppunit_version_min=1.8.0
41224
41225 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41226echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41227 no_cppunit=""
41228 if test "$CPPUNIT_CONFIG" = "no" ; then
41229 no_cppunit=yes
41230 else
41231 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41232 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41233 cppunit_version=`$CPPUNIT_CONFIG --version`
41234
41235 cppunit_major_version=`echo $cppunit_version | \
41236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41237 cppunit_minor_version=`echo $cppunit_version | \
41238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41239 cppunit_micro_version=`echo $cppunit_version | \
41240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41241
41242 cppunit_major_min=`echo $cppunit_version_min | \
41243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41244 cppunit_minor_min=`echo $cppunit_version_min | \
41245 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41246 cppunit_micro_min=`echo $cppunit_version_min | \
41247 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41248
41249 cppunit_version_proper=`expr \
41250 $cppunit_major_version \> $cppunit_major_min \| \
41251 $cppunit_major_version \= $cppunit_major_min \& \
41252 $cppunit_minor_version \> $cppunit_minor_min \| \
41253 $cppunit_major_version \= $cppunit_major_min \& \
41254 $cppunit_minor_version \= $cppunit_minor_min \& \
41255 $cppunit_micro_version \>= $cppunit_micro_min `
41256
41257 if test "$cppunit_version_proper" = "1" ; then
41258 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41259echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41260 else
41261 echo "$as_me:$LINENO: result: no" >&5
41262echo "${ECHO_T}no" >&6
41263 no_cppunit=yes
41264 fi
41265 fi
41266
41267 if test "x$no_cppunit" = x ; then
c2218763 41268 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41269 else
41270 CPPUNIT_CFLAGS=""
41271 CPPUNIT_LIBS=""
c2218763 41272 :
a848cd7e
SC
41273 fi
41274
41275
41276
41277
41278
41279for subdir in `echo $SUBDIRS`; do
41280 if test -d ${srcdir}/${subdir} ; then
41281 if test "$wxUSE_GUI" = "yes"; then
41282 if test ${subdir} = "samples"; then
41283 makefiles="samples/Makefile.in $makefiles"
41284 for sample in `echo $SAMPLES_SUBDIRS`; do
41285 if test -d $srcdir/samples/$sample; then
41286 makefiles="samples/$sample/Makefile.in $makefiles"
41287 fi
41288 done
41289 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41290 fi
41291 else if test ${subdir} = "samples"; then
41292 makefiles="samples/Makefile.in samples/console/Makefile.in"
41293 elif test ${subdir} = "utils"; then
41294 makefiles="utils/HelpGen/Makefile.in \
41295 utils/HelpGen/src/Makefile.in \
41296 utils/tex2rtf/Makefile.in \
41297 utils/tex2rtf/src/Makefile.in"
41298 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41299 fi
41300 fi
41301
41302 for mkin in $makefiles ; do
41303 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41304 ac_config_files="$ac_config_files $mk"
41305
41306 done
41307 fi
41308done
41309
41310
41311cat >confcache <<\_ACEOF
41312# This file is a shell script that caches the results of configure
41313# tests run on this system so they can be shared between configure
41314# scripts and configure runs, see configure's option --config-cache.
41315# It is not useful on other systems. If it contains results you don't
41316# want to keep, you may remove or edit it.
41317#
41318# config.status only pays attention to the cache file if you give it
41319# the --recheck option to rerun configure.
41320#
41321# `ac_cv_env_foo' variables (set or unset) will be overridden when
41322# loading this file, other *unset* `ac_cv_foo' will be assigned the
41323# following values.
41324
41325_ACEOF
41326
41327# The following way of writing the cache mishandles newlines in values,
41328# but we know of no workaround that is simple, portable, and efficient.
41329# So, don't put newlines in cache variables' values.
41330# Ultrix sh set writes to stderr and can't be redirected directly,
41331# and sets the high bit in the cache file unless we assign to the vars.
41332{
41333 (set) 2>&1 |
41334 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41335 *ac_space=\ *)
41336 # `set' does not quote correctly, so add quotes (double-quote
41337 # substitution turns \\\\ into \\, and sed turns \\ into \).
41338 sed -n \
ac1cb8d3
VS
41339 "s/'/'\\\\''/g;
41340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41341 ;;
41342 *)
41343 # `set' quotes correctly as required by POSIX, so do not add quotes.
41344 sed -n \
ac1cb8d3 41345 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41346 ;;
41347 esac;
41348} |
41349 sed '
41350 t clear
41351 : clear
41352 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41353 t end
41354 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41355 : end' >>confcache
41356if diff $cache_file confcache >/dev/null 2>&1; then :; else
41357 if test -w $cache_file; then
41358 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41359 cat confcache >$cache_file
41360 else
41361 echo "not updating unwritable cache $cache_file"
41362 fi
41363fi
41364rm -f confcache
41365
41366test "x$prefix" = xNONE && prefix=$ac_default_prefix
41367# Let make expand exec_prefix.
41368test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41369
41370# VPATH may cause trouble with some makes, so we remove $(srcdir),
41371# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41372# trailing colons and then remove the whole line if VPATH becomes empty
41373# (actually we leave an empty line to preserve line numbers).
41374if test "x$srcdir" = x.; then
ac1cb8d3 41375 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41376s/:*\$(srcdir):*/:/;
41377s/:*\${srcdir}:*/:/;
41378s/:*@srcdir@:*/:/;
ac1cb8d3 41379s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41380s/:*$//;
ac1cb8d3 41381s/^[^=]*=[ ]*$//;
a848cd7e
SC
41382}'
41383fi
41384
41385DEFS=-DHAVE_CONFIG_H
41386
41387ac_libobjs=
41388ac_ltlibobjs=
41389for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41390 # 1. Remove the extension, and $U if already installed.
41391 ac_i=`echo "$ac_i" |
ac1cb8d3 41392 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41393 # 2. Add them.
41394 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41395 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41396done
41397LIBOBJS=$ac_libobjs
41398
41399LTLIBOBJS=$ac_ltlibobjs
41400
41401
41402
41403: ${CONFIG_STATUS=./config.status}
41404ac_clean_files_save=$ac_clean_files
41405ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41406{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41407echo "$as_me: creating $CONFIG_STATUS" >&6;}
41408cat >$CONFIG_STATUS <<_ACEOF
41409#! $SHELL
41410# Generated by $as_me.
41411# Run this file to recreate the current configuration.
41412# Compiler output produced by configure, useful for debugging
41413# configure, is in config.log if it exists.
41414
41415debug=false
41416ac_cs_recheck=false
41417ac_cs_silent=false
41418SHELL=\${CONFIG_SHELL-$SHELL}
41419_ACEOF
41420
41421cat >>$CONFIG_STATUS <<\_ACEOF
41422## --------------------- ##
41423## M4sh Initialization. ##
41424## --------------------- ##
41425
41426# Be Bourne compatible
41427if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41428 emulate sh
41429 NULLCMD=:
41430 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41431 # is contrary to our usage. Disable this feature.
41432 alias -g '${1+"$@"}'='"$@"'
41433elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41434 set -o posix
41435fi
ac1cb8d3 41436DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41437
41438# Support unset when possible.
ac1cb8d3 41439if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41440 as_unset=unset
41441else
41442 as_unset=false
41443fi
41444
41445
41446# Work around bugs in pre-3.0 UWIN ksh.
41447$as_unset ENV MAIL MAILPATH
41448PS1='$ '
41449PS2='> '
41450PS4='+ '
41451
41452# NLS nuisances.
41453for as_var in \
41454 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41455 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41456 LC_TELEPHONE LC_TIME
41457do
ac1cb8d3 41458 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41459 eval $as_var=C; export $as_var
41460 else
41461 $as_unset $as_var
41462 fi
41463done
41464
41465# Required to use basename.
41466if expr a : '\(a\)' >/dev/null 2>&1; then
41467 as_expr=expr
41468else
41469 as_expr=false
41470fi
41471
41472if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41473 as_basename=basename
41474else
41475 as_basename=false
41476fi
41477
41478
41479# Name of the executable.
41480as_me=`$as_basename "$0" ||
41481$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41482 X"$0" : 'X\(//\)$' \| \
41483 X"$0" : 'X\(/\)$' \| \
41484 . : '\(.\)' 2>/dev/null ||
41485echo X/"$0" |
41486 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41487 /^X\/\(\/\/\)$/{ s//\1/; q; }
41488 /^X\/\(\/\).*/{ s//\1/; q; }
41489 s/.*/./; q'`
41490
41491
41492# PATH needs CR, and LINENO needs CR and PATH.
41493# Avoid depending upon Character Ranges.
41494as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41495as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41496as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41497as_cr_digits='0123456789'
41498as_cr_alnum=$as_cr_Letters$as_cr_digits
41499
41500# The user is always right.
41501if test "${PATH_SEPARATOR+set}" != set; then
41502 echo "#! /bin/sh" >conf$$.sh
41503 echo "exit 0" >>conf$$.sh
41504 chmod +x conf$$.sh
41505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41506 PATH_SEPARATOR=';'
41507 else
41508 PATH_SEPARATOR=:
41509 fi
41510 rm -f conf$$.sh
41511fi
41512
41513
41514 as_lineno_1=$LINENO
41515 as_lineno_2=$LINENO
41516 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41517 test "x$as_lineno_1" != "x$as_lineno_2" &&
41518 test "x$as_lineno_3" = "x$as_lineno_2" || {
41519 # Find who we are. Look in the path if we contain no path at all
41520 # relative or not.
41521 case $0 in
41522 *[\\/]* ) as_myself=$0 ;;
41523 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41524for as_dir in $PATH
41525do
41526 IFS=$as_save_IFS
41527 test -z "$as_dir" && as_dir=.
41528 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41529done
41530
41531 ;;
41532 esac
41533 # We did not find ourselves, most probably we were run as `sh COMMAND'
41534 # in which case we are not to be found in the path.
41535 if test "x$as_myself" = x; then
41536 as_myself=$0
41537 fi
41538 if test ! -f "$as_myself"; then
41539 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41540echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41541 { (exit 1); exit 1; }; }
41542 fi
41543 case $CONFIG_SHELL in
41544 '')
41545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41546for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41547do
41548 IFS=$as_save_IFS
41549 test -z "$as_dir" && as_dir=.
41550 for as_base in sh bash ksh sh5; do
41551 case $as_dir in
41552 /*)
41553 if ("$as_dir/$as_base" -c '
41554 as_lineno_1=$LINENO
41555 as_lineno_2=$LINENO
41556 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41557 test "x$as_lineno_1" != "x$as_lineno_2" &&
41558 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41559 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41560 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41561 CONFIG_SHELL=$as_dir/$as_base
41562 export CONFIG_SHELL
41563 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41564 fi;;
41565 esac
41566 done
41567done
41568;;
41569 esac
41570
41571 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41572 # uniformly replaced by the line number. The first 'sed' inserts a
41573 # line-number line before each line; the second 'sed' does the real
41574 # work. The second script uses 'N' to pair each line-number line
41575 # with the numbered line, and appends trailing '-' during
41576 # substitution so that $LINENO is not a special case at line end.
41577 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41578 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41579 sed '=' <$as_myself |
41580 sed '
41581 N
41582 s,$,-,
41583 : loop
41584 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41585 t loop
41586 s,-$,,
41587 s,^['$as_cr_digits']*\n,,
41588 ' >$as_me.lineno &&
41589 chmod +x $as_me.lineno ||
41590 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41591echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41592 { (exit 1); exit 1; }; }
41593
41594 # Don't try to exec as it changes $[0], causing all sort of problems
41595 # (the dirname of $[0] is not the place where we might find the
41596 # original and so on. Autoconf is especially sensible to this).
41597 . ./$as_me.lineno
41598 # Exit status is that of the last command.
41599 exit
41600}
41601
41602
41603case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41604 *c*,-n*) ECHO_N= ECHO_C='
41605' ECHO_T=' ' ;;
41606 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41607 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41608esac
41609
41610if expr a : '\(a\)' >/dev/null 2>&1; then
41611 as_expr=expr
41612else
41613 as_expr=false
41614fi
41615
41616rm -f conf$$ conf$$.exe conf$$.file
41617echo >conf$$.file
41618if ln -s conf$$.file conf$$ 2>/dev/null; then
41619 # We could just check for DJGPP; but this test a) works b) is more generic
41620 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41621 if test -f conf$$.exe; then
41622 # Don't use ln at all; we don't have any links
41623 as_ln_s='cp -p'
41624 else
41625 as_ln_s='ln -s'
41626 fi
41627elif ln conf$$.file conf$$ 2>/dev/null; then
41628 as_ln_s=ln
41629else
41630 as_ln_s='cp -p'
41631fi
41632rm -f conf$$ conf$$.exe conf$$.file
41633
41634if mkdir -p . 2>/dev/null; then
41635 as_mkdir_p=:
41636else
ac1cb8d3 41637 test -d ./-p && rmdir ./-p
a848cd7e
SC
41638 as_mkdir_p=false
41639fi
41640
41641as_executable_p="test -f"
41642
41643# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41644as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41645
41646# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41647as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41648
41649
41650# IFS
41651# We need space, tab and new line, in precisely that order.
41652as_nl='
41653'
41654IFS=" $as_nl"
41655
41656# CDPATH.
41657$as_unset CDPATH
41658
41659exec 6>&1
41660
41661# Open the log real soon, to keep \$[0] and so on meaningful, and to
41662# report actual input values of CONFIG_FILES etc. instead of their
41663# values after options handling. Logging --version etc. is OK.
41664exec 5>>config.log
41665{
41666 echo
41667 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41668## Running $as_me. ##
41669_ASBOX
41670} >&5
41671cat >&5 <<_CSEOF
41672
77ffb593 41673This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41674generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41675
41676 CONFIG_FILES = $CONFIG_FILES
41677 CONFIG_HEADERS = $CONFIG_HEADERS
41678 CONFIG_LINKS = $CONFIG_LINKS
41679 CONFIG_COMMANDS = $CONFIG_COMMANDS
41680 $ $0 $@
41681
41682_CSEOF
41683echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41684echo >&5
41685_ACEOF
41686
41687# Files that config.status was made for.
41688if test -n "$ac_config_files"; then
41689 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41690fi
41691
41692if test -n "$ac_config_headers"; then
41693 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41694fi
41695
41696if test -n "$ac_config_links"; then
41697 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41698fi
41699
41700if test -n "$ac_config_commands"; then
41701 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41702fi
41703
41704cat >>$CONFIG_STATUS <<\_ACEOF
41705
41706ac_cs_usage="\
41707\`$as_me' instantiates files from templates according to the
41708current configuration.
41709
41710Usage: $0 [OPTIONS] [FILE]...
41711
41712 -h, --help print this help, then exit
41713 -V, --version print version number, then exit
41714 -q, --quiet do not print progress messages
41715 -d, --debug don't remove temporary files
41716 --recheck update $as_me by reconfiguring in the same conditions
41717 --file=FILE[:TEMPLATE]
ac1cb8d3 41718 instantiate the configuration file FILE
a848cd7e 41719 --header=FILE[:TEMPLATE]
ac1cb8d3 41720 instantiate the configuration header FILE
a848cd7e
SC
41721
41722Configuration files:
41723$config_files
41724
41725Configuration headers:
41726$config_headers
41727
41728Configuration commands:
41729$config_commands
41730
41731Report bugs to <bug-autoconf@gnu.org>."
41732_ACEOF
41733
41734cat >>$CONFIG_STATUS <<_ACEOF
41735ac_cs_version="\\
77ffb593 41736wxWidgets config.status 2.5.2
ac1cb8d3 41737configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41738 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41739
ac1cb8d3 41740Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41741This config.status script is free software; the Free Software Foundation
41742gives unlimited permission to copy, distribute and modify it."
41743srcdir=$srcdir
41744INSTALL="$INSTALL"
41745_ACEOF
41746
41747cat >>$CONFIG_STATUS <<\_ACEOF
41748# If no file are specified by the user, then we need to provide default
41749# value. By we need to know if files were specified by the user.
41750ac_need_defaults=:
41751while test $# != 0
41752do
41753 case $1 in
41754 --*=*)
41755 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41756 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41757 ac_shift=:
41758 ;;
41759 -*)
41760 ac_option=$1
41761 ac_optarg=$2
41762 ac_shift=shift
41763 ;;
41764 *) # This is not an option, so the user has probably given explicit
41765 # arguments.
41766 ac_option=$1
41767 ac_need_defaults=false;;
41768 esac
41769
41770 case $ac_option in
41771 # Handling of the options.
41772_ACEOF
41773cat >>$CONFIG_STATUS <<\_ACEOF
41774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41775 ac_cs_recheck=: ;;
41776 --version | --vers* | -V )
41777 echo "$ac_cs_version"; exit 0 ;;
41778 --he | --h)
41779 # Conflict between --help and --header
41780 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41781Try \`$0 --help' for more information." >&5
41782echo "$as_me: error: ambiguous option: $1
41783Try \`$0 --help' for more information." >&2;}
41784 { (exit 1); exit 1; }; };;
41785 --help | --hel | -h )
41786 echo "$ac_cs_usage"; exit 0 ;;
41787 --debug | --d* | -d )
41788 debug=: ;;
41789 --file | --fil | --fi | --f )
41790 $ac_shift
41791 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41792 ac_need_defaults=false;;
41793 --header | --heade | --head | --hea )
41794 $ac_shift
41795 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41796 ac_need_defaults=false;;
41797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41798 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41799 ac_cs_silent=: ;;
41800
41801 # This is an error.
41802 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41803Try \`$0 --help' for more information." >&5
41804echo "$as_me: error: unrecognized option: $1
41805Try \`$0 --help' for more information." >&2;}
41806 { (exit 1); exit 1; }; } ;;
41807
41808 *) ac_config_targets="$ac_config_targets $1" ;;
41809
41810 esac
41811 shift
41812done
41813
41814ac_configure_extra_args=
41815
41816if $ac_cs_silent; then
41817 exec 6>/dev/null
41818 ac_configure_extra_args="$ac_configure_extra_args --silent"
41819fi
41820
41821_ACEOF
41822cat >>$CONFIG_STATUS <<_ACEOF
41823if \$ac_cs_recheck; then
41824 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41825 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41826fi
41827
41828_ACEOF
41829
41830cat >>$CONFIG_STATUS <<_ACEOF
41831#
41832# INIT-COMMANDS section.
41833#
41834
41835
41836 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
48112931 41837 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
a848cd7e
SC
41838 LN_S="${LN_S}"
41839
41840
41841
41842_ACEOF
41843
41844
41845
41846cat >>$CONFIG_STATUS <<\_ACEOF
41847for ac_config_target in $ac_config_targets
41848do
41849 case "$ac_config_target" in
41850 # Handling of arguments.
41851 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
8708fa76 41852 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
a848cd7e
SC
41853 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41854 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41855 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41856 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41857 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41858 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41859echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41860 { (exit 1); exit 1; }; };;
41861 esac
41862done
41863
41864# If the user did not use the arguments to specify the items to instantiate,
41865# then the envvar interface is used. Set only those that are not.
41866# We use the long form for the default assignment because of an extremely
41867# bizarre bug on SunOS 4.1.3.
41868if $ac_need_defaults; then
41869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41870 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41871 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41872fi
41873
41874# Have a temporary directory for convenience. Make it in the build tree
41875# simply because there is no reason to put it here, and in addition,
41876# creating and moving files from /tmp can sometimes cause problems.
41877# Create a temporary directory, and hook for its removal unless debugging.
41878$debug ||
41879{
41880 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41881 trap '{ (exit 1); exit 1; }' 1 2 13 15
41882}
41883
41884# Create a (secure) tmp directory for tmp files.
41885
41886{
41887 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41888 test -n "$tmp" && test -d "$tmp"
41889} ||
41890{
41891 tmp=./confstat$$-$RANDOM
41892 (umask 077 && mkdir $tmp)
41893} ||
41894{
41895 echo "$me: cannot create a temporary directory in ." >&2
41896 { (exit 1); exit 1; }
41897}
41898
41899_ACEOF
41900
41901cat >>$CONFIG_STATUS <<_ACEOF
41902
41903#
41904# CONFIG_FILES section.
41905#
41906
41907# No need to generate the scripts if there are no CONFIG_FILES.
41908# This happens for instance when ./config.status config.h
41909if test -n "\$CONFIG_FILES"; then
41910 # Protect against being on the right side of a sed subst in config.status.
41911 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41912 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41913s,@SHELL@,$SHELL,;t t
41914s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41915s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41916s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41917s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41918s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41919s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41920s,@exec_prefix@,$exec_prefix,;t t
41921s,@prefix@,$prefix,;t t
41922s,@program_transform_name@,$program_transform_name,;t t
41923s,@bindir@,$bindir,;t t
41924s,@sbindir@,$sbindir,;t t
41925s,@libexecdir@,$libexecdir,;t t
41926s,@datadir@,$datadir,;t t
41927s,@sysconfdir@,$sysconfdir,;t t
41928s,@sharedstatedir@,$sharedstatedir,;t t
41929s,@localstatedir@,$localstatedir,;t t
41930s,@libdir@,$libdir,;t t
41931s,@includedir@,$includedir,;t t
41932s,@oldincludedir@,$oldincludedir,;t t
41933s,@infodir@,$infodir,;t t
41934s,@mandir@,$mandir,;t t
41935s,@build_alias@,$build_alias,;t t
41936s,@host_alias@,$host_alias,;t t
41937s,@target_alias@,$target_alias,;t t
41938s,@DEFS@,$DEFS,;t t
41939s,@ECHO_C@,$ECHO_C,;t t
41940s,@ECHO_N@,$ECHO_N,;t t
41941s,@ECHO_T@,$ECHO_T,;t t
41942s,@LIBS@,$LIBS,;t t
41943s,@build@,$build,;t t
41944s,@build_cpu@,$build_cpu,;t t
41945s,@build_vendor@,$build_vendor,;t t
41946s,@build_os@,$build_os,;t t
41947s,@host@,$host,;t t
41948s,@host_cpu@,$host_cpu,;t t
41949s,@host_vendor@,$host_vendor,;t t
41950s,@host_os@,$host_os,;t t
41951s,@target@,$target,;t t
41952s,@target_cpu@,$target_cpu,;t t
41953s,@target_vendor@,$target_vendor,;t t
41954s,@target_os@,$target_os,;t t
41955s,@CC@,$CC,;t t
41956s,@CFLAGS@,$CFLAGS,;t t
41957s,@LDFLAGS@,$LDFLAGS,;t t
41958s,@CPPFLAGS@,$CPPFLAGS,;t t
41959s,@ac_ct_CC@,$ac_ct_CC,;t t
41960s,@EXEEXT@,$EXEEXT,;t t
41961s,@OBJEXT@,$OBJEXT,;t t
41962s,@CPP@,$CPP,;t t
41963s,@EGREP@,$EGREP,;t t
41964s,@CXX@,$CXX,;t t
41965s,@CXXFLAGS@,$CXXFLAGS,;t t
41966s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41967s,@RANLIB@,$RANLIB,;t t
41968s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41969s,@AR@,$AR,;t t
41970s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41971s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41972s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41973s,@STRIP@,$STRIP,;t t
41974s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41975s,@LN_S@,$LN_S,;t t
41976s,@CXXCPP@,$CXXCPP,;t t
41977s,@subdirs@,$subdirs,;t t
41978s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41979s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41980s,@GTK_LIBS@,$GTK_LIBS,;t t
41981s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41982s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41983s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41984s,@X_CFLAGS@,$X_CFLAGS,;t t
41985s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41986s,@X_LIBS@,$X_LIBS,;t t
41987s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41988s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41989s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41990s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41991s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41992s,@RESCOMP@,$RESCOMP,;t t
41993s,@DEREZ@,$DEREZ,;t t
41994s,@SETFILE@,$SETFILE,;t t
41995s,@LIBICONV@,$LIBICONV,;t t
41996s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41997s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41998s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41999s,@SDL_LIBS@,$SDL_LIBS,;t t
42000s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42001s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42002s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42003s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42004s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42005s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42006s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42007s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42008s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42009s,@VENDOR@,$VENDOR,;t t
42010s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42011s,@WXUNIV@,$WXUNIV,;t t
42012s,@MONOLITHIC@,$MONOLITHIC,;t t
42013s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42014s,@EXTRALIBS@,$EXTRALIBS,;t t
42015s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42016s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42017s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42018s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42019s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42020s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42021s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42022s,@UNICODE@,$UNICODE,;t t
42023s,@BUILD@,$BUILD,;t t
42024s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42025s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42026s,@SHARED@,$SHARED,;t t
42027s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42028s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42029s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42030s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42031s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42032s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42033s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42034s,@SET_MAKE@,$SET_MAKE,;t t
42035s,@MAKE_SET@,$MAKE_SET,;t t
42036s,@ac_ct_AR@,$ac_ct_AR,;t t
42037s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42038s,@NM@,$NM,;t t
42039s,@ac_ct_NM@,$ac_ct_NM,;t t
42040s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42041s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42042s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42043s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42044s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42045s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42046s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42047s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42048s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42049s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42050s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42051s,@LIBPREFIX@,$LIBPREFIX,;t t
42052s,@LIBEXT@,$LIBEXT,;t t
42053s,@DLLPREFIX@,$DLLPREFIX,;t t
42054s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42055s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42056s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42057s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42058s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42059s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42060s,@PIC_FLAG@,$PIC_FLAG,;t t
42061s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42062s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42063s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42064s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42065s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42066s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42067s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42068s,@GCC_PCH@,$GCC_PCH,;t t
42069s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42070s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42071s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42072s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42073s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42074s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42075s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42076s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42077s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42078s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42079s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42080s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42081s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42082s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42083s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42084s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42085s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42086s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42087s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42088s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42089s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42090s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42091s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42092s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42093s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42094s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42095s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42096s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42097s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42098s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42099s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42100s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42101s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42102s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42103s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42104s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42105s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
42106s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42107s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42108s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42109s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42110s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42111s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42112s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42113s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42114s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42115s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42116s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42117s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42118s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42119s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42120s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42121s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42122s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42123s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42124s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42125s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42126s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42127s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42128s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42129s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42130s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42131s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42132s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42133s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42134s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
e835546c 42135s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
a848cd7e
SC
42136s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42137s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42138s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42139s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42140s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42141s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42142s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42143s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
e835546c 42144s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
42145s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42146s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42147s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
e835546c 42148s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
3fd9c298
DE
42149s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42150s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42151s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42152s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42153s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42154s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42155s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42156s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42157s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42158s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42159s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42160s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42161s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42162s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42163s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42164s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42165s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42166s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42167s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42168s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42169s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42170s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42171s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
42172s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42173s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42174s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42175s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42176s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42177s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42178s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42179s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42180s,@PATH_IFS@,$PATH_IFS,;t t
42181s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42182s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42183s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
42184s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42185s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42186s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42187s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42188s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42189s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42190s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42191s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42192s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42193s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42194s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42195s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42196s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42197s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42198s,@WX_ALL@,$WX_ALL,;t t
42199s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42200s,@SHARED_LD@,$SHARED_LD,;t t
42201s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42202s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42203s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42204s,@USE_GUI@,$USE_GUI,;t t
42205s,@AFMINSTALL@,$AFMINSTALL,;t t
42206s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42207s,@TOOLKIT@,$TOOLKIT,;t t
42208s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42209s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42210s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42211s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42212s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42213s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42214s,@cross_compiling@,$cross_compiling,;t t
42215s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42216s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42217s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42218s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42219s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42220s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42221s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42222s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
48112931 42223s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
a848cd7e 42224s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42225s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42226s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42227s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42228s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42229s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42230s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42231s,@GUIDIST@,$GUIDIST,;t t
42232s,@PORT_FILES@,$PORT_FILES,;t t
42233s,@DISTDIR@,$DISTDIR,;t t
42234s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42235s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42236s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42237s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42238s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42239s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42240s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42241s,@RESFLAGS@,$RESFLAGS,;t t
42242s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42243s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42244s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42245s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42246s,@MACRESCOMP@,$MACRESCOMP,;t t
42247s,@MACSETFILE@,$MACSETFILE,;t t
42248s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42249s,@GCC@,$GCC,;t t
a848cd7e
SC
42250s,@DLLTOOL@,$DLLTOOL,;t t
42251s,@AS@,$AS,;t t
42252s,@LD@,$LD,;t t
42253s,@MAKEINFO@,$MAKEINFO,;t t
42254s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42255s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42256s,@LIBOBJS@,$LIBOBJS,;t t
42257s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42258CEOF
42259
42260_ACEOF
42261
42262 cat >>$CONFIG_STATUS <<\_ACEOF
42263 # Split the substitutions into bite-sized pieces for seds with
42264 # small command number limits, like on Digital OSF/1 and HP-UX.
42265 ac_max_sed_lines=48
42266 ac_sed_frag=1 # Number of current file.
42267 ac_beg=1 # First line for current file.
42268 ac_end=$ac_max_sed_lines # Line after last line for current file.
42269 ac_more_lines=:
42270 ac_sed_cmds=
42271 while $ac_more_lines; do
42272 if test $ac_beg -gt 1; then
42273 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42274 else
42275 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42276 fi
42277 if test ! -s $tmp/subs.frag; then
42278 ac_more_lines=false
42279 else
42280 # The purpose of the label and of the branching condition is to
42281 # speed up the sed processing (if there are no `@' at all, there
42282 # is no need to browse any of the substitutions).
42283 # These are the two extra sed commands mentioned above.
42284 (echo ':t
42285 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42286 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42287 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42288 else
ac1cb8d3 42289 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42290 fi
42291 ac_sed_frag=`expr $ac_sed_frag + 1`
42292 ac_beg=$ac_end
42293 ac_end=`expr $ac_end + $ac_max_sed_lines`
42294 fi
42295 done
42296 if test -z "$ac_sed_cmds"; then
42297 ac_sed_cmds=cat
42298 fi
42299fi # test -n "$CONFIG_FILES"
42300
42301_ACEOF
42302cat >>$CONFIG_STATUS <<\_ACEOF
42303for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42305 case $ac_file in
42306 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42307 cat >$tmp/stdin
42308 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42310 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42312 * ) ac_file_in=$ac_file.in ;;
42313 esac
42314
42315 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42316 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42317$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42318 X"$ac_file" : 'X\(//\)[^/]' \| \
42319 X"$ac_file" : 'X\(//\)$' \| \
42320 X"$ac_file" : 'X\(/\)' \| \
42321 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42322echo X"$ac_file" |
42323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42325 /^X\(\/\/\)$/{ s//\1/; q; }
42326 /^X\(\/\).*/{ s//\1/; q; }
42327 s/.*/./; q'`
42328 { if $as_mkdir_p; then
42329 mkdir -p "$ac_dir"
42330 else
42331 as_dir="$ac_dir"
42332 as_dirs=
42333 while test ! -d "$as_dir"; do
42334 as_dirs="$as_dir $as_dirs"
42335 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42337 X"$as_dir" : 'X\(//\)[^/]' \| \
42338 X"$as_dir" : 'X\(//\)$' \| \
42339 X"$as_dir" : 'X\(/\)' \| \
42340 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42341echo X"$as_dir" |
42342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42344 /^X\(\/\/\)$/{ s//\1/; q; }
42345 /^X\(\/\).*/{ s//\1/; q; }
42346 s/.*/./; q'`
42347 done
42348 test ! -n "$as_dirs" || mkdir $as_dirs
42349 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42350echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42351 { (exit 1); exit 1; }; }; }
42352
42353 ac_builddir=.
42354
42355if test "$ac_dir" != .; then
42356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42357 # A "../" for each directory in $ac_dir_suffix.
42358 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42359else
42360 ac_dir_suffix= ac_top_builddir=
42361fi
42362
42363case $srcdir in
42364 .) # No --srcdir option. We are building in place.
42365 ac_srcdir=.
42366 if test -z "$ac_top_builddir"; then
42367 ac_top_srcdir=.
42368 else
42369 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42370 fi ;;
42371 [\\/]* | ?:[\\/]* ) # Absolute path.
42372 ac_srcdir=$srcdir$ac_dir_suffix;
42373 ac_top_srcdir=$srcdir ;;
42374 *) # Relative path.
42375 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42376 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42377esac
ac1cb8d3
VS
42378
42379# Do not use `cd foo && pwd` to compute absolute paths, because
42380# the directories may not exist.
42381case `pwd` in
42382.) ac_abs_builddir="$ac_dir";;
42383*)
42384 case "$ac_dir" in
42385 .) ac_abs_builddir=`pwd`;;
42386 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42387 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42388 esac;;
42389esac
42390case $ac_abs_builddir in
42391.) ac_abs_top_builddir=${ac_top_builddir}.;;
42392*)
42393 case ${ac_top_builddir}. in
42394 .) ac_abs_top_builddir=$ac_abs_builddir;;
42395 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42396 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42397 esac;;
42398esac
42399case $ac_abs_builddir in
42400.) ac_abs_srcdir=$ac_srcdir;;
42401*)
42402 case $ac_srcdir in
42403 .) ac_abs_srcdir=$ac_abs_builddir;;
42404 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42405 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42406 esac;;
42407esac
42408case $ac_abs_builddir in
42409.) ac_abs_top_srcdir=$ac_top_srcdir;;
42410*)
42411 case $ac_top_srcdir in
42412 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42413 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42414 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42415 esac;;
42416esac
a848cd7e
SC
42417
42418
42419 case $INSTALL in
42420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42421 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42422 esac
42423
dcc1b6ad
VS
42424 if test x"$ac_file" != x-; then
42425 { echo "$as_me:$LINENO: creating $ac_file" >&5
42426echo "$as_me: creating $ac_file" >&6;}
42427 rm -f "$ac_file"
42428 fi
a848cd7e
SC
42429 # Let's still pretend it is `configure' which instantiates (i.e., don't
42430 # use $as_me), people would be surprised to read:
42431 # /* config.h. Generated by config.status. */
42432 if test x"$ac_file" = x-; then
42433 configure_input=
42434 else
42435 configure_input="$ac_file. "
42436 fi
42437 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42438 sed 's,.*/,,'` by configure."
a848cd7e
SC
42439
42440 # First look for the input files in the build tree, otherwise in the
42441 # src tree.
42442 ac_file_inputs=`IFS=:
42443 for f in $ac_file_in; do
42444 case $f in
42445 -) echo $tmp/stdin ;;
42446 [\\/$]*)
ac1cb8d3
VS
42447 # Absolute (can't be DOS-style, as IFS=:)
42448 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42449echo "$as_me: error: cannot find input file: $f" >&2;}
42450 { (exit 1); exit 1; }; }
ac1cb8d3 42451 echo "$f";;
a848cd7e 42452 *) # Relative
ac1cb8d3
VS
42453 if test -f "$f"; then
42454 # Build tree
42455 echo "$f"
42456 elif test -f "$srcdir/$f"; then
42457 # Source tree
42458 echo "$srcdir/$f"
42459 else
42460 # /dev/null tree
42461 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42462echo "$as_me: error: cannot find input file: $f" >&2;}
42463 { (exit 1); exit 1; }; }
ac1cb8d3 42464 fi;;
a848cd7e
SC
42465 esac
42466 done` || { (exit 1); exit 1; }
42467_ACEOF
42468cat >>$CONFIG_STATUS <<_ACEOF
42469 sed "$ac_vpsub
42470$extrasub
42471_ACEOF
42472cat >>$CONFIG_STATUS <<\_ACEOF
42473:t
42474/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42475s,@configure_input@,$configure_input,;t t
42476s,@srcdir@,$ac_srcdir,;t t
42477s,@abs_srcdir@,$ac_abs_srcdir,;t t
42478s,@top_srcdir@,$ac_top_srcdir,;t t
42479s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42480s,@builddir@,$ac_builddir,;t t
42481s,@abs_builddir@,$ac_abs_builddir,;t t
42482s,@top_builddir@,$ac_top_builddir,;t t
42483s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42484s,@INSTALL@,$ac_INSTALL,;t t
42485" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42486 rm -f $tmp/stdin
42487 if test x"$ac_file" != x-; then
42488 mv $tmp/out $ac_file
42489 else
42490 cat $tmp/out
42491 rm -f $tmp/out
42492 fi
42493
42494done
42495_ACEOF
42496cat >>$CONFIG_STATUS <<\_ACEOF
42497
42498#
42499# CONFIG_HEADER section.
42500#
42501
42502# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42503# NAME is the cpp macro being defined and VALUE is the value it is being given.
42504#
42505# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42506ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42507ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42508ac_dC=' '
42509ac_dD=',;t'
42510# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42511ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42512ac_uB='$,\1#\2define\3'
42513ac_uC=' '
42514ac_uD=',;t'
42515
42516for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42517 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42518 case $ac_file in
42519 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42520 cat >$tmp/stdin
42521 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42522 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42523 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42525 * ) ac_file_in=$ac_file.in ;;
42526 esac
42527
42528 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42529echo "$as_me: creating $ac_file" >&6;}
42530
42531 # First look for the input files in the build tree, otherwise in the
42532 # src tree.
42533 ac_file_inputs=`IFS=:
42534 for f in $ac_file_in; do
42535 case $f in
42536 -) echo $tmp/stdin ;;
42537 [\\/$]*)
ac1cb8d3
VS
42538 # Absolute (can't be DOS-style, as IFS=:)
42539 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42540echo "$as_me: error: cannot find input file: $f" >&2;}
42541 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42542 # Do quote $f, to prevent DOS paths from being IFS'd.
42543 echo "$f";;
a848cd7e 42544 *) # Relative
ac1cb8d3
VS
42545 if test -f "$f"; then
42546 # Build tree
42547 echo "$f"
42548 elif test -f "$srcdir/$f"; then
42549 # Source tree
42550 echo "$srcdir/$f"
42551 else
42552 # /dev/null tree
42553 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42554echo "$as_me: error: cannot find input file: $f" >&2;}
42555 { (exit 1); exit 1; }; }
ac1cb8d3 42556 fi;;
a848cd7e
SC
42557 esac
42558 done` || { (exit 1); exit 1; }
42559 # Remove the trailing spaces.
ac1cb8d3 42560 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42561
42562_ACEOF
42563
42564# Transform confdefs.h into two sed scripts, `conftest.defines' and
42565# `conftest.undefs', that substitutes the proper values into
42566# config.h.in to produce config.h. The first handles `#define'
42567# templates, and the second `#undef' templates.
42568# And first: Protect against being on the right side of a sed subst in
42569# config.status. Protect against being in an unquoted here document
42570# in config.status.
42571rm -f conftest.defines conftest.undefs
42572# Using a here document instead of a string reduces the quoting nightmare.
42573# Putting comments in sed scripts is not portable.
42574#
42575# `end' is used to avoid that the second main sed command (meant for
42576# 0-ary CPP macros) applies to n-ary macro definitions.
42577# See the Autoconf documentation for `clear'.
42578cat >confdef2sed.sed <<\_ACEOF
42579s/[\\&,]/\\&/g
42580s,[\\$`],\\&,g
42581t clear
42582: clear
ac1cb8d3 42583s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42584t end
ac1cb8d3 42585s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42586: end
42587_ACEOF
42588# If some macros were called several times there might be several times
42589# the same #defines, which is useless. Nevertheless, we may not want to
42590# sort them, since we want the *last* AC-DEFINE to be honored.
42591uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42592sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42593rm -f confdef2sed.sed
42594
42595# This sed command replaces #undef with comments. This is necessary, for
42596# example, in the case of _POSIX_SOURCE, which is predefined and required
42597# on some systems where configure will not decide to define it.
42598cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42599s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42600_ACEOF
42601
42602# Break up conftest.defines because some shells have a limit on the size
42603# of here documents, and old seds have small limits too (100 cmds).
42604echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42605echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42606echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42607echo ' :' >>$CONFIG_STATUS
42608rm -f conftest.tail
42609while grep . conftest.defines >/dev/null
42610do
42611 # Write a limited-size here document to $tmp/defines.sed.
42612 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42613 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42614 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42615 # Work around the forget-to-reset-the-flag bug.
42616 echo 't clr' >>$CONFIG_STATUS
42617 echo ': clr' >>$CONFIG_STATUS
42618 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42619 echo 'CEOF
42620 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42621 rm -f $tmp/in
42622 mv $tmp/out $tmp/in
42623' >>$CONFIG_STATUS
42624 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42625 rm -f conftest.defines
42626 mv conftest.tail conftest.defines
42627done
42628rm -f conftest.defines
42629echo ' fi # grep' >>$CONFIG_STATUS
42630echo >>$CONFIG_STATUS
42631
42632# Break up conftest.undefs because some shells have a limit on the size
42633# of here documents, and old seds have small limits too (100 cmds).
42634echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42635rm -f conftest.tail
42636while grep . conftest.undefs >/dev/null
42637do
42638 # Write a limited-size here document to $tmp/undefs.sed.
42639 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42640 # Speed up: don't consider the non `#undef'
ac1cb8d3 42641 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42642 # Work around the forget-to-reset-the-flag bug.
42643 echo 't clr' >>$CONFIG_STATUS
42644 echo ': clr' >>$CONFIG_STATUS
42645 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42646 echo 'CEOF
42647 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42648 rm -f $tmp/in
42649 mv $tmp/out $tmp/in
42650' >>$CONFIG_STATUS
42651 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42652 rm -f conftest.undefs
42653 mv conftest.tail conftest.undefs
42654done
42655rm -f conftest.undefs
42656
42657cat >>$CONFIG_STATUS <<\_ACEOF
42658 # Let's still pretend it is `configure' which instantiates (i.e., don't
42659 # use $as_me), people would be surprised to read:
42660 # /* config.h. Generated by config.status. */
42661 if test x"$ac_file" = x-; then
42662 echo "/* Generated by configure. */" >$tmp/config.h
42663 else
42664 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42665 fi
42666 cat $tmp/in >>$tmp/config.h
42667 rm -f $tmp/in
42668 if test x"$ac_file" != x-; then
42669 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42670 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42671echo "$as_me: $ac_file is unchanged" >&6;}
42672 else
42673 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42674$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42675 X"$ac_file" : 'X\(//\)[^/]' \| \
42676 X"$ac_file" : 'X\(//\)$' \| \
42677 X"$ac_file" : 'X\(/\)' \| \
42678 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42679echo X"$ac_file" |
42680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42682 /^X\(\/\/\)$/{ s//\1/; q; }
42683 /^X\(\/\).*/{ s//\1/; q; }
42684 s/.*/./; q'`
42685 { if $as_mkdir_p; then
42686 mkdir -p "$ac_dir"
42687 else
42688 as_dir="$ac_dir"
42689 as_dirs=
42690 while test ! -d "$as_dir"; do
42691 as_dirs="$as_dir $as_dirs"
42692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42694 X"$as_dir" : 'X\(//\)[^/]' \| \
42695 X"$as_dir" : 'X\(//\)$' \| \
42696 X"$as_dir" : 'X\(/\)' \| \
42697 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42698echo X"$as_dir" |
42699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42701 /^X\(\/\/\)$/{ s//\1/; q; }
42702 /^X\(\/\).*/{ s//\1/; q; }
42703 s/.*/./; q'`
42704 done
42705 test ! -n "$as_dirs" || mkdir $as_dirs
42706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42707echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42708 { (exit 1); exit 1; }; }; }
42709
42710 rm -f $ac_file
42711 mv $tmp/config.h $ac_file
42712 fi
42713 else
42714 cat $tmp/config.h
42715 rm -f $tmp/config.h
42716 fi
42717done
42718_ACEOF
42719cat >>$CONFIG_STATUS <<\_ACEOF
42720
42721#
42722# CONFIG_COMMANDS section.
42723#
42724for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42725 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42726 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42727 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42728$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42729 X"$ac_dest" : 'X\(//\)[^/]' \| \
42730 X"$ac_dest" : 'X\(//\)$' \| \
42731 X"$ac_dest" : 'X\(/\)' \| \
42732 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42733echo X"$ac_dest" |
42734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42736 /^X\(\/\/\)$/{ s//\1/; q; }
42737 /^X\(\/\).*/{ s//\1/; q; }
42738 s/.*/./; q'`
ac1cb8d3
VS
42739 { if $as_mkdir_p; then
42740 mkdir -p "$ac_dir"
42741 else
42742 as_dir="$ac_dir"
42743 as_dirs=
42744 while test ! -d "$as_dir"; do
42745 as_dirs="$as_dir $as_dirs"
42746 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42747$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42748 X"$as_dir" : 'X\(//\)[^/]' \| \
42749 X"$as_dir" : 'X\(//\)$' \| \
42750 X"$as_dir" : 'X\(/\)' \| \
42751 . : '\(.\)' 2>/dev/null ||
42752echo X"$as_dir" |
42753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42755 /^X\(\/\/\)$/{ s//\1/; q; }
42756 /^X\(\/\).*/{ s//\1/; q; }
42757 s/.*/./; q'`
42758 done
42759 test ! -n "$as_dirs" || mkdir $as_dirs
42760 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42761echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42762 { (exit 1); exit 1; }; }; }
42763
a848cd7e
SC
42764 ac_builddir=.
42765
42766if test "$ac_dir" != .; then
42767 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42768 # A "../" for each directory in $ac_dir_suffix.
42769 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42770else
42771 ac_dir_suffix= ac_top_builddir=
42772fi
42773
42774case $srcdir in
42775 .) # No --srcdir option. We are building in place.
42776 ac_srcdir=.
42777 if test -z "$ac_top_builddir"; then
42778 ac_top_srcdir=.
42779 else
42780 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42781 fi ;;
42782 [\\/]* | ?:[\\/]* ) # Absolute path.
42783 ac_srcdir=$srcdir$ac_dir_suffix;
42784 ac_top_srcdir=$srcdir ;;
42785 *) # Relative path.
42786 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42787 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42788esac
ac1cb8d3
VS
42789
42790# Do not use `cd foo && pwd` to compute absolute paths, because
42791# the directories may not exist.
42792case `pwd` in
42793.) ac_abs_builddir="$ac_dir";;
42794*)
42795 case "$ac_dir" in
42796 .) ac_abs_builddir=`pwd`;;
42797 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42798 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42799 esac;;
42800esac
42801case $ac_abs_builddir in
42802.) ac_abs_top_builddir=${ac_top_builddir}.;;
42803*)
42804 case ${ac_top_builddir}. in
42805 .) ac_abs_top_builddir=$ac_abs_builddir;;
42806 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42807 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42808 esac;;
42809esac
42810case $ac_abs_builddir in
42811.) ac_abs_srcdir=$ac_srcdir;;
42812*)
42813 case $ac_srcdir in
42814 .) ac_abs_srcdir=$ac_abs_builddir;;
42815 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42816 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42817 esac;;
42818esac
42819case $ac_abs_builddir in
42820.) ac_abs_top_srcdir=$ac_top_srcdir;;
42821*)
42822 case $ac_top_srcdir in
42823 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42824 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42825 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42826 esac;;
42827esac
a848cd7e
SC
42828
42829
42830 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42831echo "$as_me: executing $ac_dest commands" >&6;}
42832 case $ac_dest in
42833 default )
a848cd7e
SC
42834 if test ! -d lib; then
42835 mkdir lib
42836 fi
42837 if test ! -d lib/wx; then
42838 mkdir lib/wx
42839 fi
8708fa76
VS
42840 if test ! -d lib/wx/config; then
42841 mkdir lib/wx/config
42842 fi
a848cd7e
SC
42843 if test ! -d lib/wx/include; then
42844 mkdir lib/wx/include
42845 fi
42846 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42847 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42848 fi
42849 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42850 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42851 fi
42852 if test -f setup.h; then
42853 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42854 fi
8708fa76
VS
42855
42856 if test -f wx-config; then
42857 chmod +x wx-config
48112931 42858 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
a87bf378
VS
42859 ( cd lib/wx/config ;
42860 rm -f ${TOOLCHAIN_NAME}
42861 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
8708fa76 42862 fi
8708fa76
VS
42863 if test -f wx-config-wrapper; then
42864 chmod +x wx-config-wrapper
42865 mv -f wx-config-wrapper wx-config
b3de4970
VS
42866 rm -f wx${TOOLCHAIN_NAME}-config
42867 ${LN_S} wx-config wx${TOOLCHAIN_NAME}-config
8708fa76 42868 fi
a848cd7e
SC
42869 ;;
42870 esac
42871done
42872_ACEOF
42873
42874cat >>$CONFIG_STATUS <<\_ACEOF
42875
42876{ (exit 0); exit 0; }
42877_ACEOF
42878chmod +x $CONFIG_STATUS
42879ac_clean_files=$ac_clean_files_save
42880
42881
42882# configure is writing to config.log, and then calls config.status.
42883# config.status does its own redirection, appending to config.log.
42884# Unfortunately, on DOS this fails, as config.log is still kept open
42885# by configure, so config.status won't be able to write to it; its
42886# output is simply discarded. So we exec the FD to /dev/null,
42887# effectively closing config.log, so it can be properly (re)opened and
42888# appended to by config.status. When coming back to configure, we
42889# need to make the FD available again.
42890if test "$no_create" != yes; then
42891 ac_cs_success=:
42892 ac_config_status_args=
42893 test "$silent" = yes &&
42894 ac_config_status_args="$ac_config_status_args --quiet"
42895 exec 5>/dev/null
42896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42897 exec 5>>config.log
42898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42899 # would make configure fail if this is the last instruction.
42900 $ac_cs_success || { (exit 1); exit 1; }
42901fi
42902
42903#
42904# CONFIG_SUBDIRS section.
42905#
42906if test "$no_recursion" != yes; then
42907
42908 # Remove --cache-file and --srcdir arguments so they do not pile up.
42909 ac_sub_configure_args=
42910 ac_prev=
42911 for ac_arg in $ac_configure_args; do
42912 if test -n "$ac_prev"; then
42913 ac_prev=
42914 continue
42915 fi
42916 case $ac_arg in
42917 -cache-file | --cache-file | --cache-fil | --cache-fi \
42918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42919 ac_prev=cache_file ;;
42920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42922 | --c=*)
42923 ;;
42924 --config-cache | -C)
42925 ;;
42926 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42927 ac_prev=srcdir ;;
42928 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42929 ;;
42930 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42931 ac_prev=prefix ;;
42932 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42933 ;;
42934 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42935 esac
42936 done
42937
42938 # Always prepend --prefix to ensure using the same prefix
42939 # in subdir configurations.
42940 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42941
42942 ac_popdir=`pwd`
42943 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42944
42945 # Do not complain, so a configure script can configure whichever
42946 # parts of a large source tree are present.
42947 test -d $srcdir/$ac_dir || continue
42948
42949 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42950echo "$as_me: configuring in $ac_dir" >&6;}
42951 { if $as_mkdir_p; then
42952 mkdir -p "$ac_dir"
42953 else
42954 as_dir="$ac_dir"
42955 as_dirs=
42956 while test ! -d "$as_dir"; do
42957 as_dirs="$as_dir $as_dirs"
42958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42959$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42960 X"$as_dir" : 'X\(//\)[^/]' \| \
42961 X"$as_dir" : 'X\(//\)$' \| \
42962 X"$as_dir" : 'X\(/\)' \| \
42963 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42964echo X"$as_dir" |
42965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42967 /^X\(\/\/\)$/{ s//\1/; q; }
42968 /^X\(\/\).*/{ s//\1/; q; }
42969 s/.*/./; q'`
42970 done
42971 test ! -n "$as_dirs" || mkdir $as_dirs
42972 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42973echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42974 { (exit 1); exit 1; }; }; }
42975
42976 ac_builddir=.
42977
42978if test "$ac_dir" != .; then
42979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42980 # A "../" for each directory in $ac_dir_suffix.
42981 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42982else
42983 ac_dir_suffix= ac_top_builddir=
42984fi
42985
42986case $srcdir in
42987 .) # No --srcdir option. We are building in place.
42988 ac_srcdir=.
42989 if test -z "$ac_top_builddir"; then
42990 ac_top_srcdir=.
42991 else
42992 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42993 fi ;;
42994 [\\/]* | ?:[\\/]* ) # Absolute path.
42995 ac_srcdir=$srcdir$ac_dir_suffix;
42996 ac_top_srcdir=$srcdir ;;
42997 *) # Relative path.
42998 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42999 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43000esac
ac1cb8d3
VS
43001
43002# Do not use `cd foo && pwd` to compute absolute paths, because
43003# the directories may not exist.
43004case `pwd` in
43005.) ac_abs_builddir="$ac_dir";;
43006*)
43007 case "$ac_dir" in
43008 .) ac_abs_builddir=`pwd`;;
43009 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43010 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43011 esac;;
43012esac
43013case $ac_abs_builddir in
43014.) ac_abs_top_builddir=${ac_top_builddir}.;;
43015*)
43016 case ${ac_top_builddir}. in
43017 .) ac_abs_top_builddir=$ac_abs_builddir;;
43018 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43019 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43020 esac;;
43021esac
43022case $ac_abs_builddir in
43023.) ac_abs_srcdir=$ac_srcdir;;
43024*)
43025 case $ac_srcdir in
43026 .) ac_abs_srcdir=$ac_abs_builddir;;
43027 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43028 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43029 esac;;
43030esac
43031case $ac_abs_builddir in
43032.) ac_abs_top_srcdir=$ac_top_srcdir;;
43033*)
43034 case $ac_top_srcdir in
43035 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43036 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43037 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43038 esac;;
43039esac
a848cd7e
SC
43040
43041
43042 cd $ac_dir
43043
43044 # Check for guested configure; otherwise get Cygnus style configure.
43045 if test -f $ac_srcdir/configure.gnu; then
43046 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43047 elif test -f $ac_srcdir/configure; then
43048 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43049 elif test -f $ac_srcdir/configure.in; then
43050 ac_sub_configure=$ac_configure
43051 else
43052 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43053echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43054 ac_sub_configure=
43055 fi
43056
43057 # The recursion is here.
43058 if test -n "$ac_sub_configure"; then
43059 # Make the cache file name correct relative to the subdirectory.
43060 case $cache_file in
43061 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43062 *) # Relative path.
ac1cb8d3 43063 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43064 esac
43065
43066 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43067echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43068 # The eval makes quoting arguments work.
43069 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43070 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43071 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43072echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43073 { (exit 1); exit 1; }; }
43074 fi
43075
dcc1b6ad 43076 cd $ac_popdir
a848cd7e
SC
43077 done
43078fi
43079
43080
43081echo
77ffb593 43082echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43083echo ""
77ffb593
JS
43084echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
43085echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43086
77ffb593
JS
43087echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43088echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43089echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43090
77ffb593
JS
43091echo " What level of wxWidgets compatibility should be enabled?"
43092echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43093echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43094
77ffb593 43095echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43096echo " jpeg ${wxUSE_LIBJPEG-none}"
43097echo " png ${wxUSE_LIBPNG-none}"
43098echo " regex ${wxUSE_REGEX}"
43099echo " tiff ${wxUSE_LIBTIFF-none}"
43100if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43101echo " xpm ${wxUSE_LIBXPM-none}"
43102fi
43103echo " zlib ${wxUSE_ZLIB}"
43104echo " odbc ${wxUSE_ODBC}"
43105echo " expat ${wxUSE_EXPAT}"
43106echo " libmspack ${wxUSE_LIBMSPACK}"
43107echo " sdl ${wxUSE_LIBSDL}"
43108
43109echo ""
43110