]> git.saurik.com Git - wxWidgets.git/blame - configure
added --version-full option to wx-config
[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"
224bf05c 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_SUBRELEASE_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
224bf05c 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
224bf05c 1653WX_SUBRELEASE_NUMBER=3
a848cd7e
SC
1654
1655WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1656WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1657
1658WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1659
de59c161 1660WX_CURRENT=2
a848cd7e
SC
1661WX_REVISION=0
1662WX_AGE=0
1663
1664
1665
1666USE_UNIX=1
1667USE_OS2=0
1668USE_WIN32=0
1669USE_DOS=0
1670USE_BEOS=0
1671USE_MAC=0
1672
1673USE_AIX=
1674USE_BSD= USE_DARWIN= USE_FREEBSD=
1675USE_GNU= USE_HPUX=
1676USE_LINUX=
1677USE_NETBSD=
1678USE_OPENBSD=
1679USE_OSF= USE_SGI=
1680USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1681USE_ULTRIX=
1682USE_UNIXWARE=
1683
1684USE_ALPHA=
1685
1686NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1687
1688ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1689
1690DEFAULT_wxUSE_COCOA=0
1691DEFAULT_wxUSE_GTK=0
1692DEFAULT_wxUSE_MAC=0
1693DEFAULT_wxUSE_MGL=0
1694DEFAULT_wxUSE_MICROWIN=0
1695DEFAULT_wxUSE_MOTIF=0
1696DEFAULT_wxUSE_MSW=0
1697DEFAULT_wxUSE_PM=0
1698DEFAULT_wxUSE_X11=0
1699
1700DEFAULT_DEFAULT_wxUSE_COCOA=0
1701DEFAULT_DEFAULT_wxUSE_GTK=0
1702DEFAULT_DEFAULT_wxUSE_MAC=0
1703DEFAULT_DEFAULT_wxUSE_MGL=0
1704DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1705DEFAULT_DEFAULT_wxUSE_MOTIF=0
1706DEFAULT_DEFAULT_wxUSE_MSW=0
1707DEFAULT_DEFAULT_wxUSE_PM=0
1708DEFAULT_DEFAULT_wxUSE_X11=0
1709
1710PROGRAM_EXT=
1711SO_SUFFIX=so
1712SAMPLES_RPATH_FLAG=
1713SAMPLES_RPATH_POSTLINK=
1714
1715case "${host}" in
1716 *-hp-hpux* )
1717 USE_HPUX=1
1718 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1719 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1720 SO_SUFFIX=sl
1721 cat >>confdefs.h <<\_ACEOF
1722#define __HPUX__ 1
1723_ACEOF
1724
1725 ;;
1726 *-*-linux* )
1727 USE_LINUX=1
1728 cat >>confdefs.h <<\_ACEOF
1729#define __LINUX__ 1
1730_ACEOF
1731
1732 TMP=`uname -m`
1733 if test "x$TMP" = "xalpha"; then
1734 USE_ALPHA=1
1735 cat >>confdefs.h <<\_ACEOF
1736#define __ALPHA__ 1
1737_ACEOF
1738
1739 fi
1740 DEFAULT_DEFAULT_wxUSE_GTK=1
1741 ;;
1742 *-*-gnu* | *-*-k*bsd*-gnu )
1743 USE_GNU=1
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __ALPHA__ 1
1749_ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-irix5* | *-*-irix6* )
1755 USE_SGI=1
1756 USE_SVR4=1
1757 cat >>confdefs.h <<\_ACEOF
1758#define __SGI__ 1
1759_ACEOF
1760
1761 cat >>confdefs.h <<\_ACEOF
1762#define __SVR4__ 1
1763_ACEOF
1764
1765 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1766 ;;
1767 *-*-solaris2* )
1768 USE_SUN=1
1769 USE_SOLARIS=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SUN__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SOLARIS__ 1
1777_ACEOF
1778
1779 cat >>confdefs.h <<\_ACEOF
1780#define __SVR4__ 1
1781_ACEOF
1782
1783 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1784 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1785 ;;
1786 *-*-sunos4* )
1787 USE_SUN=1
1788 USE_SUNOS=1
1789 USE_BSD=1
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SUN__ 1
1792_ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SUNOS__ 1
1796_ACEOF
1797
1798 cat >>confdefs.h <<\_ACEOF
1799#define __BSD__ 1
1800_ACEOF
1801
1802 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1803 ;;
1804 *-*-freebsd*)
1805 USE_BSD=1
1806 USE_FREEBSD=1
1807 cat >>confdefs.h <<\_ACEOF
1808#define __FREEBSD__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __BSD__ 1
1813_ACEOF
1814
1815 DEFAULT_DEFAULT_wxUSE_GTK=1
1816 ;;
1817 *-*-openbsd*)
1818 USE_BSD=1
1819 USE_OPENBSD=1
1820 cat >>confdefs.h <<\_ACEOF
1821#define __OPENBSD__ 1
1822_ACEOF
1823
1824 cat >>confdefs.h <<\_ACEOF
1825#define __BSD__ 1
1826_ACEOF
1827
1828 DEFAULT_DEFAULT_wxUSE_GTK=1
1829 ;;
1830 *-*-netbsd*)
1831 USE_BSD=1
1832 USE_NETBSD=1
1833 cat >>confdefs.h <<\_ACEOF
1834#define __NETBSD__ 1
1835_ACEOF
1836
1837 cat >>confdefs.h <<\_ACEOF
1838#define __BSD__ 1
1839_ACEOF
1840
1841 DEFAULT_DEFAULT_wxUSE_GTK=1
1842 ;;
1843 *-*-osf* )
1844 USE_ALPHA=1
1845 USE_OSF=1
1846 cat >>confdefs.h <<\_ACEOF
1847#define __ALPHA__ 1
1848_ACEOF
1849
1850 cat >>confdefs.h <<\_ACEOF
1851#define __OSF__ 1
1852_ACEOF
1853
1854 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1855 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1856 ;;
1857 *-*-dgux5* )
1858 USE_ALPHA=1
1859 USE_SVR4=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __SVR4__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 ;;
1870 *-*-sysv5* )
1871 USE_SYSV=1
1872 USE_SVR4=1
1873 cat >>confdefs.h <<\_ACEOF
1874#define __SYSV__ 1
1875_ACEOF
1876
1877 cat >>confdefs.h <<\_ACEOF
1878#define __SVR4__ 1
1879_ACEOF
1880
1881 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1882 ;;
1883 *-*-aix* )
1884 USE_AIX=1
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 SO_SUFFIX=a
1888 cat >>confdefs.h <<\_ACEOF
1889#define __AIX__ 1
1890_ACEOF
1891
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SYSV__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SVR4__ 1
1898_ACEOF
1899
1900 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901 ;;
1902
1903 *-*-*UnixWare*)
1904 USE_SYSV=1
1905 USE_SVR4=1
1906 USE_UNIXWARE=1
1907 cat >>confdefs.h <<\_ACEOF
1908#define __UNIXWARE__ 1
1909_ACEOF
1910
1911 ;;
1912
1913 *-*-cygwin* | *-*-mingw32* )
1914 SO_SUFFIX=dll
1915 PROGRAM_EXT=".exe"
1916 RESCOMP=windres
1917 DEFAULT_DEFAULT_wxUSE_MSW=1
1918 ;;
1919
1920 *-pc-msdosdjgpp )
1921 USE_UNIX=0
1922 USE_DOS=1
1923 cat >>confdefs.h <<\_ACEOF
1924#define __DOS__ 1
1925_ACEOF
1926
1927 PROGRAM_EXT=".exe"
1928 DEFAULT_DEFAULT_wxUSE_MGL=1
1929 LIBS="$LIBS -lstdc++"
1930 ;;
1931
1932 *-pc-os2_emx | *-pc-os2-emx )
1933 cat >>confdefs.h <<\_ACEOF
1934#define __EMX__ 1
1935_ACEOF
1936
1937 USE_OS2=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __OS2__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_PM=1
1944 CXX=gcc
1945 LDFLAGS="$LDFLAGS -Zcrtdll"
1946 ac_executable_extensions=".exe"
1947 export ac_executable_extensions
1948 ac_save_IFS="$IFS"
1949 IFS='\\'
1950 ac_TEMP_PATH=
1951 for ac_dir in $PATH; do
1952 IFS=$ac_save_IFS
1953 if test -z "$ac_TEMP_PATH"; then
1954 ac_TEMP_PATH="$ac_dir"
1955 else
1956 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1957 fi
1958 done
1959 export PATH="$ac_TEMP_PATH"
1960 unset ac_TEMP_PATH
1961 ;;
1962
1963 powerpc-*-darwin* )
1964 USE_BSD=1
1965 USE_DARWIN=1
1966 SO_SUFFIX=dylib
1967 cat >>confdefs.h <<\_ACEOF
1968#define __BSD__ 1
1969_ACEOF
1970
1971 cat >>confdefs.h <<\_ACEOF
1972#define __DARWIN__ 1
1973_ACEOF
1974
1975 cat >>confdefs.h <<\_ACEOF
1976#define __POWERPC__ 1
1977_ACEOF
1978
1979 cat >>confdefs.h <<\_ACEOF
1980#define TARGET_CARBON 1
1981_ACEOF
1982
1983 DEFAULT_DEFAULT_wxUSE_MAC=1
1984 ;;
1985
1986 *-*-beos* )
1987 USE_BEOS=1
1988 cat >>confdefs.h <<\_ACEOF
1989#define __BEOS__ 1
1990_ACEOF
1991
1992 ;;
1993
1994 *)
1995 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1996echo "$as_me: error: unknown system type ${host}." >&2;}
1997 { (exit 1); exit 1; }; }
1998esac
1999
2000
2001
2002
2003 wx_arg_cache_file="configarg.cache"
2004 echo "loading argument cache $wx_arg_cache_file"
2005 rm -f ${wx_arg_cache_file}.tmp
2006 touch ${wx_arg_cache_file}.tmp
2007 touch ${wx_arg_cache_file}
2008
2009
2010DEBUG_CONFIGURE=0
2011if test $DEBUG_CONFIGURE = 1; then
2012 DEFAULT_wxUSE_UNIVERSAL=no
2013 DEFAULT_wxUSE_STL=no
2014
2015 DEFAULT_wxUSE_NANOX=no
2016
2017 DEFAULT_wxUSE_THREADS=yes
2018
2019 DEFAULT_wxUSE_SHARED=yes
2020 DEFAULT_wxUSE_OPTIMISE=no
2021 DEFAULT_wxUSE_PROFILE=no
2022 DEFAULT_wxUSE_NO_DEPS=no
2023 DEFAULT_wxUSE_NO_RTTI=no
2024 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2025 DEFAULT_wxUSE_PERMISSIVE=no
2026 DEFAULT_wxUSE_DEBUG_FLAG=yes
2027 DEFAULT_wxUSE_DEBUG_INFO=yes
2028 DEFAULT_wxUSE_DEBUG_GDB=yes
2029 DEFAULT_wxUSE_MEM_TRACING=no
2030 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2031 DEFAULT_wxUSE_DMALLOC=no
2032 DEFAULT_wxUSE_APPLE_IEEE=no
2033
2034 DEFAULT_wxUSE_EXCEPTIONS=no
2035 DEFAULT_wxUSE_LOG=yes
2036 DEFAULT_wxUSE_LOGWINDOW=no
2037 DEFAULT_wxUSE_LOGGUI=no
2038 DEFAULT_wxUSE_LOGDIALOG=no
2039
2040 DEFAULT_wxUSE_GUI=yes
2041 DEFAULT_wxUSE_CONTROLS=no
2042
2043 DEFAULT_wxUSE_REGEX=no
2044 DEFAULT_wxUSE_XML=no
2045 DEFAULT_wxUSE_EXPAT=no
2046 DEFAULT_wxUSE_ZLIB=no
2047 DEFAULT_wxUSE_LIBPNG=no
2048 DEFAULT_wxUSE_LIBJPEG=no
2049 DEFAULT_wxUSE_LIBTIFF=no
2050 DEFAULT_wxUSE_LIBXPM=no
2051 DEFAULT_wxUSE_LIBMSPACK=no
2052 DEFAULT_wxUSE_LIBSDL=no
2053 DEFAULT_wxUSE_ODBC=no
2054 DEFAULT_wxUSE_OPENGL=no
2055
2056 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2057 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2058 DEFAULT_wxUSE_STD_IOSTREAM=no
2059 DEFAULT_wxUSE_CMDLINE_PARSER=no
2060 DEFAULT_wxUSE_DATETIME=no
2061 DEFAULT_wxUSE_TIMER=no
2062 DEFAULT_wxUSE_STOPWATCH=no
2063 DEFAULT_wxUSE_FILE=no
2064 DEFAULT_wxUSE_FFILE=no
2065 DEFAULT_wxUSE_TEXTBUFFER=no
2066 DEFAULT_wxUSE_TEXTFILE=no
2067 DEFAULT_wxUSE_SOUND=no
2068 DEFAULT_wxUSE_INTL=no
2069 DEFAULT_wxUSE_CONFIG=no
2070 DEFAULT_wxUSE_FONTMAP=no
2071 DEFAULT_wxUSE_STREAMS=no
2072 DEFAULT_wxUSE_SOCKETS=no
2073 DEFAULT_wxUSE_OLE=no
2074 DEFAULT_wxUSE_DATAOBJ=no
2075 DEFAULT_wxUSE_DIALUP_MANAGER=no
2076 DEFAULT_wxUSE_JOYSTICK=no
2077 DEFAULT_wxUSE_DYNLIB_CLASS=no
2078 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2079 DEFAULT_wxUSE_LONGLONG=no
2080 DEFAULT_wxUSE_GEOMETRY=no
2081
2082 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2083 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2084 DEFAULT_wxUSE_POSTSCRIPT=no
2085
2086 DEFAULT_wxUSE_CLIPBOARD=no
2087 DEFAULT_wxUSE_TOOLTIPS=no
2088 DEFAULT_wxUSE_DRAG_AND_DROP=no
2089 DEFAULT_wxUSE_DRAGIMAGE=no
2090 DEFAULT_wxUSE_SPLINES=no
2091
8a7b1113 2092 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2093 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2094 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2095 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2096
2097 DEFAULT_wxUSE_RESOURCES=no
2098 DEFAULT_wxUSE_CONSTRAINTS=no
2099 DEFAULT_wxUSE_IPC=no
2100 DEFAULT_wxUSE_HELP=no
2101 DEFAULT_wxUSE_MS_HTML_HELP=no
2102 DEFAULT_wxUSE_WXHTML_HELP=no
2103 DEFAULT_wxUSE_TREELAYOUT=no
2104 DEFAULT_wxUSE_METAFILE=no
2105 DEFAULT_wxUSE_MIMETYPE=no
2106 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2107 DEFAULT_wxUSE_PROTOCOL=no
2108 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2109 DEFAULT_wxUSE_PROTOCOL_FTP=no
2110 DEFAULT_wxUSE_PROTOCOL_FILE=no
2111 DEFAULT_wxUSE_URL=no
2112
2113 DEFAULT_wxUSE_COMMONDLGS=no
2114 DEFAULT_wxUSE_CHOICEDLG=no
2115 DEFAULT_wxUSE_COLOURDLG=no
2116 DEFAULT_wxUSE_DIRDLG=no
2117 DEFAULT_wxUSE_FILEDLG=no
2118 DEFAULT_wxUSE_FINDREPLDLG=no
2119 DEFAULT_wxUSE_FONTDLG=no
2120 DEFAULT_wxUSE_MSGDLG=no
2121 DEFAULT_wxUSE_NUMBERDLG=no
2122 DEFAULT_wxUSE_TEXTDLG=no
2123 DEFAULT_wxUSE_SPLASH=no
2124 DEFAULT_wxUSE_STARTUP_TIPS=no
2125 DEFAULT_wxUSE_PROGRESSDLG=no
2126 DEFAULT_wxUSE_WIZARDDLG=no
2127
2128 DEFAULT_wxUSE_MENUS=no
2129 DEFAULT_wxUSE_MINIFRAME=no
2130 DEFAULT_wxUSE_HTML=no
646b6ec1 2131 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2132 DEFAULT_wxUSE_FILESYSTEM=no
2133 DEFAULT_wxUSE_FS_INET=no
2134 DEFAULT_wxUSE_FS_ZIP=no
2135 DEFAULT_wxUSE_BUSYINFO=no
2136 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2137 DEFAULT_wxUSE_VALIDATORS=no
2138
2139 DEFAULT_wxUSE_ACCEL=no
2140 DEFAULT_wxUSE_BUTTON=no
2141 DEFAULT_wxUSE_BMPBUTTON=no
2142 DEFAULT_wxUSE_CALCTRL=no
2143 DEFAULT_wxUSE_CARET=no
2144 DEFAULT_wxUSE_CHECKBOX=no
2145 DEFAULT_wxUSE_CHECKLST=no
2146 DEFAULT_wxUSE_CHOICE=no
2147 DEFAULT_wxUSE_COMBOBOX=no
2148 DEFAULT_wxUSE_DISPLAY=no
2149 DEFAULT_wxUSE_GAUGE=no
2150 DEFAULT_wxUSE_GRID=no
2151 DEFAULT_wxUSE_IMAGLIST=no
2152 DEFAULT_wxUSE_LISTBOOK=no
2153 DEFAULT_wxUSE_LISTBOX=no
2154 DEFAULT_wxUSE_LISTCTRL=no
2155 DEFAULT_wxUSE_NOTEBOOK=no
2156 DEFAULT_wxUSE_RADIOBOX=no
2157 DEFAULT_wxUSE_RADIOBTN=no
2158 DEFAULT_wxUSE_SASH=no
2159 DEFAULT_wxUSE_SCROLLBAR=no
2160 DEFAULT_wxUSE_SLIDER=no
2161 DEFAULT_wxUSE_SPINBTN=no
2162 DEFAULT_wxUSE_SPINCTRL=no
2163 DEFAULT_wxUSE_SPLITTER=no
2164 DEFAULT_wxUSE_STATBMP=no
2165 DEFAULT_wxUSE_STATBOX=no
2166 DEFAULT_wxUSE_STATLINE=no
2167 DEFAULT_wxUSE_STATTEXT=no
2168 DEFAULT_wxUSE_STATUSBAR=yes
2169 DEFAULT_wxUSE_TABDIALOG=no
2170 DEFAULT_wxUSE_TEXTCTRL=no
2171 DEFAULT_wxUSE_TOGGLEBTN=no
2172 DEFAULT_wxUSE_TOOLBAR=no
2173 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2174 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2175 DEFAULT_wxUSE_TREECTRL=no
2176 DEFAULT_wxUSE_POPUPWIN=no
2177 DEFAULT_wxUSE_TIPWINDOW=no
2178
2179 DEFAULT_wxUSE_UNICODE=no
2180 DEFAULT_wxUSE_UNICODE_MSLU=no
2181 DEFAULT_wxUSE_WCSRTOMBS=no
2182
2183 DEFAULT_wxUSE_PALETTE=no
2184 DEFAULT_wxUSE_IMAGE=no
2185 DEFAULT_wxUSE_GIF=no
2186 DEFAULT_wxUSE_PCX=no
2187 DEFAULT_wxUSE_PNM=no
2188 DEFAULT_wxUSE_IFF=no
2189 DEFAULT_wxUSE_XPM=no
2190 DEFAULT_wxUSE_ICO_CUR=no
2191 DEFAULT_wxUSE_ACCESSIBILITY=no
2192
2193 DEFAULT_wxUSE_MONOLITHIC=no
2194 DEFAULT_wxUSE_PLUGINS=no
2195 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2196else
2197 DEFAULT_wxUSE_UNIVERSAL=no
2198 DEFAULT_wxUSE_STL=no
2199
2200 DEFAULT_wxUSE_NANOX=no
2201
2202 DEFAULT_wxUSE_THREADS=yes
2203
2204 DEFAULT_wxUSE_SHARED=yes
2205 DEFAULT_wxUSE_OPTIMISE=yes
2206 DEFAULT_wxUSE_PROFILE=no
2207 DEFAULT_wxUSE_NO_DEPS=no
2208 DEFAULT_wxUSE_NO_RTTI=no
2209 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2210 DEFAULT_wxUSE_PERMISSIVE=no
2211 DEFAULT_wxUSE_DEBUG_FLAG=no
2212 DEFAULT_wxUSE_DEBUG_INFO=no
2213 DEFAULT_wxUSE_DEBUG_GDB=no
2214 DEFAULT_wxUSE_MEM_TRACING=no
2215 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2216 DEFAULT_wxUSE_DMALLOC=no
2217 DEFAULT_wxUSE_APPLE_IEEE=yes
2218
2219 DEFAULT_wxUSE_EXCEPTIONS=yes
2220 DEFAULT_wxUSE_LOG=yes
2221 DEFAULT_wxUSE_LOGWINDOW=yes
2222 DEFAULT_wxUSE_LOGGUI=yes
2223 DEFAULT_wxUSE_LOGDIALOG=yes
2224
2225 DEFAULT_wxUSE_GUI=yes
2226
2227 DEFAULT_wxUSE_REGEX=yes
2228 DEFAULT_wxUSE_XML=yes
2229 DEFAULT_wxUSE_EXPAT=yes
2230 DEFAULT_wxUSE_ZLIB=yes
2231 DEFAULT_wxUSE_LIBPNG=yes
2232 DEFAULT_wxUSE_LIBJPEG=yes
2233 DEFAULT_wxUSE_LIBTIFF=yes
2234 DEFAULT_wxUSE_LIBXPM=yes
2235 DEFAULT_wxUSE_LIBMSPACK=yes
2236 DEFAULT_wxUSE_LIBSDL=no
2237 DEFAULT_wxUSE_ODBC=no
2238 DEFAULT_wxUSE_OPENGL=no
2239
2240 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2241 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2242 DEFAULT_wxUSE_STD_IOSTREAM=no
2243 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2244 DEFAULT_wxUSE_DATETIME=yes
2245 DEFAULT_wxUSE_TIMER=yes
2246 DEFAULT_wxUSE_STOPWATCH=yes
2247 DEFAULT_wxUSE_FILE=yes
2248 DEFAULT_wxUSE_FFILE=yes
2249 DEFAULT_wxUSE_TEXTBUFFER=yes
2250 DEFAULT_wxUSE_TEXTFILE=yes
2251 DEFAULT_wxUSE_SOUND=yes
2252 DEFAULT_wxUSE_INTL=yes
2253 DEFAULT_wxUSE_CONFIG=yes
2254 DEFAULT_wxUSE_FONTMAP=yes
2255 DEFAULT_wxUSE_STREAMS=yes
2256 DEFAULT_wxUSE_SOCKETS=yes
2257 DEFAULT_wxUSE_OLE=yes
2258 DEFAULT_wxUSE_DATAOBJ=yes
2259 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2260 DEFAULT_wxUSE_JOYSTICK=yes
2261 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2262 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2263 DEFAULT_wxUSE_LONGLONG=yes
2264 DEFAULT_wxUSE_GEOMETRY=yes
2265
2266 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2267 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2268 DEFAULT_wxUSE_POSTSCRIPT=yes
2269
2270 DEFAULT_wxUSE_CLIPBOARD=yes
2271 DEFAULT_wxUSE_TOOLTIPS=yes
2272 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2273 DEFAULT_wxUSE_DRAGIMAGE=yes
2274 DEFAULT_wxUSE_SPLINES=yes
2275
8a7b1113 2276 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2277 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2278 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2279 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2280
2281 DEFAULT_wxUSE_RESOURCES=no
2282 DEFAULT_wxUSE_CONSTRAINTS=yes
2283 DEFAULT_wxUSE_IPC=yes
2284 DEFAULT_wxUSE_HELP=yes
2285 DEFAULT_wxUSE_MS_HTML_HELP=yes
2286 DEFAULT_wxUSE_WXHTML_HELP=yes
2287 DEFAULT_wxUSE_TREELAYOUT=yes
2288 DEFAULT_wxUSE_METAFILE=yes
2289 DEFAULT_wxUSE_MIMETYPE=yes
2290 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2291 DEFAULT_wxUSE_PROTOCOL=yes
2292 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2293 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2294 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2295 DEFAULT_wxUSE_URL=yes
2296
2297 DEFAULT_wxUSE_COMMONDLGS=yes
2298 DEFAULT_wxUSE_CHOICEDLG=yes
2299 DEFAULT_wxUSE_COLOURDLG=yes
2300 DEFAULT_wxUSE_DIRDLG=yes
2301 DEFAULT_wxUSE_FILEDLG=yes
2302 DEFAULT_wxUSE_FINDREPLDLG=yes
2303 DEFAULT_wxUSE_FONTDLG=yes
2304 DEFAULT_wxUSE_MSGDLG=yes
2305 DEFAULT_wxUSE_NUMBERDLG=yes
2306 DEFAULT_wxUSE_TEXTDLG=yes
2307 DEFAULT_wxUSE_SPLASH=yes
2308 DEFAULT_wxUSE_STARTUP_TIPS=yes
2309 DEFAULT_wxUSE_PROGRESSDLG=yes
2310 DEFAULT_wxUSE_WIZARDDLG=yes
2311
2312 DEFAULT_wxUSE_MENUS=yes
2313 DEFAULT_wxUSE_MINIFRAME=yes
2314 DEFAULT_wxUSE_HTML=yes
646b6ec1 2315 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2316 DEFAULT_wxUSE_FILESYSTEM=yes
2317 DEFAULT_wxUSE_FS_INET=yes
2318 DEFAULT_wxUSE_FS_ZIP=yes
2319 DEFAULT_wxUSE_BUSYINFO=yes
2320 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2321 DEFAULT_wxUSE_VALIDATORS=yes
2322
2323 DEFAULT_wxUSE_ACCEL=yes
2324 DEFAULT_wxUSE_BUTTON=yes
2325 DEFAULT_wxUSE_BMPBUTTON=yes
2326 DEFAULT_wxUSE_CALCTRL=yes
2327 DEFAULT_wxUSE_CARET=yes
2328 DEFAULT_wxUSE_CHECKBOX=yes
2329 DEFAULT_wxUSE_CHECKLST=yes
2330 DEFAULT_wxUSE_CHOICE=yes
2331 DEFAULT_wxUSE_COMBOBOX=yes
2332 DEFAULT_wxUSE_DISPLAY=yes
2333 DEFAULT_wxUSE_GAUGE=yes
2334 DEFAULT_wxUSE_GRID=yes
2335 DEFAULT_wxUSE_IMAGLIST=yes
2336 DEFAULT_wxUSE_LISTBOOK=yes
2337 DEFAULT_wxUSE_LISTBOX=yes
2338 DEFAULT_wxUSE_LISTCTRL=yes
2339 DEFAULT_wxUSE_NOTEBOOK=yes
2340 DEFAULT_wxUSE_RADIOBOX=yes
2341 DEFAULT_wxUSE_RADIOBTN=yes
2342 DEFAULT_wxUSE_SASH=yes
2343 DEFAULT_wxUSE_SCROLLBAR=yes
2344 DEFAULT_wxUSE_SLIDER=yes
2345 DEFAULT_wxUSE_SPINBTN=yes
2346 DEFAULT_wxUSE_SPINCTRL=yes
2347 DEFAULT_wxUSE_SPLITTER=yes
2348 DEFAULT_wxUSE_STATBMP=yes
2349 DEFAULT_wxUSE_STATBOX=yes
2350 DEFAULT_wxUSE_STATLINE=yes
2351 DEFAULT_wxUSE_STATTEXT=yes
2352 DEFAULT_wxUSE_STATUSBAR=yes
2353 DEFAULT_wxUSE_TABDIALOG=no
2354 DEFAULT_wxUSE_TEXTCTRL=yes
2355 DEFAULT_wxUSE_TOGGLEBTN=yes
2356 DEFAULT_wxUSE_TOOLBAR=yes
2357 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2358 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2359 DEFAULT_wxUSE_TREECTRL=yes
2360 DEFAULT_wxUSE_POPUPWIN=yes
2361 DEFAULT_wxUSE_TIPWINDOW=yes
2362
2363 DEFAULT_wxUSE_UNICODE=no
2364 DEFAULT_wxUSE_UNICODE_MSLU=yes
2365 DEFAULT_wxUSE_WCSRTOMBS=no
2366
2367 DEFAULT_wxUSE_PALETTE=yes
2368 DEFAULT_wxUSE_IMAGE=yes
2369 DEFAULT_wxUSE_GIF=yes
2370 DEFAULT_wxUSE_PCX=yes
2371 DEFAULT_wxUSE_IFF=no
2372 DEFAULT_wxUSE_PNM=yes
2373 DEFAULT_wxUSE_XPM=yes
2374 DEFAULT_wxUSE_ICO_CUR=yes
2375 DEFAULT_wxUSE_ACCESSIBILITY=no
2376
2377 DEFAULT_wxUSE_MONOLITHIC=no
2378 DEFAULT_wxUSE_PLUGINS=no
2379 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2380
2381 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2382fi
2383
2384
2385
2386for toolkit in `echo $ALL_TOOLKITS`; do
2387 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2388 if test "x$LINE" != "x" ; then
2389 has_toolkit_in_cache=1
2390 eval "DEFAULT_$LINE"
2391 eval "CACHE_$toolkit=1"
2392 fi
2393done
2394
2395
2396
2397 enablestring=
2398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2399echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2400 no_cache=0
2401 # Check whether --enable-gui or --disable-gui was given.
2402if test "${enable_gui+set}" = set; then
2403 enableval="$enable_gui"
2404
2405 if test "$enableval" = yes; then
2406 ac_cv_use_gui='wxUSE_GUI=yes'
2407 else
2408 ac_cv_use_gui='wxUSE_GUI=no'
2409 fi
2410
2411else
2412
2413 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2414 if test "x$LINE" != x ; then
2415 eval "DEFAULT_$LINE"
2416 else
2417 no_cache=1
2418 fi
2419
2420 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2421
2422fi;
2423
2424 eval "$ac_cv_use_gui"
2425 if test "$no_cache" != 1; then
2426 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2427 fi
2428
2429 if test "$wxUSE_GUI" = yes; then
2430 echo "$as_me:$LINENO: result: yes" >&5
2431echo "${ECHO_T}yes" >&6
2432 else
2433 echo "$as_me:$LINENO: result: no" >&5
2434echo "${ECHO_T}no" >&6
2435 fi
2436
2437
2438 enablestring=
2439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2440echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2441 no_cache=0
2442 # Check whether --enable-monolithic or --disable-monolithic was given.
2443if test "${enable_monolithic+set}" = set; then
2444 enableval="$enable_monolithic"
2445
2446 if test "$enableval" = yes; then
2447 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2448 else
2449 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2450 fi
2451
2452else
2453
2454 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2455 if test "x$LINE" != x ; then
2456 eval "DEFAULT_$LINE"
2457 else
2458 no_cache=1
2459 fi
2460
2461 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2462
2463fi;
2464
2465 eval "$ac_cv_use_monolithic"
2466 if test "$no_cache" != 1; then
2467 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2468 fi
2469
2470 if test "$wxUSE_MONOLITHIC" = yes; then
2471 echo "$as_me:$LINENO: result: yes" >&5
2472echo "${ECHO_T}yes" >&6
2473 else
2474 echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6
2476 fi
2477
2478
2479 enablestring=
2480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2481echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2482 no_cache=0
2483 # Check whether --enable-plugins or --disable-plugins was given.
2484if test "${enable_plugins+set}" = set; then
2485 enableval="$enable_plugins"
2486
2487 if test "$enableval" = yes; then
2488 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2489 else
2490 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2491 fi
2492
2493else
2494
2495 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2503
2504fi;
2505
2506 eval "$ac_cv_use_plugins"
2507 if test "$no_cache" != 1; then
2508 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2509 fi
2510
2511 if test "$wxUSE_PLUGINS" = yes; then
2512 echo "$as_me:$LINENO: result: yes" >&5
2513echo "${ECHO_T}yes" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6
2517 fi
2518
2519
2520if test "$wxUSE_GUI" = "yes"; then
2521
2522
2523 enablestring=
2524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2525echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2526 no_cache=0
2527 # Check whether --enable-universal or --disable-universal was given.
2528if test "${enable_universal+set}" = set; then
2529 enableval="$enable_universal"
2530
2531 if test "$enableval" = yes; then
2532 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2533 else
2534 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2535 fi
2536
2537else
2538
2539 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2547
2548fi;
2549
2550 eval "$ac_cv_use_universal"
2551 if test "$no_cache" != 1; then
2552 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2553 fi
2554
2555 if test "$wxUSE_UNIVERSAL" = yes; then
2556 echo "$as_me:$LINENO: result: yes" >&5
2557echo "${ECHO_T}yes" >&6
2558 else
2559 echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6
2561 fi
2562
2563
2564# Check whether --with-gtk or --without-gtk was given.
2565if test "${with_gtk+set}" = set; then
2566 withval="$with_gtk"
2567 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2568fi;
2569
2570# Check whether --with-motif or --without-motif was given.
2571if test "${with_motif+set}" = set; then
2572 withval="$with_motif"
2573 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2574fi;
2575
2576# Check whether --with-mac or --without-mac was given.
2577if test "${with_mac+set}" = set; then
2578 withval="$with_mac"
2579 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2580fi;
2581
2582# Check whether --with-cocoa or --without-cocoa was given.
2583if test "${with_cocoa+set}" = set; then
2584 withval="$with_cocoa"
2585 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2586fi;
2587
2588# Check whether --with-wine or --without-wine was given.
2589if test "${with_wine+set}" = set; then
2590 withval="$with_wine"
2591 wxUSE_WINE="$withval" CACHE_WINE=1
2592fi;
2593
2594# Check whether --with-msw or --without-msw was given.
2595if test "${with_msw+set}" = set; then
2596 withval="$with_msw"
2597 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2598fi;
2599
2600# Check whether --with-pm or --without-pm was given.
2601if test "${with_pm+set}" = set; then
2602 withval="$with_pm"
2603 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-mgl or --without-mgl was given.
2607if test "${with_mgl+set}" = set; then
2608 withval="$with_mgl"
2609 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-microwin or --without-microwin was given.
2613if test "${with_microwin+set}" = set; then
2614 withval="$with_microwin"
2615 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-x11 or --without-x11 was given.
2619if test "${with_x11+set}" = set; then
2620 withval="$with_x11"
2621 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624 enablestring=
2625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2626echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2627 no_cache=0
2628 # Check whether --enable-nanox or --disable-nanox was given.
2629if test "${enable_nanox+set}" = set; then
2630 enableval="$enable_nanox"
2631
2632 if test "$enableval" = yes; then
2633 ac_cv_use_nanox='wxUSE_NANOX=yes'
2634 else
2635 ac_cv_use_nanox='wxUSE_NANOX=no'
2636 fi
2637
2638else
2639
2640 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2641 if test "x$LINE" != x ; then
2642 eval "DEFAULT_$LINE"
2643 else
2644 no_cache=1
2645 fi
2646
2647 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2648
2649fi;
2650
2651 eval "$ac_cv_use_nanox"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_NANOX" = yes; then
2657 echo "$as_me:$LINENO: result: yes" >&5
2658echo "${ECHO_T}yes" >&6
2659 else
2660 echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6
2662 fi
2663
2664
2665
2666 enablestring=
2667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2668echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2669 no_cache=0
2670 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2671if test "${enable_gtk2+set}" = set; then
2672 enableval="$enable_gtk2"
2673
2674 if test "$enableval" = yes; then
2675 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2676 else
2677 ac_cv_use_gtk2='wxUSE_GTK2=no'
2678 fi
2679
2680else
2681
2682 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2690
2691fi;
2692
2693 eval "$ac_cv_use_gtk2"
2694 if test "$no_cache" != 1; then
2695 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2696 fi
2697
2698 if test "$wxUSE_GTK2" = yes; then
2699 echo "$as_me:$LINENO: result: yes" >&5
2700echo "${ECHO_T}yes" >&6
2701 else
2702 echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6
2704 fi
2705
2706
2707 enablestring=
2708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2709echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2710 no_cache=0
2711 # Check whether --enable-gpe or --disable-gpe was given.
2712if test "${enable_gpe+set}" = set; then
2713 enableval="$enable_gpe"
2714
2715 if test "$enableval" = yes; then
2716 ac_cv_use_gpe='wxUSE_GPE=yes'
2717 else
2718 ac_cv_use_gpe='wxUSE_GPE=no'
2719 fi
2720
2721else
2722
2723 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2724 if test "x$LINE" != x ; then
2725 eval "DEFAULT_$LINE"
2726 else
2727 no_cache=1
2728 fi
2729
2730 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2731
2732fi;
2733
2734 eval "$ac_cv_use_gpe"
2735 if test "$no_cache" != 1; then
2736 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2737 fi
2738
2739 if test "$wxUSE_GPE" = yes; then
2740 echo "$as_me:$LINENO: result: yes" >&5
2741echo "${ECHO_T}yes" >&6
2742 else
2743 echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
2745 fi
2746
2747
2748
2749 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2750echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2751 no_cache=0
2752
2753# Check whether --with-libpng or --without-libpng was given.
2754if test "${with_libpng+set}" = set; then
2755 withval="$with_libpng"
2756
2757 if test "$withval" = yes; then
2758 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2759 elif test "$withval" = no; then
2760 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2761 elif test "$withval" = sys; then
2762 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2763 elif test "$withval" = builtin; then
2764 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2765 else
2766 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2767echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2768 { (exit 1); exit 1; }; }
2769 fi
2770
2771else
2772
2773 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2781
2782fi;
2783
2784 eval "$ac_cv_use_libpng"
2785 if test "$no_cache" != 1; then
2786 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2787 fi
2788
2789 if test "$wxUSE_LIBPNG" = yes; then
2790 echo "$as_me:$LINENO: result: yes" >&5
2791echo "${ECHO_T}yes" >&6
2792 elif test "$wxUSE_LIBPNG" = no; then
2793 echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6
2795 elif test "$wxUSE_LIBPNG" = sys; then
2796 echo "$as_me:$LINENO: result: system version" >&5
2797echo "${ECHO_T}system version" >&6
2798 elif test "$wxUSE_LIBPNG" = builtin; then
2799 echo "$as_me:$LINENO: result: builtin version" >&5
2800echo "${ECHO_T}builtin version" >&6
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807
2808 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2809echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2810 no_cache=0
2811
2812# Check whether --with-libjpeg or --without-libjpeg was given.
2813if test "${with_libjpeg+set}" = set; then
2814 withval="$with_libjpeg"
2815
2816 if test "$withval" = yes; then
2817 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2818 elif test "$withval" = no; then
2819 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2820 elif test "$withval" = sys; then
2821 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2822 elif test "$withval" = builtin; then
2823 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2824 else
2825 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2826echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2827 { (exit 1); exit 1; }; }
2828 fi
2829
2830else
2831
2832 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2833 if test "x$LINE" != x ; then
2834 eval "DEFAULT_$LINE"
2835 else
2836 no_cache=1
2837 fi
2838
2839 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2840
2841fi;
2842
2843 eval "$ac_cv_use_libjpeg"
2844 if test "$no_cache" != 1; then
2845 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2846 fi
2847
2848 if test "$wxUSE_LIBJPEG" = yes; then
2849 echo "$as_me:$LINENO: result: yes" >&5
2850echo "${ECHO_T}yes" >&6
2851 elif test "$wxUSE_LIBJPEG" = no; then
2852 echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6
2854 elif test "$wxUSE_LIBJPEG" = sys; then
2855 echo "$as_me:$LINENO: result: system version" >&5
2856echo "${ECHO_T}system version" >&6
2857 elif test "$wxUSE_LIBJPEG" = builtin; then
2858 echo "$as_me:$LINENO: result: builtin version" >&5
2859echo "${ECHO_T}builtin version" >&6
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866
2867 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2868echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2869 no_cache=0
2870
2871# Check whether --with-libtiff or --without-libtiff was given.
2872if test "${with_libtiff+set}" = set; then
2873 withval="$with_libtiff"
2874
2875 if test "$withval" = yes; then
2876 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2877 elif test "$withval" = no; then
2878 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2879 elif test "$withval" = sys; then
2880 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2881 elif test "$withval" = builtin; then
2882 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2883 else
2884 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2885echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2886 { (exit 1); exit 1; }; }
2887 fi
2888
2889else
2890
2891 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2892 if test "x$LINE" != x ; then
2893 eval "DEFAULT_$LINE"
2894 else
2895 no_cache=1
2896 fi
2897
2898 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2899
2900fi;
2901
2902 eval "$ac_cv_use_libtiff"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$wxUSE_LIBTIFF" = yes; then
2908 echo "$as_me:$LINENO: result: yes" >&5
2909echo "${ECHO_T}yes" >&6
2910 elif test "$wxUSE_LIBTIFF" = no; then
2911 echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6
2913 elif test "$wxUSE_LIBTIFF" = sys; then
2914 echo "$as_me:$LINENO: result: system version" >&5
2915echo "${ECHO_T}system version" >&6
2916 elif test "$wxUSE_LIBTIFF" = builtin; then
2917 echo "$as_me:$LINENO: result: builtin version" >&5
2918echo "${ECHO_T}builtin version" >&6
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925
2926 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2927echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2928 no_cache=0
2929
2930# Check whether --with-libxpm or --without-libxpm was given.
2931if test "${with_libxpm+set}" = set; then
2932 withval="$with_libxpm"
2933
2934 if test "$withval" = yes; then
2935 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2936 elif test "$withval" = no; then
2937 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2938 elif test "$withval" = sys; then
2939 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2940 elif test "$withval" = builtin; then
2941 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2942 else
2943 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2944echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2945 { (exit 1); exit 1; }; }
2946 fi
2947
2948else
2949
2950 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
2957 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2958
2959fi;
2960
2961 eval "$ac_cv_use_libxpm"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_LIBXPM" = yes; then
2967 echo "$as_me:$LINENO: result: yes" >&5
2968echo "${ECHO_T}yes" >&6
2969 elif test "$wxUSE_LIBXPM" = no; then
2970 echo "$as_me:$LINENO: result: no" >&5
2971echo "${ECHO_T}no" >&6
2972 elif test "$wxUSE_LIBXPM" = sys; then
2973 echo "$as_me:$LINENO: result: system version" >&5
2974echo "${ECHO_T}system version" >&6
2975 elif test "$wxUSE_LIBXPM" = builtin; then
2976 echo "$as_me:$LINENO: result: builtin version" >&5
2977echo "${ECHO_T}builtin version" >&6
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984
2985 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2986echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2987 no_cache=0
2988
2989# Check whether --with-libmspack or --without-libmspack was given.
2990if test "${with_libmspack+set}" = set; then
2991 withval="$with_libmspack"
2992
2993 if test "$withval" = yes; then
2994 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2995 else
2996 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2997 fi
2998
2999else
3000
3001 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3002 if test "x$LINE" != x ; then
3003 eval "DEFAULT_$LINE"
3004 else
3005 no_cache=1
3006 fi
3007
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3009
3010fi;
3011
3012 eval "$ac_cv_use_libmspack"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$wxUSE_LIBMSPACK" = yes; then
3018 echo "$as_me:$LINENO: result: yes" >&5
3019echo "${ECHO_T}yes" >&6
3020 else
3021 echo "$as_me:$LINENO: result: no" >&5
3022echo "${ECHO_T}no" >&6
3023 fi
3024
3025
3026 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3027echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3028 no_cache=0
3029
3030# Check whether --with-sdl or --without-sdl was given.
3031if test "${with_sdl+set}" = set; then
3032 withval="$with_sdl"
3033
3034 if test "$withval" = yes; then
3035 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3036 else
3037 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3038 fi
3039
3040else
3041
3042 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3043 if test "x$LINE" != x ; then
3044 eval "DEFAULT_$LINE"
3045 else
3046 no_cache=1
3047 fi
3048
3049 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3050
3051fi;
3052
3053 eval "$ac_cv_use_sdl"
3054 if test "$no_cache" != 1; then
3055 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3056 fi
3057
3058 if test "$wxUSE_LIBSDL" = yes; then
3059 echo "$as_me:$LINENO: result: yes" >&5
3060echo "${ECHO_T}yes" >&6
3061 else
3062 echo "$as_me:$LINENO: result: no" >&5
3063echo "${ECHO_T}no" >&6
3064 fi
3065
3066
3067 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3068echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3069 no_cache=0
3070
3071# Check whether --with-opengl or --without-opengl was given.
3072if test "${with_opengl+set}" = set; then
3073 withval="$with_opengl"
3074
3075 if test "$withval" = yes; then
3076 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3077 else
3078 ac_cv_use_opengl='wxUSE_OPENGL=no'
3079 fi
3080
3081else
3082
3083 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3084 if test "x$LINE" != x ; then
3085 eval "DEFAULT_$LINE"
3086 else
3087 no_cache=1
3088 fi
3089
3090 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3091
3092fi;
3093
3094 eval "$ac_cv_use_opengl"
3095 if test "$no_cache" != 1; then
3096 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3097 fi
3098
3099 if test "$wxUSE_OPENGL" = yes; then
3100 echo "$as_me:$LINENO: result: yes" >&5
3101echo "${ECHO_T}yes" >&6
3102 else
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105 fi
3106
3107
3108fi
3109
3110
3111 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3112echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3113 no_cache=0
3114
3115# Check whether --with-dmalloc or --without-dmalloc was given.
3116if test "${with_dmalloc+set}" = set; then
3117 withval="$with_dmalloc"
3118
3119 if test "$withval" = yes; then
3120 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3121 else
3122 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3123 fi
3124
3125else
3126
3127 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3135
3136fi;
3137
3138 eval "$ac_cv_use_dmalloc"
3139 if test "$no_cache" != 1; then
3140 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3141 fi
3142
3143 if test "$wxUSE_DMALLOC" = yes; then
3144 echo "$as_me:$LINENO: result: yes" >&5
3145echo "${ECHO_T}yes" >&6
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149 fi
3150
3151
3152 echo "$as_me:$LINENO: checking for --with-regex" >&5
3153echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3154 no_cache=0
3155
3156# Check whether --with-regex or --without-regex was given.
3157if test "${with_regex+set}" = set; then
3158 withval="$with_regex"
3159
3160 if test "$withval" = yes; then
3161 ac_cv_use_regex='wxUSE_REGEX=yes'
3162 elif test "$withval" = no; then
3163 ac_cv_use_regex='wxUSE_REGEX=no'
3164 elif test "$withval" = sys; then
3165 ac_cv_use_regex='wxUSE_REGEX=sys'
3166 elif test "$withval" = builtin; then
3167 ac_cv_use_regex='wxUSE_REGEX=builtin'
3168 else
3169 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3170echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3171 { (exit 1); exit 1; }; }
3172 fi
3173
3174else
3175
3176 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3184
3185fi;
3186
3187 eval "$ac_cv_use_regex"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_REGEX" = yes; then
3193 echo "$as_me:$LINENO: result: yes" >&5
3194echo "${ECHO_T}yes" >&6
3195 elif test "$wxUSE_REGEX" = no; then
3196 echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6
3198 elif test "$wxUSE_REGEX" = sys; then
3199 echo "$as_me:$LINENO: result: system version" >&5
3200echo "${ECHO_T}system version" >&6
3201 elif test "$wxUSE_REGEX" = builtin; then
3202 echo "$as_me:$LINENO: result: builtin version" >&5
3203echo "${ECHO_T}builtin version" >&6
3204 else
3205 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3206echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3207 { (exit 1); exit 1; }; }
3208 fi
3209
3210
3211 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3212echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3213 no_cache=0
3214
3215# Check whether --with-zlib or --without-zlib was given.
3216if test "${with_zlib+set}" = set; then
3217 withval="$with_zlib"
3218
3219 if test "$withval" = yes; then
3220 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3221 elif test "$withval" = no; then
3222 ac_cv_use_zlib='wxUSE_ZLIB=no'
3223 elif test "$withval" = sys; then
3224 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3225 elif test "$withval" = builtin; then
3226 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3227 else
3228 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3229echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3230 { (exit 1); exit 1; }; }
3231 fi
3232
3233else
3234
3235 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3236 if test "x$LINE" != x ; then
3237 eval "DEFAULT_$LINE"
3238 else
3239 no_cache=1
3240 fi
3241
3242 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3243
3244fi;
3245
3246 eval "$ac_cv_use_zlib"
3247 if test "$no_cache" != 1; then
3248 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3249 fi
3250
3251 if test "$wxUSE_ZLIB" = yes; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
3254 elif test "$wxUSE_ZLIB" = no; then
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257 elif test "$wxUSE_ZLIB" = sys; then
3258 echo "$as_me:$LINENO: result: system version" >&5
3259echo "${ECHO_T}system version" >&6
3260 elif test "$wxUSE_ZLIB" = builtin; then
3261 echo "$as_me:$LINENO: result: builtin version" >&5
3262echo "${ECHO_T}builtin version" >&6
3263 else
3264 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3265echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3266 { (exit 1); exit 1; }; }
3267 fi
3268
3269
3270 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3271echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3272 no_cache=0
3273
3274# Check whether --with-odbc or --without-odbc was given.
3275if test "${with_odbc+set}" = set; then
3276 withval="$with_odbc"
3277
3278 if test "$withval" = yes; then
3279 ac_cv_use_odbc='wxUSE_ODBC=yes'
3280 elif test "$withval" = no; then
3281 ac_cv_use_odbc='wxUSE_ODBC=no'
3282 elif test "$withval" = sys; then
3283 ac_cv_use_odbc='wxUSE_ODBC=sys'
3284 elif test "$withval" = builtin; then
3285 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3286 else
3287 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3288echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3289 { (exit 1); exit 1; }; }
3290 fi
3291
3292else
3293
3294 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3302
3303fi;
3304
3305 eval "$ac_cv_use_odbc"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_ODBC" = yes; then
3311 echo "$as_me:$LINENO: result: yes" >&5
3312echo "${ECHO_T}yes" >&6
3313 elif test "$wxUSE_ODBC" = no; then
3314 echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316 elif test "$wxUSE_ODBC" = sys; then
3317 echo "$as_me:$LINENO: result: system version" >&5
3318echo "${ECHO_T}system version" >&6
3319 elif test "$wxUSE_ODBC" = builtin; then
3320 echo "$as_me:$LINENO: result: builtin version" >&5
3321echo "${ECHO_T}builtin version" >&6
3322 else
3323 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3324echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3325 { (exit 1); exit 1; }; }
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: checking for --with-expat" >&5
3330echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3331 no_cache=0
3332
3333# Check whether --with-expat or --without-expat was given.
3334if test "${with_expat+set}" = set; then
3335 withval="$with_expat"
3336
3337 if test "$withval" = yes; then
3338 ac_cv_use_expat='wxUSE_EXPAT=yes'
3339 elif test "$withval" = no; then
3340 ac_cv_use_expat='wxUSE_EXPAT=no'
3341 elif test "$withval" = sys; then
3342 ac_cv_use_expat='wxUSE_EXPAT=sys'
3343 elif test "$withval" = builtin; then
3344 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3345 else
3346 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3347echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350
3351else
3352
3353 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3354 if test "x$LINE" != x ; then
3355 eval "DEFAULT_$LINE"
3356 else
3357 no_cache=1
3358 fi
3359
3360 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3361
3362fi;
3363
3364 eval "$ac_cv_use_expat"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_EXPAT" = yes; then
3370 echo "$as_me:$LINENO: result: yes" >&5
3371echo "${ECHO_T}yes" >&6
3372 elif test "$wxUSE_EXPAT" = no; then
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375 elif test "$wxUSE_EXPAT" = sys; then
3376 echo "$as_me:$LINENO: result: system version" >&5
3377echo "${ECHO_T}system version" >&6
3378 elif test "$wxUSE_EXPAT" = builtin; then
3379 echo "$as_me:$LINENO: result: builtin version" >&5
3380echo "${ECHO_T}builtin version" >&6
3381 else
3382 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3383echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3384 { (exit 1); exit 1; }; }
3385 fi
3386
3387
3388
3389
3390 enablestring=
3391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3392echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3393 no_cache=0
3394 # Check whether --enable-shared or --disable-shared was given.
3395if test "${enable_shared+set}" = set; then
3396 enableval="$enable_shared"
3397
3398 if test "$enableval" = yes; then
3399 ac_cv_use_shared='wxUSE_SHARED=yes'
3400 else
3401 ac_cv_use_shared='wxUSE_SHARED=no'
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3414
3415fi;
3416
3417 eval "$ac_cv_use_shared"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_SHARED" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 fi
3429
3430
3431 enablestring=
3432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3433echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3434 no_cache=0
3435 # Check whether --enable-optimise or --disable-optimise was given.
3436if test "${enable_optimise+set}" = set; then
3437 enableval="$enable_optimise"
3438
3439 if test "$enableval" = yes; then
3440 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3441 else
3442 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3443 fi
3444
3445else
3446
3447 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3455
3456fi;
3457
3458 eval "$ac_cv_use_optimise"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_OPTIMISE" = yes; then
3464 echo "$as_me:$LINENO: result: yes" >&5
3465echo "${ECHO_T}yes" >&6
3466 else
3467 echo "$as_me:$LINENO: result: no" >&5
3468echo "${ECHO_T}no" >&6
3469 fi
3470
3471
3472 enablestring=
3473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3474echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3475 no_cache=0
3476 # Check whether --enable-debug or --disable-debug was given.
3477if test "${enable_debug+set}" = set; then
3478 enableval="$enable_debug"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_debug='wxUSE_DEBUG=yes'
3482 else
3483 ac_cv_use_debug='wxUSE_DEBUG=no'
3484 fi
3485
3486else
3487
3488 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3496
3497fi;
3498
3499 eval "$ac_cv_use_debug"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_DEBUG" = yes; then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506echo "${ECHO_T}yes" >&6
3507 else
3508 echo "$as_me:$LINENO: result: no" >&5
3509echo "${ECHO_T}no" >&6
3510 fi
3511
3512
3513 enablestring=
3514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3515echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3516 no_cache=0
3517 # Check whether --enable-stl or --disable-stl was given.
3518if test "${enable_stl+set}" = set; then
3519 enableval="$enable_stl"
3520
3521 if test "$enableval" = yes; then
3522 ac_cv_use_stl='wxUSE_STL=yes'
3523 else
3524 ac_cv_use_stl='wxUSE_STL=no'
3525 fi
3526
3527else
3528
3529 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3537
3538fi;
3539
3540 eval "$ac_cv_use_stl"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_STL" = yes; then
3546 echo "$as_me:$LINENO: result: yes" >&5
3547echo "${ECHO_T}yes" >&6
3548 else
3549 echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6
3551 fi
3552
3553if test "$USE_OS2" = "1"; then
3554
3555 enablestring=
3556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3557echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3558 no_cache=0
3559 # Check whether --enable-omf or --disable-omf was given.
3560if test "${enable_omf+set}" = set; then
3561 enableval="$enable_omf"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_omf='wxUSE_OMF=yes'
3565 else
3566 ac_cv_use_omf='wxUSE_OMF=no'
3567 fi
3568
3569else
3570
3571 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3579
3580fi;
3581
3582 eval "$ac_cv_use_omf"
3583 if test "$no_cache" != 1; then
3584 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3585 fi
3586
3587 if test "$wxUSE_OMF" = yes; then
3588 echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6
3590 else
3591 echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6
3593 fi
3594
3595fi
3596
3597if test "$wxUSE_DEBUG" = "yes"; then
3598 DEFAULT_wxUSE_DEBUG_FLAG=yes
3599 DEFAULT_wxUSE_DEBUG_INFO=yes
3600 BUILD=debug
3601elif test "$wxUSE_DEBUG" = "no"; then
3602 DEFAULT_wxUSE_DEBUG_FLAG=no
3603 DEFAULT_wxUSE_DEBUG_INFO=no
3604 BUILD=release
3605fi
3606
3607
3608 enablestring=
3609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3610echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3611 no_cache=0
3612 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3613if test "${enable_debug_flag+set}" = set; then
3614 enableval="$enable_debug_flag"
3615
3616 if test "$enableval" = yes; then
3617 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3618 else
3619 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3620 fi
3621
3622else
3623
3624 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3632
3633fi;
3634
3635 eval "$ac_cv_use_debug_flag"
3636 if test "$no_cache" != 1; then
3637 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3638 fi
3639
3640 if test "$wxUSE_DEBUG_FLAG" = yes; then
3641 echo "$as_me:$LINENO: result: yes" >&5
3642echo "${ECHO_T}yes" >&6
3643 else
3644 echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6
3646 fi
3647
3648
3649 enablestring=
3650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3651echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3652 no_cache=0
3653 # Check whether --enable-debug_info or --disable-debug_info was given.
3654if test "${enable_debug_info+set}" = set; then
3655 enableval="$enable_debug_info"
3656
3657 if test "$enableval" = yes; then
3658 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3659 else
3660 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3661 fi
3662
3663else
3664
3665 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3666 if test "x$LINE" != x ; then
3667 eval "DEFAULT_$LINE"
3668 else
3669 no_cache=1
3670 fi
3671
3672 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3673
3674fi;
3675
3676 eval "$ac_cv_use_debug_info"
3677 if test "$no_cache" != 1; then
3678 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3679 fi
3680
3681 if test "$wxUSE_DEBUG_INFO" = yes; then
3682 echo "$as_me:$LINENO: result: yes" >&5
3683echo "${ECHO_T}yes" >&6
3684 else
3685 echo "$as_me:$LINENO: result: no" >&5
3686echo "${ECHO_T}no" >&6
3687 fi
3688
3689
3690 enablestring=
3691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3692echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3693 no_cache=0
3694 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3695if test "${enable_debug_gdb+set}" = set; then
3696 enableval="$enable_debug_gdb"
3697
3698 if test "$enableval" = yes; then
3699 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3700 else
3701 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3702 fi
3703
3704else
3705
3706 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3707 if test "x$LINE" != x ; then
3708 eval "DEFAULT_$LINE"
3709 else
3710 no_cache=1
3711 fi
3712
3713 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3714
3715fi;
3716
3717 eval "$ac_cv_use_debug_gdb"
3718 if test "$no_cache" != 1; then
3719 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3720 fi
3721
3722 if test "$wxUSE_DEBUG_GDB" = yes; then
3723 echo "$as_me:$LINENO: result: yes" >&5
3724echo "${ECHO_T}yes" >&6
3725 else
3726 echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
3728 fi
3729
3730
3731 enablestring=
3732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3733echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3734 no_cache=0
3735 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3736if test "${enable_debug_cntxt+set}" = set; then
3737 enableval="$enable_debug_cntxt"
3738
3739 if test "$enableval" = yes; then
3740 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3741 else
3742 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3743 fi
3744
3745else
3746
3747 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3748 if test "x$LINE" != x ; then
3749 eval "DEFAULT_$LINE"
3750 else
3751 no_cache=1
3752 fi
3753
3754 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3755
3756fi;
3757
3758 eval "$ac_cv_use_debug_cntxt"
3759 if test "$no_cache" != 1; then
3760 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3761 fi
3762
3763 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3764 echo "$as_me:$LINENO: result: yes" >&5
3765echo "${ECHO_T}yes" >&6
3766 else
3767 echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6
3769 fi
3770
3771
3772 enablestring=
3773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3774echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3775 no_cache=0
3776 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3777if test "${enable_mem_tracing+set}" = set; then
3778 enableval="$enable_mem_tracing"
3779
3780 if test "$enableval" = yes; then
3781 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3782 else
3783 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3784 fi
3785
3786else
3787
3788 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3789 if test "x$LINE" != x ; then
3790 eval "DEFAULT_$LINE"
3791 else
3792 no_cache=1
3793 fi
3794
3795 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3796
3797fi;
3798
3799 eval "$ac_cv_use_mem_tracing"
3800 if test "$no_cache" != 1; then
3801 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3802 fi
3803
3804 if test "$wxUSE_MEM_TRACING" = yes; then
3805 echo "$as_me:$LINENO: result: yes" >&5
3806echo "${ECHO_T}yes" >&6
3807 else
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
3810 fi
3811
3812
3813 enablestring=
3814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3815echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3816 no_cache=0
3817 # Check whether --enable-profile or --disable-profile was given.
3818if test "${enable_profile+set}" = set; then
3819 enableval="$enable_profile"
3820
3821 if test "$enableval" = yes; then
3822 ac_cv_use_profile='wxUSE_PROFILE=yes'
3823 else
3824 ac_cv_use_profile='wxUSE_PROFILE=no'
3825 fi
3826
3827else
3828
3829 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3830 if test "x$LINE" != x ; then
3831 eval "DEFAULT_$LINE"
3832 else
3833 no_cache=1
3834 fi
3835
3836 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3837
3838fi;
3839
3840 eval "$ac_cv_use_profile"
3841 if test "$no_cache" != 1; then
3842 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3843 fi
3844
3845 if test "$wxUSE_PROFILE" = yes; then
3846 echo "$as_me:$LINENO: result: yes" >&5
3847echo "${ECHO_T}yes" >&6
3848 else
3849 echo "$as_me:$LINENO: result: no" >&5
3850echo "${ECHO_T}no" >&6
3851 fi
3852
3853
3854 enablestring=
3855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3856echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3857 no_cache=0
3858 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3859if test "${enable_no_rtti+set}" = set; then
3860 enableval="$enable_no_rtti"
3861
3862 if test "$enableval" = yes; then
3863 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3864 else
3865 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3866 fi
3867
3868else
3869
3870 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3871 if test "x$LINE" != x ; then
3872 eval "DEFAULT_$LINE"
3873 else
3874 no_cache=1
3875 fi
3876
3877 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3878
3879fi;
3880
3881 eval "$ac_cv_use_no_rtti"
3882 if test "$no_cache" != 1; then
3883 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3884 fi
3885
3886 if test "$wxUSE_NO_RTTI" = yes; then
3887 echo "$as_me:$LINENO: result: yes" >&5
3888echo "${ECHO_T}yes" >&6
3889 else
3890 echo "$as_me:$LINENO: result: no" >&5
3891echo "${ECHO_T}no" >&6
3892 fi
3893
3894
3895 enablestring=
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3897echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3898 no_cache=0
3899 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3900if test "${enable_no_exceptions+set}" = set; then
3901 enableval="$enable_no_exceptions"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3905 else
3906 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3907 fi
3908
3909else
3910
3911 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3919
3920fi;
3921
3922 eval "$ac_cv_use_no_exceptions"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3928 echo "$as_me:$LINENO: result: yes" >&5
3929echo "${ECHO_T}yes" >&6
3930 else
3931 echo "$as_me:$LINENO: result: no" >&5
3932echo "${ECHO_T}no" >&6
3933 fi
3934
3935
3936 enablestring=
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3938echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3939 no_cache=0
3940 # Check whether --enable-permissive or --disable-permissive was given.
3941if test "${enable_permissive+set}" = set; then
3942 enableval="$enable_permissive"
3943
3944 if test "$enableval" = yes; then
3945 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3946 else
3947 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3948 fi
3949
3950else
3951
3952 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3960
3961fi;
3962
3963 eval "$ac_cv_use_permissive"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_PERMISSIVE" = yes; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
3971 else
3972 echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
3974 fi
3975
3976
3977 enablestring=
3978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3979echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3980 no_cache=0
3981 # Check whether --enable-no_deps or --disable-no_deps was given.
3982if test "${enable_no_deps+set}" = set; then
3983 enableval="$enable_no_deps"
3984
3985 if test "$enableval" = yes; then
3986 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3987 else
3988 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3989 fi
3990
3991else
3992
3993 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4001
4002fi;
4003
4004 eval "$ac_cv_use_no_deps"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_NO_DEPS" = yes; then
4010 echo "$as_me:$LINENO: result: yes" >&5
4011echo "${ECHO_T}yes" >&6
4012 else
4013 echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6
4015 fi
4016
4017
4018
4019 enablestring=
4020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4021echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4022 no_cache=0
4023 # Check whether --enable-compat22 or --disable-compat22 was given.
4024if test "${enable_compat22+set}" = set; then
4025 enableval="$enable_compat22"
4026
4027 if test "$enableval" = yes; then
4028 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4029 else
4030 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4031 fi
4032
4033else
4034
4035 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4036 if test "x$LINE" != x ; then
4037 eval "DEFAULT_$LINE"
4038 else
4039 no_cache=1
4040 fi
4041
4042 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4043
4044fi;
4045
4046 eval "$ac_cv_use_compat22"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4052 echo "$as_me:$LINENO: result: yes" >&5
4053echo "${ECHO_T}yes" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056echo "${ECHO_T}no" >&6
4057 fi
4058
4059
4060 enablestring=disable
4061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4062echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4063 no_cache=0
4064 # Check whether --enable-compat24 or --disable-compat24 was given.
4065if test "${enable_compat24+set}" = set; then
4066 enableval="$enable_compat24"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4070 else
4071 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4072 fi
4073
4074else
4075
4076 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4084
4085fi;
4086
4087 eval "$ac_cv_use_compat24"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4093 echo "$as_me:$LINENO: result: yes" >&5
4094echo "${ECHO_T}yes" >&6
4095 else
4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101# Check whether --enable-rpath or --disable-rpath was given.
4102if test "${enable_rpath+set}" = set; then
4103 enableval="$enable_rpath"
4104 wxRPATH_DIR="$enableval"
4105fi;
4106
ac1cb8d3 4107if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4108 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4109fi
4110
4111
4112
4113
4114 enablestring=
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-intl or --disable-intl was given.
4119if test "${enable_intl+set}" = set; then
4120 enableval="$enable_intl"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_intl='wxUSE_INTL=yes'
4124 else
4125 ac_cv_use_intl='wxUSE_INTL=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4138
4139fi;
4140
4141 eval "$ac_cv_use_intl"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$wxUSE_INTL" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152 fi
4153
4154
4155 enablestring=
4156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4157echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4158 no_cache=0
4159 # Check whether --enable-config or --disable-config was given.
4160if test "${enable_config+set}" = set; then
4161 enableval="$enable_config"
4162
4163 if test "$enableval" = yes; then
4164 ac_cv_use_config='wxUSE_CONFIG=yes'
4165 else
4166 ac_cv_use_config='wxUSE_CONFIG=no'
4167 fi
4168
4169else
4170
4171 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4172 if test "x$LINE" != x ; then
4173 eval "DEFAULT_$LINE"
4174 else
4175 no_cache=1
4176 fi
4177
4178 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4179
4180fi;
4181
4182 eval "$ac_cv_use_config"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_CONFIG" = yes; then
4188 echo "$as_me:$LINENO: result: yes" >&5
4189echo "${ECHO_T}yes" >&6
4190 else
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
4193 fi
4194
4195
4196
4197 enablestring=
4198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4199echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4200 no_cache=0
4201 # Check whether --enable-protocols or --disable-protocols was given.
4202if test "${enable_protocols+set}" = set; then
4203 enableval="$enable_protocols"
4204
4205 if test "$enableval" = yes; then
4206 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4207 else
4208 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4209 fi
4210
4211else
4212
4213 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4214 if test "x$LINE" != x ; then
4215 eval "DEFAULT_$LINE"
4216 else
4217 no_cache=1
4218 fi
4219
4220 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4221
4222fi;
4223
4224 eval "$ac_cv_use_protocols"
4225 if test "$no_cache" != 1; then
4226 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4227 fi
4228
4229 if test "$wxUSE_PROTOCOL" = yes; then
4230 echo "$as_me:$LINENO: result: yes" >&5
4231echo "${ECHO_T}yes" >&6
4232 else
4233 echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6
4235 fi
4236
4237
4238 enablestring=
4239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4240echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4241 no_cache=0
4242 # Check whether --enable-ftp or --disable-ftp was given.
4243if test "${enable_ftp+set}" = set; then
4244 enableval="$enable_ftp"
4245
4246 if test "$enableval" = yes; then
4247 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4248 else
4249 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4250 fi
4251
4252else
4253
4254 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4255 if test "x$LINE" != x ; then
4256 eval "DEFAULT_$LINE"
4257 else
4258 no_cache=1
4259 fi
4260
4261 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4262
4263fi;
4264
4265 eval "$ac_cv_use_ftp"
4266 if test "$no_cache" != 1; then
4267 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4268 fi
4269
4270 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4271 echo "$as_me:$LINENO: result: yes" >&5
4272echo "${ECHO_T}yes" >&6
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275echo "${ECHO_T}no" >&6
4276 fi
4277
4278
4279 enablestring=
4280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4281echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4282 no_cache=0
4283 # Check whether --enable-http or --disable-http was given.
4284if test "${enable_http+set}" = set; then
4285 enableval="$enable_http"
4286
4287 if test "$enableval" = yes; then
4288 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4289 else
4290 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4291 fi
4292
4293else
4294
4295 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4296 if test "x$LINE" != x ; then
4297 eval "DEFAULT_$LINE"
4298 else
4299 no_cache=1
4300 fi
4301
4302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4303
4304fi;
4305
4306 eval "$ac_cv_use_http"
4307 if test "$no_cache" != 1; then
4308 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4309 fi
4310
4311 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4312 echo "$as_me:$LINENO: result: yes" >&5
4313echo "${ECHO_T}yes" >&6
4314 else
4315 echo "$as_me:$LINENO: result: no" >&5
4316echo "${ECHO_T}no" >&6
4317 fi
4318
4319
4320 enablestring=
4321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4322echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4323 no_cache=0
4324 # Check whether --enable-fileproto or --disable-fileproto was given.
4325if test "${enable_fileproto+set}" = set; then
4326 enableval="$enable_fileproto"
4327
4328 if test "$enableval" = yes; then
4329 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4330 else
4331 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4332 fi
4333
4334else
4335
4336 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4337 if test "x$LINE" != x ; then
4338 eval "DEFAULT_$LINE"
4339 else
4340 no_cache=1
4341 fi
4342
4343 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4344
4345fi;
4346
4347 eval "$ac_cv_use_fileproto"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4353 echo "$as_me:$LINENO: result: yes" >&5
4354echo "${ECHO_T}yes" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357echo "${ECHO_T}no" >&6
4358 fi
4359
4360
4361 enablestring=
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4363echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4364 no_cache=0
4365 # Check whether --enable-sockets or --disable-sockets was given.
4366if test "${enable_sockets+set}" = set; then
4367 enableval="$enable_sockets"
4368
4369 if test "$enableval" = yes; then
4370 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4371 else
4372 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4373 fi
4374
4375else
4376
4377 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
4384 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4385
4386fi;
4387
4388 eval "$ac_cv_use_sockets"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_SOCKETS" = yes; then
4394 echo "$as_me:$LINENO: result: yes" >&5
4395echo "${ECHO_T}yes" >&6
4396 else
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
4399 fi
4400
4401
4402 enablestring=
4403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4404echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4405 no_cache=0
4406 # Check whether --enable-ole or --disable-ole was given.
4407if test "${enable_ole+set}" = set; then
4408 enableval="$enable_ole"
4409
4410 if test "$enableval" = yes; then
4411 ac_cv_use_ole='wxUSE_OLE=yes'
4412 else
4413 ac_cv_use_ole='wxUSE_OLE=no'
4414 fi
4415
4416else
4417
4418 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4419 if test "x$LINE" != x ; then
4420 eval "DEFAULT_$LINE"
4421 else
4422 no_cache=1
4423 fi
4424
4425 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4426
4427fi;
4428
4429 eval "$ac_cv_use_ole"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_OLE" = yes; then
4435 echo "$as_me:$LINENO: result: yes" >&5
4436echo "${ECHO_T}yes" >&6
4437 else
4438 echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6
4440 fi
4441
4442
4443 enablestring=
4444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4445echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4446 no_cache=0
4447 # Check whether --enable-dataobj or --disable-dataobj was given.
4448if test "${enable_dataobj+set}" = set; then
4449 enableval="$enable_dataobj"
4450
4451 if test "$enableval" = yes; then
4452 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4453 else
4454 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4455 fi
4456
4457else
4458
4459 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
4466 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4467
4468fi;
4469
4470 eval "$ac_cv_use_dataobj"
4471 if test "$no_cache" != 1; then
4472 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4473 fi
4474
4475 if test "$wxUSE_DATAOBJ" = yes; then
4476 echo "$as_me:$LINENO: result: yes" >&5
4477echo "${ECHO_T}yes" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
4481 fi
4482
4483
4484
4485 enablestring=
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4487echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4488 no_cache=0
4489 # Check whether --enable-ipc or --disable-ipc was given.
4490if test "${enable_ipc+set}" = set; then
4491 enableval="$enable_ipc"
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_ipc='wxUSE_IPC=yes'
4495 else
4496 ac_cv_use_ipc='wxUSE_IPC=no'
4497 fi
4498
4499else
4500
4501 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4509
4510fi;
4511
4512 eval "$ac_cv_use_ipc"
4513 if test "$no_cache" != 1; then
4514 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4515 fi
4516
4517 if test "$wxUSE_IPC" = yes; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
4520 else
4521 echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
4523 fi
4524
4525
4526
4527 enablestring=
4528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4529echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4530 no_cache=0
4531 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4532if test "${enable_apple_ieee+set}" = set; then
4533 enableval="$enable_apple_ieee"
4534
4535 if test "$enableval" = yes; then
4536 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4537 else
4538 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4539 fi
4540
4541else
4542
4543 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4551
4552fi;
4553
4554 eval "$ac_cv_use_apple_ieee"
4555 if test "$no_cache" != 1; then
4556 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4557 fi
4558
4559 if test "$wxUSE_APPLE_IEEE" = yes; then
4560 echo "$as_me:$LINENO: result: yes" >&5
4561echo "${ECHO_T}yes" >&6
4562 else
4563 echo "$as_me:$LINENO: result: no" >&5
4564echo "${ECHO_T}no" >&6
4565 fi
4566
4567
4568 enablestring=
4569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4570echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4571 no_cache=0
4572 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4573if test "${enable_catch_segvs+set}" = set; then
4574 enableval="$enable_catch_segvs"
4575
4576 if test "$enableval" = yes; then
4577 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4578 else
4579 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4580 fi
4581
4582else
4583
4584 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
4591 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4592
4593fi;
4594
4595 eval "$ac_cv_use_catch_segvs"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4601 echo "$as_me:$LINENO: result: yes" >&5
4602echo "${ECHO_T}yes" >&6
4603 else
4604 echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6
4606 fi
4607
4608
4609 enablestring=
4610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4611echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4612 no_cache=0
4613 # Check whether --enable-cmdline or --disable-cmdline was given.
4614if test "${enable_cmdline+set}" = set; then
4615 enableval="$enable_cmdline"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4619 else
4620 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4621 fi
4622
4623else
4624
4625 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4633
4634fi;
4635
4636 eval "$ac_cv_use_cmdline"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643echo "${ECHO_T}yes" >&6
4644 else
4645 echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6
4647 fi
4648
4649
4650 enablestring=
4651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4652echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4653 no_cache=0
4654 # Check whether --enable-datetime or --disable-datetime was given.
4655if test "${enable_datetime+set}" = set; then
4656 enableval="$enable_datetime"
4657
4658 if test "$enableval" = yes; then
4659 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4660 else
4661 ac_cv_use_datetime='wxUSE_DATETIME=no'
4662 fi
4663
4664else
4665
4666 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4674
4675fi;
4676
4677 eval "$ac_cv_use_datetime"
4678 if test "$no_cache" != 1; then
4679 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4680 fi
4681
4682 if test "$wxUSE_DATETIME" = yes; then
4683 echo "$as_me:$LINENO: result: yes" >&5
4684echo "${ECHO_T}yes" >&6
4685 else
4686 echo "$as_me:$LINENO: result: no" >&5
4687echo "${ECHO_T}no" >&6
4688 fi
4689
4690
4691 enablestring=
4692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4693echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4694 no_cache=0
4695 # Check whether --enable-dialupman or --disable-dialupman was given.
4696if test "${enable_dialupman+set}" = set; then
4697 enableval="$enable_dialupman"
4698
4699 if test "$enableval" = yes; then
4700 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4701 else
4702 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4703 fi
4704
4705else
4706
4707 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4715
4716fi;
4717
4718 eval "$ac_cv_use_dialupman"
4719 if test "$no_cache" != 1; then
4720 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4721 fi
4722
4723 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4724 echo "$as_me:$LINENO: result: yes" >&5
4725echo "${ECHO_T}yes" >&6
4726 else
4727 echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6
4729 fi
4730
4731
4732 enablestring=
4733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4734echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4735 no_cache=0
4736 # Check whether --enable-dynlib or --disable-dynlib was given.
4737if test "${enable_dynlib+set}" = set; then
4738 enableval="$enable_dynlib"
4739
4740 if test "$enableval" = yes; then
4741 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4742 else
4743 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4744 fi
4745
4746else
4747
4748 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4749 if test "x$LINE" != x ; then
4750 eval "DEFAULT_$LINE"
4751 else
4752 no_cache=1
4753 fi
4754
4755 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4756
4757fi;
4758
4759 eval "$ac_cv_use_dynlib"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4765 echo "$as_me:$LINENO: result: yes" >&5
4766echo "${ECHO_T}yes" >&6
4767 else
4768 echo "$as_me:$LINENO: result: no" >&5
4769echo "${ECHO_T}no" >&6
4770 fi
4771
4772
4773 enablestring=
4774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4775echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4776 no_cache=0
4777 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4778if test "${enable_dynamicloader+set}" = set; then
4779 enableval="$enable_dynamicloader"
4780
4781 if test "$enableval" = yes; then
4782 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4783 else
4784 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4785 fi
4786
4787else
4788
4789 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4790 if test "x$LINE" != x ; then
4791 eval "DEFAULT_$LINE"
4792 else
4793 no_cache=1
4794 fi
4795
4796 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4797
4798fi;
4799
4800 eval "$ac_cv_use_dynamicloader"
4801 if test "$no_cache" != 1; then
4802 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4803 fi
4804
4805 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4806 echo "$as_me:$LINENO: result: yes" >&5
4807echo "${ECHO_T}yes" >&6
4808 else
4809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811 fi
4812
4813
4814 enablestring=
4815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4816echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4817 no_cache=0
4818 # Check whether --enable-exceptions or --disable-exceptions was given.
4819if test "${enable_exceptions+set}" = set; then
4820 enableval="$enable_exceptions"
4821
4822 if test "$enableval" = yes; then
4823 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4824 else
4825 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4826 fi
4827
4828else
4829
4830 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4831 if test "x$LINE" != x ; then
4832 eval "DEFAULT_$LINE"
4833 else
4834 no_cache=1
4835 fi
4836
4837 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4838
4839fi;
4840
4841 eval "$ac_cv_use_exceptions"
4842 if test "$no_cache" != 1; then
4843 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4844 fi
4845
4846 if test "$wxUSE_EXCEPTIONS" = yes; then
4847 echo "$as_me:$LINENO: result: yes" >&5
4848echo "${ECHO_T}yes" >&6
4849 else
4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
4852 fi
4853
4854
4855 enablestring=
4856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4857echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4858 no_cache=0
4859 # Check whether --enable-ffile or --disable-ffile was given.
4860if test "${enable_ffile+set}" = set; then
4861 enableval="$enable_ffile"
4862
4863 if test "$enableval" = yes; then
4864 ac_cv_use_ffile='wxUSE_FFILE=yes'
4865 else
4866 ac_cv_use_ffile='wxUSE_FFILE=no'
4867 fi
4868
4869else
4870
4871 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4879
4880fi;
4881
4882 eval "$ac_cv_use_ffile"
4883 if test "$no_cache" != 1; then
4884 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4885 fi
4886
4887 if test "$wxUSE_FFILE" = yes; then
4888 echo "$as_me:$LINENO: result: yes" >&5
4889echo "${ECHO_T}yes" >&6
4890 else
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893 fi
4894
4895
4896 enablestring=
4897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4898echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4899 no_cache=0
4900 # Check whether --enable-file or --disable-file was given.
4901if test "${enable_file+set}" = set; then
4902 enableval="$enable_file"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_file='wxUSE_FILE=yes'
4906 else
4907 ac_cv_use_file='wxUSE_FILE=no'
4908 fi
4909
4910else
4911
4912 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4920
4921fi;
4922
4923 eval "$ac_cv_use_file"
4924 if test "$no_cache" != 1; then
4925 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4926 fi
4927
4928 if test "$wxUSE_FILE" = yes; then
4929 echo "$as_me:$LINENO: result: yes" >&5
4930echo "${ECHO_T}yes" >&6
4931 else
4932 echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
4934 fi
4935
4936
4937 enablestring=
4938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4939echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4940 no_cache=0
4941 # Check whether --enable-filesystem or --disable-filesystem was given.
4942if test "${enable_filesystem+set}" = set; then
4943 enableval="$enable_filesystem"
4944
4945 if test "$enableval" = yes; then
4946 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4947 else
4948 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4949 fi
4950
4951else
4952
4953 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
4960 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4961
4962fi;
4963
4964 eval "$ac_cv_use_filesystem"
4965 if test "$no_cache" != 1; then
4966 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4967 fi
4968
4969 if test "$wxUSE_FILESYSTEM" = yes; then
4970 echo "$as_me:$LINENO: result: yes" >&5
4971echo "${ECHO_T}yes" >&6
4972 else
4973 echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6
4975 fi
4976
4977
4978 enablestring=
4979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4980echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4981 no_cache=0
4982 # Check whether --enable-fontmap or --disable-fontmap was given.
4983if test "${enable_fontmap+set}" = set; then
4984 enableval="$enable_fontmap"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4988 else
4989 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5002
5003fi;
5004
5005 eval "$ac_cv_use_fontmap"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_FONTMAP" = yes; then
5011 echo "$as_me:$LINENO: result: yes" >&5
5012echo "${ECHO_T}yes" >&6
5013 else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016 fi
5017
5018
5019 enablestring=
5020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5021echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5022 no_cache=0
5023 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5024if test "${enable_fs_inet+set}" = set; then
5025 enableval="$enable_fs_inet"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5029 else
5030 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5031 fi
5032
5033else
5034
5035 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5043
5044fi;
5045
5046 eval "$ac_cv_use_fs_inet"
5047 if test "$no_cache" != 1; then
5048 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5049 fi
5050
5051 if test "$wxUSE_FS_INET" = yes; then
5052 echo "$as_me:$LINENO: result: yes" >&5
5053echo "${ECHO_T}yes" >&6
5054 else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057 fi
5058
5059
5060 enablestring=
5061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5062echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5063 no_cache=0
5064 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5065if test "${enable_fs_zip+set}" = set; then
5066 enableval="$enable_fs_zip"
5067
5068 if test "$enableval" = yes; then
5069 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5070 else
5071 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5072 fi
5073
5074else
5075
5076 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5077 if test "x$LINE" != x ; then
5078 eval "DEFAULT_$LINE"
5079 else
5080 no_cache=1
5081 fi
5082
5083 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5084
5085fi;
5086
5087 eval "$ac_cv_use_fs_zip"
5088 if test "$no_cache" != 1; then
5089 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5090 fi
5091
5092 if test "$wxUSE_FS_ZIP" = yes; then
5093 echo "$as_me:$LINENO: result: yes" >&5
5094echo "${ECHO_T}yes" >&6
5095 else
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098 fi
5099
5100
5101 enablestring=
5102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5103echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5104 no_cache=0
5105 # Check whether --enable-geometry or --disable-geometry was given.
5106if test "${enable_geometry+set}" = set; then
5107 enableval="$enable_geometry"
5108
5109 if test "$enableval" = yes; then
5110 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5111 else
5112 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5113 fi
5114
5115else
5116
5117 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
5124 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5125
5126fi;
5127
5128 eval "$ac_cv_use_geometry"
5129 if test "$no_cache" != 1; then
5130 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5131 fi
5132
5133 if test "$wxUSE_GEOMETRY" = yes; then
5134 echo "$as_me:$LINENO: result: yes" >&5
5135echo "${ECHO_T}yes" >&6
5136 else
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139 fi
5140
5141
5142 enablestring=
5143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5144echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5145 no_cache=0
5146 # Check whether --enable-log or --disable-log was given.
5147if test "${enable_log+set}" = set; then
5148 enableval="$enable_log"
5149
5150 if test "$enableval" = yes; then
5151 ac_cv_use_log='wxUSE_LOG=yes'
5152 else
5153 ac_cv_use_log='wxUSE_LOG=no'
5154 fi
5155
5156else
5157
5158 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5159 if test "x$LINE" != x ; then
5160 eval "DEFAULT_$LINE"
5161 else
5162 no_cache=1
5163 fi
5164
5165 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5166
5167fi;
5168
5169 eval "$ac_cv_use_log"
5170 if test "$no_cache" != 1; then
5171 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5172 fi
5173
5174 if test "$wxUSE_LOG" = yes; then
5175 echo "$as_me:$LINENO: result: yes" >&5
5176echo "${ECHO_T}yes" >&6
5177 else
5178 echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180 fi
5181
5182
5183 enablestring=
5184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5185echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5186 no_cache=0
5187 # Check whether --enable-longlong or --disable-longlong was given.
5188if test "${enable_longlong+set}" = set; then
5189 enableval="$enable_longlong"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5193 else
5194 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5195 fi
5196
5197else
5198
5199 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5207
5208fi;
5209
5210 eval "$ac_cv_use_longlong"
5211 if test "$no_cache" != 1; then
5212 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5213 fi
5214
5215 if test "$wxUSE_LONGLONG" = yes; then
5216 echo "$as_me:$LINENO: result: yes" >&5
5217echo "${ECHO_T}yes" >&6
5218 else
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221 fi
5222
5223
5224 enablestring=
5225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5226echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5227 no_cache=0
5228 # Check whether --enable-mimetype or --disable-mimetype was given.
5229if test "${enable_mimetype+set}" = set; then
5230 enableval="$enable_mimetype"
5231
5232 if test "$enableval" = yes; then
5233 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5234 else
5235 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5236 fi
5237
5238else
5239
5240 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
5247 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5248
5249fi;
5250
5251 eval "$ac_cv_use_mimetype"
5252 if test "$no_cache" != 1; then
5253 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5254 fi
5255
5256 if test "$wxUSE_MIMETYPE" = yes; then
5257 echo "$as_me:$LINENO: result: yes" >&5
5258echo "${ECHO_T}yes" >&6
5259 else
5260 echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
5262 fi
5263
5264
5265 enablestring=
5266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5267echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5268 no_cache=0
5269 # Check whether --enable-mslu or --disable-mslu was given.
5270if test "${enable_mslu+set}" = set; then
5271 enableval="$enable_mslu"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5275 else
5276 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5277 fi
5278
5279else
5280
5281 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5289
5290fi;
5291
5292 eval "$ac_cv_use_mslu"
5293 if test "$no_cache" != 1; then
5294 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5295 fi
5296
5297 if test "$wxUSE_UNICODE_MSLU" = yes; then
5298 echo "$as_me:$LINENO: result: yes" >&5
5299echo "${ECHO_T}yes" >&6
5300 else
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303 fi
5304
5305
5306 enablestring=
5307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5308echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5309 no_cache=0
5310 # Check whether --enable-snglinst or --disable-snglinst was given.
5311if test "${enable_snglinst+set}" = set; then
5312 enableval="$enable_snglinst"
5313
5314 if test "$enableval" = yes; then
5315 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5316 else
5317 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5318 fi
5319
5320else
5321
5322 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5323 if test "x$LINE" != x ; then
5324 eval "DEFAULT_$LINE"
5325 else
5326 no_cache=1
5327 fi
5328
5329 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5330
5331fi;
5332
5333 eval "$ac_cv_use_snglinst"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5339 echo "$as_me:$LINENO: result: yes" >&5
5340echo "${ECHO_T}yes" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6
5344 fi
5345
5346
5347 enablestring=
5348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5349echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5350 no_cache=0
5351 # Check whether --enable-streams or --disable-streams was given.
5352if test "${enable_streams+set}" = set; then
5353 enableval="$enable_streams"
5354
5355 if test "$enableval" = yes; then
5356 ac_cv_use_streams='wxUSE_STREAMS=yes'
5357 else
5358 ac_cv_use_streams='wxUSE_STREAMS=no'
5359 fi
5360
5361else
5362
5363 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5364 if test "x$LINE" != x ; then
5365 eval "DEFAULT_$LINE"
5366 else
5367 no_cache=1
5368 fi
5369
5370 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5371
5372fi;
5373
5374 eval "$ac_cv_use_streams"
5375 if test "$no_cache" != 1; then
5376 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5377 fi
5378
5379 if test "$wxUSE_STREAMS" = yes; then
5380 echo "$as_me:$LINENO: result: yes" >&5
5381echo "${ECHO_T}yes" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384echo "${ECHO_T}no" >&6
5385 fi
5386
5387
5388 enablestring=
5389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5390echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5391 no_cache=0
5392 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5393if test "${enable_std_iostreams+set}" = set; then
5394 enableval="$enable_std_iostreams"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5398 else
5399 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5400 fi
5401
5402else
5403
5404 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5412
5413fi;
5414
5415 eval "$ac_cv_use_std_iostreams"
5416 if test "$no_cache" != 1; then
5417 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5418 fi
5419
5420 if test "$wxUSE_STD_IOSTREAM" = yes; then
5421 echo "$as_me:$LINENO: result: yes" >&5
5422echo "${ECHO_T}yes" >&6
5423 else
5424 echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426 fi
5427
5428
5429 enablestring=
5430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5431echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5432 no_cache=0
5433 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5434if test "${enable_stopwatch+set}" = set; then
5435 enableval="$enable_stopwatch"
5436
5437 if test "$enableval" = yes; then
5438 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5439 else
5440 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5441 fi
5442
5443else
5444
5445 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5446 if test "x$LINE" != x ; then
5447 eval "DEFAULT_$LINE"
5448 else
5449 no_cache=1
5450 fi
5451
5452 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5453
5454fi;
5455
5456 eval "$ac_cv_use_stopwatch"
5457 if test "$no_cache" != 1; then
5458 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5459 fi
5460
5461 if test "$wxUSE_STOPWATCH" = yes; then
5462 echo "$as_me:$LINENO: result: yes" >&5
5463echo "${ECHO_T}yes" >&6
5464 else
5465 echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467 fi
5468
5469
5470 enablestring=
5471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5472echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5473 no_cache=0
5474 # Check whether --enable-system_options or --disable-system_options was given.
5475if test "${enable_system_options+set}" = set; then
5476 enableval="$enable_system_options"
5477
5478 if test "$enableval" = yes; then
5479 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5480 else
5481 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5482 fi
5483
5484else
5485
5486 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5487 if test "x$LINE" != x ; then
5488 eval "DEFAULT_$LINE"
5489 else
5490 no_cache=1
5491 fi
5492
5493 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5494
5495fi;
5496
5497 eval "$ac_cv_use_system_options"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5503 echo "$as_me:$LINENO: result: yes" >&5
5504echo "${ECHO_T}yes" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508 fi
5509
5510
5511 enablestring=
5512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5513echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5514 no_cache=0
5515 # Check whether --enable-textbuf or --disable-textbuf was given.
5516if test "${enable_textbuf+set}" = set; then
5517 enableval="$enable_textbuf"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5521 else
5522 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5523 fi
5524
5525else
5526
5527 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5535
5536fi;
5537
5538 eval "$ac_cv_use_textbuf"
5539 if test "$no_cache" != 1; then
5540 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5541 fi
5542
5543 if test "$wxUSE_TEXTBUFFER" = yes; then
5544 echo "$as_me:$LINENO: result: yes" >&5
5545echo "${ECHO_T}yes" >&6
5546 else
5547 echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549 fi
5550
5551
5552 enablestring=
5553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5554echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5555 no_cache=0
5556 # Check whether --enable-textfile or --disable-textfile was given.
5557if test "${enable_textfile+set}" = set; then
5558 enableval="$enable_textfile"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5562 else
5563 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5564 fi
5565
5566else
5567
5568 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5576
5577fi;
5578
5579 eval "$ac_cv_use_textfile"
5580 if test "$no_cache" != 1; then
5581 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5582 fi
5583
5584 if test "$wxUSE_TEXTFILE" = yes; then
5585 echo "$as_me:$LINENO: result: yes" >&5
5586echo "${ECHO_T}yes" >&6
5587 else
5588 echo "$as_me:$LINENO: result: no" >&5
5589echo "${ECHO_T}no" >&6
5590 fi
5591
5592
5593 enablestring=
5594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5595echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5596 no_cache=0
5597 # Check whether --enable-timer or --disable-timer was given.
5598if test "${enable_timer+set}" = set; then
5599 enableval="$enable_timer"
5600
5601 if test "$enableval" = yes; then
5602 ac_cv_use_timer='wxUSE_TIMER=yes'
5603 else
5604 ac_cv_use_timer='wxUSE_TIMER=no'
5605 fi
5606
5607else
5608
5609 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5617
5618fi;
5619
5620 eval "$ac_cv_use_timer"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_TIMER" = yes; then
5626 echo "$as_me:$LINENO: result: yes" >&5
5627echo "${ECHO_T}yes" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631 fi
5632
5633
5634 enablestring=
5635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5636echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5637 no_cache=0
5638 # Check whether --enable-unicode or --disable-unicode was given.
5639if test "${enable_unicode+set}" = set; then
5640 enableval="$enable_unicode"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5644 else
5645 ac_cv_use_unicode='wxUSE_UNICODE=no'
5646 fi
5647
5648else
5649
5650 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5658
5659fi;
5660
5661 eval "$ac_cv_use_unicode"
5662 if test "$no_cache" != 1; then
5663 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5664 fi
5665
5666 if test "$wxUSE_UNICODE" = yes; then
5667 echo "$as_me:$LINENO: result: yes" >&5
5668echo "${ECHO_T}yes" >&6
5669 else
5670 echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672 fi
5673
5674
5675 enablestring=
5676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5677echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5678 no_cache=0
5679 # Check whether --enable-sound or --disable-sound was given.
5680if test "${enable_sound+set}" = set; then
5681 enableval="$enable_sound"
5682
5683 if test "$enableval" = yes; then
5684 ac_cv_use_sound='wxUSE_SOUND=yes'
5685 else
5686 ac_cv_use_sound='wxUSE_SOUND=no'
5687 fi
5688
5689else
5690
5691 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5699
5700fi;
5701
5702 eval "$ac_cv_use_sound"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_SOUND" = yes; then
5708 echo "$as_me:$LINENO: result: yes" >&5
5709echo "${ECHO_T}yes" >&6
5710 else
5711 echo "$as_me:$LINENO: result: no" >&5
5712echo "${ECHO_T}no" >&6
5713 fi
5714
5715
5716 enablestring=
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5719 no_cache=0
5720 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5721if test "${enable_wxprintfv+set}" = set; then
5722 enableval="$enable_wxprintfv"
5723
5724 if test "$enableval" = yes; then
5725 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5726 else
5727 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5728 fi
5729
5730else
5731
5732 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5740
5741fi;
5742
5743 eval "$ac_cv_use_wxprintfv"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
5751 else
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754 fi
5755
5756
5757 enablestring=
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5760 no_cache=0
5761 # Check whether --enable-zipstream or --disable-zipstream was given.
5762if test "${enable_zipstream+set}" = set; then
5763 enableval="$enable_zipstream"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5767 else
5768 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5769 fi
5770
5771else
5772
5773 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5781
5782fi;
5783
5784 eval "$ac_cv_use_zipstream"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_ZIPSTREAM" = yes; then
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
5792 else
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
5795 fi
5796
5797
a848cd7e
SC
5798
5799 enablestring=
5800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5801echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5802 no_cache=0
5803 # Check whether --enable-url or --disable-url was given.
5804if test "${enable_url+set}" = set; then
5805 enableval="$enable_url"
5806
5807 if test "$enableval" = yes; then
5808 ac_cv_use_url='wxUSE_URL=yes'
5809 else
5810 ac_cv_use_url='wxUSE_URL=no'
5811 fi
5812
5813else
5814
5815 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5816 if test "x$LINE" != x ; then
5817 eval "DEFAULT_$LINE"
5818 else
5819 no_cache=1
5820 fi
5821
5822 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5823
5824fi;
5825
5826 eval "$ac_cv_use_url"
5827 if test "$no_cache" != 1; then
5828 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5829 fi
5830
5831 if test "$wxUSE_URL" = yes; then
5832 echo "$as_me:$LINENO: result: yes" >&5
5833echo "${ECHO_T}yes" >&6
5834 else
5835 echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6
5837 fi
5838
5839
5840 enablestring=
5841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5842echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5843 no_cache=0
5844 # Check whether --enable-protocol or --disable-protocol was given.
5845if test "${enable_protocol+set}" = set; then
5846 enableval="$enable_protocol"
5847
5848 if test "$enableval" = yes; then
5849 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5850 else
5851 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5852 fi
5853
5854else
5855
5856 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5857 if test "x$LINE" != x ; then
5858 eval "DEFAULT_$LINE"
5859 else
5860 no_cache=1
5861 fi
5862
5863 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5864
5865fi;
5866
5867 eval "$ac_cv_use_protocol"
5868 if test "$no_cache" != 1; then
5869 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5870 fi
5871
5872 if test "$wxUSE_PROTOCOL" = yes; then
5873 echo "$as_me:$LINENO: result: yes" >&5
5874echo "${ECHO_T}yes" >&6
5875 else
5876 echo "$as_me:$LINENO: result: no" >&5
5877echo "${ECHO_T}no" >&6
5878 fi
5879
5880
5881 enablestring=
5882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5883echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5884 no_cache=0
5885 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5886if test "${enable_protocol_http+set}" = set; then
5887 enableval="$enable_protocol_http"
5888
5889 if test "$enableval" = yes; then
5890 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5891 else
5892 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5893 fi
5894
5895else
5896
5897 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5898 if test "x$LINE" != x ; then
5899 eval "DEFAULT_$LINE"
5900 else
5901 no_cache=1
5902 fi
5903
5904 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5905
5906fi;
5907
5908 eval "$ac_cv_use_protocol_http"
5909 if test "$no_cache" != 1; then
5910 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5911 fi
5912
5913 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5914 echo "$as_me:$LINENO: result: yes" >&5
5915echo "${ECHO_T}yes" >&6
5916 else
5917 echo "$as_me:$LINENO: result: no" >&5
5918echo "${ECHO_T}no" >&6
5919 fi
5920
5921
5922 enablestring=
5923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5924echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5925 no_cache=0
5926 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5927if test "${enable_protocol_ftp+set}" = set; then
5928 enableval="$enable_protocol_ftp"
5929
5930 if test "$enableval" = yes; then
5931 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5932 else
5933 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5934 fi
5935
5936else
5937
5938 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5939 if test "x$LINE" != x ; then
5940 eval "DEFAULT_$LINE"
5941 else
5942 no_cache=1
5943 fi
5944
5945 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5946
5947fi;
5948
5949 eval "$ac_cv_use_protocol_ftp"
5950 if test "$no_cache" != 1; then
5951 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5952 fi
5953
5954 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5955 echo "$as_me:$LINENO: result: yes" >&5
5956echo "${ECHO_T}yes" >&6
5957 else
5958 echo "$as_me:$LINENO: result: no" >&5
5959echo "${ECHO_T}no" >&6
5960 fi
5961
5962
5963 enablestring=
5964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5965echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5966 no_cache=0
5967 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5968if test "${enable_protocol_file+set}" = set; then
5969 enableval="$enable_protocol_file"
5970
5971 if test "$enableval" = yes; then
5972 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5973 else
5974 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5975 fi
5976
5977else
5978
5979 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5980 if test "x$LINE" != x ; then
5981 eval "DEFAULT_$LINE"
5982 else
5983 no_cache=1
5984 fi
5985
5986 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5987
5988fi;
5989
5990 eval "$ac_cv_use_protocol_file"
5991 if test "$no_cache" != 1; then
5992 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5993 fi
5994
5995 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5996 echo "$as_me:$LINENO: result: yes" >&5
5997echo "${ECHO_T}yes" >&6
5998 else
5999 echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6
6001 fi
6002
6003
6004
6005
6006
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-threads or --disable-threads was given.
6012if test "${enable_threads+set}" = set; then
6013 enableval="$enable_threads"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_threads='wxUSE_THREADS=yes'
6017 else
6018 ac_cv_use_threads='wxUSE_THREADS=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6031
6032fi;
6033
6034 eval "$ac_cv_use_threads"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_THREADS" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
6048if test "$wxUSE_GUI" = "yes"; then
6049
6050
6051
6052 enablestring=
6053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6054echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6055 no_cache=0
6056 # Check whether --enable-docview or --disable-docview was given.
6057if test "${enable_docview+set}" = set; then
6058 enableval="$enable_docview"
6059
6060 if test "$enableval" = yes; then
6061 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6062 else
6063 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6064 fi
6065
6066else
6067
6068 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6069 if test "x$LINE" != x ; then
6070 eval "DEFAULT_$LINE"
6071 else
6072 no_cache=1
6073 fi
6074
6075 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6076
6077fi;
6078
6079 eval "$ac_cv_use_docview"
6080 if test "$no_cache" != 1; then
6081 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6082 fi
6083
6084 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6085 echo "$as_me:$LINENO: result: yes" >&5
6086echo "${ECHO_T}yes" >&6
6087 else
6088 echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6
6090 fi
6091
6092
6093 enablestring=
6094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6095echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6096 no_cache=0
6097 # Check whether --enable-help or --disable-help was given.
6098if test "${enable_help+set}" = set; then
6099 enableval="$enable_help"
6100
6101 if test "$enableval" = yes; then
6102 ac_cv_use_help='wxUSE_HELP=yes'
6103 else
6104 ac_cv_use_help='wxUSE_HELP=no'
6105 fi
6106
6107else
6108
6109 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6117
6118fi;
6119
6120 eval "$ac_cv_use_help"
6121 if test "$no_cache" != 1; then
6122 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6123 fi
6124
6125 if test "$wxUSE_HELP" = yes; then
6126 echo "$as_me:$LINENO: result: yes" >&5
6127echo "${ECHO_T}yes" >&6
6128 else
6129 echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6
6131 fi
6132
6133
6134 enablestring=
6135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6136echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6137 no_cache=0
6138 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6139if test "${enable_mshtmlhelp+set}" = set; then
6140 enableval="$enable_mshtmlhelp"
6141
6142 if test "$enableval" = yes; then
6143 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6144 else
6145 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6146 fi
6147
6148else
6149
6150 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6151 if test "x$LINE" != x ; then
6152 eval "DEFAULT_$LINE"
6153 else
6154 no_cache=1
6155 fi
6156
6157 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6158
6159fi;
6160
6161 eval "$ac_cv_use_mshtmlhelp"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_MS_HTML_HELP" = yes; then
6167 echo "$as_me:$LINENO: result: yes" >&5
6168echo "${ECHO_T}yes" >&6
6169 else
6170 echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6
6172 fi
6173
6174
6175 enablestring=
6176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6177echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6178 no_cache=0
6179 # Check whether --enable-html or --disable-html was given.
6180if test "${enable_html+set}" = set; then
6181 enableval="$enable_html"
6182
6183 if test "$enableval" = yes; then
6184 ac_cv_use_html='wxUSE_HTML=yes'
6185 else
6186 ac_cv_use_html='wxUSE_HTML=no'
6187 fi
6188
6189else
6190
6191 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6192 if test "x$LINE" != x ; then
6193 eval "DEFAULT_$LINE"
6194 else
6195 no_cache=1
6196 fi
6197
6198 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6199
6200fi;
6201
6202 eval "$ac_cv_use_html"
6203 if test "$no_cache" != 1; then
6204 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6205 fi
6206
6207 if test "$wxUSE_HTML" = yes; then
6208 echo "$as_me:$LINENO: result: yes" >&5
6209echo "${ECHO_T}yes" >&6
6210 else
6211 echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6
6213 fi
6214
6215
6216 enablestring=
6217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6218echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6219 no_cache=0
6220 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6221if test "${enable_htmlhelp+set}" = set; then
6222 enableval="$enable_htmlhelp"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6226 else
6227 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6228 fi
6229
6230else
6231
6232 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6240
6241fi;
6242
6243 eval "$ac_cv_use_htmlhelp"
6244 if test "$no_cache" != 1; then
6245 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6246 fi
6247
6248 if test "$wxUSE_WXHTML_HELP" = yes; then
6249 echo "$as_me:$LINENO: result: yes" >&5
6250echo "${ECHO_T}yes" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6
6254 fi
6255
6256
6257 enablestring=
6258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6259echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6260 no_cache=0
6261 # Check whether --enable-constraints or --disable-constraints was given.
6262if test "${enable_constraints+set}" = set; then
6263 enableval="$enable_constraints"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6267 else
6268 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6269 fi
6270
6271else
6272
6273 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6281
6282fi;
6283
6284 eval "$ac_cv_use_constraints"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_CONSTRAINTS" = yes; then
6290 echo "$as_me:$LINENO: result: yes" >&5
6291echo "${ECHO_T}yes" >&6
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295 fi
6296
6297
6298 enablestring=
6299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6300echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6301 no_cache=0
6302 # Check whether --enable-printarch or --disable-printarch was given.
6303if test "${enable_printarch+set}" = set; then
6304 enableval="$enable_printarch"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6308 else
6309 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6310 fi
6311
6312else
6313
6314 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6322
6323fi;
6324
6325 eval "$ac_cv_use_printarch"
6326 if test "$no_cache" != 1; then
6327 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6328 fi
6329
6330 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6331 echo "$as_me:$LINENO: result: yes" >&5
6332echo "${ECHO_T}yes" >&6
6333 else
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
6336 fi
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6341echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-mdi or --disable-mdi was given.
6344if test "${enable_mdi+set}" = set; then
6345 enableval="$enable_mdi"
6346
6347 if test "$enableval" = yes; then
8a7b1113 6348 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6349 else
8a7b1113 6350 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6351 fi
6352
6353else
6354
8a7b1113 6355 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
8a7b1113 6362 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6363
6364fi;
6365
6366 eval "$ac_cv_use_mdi"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6369 fi
6370
8a7b1113
VZ
6371 if test "$wxUSE_MDI" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380 enablestring=
6381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6382echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6383 no_cache=0
6384 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6385if test "${enable_mdidoc+set}" = set; then
6386 enableval="$enable_mdidoc"
6387
6388 if test "$enableval" = yes; then
6389 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6390 else
6391 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6392 fi
6393
6394else
6395
6396 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6404
6405fi;
6406
6407 eval "$ac_cv_use_mdidoc"
6408 if test "$no_cache" != 1; then
6409 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6410 fi
6411
a848cd7e
SC
6412 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6413 echo "$as_me:$LINENO: result: yes" >&5
6414echo "${ECHO_T}yes" >&6
6415 else
6416 echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6
6418 fi
6419
6420
6421 enablestring=
6422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6423echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6424 no_cache=0
6425 # Check whether --enable-loggui or --disable-loggui was given.
6426if test "${enable_loggui+set}" = set; then
6427 enableval="$enable_loggui"
6428
6429 if test "$enableval" = yes; then
6430 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6431 else
6432 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6433 fi
6434
6435else
6436
6437 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6445
6446fi;
6447
6448 eval "$ac_cv_use_loggui"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_LOGGUI" = yes; then
6454 echo "$as_me:$LINENO: result: yes" >&5
6455echo "${ECHO_T}yes" >&6
6456 else
6457 echo "$as_me:$LINENO: result: no" >&5
6458echo "${ECHO_T}no" >&6
6459 fi
6460
6461
6462 enablestring=
6463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6464echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6465 no_cache=0
6466 # Check whether --enable-logwin or --disable-logwin was given.
6467if test "${enable_logwin+set}" = set; then
6468 enableval="$enable_logwin"
6469
6470 if test "$enableval" = yes; then
6471 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6472 else
6473 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6474 fi
6475
6476else
6477
6478 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6479 if test "x$LINE" != x ; then
6480 eval "DEFAULT_$LINE"
6481 else
6482 no_cache=1
6483 fi
6484
6485 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6486
6487fi;
6488
6489 eval "$ac_cv_use_logwin"
6490 if test "$no_cache" != 1; then
6491 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6492 fi
6493
6494 if test "$wxUSE_LOGWINDOW" = yes; then
6495 echo "$as_me:$LINENO: result: yes" >&5
6496echo "${ECHO_T}yes" >&6
6497 else
6498 echo "$as_me:$LINENO: result: no" >&5
6499echo "${ECHO_T}no" >&6
6500 fi
6501
6502
6503 enablestring=
6504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6505echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6506 no_cache=0
6507 # Check whether --enable-logdialog or --disable-logdialog was given.
6508if test "${enable_logdialog+set}" = set; then
6509 enableval="$enable_logdialog"
6510
6511 if test "$enableval" = yes; then
6512 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6513 else
6514 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6515 fi
6516
6517else
6518
6519 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6520 if test "x$LINE" != x ; then
6521 eval "DEFAULT_$LINE"
6522 else
6523 no_cache=1
6524 fi
6525
6526 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6527
6528fi;
6529
6530 eval "$ac_cv_use_logdialog"
6531 if test "$no_cache" != 1; then
6532 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6533 fi
6534
6535 if test "$wxUSE_LOGDIALOG" = yes; then
6536 echo "$as_me:$LINENO: result: yes" >&5
6537echo "${ECHO_T}yes" >&6
6538 else
6539 echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
6541 fi
6542
6543
646b6ec1
VS
6544 enablestring=
6545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6546echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6547 no_cache=0
6548 # Check whether --enable-webkit or --disable-webkit was given.
6549if test "${enable_webkit+set}" = set; then
6550 enableval="$enable_webkit"
6551
6552 if test "$enableval" = yes; then
6553 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6554 else
6555 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6556 fi
6557
6558else
6559
6560 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6561 if test "x$LINE" != x ; then
6562 eval "DEFAULT_$LINE"
6563 else
6564 no_cache=1
6565 fi
6566
6567 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6568
6569fi;
6570
6571 eval "$ac_cv_use_webkit"
6572 if test "$no_cache" != 1; then
6573 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6574 fi
6575
6576 if test "$wxUSE_WEBKIT" = yes; then
6577 echo "$as_me:$LINENO: result: yes" >&5
6578echo "${ECHO_T}yes" >&6
6579 else
6580 echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6
6582 fi
6583
6584
a848cd7e
SC
6585
6586 enablestring=
6587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6588echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6589 no_cache=0
6590 # Check whether --enable-postscript or --disable-postscript was given.
6591if test "${enable_postscript+set}" = set; then
6592 enableval="$enable_postscript"
6593
6594 if test "$enableval" = yes; then
6595 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6596 else
6597 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6598 fi
6599
6600else
6601
6602 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6603 if test "x$LINE" != x ; then
6604 eval "DEFAULT_$LINE"
6605 else
6606 no_cache=1
6607 fi
6608
6609 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6610
6611fi;
6612
6613 eval "$ac_cv_use_postscript"
6614 if test "$no_cache" != 1; then
6615 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6616 fi
6617
6618 if test "$wxUSE_POSTSCRIPT" = yes; then
6619 echo "$as_me:$LINENO: result: yes" >&5
6620echo "${ECHO_T}yes" >&6
6621 else
6622 echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6
6624 fi
6625
6626
6627
6628
6629
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-prologio or --disable-prologio was given.
6635if test "${enable_prologio+set}" = set; then
6636 enableval="$enable_prologio"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6640 else
6641 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6654
6655fi;
6656
6657 eval "$ac_cv_use_prologio"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_PROLOGIO" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-resources or --disable-resources was given.
6676if test "${enable_resources+set}" = set; then
6677 enableval="$enable_resources"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6681 else
6682 ac_cv_use_resources='wxUSE_RESOURCES=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6695
6696fi;
6697
6698 eval "$ac_cv_use_resources"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_RESOURCES" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712
6713
6714 enablestring=
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6717 no_cache=0
6718 # Check whether --enable-clipboard or --disable-clipboard was given.
6719if test "${enable_clipboard+set}" = set; then
6720 enableval="$enable_clipboard"
6721
6722 if test "$enableval" = yes; then
6723 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6724 else
6725 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6726 fi
6727
6728else
6729
6730 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6738
6739fi;
6740
6741 eval "$ac_cv_use_clipboard"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_CLIPBOARD" = yes; then
6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
6752 fi
6753
6754
6755 enablestring=
6756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6757echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6758 no_cache=0
6759 # Check whether --enable-dnd or --disable-dnd was given.
6760if test "${enable_dnd+set}" = set; then
6761 enableval="$enable_dnd"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6765 else
6766 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6767 fi
6768
6769else
6770
6771 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6779
6780fi;
6781
6782 eval "$ac_cv_use_dnd"
6783 if test "$no_cache" != 1; then
6784 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6785 fi
6786
6787 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
6790 else
6791 echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6
6793 fi
6794
6795
6796 enablestring=
6797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6798echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6799 no_cache=0
6800 # Check whether --enable-metafile or --disable-metafile was given.
6801if test "${enable_metafile+set}" = set; then
6802 enableval="$enable_metafile"
6803
6804 if test "$enableval" = yes; then
6805 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6806 else
6807 ac_cv_use_metafile='wxUSE_METAFILE=no'
6808 fi
6809
6810else
6811
6812 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6813 if test "x$LINE" != x ; then
6814 eval "DEFAULT_$LINE"
6815 else
6816 no_cache=1
6817 fi
6818
6819 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6820
6821fi;
6822
6823 eval "$ac_cv_use_metafile"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_METAFILE" = yes; then
6829 echo "$as_me:$LINENO: result: yes" >&5
6830echo "${ECHO_T}yes" >&6
6831 else
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
6834 fi
6835
6836
6837
6838
6839
6840 enablestring=
6841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6842echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6843 no_cache=0
6844 # Check whether --enable-controls or --disable-controls was given.
6845if test "${enable_controls+set}" = set; then
6846 enableval="$enable_controls"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6850 else
6851 ac_cv_use_controls='wxUSE_CONTROLS=no'
6852 fi
6853
6854else
6855
6856 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6864
6865fi;
6866
6867 eval "$ac_cv_use_controls"
6868 if test "$no_cache" != 1; then
6869 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6870 fi
6871
6872 if test "$wxUSE_CONTROLS" = yes; then
6873 echo "$as_me:$LINENO: result: yes" >&5
6874echo "${ECHO_T}yes" >&6
6875 else
6876 echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6
6878 fi
6879
6880
6881if test "$wxUSE_CONTROLS" = "yes"; then
6882 DEFAULT_wxUSE_ACCEL=yes
6883 DEFAULT_wxUSE_BMPBUTTON=yes
6884 DEFAULT_wxUSE_BUTTON=yes
6885 DEFAULT_wxUSE_CALCTRL=no
6886 DEFAULT_wxUSE_CARET=yes
6887 DEFAULT_wxUSE_COMBOBOX=yes
6888 DEFAULT_wxUSE_CHECKBOX=yes
6889 DEFAULT_wxUSE_CHECKLISTBOX=yes
6890 DEFAULT_wxUSE_CHOICE=yes
6891 DEFAULT_wxUSE_GAUGE=yes
6892 DEFAULT_wxUSE_GRID=yes
6893 DEFAULT_wxUSE_IMAGLIST=yes
6894 DEFAULT_wxUSE_LISTBOOK=yes
6895 DEFAULT_wxUSE_LISTBOX=yes
6896 DEFAULT_wxUSE_LISTCTRL=yes
6897 DEFAULT_wxUSE_NOTEBOOK=yes
6898 DEFAULT_wxUSE_RADIOBOX=yes
6899 DEFAULT_wxUSE_RADIOBTN=yes
6900 DEFAULT_wxUSE_SASH=yes
6901 DEFAULT_wxUSE_SCROLLBAR=yes
6902 DEFAULT_wxUSE_SLIDER=yes
6903 DEFAULT_wxUSE_SPINBTN=yes
6904 DEFAULT_wxUSE_SPINCTRL=yes
6905 DEFAULT_wxUSE_SPLITTER=yes
6906 DEFAULT_wxUSE_STATBMP=yes
6907 DEFAULT_wxUSE_STATBOX=yes
6908 DEFAULT_wxUSE_STATLINE=yes
6909 DEFAULT_wxUSE_STATUSBAR=yes
6910 DEFAULT_wxUSE_TAB_DIALOG=yes
6911 DEFAULT_wxUSE_TOGGLEBTN=yes
6912 DEFAULT_wxUSE_TOOLBAR=yes
6913 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6914 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6915 DEFAULT_wxUSE_TOOLTIPS=yes
6916 DEFAULT_wxUSE_TREECTRL=yes
6917 DEFAULT_wxUSE_POPUPWIN=yes
6918 DEFAULT_wxUSE_TIPWINDOW=yes
6919elif test "$wxUSE_CONTROLS" = "no"; then
6920 DEFAULT_wxUSE_ACCEL=no
6921 DEFAULT_wxUSE_BMPBUTTON=no
6922 DEFAULT_wxUSE_BUTTON=no
6923 DEFAULT_wxUSE_CALCTRL=no
6924 DEFAULT_wxUSE_CARET=no
6925 DEFAULT_wxUSE_COMBOBOX=no
6926 DEFAULT_wxUSE_CHECKBOX=no
6927 DEFAULT_wxUSE_CHECKLISTBOX=no
6928 DEFAULT_wxUSE_CHOICE=no
6929 DEFAULT_wxUSE_GAUGE=no
6930 DEFAULT_wxUSE_GRID=no
6931 DEFAULT_wxUSE_IMAGLIST=no
6932 DEFAULT_wxUSE_LISTBOOK=no
6933 DEFAULT_wxUSE_LISTBOX=no
6934 DEFAULT_wxUSE_LISTCTRL=no
6935 DEFAULT_wxUSE_NOTEBOOK=no
6936 DEFAULT_wxUSE_RADIOBOX=no
6937 DEFAULT_wxUSE_RADIOBTN=no
6938 DEFAULT_wxUSE_SASH=no
6939 DEFAULT_wxUSE_SCROLLBAR=no
6940 DEFAULT_wxUSE_SLIDER=no
6941 DEFAULT_wxUSE_SPINBTN=no
6942 DEFAULT_wxUSE_SPINCTRL=no
6943 DEFAULT_wxUSE_SPLITTER=no
6944 DEFAULT_wxUSE_STATBMP=no
6945 DEFAULT_wxUSE_STATBOX=no
6946 DEFAULT_wxUSE_STATLINE=no
6947 DEFAULT_wxUSE_STATUSBAR=no
6948 DEFAULT_wxUSE_TAB_DIALOG=no
6949 DEFAULT_wxUSE_TOGGLEBTN=no
6950 DEFAULT_wxUSE_TOOLBAR=no
6951 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6952 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6953 DEFAULT_wxUSE_TOOLTIPS=no
6954 DEFAULT_wxUSE_TREECTRL=no
6955 DEFAULT_wxUSE_POPUPWIN=no
6956 DEFAULT_wxUSE_TIPWINDOW=no
6957fi
6958
6959## FIXME: This is a blatant hack
6960if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6961 wxUSE_PRINTING_ARCHITECTURE=no
6962 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
6963 DEFAULT_wxUSE_TOOLTIPS=no
6964 DEFAULT_wxUSE_DRAGIMAGE=no
6965fi
6966
6967
6968 enablestring=
6969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6970echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6971 no_cache=0
6972 # Check whether --enable-accel or --disable-accel was given.
6973if test "${enable_accel+set}" = set; then
6974 enableval="$enable_accel"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_accel='wxUSE_ACCEL=yes'
6978 else
6979 ac_cv_use_accel='wxUSE_ACCEL=no'
6980 fi
6981
6982else
6983
6984 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6992
6993fi;
6994
6995 eval "$ac_cv_use_accel"
6996 if test "$no_cache" != 1; then
6997 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6998 fi
6999
7000 if test "$wxUSE_ACCEL" = yes; then
7001 echo "$as_me:$LINENO: result: yes" >&5
7002echo "${ECHO_T}yes" >&6
7003 else
7004 echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6
7006 fi
7007
7008
7009 enablestring=
7010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7011echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7012 no_cache=0
7013 # Check whether --enable-button or --disable-button was given.
7014if test "${enable_button+set}" = set; then
7015 enableval="$enable_button"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_button='wxUSE_BUTTON=yes'
7019 else
7020 ac_cv_use_button='wxUSE_BUTTON=no'
7021 fi
7022
7023else
7024
7025 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7033
7034fi;
7035
7036 eval "$ac_cv_use_button"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_BUTTON" = yes; then
7042 echo "$as_me:$LINENO: result: yes" >&5
7043echo "${ECHO_T}yes" >&6
7044 else
7045 echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6
7047 fi
7048
7049
7050 enablestring=
7051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7052echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7053 no_cache=0
7054 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7055if test "${enable_bmpbutton+set}" = set; then
7056 enableval="$enable_bmpbutton"
7057
7058 if test "$enableval" = yes; then
7059 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7060 else
7061 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7062 fi
7063
7064else
7065
7066 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7067 if test "x$LINE" != x ; then
7068 eval "DEFAULT_$LINE"
7069 else
7070 no_cache=1
7071 fi
7072
7073 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7074
7075fi;
7076
7077 eval "$ac_cv_use_bmpbutton"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_BMPBUTTON" = yes; then
7083 echo "$as_me:$LINENO: result: yes" >&5
7084echo "${ECHO_T}yes" >&6
7085 else
7086 echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6
7088 fi
7089
7090
7091 enablestring=
7092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7093echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7094 no_cache=0
7095 # Check whether --enable-calendar or --disable-calendar was given.
7096if test "${enable_calendar+set}" = set; then
7097 enableval="$enable_calendar"
7098
7099 if test "$enableval" = yes; then
7100 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7101 else
7102 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7103 fi
7104
7105else
7106
7107 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7108 if test "x$LINE" != x ; then
7109 eval "DEFAULT_$LINE"
7110 else
7111 no_cache=1
7112 fi
7113
7114 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7115
7116fi;
7117
7118 eval "$ac_cv_use_calendar"
7119 if test "$no_cache" != 1; then
7120 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7121 fi
7122
7123 if test "$wxUSE_CALCTRL" = yes; then
7124 echo "$as_me:$LINENO: result: yes" >&5
7125echo "${ECHO_T}yes" >&6
7126 else
7127 echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6
7129 fi
7130
7131
7132 enablestring=
7133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7134echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7135 no_cache=0
7136 # Check whether --enable-caret or --disable-caret was given.
7137if test "${enable_caret+set}" = set; then
7138 enableval="$enable_caret"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_caret='wxUSE_CARET=yes'
7142 else
7143 ac_cv_use_caret='wxUSE_CARET=no'
7144 fi
7145
7146else
7147
7148 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7156
7157fi;
7158
7159 eval "$ac_cv_use_caret"
7160 if test "$no_cache" != 1; then
7161 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7162 fi
7163
7164 if test "$wxUSE_CARET" = yes; then
7165 echo "$as_me:$LINENO: result: yes" >&5
7166echo "${ECHO_T}yes" >&6
7167 else
7168 echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6
7170 fi
7171
7172
7173 enablestring=
7174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7175echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7176 no_cache=0
7177 # Check whether --enable-checkbox or --disable-checkbox was given.
7178if test "${enable_checkbox+set}" = set; then
7179 enableval="$enable_checkbox"
7180
7181 if test "$enableval" = yes; then
7182 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7183 else
7184 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7185 fi
7186
7187else
7188
7189 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7190 if test "x$LINE" != x ; then
7191 eval "DEFAULT_$LINE"
7192 else
7193 no_cache=1
7194 fi
7195
7196 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7197
7198fi;
7199
7200 eval "$ac_cv_use_checkbox"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_CHECKBOX" = yes; then
7206 echo "$as_me:$LINENO: result: yes" >&5
7207echo "${ECHO_T}yes" >&6
7208 else
7209 echo "$as_me:$LINENO: result: no" >&5
7210echo "${ECHO_T}no" >&6
7211 fi
7212
7213
7214 enablestring=
7215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7216echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7217 no_cache=0
7218 # Check whether --enable-checklst or --disable-checklst was given.
7219if test "${enable_checklst+set}" = set; then
7220 enableval="$enable_checklst"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7224 else
7225 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7238
7239fi;
7240
7241 eval "$ac_cv_use_checklst"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_CHECKLST" = yes; then
7247 echo "$as_me:$LINENO: result: yes" >&5
7248echo "${ECHO_T}yes" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252 fi
7253
7254
7255 enablestring=
7256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7257echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7258 no_cache=0
7259 # Check whether --enable-choice or --disable-choice was given.
7260if test "${enable_choice+set}" = set; then
7261 enableval="$enable_choice"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_choice='wxUSE_CHOICE=yes'
7265 else
7266 ac_cv_use_choice='wxUSE_CHOICE=no'
7267 fi
7268
7269else
7270
7271 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7272 if test "x$LINE" != x ; then
7273 eval "DEFAULT_$LINE"
7274 else
7275 no_cache=1
7276 fi
7277
7278 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7279
7280fi;
7281
7282 eval "$ac_cv_use_choice"
7283 if test "$no_cache" != 1; then
7284 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7285 fi
7286
7287 if test "$wxUSE_CHOICE" = yes; then
7288 echo "$as_me:$LINENO: result: yes" >&5
7289echo "${ECHO_T}yes" >&6
7290 else
7291 echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6
7293 fi
7294
7295
7296 enablestring=
7297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7298echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7299 no_cache=0
7300 # Check whether --enable-combobox or --disable-combobox was given.
7301if test "${enable_combobox+set}" = set; then
7302 enableval="$enable_combobox"
7303
7304 if test "$enableval" = yes; then
7305 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7306 else
7307 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7308 fi
7309
7310else
7311
7312 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7313 if test "x$LINE" != x ; then
7314 eval "DEFAULT_$LINE"
7315 else
7316 no_cache=1
7317 fi
7318
7319 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7320
7321fi;
7322
7323 eval "$ac_cv_use_combobox"
7324 if test "$no_cache" != 1; then
7325 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7326 fi
7327
7328 if test "$wxUSE_COMBOBOX" = yes; then
7329 echo "$as_me:$LINENO: result: yes" >&5
7330echo "${ECHO_T}yes" >&6
7331 else
7332 echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6
7334 fi
7335
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-display or --disable-display was given.
7342if test "${enable_display+set}" = set; then
7343 enableval="$enable_display"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_display='wxUSE_DISPLAY=yes'
7347 else
7348 ac_cv_use_display='wxUSE_DISPLAY=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7361
7362fi;
7363
7364 eval "$ac_cv_use_display"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_DISPLAY" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7380echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-gauge or --disable-gauge was given.
7383if test "${enable_gauge+set}" = set; then
7384 enableval="$enable_gauge"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7388 else
7389 ac_cv_use_gauge='wxUSE_GAUGE=no'
7390 fi
7391
7392else
7393
7394 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7402
7403fi;
7404
7405 eval "$ac_cv_use_gauge"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_GAUGE" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7421echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-grid or --disable-grid was given.
7424if test "${enable_grid+set}" = set; then
7425 enableval="$enable_grid"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_grid='wxUSE_GRID=yes'
7429 else
7430 ac_cv_use_grid='wxUSE_GRID=no'
7431 fi
7432
7433else
7434
7435 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7443
7444fi;
7445
7446 eval "$ac_cv_use_grid"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_GRID" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7462echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-imaglist or --disable-imaglist was given.
7465if test "${enable_imaglist+set}" = set; then
7466 enableval="$enable_imaglist"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7470 else
7471 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7484
7485fi;
7486
7487 eval "$ac_cv_use_imaglist"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_IMAGLIST" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7503echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-listbook or --disable-listbook was given.
7506if test "${enable_listbook+set}" = set; then
7507 enableval="$enable_listbook"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7511 else
7512 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7513 fi
7514
7515else
7516
7517 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7525
7526fi;
7527
7528 eval "$ac_cv_use_listbook"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_LISTBOOK" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7544echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-listbox or --disable-listbox was given.
7547if test "${enable_listbox+set}" = set; then
7548 enableval="$enable_listbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7552 else
7553 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7554 fi
7555
7556else
7557
7558 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7566
7567fi;
7568
7569 eval "$ac_cv_use_listbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_LISTBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7585echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-listctrl or --disable-listctrl was given.
7588if test "${enable_listctrl+set}" = set; then
7589 enableval="$enable_listctrl"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7593 else
7594 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7607
7608fi;
7609
7610 eval "$ac_cv_use_listctrl"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_LISTCTRL" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-notebook or --disable-notebook was given.
7629if test "${enable_notebook+set}" = set; then
7630 enableval="$enable_notebook"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7634 else
7635 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7648
7649fi;
7650
7651 eval "$ac_cv_use_notebook"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_NOTEBOOK" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-radiobox or --disable-radiobox was given.
7670if test "${enable_radiobox+set}" = set; then
7671 enableval="$enable_radiobox"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7675 else
7676 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7689
7690fi;
7691
7692 eval "$ac_cv_use_radiobox"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_RADIOBOX" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7711if test "${enable_radiobtn+set}" = set; then
7712 enableval="$enable_radiobtn"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7716 else
7717 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7730
7731fi;
7732
7733 eval "$ac_cv_use_radiobtn"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_RADIOBTN" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-sash or --disable-sash was given.
7752if test "${enable_sash+set}" = set; then
7753 enableval="$enable_sash"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_sash='wxUSE_SASH=yes'
7757 else
7758 ac_cv_use_sash='wxUSE_SASH=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7771
7772fi;
7773
7774 eval "$ac_cv_use_sash"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_SASH" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7793if test "${enable_scrollbar+set}" = set; then
7794 enableval="$enable_scrollbar"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7798 else
7799 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7812
7813fi;
7814
7815 eval "$ac_cv_use_scrollbar"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_SCROLLBAR" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-slider or --disable-slider was given.
7834if test "${enable_slider+set}" = set; then
7835 enableval="$enable_slider"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_slider='wxUSE_SLIDER=yes'
7839 else
7840 ac_cv_use_slider='wxUSE_SLIDER=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7853
7854fi;
7855
7856 eval "$ac_cv_use_slider"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_SLIDER" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7875if test "${enable_spinbtn+set}" = set; then
7876 enableval="$enable_spinbtn"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7880 else
7881 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7894
7895fi;
7896
7897 eval "$ac_cv_use_spinbtn"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_SPINBTN" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7916if test "${enable_spinctrl+set}" = set; then
7917 enableval="$enable_spinctrl"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7921 else
7922 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7935
7936fi;
7937
7938 eval "$ac_cv_use_spinctrl"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_SPINCTRL" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-splitter or --disable-splitter was given.
7957if test "${enable_splitter+set}" = set; then
7958 enableval="$enable_splitter"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7962 else
7963 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7976
7977fi;
7978
7979 eval "$ac_cv_use_splitter"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_SPLITTER" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-statbmp or --disable-statbmp was given.
7998if test "${enable_statbmp+set}" = set; then
7999 enableval="$enable_statbmp"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8003 else
8004 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8017
8018fi;
8019
8020 eval "$ac_cv_use_statbmp"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_STATBMP" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-statbox or --disable-statbox was given.
8039if test "${enable_statbox+set}" = set; then
8040 enableval="$enable_statbox"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8044 else
8045 ac_cv_use_statbox='wxUSE_STATBOX=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8058
8059fi;
8060
8061 eval "$ac_cv_use_statbox"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_STATBOX" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-statline or --disable-statline was given.
8080if test "${enable_statline+set}" = set; then
8081 enableval="$enable_statline"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_statline='wxUSE_STATLINE=yes'
8085 else
8086 ac_cv_use_statline='wxUSE_STATLINE=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8099
8100fi;
8101
8102 eval "$ac_cv_use_statline"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_STATLINE" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-stattext or --disable-stattext was given.
8121if test "${enable_stattext+set}" = set; then
8122 enableval="$enable_stattext"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8126 else
8127 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8140
8141fi;
8142
8143 eval "$ac_cv_use_stattext"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_STATTEXT" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-statusbar or --disable-statusbar was given.
8162if test "${enable_statusbar+set}" = set; then
8163 enableval="$enable_statusbar"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8167 else
8168 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8181
8182fi;
8183
8184 eval "$ac_cv_use_statusbar"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_STATUSBAR" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8203if test "${enable_tabdialog+set}" = set; then
8204 enableval="$enable_tabdialog"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8208 else
8209 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8222
8223fi;
8224
8225 eval "$ac_cv_use_tabdialog"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_TABDIALOG" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-textctrl or --disable-textctrl was given.
8244if test "${enable_textctrl+set}" = set; then
8245 enableval="$enable_textctrl"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8249 else
8250 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8263
8264fi;
8265
8266 eval "$ac_cv_use_textctrl"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_TEXTCTRL" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8285if test "${enable_togglebtn+set}" = set; then
8286 enableval="$enable_togglebtn"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8290 else
8291 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8304
8305fi;
8306
8307 eval "$ac_cv_use_togglebtn"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_TOGGLEBTN" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-toolbar or --disable-toolbar was given.
8326if test "${enable_toolbar+set}" = set; then
8327 enableval="$enable_toolbar"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8331 else
8332 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8345
8346fi;
8347
8348 eval "$ac_cv_use_toolbar"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_TOOLBAR" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8367if test "${enable_tbarnative+set}" = set; then
8368 enableval="$enable_tbarnative"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8372 else
8373 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8386
8387fi;
8388
8389 eval "$ac_cv_use_tbarnative"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8408if test "${enable_tbarsmpl+set}" = set; then
8409 enableval="$enable_tbarsmpl"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8413 else
8414 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8427
8428fi;
8429
8430 eval "$ac_cv_use_tbarsmpl"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-treectrl or --disable-treectrl was given.
8449if test "${enable_treectrl+set}" = set; then
8450 enableval="$enable_treectrl"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8454 else
8455 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8468
8469fi;
8470
8471 eval "$ac_cv_use_treectrl"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_TREECTRL" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8490if test "${enable_tipwindow+set}" = set; then
8491 enableval="$enable_tipwindow"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8495 else
8496 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8509
8510fi;
8511
8512 eval "$ac_cv_use_tipwindow"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_TIPWINDOW" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-popupwin or --disable-popupwin was given.
8531if test "${enable_popupwin+set}" = set; then
8532 enableval="$enable_popupwin"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8536 else
8537 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8550
8551fi;
8552
8553 eval "$ac_cv_use_popupwin"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_POPUPWIN" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567
8568
8569 enablestring=
8570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8571echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8572 no_cache=0
8573 # Check whether --enable-commondlg or --disable-commondlg was given.
8574if test "${enable_commondlg+set}" = set; then
8575 enableval="$enable_commondlg"
8576
8577 if test "$enableval" = yes; then
8578 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8579 else
8580 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8581 fi
8582
8583else
8584
8585 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8586 if test "x$LINE" != x ; then
8587 eval "DEFAULT_$LINE"
8588 else
8589 no_cache=1
8590 fi
8591
8592 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8593
8594fi;
8595
8596 eval "$ac_cv_use_commondlg"
8597 if test "$no_cache" != 1; then
8598 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8599 fi
8600
8601 if test "$wxUSE_COMMONDLGS" = yes; then
8602 echo "$as_me:$LINENO: result: yes" >&5
8603echo "${ECHO_T}yes" >&6
8604 else
8605 echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6
8607 fi
8608
8609
8610 enablestring=
8611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8612echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8613 no_cache=0
8614 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8615if test "${enable_choicedlg+set}" = set; then
8616 enableval="$enable_choicedlg"
8617
8618 if test "$enableval" = yes; then
8619 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8620 else
8621 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8622 fi
8623
8624else
8625
8626 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8627 if test "x$LINE" != x ; then
8628 eval "DEFAULT_$LINE"
8629 else
8630 no_cache=1
8631 fi
8632
8633 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8634
8635fi;
8636
8637 eval "$ac_cv_use_choicedlg"
8638 if test "$no_cache" != 1; then
8639 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8640 fi
8641
8642 if test "$wxUSE_CHOICEDLG" = yes; then
8643 echo "$as_me:$LINENO: result: yes" >&5
8644echo "${ECHO_T}yes" >&6
8645 else
8646 echo "$as_me:$LINENO: result: no" >&5
8647echo "${ECHO_T}no" >&6
8648 fi
8649
8650
8651 enablestring=
8652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8653echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8654 no_cache=0
8655 # Check whether --enable-coldlg or --disable-coldlg was given.
8656if test "${enable_coldlg+set}" = set; then
8657 enableval="$enable_coldlg"
8658
8659 if test "$enableval" = yes; then
8660 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8661 else
8662 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8663 fi
8664
8665else
8666
8667 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8668 if test "x$LINE" != x ; then
8669 eval "DEFAULT_$LINE"
8670 else
8671 no_cache=1
8672 fi
8673
8674 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8675
8676fi;
8677
8678 eval "$ac_cv_use_coldlg"
8679 if test "$no_cache" != 1; then
8680 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8681 fi
8682
8683 if test "$wxUSE_COLOURDLG" = yes; then
8684 echo "$as_me:$LINENO: result: yes" >&5
8685echo "${ECHO_T}yes" >&6
8686 else
8687 echo "$as_me:$LINENO: result: no" >&5
8688echo "${ECHO_T}no" >&6
8689 fi
8690
8691
8692 enablestring=
8693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8694echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8695 no_cache=0
8696 # Check whether --enable-filedlg or --disable-filedlg was given.
8697if test "${enable_filedlg+set}" = set; then
8698 enableval="$enable_filedlg"
8699
8700 if test "$enableval" = yes; then
8701 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8702 else
8703 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8704 fi
8705
8706else
8707
8708 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8709 if test "x$LINE" != x ; then
8710 eval "DEFAULT_$LINE"
8711 else
8712 no_cache=1
8713 fi
8714
8715 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8716
8717fi;
8718
8719 eval "$ac_cv_use_filedlg"
8720 if test "$no_cache" != 1; then
8721 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8722 fi
8723
8724 if test "$wxUSE_FILEDLG" = yes; then
8725 echo "$as_me:$LINENO: result: yes" >&5
8726echo "${ECHO_T}yes" >&6
8727 else
8728 echo "$as_me:$LINENO: result: no" >&5
8729echo "${ECHO_T}no" >&6
8730 fi
8731
8732
8733 enablestring=
8734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8735echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8736 no_cache=0
8737 # Check whether --enable-finddlg or --disable-finddlg was given.
8738if test "${enable_finddlg+set}" = set; then
8739 enableval="$enable_finddlg"
8740
8741 if test "$enableval" = yes; then
8742 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8743 else
8744 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8745 fi
8746
8747else
8748
8749 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8750 if test "x$LINE" != x ; then
8751 eval "DEFAULT_$LINE"
8752 else
8753 no_cache=1
8754 fi
8755
8756 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8757
8758fi;
8759
8760 eval "$ac_cv_use_finddlg"
8761 if test "$no_cache" != 1; then
8762 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8763 fi
8764
8765 if test "$wxUSE_FINDREPLDLG" = yes; then
8766 echo "$as_me:$LINENO: result: yes" >&5
8767echo "${ECHO_T}yes" >&6
8768 else
8769 echo "$as_me:$LINENO: result: no" >&5
8770echo "${ECHO_T}no" >&6
8771 fi
8772
8773
8774 enablestring=
8775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8776echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8777 no_cache=0
8778 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8779if test "${enable_fontdlg+set}" = set; then
8780 enableval="$enable_fontdlg"
8781
8782 if test "$enableval" = yes; then
8783 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8784 else
8785 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8786 fi
8787
8788else
8789
8790 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8791 if test "x$LINE" != x ; then
8792 eval "DEFAULT_$LINE"
8793 else
8794 no_cache=1
8795 fi
8796
8797 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8798
8799fi;
8800
8801 eval "$ac_cv_use_fontdlg"
8802 if test "$no_cache" != 1; then
8803 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8804 fi
8805
8806 if test "$wxUSE_FONTDLG" = yes; then
8807 echo "$as_me:$LINENO: result: yes" >&5
8808echo "${ECHO_T}yes" >&6
8809 else
8810 echo "$as_me:$LINENO: result: no" >&5
8811echo "${ECHO_T}no" >&6
8812 fi
8813
8814
8815 enablestring=
8816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8817echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8818 no_cache=0
8819 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8820if test "${enable_dirdlg+set}" = set; then
8821 enableval="$enable_dirdlg"
8822
8823 if test "$enableval" = yes; then
8824 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8825 else
8826 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8827 fi
8828
8829else
8830
8831 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8832 if test "x$LINE" != x ; then
8833 eval "DEFAULT_$LINE"
8834 else
8835 no_cache=1
8836 fi
8837
8838 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8839
8840fi;
8841
8842 eval "$ac_cv_use_dirdlg"
8843 if test "$no_cache" != 1; then
8844 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8845 fi
8846
8847 if test "$wxUSE_DIRDLG" = yes; then
8848 echo "$as_me:$LINENO: result: yes" >&5
8849echo "${ECHO_T}yes" >&6
8850 else
8851 echo "$as_me:$LINENO: result: no" >&5
8852echo "${ECHO_T}no" >&6
8853 fi
8854
8855
8856 enablestring=
8857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8858echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8859 no_cache=0
8860 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8861if test "${enable_msgdlg+set}" = set; then
8862 enableval="$enable_msgdlg"
8863
8864 if test "$enableval" = yes; then
8865 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8866 else
8867 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8868 fi
8869
8870else
8871
8872 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8873 if test "x$LINE" != x ; then
8874 eval "DEFAULT_$LINE"
8875 else
8876 no_cache=1
8877 fi
8878
8879 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8880
8881fi;
8882
8883 eval "$ac_cv_use_msgdlg"
8884 if test "$no_cache" != 1; then
8885 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8886 fi
8887
8888 if test "$wxUSE_MSGDLG" = yes; then
8889 echo "$as_me:$LINENO: result: yes" >&5
8890echo "${ECHO_T}yes" >&6
8891 else
8892 echo "$as_me:$LINENO: result: no" >&5
8893echo "${ECHO_T}no" >&6
8894 fi
8895
8896
8897 enablestring=
8898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8899echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8900 no_cache=0
8901 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8902if test "${enable_numberdlg+set}" = set; then
8903 enableval="$enable_numberdlg"
8904
8905 if test "$enableval" = yes; then
8906 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8907 else
8908 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8909 fi
8910
8911else
8912
8913 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8914 if test "x$LINE" != x ; then
8915 eval "DEFAULT_$LINE"
8916 else
8917 no_cache=1
8918 fi
8919
8920 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8921
8922fi;
8923
8924 eval "$ac_cv_use_numberdlg"
8925 if test "$no_cache" != 1; then
8926 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8927 fi
8928
8929 if test "$wxUSE_NUMBERDLG" = yes; then
8930 echo "$as_me:$LINENO: result: yes" >&5
8931echo "${ECHO_T}yes" >&6
8932 else
8933 echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
8935 fi
8936
8937
8938 enablestring=
8939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8940echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8941 no_cache=0
8942 # Check whether --enable-splash or --disable-splash was given.
8943if test "${enable_splash+set}" = set; then
8944 enableval="$enable_splash"
8945
8946 if test "$enableval" = yes; then
8947 ac_cv_use_splash='wxUSE_SPLASH=yes'
8948 else
8949 ac_cv_use_splash='wxUSE_SPLASH=no'
8950 fi
8951
8952else
8953
8954 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8955 if test "x$LINE" != x ; then
8956 eval "DEFAULT_$LINE"
8957 else
8958 no_cache=1
8959 fi
8960
8961 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8962
8963fi;
8964
8965 eval "$ac_cv_use_splash"
8966 if test "$no_cache" != 1; then
8967 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8968 fi
8969
8970 if test "$wxUSE_SPLASH" = yes; then
8971 echo "$as_me:$LINENO: result: yes" >&5
8972echo "${ECHO_T}yes" >&6
8973 else
8974 echo "$as_me:$LINENO: result: no" >&5
8975echo "${ECHO_T}no" >&6
8976 fi
8977
8978
8979 enablestring=
8980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8981echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8982 no_cache=0
8983 # Check whether --enable-textdlg or --disable-textdlg was given.
8984if test "${enable_textdlg+set}" = set; then
8985 enableval="$enable_textdlg"
8986
8987 if test "$enableval" = yes; then
8988 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8989 else
8990 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8991 fi
8992
8993else
8994
8995 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8996 if test "x$LINE" != x ; then
8997 eval "DEFAULT_$LINE"
8998 else
8999 no_cache=1
9000 fi
9001
9002 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9003
9004fi;
9005
9006 eval "$ac_cv_use_textdlg"
9007 if test "$no_cache" != 1; then
9008 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9009 fi
9010
9011 if test "$wxUSE_TEXTDLG" = yes; then
9012 echo "$as_me:$LINENO: result: yes" >&5
9013echo "${ECHO_T}yes" >&6
9014 else
9015 echo "$as_me:$LINENO: result: no" >&5
9016echo "${ECHO_T}no" >&6
9017 fi
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9025if test "${enable_tipdlg+set}" = set; then
9026 enableval="$enable_tipdlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9030 else
9031 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9044
9045fi;
9046
9047 eval "$ac_cv_use_tipdlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_STARTUP_TIPS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9066if test "${enable_progressdlg+set}" = set; then
9067 enableval="$enable_progressdlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9071 else
9072 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9085
9086fi;
9087
9088 eval "$ac_cv_use_progressdlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_PROGRESSDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9107if test "${enable_wizarddlg+set}" = set; then
9108 enableval="$enable_wizarddlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9112 else
9113 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9126
9127fi;
9128
9129 eval "$ac_cv_use_wizarddlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_WIZARDDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143
9144
9145 enablestring=
9146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9147echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9148 no_cache=0
9149 # Check whether --enable-menus or --disable-menus was given.
9150if test "${enable_menus+set}" = set; then
9151 enableval="$enable_menus"
9152
9153 if test "$enableval" = yes; then
9154 ac_cv_use_menus='wxUSE_MENUS=yes'
9155 else
9156 ac_cv_use_menus='wxUSE_MENUS=no'
9157 fi
9158
9159else
9160
9161 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9162 if test "x$LINE" != x ; then
9163 eval "DEFAULT_$LINE"
9164 else
9165 no_cache=1
9166 fi
9167
9168 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9169
9170fi;
9171
9172 eval "$ac_cv_use_menus"
9173 if test "$no_cache" != 1; then
9174 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9175 fi
9176
9177 if test "$wxUSE_MENUS" = yes; then
9178 echo "$as_me:$LINENO: result: yes" >&5
9179echo "${ECHO_T}yes" >&6
9180 else
9181 echo "$as_me:$LINENO: result: no" >&5
9182echo "${ECHO_T}no" >&6
9183 fi
9184
9185
9186 enablestring=
9187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9188echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9189 no_cache=0
9190 # Check whether --enable-miniframe or --disable-miniframe was given.
9191if test "${enable_miniframe+set}" = set; then
9192 enableval="$enable_miniframe"
9193
9194 if test "$enableval" = yes; then
9195 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9196 else
9197 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9198 fi
9199
9200else
9201
9202 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9203 if test "x$LINE" != x ; then
9204 eval "DEFAULT_$LINE"
9205 else
9206 no_cache=1
9207 fi
9208
9209 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9210
9211fi;
9212
9213 eval "$ac_cv_use_miniframe"
9214 if test "$no_cache" != 1; then
9215 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9216 fi
9217
9218 if test "$wxUSE_MINIFRAME" = yes; then
9219 echo "$as_me:$LINENO: result: yes" >&5
9220echo "${ECHO_T}yes" >&6
9221 else
9222 echo "$as_me:$LINENO: result: no" >&5
9223echo "${ECHO_T}no" >&6
9224 fi
9225
9226
9227 enablestring=
9228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9229echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9230 no_cache=0
9231 # Check whether --enable-tooltips or --disable-tooltips was given.
9232if test "${enable_tooltips+set}" = set; then
9233 enableval="$enable_tooltips"
9234
9235 if test "$enableval" = yes; then
9236 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9237 else
9238 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9239 fi
9240
9241else
9242
9243 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9244 if test "x$LINE" != x ; then
9245 eval "DEFAULT_$LINE"
9246 else
9247 no_cache=1
9248 fi
9249
9250 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9251
9252fi;
9253
9254 eval "$ac_cv_use_tooltips"
9255 if test "$no_cache" != 1; then
9256 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9257 fi
9258
9259 if test "$wxUSE_TOOLTIPS" = yes; then
9260 echo "$as_me:$LINENO: result: yes" >&5
9261echo "${ECHO_T}yes" >&6
9262 else
9263 echo "$as_me:$LINENO: result: no" >&5
9264echo "${ECHO_T}no" >&6
9265 fi
9266
9267
9268 enablestring=
9269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9270echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9271 no_cache=0
9272 # Check whether --enable-splines or --disable-splines was given.
9273if test "${enable_splines+set}" = set; then
9274 enableval="$enable_splines"
9275
9276 if test "$enableval" = yes; then
9277 ac_cv_use_splines='wxUSE_SPLINES=yes'
9278 else
9279 ac_cv_use_splines='wxUSE_SPLINES=no'
9280 fi
9281
9282else
9283
9284 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9285 if test "x$LINE" != x ; then
9286 eval "DEFAULT_$LINE"
9287 else
9288 no_cache=1
9289 fi
9290
9291 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9292
9293fi;
9294
9295 eval "$ac_cv_use_splines"
9296 if test "$no_cache" != 1; then
9297 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9298 fi
9299
9300 if test "$wxUSE_SPLINES" = yes; then
9301 echo "$as_me:$LINENO: result: yes" >&5
9302echo "${ECHO_T}yes" >&6
9303 else
9304 echo "$as_me:$LINENO: result: no" >&5
9305echo "${ECHO_T}no" >&6
9306 fi
9307
9308
9309 enablestring=
9310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9311echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9312 no_cache=0
9313 # Check whether --enable-validators or --disable-validators was given.
9314if test "${enable_validators+set}" = set; then
9315 enableval="$enable_validators"
9316
9317 if test "$enableval" = yes; then
9318 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9319 else
9320 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9321 fi
9322
9323else
9324
9325 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9326 if test "x$LINE" != x ; then
9327 eval "DEFAULT_$LINE"
9328 else
9329 no_cache=1
9330 fi
9331
9332 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9333
9334fi;
9335
9336 eval "$ac_cv_use_validators"
9337 if test "$no_cache" != 1; then
9338 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9339 fi
9340
9341 if test "$wxUSE_VALIDATORS" = yes; then
9342 echo "$as_me:$LINENO: result: yes" >&5
9343echo "${ECHO_T}yes" >&6
9344 else
9345 echo "$as_me:$LINENO: result: no" >&5
9346echo "${ECHO_T}no" >&6
9347 fi
9348
9349
9350 enablestring=
9351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9352echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9353 no_cache=0
9354 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9355if test "${enable_busyinfo+set}" = set; then
9356 enableval="$enable_busyinfo"
9357
9358 if test "$enableval" = yes; then
9359 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9360 else
9361 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9362 fi
9363
9364else
9365
9366 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9367 if test "x$LINE" != x ; then
9368 eval "DEFAULT_$LINE"
9369 else
9370 no_cache=1
9371 fi
9372
9373 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9374
9375fi;
9376
9377 eval "$ac_cv_use_busyinfo"
9378 if test "$no_cache" != 1; then
9379 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9380 fi
9381
9382 if test "$wxUSE_BUSYINFO" = yes; then
9383 echo "$as_me:$LINENO: result: yes" >&5
9384echo "${ECHO_T}yes" >&6
9385 else
9386 echo "$as_me:$LINENO: result: no" >&5
9387echo "${ECHO_T}no" >&6
9388 fi
9389
9390
9391 enablestring=
9392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9393echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9394 no_cache=0
9395 # Check whether --enable-joystick or --disable-joystick was given.
9396if test "${enable_joystick+set}" = set; then
9397 enableval="$enable_joystick"
9398
9399 if test "$enableval" = yes; then
9400 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9401 else
9402 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9403 fi
9404
9405else
9406
9407 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9408 if test "x$LINE" != x ; then
9409 eval "DEFAULT_$LINE"
9410 else
9411 no_cache=1
9412 fi
9413
9414 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9415
9416fi;
9417
9418 eval "$ac_cv_use_joystick"
9419 if test "$no_cache" != 1; then
9420 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9421 fi
9422
9423 if test "$wxUSE_JOYSTICK" = yes; then
9424 echo "$as_me:$LINENO: result: yes" >&5
9425echo "${ECHO_T}yes" >&6
9426 else
9427 echo "$as_me:$LINENO: result: no" >&5
9428echo "${ECHO_T}no" >&6
9429 fi
9430
9431
9432 enablestring=
9433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9434echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9435 no_cache=0
9436 # Check whether --enable-metafile or --disable-metafile was given.
9437if test "${enable_metafile+set}" = set; then
9438 enableval="$enable_metafile"
9439
9440 if test "$enableval" = yes; then
9441 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9442 else
9443 ac_cv_use_metafile='wxUSE_METAFILE=no'
9444 fi
9445
9446else
9447
9448 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9449 if test "x$LINE" != x ; then
9450 eval "DEFAULT_$LINE"
9451 else
9452 no_cache=1
9453 fi
9454
9455 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9456
9457fi;
9458
9459 eval "$ac_cv_use_metafile"
9460 if test "$no_cache" != 1; then
9461 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9462 fi
9463
9464 if test "$wxUSE_METAFILE" = yes; then
9465 echo "$as_me:$LINENO: result: yes" >&5
9466echo "${ECHO_T}yes" >&6
9467 else
9468 echo "$as_me:$LINENO: result: no" >&5
9469echo "${ECHO_T}no" >&6
9470 fi
9471
9472
9473 enablestring=
9474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9475echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9476 no_cache=0
9477 # Check whether --enable-dragimage or --disable-dragimage was given.
9478if test "${enable_dragimage+set}" = set; then
9479 enableval="$enable_dragimage"
9480
9481 if test "$enableval" = yes; then
9482 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9483 else
9484 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9485 fi
9486
9487else
9488
9489 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9490 if test "x$LINE" != x ; then
9491 eval "DEFAULT_$LINE"
9492 else
9493 no_cache=1
9494 fi
9495
9496 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9497
9498fi;
9499
9500 eval "$ac_cv_use_dragimage"
9501 if test "$no_cache" != 1; then
9502 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9503 fi
9504
9505 if test "$wxUSE_DRAGIMAGE" = yes; then
9506 echo "$as_me:$LINENO: result: yes" >&5
9507echo "${ECHO_T}yes" >&6
9508 else
9509 echo "$as_me:$LINENO: result: no" >&5
9510echo "${ECHO_T}no" >&6
9511 fi
9512
9513
9514 enablestring=
9515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9516echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9517 no_cache=0
9518 # Check whether --enable-accessibility or --disable-accessibility was given.
9519if test "${enable_accessibility+set}" = set; then
9520 enableval="$enable_accessibility"
9521
9522 if test "$enableval" = yes; then
9523 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9524 else
9525 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9526 fi
9527
9528else
9529
9530 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9531 if test "x$LINE" != x ; then
9532 eval "DEFAULT_$LINE"
9533 else
9534 no_cache=1
9535 fi
9536
9537 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9538
9539fi;
9540
9541 eval "$ac_cv_use_accessibility"
9542 if test "$no_cache" != 1; then
9543 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9544 fi
9545
9546 if test "$wxUSE_ACCESSIBILITY" = yes; then
9547 echo "$as_me:$LINENO: result: yes" >&5
9548echo "${ECHO_T}yes" >&6
9549 else
9550 echo "$as_me:$LINENO: result: no" >&5
9551echo "${ECHO_T}no" >&6
9552 fi
9553
9554
9555
9556
9557 enablestring=
9558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9559echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9560 no_cache=0
9561 # Check whether --enable-palette or --disable-palette was given.
9562if test "${enable_palette+set}" = set; then
9563 enableval="$enable_palette"
9564
9565 if test "$enableval" = yes; then
9566 ac_cv_use_palette='wxUSE_PALETTE=yes'
9567 else
9568 ac_cv_use_palette='wxUSE_PALETTE=no'
9569 fi
9570
9571else
9572
9573 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9574 if test "x$LINE" != x ; then
9575 eval "DEFAULT_$LINE"
9576 else
9577 no_cache=1
9578 fi
9579
9580 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9581
9582fi;
9583
9584 eval "$ac_cv_use_palette"
9585 if test "$no_cache" != 1; then
9586 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9587 fi
9588
9589 if test "$wxUSE_PALETTE" = yes; then
9590 echo "$as_me:$LINENO: result: yes" >&5
9591echo "${ECHO_T}yes" >&6
9592 else
9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
9595 fi
9596
9597
9598 enablestring=
9599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9600echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9601 no_cache=0
9602 # Check whether --enable-image or --disable-image was given.
9603if test "${enable_image+set}" = set; then
9604 enableval="$enable_image"
9605
9606 if test "$enableval" = yes; then
9607 ac_cv_use_image='wxUSE_IMAGE=yes'
9608 else
9609 ac_cv_use_image='wxUSE_IMAGE=no'
9610 fi
9611
9612else
9613
9614 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9615 if test "x$LINE" != x ; then
9616 eval "DEFAULT_$LINE"
9617 else
9618 no_cache=1
9619 fi
9620
9621 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9622
9623fi;
9624
9625 eval "$ac_cv_use_image"
9626 if test "$no_cache" != 1; then
9627 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9628 fi
9629
9630 if test "$wxUSE_IMAGE" = yes; then
9631 echo "$as_me:$LINENO: result: yes" >&5
9632echo "${ECHO_T}yes" >&6
9633 else
9634 echo "$as_me:$LINENO: result: no" >&5
9635echo "${ECHO_T}no" >&6
9636 fi
9637
9638
9639 enablestring=
9640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9641echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9642 no_cache=0
9643 # Check whether --enable-gif or --disable-gif was given.
9644if test "${enable_gif+set}" = set; then
9645 enableval="$enable_gif"
9646
9647 if test "$enableval" = yes; then
9648 ac_cv_use_gif='wxUSE_GIF=yes'
9649 else
9650 ac_cv_use_gif='wxUSE_GIF=no'
9651 fi
9652
9653else
9654
9655 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9656 if test "x$LINE" != x ; then
9657 eval "DEFAULT_$LINE"
9658 else
9659 no_cache=1
9660 fi
9661
9662 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9663
9664fi;
9665
9666 eval "$ac_cv_use_gif"
9667 if test "$no_cache" != 1; then
9668 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9669 fi
9670
9671 if test "$wxUSE_GIF" = yes; then
9672 echo "$as_me:$LINENO: result: yes" >&5
9673echo "${ECHO_T}yes" >&6
9674 else
9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
9677 fi
9678
9679
9680 enablestring=
9681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9682echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9683 no_cache=0
9684 # Check whether --enable-pcx or --disable-pcx was given.
9685if test "${enable_pcx+set}" = set; then
9686 enableval="$enable_pcx"
9687
9688 if test "$enableval" = yes; then
9689 ac_cv_use_pcx='wxUSE_PCX=yes'
9690 else
9691 ac_cv_use_pcx='wxUSE_PCX=no'
9692 fi
9693
9694else
9695
9696 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9697 if test "x$LINE" != x ; then
9698 eval "DEFAULT_$LINE"
9699 else
9700 no_cache=1
9701 fi
9702
9703 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9704
9705fi;
9706
9707 eval "$ac_cv_use_pcx"
9708 if test "$no_cache" != 1; then
9709 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9710 fi
9711
9712 if test "$wxUSE_PCX" = yes; then
9713 echo "$as_me:$LINENO: result: yes" >&5
9714echo "${ECHO_T}yes" >&6
9715 else
9716 echo "$as_me:$LINENO: result: no" >&5
9717echo "${ECHO_T}no" >&6
9718 fi
9719
9720
9721 enablestring=
9722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9723echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9724 no_cache=0
9725 # Check whether --enable-iff or --disable-iff was given.
9726if test "${enable_iff+set}" = set; then
9727 enableval="$enable_iff"
9728
9729 if test "$enableval" = yes; then
9730 ac_cv_use_iff='wxUSE_IFF=yes'
9731 else
9732 ac_cv_use_iff='wxUSE_IFF=no'
9733 fi
9734
9735else
9736
9737 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9738 if test "x$LINE" != x ; then
9739 eval "DEFAULT_$LINE"
9740 else
9741 no_cache=1
9742 fi
9743
9744 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9745
9746fi;
9747
9748 eval "$ac_cv_use_iff"
9749 if test "$no_cache" != 1; then
9750 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9751 fi
9752
9753 if test "$wxUSE_IFF" = yes; then
9754 echo "$as_me:$LINENO: result: yes" >&5
9755echo "${ECHO_T}yes" >&6
9756 else
9757 echo "$as_me:$LINENO: result: no" >&5
9758echo "${ECHO_T}no" >&6
9759 fi
9760
9761
9762 enablestring=
9763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9764echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9765 no_cache=0
9766 # Check whether --enable-pnm or --disable-pnm was given.
9767if test "${enable_pnm+set}" = set; then
9768 enableval="$enable_pnm"
9769
9770 if test "$enableval" = yes; then
9771 ac_cv_use_pnm='wxUSE_PNM=yes'
9772 else
9773 ac_cv_use_pnm='wxUSE_PNM=no'
9774 fi
9775
9776else
9777
9778 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9779 if test "x$LINE" != x ; then
9780 eval "DEFAULT_$LINE"
9781 else
9782 no_cache=1
9783 fi
9784
9785 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9786
9787fi;
9788
9789 eval "$ac_cv_use_pnm"
9790 if test "$no_cache" != 1; then
9791 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9792 fi
9793
9794 if test "$wxUSE_PNM" = yes; then
9795 echo "$as_me:$LINENO: result: yes" >&5
9796echo "${ECHO_T}yes" >&6
9797 else
9798 echo "$as_me:$LINENO: result: no" >&5
9799echo "${ECHO_T}no" >&6
9800 fi
9801
9802
9803 enablestring=
9804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9805echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9806 no_cache=0
9807 # Check whether --enable-xpm or --disable-xpm was given.
9808if test "${enable_xpm+set}" = set; then
9809 enableval="$enable_xpm"
9810
9811 if test "$enableval" = yes; then
9812 ac_cv_use_xpm='wxUSE_XPM=yes'
9813 else
9814 ac_cv_use_xpm='wxUSE_XPM=no'
9815 fi
9816
9817else
9818
9819 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9820 if test "x$LINE" != x ; then
9821 eval "DEFAULT_$LINE"
9822 else
9823 no_cache=1
9824 fi
9825
9826 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9827
9828fi;
9829
9830 eval "$ac_cv_use_xpm"
9831 if test "$no_cache" != 1; then
9832 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9833 fi
9834
9835 if test "$wxUSE_XPM" = yes; then
9836 echo "$as_me:$LINENO: result: yes" >&5
9837echo "${ECHO_T}yes" >&6
9838 else
9839 echo "$as_me:$LINENO: result: no" >&5
9840echo "${ECHO_T}no" >&6
9841 fi
9842
9843
9844 enablestring=
9845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9846echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9847 no_cache=0
9848 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9849if test "${enable_ico_cur+set}" = set; then
9850 enableval="$enable_ico_cur"
9851
9852 if test "$enableval" = yes; then
9853 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9854 else
9855 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9856 fi
9857
9858else
9859
9860 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9861 if test "x$LINE" != x ; then
9862 eval "DEFAULT_$LINE"
9863 else
9864 no_cache=1
9865 fi
9866
9867 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9868
9869fi;
9870
9871 eval "$ac_cv_use_ico_cur"
9872 if test "$no_cache" != 1; then
9873 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9874 fi
9875
9876 if test "$wxUSE_ICO_CUR" = yes; then
9877 echo "$as_me:$LINENO: result: yes" >&5
9878echo "${ECHO_T}yes" >&6
9879 else
9880 echo "$as_me:$LINENO: result: no" >&5
9881echo "${ECHO_T}no" >&6
9882 fi
9883
9884
9885fi
9886
9887
9888
9889 enablestring=
9890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9891echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9892 no_cache=0
9893 # Check whether --enable-official_build or --disable-official_build was given.
9894if test "${enable_official_build+set}" = set; then
9895 enableval="$enable_official_build"
9896
9897 if test "$enableval" = yes; then
9898 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9899 else
9900 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9901 fi
9902
9903else
9904
9905 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9906 if test "x$LINE" != x ; then
9907 eval "DEFAULT_$LINE"
9908 else
9909 no_cache=1
9910 fi
9911
9912 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9913
9914fi;
9915
9916 eval "$ac_cv_use_official_build"
9917 if test "$no_cache" != 1; then
9918 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9919 fi
9920
9921 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9922 echo "$as_me:$LINENO: result: yes" >&5
9923echo "${ECHO_T}yes" >&6
9924 else
9925 echo "$as_me:$LINENO: result: no" >&5
9926echo "${ECHO_T}no" >&6
9927 fi
9928
9929# Check whether --enable-vendor or --disable-vendor was given.
9930if test "${enable_vendor+set}" = set; then
9931 enableval="$enable_vendor"
9932 VENDOR="$enableval"
9933fi;
9934if test "x$VENDOR" = "x"; then
9935 VENDOR="custom"
9936fi
9937
9938case "${host}" in
9939 *-pc-os2_emx | *-pc-os2-emx )
9940 PATH_IFS=';'
a848cd7e
SC
9941 ;;
9942 *)
9943 PATH_IFS=':'
9944 ;;
9945esac
9946
9947
9948
9949 echo "saving argument cache $wx_arg_cache_file"
9950 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9951
9952
9953
9954echo "$as_me:$LINENO: checking for toolkit" >&5
9955echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9956
9957# In Wine, we need to default to MSW, not GTK or MOTIF
9958if test "$wxUSE_WINE" = "yes"; then
9959 DEFAULT_DEFAULT_wxUSE_GTK=0
9960 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9961 DEFAULT_DEFAULT_wxUSE_MSW=1
9962 wxUSE_SHARED=no
9963fi
9964
9965if test "$wxUSE_GUI" = "yes"; then
9966
9967 if test "$USE_BEOS" = 1; then
9968 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9969echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9970 { (exit 1); exit 1; }; }
9971 fi
9972
9973 if test "$TOOLKIT_GIVEN" = 1; then
9974 for toolkit in `echo $ALL_TOOLKITS`; do
9975 var=wxUSE_$toolkit
9976 eval "value=\$${var}"
9977 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9978 done
9979 else
9980 for toolkit in `echo $ALL_TOOLKITS`; do
9981 if test "$has_toolkit_in_cache" != 1; then
9982 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9983 else
9984 var=DEFAULT_wxUSE_$toolkit
9985 fi
9986 eval "wxUSE_$toolkit=\$${var}"
9987 done
9988 fi
9989
9990 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9991 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9992 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9993
9994 case "${host}" in
9995 *-pc-os2_emx | *-pc-os2-emx )
9996 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9997 esac
9998
9999 case "$NUM_TOOLKITS" in
10000 1)
10001 ;;
10002 0)
10003 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10004echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10005 { (exit 1); exit 1; }; }
10006 ;;
10007 *)
10008 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10009echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10010 { (exit 1); exit 1; }; }
10011 esac
10012
10013 for toolkit in `echo $ALL_TOOLKITS`; do
10014 var=wxUSE_$toolkit
10015 eval "value=\$${var}"
10016 if test "x$value" != x; then
10017 cache_var=CACHE_$toolkit
10018 eval "cache=\$${cache_var}"
10019 if test "$cache" = 1; then
10020 echo "$var=$value" >> ${wx_arg_cache_file}
10021 fi
10022 if test "$value" = 1; then
10023 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10024 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10025echo "${ECHO_T}$toolkit_echo" >&6
10026 fi
10027 fi
10028 done
10029else
10030 if test "x$host_alias" != "x"; then
10031 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10032echo "${ECHO_T}base ($host_alias hosted) only" >&6
10033 else
10034 echo "$as_me:$LINENO: result: base only" >&5
10035echo "${ECHO_T}base only" >&6
10036 fi
10037fi
10038
10039wants_win32=0
10040doesnt_want_win32=0
10041case "${host}" in
10042 *-*-cygwin*)
10043 if test "$wxUSE_MSW" = 1 ; then
10044 wants_win32=1
10045 else
10046 doesnt_want_win32=1
10047 fi
10048 ;;
10049 *-*-mingw*)
10050 wants_win32=1
10051 ;;
10052esac
10053
10054if test "$wxUSE_WINE" = "yes"; then
10055 wants_win32=1
10056 CC=winegcc
10057 CXX=wineg++
10058 RESCOMP=wrc
10059 LDFLAGS_GUI="-mwindows"
10060fi
10061
10062if test "$wants_win32" = 1 ; then
10063 USE_UNIX=0
10064 USE_WIN32=1
10065 cat >>confdefs.h <<\_ACEOF
10066#define __WIN32__ 1
10067_ACEOF
10068
10069 cat >>confdefs.h <<\_ACEOF
10070#define __WIN95__ 1
10071_ACEOF
10072
10073 cat >>confdefs.h <<\_ACEOF
10074#define __WINDOWS__ 1
10075_ACEOF
10076
10077 cat >>confdefs.h <<\_ACEOF
10078#define __GNUWIN32__ 1
10079_ACEOF
10080
10081 cat >>confdefs.h <<\_ACEOF
10082#define STRICT 1
10083_ACEOF
10084
10085 cat >>confdefs.h <<\_ACEOF
10086#define WINVER 0x0400
10087_ACEOF
10088
10089fi
10090if test "$doesnt_want_win32" = 1 ; then
10091 USE_UNIX=1
10092 USE_WIN32=0
10093fi
10094
10095if test "$USE_UNIX" = 1 ; then
10096 wxUSE_UNIX=yes
10097 cat >>confdefs.h <<\_ACEOF
10098#define __UNIX__ 1
10099_ACEOF
10100
10101fi
10102
10103
10104cat >confcache <<\_ACEOF
10105# This file is a shell script that caches the results of configure
10106# tests run on this system so they can be shared between configure
10107# scripts and configure runs, see configure's option --config-cache.
10108# It is not useful on other systems. If it contains results you don't
10109# want to keep, you may remove or edit it.
10110#
10111# config.status only pays attention to the cache file if you give it
10112# the --recheck option to rerun configure.
10113#
10114# `ac_cv_env_foo' variables (set or unset) will be overridden when
10115# loading this file, other *unset* `ac_cv_foo' will be assigned the
10116# following values.
10117
10118_ACEOF
10119
10120# The following way of writing the cache mishandles newlines in values,
10121# but we know of no workaround that is simple, portable, and efficient.
10122# So, don't put newlines in cache variables' values.
10123# Ultrix sh set writes to stderr and can't be redirected directly,
10124# and sets the high bit in the cache file unless we assign to the vars.
10125{
10126 (set) 2>&1 |
10127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10128 *ac_space=\ *)
10129 # `set' does not quote correctly, so add quotes (double-quote
10130 # substitution turns \\\\ into \\, and sed turns \\ into \).
10131 sed -n \
ac1cb8d3
VS
10132 "s/'/'\\\\''/g;
10133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10134 ;;
10135 *)
10136 # `set' quotes correctly as required by POSIX, so do not add quotes.
10137 sed -n \
ac1cb8d3 10138 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10139 ;;
10140 esac;
10141} |
10142 sed '
10143 t clear
10144 : clear
10145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10146 t end
10147 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10148 : end' >>confcache
10149if diff $cache_file confcache >/dev/null 2>&1; then :; else
10150 if test -w $cache_file; then
10151 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10152 cat confcache >$cache_file
10153 else
10154 echo "not updating unwritable cache $cache_file"
10155 fi
10156fi
10157rm -f confcache
10158
10159if test "$build" != "$host" ; then
10160 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10161 CC=$host_alias-gcc
10162 CXX=$host_alias-c++
10163 AR=$host_alias-ar
10164 RANLIB=$host_alias-ranlib
10165 DLLTOOL=$host_alias-dlltool
10166 RESCOMP=$host_alias-windres
10167 LD=$host_alias-ld
10168 NM=$host_alias-nm
10169 STRIP=$host_alias-strip
10170 else
10171 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10172echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10173 { (exit 1); exit 1; }; }
10174 fi
10175fi
10176
10177CFLAGS=${CFLAGS:=}
10178ac_ext=c
10179ac_cpp='$CPP $CPPFLAGS'
10180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183if test -n "$ac_tool_prefix"; then
10184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10185set dummy ${ac_tool_prefix}gcc; ac_word=$2
10186echo "$as_me:$LINENO: checking for $ac_word" >&5
10187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10188if test "${ac_cv_prog_CC+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190else
10191 if test -n "$CC"; then
10192 ac_cv_prog_CC="$CC" # Let the user override the test.
10193else
10194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195for as_dir in $PATH
10196do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205done
10206done
10207
10208fi
10209fi
10210CC=$ac_cv_prog_CC
10211if test -n "$CC"; then
10212 echo "$as_me:$LINENO: result: $CC" >&5
10213echo "${ECHO_T}$CC" >&6
10214else
10215 echo "$as_me:$LINENO: result: no" >&5
10216echo "${ECHO_T}no" >&6
10217fi
10218
10219fi
10220if test -z "$ac_cv_prog_CC"; then
10221 ac_ct_CC=$CC
10222 # Extract the first word of "gcc", so it can be a program name with args.
10223set dummy gcc; ac_word=$2
10224echo "$as_me:$LINENO: checking for $ac_word" >&5
10225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10226if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228else
10229 if test -n "$ac_ct_CC"; then
10230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10231else
10232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233for as_dir in $PATH
10234do
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10239 ac_cv_prog_ac_ct_CC="gcc"
10240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 break 2
10242 fi
10243done
10244done
10245
10246fi
10247fi
10248ac_ct_CC=$ac_cv_prog_ac_ct_CC
10249if test -n "$ac_ct_CC"; then
10250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10251echo "${ECHO_T}$ac_ct_CC" >&6
10252else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255fi
10256
10257 CC=$ac_ct_CC
10258else
10259 CC="$ac_cv_prog_CC"
10260fi
10261
10262if test -z "$CC"; then
10263 if test -n "$ac_tool_prefix"; then
10264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10265set dummy ${ac_tool_prefix}cc; ac_word=$2
10266echo "$as_me:$LINENO: checking for $ac_word" >&5
10267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10268if test "${ac_cv_prog_CC+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271 if test -n "$CC"; then
10272 ac_cv_prog_CC="$CC" # Let the user override the test.
10273else
10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281 ac_cv_prog_CC="${ac_tool_prefix}cc"
10282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10284 fi
10285done
10286done
10287
10288fi
10289fi
10290CC=$ac_cv_prog_CC
10291if test -n "$CC"; then
10292 echo "$as_me:$LINENO: result: $CC" >&5
10293echo "${ECHO_T}$CC" >&6
10294else
10295 echo "$as_me:$LINENO: result: no" >&5
10296echo "${ECHO_T}no" >&6
10297fi
10298
10299fi
10300if test -z "$ac_cv_prog_CC"; then
10301 ac_ct_CC=$CC
10302 # Extract the first word of "cc", so it can be a program name with args.
10303set dummy cc; ac_word=$2
10304echo "$as_me:$LINENO: checking for $ac_word" >&5
10305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10306if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 if test -n "$ac_ct_CC"; then
10310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10311else
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10319 ac_cv_prog_ac_ct_CC="cc"
10320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323done
10324done
10325
10326fi
10327fi
10328ac_ct_CC=$ac_cv_prog_ac_ct_CC
10329if test -n "$ac_ct_CC"; then
10330 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10331echo "${ECHO_T}$ac_ct_CC" >&6
10332else
10333 echo "$as_me:$LINENO: result: no" >&5
10334echo "${ECHO_T}no" >&6
10335fi
10336
10337 CC=$ac_ct_CC
10338else
10339 CC="$ac_cv_prog_CC"
10340fi
10341
10342fi
10343if test -z "$CC"; then
10344 # Extract the first word of "cc", so it can be a program name with args.
10345set dummy cc; ac_word=$2
10346echo "$as_me:$LINENO: checking for $ac_word" >&5
10347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348if test "${ac_cv_prog_CC+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351 if test -n "$CC"; then
10352 ac_cv_prog_CC="$CC" # Let the user override the test.
10353else
10354 ac_prog_rejected=no
10355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356for as_dir in $PATH
10357do
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10363 ac_prog_rejected=yes
10364 continue
10365 fi
10366 ac_cv_prog_CC="cc"
10367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 break 2
10369 fi
10370done
10371done
10372
10373if test $ac_prog_rejected = yes; then
10374 # We found a bogon in the path, so make sure we never use it.
10375 set dummy $ac_cv_prog_CC
10376 shift
10377 if test $# != 0; then
10378 # We chose a different compiler from the bogus one.
10379 # However, it has the same basename, so the bogon will be chosen
10380 # first if we set CC to just the basename; use the full file name.
10381 shift
10382 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10383 fi
10384fi
10385fi
10386fi
10387CC=$ac_cv_prog_CC
10388if test -n "$CC"; then
10389 echo "$as_me:$LINENO: result: $CC" >&5
10390echo "${ECHO_T}$CC" >&6
10391else
10392 echo "$as_me:$LINENO: result: no" >&5
10393echo "${ECHO_T}no" >&6
10394fi
10395
10396fi
10397if test -z "$CC"; then
10398 if test -n "$ac_tool_prefix"; then
10399 for ac_prog in cl
10400 do
10401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10402set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10403echo "$as_me:$LINENO: checking for $ac_word" >&5
10404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10405if test "${ac_cv_prog_CC+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407else
10408 if test -n "$CC"; then
10409 ac_cv_prog_CC="$CC" # Let the user override the test.
10410else
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10421 fi
10422done
10423done
10424
10425fi
10426fi
10427CC=$ac_cv_prog_CC
10428if test -n "$CC"; then
10429 echo "$as_me:$LINENO: result: $CC" >&5
10430echo "${ECHO_T}$CC" >&6
10431else
10432 echo "$as_me:$LINENO: result: no" >&5
10433echo "${ECHO_T}no" >&6
10434fi
10435
10436 test -n "$CC" && break
10437 done
10438fi
10439if test -z "$CC"; then
10440 ac_ct_CC=$CC
10441 for ac_prog in cl
10442do
10443 # Extract the first word of "$ac_prog", so it can be a program name with args.
10444set dummy $ac_prog; ac_word=$2
10445echo "$as_me:$LINENO: checking for $ac_word" >&5
10446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450 if test -n "$ac_ct_CC"; then
10451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10452else
10453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_ac_ct_CC="$ac_prog"
10461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464done
10465done
10466
10467fi
10468fi
10469ac_ct_CC=$ac_cv_prog_ac_ct_CC
10470if test -n "$ac_ct_CC"; then
10471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10472echo "${ECHO_T}$ac_ct_CC" >&6
10473else
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476fi
10477
10478 test -n "$ac_ct_CC" && break
10479done
10480
10481 CC=$ac_ct_CC
10482fi
10483
10484fi
10485
10486
10487test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10488See \`config.log' for more details." >&5
10489echo "$as_me: error: no acceptable C compiler found in \$PATH
10490See \`config.log' for more details." >&2;}
10491 { (exit 1); exit 1; }; }
10492
10493# Provide some information about the compiler.
10494echo "$as_me:$LINENO:" \
10495 "checking for C compiler version" >&5
10496ac_compiler=`set X $ac_compile; echo $2`
10497{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10498 (eval $ac_compiler --version </dev/null >&5) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }
10502{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10503 (eval $ac_compiler -v </dev/null >&5) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }
10507{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10508 (eval $ac_compiler -V </dev/null >&5) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }
10512
10513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
10519
10520int
10521main ()
10522{
10523
10524 ;
10525 return 0;
10526}
10527_ACEOF
10528ac_clean_files_save=$ac_clean_files
10529ac_clean_files="$ac_clean_files a.out a.exe b.out"
10530# Try to create an executable without -o first, disregard a.out.
10531# It will help us diagnose broken compilers, and finding out an intuition
10532# of exeext.
ac1cb8d3
VS
10533echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10534echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10535ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10536if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10537 (eval $ac_link_default) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; then
10541 # Find the output, starting from the most likely. This scheme is
10542# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10543# resort.
10544
10545# Be careful to initialize this variable, since it used to be cached.
10546# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10547ac_cv_exeext=
10548# b.out is created by i960 compilers.
10549for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10550do
10551 test -f "$ac_file" || continue
10552 case $ac_file in
10553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10554 ;;
a848cd7e 10555 conftest.$ac_ext )
ac1cb8d3
VS
10556 # This is the source file.
10557 ;;
a848cd7e 10558 [ab].out )
ac1cb8d3
VS
10559 # We found the default executable, but exeext='' is most
10560 # certainly right.
10561 break;;
a848cd7e 10562 *.* )
ac1cb8d3
VS
10563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10564 # FIXME: I believe we export ac_cv_exeext for Libtool,
10565 # but it would be cool to find out if it's true. Does anybody
10566 # maintain Libtool? --akim.
10567 export ac_cv_exeext
10568 break;;
a848cd7e 10569 * )
ac1cb8d3 10570 break;;
a848cd7e
SC
10571 esac
10572done
10573else
10574 echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
10577{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10578See \`config.log' for more details." >&5
10579echo "$as_me: error: C compiler cannot create executables
10580See \`config.log' for more details." >&2;}
10581 { (exit 77); exit 77; }; }
10582fi
10583
10584ac_exeext=$ac_cv_exeext
10585echo "$as_me:$LINENO: result: $ac_file" >&5
10586echo "${ECHO_T}$ac_file" >&6
10587
10588# Check the compiler produces executables we can run. If not, either
10589# the compiler is broken, or we cross compile.
10590echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10591echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10592# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10593# If not cross compiling, check that we can run a simple program.
10594if test "$cross_compiling" != yes; then
10595 if { ac_try='./$ac_file'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 cross_compiling=no
10602 else
10603 if test "$cross_compiling" = maybe; then
10604 cross_compiling=yes
10605 else
10606 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10607If you meant to cross compile, use \`--host'.
10608See \`config.log' for more details." >&5
10609echo "$as_me: error: cannot run C compiled programs.
10610If you meant to cross compile, use \`--host'.
10611See \`config.log' for more details." >&2;}
10612 { (exit 1); exit 1; }; }
10613 fi
10614 fi
10615fi
10616echo "$as_me:$LINENO: result: yes" >&5
10617echo "${ECHO_T}yes" >&6
10618
10619rm -f a.out a.exe conftest$ac_cv_exeext b.out
10620ac_clean_files=$ac_clean_files_save
10621# Check the compiler produces executables we can run. If not, either
10622# the compiler is broken, or we cross compile.
10623echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10624echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10625echo "$as_me:$LINENO: result: $cross_compiling" >&5
10626echo "${ECHO_T}$cross_compiling" >&6
10627
10628echo "$as_me:$LINENO: checking for suffix of executables" >&5
10629echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; then
10635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10636# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10637# work properly (i.e., refer to `conftest.exe'), while it won't with
10638# `rm'.
10639for ac_file in conftest.exe conftest conftest.*; do
10640 test -f "$ac_file" || continue
10641 case $ac_file in
10642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10644 export ac_cv_exeext
10645 break;;
a848cd7e
SC
10646 * ) break;;
10647 esac
10648done
10649else
10650 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10651See \`config.log' for more details." >&5
10652echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10653See \`config.log' for more details." >&2;}
10654 { (exit 1); exit 1; }; }
10655fi
10656
10657rm -f conftest$ac_cv_exeext
10658echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10659echo "${ECHO_T}$ac_cv_exeext" >&6
10660
10661rm -f conftest.$ac_ext
10662EXEEXT=$ac_cv_exeext
10663ac_exeext=$EXEEXT
10664echo "$as_me:$LINENO: checking for suffix of object files" >&5
10665echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10666if test "${ac_cv_objext+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668else
10669 cat >conftest.$ac_ext <<_ACEOF
10670/* confdefs.h. */
10671_ACEOF
10672cat confdefs.h >>conftest.$ac_ext
10673cat >>conftest.$ac_ext <<_ACEOF
10674/* end confdefs.h. */
10675
10676int
10677main ()
10678{
10679
10680 ;
10681 return 0;
10682}
10683_ACEOF
10684rm -f conftest.o conftest.obj
10685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10686 (eval $ac_compile) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; then
10690 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10691 case $ac_file in
10692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10694 break;;
10695 esac
10696done
10697else
10698 echo "$as_me: failed program was:" >&5
10699sed 's/^/| /' conftest.$ac_ext >&5
10700
10701{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10702See \`config.log' for more details." >&5
10703echo "$as_me: error: cannot compute suffix of object files: cannot compile
10704See \`config.log' for more details." >&2;}
10705 { (exit 1); exit 1; }; }
10706fi
10707
10708rm -f conftest.$ac_cv_objext conftest.$ac_ext
10709fi
10710echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10711echo "${ECHO_T}$ac_cv_objext" >&6
10712OBJEXT=$ac_cv_objext
10713ac_objext=$OBJEXT
10714echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10715echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10716if test "${ac_cv_c_compiler_gnu+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718else
10719 cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
10725
10726int
10727main ()
10728{
10729#ifndef __GNUC__
10730 choke me
10731#endif
10732
10733 ;
10734 return 0;
10735}
10736_ACEOF
10737rm -f conftest.$ac_objext
10738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10739 (eval $ac_compile) 2>conftest.er1
a848cd7e 10740 ac_status=$?
ac1cb8d3
VS
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
a848cd7e
SC
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
224bf05c 10746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); } &&
224bf05c 10804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; } &&
10810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_cv_prog_cc_g=yes
10817else
10818 echo "$as_me: failed program was:" >&5
10819sed 's/^/| /' conftest.$ac_ext >&5
10820
10821ac_cv_prog_cc_g=no
10822fi
ac1cb8d3 10823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10824fi
10825echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10826echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10827if test "$ac_test_CFLAGS" = set; then
10828 CFLAGS=$ac_save_CFLAGS
10829elif test $ac_cv_prog_cc_g = yes; then
10830 if test "$GCC" = yes; then
10831 CFLAGS="-g -O2"
10832 else
10833 CFLAGS="-g"
10834 fi
10835else
10836 if test "$GCC" = yes; then
10837 CFLAGS="-O2"
10838 else
10839 CFLAGS=
10840 fi
10841fi
10842echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10843echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10844if test "${ac_cv_prog_cc_stdc+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10846else
10847 ac_cv_prog_cc_stdc=no
10848ac_save_CC=$CC
10849cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
10855#include <stdarg.h>
10856#include <stdio.h>
10857#include <sys/types.h>
10858#include <sys/stat.h>
10859/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10860struct buf { int x; };
10861FILE * (*rcsopen) (struct buf *, struct stat *, int);
10862static char *e (p, i)
10863 char **p;
10864 int i;
10865{
10866 return p[i];
10867}
10868static char *f (char * (*g) (char **, int), char **p, ...)
10869{
10870 char *s;
10871 va_list v;
10872 va_start (v,p);
10873 s = g (p, va_arg (v,int));
10874 va_end (v);
10875 return s;
10876}
ac1cb8d3
VS
10877
10878/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10879 function prototypes and stuff, but not '\xHH' hex character constants.
10880 These don't provoke an error unfortunately, instead are silently treated
10881 as 'x'. The following induces an error, until -std1 is added to get
10882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10883 array size at least. It's necessary to write '\x00'==0 to get something
10884 that's true only with -std1. */
10885int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10886
a848cd7e
SC
10887int test (int i, double x);
10888struct s1 {int (*f) (int a);};
10889struct s2 {int (*f) (double a);};
10890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10891int argc;
10892char **argv;
10893int
10894main ()
10895{
10896return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10897 ;
10898 return 0;
10899}
10900_ACEOF
10901# Don't try gcc -ansi; that turns off useful extensions and
10902# breaks some systems' header files.
10903# AIX -qlanglvl=ansi
10904# Ultrix and OSF/1 -std1
10905# HP-UX 10.20 and later -Ae
10906# HP-UX older versions -Aa -D_HPUX_SOURCE
10907# SVR4 -Xc -D__EXTENSIONS__
10908for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10909do
10910 CC="$ac_save_CC $ac_arg"
10911 rm -f conftest.$ac_objext
10912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10913 (eval $ac_compile) 2>conftest.er1
a848cd7e 10914 ac_status=$?
ac1cb8d3
VS
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
a848cd7e
SC
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
224bf05c 10920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; } &&
10926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 ac_cv_prog_cc_stdc=$ac_arg
10933break
10934else
10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938fi
ac1cb8d3 10939rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
10940done
10941rm -f conftest.$ac_ext conftest.$ac_objext
10942CC=$ac_save_CC
10943
10944fi
10945
10946case "x$ac_cv_prog_cc_stdc" in
10947 x|xno)
10948 echo "$as_me:$LINENO: result: none needed" >&5
10949echo "${ECHO_T}none needed" >&6 ;;
10950 *)
10951 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10952echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10953 CC="$CC $ac_cv_prog_cc_stdc" ;;
10954esac
10955
10956# Some people use a C++ compiler to compile C. Since we use `exit',
10957# in C++ we need to declare it. In case someone uses the same compiler
10958# for both compiling C and C++ we need to have the C++ compiler decide
10959# the declaration of exit, since it's the most demanding environment.
10960cat >conftest.$ac_ext <<_ACEOF
10961#ifndef __cplusplus
10962 choke me
10963#endif
10964_ACEOF
10965rm -f conftest.$ac_objext
10966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10967 (eval $ac_compile) 2>conftest.er1
a848cd7e 10968 ac_status=$?
ac1cb8d3
VS
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
a848cd7e
SC
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
224bf05c 10974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; } &&
10980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; }; then
10986 for ac_declaration in \
ac1cb8d3 10987 '' \
a848cd7e
SC
10988 'extern "C" void std::exit (int) throw (); using std::exit;' \
10989 'extern "C" void std::exit (int); using std::exit;' \
10990 'extern "C" void exit (int) throw ();' \
10991 'extern "C" void exit (int);' \
10992 'void exit (int);'
10993do
10994 cat >conftest.$ac_ext <<_ACEOF
10995/* confdefs.h. */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
10999/* end confdefs.h. */
de59c161 11000$ac_declaration
ac1cb8d3 11001#include <stdlib.h>
a848cd7e
SC
11002int
11003main ()
11004{
11005exit (42);
11006 ;
11007 return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext
11011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11012 (eval $ac_compile) 2>conftest.er1
a848cd7e 11013 ac_status=$?
ac1cb8d3
VS
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
a848cd7e
SC
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
224bf05c 11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 :
11032else
11033 echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036continue
11037fi
ac1cb8d3 11038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11039 cat >conftest.$ac_ext <<_ACEOF
11040/* confdefs.h. */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h. */
11045$ac_declaration
11046int
11047main ()
11048{
11049exit (42);
11050 ;
11051 return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext
11055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11056 (eval $ac_compile) 2>conftest.er1
a848cd7e 11057 ac_status=$?
ac1cb8d3
VS
11058 grep -v '^ *+' conftest.er1 >conftest.err
11059 rm -f conftest.er1
11060 cat conftest.err >&5
a848cd7e
SC
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } &&
224bf05c 11063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 break
11076else
11077 echo "$as_me: failed program was:" >&5
11078sed 's/^/| /' conftest.$ac_ext >&5
11079
11080fi
ac1cb8d3 11081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11082done
11083rm -f conftest*
11084if test -n "$ac_declaration"; then
11085 echo '#ifdef __cplusplus' >>confdefs.h
11086 echo $ac_declaration >>confdefs.h
11087 echo '#endif' >>confdefs.h
11088fi
11089
11090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094fi
ac1cb8d3 11095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11096ac_ext=c
11097ac_cpp='$CPP $CPPFLAGS'
11098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11100ac_compiler_gnu=$ac_cv_c_compiler_gnu
11101
11102
11103
11104ac_ext=c
11105ac_cpp='$CPP $CPPFLAGS'
11106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11108ac_compiler_gnu=$ac_cv_c_compiler_gnu
11109echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11110echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11111# On Suns, sometimes $CPP names a directory.
11112if test -n "$CPP" && test -d "$CPP"; then
11113 CPP=
11114fi
11115if test -z "$CPP"; then
11116 if test "${ac_cv_prog_CPP+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118else
11119 # Double quotes because CPP needs to be expanded
11120 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11121 do
11122 ac_preproc_ok=false
11123for ac_c_preproc_warn_flag in '' yes
11124do
11125 # Use a header file that comes with gcc, so configuring glibc
11126 # with a fresh cross-compiler works.
11127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11128 # <limits.h> exists even on freestanding compilers.
11129 # On the NeXT, cc -E runs the code through the compiler's parser,
11130 # not just through cpp. "Syntax error" is here to catch this case.
11131 cat >conftest.$ac_ext <<_ACEOF
11132/* confdefs.h. */
11133_ACEOF
11134cat confdefs.h >>conftest.$ac_ext
11135cat >>conftest.$ac_ext <<_ACEOF
11136/* end confdefs.h. */
11137#ifdef __STDC__
11138# include <limits.h>
11139#else
11140# include <assert.h>
11141#endif
ac1cb8d3 11142 Syntax error
a848cd7e
SC
11143_ACEOF
11144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null; then
11152 if test -s conftest.err; then
11153 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11155 else
11156 ac_cpp_err=
11157 fi
11158else
11159 ac_cpp_err=yes
11160fi
11161if test -z "$ac_cpp_err"; then
11162 :
11163else
11164 echo "$as_me: failed program was:" >&5
11165sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 # Broken: fails on valid input.
11168continue
11169fi
11170rm -f conftest.err conftest.$ac_ext
11171
11172 # OK, works on sane cases. Now check whether non-existent headers
11173 # can be detected and how.
11174 cat >conftest.$ac_ext <<_ACEOF
11175/* confdefs.h. */
11176_ACEOF
11177cat confdefs.h >>conftest.$ac_ext
11178cat >>conftest.$ac_ext <<_ACEOF
11179/* end confdefs.h. */
11180#include <ac_nonexistent.h>
11181_ACEOF
11182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } >/dev/null; then
11190 if test -s conftest.err; then
11191 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11193 else
11194 ac_cpp_err=
11195 fi
11196else
11197 ac_cpp_err=yes
11198fi
11199if test -z "$ac_cpp_err"; then
11200 # Broken: success on invalid input.
11201continue
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 # Passes both tests.
11207ac_preproc_ok=:
11208break
11209fi
11210rm -f conftest.err conftest.$ac_ext
11211
11212done
11213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11214rm -f conftest.err conftest.$ac_ext
11215if $ac_preproc_ok; then
11216 break
11217fi
11218
11219 done
11220 ac_cv_prog_CPP=$CPP
11221
11222fi
11223 CPP=$ac_cv_prog_CPP
11224else
11225 ac_cv_prog_CPP=$CPP
11226fi
11227echo "$as_me:$LINENO: result: $CPP" >&5
11228echo "${ECHO_T}$CPP" >&6
11229ac_preproc_ok=false
11230for ac_c_preproc_warn_flag in '' yes
11231do
11232 # Use a header file that comes with gcc, so configuring glibc
11233 # with a fresh cross-compiler works.
11234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11235 # <limits.h> exists even on freestanding compilers.
11236 # On the NeXT, cc -E runs the code through the compiler's parser,
11237 # not just through cpp. "Syntax error" is here to catch this case.
11238 cat >conftest.$ac_ext <<_ACEOF
11239/* confdefs.h. */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h. */
11244#ifdef __STDC__
11245# include <limits.h>
11246#else
11247# include <assert.h>
11248#endif
ac1cb8d3 11249 Syntax error
a848cd7e
SC
11250_ACEOF
11251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } >/dev/null; then
11259 if test -s conftest.err; then
11260 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11262 else
11263 ac_cpp_err=
11264 fi
11265else
11266 ac_cpp_err=yes
11267fi
11268if test -z "$ac_cpp_err"; then
11269 :
11270else
11271 echo "$as_me: failed program was:" >&5
11272sed 's/^/| /' conftest.$ac_ext >&5
11273
11274 # Broken: fails on valid input.
11275continue
11276fi
11277rm -f conftest.err conftest.$ac_ext
11278
11279 # OK, works on sane cases. Now check whether non-existent headers
11280 # can be detected and how.
11281 cat >conftest.$ac_ext <<_ACEOF
11282/* confdefs.h. */
11283_ACEOF
11284cat confdefs.h >>conftest.$ac_ext
11285cat >>conftest.$ac_ext <<_ACEOF
11286/* end confdefs.h. */
11287#include <ac_nonexistent.h>
11288_ACEOF
11289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11291 ac_status=$?
11292 grep -v '^ *+' conftest.er1 >conftest.err
11293 rm -f conftest.er1
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } >/dev/null; then
11297 if test -s conftest.err; then
11298 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11300 else
11301 ac_cpp_err=
11302 fi
11303else
11304 ac_cpp_err=yes
11305fi
11306if test -z "$ac_cpp_err"; then
11307 # Broken: success on invalid input.
11308continue
11309else
11310 echo "$as_me: failed program was:" >&5
11311sed 's/^/| /' conftest.$ac_ext >&5
11312
11313 # Passes both tests.
11314ac_preproc_ok=:
11315break
11316fi
11317rm -f conftest.err conftest.$ac_ext
11318
11319done
11320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11321rm -f conftest.err conftest.$ac_ext
11322if $ac_preproc_ok; then
11323 :
11324else
11325 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11326See \`config.log' for more details." >&5
11327echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11328See \`config.log' for more details." >&2;}
11329 { (exit 1); exit 1; }; }
11330fi
11331
11332ac_ext=c
11333ac_cpp='$CPP $CPPFLAGS'
11334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11336ac_compiler_gnu=$ac_cv_c_compiler_gnu
11337
11338
11339echo "$as_me:$LINENO: checking for egrep" >&5
11340echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11341if test "${ac_cv_prog_egrep+set}" = set; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343else
11344 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11345 then ac_cv_prog_egrep='grep -E'
11346 else ac_cv_prog_egrep='egrep'
11347 fi
11348fi
11349echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11350echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11351 EGREP=$ac_cv_prog_egrep
11352
11353
11354if test $ac_cv_c_compiler_gnu = yes; then
11355 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11356echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11357if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359else
11360 ac_pattern="Autoconf.*'x'"
11361 cat >conftest.$ac_ext <<_ACEOF
11362/* confdefs.h. */
11363_ACEOF
11364cat confdefs.h >>conftest.$ac_ext
11365cat >>conftest.$ac_ext <<_ACEOF
11366/* end confdefs.h. */
11367#include <sgtty.h>
11368Autoconf TIOCGETP
11369_ACEOF
11370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11371 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11372 ac_cv_prog_gcc_traditional=yes
11373else
11374 ac_cv_prog_gcc_traditional=no
11375fi
11376rm -f conftest*
11377
11378
11379 if test $ac_cv_prog_gcc_traditional = no; then
11380 cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386#include <termio.h>
11387Autoconf TCGETA
11388_ACEOF
11389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11390 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11391 ac_cv_prog_gcc_traditional=yes
11392fi
11393rm -f conftest*
11394
11395 fi
11396fi
11397echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11398echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11399 if test $ac_cv_prog_gcc_traditional = yes; then
11400 CC="$CC -traditional"
11401 fi
11402fi
11403
11404
11405
11406
11407ac_ext=cc
11408ac_cpp='$CXXCPP $CPPFLAGS'
11409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11412
11413
11414CXXFLAGS=${CXXFLAGS:=}
11415ac_ext=cc
11416ac_cpp='$CXXCPP $CPPFLAGS'
11417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11420if test -n "$ac_tool_prefix"; then
11421 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11422 do
11423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11424set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11425echo "$as_me:$LINENO: checking for $ac_word" >&5
11426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11427if test "${ac_cv_prog_CXX+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11429else
11430 if test -n "$CXX"; then
11431 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11432else
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444done
11445done
11446
11447fi
11448fi
11449CXX=$ac_cv_prog_CXX
11450if test -n "$CXX"; then
11451 echo "$as_me:$LINENO: result: $CXX" >&5
11452echo "${ECHO_T}$CXX" >&6
11453else
11454 echo "$as_me:$LINENO: result: no" >&5
11455echo "${ECHO_T}no" >&6
11456fi
11457
11458 test -n "$CXX" && break
11459 done
11460fi
11461if test -z "$CXX"; then
11462 ac_ct_CXX=$CXX
11463 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11464do
11465 # Extract the first word of "$ac_prog", so it can be a program name with args.
11466set dummy $ac_prog; ac_word=$2
11467echo "$as_me:$LINENO: checking for $ac_word" >&5
11468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11469if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471else
11472 if test -n "$ac_ct_CXX"; then
11473 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11474else
11475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $PATH
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11482 ac_cv_prog_ac_ct_CXX="$ac_prog"
11483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 break 2
11485 fi
11486done
11487done
11488
11489fi
11490fi
11491ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11492if test -n "$ac_ct_CXX"; then
11493 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11494echo "${ECHO_T}$ac_ct_CXX" >&6
11495else
11496 echo "$as_me:$LINENO: result: no" >&5
11497echo "${ECHO_T}no" >&6
11498fi
11499
11500 test -n "$ac_ct_CXX" && break
11501done
11502test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11503
11504 CXX=$ac_ct_CXX
11505fi
11506
11507
11508# Provide some information about the compiler.
11509echo "$as_me:$LINENO:" \
11510 "checking for C++ compiler version" >&5
11511ac_compiler=`set X $ac_compile; echo $2`
11512{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11513 (eval $ac_compiler --version </dev/null >&5) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }
11517{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11518 (eval $ac_compiler -v </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
11528echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11529echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11530if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532else
11533 cat >conftest.$ac_ext <<_ACEOF
11534/* confdefs.h. */
11535_ACEOF
11536cat confdefs.h >>conftest.$ac_ext
11537cat >>conftest.$ac_ext <<_ACEOF
11538/* end confdefs.h. */
11539
11540int
11541main ()
11542{
11543#ifndef __GNUC__
11544 choke me
11545#endif
11546
11547 ;
11548 return 0;
11549}
11550_ACEOF
11551rm -f conftest.$ac_objext
11552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11553 (eval $ac_compile) 2>conftest.er1
a848cd7e 11554 ac_status=$?
ac1cb8d3
VS
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
a848cd7e
SC
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
224bf05c 11560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
11572 ac_compiler_gnu=yes
11573else
11574 echo "$as_me: failed program was:" >&5
11575sed 's/^/| /' conftest.$ac_ext >&5
11576
11577ac_compiler_gnu=no
11578fi
ac1cb8d3 11579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11580ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11581
11582fi
11583echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11584echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11585GXX=`test $ac_compiler_gnu = yes && echo yes`
11586ac_test_CXXFLAGS=${CXXFLAGS+set}
11587ac_save_CXXFLAGS=$CXXFLAGS
11588CXXFLAGS="-g"
11589echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11590echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11591if test "${ac_cv_prog_cxx_g+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593else
11594 cat >conftest.$ac_ext <<_ACEOF
11595/* confdefs.h. */
11596_ACEOF
11597cat confdefs.h >>conftest.$ac_ext
11598cat >>conftest.$ac_ext <<_ACEOF
11599/* end confdefs.h. */
11600
11601int
11602main ()
11603{
11604
11605 ;
11606 return 0;
11607}
11608_ACEOF
11609rm -f conftest.$ac_objext
11610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11611 (eval $ac_compile) 2>conftest.er1
a848cd7e 11612 ac_status=$?
ac1cb8d3
VS
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
a848cd7e
SC
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
224bf05c 11618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; } &&
11624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 ac_cv_prog_cxx_g=yes
11631else
11632 echo "$as_me: failed program was:" >&5
11633sed 's/^/| /' conftest.$ac_ext >&5
11634
11635ac_cv_prog_cxx_g=no
11636fi
ac1cb8d3 11637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11638fi
11639echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11640echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11641if test "$ac_test_CXXFLAGS" = set; then
11642 CXXFLAGS=$ac_save_CXXFLAGS
11643elif test $ac_cv_prog_cxx_g = yes; then
11644 if test "$GXX" = yes; then
11645 CXXFLAGS="-g -O2"
11646 else
11647 CXXFLAGS="-g"
11648 fi
11649else
11650 if test "$GXX" = yes; then
11651 CXXFLAGS="-O2"
11652 else
11653 CXXFLAGS=
11654 fi
11655fi
11656for ac_declaration in \
ac1cb8d3 11657 '' \
a848cd7e
SC
11658 'extern "C" void std::exit (int) throw (); using std::exit;' \
11659 'extern "C" void std::exit (int); using std::exit;' \
11660 'extern "C" void exit (int) throw ();' \
11661 'extern "C" void exit (int);' \
11662 'void exit (int);'
11663do
11664 cat >conftest.$ac_ext <<_ACEOF
11665/* confdefs.h. */
11666_ACEOF
11667cat confdefs.h >>conftest.$ac_ext
11668cat >>conftest.$ac_ext <<_ACEOF
11669/* end confdefs.h. */
de59c161 11670$ac_declaration
ac1cb8d3 11671#include <stdlib.h>
a848cd7e
SC
11672int
11673main ()
11674{
11675exit (42);
11676 ;
11677 return 0;
11678}
11679_ACEOF
11680rm -f conftest.$ac_objext
11681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11682 (eval $ac_compile) 2>conftest.er1
a848cd7e 11683 ac_status=$?
ac1cb8d3
VS
11684 grep -v '^ *+' conftest.er1 >conftest.err
11685 rm -f conftest.er1
11686 cat conftest.err >&5
a848cd7e
SC
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } &&
224bf05c 11689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; } &&
11695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; }; then
11701 :
11702else
11703 echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706continue
11707fi
ac1cb8d3 11708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715$ac_declaration
11716int
11717main ()
11718{
11719exit (42);
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11726 (eval $ac_compile) 2>conftest.er1
a848cd7e 11727 ac_status=$?
ac1cb8d3
VS
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
a848cd7e
SC
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
224bf05c 11733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 break
11746else
11747 echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
11750fi
ac1cb8d3 11751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11752done
11753rm -f conftest*
11754if test -n "$ac_declaration"; then
11755 echo '#ifdef __cplusplus' >>confdefs.h
11756 echo $ac_declaration >>confdefs.h
11757 echo '#endif' >>confdefs.h
11758fi
11759
11760ac_ext=cc
11761ac_cpp='$CXXCPP $CPPFLAGS'
11762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11765
11766
11767ac_ext=c
11768ac_cpp='$CPP $CPPFLAGS'
11769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11771ac_compiler_gnu=$ac_cv_c_compiler_gnu
11772
11773
a848cd7e
SC
11774if test -n "$ac_tool_prefix"; then
11775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11776set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11777echo "$as_me:$LINENO: checking for $ac_word" >&5
11778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11779if test "${ac_cv_prog_RANLIB+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781else
11782 if test -n "$RANLIB"; then
11783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11784else
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11795 fi
11796done
11797done
11798
11799fi
11800fi
11801RANLIB=$ac_cv_prog_RANLIB
11802if test -n "$RANLIB"; then
11803 echo "$as_me:$LINENO: result: $RANLIB" >&5
11804echo "${ECHO_T}$RANLIB" >&6
11805else
11806 echo "$as_me:$LINENO: result: no" >&5
11807echo "${ECHO_T}no" >&6
11808fi
11809
11810fi
11811if test -z "$ac_cv_prog_RANLIB"; then
11812 ac_ct_RANLIB=$RANLIB
11813 # Extract the first word of "ranlib", so it can be a program name with args.
11814set dummy ranlib; ac_word=$2
11815echo "$as_me:$LINENO: checking for $ac_word" >&5
11816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11817if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 if test -n "$ac_ct_RANLIB"; then
11821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11822else
11823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824for as_dir in $PATH
11825do
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830 ac_cv_prog_ac_ct_RANLIB="ranlib"
11831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11833 fi
11834done
11835done
11836
11837 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11838fi
11839fi
11840ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11841if test -n "$ac_ct_RANLIB"; then
11842 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11843echo "${ECHO_T}$ac_ct_RANLIB" >&6
11844else
11845 echo "$as_me:$LINENO: result: no" >&5
11846echo "${ECHO_T}no" >&6
11847fi
11848
11849 RANLIB=$ac_ct_RANLIB
11850else
11851 RANLIB="$ac_cv_prog_RANLIB"
11852fi
11853
11854
11855# Extract the first word of "ar", so it can be a program name with args.
11856set dummy ar; ac_word=$2
11857echo "$as_me:$LINENO: checking for $ac_word" >&5
11858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11859if test "${ac_cv_prog_AR+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861else
11862 if test -n "$AR"; then
11863 ac_cv_prog_AR="$AR" # Let the user override the test.
11864else
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872 ac_cv_prog_AR="ar"
11873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876done
11877done
11878
11879fi
11880fi
11881AR=$ac_cv_prog_AR
11882if test -n "$AR"; then
11883 echo "$as_me:$LINENO: result: $AR" >&5
11884echo "${ECHO_T}$AR" >&6
11885else
11886 echo "$as_me:$LINENO: result: no" >&5
11887echo "${ECHO_T}no" >&6
11888fi
11889
11890if test "x$AR" = "x" ; then
77ffb593
JS
11891 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11892echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11893 { (exit 1); exit 1; }; }
11894fi
11895
11896# Find a good install program. We prefer a C program (faster),
11897# so one script is as good as another. But avoid the broken or
11898# incompatible versions:
11899# SysV /etc/install, /usr/sbin/install
11900# SunOS /usr/etc/install
11901# IRIX /sbin/install
11902# AIX /bin/install
11903# AmigaOS /C/install, which installs bootblocks on floppy discs
11904# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11905# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11906# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11907# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11908# ./install, which can be erroneously created by make from ./install.sh.
11909echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11910echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11911if test -z "$INSTALL"; then
11912if test "${ac_cv_path_install+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11914else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916for as_dir in $PATH
11917do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 # Account for people who put trailing slashes in PATH elements.
11921case $as_dir/ in
11922 ./ | .// | /cC/* | \
11923 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11924 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11925 /usr/ucb/* ) ;;
11926 *)
11927 # OSF1 and SCO ODT 3.0 have their own names for install.
11928 # Don't use installbsd from OSF since it installs stuff as root
11929 # by default.
11930 for ac_prog in ginstall scoinst install; do
11931 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11932 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11933 if test $ac_prog = install &&
11934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11935 # AIX install. It has an incompatible calling convention.
11936 :
11937 elif test $ac_prog = install &&
11938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11939 # program-specific install script used by HP pwplus--don't use.
11940 :
11941 else
11942 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11943 break 3
11944 fi
11945 fi
a848cd7e
SC
11946 done
11947 done
11948 ;;
11949esac
11950done
11951
11952
11953fi
11954 if test "${ac_cv_path_install+set}" = set; then
11955 INSTALL=$ac_cv_path_install
11956 else
11957 # As a last resort, use the slow shell script. We don't cache a
11958 # path for INSTALL within a source directory, because that will
11959 # break other packages using the cache if that directory is
11960 # removed, or if the path is relative.
11961 INSTALL=$ac_install_sh
11962 fi
11963fi
11964echo "$as_me:$LINENO: result: $INSTALL" >&5
11965echo "${ECHO_T}$INSTALL" >&6
11966
11967# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11968# It thinks the first close brace ends the variable substitution.
11969test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11970
11971test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11972
11973test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11974
11975
11976case ${INSTALL} in
11977 /* ) # Absolute
11978 ;;
11979 ?:* ) # Drive letter, considered as absolute.
11980 ;;
11981 *)
11982 INSTALL=`pwd`/${INSTALL} ;;
11983esac
11984
11985case ${host} in
11986 *-hp-hpux* )
11987 INSTALL_DIR="mkdir"
11988 ;;
11989
11990 *) INSTALL_DIR="$INSTALL -d"
11991 ;;
11992esac
11993
11994
11995case "${host}" in
11996
11997 powerpc-*-darwin* )
11998 INSTALL_PROGRAM="cp -fp"
11999 INSTALL_DATA="cp -fp"
12000 ;;
12001 *)
12002 ;;
12003esac
12004
12005# Extract the first word of "strip", so it can be a program name with args.
12006set dummy strip; ac_word=$2
12007echo "$as_me:$LINENO: checking for $ac_word" >&5
12008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12009if test "${ac_cv_prog_STRIP+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12011else
12012 if test -n "$STRIP"; then
12013 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12014else
12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12022 ac_cv_prog_STRIP="strip"
12023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12025 fi
12026done
12027done
12028
12029 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12030fi
12031fi
12032STRIP=$ac_cv_prog_STRIP
12033if test -n "$STRIP"; then
12034 echo "$as_me:$LINENO: result: $STRIP" >&5
12035echo "${ECHO_T}$STRIP" >&6
12036else
12037 echo "$as_me:$LINENO: result: no" >&5
12038echo "${ECHO_T}no" >&6
12039fi
12040
12041
12042echo "$as_me:$LINENO: checking if make is GNU make" >&5
12043echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12044if test "${wx_cv_prog_makeisgnu+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047
12048 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12049 egrep -s GNU > /dev/null); then
12050 wx_cv_prog_makeisgnu="yes"
12051 else
12052 wx_cv_prog_makeisgnu="no"
12053 fi
12054
12055fi
12056echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12057echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12058
12059if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12060 IF_GNU_MAKE=""
12061else
12062 IF_GNU_MAKE="#"
12063fi
12064
12065
12066
12067if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12068echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12069echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12070if test "${wx_cv_prog_makevpath+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072else
12073
12074cat - << EOF > confMake
12075check : file
12076 cp \$? \$@
12077 cp \$? final_file
12078EOF
12079
12080if test ! -d sub ; then
12081 mkdir sub
12082fi
12083echo dummy > sub/file
12084${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12085RESULT=$?
12086rm -f sub/file check final_file confMake
12087rmdir sub
12088if test "$RESULT" = 0; then
12089 wx_cv_prog_makevpath="yes"
12090else
12091 wx_cv_prog_makevpath="no"
12092fi
12093
12094fi
12095echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12096echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12097
12098if test "x$wx_cv_prog_makevpath" != "xyes"; then
12099{ { echo "$as_me:$LINENO: error:
12100You need a make-utility that is able to use the variable
12101VPATH correctly.
12102If your version of make does not support VPATH correctly,
12103please install GNU-make (possibly as gmake), and start
12104configure with the following command:
12105export MAKE=gmake; ./configure for sh-type shells
12106setenv MAKE gmake; ./configure for csh-type shells
12107Also please do remember to use gmake in this case every time
12108you are trying to compile.
12109" >&5
12110echo "$as_me: error:
12111You need a make-utility that is able to use the variable
12112VPATH correctly.
12113If your version of make does not support VPATH correctly,
12114please install GNU-make (possibly as gmake), and start
12115configure with the following command:
12116export MAKE=gmake; ./configure for sh-type shells
12117setenv MAKE gmake; ./configure for csh-type shells
12118Also please do remember to use gmake in this case every time
12119you are trying to compile.
12120" >&2;}
12121 { (exit 1); exit 1; }; }
12122fi fi
12123echo "$as_me:$LINENO: checking whether ln -s works" >&5
12124echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12125LN_S=$as_ln_s
12126if test "$LN_S" = "ln -s"; then
12127 echo "$as_me:$LINENO: result: yes" >&5
12128echo "${ECHO_T}yes" >&6
12129else
12130 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12131echo "${ECHO_T}no, using $LN_S" >&6
12132fi
12133
12134
12135
12136case "${host}" in
12137 *-pc-os2_emx | *-pc-os2-emx )
12138 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12139 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12140echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12141if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143else
12144 ac_check_lib_save_LIBS=$LIBS
12145LIBS="-lcExt $LIBS"
12146cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152
12153/* Override any gcc2 internal prototype to avoid an error. */
12154#ifdef __cplusplus
12155extern "C"
12156#endif
12157/* We use char because int might match the return type of a gcc2
12158 builtin and then its argument prototype would still apply. */
12159char drand48 ();
12160int
12161main ()
12162{
12163drand48 ();
12164 ;
12165 return 0;
12166}
12167_ACEOF
12168rm -f conftest.$ac_objext conftest$ac_exeext
12169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12170 (eval $ac_link) 2>conftest.er1
a848cd7e 12171 ac_status=$?
ac1cb8d3
VS
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
a848cd7e
SC
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
224bf05c 12177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 ac_cv_lib_cExt_drand48=yes
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194ac_cv_lib_cExt_drand48=no
12195fi
ac1cb8d3
VS
12196rm -f conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12198LIBS=$ac_check_lib_save_LIBS
12199fi
12200echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12201echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12202if test $ac_cv_lib_cExt_drand48 = yes; then
12203 LIBS="$LIBS -lcExt"
12204fi
12205
12206 else
12207 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12208 fi
12209 echo "$as_me:$LINENO: checking for gcc version" >&5
12210echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12211if test "${wx_cv_gccversion+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214
12215 cat >conftest.$ac_ext <<_ACEOF
12216/* confdefs.h. */
12217_ACEOF
12218cat confdefs.h >>conftest.$ac_ext
12219cat >>conftest.$ac_ext <<_ACEOF
12220/* end confdefs.h. */
12221
12222int
12223main ()
12224{
12225
12226 #if (__GNUC__ < 3)
12227 #error old gcc
12228 #endif
12229
12230 ;
12231 return 0;
12232}
12233_ACEOF
12234rm -f conftest.$ac_objext
12235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12236 (eval $ac_compile) 2>conftest.er1
a848cd7e 12237 ac_status=$?
ac1cb8d3
VS
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
a848cd7e
SC
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } &&
224bf05c 12243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255
12256 cat >conftest.$ac_ext <<_ACEOF
12257/* confdefs.h. */
12258_ACEOF
12259cat confdefs.h >>conftest.$ac_ext
12260cat >>conftest.$ac_ext <<_ACEOF
12261/* end confdefs.h. */
12262
12263int
12264main ()
12265{
12266
12267 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12268 #error intermediate gcc
12269 #endif
12270
12271 ;
12272 return 0;
12273}
12274_ACEOF
12275rm -f conftest.$ac_objext
12276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12277 (eval $ac_compile) 2>conftest.er1
a848cd7e 12278 ac_status=$?
ac1cb8d3
VS
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
a848cd7e
SC
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
224bf05c 12284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296
12297 wx_cv_gccversion=Innotek
12298
12299else
12300 echo "$as_me: failed program was:" >&5
12301sed 's/^/| /' conftest.$ac_ext >&5
12302
12303
12304 wx_cv_gccversion=3
12305
12306
12307fi
ac1cb8d3 12308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12309
12310else
12311 echo "$as_me: failed program was:" >&5
12312sed 's/^/| /' conftest.$ac_ext >&5
12313
12314
12315 wx_cv_gccversion=2
12316
12317
12318fi
ac1cb8d3 12319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12320
12321fi
12322echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12323echo "${ECHO_T}$wx_cv_gccversion" >&6
12324 if test "$wx_cv_gccversion" = "2"; then
12325 LIBS="$LIBS -lstdcpp"
12326 LDFLAGS="$LDFLAGS -Zsysv-signals"
12327 else
12328 if test "$wx_cv_gccversion" = "3"; then
12329 LIBS="$LIBS -lstdcxx"
12330 LDFLAGS="$LDFLAGS -Zsysv-signals"
12331 else
12332 LIBS="$LIBS -lstdc++"
12333 fi
12334 fi
12335 if test "$wxUSE_OMF" = "yes"; then
de59c161 12336 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12337 fi
12338 ;;
12339 *)
12340
12341
12342
12343 ac_ext=cc
12344ac_cpp='$CXXCPP $CPPFLAGS'
12345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12348
12349
12350
12351echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12352echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12353if test "${ac_cv_string_strcasecmp+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355else
12356
12357 cat >conftest.$ac_ext <<_ACEOF
12358/* confdefs.h. */
12359_ACEOF
12360cat confdefs.h >>conftest.$ac_ext
12361cat >>conftest.$ac_ext <<_ACEOF
12362/* end confdefs.h. */
12363
12364 #include <string.h>
12365
12366int
12367main ()
12368{
12369
12370 strcasecmp("foo", "bar");
12371
12372 ;
12373 return 0;
12374}
12375_ACEOF
12376rm -f conftest.$ac_objext conftest$ac_exeext
12377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12378 (eval $ac_link) 2>conftest.er1
a848cd7e 12379 ac_status=$?
ac1cb8d3
VS
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
a848cd7e
SC
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
224bf05c 12385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_cv_string_strcasecmp=yes
12398else
12399 echo "$as_me: failed program was:" >&5
12400sed 's/^/| /' conftest.$ac_ext >&5
12401
12402ac_cv_string_strcasecmp=no
12403
12404fi
ac1cb8d3
VS
12405rm -f conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12407
12408fi
12409echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12410echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12411
12412 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12413 cat >>confdefs.h <<\_ACEOF
12414#define HAVE_STRCASECMP_IN_STRING_H 1
12415_ACEOF
12416
12417 else
12418 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12419echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12420if test "${ac_cv_strings_strcasecmp+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422else
12423
12424 cat >conftest.$ac_ext <<_ACEOF
12425/* confdefs.h. */
12426_ACEOF
12427cat confdefs.h >>conftest.$ac_ext
12428cat >>conftest.$ac_ext <<_ACEOF
12429/* end confdefs.h. */
12430
12431 #include <strings.h>
12432
12433int
12434main ()
12435{
12436
12437 strcasecmp("foo", "bar");
12438
12439 ;
12440 return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext conftest$ac_exeext
12444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12445 (eval $ac_link) 2>conftest.er1
a848cd7e 12446 ac_status=$?
ac1cb8d3
VS
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
a848cd7e
SC
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
224bf05c 12452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_strings_strcasecmp=yes
12465else
12466 echo "$as_me: failed program was:" >&5
12467sed 's/^/| /' conftest.$ac_ext >&5
12468
12469ac_cv_strings_strcasecmp=no
12470
12471fi
ac1cb8d3
VS
12472rm -f conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12474
12475fi
12476echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12477echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12478
12479 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12480 cat >>confdefs.h <<\_ACEOF
12481#define HAVE_STRCASECMP_IN_STRINGS_H 1
12482_ACEOF
12483
12484 else
12485 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12486echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12487 { (exit 1); exit 1; }; }
12488 fi
12489 fi
12490
12491 ac_ext=c
12492ac_cpp='$CPP $CPPFLAGS'
12493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12495ac_compiler_gnu=$ac_cv_c_compiler_gnu
12496
12497 ;;
12498esac
12499
12500
12501echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12502echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12503if test "${ac_cv_header_stdc+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505else
12506 cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h. */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h. */
12512#include <stdlib.h>
12513#include <stdarg.h>
12514#include <string.h>
12515#include <float.h>
12516
12517int
12518main ()
12519{
12520
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext
12526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12527 (eval $ac_compile) 2>conftest.er1
a848cd7e 12528 ac_status=$?
ac1cb8d3
VS
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
a848cd7e
SC
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
224bf05c 12534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_header_stdc=yes
12547else
12548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551ac_cv_header_stdc=no
12552fi
ac1cb8d3 12553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12554
12555if test $ac_cv_header_stdc = yes; then
12556 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12557 cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563#include <string.h>
12564
12565_ACEOF
12566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12567 $EGREP "memchr" >/dev/null 2>&1; then
12568 :
12569else
12570 ac_cv_header_stdc=no
12571fi
12572rm -f conftest*
12573
12574fi
12575
12576if test $ac_cv_header_stdc = yes; then
12577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12578 cat >conftest.$ac_ext <<_ACEOF
12579/* confdefs.h. */
12580_ACEOF
12581cat confdefs.h >>conftest.$ac_ext
12582cat >>conftest.$ac_ext <<_ACEOF
12583/* end confdefs.h. */
12584#include <stdlib.h>
12585
12586_ACEOF
12587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12588 $EGREP "free" >/dev/null 2>&1; then
12589 :
12590else
12591 ac_cv_header_stdc=no
12592fi
12593rm -f conftest*
12594
12595fi
12596
12597if test $ac_cv_header_stdc = yes; then
12598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12599 if test "$cross_compiling" = yes; then
12600 :
12601else
12602 cat >conftest.$ac_ext <<_ACEOF
12603/* confdefs.h. */
12604_ACEOF
12605cat confdefs.h >>conftest.$ac_ext
12606cat >>conftest.$ac_ext <<_ACEOF
12607/* end confdefs.h. */
12608#include <ctype.h>
12609#if ((' ' & 0x0FF) == 0x020)
12610# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12611# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12612#else
12613# define ISLOWER(c) \
ac1cb8d3
VS
12614 (('a' <= (c) && (c) <= 'i') \
12615 || ('j' <= (c) && (c) <= 'r') \
12616 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12617# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12618#endif
12619
12620#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12621int
12622main ()
12623{
12624 int i;
12625 for (i = 0; i < 256; i++)
12626 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12627 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12628 exit(2);
12629 exit (0);
12630}
12631_ACEOF
12632rm -f conftest$ac_exeext
12633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 :
12644else
12645 echo "$as_me: program exited with status $ac_status" >&5
12646echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649( exit $ac_status )
12650ac_cv_header_stdc=no
12651fi
ac1cb8d3 12652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12653fi
12654fi
12655fi
12656echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12657echo "${ECHO_T}$ac_cv_header_stdc" >&6
12658if test $ac_cv_header_stdc = yes; then
12659
12660cat >>confdefs.h <<\_ACEOF
12661#define STDC_HEADERS 1
12662_ACEOF
12663
12664fi
12665
12666# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12677 inttypes.h stdint.h unistd.h
a848cd7e
SC
12678do
12679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12680echo "$as_me:$LINENO: checking for $ac_header" >&5
12681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12682if eval "test \"\${$as_ac_Header+set}\" = set"; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684else
12685 cat >conftest.$ac_ext <<_ACEOF
12686/* confdefs.h. */
12687_ACEOF
12688cat confdefs.h >>conftest.$ac_ext
12689cat >>conftest.$ac_ext <<_ACEOF
12690/* end confdefs.h. */
12691$ac_includes_default
12692
12693#include <$ac_header>
12694_ACEOF
12695rm -f conftest.$ac_objext
12696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12697 (eval $ac_compile) 2>conftest.er1
a848cd7e 12698 ac_status=$?
ac1cb8d3
VS
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
a848cd7e
SC
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
224bf05c 12704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 eval "$as_ac_Header=yes"
12717else
12718 echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
12721eval "$as_ac_Header=no"
12722fi
ac1cb8d3 12723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12724fi
12725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12727if test `eval echo '${'$as_ac_Header'}'` = yes; then
12728 cat >>confdefs.h <<_ACEOF
12729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12730_ACEOF
12731
12732fi
12733
12734done
12735
12736
12737
12738for ac_header in stdlib.h
12739do
12740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12741if eval "test \"\${$as_ac_Header+set}\" = set"; then
12742 echo "$as_me:$LINENO: checking for $ac_header" >&5
12743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12744if eval "test \"\${$as_ac_Header+set}\" = set"; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746fi
12747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12749else
12750 # Is the header compilable?
12751echo "$as_me:$LINENO: checking $ac_header usability" >&5
12752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12753cat >conftest.$ac_ext <<_ACEOF
12754/* confdefs.h. */
12755_ACEOF
12756cat confdefs.h >>conftest.$ac_ext
12757cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */
12759$ac_includes_default
12760#include <$ac_header>
12761_ACEOF
12762rm -f conftest.$ac_objext
12763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12764 (eval $ac_compile) 2>conftest.er1
a848cd7e 12765 ac_status=$?
ac1cb8d3
VS
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
a848cd7e
SC
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
224bf05c 12771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 ac_header_compiler=yes
12784else
12785 echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
12788ac_header_compiler=no
12789fi
ac1cb8d3 12790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12792echo "${ECHO_T}$ac_header_compiler" >&6
12793
12794# Is the header present?
12795echo "$as_me:$LINENO: checking $ac_header presence" >&5
12796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12797cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
12803#include <$ac_header>
12804_ACEOF
12805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } >/dev/null; then
12813 if test -s conftest.err; then
12814 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12816 else
12817 ac_cpp_err=
12818 fi
12819else
12820 ac_cpp_err=yes
12821fi
12822if test -z "$ac_cpp_err"; then
12823 ac_header_preproc=yes
12824else
12825 echo "$as_me: failed program was:" >&5
12826sed 's/^/| /' conftest.$ac_ext >&5
12827
12828 ac_header_preproc=no
12829fi
12830rm -f conftest.err conftest.$ac_ext
12831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12832echo "${ECHO_T}$ac_header_preproc" >&6
12833
12834# So? What about this header?
ac1cb8d3
VS
12835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12836 yes:no: )
a848cd7e
SC
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12841 ac_header_preproc=yes
a848cd7e 12842 ;;
ac1cb8d3 12843 no:yes:* )
a848cd7e
SC
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12851echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12856 (
12857 cat <<\_ASBOX
ac1cb8d3
VS
12858## ----------------------------------------- ##
12859## Report this to wx-dev@lists.wxwidgets.org ##
12860## ----------------------------------------- ##
a848cd7e
SC
12861_ASBOX
12862 ) |
12863 sed "s/^/$as_me: WARNING: /" >&2
12864 ;;
12865esac
12866echo "$as_me:$LINENO: checking for $ac_header" >&5
12867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12868if eval "test \"\${$as_ac_Header+set}\" = set"; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12870else
ac1cb8d3 12871 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12872fi
12873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12875
12876fi
12877if test `eval echo '${'$as_ac_Header'}'` = yes; then
12878 cat >>confdefs.h <<_ACEOF
12879#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12880_ACEOF
12881
12882fi
12883
12884done
12885
12886
12887for ac_header in malloc.h
12888do
12889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12890if eval "test \"\${$as_ac_Header+set}\" = set"; then
12891 echo "$as_me:$LINENO: checking for $ac_header" >&5
12892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12893if eval "test \"\${$as_ac_Header+set}\" = set"; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12895fi
12896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12898else
12899 # Is the header compilable?
12900echo "$as_me:$LINENO: checking $ac_header usability" >&5
12901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12902cat >conftest.$ac_ext <<_ACEOF
12903/* confdefs.h. */
12904_ACEOF
12905cat confdefs.h >>conftest.$ac_ext
12906cat >>conftest.$ac_ext <<_ACEOF
12907/* end confdefs.h. */
12908$ac_includes_default
12909#include <$ac_header>
12910_ACEOF
12911rm -f conftest.$ac_objext
12912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12913 (eval $ac_compile) 2>conftest.er1
a848cd7e 12914 ac_status=$?
ac1cb8d3
VS
12915 grep -v '^ *+' conftest.er1 >conftest.err
12916 rm -f conftest.er1
12917 cat conftest.err >&5
a848cd7e
SC
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } &&
224bf05c 12920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_header_compiler=yes
12933else
12934 echo "$as_me: failed program was:" >&5
12935sed 's/^/| /' conftest.$ac_ext >&5
12936
12937ac_header_compiler=no
12938fi
ac1cb8d3 12939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12941echo "${ECHO_T}$ac_header_compiler" >&6
12942
12943# Is the header present?
12944echo "$as_me:$LINENO: checking $ac_header presence" >&5
12945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12946cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952#include <$ac_header>
12953_ACEOF
12954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12956 ac_status=$?
12957 grep -v '^ *+' conftest.er1 >conftest.err
12958 rm -f conftest.er1
12959 cat conftest.err >&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } >/dev/null; then
12962 if test -s conftest.err; then
12963 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12965 else
12966 ac_cpp_err=
12967 fi
12968else
12969 ac_cpp_err=yes
12970fi
12971if test -z "$ac_cpp_err"; then
12972 ac_header_preproc=yes
12973else
12974 echo "$as_me: failed program was:" >&5
12975sed 's/^/| /' conftest.$ac_ext >&5
12976
12977 ac_header_preproc=no
12978fi
12979rm -f conftest.err conftest.$ac_ext
12980echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12981echo "${ECHO_T}$ac_header_preproc" >&6
12982
12983# So? What about this header?
ac1cb8d3
VS
12984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12985 yes:no: )
a848cd7e
SC
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12989echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12990 ac_header_preproc=yes
a848cd7e 12991 ;;
ac1cb8d3 12992 no:yes:* )
a848cd7e
SC
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12994echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12996echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12998echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13000echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13004echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13005 (
13006 cat <<\_ASBOX
ac1cb8d3
VS
13007## ----------------------------------------- ##
13008## Report this to wx-dev@lists.wxwidgets.org ##
13009## ----------------------------------------- ##
a848cd7e
SC
13010_ASBOX
13011 ) |
13012 sed "s/^/$as_me: WARNING: /" >&2
13013 ;;
13014esac
13015echo "$as_me:$LINENO: checking for $ac_header" >&5
13016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13017if eval "test \"\${$as_ac_Header+set}\" = set"; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13019else
ac1cb8d3 13020 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13021fi
13022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13024
13025fi
13026if test `eval echo '${'$as_ac_Header'}'` = yes; then
13027 cat >>confdefs.h <<_ACEOF
13028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13029_ACEOF
13030
13031fi
13032
13033done
13034
13035
13036for ac_header in unistd.h
13037do
13038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13039if eval "test \"\${$as_ac_Header+set}\" = set"; then
13040 echo "$as_me:$LINENO: checking for $ac_header" >&5
13041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13042if eval "test \"\${$as_ac_Header+set}\" = set"; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044fi
13045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13047else
13048 # Is the header compilable?
13049echo "$as_me:$LINENO: checking $ac_header usability" >&5
13050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13051cat >conftest.$ac_ext <<_ACEOF
13052/* confdefs.h. */
13053_ACEOF
13054cat confdefs.h >>conftest.$ac_ext
13055cat >>conftest.$ac_ext <<_ACEOF
13056/* end confdefs.h. */
13057$ac_includes_default
13058#include <$ac_header>
13059_ACEOF
13060rm -f conftest.$ac_objext
13061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13062 (eval $ac_compile) 2>conftest.er1
a848cd7e 13063 ac_status=$?
ac1cb8d3
VS
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
a848cd7e
SC
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
224bf05c 13069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; } &&
13075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13078 ac_status=$?
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; }; then
13081 ac_header_compiler=yes
13082else
13083 echo "$as_me: failed program was:" >&5
13084sed 's/^/| /' conftest.$ac_ext >&5
13085
13086ac_header_compiler=no
13087fi
ac1cb8d3 13088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13090echo "${ECHO_T}$ac_header_compiler" >&6
13091
13092# Is the header present?
13093echo "$as_me:$LINENO: checking $ac_header presence" >&5
13094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13095cat >conftest.$ac_ext <<_ACEOF
13096/* confdefs.h. */
13097_ACEOF
13098cat confdefs.h >>conftest.$ac_ext
13099cat >>conftest.$ac_ext <<_ACEOF
13100/* end confdefs.h. */
13101#include <$ac_header>
13102_ACEOF
13103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } >/dev/null; then
13111 if test -s conftest.err; then
13112 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13114 else
13115 ac_cpp_err=
13116 fi
13117else
13118 ac_cpp_err=yes
13119fi
13120if test -z "$ac_cpp_err"; then
13121 ac_header_preproc=yes
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_header_preproc=no
13127fi
13128rm -f conftest.err conftest.$ac_ext
13129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13130echo "${ECHO_T}$ac_header_preproc" >&6
13131
13132# So? What about this header?
ac1cb8d3
VS
13133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13134 yes:no: )
a848cd7e
SC
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13139 ac_header_preproc=yes
a848cd7e 13140 ;;
ac1cb8d3 13141 no:yes:* )
a848cd7e
SC
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13154 (
13155 cat <<\_ASBOX
ac1cb8d3
VS
13156## ----------------------------------------- ##
13157## Report this to wx-dev@lists.wxwidgets.org ##
13158## ----------------------------------------- ##
a848cd7e
SC
13159_ASBOX
13160 ) |
13161 sed "s/^/$as_me: WARNING: /" >&2
13162 ;;
13163esac
13164echo "$as_me:$LINENO: checking for $ac_header" >&5
13165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13166if eval "test \"\${$as_ac_Header+set}\" = set"; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13168else
ac1cb8d3 13169 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13170fi
13171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13173
13174fi
13175if test `eval echo '${'$as_ac_Header'}'` = yes; then
13176 cat >>confdefs.h <<_ACEOF
13177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13178_ACEOF
13179
13180fi
13181
13182done
13183
13184
13185for ac_header in wchar.h
13186do
13187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13188if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo "$as_me:$LINENO: checking for $ac_header" >&5
13190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13191if eval "test \"\${$as_ac_Header+set}\" = set"; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193fi
13194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13196else
13197 # Is the header compilable?
13198echo "$as_me:$LINENO: checking $ac_header usability" >&5
13199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13200cat >conftest.$ac_ext <<_ACEOF
13201/* confdefs.h. */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h. */
13206$ac_includes_default
13207#include <$ac_header>
13208_ACEOF
13209rm -f conftest.$ac_objext
13210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13211 (eval $ac_compile) 2>conftest.er1
a848cd7e 13212 ac_status=$?
ac1cb8d3
VS
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
a848cd7e
SC
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
224bf05c 13218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_header_compiler=yes
13231else
13232 echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235ac_header_compiler=no
13236fi
ac1cb8d3 13237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13238echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13239echo "${ECHO_T}$ac_header_compiler" >&6
13240
13241# Is the header present?
13242echo "$as_me:$LINENO: checking $ac_header presence" >&5
13243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13244cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
13250#include <$ac_header>
13251_ACEOF
13252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } >/dev/null; then
13260 if test -s conftest.err; then
13261 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13263 else
13264 ac_cpp_err=
13265 fi
13266else
13267 ac_cpp_err=yes
13268fi
13269if test -z "$ac_cpp_err"; then
13270 ac_header_preproc=yes
13271else
13272 echo "$as_me: failed program was:" >&5
13273sed 's/^/| /' conftest.$ac_ext >&5
13274
13275 ac_header_preproc=no
13276fi
13277rm -f conftest.err conftest.$ac_ext
13278echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13279echo "${ECHO_T}$ac_header_preproc" >&6
13280
13281# So? What about this header?
ac1cb8d3
VS
13282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13283 yes:no: )
a848cd7e
SC
13284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13285echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13287echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13288 ac_header_preproc=yes
a848cd7e 13289 ;;
ac1cb8d3 13290 no:yes:* )
a848cd7e
SC
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13292echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13294echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13296echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13298echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13302echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13303 (
13304 cat <<\_ASBOX
ac1cb8d3
VS
13305## ----------------------------------------- ##
13306## Report this to wx-dev@lists.wxwidgets.org ##
13307## ----------------------------------------- ##
a848cd7e
SC
13308_ASBOX
13309 ) |
13310 sed "s/^/$as_me: WARNING: /" >&2
13311 ;;
13312esac
13313echo "$as_me:$LINENO: checking for $ac_header" >&5
13314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13315if eval "test \"\${$as_ac_Header+set}\" = set"; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317else
ac1cb8d3 13318 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13319fi
13320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13322
13323fi
13324if test `eval echo '${'$as_ac_Header'}'` = yes; then
13325 cat >>confdefs.h <<_ACEOF
13326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13327_ACEOF
13328
13329fi
13330
13331done
13332
13333
13334if test "$ac_cv_header_wchar_h" != "yes"; then
13335
13336for ac_header in wcstr.h
13337do
13338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13339if eval "test \"\${$as_ac_Header+set}\" = set"; then
13340 echo "$as_me:$LINENO: checking for $ac_header" >&5
13341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13342if eval "test \"\${$as_ac_Header+set}\" = set"; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13344fi
13345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13347else
13348 # Is the header compilable?
13349echo "$as_me:$LINENO: checking $ac_header usability" >&5
13350echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13351cat >conftest.$ac_ext <<_ACEOF
13352/* confdefs.h. */
13353_ACEOF
13354cat confdefs.h >>conftest.$ac_ext
13355cat >>conftest.$ac_ext <<_ACEOF
13356/* end confdefs.h. */
13357$ac_includes_default
13358#include <$ac_header>
13359_ACEOF
13360rm -f conftest.$ac_objext
13361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13362 (eval $ac_compile) 2>conftest.er1
a848cd7e 13363 ac_status=$?
ac1cb8d3
VS
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
a848cd7e
SC
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
224bf05c 13369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } &&
13375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_header_compiler=yes
13382else
13383 echo "$as_me: failed program was:" >&5
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
13386ac_header_compiler=no
13387fi
ac1cb8d3 13388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390echo "${ECHO_T}$ac_header_compiler" >&6
13391
13392# Is the header present?
13393echo "$as_me:$LINENO: checking $ac_header presence" >&5
13394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13395cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401#include <$ac_header>
13402_ACEOF
13403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } >/dev/null; then
13411 if test -s conftest.err; then
13412 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13414 else
13415 ac_cpp_err=
13416 fi
13417else
13418 ac_cpp_err=yes
13419fi
13420if test -z "$ac_cpp_err"; then
13421 ac_header_preproc=yes
13422else
13423 echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426 ac_header_preproc=no
13427fi
13428rm -f conftest.err conftest.$ac_ext
13429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430echo "${ECHO_T}$ac_header_preproc" >&6
13431
13432# So? What about this header?
ac1cb8d3
VS
13433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13434 yes:no: )
a848cd7e
SC
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13439 ac_header_preproc=yes
a848cd7e 13440 ;;
ac1cb8d3 13441 no:yes:* )
a848cd7e
SC
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13454 (
13455 cat <<\_ASBOX
ac1cb8d3
VS
13456## ----------------------------------------- ##
13457## Report this to wx-dev@lists.wxwidgets.org ##
13458## ----------------------------------------- ##
a848cd7e
SC
13459_ASBOX
13460 ) |
13461 sed "s/^/$as_me: WARNING: /" >&2
13462 ;;
13463esac
13464echo "$as_me:$LINENO: checking for $ac_header" >&5
13465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13466if eval "test \"\${$as_ac_Header+set}\" = set"; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468else
ac1cb8d3 13469 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13470fi
13471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13473
13474fi
13475if test `eval echo '${'$as_ac_Header'}'` = yes; then
13476 cat >>confdefs.h <<_ACEOF
13477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13478_ACEOF
13479
13480fi
13481
13482done
13483
13484fi
13485
13486
13487for ac_header in fnmatch.h
13488do
13489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13490if eval "test \"\${$as_ac_Header+set}\" = set"; then
13491 echo "$as_me:$LINENO: checking for $ac_header" >&5
13492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13493if eval "test \"\${$as_ac_Header+set}\" = set"; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495fi
13496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13498else
13499 # Is the header compilable?
13500echo "$as_me:$LINENO: checking $ac_header usability" >&5
13501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13502cat >conftest.$ac_ext <<_ACEOF
13503/* confdefs.h. */
13504_ACEOF
13505cat confdefs.h >>conftest.$ac_ext
13506cat >>conftest.$ac_ext <<_ACEOF
13507/* end confdefs.h. */
13508$ac_includes_default
13509#include <$ac_header>
13510_ACEOF
13511rm -f conftest.$ac_objext
13512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13513 (eval $ac_compile) 2>conftest.er1
a848cd7e 13514 ac_status=$?
ac1cb8d3
VS
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
a848cd7e
SC
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
224bf05c 13520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_header_compiler=yes
13533else
13534 echo "$as_me: failed program was:" >&5
13535sed 's/^/| /' conftest.$ac_ext >&5
13536
13537ac_header_compiler=no
13538fi
ac1cb8d3 13539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13541echo "${ECHO_T}$ac_header_compiler" >&6
13542
13543# Is the header present?
13544echo "$as_me:$LINENO: checking $ac_header presence" >&5
13545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13546cat >conftest.$ac_ext <<_ACEOF
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552#include <$ac_header>
13553_ACEOF
13554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } >/dev/null; then
13562 if test -s conftest.err; then
13563 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13565 else
13566 ac_cpp_err=
13567 fi
13568else
13569 ac_cpp_err=yes
13570fi
13571if test -z "$ac_cpp_err"; then
13572 ac_header_preproc=yes
13573else
13574 echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ac_header_preproc=no
13578fi
13579rm -f conftest.err conftest.$ac_ext
13580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13581echo "${ECHO_T}$ac_header_preproc" >&6
13582
13583# So? What about this header?
ac1cb8d3
VS
13584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13585 yes:no: )
a848cd7e
SC
13586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13590 ac_header_preproc=yes
a848cd7e 13591 ;;
ac1cb8d3 13592 no:yes:* )
a848cd7e
SC
13593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13605 (
13606 cat <<\_ASBOX
ac1cb8d3
VS
13607## ----------------------------------------- ##
13608## Report this to wx-dev@lists.wxwidgets.org ##
13609## ----------------------------------------- ##
a848cd7e
SC
13610_ASBOX
13611 ) |
13612 sed "s/^/$as_me: WARNING: /" >&2
13613 ;;
13614esac
13615echo "$as_me:$LINENO: checking for $ac_header" >&5
13616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13617if eval "test \"\${$as_ac_Header+set}\" = set"; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619else
ac1cb8d3 13620 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13621fi
13622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13624
13625fi
13626if test `eval echo '${'$as_ac_Header'}'` = yes; then
13627 cat >>confdefs.h <<_ACEOF
13628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13629_ACEOF
13630
13631fi
13632
13633done
13634
13635
13636if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13637
13638for ac_func in fnmatch
13639do
13640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13641echo "$as_me:$LINENO: checking for $ac_func" >&5
13642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13643if eval "test \"\${$as_ac_var+set}\" = set"; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13645else
13646 cat >conftest.$ac_ext <<_ACEOF
13647/* confdefs.h. */
13648_ACEOF
13649cat confdefs.h >>conftest.$ac_ext
13650cat >>conftest.$ac_ext <<_ACEOF
13651/* end confdefs.h. */
ac1cb8d3
VS
13652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13654#define $ac_func innocuous_$ac_func
13655
a848cd7e
SC
13656/* System header to define __stub macros and hopefully few prototypes,
13657 which can conflict with char $ac_func (); below.
13658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13659 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13660
a848cd7e
SC
13661#ifdef __STDC__
13662# include <limits.h>
13663#else
13664# include <assert.h>
13665#endif
ac1cb8d3
VS
13666
13667#undef $ac_func
13668
a848cd7e
SC
13669/* Override any gcc2 internal prototype to avoid an error. */
13670#ifdef __cplusplus
13671extern "C"
13672{
13673#endif
13674/* We use char because int might match the return type of a gcc2
13675 builtin and then its argument prototype would still apply. */
13676char $ac_func ();
13677/* The GNU C library defines this for functions which it implements
13678 to always fail with ENOSYS. Some functions are actually named
13679 something starting with __ and the normal name is an alias. */
13680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13681choke me
13682#else
13683char (*f) () = $ac_func;
13684#endif
13685#ifdef __cplusplus
13686}
13687#endif
13688
13689int
13690main ()
13691{
13692return f != $ac_func;
13693 ;
13694 return 0;
13695}
13696_ACEOF
13697rm -f conftest.$ac_objext conftest$ac_exeext
13698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13699 (eval $ac_link) 2>conftest.er1
a848cd7e 13700 ac_status=$?
ac1cb8d3
VS
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
a848cd7e
SC
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
224bf05c 13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; } &&
13712 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 eval "$as_ac_var=yes"
13719else
13720 echo "$as_me: failed program was:" >&5
13721sed 's/^/| /' conftest.$ac_ext >&5
13722
13723eval "$as_ac_var=no"
13724fi
ac1cb8d3
VS
13725rm -f conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13727fi
13728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13729echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13730if test `eval echo '${'$as_ac_var'}'` = yes; then
13731 cat >>confdefs.h <<_ACEOF
13732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13733_ACEOF
13734
13735fi
13736done
13737
13738fi
13739
13740
13741for ac_header in langinfo.h
13742do
13743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13744if eval "test \"\${$as_ac_Header+set}\" = set"; then
13745 echo "$as_me:$LINENO: checking for $ac_header" >&5
13746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13747if eval "test \"\${$as_ac_Header+set}\" = set"; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749fi
13750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13752else
13753 # Is the header compilable?
13754echo "$as_me:$LINENO: checking $ac_header usability" >&5
13755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13756cat >conftest.$ac_ext <<_ACEOF
13757/* confdefs.h. */
13758_ACEOF
13759cat confdefs.h >>conftest.$ac_ext
13760cat >>conftest.$ac_ext <<_ACEOF
13761/* end confdefs.h. */
13762$ac_includes_default
13763#include <$ac_header>
13764_ACEOF
13765rm -f conftest.$ac_objext
13766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13767 (eval $ac_compile) 2>conftest.er1
a848cd7e 13768 ac_status=$?
ac1cb8d3
VS
13769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
a848cd7e
SC
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
224bf05c 13774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_header_compiler=yes
13787else
13788 echo "$as_me: failed program was:" >&5
13789sed 's/^/| /' conftest.$ac_ext >&5
13790
13791ac_header_compiler=no
13792fi
ac1cb8d3 13793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13794echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795echo "${ECHO_T}$ac_header_compiler" >&6
13796
13797# Is the header present?
13798echo "$as_me:$LINENO: checking $ac_header presence" >&5
13799echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13800cat >conftest.$ac_ext <<_ACEOF
13801/* confdefs.h. */
13802_ACEOF
13803cat confdefs.h >>conftest.$ac_ext
13804cat >>conftest.$ac_ext <<_ACEOF
13805/* end confdefs.h. */
13806#include <$ac_header>
13807_ACEOF
13808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } >/dev/null; then
13816 if test -s conftest.err; then
13817 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13819 else
13820 ac_cpp_err=
13821 fi
13822else
13823 ac_cpp_err=yes
13824fi
13825if test -z "$ac_cpp_err"; then
13826 ac_header_preproc=yes
13827else
13828 echo "$as_me: failed program was:" >&5
13829sed 's/^/| /' conftest.$ac_ext >&5
13830
13831 ac_header_preproc=no
13832fi
13833rm -f conftest.err conftest.$ac_ext
13834echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13835echo "${ECHO_T}$ac_header_preproc" >&6
13836
13837# So? What about this header?
ac1cb8d3
VS
13838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13839 yes:no: )
a848cd7e
SC
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13841echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13843echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13844 ac_header_preproc=yes
a848cd7e 13845 ;;
ac1cb8d3 13846 no:yes:* )
a848cd7e
SC
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13848echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13850echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13852echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13854echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13856echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13858echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13859 (
13860 cat <<\_ASBOX
ac1cb8d3
VS
13861## ----------------------------------------- ##
13862## Report this to wx-dev@lists.wxwidgets.org ##
13863## ----------------------------------------- ##
a848cd7e
SC
13864_ASBOX
13865 ) |
13866 sed "s/^/$as_me: WARNING: /" >&2
13867 ;;
13868esac
13869echo "$as_me:$LINENO: checking for $ac_header" >&5
13870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13871if eval "test \"\${$as_ac_Header+set}\" = set"; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873else
ac1cb8d3 13874 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13875fi
13876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13878
13879fi
13880if test `eval echo '${'$as_ac_Header'}'` = yes; then
13881 cat >>confdefs.h <<_ACEOF
13882#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13883_ACEOF
13884
13885fi
13886
13887done
13888
13889
13890case "${host}" in
13891 *-pc-os2_emx | *-pc-os2-emx )
13892 if test $ac_cv_header_langinfo_h = "yes"; then
13893 LIBS="$LIBS -lintl"
13894 fi
13895 ;;
13896esac
13897
13898if test "$wxUSE_GUI" = "yes"; then
13899 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13900
13901for ac_header in X11/Xlib.h
13902do
13903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13904if eval "test \"\${$as_ac_Header+set}\" = set"; then
13905 echo "$as_me:$LINENO: checking for $ac_header" >&5
13906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13907if eval "test \"\${$as_ac_Header+set}\" = set"; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909fi
13910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13912else
13913 # Is the header compilable?
13914echo "$as_me:$LINENO: checking $ac_header usability" >&5
13915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13916cat >conftest.$ac_ext <<_ACEOF
13917/* confdefs.h. */
13918_ACEOF
13919cat confdefs.h >>conftest.$ac_ext
13920cat >>conftest.$ac_ext <<_ACEOF
13921/* end confdefs.h. */
13922$ac_includes_default
13923#include <$ac_header>
13924_ACEOF
13925rm -f conftest.$ac_objext
13926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13927 (eval $ac_compile) 2>conftest.er1
a848cd7e 13928 ac_status=$?
ac1cb8d3
VS
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
a848cd7e
SC
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
224bf05c 13934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_header_compiler=yes
13947else
13948 echo "$as_me: failed program was:" >&5
13949sed 's/^/| /' conftest.$ac_ext >&5
13950
13951ac_header_compiler=no
13952fi
ac1cb8d3 13953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13955echo "${ECHO_T}$ac_header_compiler" >&6
13956
13957# Is the header present?
13958echo "$as_me:$LINENO: checking $ac_header presence" >&5
13959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13960cat >conftest.$ac_ext <<_ACEOF
13961/* confdefs.h. */
13962_ACEOF
13963cat confdefs.h >>conftest.$ac_ext
13964cat >>conftest.$ac_ext <<_ACEOF
13965/* end confdefs.h. */
13966#include <$ac_header>
13967_ACEOF
13968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } >/dev/null; then
13976 if test -s conftest.err; then
13977 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13979 else
13980 ac_cpp_err=
13981 fi
13982else
13983 ac_cpp_err=yes
13984fi
13985if test -z "$ac_cpp_err"; then
13986 ac_header_preproc=yes
13987else
13988 echo "$as_me: failed program was:" >&5
13989sed 's/^/| /' conftest.$ac_ext >&5
13990
13991 ac_header_preproc=no
13992fi
13993rm -f conftest.err conftest.$ac_ext
13994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13995echo "${ECHO_T}$ac_header_preproc" >&6
13996
13997# So? What about this header?
ac1cb8d3
VS
13998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13999 yes:no: )
a848cd7e
SC
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14004 ac_header_preproc=yes
a848cd7e 14005 ;;
ac1cb8d3 14006 no:yes:* )
a848cd7e
SC
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14019 (
14020 cat <<\_ASBOX
ac1cb8d3
VS
14021## ----------------------------------------- ##
14022## Report this to wx-dev@lists.wxwidgets.org ##
14023## ----------------------------------------- ##
a848cd7e
SC
14024_ASBOX
14025 ) |
14026 sed "s/^/$as_me: WARNING: /" >&2
14027 ;;
14028esac
14029echo "$as_me:$LINENO: checking for $ac_header" >&5
14030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031if eval "test \"\${$as_ac_Header+set}\" = set"; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033else
ac1cb8d3 14034 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14035fi
14036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14038
14039fi
14040if test `eval echo '${'$as_ac_Header'}'` = yes; then
14041 cat >>confdefs.h <<_ACEOF
14042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14043_ACEOF
14044
14045fi
14046
14047done
14048
14049
14050for ac_header in X11/XKBlib.h
14051do
14052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14053echo "$as_me:$LINENO: checking for $ac_header" >&5
14054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14055if eval "test \"\${$as_ac_Header+set}\" = set"; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14057else
14058 cat >conftest.$ac_ext <<_ACEOF
14059/* confdefs.h. */
14060_ACEOF
14061cat confdefs.h >>conftest.$ac_ext
14062cat >>conftest.$ac_ext <<_ACEOF
14063/* end confdefs.h. */
14064
14065 #if HAVE_X11_XLIB_H
14066 #include <X11/Xlib.h>
14067 #endif
14068
14069
14070#include <$ac_header>
14071_ACEOF
14072rm -f conftest.$ac_objext
14073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14074 (eval $ac_compile) 2>conftest.er1
a848cd7e 14075 ac_status=$?
ac1cb8d3
VS
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
a848cd7e
SC
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
224bf05c 14081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; } &&
14087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 eval "$as_ac_Header=yes"
14094else
14095 echo "$as_me: failed program was:" >&5
14096sed 's/^/| /' conftest.$ac_ext >&5
14097
14098eval "$as_ac_Header=no"
14099fi
ac1cb8d3 14100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14101fi
14102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14104if test `eval echo '${'$as_ac_Header'}'` = yes; then
14105 cat >>confdefs.h <<_ACEOF
14106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14107_ACEOF
14108
14109fi
14110
14111done
14112
14113 fi
14114fi
14115
14116
14117echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14118echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14119if test "${ac_cv_c_const+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14121else
14122 cat >conftest.$ac_ext <<_ACEOF
14123/* confdefs.h. */
14124_ACEOF
14125cat confdefs.h >>conftest.$ac_ext
14126cat >>conftest.$ac_ext <<_ACEOF
14127/* end confdefs.h. */
14128
14129int
14130main ()
14131{
14132/* FIXME: Include the comments suggested by Paul. */
14133#ifndef __cplusplus
14134 /* Ultrix mips cc rejects this. */
14135 typedef int charset[2];
14136 const charset x;
14137 /* SunOS 4.1.1 cc rejects this. */
14138 char const *const *ccp;
14139 char **p;
14140 /* NEC SVR4.0.2 mips cc rejects this. */
14141 struct point {int x, y;};
14142 static struct point const zero = {0,0};
14143 /* AIX XL C 1.02.0.0 rejects this.
14144 It does not let you subtract one const X* pointer from another in
14145 an arm of an if-expression whose if-part is not a constant
14146 expression */
14147 const char *g = "string";
14148 ccp = &g + (g ? g-g : 0);
14149 /* HPUX 7.0 cc rejects these. */
14150 ++ccp;
14151 p = (char**) ccp;
14152 ccp = (char const *const *) p;
14153 { /* SCO 3.2v4 cc rejects this. */
14154 char *t;
14155 char const *s = 0 ? (char *) 0 : (char const *) 0;
14156
14157 *t++ = 0;
14158 }
14159 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14160 int x[] = {25, 17};
14161 const int *foo = &x[0];
14162 ++foo;
14163 }
14164 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14165 typedef const int *iptr;
14166 iptr p = 0;
14167 ++p;
14168 }
14169 { /* AIX XL C 1.02.0.0 rejects this saying
14170 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14171 struct s { int j; const int *ap[3]; };
14172 struct s *b; b->j = 5;
14173 }
14174 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14175 const int foo = 10;
14176 }
14177#endif
14178
14179 ;
14180 return 0;
14181}
14182_ACEOF
14183rm -f conftest.$ac_objext
14184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14185 (eval $ac_compile) 2>conftest.er1
a848cd7e 14186 ac_status=$?
ac1cb8d3
VS
14187 grep -v '^ *+' conftest.er1 >conftest.err
14188 rm -f conftest.er1
14189 cat conftest.err >&5
a848cd7e
SC
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
224bf05c 14192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 ac_cv_c_const=yes
14205else
14206 echo "$as_me: failed program was:" >&5
14207sed 's/^/| /' conftest.$ac_ext >&5
14208
14209ac_cv_c_const=no
14210fi
ac1cb8d3 14211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14212fi
14213echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14214echo "${ECHO_T}$ac_cv_c_const" >&6
14215if test $ac_cv_c_const = no; then
14216
14217cat >>confdefs.h <<\_ACEOF
14218#define const
14219_ACEOF
14220
14221fi
14222
14223echo "$as_me:$LINENO: checking for inline" >&5
14224echo $ECHO_N "checking for inline... $ECHO_C" >&6
14225if test "${ac_cv_c_inline+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227else
14228 ac_cv_c_inline=no
14229for ac_kw in inline __inline__ __inline; do
14230 cat >conftest.$ac_ext <<_ACEOF
14231/* confdefs.h. */
14232_ACEOF
14233cat confdefs.h >>conftest.$ac_ext
14234cat >>conftest.$ac_ext <<_ACEOF
14235/* end confdefs.h. */
14236#ifndef __cplusplus
14237typedef int foo_t;
14238static $ac_kw foo_t static_foo () {return 0; }
14239$ac_kw foo_t foo () {return 0; }
14240#endif
14241
14242_ACEOF
14243rm -f conftest.$ac_objext
14244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14245 (eval $ac_compile) 2>conftest.er1
a848cd7e 14246 ac_status=$?
ac1cb8d3
VS
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
a848cd7e
SC
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } &&
224bf05c 14252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; } &&
14258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }; then
14264 ac_cv_c_inline=$ac_kw; break
14265else
14266 echo "$as_me: failed program was:" >&5
14267sed 's/^/| /' conftest.$ac_ext >&5
14268
14269fi
ac1cb8d3 14270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14271done
14272
14273fi
14274echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14275echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14276
14277
a848cd7e
SC
14278case $ac_cv_c_inline in
14279 inline | yes) ;;
ac1cb8d3
VS
14280 *)
14281 case $ac_cv_c_inline in
14282 no) ac_val=;;
14283 *) ac_val=$ac_cv_c_inline;;
14284 esac
14285 cat >>confdefs.h <<_ACEOF
14286#ifndef __cplusplus
14287#define inline $ac_val
14288#endif
de59c161 14289_ACEOF
ac1cb8d3 14290 ;;
a848cd7e
SC
14291esac
14292
14293
14294echo "$as_me:$LINENO: checking for char" >&5
14295echo $ECHO_N "checking for char... $ECHO_C" >&6
14296if test "${ac_cv_type_char+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298else
14299 cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h. */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h. */
14305$ac_includes_default
14306int
14307main ()
14308{
14309if ((char *) 0)
14310 return 0;
14311if (sizeof (char))
14312 return 0;
14313 ;
14314 return 0;
14315}
14316_ACEOF
14317rm -f conftest.$ac_objext
14318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14319 (eval $ac_compile) 2>conftest.er1
a848cd7e 14320 ac_status=$?
ac1cb8d3
VS
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
a848cd7e
SC
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
224bf05c 14326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; } &&
14332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 ac_cv_type_char=yes
14339else
14340 echo "$as_me: failed program was:" >&5
14341sed 's/^/| /' conftest.$ac_ext >&5
14342
14343ac_cv_type_char=no
14344fi
ac1cb8d3 14345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14346fi
14347echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14348echo "${ECHO_T}$ac_cv_type_char" >&6
14349
14350echo "$as_me:$LINENO: checking size of char" >&5
14351echo $ECHO_N "checking size of char... $ECHO_C" >&6
14352if test "${ac_cv_sizeof_char+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354else
14355 if test "$ac_cv_type_char" = yes; then
14356 # The cast to unsigned long works around a bug in the HP C Compiler
14357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14359 # This bug is HP SR number 8606223364.
14360 if test "$cross_compiling" = yes; then
14361 # Depending upon the size, compute the lo and hi bounds.
14362cat >conftest.$ac_ext <<_ACEOF
14363/* confdefs.h. */
14364_ACEOF
14365cat confdefs.h >>conftest.$ac_ext
14366cat >>conftest.$ac_ext <<_ACEOF
14367/* end confdefs.h. */
14368$ac_includes_default
14369int
14370main ()
14371{
14372static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14373test_array [0] = 0
14374
14375 ;
14376 return 0;
14377}
14378_ACEOF
14379rm -f conftest.$ac_objext
14380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14381 (eval $ac_compile) 2>conftest.er1
a848cd7e 14382 ac_status=$?
ac1cb8d3
VS
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
a848cd7e
SC
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
224bf05c 14388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14397 ac_status=$?
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14400 ac_lo=0 ac_mid=0
14401 while :; do
14402 cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408$ac_includes_default
14409int
14410main ()
14411{
14412static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14413test_array [0] = 0
14414
14415 ;
14416 return 0;
14417}
14418_ACEOF
14419rm -f conftest.$ac_objext
14420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14421 (eval $ac_compile) 2>conftest.er1
a848cd7e 14422 ac_status=$?
ac1cb8d3
VS
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
a848cd7e
SC
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
224bf05c 14428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_hi=$ac_mid; break
14441else
14442 echo "$as_me: failed program was:" >&5
14443sed 's/^/| /' conftest.$ac_ext >&5
14444
14445ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14446 if test $ac_lo -le $ac_mid; then
14447 ac_lo= ac_hi=
14448 break
14449 fi
14450 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14451fi
ac1cb8d3 14452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14453 done
14454else
14455 echo "$as_me: failed program was:" >&5
14456sed 's/^/| /' conftest.$ac_ext >&5
14457
14458cat >conftest.$ac_ext <<_ACEOF
14459/* confdefs.h. */
14460_ACEOF
14461cat confdefs.h >>conftest.$ac_ext
14462cat >>conftest.$ac_ext <<_ACEOF
14463/* end confdefs.h. */
14464$ac_includes_default
14465int
14466main ()
14467{
14468static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14469test_array [0] = 0
14470
14471 ;
14472 return 0;
14473}
14474_ACEOF
14475rm -f conftest.$ac_objext
14476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14477 (eval $ac_compile) 2>conftest.er1
a848cd7e 14478 ac_status=$?
ac1cb8d3
VS
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
a848cd7e
SC
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
224bf05c 14484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_hi=-1 ac_mid=-1
14497 while :; do
14498 cat >conftest.$ac_ext <<_ACEOF
14499/* confdefs.h. */
14500_ACEOF
14501cat confdefs.h >>conftest.$ac_ext
14502cat >>conftest.$ac_ext <<_ACEOF
14503/* end confdefs.h. */
14504$ac_includes_default
14505int
14506main ()
14507{
14508static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14509test_array [0] = 0
14510
14511 ;
14512 return 0;
14513}
14514_ACEOF
14515rm -f conftest.$ac_objext
14516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14517 (eval $ac_compile) 2>conftest.er1
a848cd7e 14518 ac_status=$?
ac1cb8d3
VS
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
a848cd7e
SC
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
224bf05c 14524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 ac_lo=$ac_mid; break
14537else
14538 echo "$as_me: failed program was:" >&5
14539sed 's/^/| /' conftest.$ac_ext >&5
14540
14541ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14542 if test $ac_mid -le $ac_hi; then
14543 ac_lo= ac_hi=
14544 break
14545 fi
14546 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14547fi
ac1cb8d3 14548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14549 done
14550else
14551 echo "$as_me: failed program was:" >&5
14552sed 's/^/| /' conftest.$ac_ext >&5
14553
14554ac_lo= ac_hi=
14555fi
ac1cb8d3 14556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14557fi
ac1cb8d3 14558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14559# Binary search between lo and hi bounds.
14560while test "x$ac_lo" != "x$ac_hi"; do
14561 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14562 cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568$ac_includes_default
14569int
14570main ()
14571{
14572static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14573test_array [0] = 0
14574
14575 ;
14576 return 0;
14577}
14578_ACEOF
14579rm -f conftest.$ac_objext
14580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14581 (eval $ac_compile) 2>conftest.er1
a848cd7e 14582 ac_status=$?
ac1cb8d3
VS
14583 grep -v '^ *+' conftest.er1 >conftest.err
14584 rm -f conftest.er1
14585 cat conftest.err >&5
a848cd7e
SC
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } &&
224bf05c 14588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_hi=$ac_mid
14601else
14602 echo "$as_me: failed program was:" >&5
14603sed 's/^/| /' conftest.$ac_ext >&5
14604
14605ac_lo=`expr '(' $ac_mid ')' + 1`
14606fi
ac1cb8d3 14607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14608done
14609case $ac_lo in
14610?*) ac_cv_sizeof_char=$ac_lo;;
14611'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14612See \`config.log' for more details." >&5
14613echo "$as_me: error: cannot compute sizeof (char), 77
14614See \`config.log' for more details." >&2;}
14615 { (exit 1); exit 1; }; } ;;
14616esac
14617else
14618 if test "$cross_compiling" = yes; then
224bf05c
VZ
14619 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14620echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14621 { (exit 1); exit 1; }; }
14622else
14623 cat >conftest.$ac_ext <<_ACEOF
14624/* confdefs.h. */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h. */
14629$ac_includes_default
14630long longval () { return (long) (sizeof (char)); }
14631unsigned long ulongval () { return (long) (sizeof (char)); }
14632#include <stdio.h>
14633#include <stdlib.h>
14634int
14635main ()
14636{
14637
14638 FILE *f = fopen ("conftest.val", "w");
14639 if (! f)
14640 exit (1);
14641 if (((long) (sizeof (char))) < 0)
14642 {
14643 long i = longval ();
14644 if (i != ((long) (sizeof (char))))
14645 exit (1);
14646 fprintf (f, "%ld\n", i);
14647 }
14648 else
14649 {
14650 unsigned long i = ulongval ();
14651 if (i != ((long) (sizeof (char))))
14652 exit (1);
14653 fprintf (f, "%lu\n", i);
14654 }
14655 exit (ferror (f) || fclose (f) != 0);
14656
14657 ;
14658 return 0;
14659}
14660_ACEOF
14661rm -f conftest$ac_exeext
14662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14663 (eval $ac_link) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_cv_sizeof_char=`cat conftest.val`
14673else
14674 echo "$as_me: program exited with status $ac_status" >&5
14675echo "$as_me: failed program was:" >&5
14676sed 's/^/| /' conftest.$ac_ext >&5
14677
14678( exit $ac_status )
14679{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14680See \`config.log' for more details." >&5
14681echo "$as_me: error: cannot compute sizeof (char), 77
14682See \`config.log' for more details." >&2;}
14683 { (exit 1); exit 1; }; }
14684fi
ac1cb8d3 14685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14686fi
14687fi
14688rm -f conftest.val
14689else
14690 ac_cv_sizeof_char=0
14691fi
14692fi
14693echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14694echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14695cat >>confdefs.h <<_ACEOF
14696#define SIZEOF_CHAR $ac_cv_sizeof_char
14697_ACEOF
14698
14699
14700echo "$as_me:$LINENO: checking for short" >&5
14701echo $ECHO_N "checking for short... $ECHO_C" >&6
14702if test "${ac_cv_type_short+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704else
14705 cat >conftest.$ac_ext <<_ACEOF
14706/* confdefs.h. */
14707_ACEOF
14708cat confdefs.h >>conftest.$ac_ext
14709cat >>conftest.$ac_ext <<_ACEOF
14710/* end confdefs.h. */
14711$ac_includes_default
14712int
14713main ()
14714{
14715if ((short *) 0)
14716 return 0;
14717if (sizeof (short))
14718 return 0;
14719 ;
14720 return 0;
14721}
14722_ACEOF
14723rm -f conftest.$ac_objext
14724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14725 (eval $ac_compile) 2>conftest.er1
a848cd7e 14726 ac_status=$?
ac1cb8d3
VS
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
a848cd7e
SC
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
224bf05c 14732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_type_short=yes
14745else
14746 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5
14748
14749ac_cv_type_short=no
14750fi
ac1cb8d3 14751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14752fi
14753echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14754echo "${ECHO_T}$ac_cv_type_short" >&6
14755
14756echo "$as_me:$LINENO: checking size of short" >&5
14757echo $ECHO_N "checking size of short... $ECHO_C" >&6
14758if test "${ac_cv_sizeof_short+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14760else
14761 if test "$ac_cv_type_short" = yes; then
14762 # The cast to unsigned long works around a bug in the HP C Compiler
14763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14765 # This bug is HP SR number 8606223364.
14766 if test "$cross_compiling" = yes; then
14767 # Depending upon the size, compute the lo and hi bounds.
14768cat >conftest.$ac_ext <<_ACEOF
14769/* confdefs.h. */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h. */
14774$ac_includes_default
14775int
14776main ()
14777{
14778static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14779test_array [0] = 0
14780
14781 ;
14782 return 0;
14783}
14784_ACEOF
14785rm -f conftest.$ac_objext
14786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14787 (eval $ac_compile) 2>conftest.er1
a848cd7e 14788 ac_status=$?
ac1cb8d3
VS
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
a848cd7e
SC
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
224bf05c 14794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 ac_lo=0 ac_mid=0
14807 while :; do
14808 cat >conftest.$ac_ext <<_ACEOF
14809/* confdefs.h. */
14810_ACEOF
14811cat confdefs.h >>conftest.$ac_ext
14812cat >>conftest.$ac_ext <<_ACEOF
14813/* end confdefs.h. */
14814$ac_includes_default
14815int
14816main ()
14817{
14818static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14819test_array [0] = 0
14820
14821 ;
14822 return 0;
14823}
14824_ACEOF
14825rm -f conftest.$ac_objext
14826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14827 (eval $ac_compile) 2>conftest.er1
a848cd7e 14828 ac_status=$?
ac1cb8d3
VS
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
a848cd7e
SC
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
224bf05c 14834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_hi=$ac_mid; break
14847else
14848 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5
14850
14851ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14852 if test $ac_lo -le $ac_mid; then
14853 ac_lo= ac_hi=
14854 break
14855 fi
14856 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14857fi
ac1cb8d3 14858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14859 done
14860else
14861 echo "$as_me: failed program was:" >&5
14862sed 's/^/| /' conftest.$ac_ext >&5
14863
14864cat >conftest.$ac_ext <<_ACEOF
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h. */
14870$ac_includes_default
14871int
14872main ()
14873{
14874static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14875test_array [0] = 0
14876
14877 ;
14878 return 0;
14879}
14880_ACEOF
14881rm -f conftest.$ac_objext
14882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14883 (eval $ac_compile) 2>conftest.er1
a848cd7e 14884 ac_status=$?
ac1cb8d3
VS
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
a848cd7e
SC
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
224bf05c 14890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 ac_hi=-1 ac_mid=-1
14903 while :; do
14904 cat >conftest.$ac_ext <<_ACEOF
14905/* confdefs.h. */
14906_ACEOF
14907cat confdefs.h >>conftest.$ac_ext
14908cat >>conftest.$ac_ext <<_ACEOF
14909/* end confdefs.h. */
14910$ac_includes_default
14911int
14912main ()
14913{
14914static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14915test_array [0] = 0
14916
14917 ;
14918 return 0;
14919}
14920_ACEOF
14921rm -f conftest.$ac_objext
14922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14923 (eval $ac_compile) 2>conftest.er1
a848cd7e 14924 ac_status=$?
ac1cb8d3
VS
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
a848cd7e
SC
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
224bf05c 14930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 ac_lo=$ac_mid; break
14943else
14944 echo "$as_me: failed program was:" >&5
14945sed 's/^/| /' conftest.$ac_ext >&5
14946
14947ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14948 if test $ac_mid -le $ac_hi; then
14949 ac_lo= ac_hi=
14950 break
14951 fi
14952 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14953fi
ac1cb8d3 14954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14955 done
14956else
14957 echo "$as_me: failed program was:" >&5
14958sed 's/^/| /' conftest.$ac_ext >&5
14959
14960ac_lo= ac_hi=
14961fi
ac1cb8d3 14962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14963fi
ac1cb8d3 14964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14965# Binary search between lo and hi bounds.
14966while test "x$ac_lo" != "x$ac_hi"; do
14967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14968 cat >conftest.$ac_ext <<_ACEOF
14969/* confdefs.h. */
14970_ACEOF
14971cat confdefs.h >>conftest.$ac_ext
14972cat >>conftest.$ac_ext <<_ACEOF
14973/* end confdefs.h. */
14974$ac_includes_default
14975int
14976main ()
14977{
14978static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14979test_array [0] = 0
14980
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14987 (eval $ac_compile) 2>conftest.er1
a848cd7e 14988 ac_status=$?
ac1cb8d3
VS
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
a848cd7e
SC
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
224bf05c 14994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_hi=$ac_mid
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011ac_lo=`expr '(' $ac_mid ')' + 1`
15012fi
ac1cb8d3 15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15014done
15015case $ac_lo in
15016?*) ac_cv_sizeof_short=$ac_lo;;
15017'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15018See \`config.log' for more details." >&5
15019echo "$as_me: error: cannot compute sizeof (short), 77
15020See \`config.log' for more details." >&2;}
15021 { (exit 1); exit 1; }; } ;;
15022esac
15023else
15024 if test "$cross_compiling" = yes; then
224bf05c
VZ
15025 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15026echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15027 { (exit 1); exit 1; }; }
15028else
15029 cat >conftest.$ac_ext <<_ACEOF
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h. */
15035$ac_includes_default
15036long longval () { return (long) (sizeof (short)); }
15037unsigned long ulongval () { return (long) (sizeof (short)); }
15038#include <stdio.h>
15039#include <stdlib.h>
15040int
15041main ()
15042{
15043
15044 FILE *f = fopen ("conftest.val", "w");
15045 if (! f)
15046 exit (1);
15047 if (((long) (sizeof (short))) < 0)
15048 {
15049 long i = longval ();
15050 if (i != ((long) (sizeof (short))))
15051 exit (1);
15052 fprintf (f, "%ld\n", i);
15053 }
15054 else
15055 {
15056 unsigned long i = ulongval ();
15057 if (i != ((long) (sizeof (short))))
15058 exit (1);
15059 fprintf (f, "%lu\n", i);
15060 }
15061 exit (ferror (f) || fclose (f) != 0);
15062
15063 ;
15064 return 0;
15065}
15066_ACEOF
15067rm -f conftest$ac_exeext
15068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15069 (eval $ac_link) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_sizeof_short=`cat conftest.val`
15079else
15080 echo "$as_me: program exited with status $ac_status" >&5
15081echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084( exit $ac_status )
15085{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15086See \`config.log' for more details." >&5
15087echo "$as_me: error: cannot compute sizeof (short), 77
15088See \`config.log' for more details." >&2;}
15089 { (exit 1); exit 1; }; }
15090fi
ac1cb8d3 15091rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15092fi
15093fi
15094rm -f conftest.val
15095else
15096 ac_cv_sizeof_short=0
15097fi
15098fi
15099echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15100echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15101cat >>confdefs.h <<_ACEOF
15102#define SIZEOF_SHORT $ac_cv_sizeof_short
15103_ACEOF
15104
15105
15106echo "$as_me:$LINENO: checking for void *" >&5
15107echo $ECHO_N "checking for void *... $ECHO_C" >&6
15108if test "${ac_cv_type_void_p+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15110else
15111 cat >conftest.$ac_ext <<_ACEOF
15112/* confdefs.h. */
15113_ACEOF
15114cat confdefs.h >>conftest.$ac_ext
15115cat >>conftest.$ac_ext <<_ACEOF
15116/* end confdefs.h. */
15117$ac_includes_default
15118int
15119main ()
15120{
15121if ((void * *) 0)
15122 return 0;
15123if (sizeof (void *))
15124 return 0;
15125 ;
15126 return 0;
15127}
15128_ACEOF
15129rm -f conftest.$ac_objext
15130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15131 (eval $ac_compile) 2>conftest.er1
a848cd7e 15132 ac_status=$?
ac1cb8d3
VS
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
a848cd7e
SC
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
224bf05c 15138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_cv_type_void_p=yes
15151else
15152 echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
15155ac_cv_type_void_p=no
15156fi
ac1cb8d3 15157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15158fi
15159echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15160echo "${ECHO_T}$ac_cv_type_void_p" >&6
15161
15162echo "$as_me:$LINENO: checking size of void *" >&5
15163echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15164if test "${ac_cv_sizeof_void_p+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166else
15167 if test "$ac_cv_type_void_p" = yes; then
15168 # The cast to unsigned long works around a bug in the HP C Compiler
15169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15171 # This bug is HP SR number 8606223364.
15172 if test "$cross_compiling" = yes; then
15173 # Depending upon the size, compute the lo and hi bounds.
15174cat >conftest.$ac_ext <<_ACEOF
15175/* confdefs.h. */
15176_ACEOF
15177cat confdefs.h >>conftest.$ac_ext
15178cat >>conftest.$ac_ext <<_ACEOF
15179/* end confdefs.h. */
15180$ac_includes_default
15181int
15182main ()
15183{
15184static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15185test_array [0] = 0
15186
15187 ;
15188 return 0;
15189}
15190_ACEOF
15191rm -f conftest.$ac_objext
15192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15193 (eval $ac_compile) 2>conftest.er1
a848cd7e 15194 ac_status=$?
ac1cb8d3
VS
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
a848cd7e
SC
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
224bf05c 15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 ac_lo=0 ac_mid=0
15213 while :; do
15214 cat >conftest.$ac_ext <<_ACEOF
15215/* confdefs.h. */
15216_ACEOF
15217cat confdefs.h >>conftest.$ac_ext
15218cat >>conftest.$ac_ext <<_ACEOF
15219/* end confdefs.h. */
15220$ac_includes_default
15221int
15222main ()
15223{
15224static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15225test_array [0] = 0
15226
15227 ;
15228 return 0;
15229}
15230_ACEOF
15231rm -f conftest.$ac_objext
15232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15233 (eval $ac_compile) 2>conftest.er1
a848cd7e 15234 ac_status=$?
ac1cb8d3
VS
15235 grep -v '^ *+' conftest.er1 >conftest.err
15236 rm -f conftest.er1
15237 cat conftest.err >&5
a848cd7e
SC
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } &&
224bf05c 15240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15252 ac_hi=$ac_mid; break
15253else
15254 echo "$as_me: failed program was:" >&5
15255sed 's/^/| /' conftest.$ac_ext >&5
15256
15257ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15258 if test $ac_lo -le $ac_mid; then
15259 ac_lo= ac_hi=
15260 break
15261 fi
15262 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15263fi
ac1cb8d3 15264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15265 done
15266else
15267 echo "$as_me: failed program was:" >&5
15268sed 's/^/| /' conftest.$ac_ext >&5
15269
15270cat >conftest.$ac_ext <<_ACEOF
15271/* confdefs.h. */
15272_ACEOF
15273cat confdefs.h >>conftest.$ac_ext
15274cat >>conftest.$ac_ext <<_ACEOF
15275/* end confdefs.h. */
15276$ac_includes_default
15277int
15278main ()
15279{
15280static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15281test_array [0] = 0
15282
15283 ;
15284 return 0;
15285}
15286_ACEOF
15287rm -f conftest.$ac_objext
15288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15289 (eval $ac_compile) 2>conftest.er1
a848cd7e 15290 ac_status=$?
ac1cb8d3
VS
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
a848cd7e
SC
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } &&
224bf05c 15296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_hi=-1 ac_mid=-1
15309 while :; do
15310 cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h. */
15316$ac_includes_default
15317int
15318main ()
15319{
15320static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15321test_array [0] = 0
15322
15323 ;
15324 return 0;
15325}
15326_ACEOF
15327rm -f conftest.$ac_objext
15328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15329 (eval $ac_compile) 2>conftest.er1
a848cd7e 15330 ac_status=$?
ac1cb8d3
VS
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
a848cd7e
SC
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
224bf05c 15336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_lo=$ac_mid; break
15349else
15350 echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15354 if test $ac_mid -le $ac_hi; then
15355 ac_lo= ac_hi=
15356 break
15357 fi
15358 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15359fi
ac1cb8d3 15360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15361 done
15362else
15363 echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366ac_lo= ac_hi=
15367fi
ac1cb8d3 15368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15369fi
ac1cb8d3 15370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15371# Binary search between lo and hi bounds.
15372while test "x$ac_lo" != "x$ac_hi"; do
15373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15374 cat >conftest.$ac_ext <<_ACEOF
15375/* confdefs.h. */
15376_ACEOF
15377cat confdefs.h >>conftest.$ac_ext
15378cat >>conftest.$ac_ext <<_ACEOF
15379/* end confdefs.h. */
15380$ac_includes_default
15381int
15382main ()
15383{
15384static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15385test_array [0] = 0
15386
15387 ;
15388 return 0;
15389}
15390_ACEOF
15391rm -f conftest.$ac_objext
15392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15393 (eval $ac_compile) 2>conftest.er1
a848cd7e 15394 ac_status=$?
ac1cb8d3
VS
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
a848cd7e
SC
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
224bf05c 15400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; } &&
15406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_hi=$ac_mid
15413else
15414 echo "$as_me: failed program was:" >&5
15415sed 's/^/| /' conftest.$ac_ext >&5
15416
15417ac_lo=`expr '(' $ac_mid ')' + 1`
15418fi
ac1cb8d3 15419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15420done
15421case $ac_lo in
15422?*) ac_cv_sizeof_void_p=$ac_lo;;
15423'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15424See \`config.log' for more details." >&5
15425echo "$as_me: error: cannot compute sizeof (void *), 77
15426See \`config.log' for more details." >&2;}
15427 { (exit 1); exit 1; }; } ;;
15428esac
15429else
15430 if test "$cross_compiling" = yes; then
224bf05c
VZ
15431 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15432echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15433 { (exit 1); exit 1; }; }
15434else
15435 cat >conftest.$ac_ext <<_ACEOF
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
15441$ac_includes_default
15442long longval () { return (long) (sizeof (void *)); }
15443unsigned long ulongval () { return (long) (sizeof (void *)); }
15444#include <stdio.h>
15445#include <stdlib.h>
15446int
15447main ()
15448{
15449
15450 FILE *f = fopen ("conftest.val", "w");
15451 if (! f)
15452 exit (1);
15453 if (((long) (sizeof (void *))) < 0)
15454 {
15455 long i = longval ();
15456 if (i != ((long) (sizeof (void *))))
15457 exit (1);
15458 fprintf (f, "%ld\n", i);
15459 }
15460 else
15461 {
15462 unsigned long i = ulongval ();
15463 if (i != ((long) (sizeof (void *))))
15464 exit (1);
15465 fprintf (f, "%lu\n", i);
15466 }
15467 exit (ferror (f) || fclose (f) != 0);
15468
15469 ;
15470 return 0;
15471}
15472_ACEOF
15473rm -f conftest$ac_exeext
15474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15475 (eval $ac_link) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480 (eval $ac_try) 2>&5
15481 ac_status=$?
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
15484 ac_cv_sizeof_void_p=`cat conftest.val`
15485else
15486 echo "$as_me: program exited with status $ac_status" >&5
15487echo "$as_me: failed program was:" >&5
15488sed 's/^/| /' conftest.$ac_ext >&5
15489
15490( exit $ac_status )
15491{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15492See \`config.log' for more details." >&5
15493echo "$as_me: error: cannot compute sizeof (void *), 77
15494See \`config.log' for more details." >&2;}
15495 { (exit 1); exit 1; }; }
15496fi
ac1cb8d3 15497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15498fi
15499fi
15500rm -f conftest.val
15501else
15502 ac_cv_sizeof_void_p=0
15503fi
15504fi
15505echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15506echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15507cat >>confdefs.h <<_ACEOF
15508#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15509_ACEOF
15510
15511
15512echo "$as_me:$LINENO: checking for int" >&5
15513echo $ECHO_N "checking for int... $ECHO_C" >&6
15514if test "${ac_cv_type_int+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516else
15517 cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
15523$ac_includes_default
15524int
15525main ()
15526{
15527if ((int *) 0)
15528 return 0;
15529if (sizeof (int))
15530 return 0;
15531 ;
15532 return 0;
15533}
15534_ACEOF
15535rm -f conftest.$ac_objext
15536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15537 (eval $ac_compile) 2>conftest.er1
a848cd7e 15538 ac_status=$?
ac1cb8d3
VS
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
a848cd7e
SC
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
224bf05c 15544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_type_int=yes
15557else
15558 echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561ac_cv_type_int=no
15562fi
ac1cb8d3 15563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15564fi
15565echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15566echo "${ECHO_T}$ac_cv_type_int" >&6
15567
15568echo "$as_me:$LINENO: checking size of int" >&5
15569echo $ECHO_N "checking size of int... $ECHO_C" >&6
15570if test "${ac_cv_sizeof_int+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15572else
15573 if test "$ac_cv_type_int" = yes; then
15574 # The cast to unsigned long works around a bug in the HP C Compiler
15575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15577 # This bug is HP SR number 8606223364.
15578 if test "$cross_compiling" = yes; then
15579 # Depending upon the size, compute the lo and hi bounds.
15580cat >conftest.$ac_ext <<_ACEOF
15581/* confdefs.h. */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h. */
15586$ac_includes_default
15587int
15588main ()
15589{
15590static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15591test_array [0] = 0
15592
15593 ;
15594 return 0;
15595}
15596_ACEOF
15597rm -f conftest.$ac_objext
15598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15599 (eval $ac_compile) 2>conftest.er1
a848cd7e 15600 ac_status=$?
ac1cb8d3
VS
15601 grep -v '^ *+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
a848cd7e
SC
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
224bf05c 15606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_lo=0 ac_mid=0
15619 while :; do
15620 cat >conftest.$ac_ext <<_ACEOF
15621/* confdefs.h. */
15622_ACEOF
15623cat confdefs.h >>conftest.$ac_ext
15624cat >>conftest.$ac_ext <<_ACEOF
15625/* end confdefs.h. */
15626$ac_includes_default
15627int
15628main ()
15629{
15630static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15631test_array [0] = 0
15632
15633 ;
15634 return 0;
15635}
15636_ACEOF
15637rm -f conftest.$ac_objext
15638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15639 (eval $ac_compile) 2>conftest.er1
a848cd7e 15640 ac_status=$?
ac1cb8d3
VS
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
a848cd7e
SC
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
224bf05c 15646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
15652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15658 ac_hi=$ac_mid; break
15659else
15660 echo "$as_me: failed program was:" >&5
15661sed 's/^/| /' conftest.$ac_ext >&5
15662
15663ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15664 if test $ac_lo -le $ac_mid; then
15665 ac_lo= ac_hi=
15666 break
15667 fi
15668 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15669fi
ac1cb8d3 15670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15671 done
15672else
15673 echo "$as_me: failed program was:" >&5
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
15676cat >conftest.$ac_ext <<_ACEOF
15677/* confdefs.h. */
15678_ACEOF
15679cat confdefs.h >>conftest.$ac_ext
15680cat >>conftest.$ac_ext <<_ACEOF
15681/* end confdefs.h. */
15682$ac_includes_default
15683int
15684main ()
15685{
15686static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15687test_array [0] = 0
15688
15689 ;
15690 return 0;
15691}
15692_ACEOF
15693rm -f conftest.$ac_objext
15694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15695 (eval $ac_compile) 2>conftest.er1
a848cd7e 15696 ac_status=$?
ac1cb8d3
VS
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
a848cd7e
SC
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
224bf05c 15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_hi=-1 ac_mid=-1
15715 while :; do
15716 cat >conftest.$ac_ext <<_ACEOF
15717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
15722$ac_includes_default
15723int
15724main ()
15725{
15726static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15727test_array [0] = 0
15728
15729 ;
15730 return 0;
15731}
15732_ACEOF
15733rm -f conftest.$ac_objext
15734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15735 (eval $ac_compile) 2>conftest.er1
a848cd7e 15736 ac_status=$?
ac1cb8d3
VS
15737 grep -v '^ *+' conftest.er1 >conftest.err
15738 rm -f conftest.er1
15739 cat conftest.err >&5
a848cd7e
SC
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
224bf05c 15742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } &&
15748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_lo=$ac_mid; break
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15760 if test $ac_mid -le $ac_hi; then
15761 ac_lo= ac_hi=
15762 break
15763 fi
15764 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15765fi
ac1cb8d3 15766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15767 done
15768else
15769 echo "$as_me: failed program was:" >&5
15770sed 's/^/| /' conftest.$ac_ext >&5
15771
15772ac_lo= ac_hi=
15773fi
ac1cb8d3 15774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15775fi
ac1cb8d3 15776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15777# Binary search between lo and hi bounds.
15778while test "x$ac_lo" != "x$ac_hi"; do
15779 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15780 cat >conftest.$ac_ext <<_ACEOF
15781/* confdefs.h. */
15782_ACEOF
15783cat confdefs.h >>conftest.$ac_ext
15784cat >>conftest.$ac_ext <<_ACEOF
15785/* end confdefs.h. */
15786$ac_includes_default
15787int
15788main ()
15789{
15790static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15791test_array [0] = 0
15792
15793 ;
15794 return 0;
15795}
15796_ACEOF
15797rm -f conftest.$ac_objext
15798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15799 (eval $ac_compile) 2>conftest.er1
a848cd7e 15800 ac_status=$?
ac1cb8d3
VS
15801 grep -v '^ *+' conftest.er1 >conftest.err
15802 rm -f conftest.er1
15803 cat conftest.err >&5
a848cd7e
SC
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
224bf05c 15806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; } &&
15812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15818 ac_hi=$ac_mid
15819else
15820 echo "$as_me: failed program was:" >&5
15821sed 's/^/| /' conftest.$ac_ext >&5
15822
15823ac_lo=`expr '(' $ac_mid ')' + 1`
15824fi
ac1cb8d3 15825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15826done
15827case $ac_lo in
15828?*) ac_cv_sizeof_int=$ac_lo;;
15829'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15830See \`config.log' for more details." >&5
15831echo "$as_me: error: cannot compute sizeof (int), 77
15832See \`config.log' for more details." >&2;}
15833 { (exit 1); exit 1; }; } ;;
15834esac
15835else
15836 if test "$cross_compiling" = yes; then
224bf05c
VZ
15837 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15838echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15839 { (exit 1); exit 1; }; }
15840else
15841 cat >conftest.$ac_ext <<_ACEOF
15842/* confdefs.h. */
15843_ACEOF
15844cat confdefs.h >>conftest.$ac_ext
15845cat >>conftest.$ac_ext <<_ACEOF
15846/* end confdefs.h. */
15847$ac_includes_default
15848long longval () { return (long) (sizeof (int)); }
15849unsigned long ulongval () { return (long) (sizeof (int)); }
15850#include <stdio.h>
15851#include <stdlib.h>
15852int
15853main ()
15854{
15855
15856 FILE *f = fopen ("conftest.val", "w");
15857 if (! f)
15858 exit (1);
15859 if (((long) (sizeof (int))) < 0)
15860 {
15861 long i = longval ();
15862 if (i != ((long) (sizeof (int))))
15863 exit (1);
15864 fprintf (f, "%ld\n", i);
15865 }
15866 else
15867 {
15868 unsigned long i = ulongval ();
15869 if (i != ((long) (sizeof (int))))
15870 exit (1);
15871 fprintf (f, "%lu\n", i);
15872 }
15873 exit (ferror (f) || fclose (f) != 0);
15874
15875 ;
15876 return 0;
15877}
15878_ACEOF
15879rm -f conftest$ac_exeext
15880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15881 (eval $ac_link) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_cv_sizeof_int=`cat conftest.val`
15891else
15892 echo "$as_me: program exited with status $ac_status" >&5
15893echo "$as_me: failed program was:" >&5
15894sed 's/^/| /' conftest.$ac_ext >&5
15895
15896( exit $ac_status )
15897{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15898See \`config.log' for more details." >&5
15899echo "$as_me: error: cannot compute sizeof (int), 77
15900See \`config.log' for more details." >&2;}
15901 { (exit 1); exit 1; }; }
15902fi
ac1cb8d3 15903rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15904fi
15905fi
15906rm -f conftest.val
15907else
15908 ac_cv_sizeof_int=0
15909fi
15910fi
15911echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15912echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15913cat >>confdefs.h <<_ACEOF
15914#define SIZEOF_INT $ac_cv_sizeof_int
15915_ACEOF
15916
15917
15918echo "$as_me:$LINENO: checking for long" >&5
15919echo $ECHO_N "checking for long... $ECHO_C" >&6
15920if test "${ac_cv_type_long+set}" = set; then
15921 echo $ECHO_N "(cached) $ECHO_C" >&6
15922else
15923 cat >conftest.$ac_ext <<_ACEOF
15924/* confdefs.h. */
15925_ACEOF
15926cat confdefs.h >>conftest.$ac_ext
15927cat >>conftest.$ac_ext <<_ACEOF
15928/* end confdefs.h. */
15929$ac_includes_default
15930int
15931main ()
15932{
15933if ((long *) 0)
15934 return 0;
15935if (sizeof (long))
15936 return 0;
15937 ;
15938 return 0;
15939}
15940_ACEOF
15941rm -f conftest.$ac_objext
15942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15943 (eval $ac_compile) 2>conftest.er1
a848cd7e 15944 ac_status=$?
ac1cb8d3
VS
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
a848cd7e
SC
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
224bf05c 15950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_cv_type_long=yes
15963else
15964 echo "$as_me: failed program was:" >&5
15965sed 's/^/| /' conftest.$ac_ext >&5
15966
15967ac_cv_type_long=no
15968fi
ac1cb8d3 15969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15970fi
15971echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15972echo "${ECHO_T}$ac_cv_type_long" >&6
15973
15974echo "$as_me:$LINENO: checking size of long" >&5
15975echo $ECHO_N "checking size of long... $ECHO_C" >&6
15976if test "${ac_cv_sizeof_long+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15978else
15979 if test "$ac_cv_type_long" = yes; then
15980 # The cast to unsigned long works around a bug in the HP C Compiler
15981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15983 # This bug is HP SR number 8606223364.
15984 if test "$cross_compiling" = yes; then
15985 # Depending upon the size, compute the lo and hi bounds.
15986cat >conftest.$ac_ext <<_ACEOF
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992$ac_includes_default
15993int
15994main ()
15995{
15996static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15997test_array [0] = 0
15998
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext
16004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16005 (eval $ac_compile) 2>conftest.er1
a848cd7e 16006 ac_status=$?
ac1cb8d3
VS
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
a848cd7e
SC
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
224bf05c 16012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_lo=0 ac_mid=0
16025 while :; do
16026 cat >conftest.$ac_ext <<_ACEOF
16027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
16032$ac_includes_default
16033int
16034main ()
16035{
16036static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16037test_array [0] = 0
16038
16039 ;
16040 return 0;
16041}
16042_ACEOF
16043rm -f conftest.$ac_objext
16044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16045 (eval $ac_compile) 2>conftest.er1
a848cd7e 16046 ac_status=$?
ac1cb8d3
VS
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
a848cd7e
SC
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
224bf05c 16052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; } &&
16058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; }; then
16064 ac_hi=$ac_mid; break
16065else
16066 echo "$as_me: failed program was:" >&5
16067sed 's/^/| /' conftest.$ac_ext >&5
16068
16069ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16070 if test $ac_lo -le $ac_mid; then
16071 ac_lo= ac_hi=
16072 break
16073 fi
16074 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16075fi
ac1cb8d3 16076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16077 done
16078else
16079 echo "$as_me: failed program was:" >&5
16080sed 's/^/| /' conftest.$ac_ext >&5
16081
16082cat >conftest.$ac_ext <<_ACEOF
16083/* confdefs.h. */
16084_ACEOF
16085cat confdefs.h >>conftest.$ac_ext
16086cat >>conftest.$ac_ext <<_ACEOF
16087/* end confdefs.h. */
16088$ac_includes_default
16089int
16090main ()
16091{
16092static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16093test_array [0] = 0
16094
16095 ;
16096 return 0;
16097}
16098_ACEOF
16099rm -f conftest.$ac_objext
16100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16101 (eval $ac_compile) 2>conftest.er1
a848cd7e 16102 ac_status=$?
ac1cb8d3
VS
16103 grep -v '^ *+' conftest.er1 >conftest.err
16104 rm -f conftest.er1
16105 cat conftest.err >&5
a848cd7e
SC
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
224bf05c 16108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; } &&
16114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_hi=-1 ac_mid=-1
16121 while :; do
16122 cat >conftest.$ac_ext <<_ACEOF
16123/* confdefs.h. */
16124_ACEOF
16125cat confdefs.h >>conftest.$ac_ext
16126cat >>conftest.$ac_ext <<_ACEOF
16127/* end confdefs.h. */
16128$ac_includes_default
16129int
16130main ()
16131{
16132static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16133test_array [0] = 0
16134
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139rm -f conftest.$ac_objext
16140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16141 (eval $ac_compile) 2>conftest.er1
a848cd7e 16142 ac_status=$?
ac1cb8d3
VS
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
a848cd7e
SC
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
224bf05c 16148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ac_lo=$ac_mid; break
16161else
16162 echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
16165ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16166 if test $ac_mid -le $ac_hi; then
16167 ac_lo= ac_hi=
16168 break
16169 fi
16170 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16171fi
ac1cb8d3 16172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16173 done
16174else
16175 echo "$as_me: failed program was:" >&5
16176sed 's/^/| /' conftest.$ac_ext >&5
16177
16178ac_lo= ac_hi=
16179fi
ac1cb8d3 16180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16181fi
ac1cb8d3 16182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16183# Binary search between lo and hi bounds.
16184while test "x$ac_lo" != "x$ac_hi"; do
16185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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); } &&
224bf05c 16212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_hi=$ac_mid
16225else
16226 echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
16228
16229ac_lo=`expr '(' $ac_mid ')' + 1`
16230fi
ac1cb8d3 16231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16232done
16233case $ac_lo in
16234?*) ac_cv_sizeof_long=$ac_lo;;
16235'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16236See \`config.log' for more details." >&5
16237echo "$as_me: error: cannot compute sizeof (long), 77
16238See \`config.log' for more details." >&2;}
16239 { (exit 1); exit 1; }; } ;;
16240esac
16241else
16242 if test "$cross_compiling" = yes; then
224bf05c
VZ
16243 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16244echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16245 { (exit 1); exit 1; }; }
16246else
16247 cat >conftest.$ac_ext <<_ACEOF
16248/* confdefs.h. */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h. */
16253$ac_includes_default
16254long longval () { return (long) (sizeof (long)); }
16255unsigned long ulongval () { return (long) (sizeof (long)); }
16256#include <stdio.h>
16257#include <stdlib.h>
16258int
16259main ()
16260{
16261
16262 FILE *f = fopen ("conftest.val", "w");
16263 if (! f)
16264 exit (1);
16265 if (((long) (sizeof (long))) < 0)
16266 {
16267 long i = longval ();
16268 if (i != ((long) (sizeof (long))))
16269 exit (1);
16270 fprintf (f, "%ld\n", i);
16271 }
16272 else
16273 {
16274 unsigned long i = ulongval ();
16275 if (i != ((long) (sizeof (long))))
16276 exit (1);
16277 fprintf (f, "%lu\n", i);
16278 }
16279 exit (ferror (f) || fclose (f) != 0);
16280
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest$ac_exeext
16286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16296 ac_cv_sizeof_long=`cat conftest.val`
16297else
16298 echo "$as_me: program exited with status $ac_status" >&5
16299echo "$as_me: failed program was:" >&5
16300sed 's/^/| /' conftest.$ac_ext >&5
16301
16302( exit $ac_status )
16303{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16304See \`config.log' for more details." >&5
16305echo "$as_me: error: cannot compute sizeof (long), 77
16306See \`config.log' for more details." >&2;}
16307 { (exit 1); exit 1; }; }
16308fi
ac1cb8d3 16309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16310fi
16311fi
16312rm -f conftest.val
16313else
16314 ac_cv_sizeof_long=0
16315fi
16316fi
16317echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16318echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16319cat >>confdefs.h <<_ACEOF
16320#define SIZEOF_LONG $ac_cv_sizeof_long
16321_ACEOF
16322
16323
16324echo "$as_me:$LINENO: checking for size_t" >&5
16325echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16326if test "${ac_cv_type_size_t+set}" = set; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16328else
16329 cat >conftest.$ac_ext <<_ACEOF
16330/* confdefs.h. */
16331_ACEOF
16332cat confdefs.h >>conftest.$ac_ext
16333cat >>conftest.$ac_ext <<_ACEOF
16334/* end confdefs.h. */
16335$ac_includes_default
16336int
16337main ()
16338{
16339if ((size_t *) 0)
16340 return 0;
16341if (sizeof (size_t))
16342 return 0;
16343 ;
16344 return 0;
16345}
16346_ACEOF
16347rm -f conftest.$ac_objext
16348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16349 (eval $ac_compile) 2>conftest.er1
a848cd7e 16350 ac_status=$?
ac1cb8d3
VS
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
a848cd7e
SC
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
224bf05c 16356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_cv_type_size_t=yes
16369else
16370 echo "$as_me: failed program was:" >&5
16371sed 's/^/| /' conftest.$ac_ext >&5
16372
16373ac_cv_type_size_t=no
16374fi
ac1cb8d3 16375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16376fi
16377echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16378echo "${ECHO_T}$ac_cv_type_size_t" >&6
16379
16380echo "$as_me:$LINENO: checking size of size_t" >&5
16381echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16382if test "${ac_cv_sizeof_size_t+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16384else
16385 if test "$ac_cv_type_size_t" = yes; then
16386 # The cast to unsigned long works around a bug in the HP C Compiler
16387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16389 # This bug is HP SR number 8606223364.
16390 if test "$cross_compiling" = yes; then
16391 # Depending upon the size, compute the lo and hi bounds.
16392cat >conftest.$ac_ext <<_ACEOF
16393/* confdefs.h. */
16394_ACEOF
16395cat confdefs.h >>conftest.$ac_ext
16396cat >>conftest.$ac_ext <<_ACEOF
16397/* end confdefs.h. */
16398$ac_includes_default
16399int
16400main ()
16401{
16402static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16403test_array [0] = 0
16404
16405 ;
16406 return 0;
16407}
16408_ACEOF
16409rm -f conftest.$ac_objext
16410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16411 (eval $ac_compile) 2>conftest.er1
a848cd7e 16412 ac_status=$?
ac1cb8d3
VS
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
a848cd7e
SC
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
224bf05c 16418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_lo=0 ac_mid=0
16431 while :; do
16432 cat >conftest.$ac_ext <<_ACEOF
16433/* confdefs.h. */
16434_ACEOF
16435cat confdefs.h >>conftest.$ac_ext
16436cat >>conftest.$ac_ext <<_ACEOF
16437/* end confdefs.h. */
16438$ac_includes_default
16439int
16440main ()
16441{
16442static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16443test_array [0] = 0
16444
16445 ;
16446 return 0;
16447}
16448_ACEOF
16449rm -f conftest.$ac_objext
16450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16451 (eval $ac_compile) 2>conftest.er1
a848cd7e 16452 ac_status=$?
ac1cb8d3
VS
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
a848cd7e
SC
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
224bf05c 16458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16470 ac_hi=$ac_mid; break
16471else
16472 echo "$as_me: failed program was:" >&5
16473sed 's/^/| /' conftest.$ac_ext >&5
16474
16475ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16476 if test $ac_lo -le $ac_mid; then
16477 ac_lo= ac_hi=
16478 break
16479 fi
16480 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16481fi
ac1cb8d3 16482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16483 done
16484else
16485 echo "$as_me: failed program was:" >&5
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
16488cat >conftest.$ac_ext <<_ACEOF
16489/* confdefs.h. */
16490_ACEOF
16491cat confdefs.h >>conftest.$ac_ext
16492cat >>conftest.$ac_ext <<_ACEOF
16493/* end confdefs.h. */
16494$ac_includes_default
16495int
16496main ()
16497{
16498static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16499test_array [0] = 0
16500
16501 ;
16502 return 0;
16503}
16504_ACEOF
16505rm -f conftest.$ac_objext
16506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16507 (eval $ac_compile) 2>conftest.er1
a848cd7e 16508 ac_status=$?
ac1cb8d3
VS
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
a848cd7e
SC
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
224bf05c 16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_hi=-1 ac_mid=-1
16527 while :; do
16528 cat >conftest.$ac_ext <<_ACEOF
16529/* confdefs.h. */
16530_ACEOF
16531cat confdefs.h >>conftest.$ac_ext
16532cat >>conftest.$ac_ext <<_ACEOF
16533/* end confdefs.h. */
16534$ac_includes_default
16535int
16536main ()
16537{
16538static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16539test_array [0] = 0
16540
16541 ;
16542 return 0;
16543}
16544_ACEOF
16545rm -f conftest.$ac_objext
16546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16547 (eval $ac_compile) 2>conftest.er1
a848cd7e 16548 ac_status=$?
ac1cb8d3
VS
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
a848cd7e
SC
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
224bf05c 16554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_lo=$ac_mid; break
16567else
16568 echo "$as_me: failed program was:" >&5
16569sed 's/^/| /' conftest.$ac_ext >&5
16570
16571ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16572 if test $ac_mid -le $ac_hi; then
16573 ac_lo= ac_hi=
16574 break
16575 fi
16576 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16577fi
ac1cb8d3 16578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16579 done
16580else
16581 echo "$as_me: failed program was:" >&5
16582sed 's/^/| /' conftest.$ac_ext >&5
16583
16584ac_lo= ac_hi=
16585fi
ac1cb8d3 16586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16587fi
ac1cb8d3 16588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16589# Binary search between lo and hi bounds.
16590while test "x$ac_lo" != "x$ac_hi"; do
16591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16592 cat >conftest.$ac_ext <<_ACEOF
16593/* confdefs.h. */
16594_ACEOF
16595cat confdefs.h >>conftest.$ac_ext
16596cat >>conftest.$ac_ext <<_ACEOF
16597/* end confdefs.h. */
16598$ac_includes_default
16599int
16600main ()
16601{
16602static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16603test_array [0] = 0
16604
16605 ;
16606 return 0;
16607}
16608_ACEOF
16609rm -f conftest.$ac_objext
16610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16611 (eval $ac_compile) 2>conftest.er1
a848cd7e 16612 ac_status=$?
ac1cb8d3
VS
16613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
a848cd7e
SC
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
224bf05c 16618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; } &&
16624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 ac_hi=$ac_mid
16631else
16632 echo "$as_me: failed program was:" >&5
16633sed 's/^/| /' conftest.$ac_ext >&5
16634
16635ac_lo=`expr '(' $ac_mid ')' + 1`
16636fi
ac1cb8d3 16637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16638done
16639case $ac_lo in
16640?*) ac_cv_sizeof_size_t=$ac_lo;;
16641'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16642See \`config.log' for more details." >&5
16643echo "$as_me: error: cannot compute sizeof (size_t), 77
16644See \`config.log' for more details." >&2;}
16645 { (exit 1); exit 1; }; } ;;
16646esac
16647else
16648 if test "$cross_compiling" = yes; then
224bf05c
VZ
16649 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16650echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16651 { (exit 1); exit 1; }; }
16652else
16653 cat >conftest.$ac_ext <<_ACEOF
16654/* confdefs.h. */
16655_ACEOF
16656cat confdefs.h >>conftest.$ac_ext
16657cat >>conftest.$ac_ext <<_ACEOF
16658/* end confdefs.h. */
16659$ac_includes_default
16660long longval () { return (long) (sizeof (size_t)); }
16661unsigned long ulongval () { return (long) (sizeof (size_t)); }
16662#include <stdio.h>
16663#include <stdlib.h>
16664int
16665main ()
16666{
16667
16668 FILE *f = fopen ("conftest.val", "w");
16669 if (! f)
16670 exit (1);
16671 if (((long) (sizeof (size_t))) < 0)
16672 {
16673 long i = longval ();
16674 if (i != ((long) (sizeof (size_t))))
16675 exit (1);
16676 fprintf (f, "%ld\n", i);
16677 }
16678 else
16679 {
16680 unsigned long i = ulongval ();
16681 if (i != ((long) (sizeof (size_t))))
16682 exit (1);
16683 fprintf (f, "%lu\n", i);
16684 }
16685 exit (ferror (f) || fclose (f) != 0);
16686
16687 ;
16688 return 0;
16689}
16690_ACEOF
16691rm -f conftest$ac_exeext
16692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16693 (eval $ac_link) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ac_cv_sizeof_size_t=`cat conftest.val`
16703else
16704 echo "$as_me: program exited with status $ac_status" >&5
16705echo "$as_me: failed program was:" >&5
16706sed 's/^/| /' conftest.$ac_ext >&5
16707
16708( exit $ac_status )
16709{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16710See \`config.log' for more details." >&5
16711echo "$as_me: error: cannot compute sizeof (size_t), 77
16712See \`config.log' for more details." >&2;}
16713 { (exit 1); exit 1; }; }
16714fi
ac1cb8d3 16715rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16716fi
16717fi
16718rm -f conftest.val
16719else
16720 ac_cv_sizeof_size_t=0
16721fi
16722fi
16723echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16724echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16725cat >>confdefs.h <<_ACEOF
16726#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16727_ACEOF
16728
16729
16730
16731case "${host}" in
16732 arm-*-linux* )
16733 echo "$as_me:$LINENO: checking for long long" >&5
16734echo $ECHO_N "checking for long long... $ECHO_C" >&6
16735if test "${ac_cv_type_long_long+set}" = set; then
16736 echo $ECHO_N "(cached) $ECHO_C" >&6
16737else
16738 cat >conftest.$ac_ext <<_ACEOF
16739/* confdefs.h. */
16740_ACEOF
16741cat confdefs.h >>conftest.$ac_ext
16742cat >>conftest.$ac_ext <<_ACEOF
16743/* end confdefs.h. */
16744$ac_includes_default
16745int
16746main ()
16747{
16748if ((long long *) 0)
16749 return 0;
16750if (sizeof (long long))
16751 return 0;
16752 ;
16753 return 0;
16754}
16755_ACEOF
16756rm -f conftest.$ac_objext
16757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16758 (eval $ac_compile) 2>conftest.er1
a848cd7e 16759 ac_status=$?
ac1cb8d3
VS
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
a848cd7e
SC
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } &&
224bf05c 16765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_cv_type_long_long=yes
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782ac_cv_type_long_long=no
16783fi
ac1cb8d3 16784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16785fi
16786echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16787echo "${ECHO_T}$ac_cv_type_long_long" >&6
16788
16789echo "$as_me:$LINENO: checking size of long long" >&5
16790echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16791if test "${ac_cv_sizeof_long_long+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793else
16794 if test "$ac_cv_type_long_long" = yes; then
16795 # The cast to unsigned long works around a bug in the HP C Compiler
16796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16798 # This bug is HP SR number 8606223364.
16799 if test "$cross_compiling" = yes; then
16800 # Depending upon the size, compute the lo and hi bounds.
16801cat >conftest.$ac_ext <<_ACEOF
16802/* confdefs.h. */
16803_ACEOF
16804cat confdefs.h >>conftest.$ac_ext
16805cat >>conftest.$ac_ext <<_ACEOF
16806/* end confdefs.h. */
16807$ac_includes_default
16808int
16809main ()
16810{
16811static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16812test_array [0] = 0
16813
16814 ;
16815 return 0;
16816}
16817_ACEOF
16818rm -f conftest.$ac_objext
16819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16820 (eval $ac_compile) 2>conftest.er1
a848cd7e 16821 ac_status=$?
ac1cb8d3
VS
16822 grep -v '^ *+' conftest.er1 >conftest.err
16823 rm -f conftest.er1
16824 cat conftest.err >&5
a848cd7e
SC
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } &&
224bf05c 16827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 ac_lo=0 ac_mid=0
16840 while :; do
16841 cat >conftest.$ac_ext <<_ACEOF
16842/* confdefs.h. */
16843_ACEOF
16844cat confdefs.h >>conftest.$ac_ext
16845cat >>conftest.$ac_ext <<_ACEOF
16846/* end confdefs.h. */
16847$ac_includes_default
16848int
16849main ()
16850{
16851static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16852test_array [0] = 0
16853
16854 ;
16855 return 0;
16856}
16857_ACEOF
16858rm -f conftest.$ac_objext
16859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16860 (eval $ac_compile) 2>conftest.er1
a848cd7e 16861 ac_status=$?
ac1cb8d3
VS
16862 grep -v '^ *+' conftest.er1 >conftest.err
16863 rm -f conftest.er1
16864 cat conftest.err >&5
a848cd7e
SC
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
224bf05c 16867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; } &&
16873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879 ac_hi=$ac_mid; break
16880else
16881 echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
16884ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16885 if test $ac_lo -le $ac_mid; then
16886 ac_lo= ac_hi=
16887 break
16888 fi
16889 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16890fi
ac1cb8d3 16891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16892 done
16893else
16894 echo "$as_me: failed program was:" >&5
16895sed 's/^/| /' conftest.$ac_ext >&5
16896
16897cat >conftest.$ac_ext <<_ACEOF
16898/* confdefs.h. */
16899_ACEOF
16900cat confdefs.h >>conftest.$ac_ext
16901cat >>conftest.$ac_ext <<_ACEOF
16902/* end confdefs.h. */
16903$ac_includes_default
16904int
16905main ()
16906{
16907static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16908test_array [0] = 0
16909
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext
16915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16916 (eval $ac_compile) 2>conftest.er1
a848cd7e 16917 ac_status=$?
ac1cb8d3
VS
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
a848cd7e
SC
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
224bf05c 16923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 ac_hi=-1 ac_mid=-1
16936 while :; do
16937 cat >conftest.$ac_ext <<_ACEOF
16938/* confdefs.h. */
16939_ACEOF
16940cat confdefs.h >>conftest.$ac_ext
16941cat >>conftest.$ac_ext <<_ACEOF
16942/* end confdefs.h. */
16943$ac_includes_default
16944int
16945main ()
16946{
16947static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16948test_array [0] = 0
16949
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954rm -f conftest.$ac_objext
16955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16956 (eval $ac_compile) 2>conftest.er1
a848cd7e 16957 ac_status=$?
ac1cb8d3
VS
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
a848cd7e
SC
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
224bf05c 16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_lo=$ac_mid; break
16976else
16977 echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16981 if test $ac_mid -le $ac_hi; then
16982 ac_lo= ac_hi=
16983 break
16984 fi
16985 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16986fi
ac1cb8d3 16987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16988 done
16989else
16990 echo "$as_me: failed program was:" >&5
16991sed 's/^/| /' conftest.$ac_ext >&5
16992
16993ac_lo= ac_hi=
16994fi
ac1cb8d3 16995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16996fi
ac1cb8d3 16997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16998# Binary search between lo and hi bounds.
16999while test "x$ac_lo" != "x$ac_hi"; do
17000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17001 cat >conftest.$ac_ext <<_ACEOF
17002/* confdefs.h. */
17003_ACEOF
17004cat confdefs.h >>conftest.$ac_ext
17005cat >>conftest.$ac_ext <<_ACEOF
17006/* end confdefs.h. */
17007$ac_includes_default
17008int
17009main ()
17010{
17011static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17012test_array [0] = 0
17013
17014 ;
17015 return 0;
17016}
17017_ACEOF
17018rm -f conftest.$ac_objext
17019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17020 (eval $ac_compile) 2>conftest.er1
a848cd7e 17021 ac_status=$?
ac1cb8d3
VS
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
a848cd7e
SC
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
224bf05c 17027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; } &&
17033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_hi=$ac_mid
17040else
17041 echo "$as_me: failed program was:" >&5
17042sed 's/^/| /' conftest.$ac_ext >&5
17043
17044ac_lo=`expr '(' $ac_mid ')' + 1`
17045fi
ac1cb8d3 17046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17047done
17048case $ac_lo in
17049?*) ac_cv_sizeof_long_long=$ac_lo;;
17050'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17051See \`config.log' for more details." >&5
17052echo "$as_me: error: cannot compute sizeof (long long), 77
17053See \`config.log' for more details." >&2;}
17054 { (exit 1); exit 1; }; } ;;
17055esac
17056else
17057 if test "$cross_compiling" = yes; then
224bf05c
VZ
17058 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17059echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17060 { (exit 1); exit 1; }; }
17061else
17062 cat >conftest.$ac_ext <<_ACEOF
17063/* confdefs.h. */
17064_ACEOF
17065cat confdefs.h >>conftest.$ac_ext
17066cat >>conftest.$ac_ext <<_ACEOF
17067/* end confdefs.h. */
17068$ac_includes_default
17069long longval () { return (long) (sizeof (long long)); }
17070unsigned long ulongval () { return (long) (sizeof (long long)); }
17071#include <stdio.h>
17072#include <stdlib.h>
17073int
17074main ()
17075{
17076
17077 FILE *f = fopen ("conftest.val", "w");
17078 if (! f)
17079 exit (1);
17080 if (((long) (sizeof (long long))) < 0)
17081 {
17082 long i = longval ();
17083 if (i != ((long) (sizeof (long long))))
17084 exit (1);
17085 fprintf (f, "%ld\n", i);
17086 }
17087 else
17088 {
17089 unsigned long i = ulongval ();
17090 if (i != ((long) (sizeof (long long))))
17091 exit (1);
17092 fprintf (f, "%lu\n", i);
17093 }
17094 exit (ferror (f) || fclose (f) != 0);
17095
17096 ;
17097 return 0;
17098}
17099_ACEOF
17100rm -f conftest$ac_exeext
17101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17102 (eval $ac_link) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_cv_sizeof_long_long=`cat conftest.val`
17112else
17113 echo "$as_me: program exited with status $ac_status" >&5
17114echo "$as_me: failed program was:" >&5
17115sed 's/^/| /' conftest.$ac_ext >&5
17116
17117( exit $ac_status )
17118{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17119See \`config.log' for more details." >&5
17120echo "$as_me: error: cannot compute sizeof (long long), 77
17121See \`config.log' for more details." >&2;}
17122 { (exit 1); exit 1; }; }
17123fi
ac1cb8d3 17124rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17125fi
17126fi
17127rm -f conftest.val
17128else
17129 ac_cv_sizeof_long_long=0
17130fi
17131fi
17132echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17133echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17134cat >>confdefs.h <<_ACEOF
17135#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17136_ACEOF
17137
17138
17139 ;;
17140 *-hp-hpux* )
17141 echo "$as_me:$LINENO: checking for long long" >&5
17142echo $ECHO_N "checking for long long... $ECHO_C" >&6
17143if test "${ac_cv_type_long_long+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
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
17153int
17154main ()
17155{
17156if ((long long *) 0)
17157 return 0;
17158if (sizeof (long long))
17159 return 0;
17160 ;
17161 return 0;
17162}
17163_ACEOF
17164rm -f conftest.$ac_objext
17165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17166 (eval $ac_compile) 2>conftest.er1
a848cd7e 17167 ac_status=$?
ac1cb8d3
VS
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
a848cd7e
SC
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
224bf05c 17173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; } &&
17179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_cv_type_long_long=yes
17186else
17187 echo "$as_me: failed program was:" >&5
17188sed 's/^/| /' conftest.$ac_ext >&5
17189
17190ac_cv_type_long_long=no
17191fi
ac1cb8d3 17192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17193fi
17194echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17195echo "${ECHO_T}$ac_cv_type_long_long" >&6
17196
17197echo "$as_me:$LINENO: checking size of long long" >&5
17198echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17199if test "${ac_cv_sizeof_long_long+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17201else
17202 if test "$ac_cv_type_long_long" = yes; then
17203 # The cast to unsigned long works around a bug in the HP C Compiler
17204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17206 # This bug is HP SR number 8606223364.
17207 if test "$cross_compiling" = yes; then
17208 # Depending upon the size, compute the lo and hi bounds.
17209cat >conftest.$ac_ext <<_ACEOF
17210/* confdefs.h. */
17211_ACEOF
17212cat confdefs.h >>conftest.$ac_ext
17213cat >>conftest.$ac_ext <<_ACEOF
17214/* end confdefs.h. */
17215$ac_includes_default
17216int
17217main ()
17218{
17219static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17220test_array [0] = 0
17221
17222 ;
17223 return 0;
17224}
17225_ACEOF
17226rm -f conftest.$ac_objext
17227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17228 (eval $ac_compile) 2>conftest.er1
a848cd7e 17229 ac_status=$?
ac1cb8d3
VS
17230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
a848cd7e
SC
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
224bf05c 17235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; } &&
17241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; }; then
17247 ac_lo=0 ac_mid=0
17248 while :; do
17249 cat >conftest.$ac_ext <<_ACEOF
17250/* confdefs.h. */
17251_ACEOF
17252cat confdefs.h >>conftest.$ac_ext
17253cat >>conftest.$ac_ext <<_ACEOF
17254/* end confdefs.h. */
17255$ac_includes_default
17256int
17257main ()
17258{
17259static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17260test_array [0] = 0
17261
17262 ;
17263 return 0;
17264}
17265_ACEOF
17266rm -f conftest.$ac_objext
17267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17268 (eval $ac_compile) 2>conftest.er1
a848cd7e 17269 ac_status=$?
ac1cb8d3
VS
17270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
a848cd7e
SC
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
224bf05c 17275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_hi=$ac_mid; break
17288else
17289 echo "$as_me: failed program was:" >&5
17290sed 's/^/| /' conftest.$ac_ext >&5
17291
17292ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17293 if test $ac_lo -le $ac_mid; then
17294 ac_lo= ac_hi=
17295 break
17296 fi
17297 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17298fi
ac1cb8d3 17299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17300 done
17301else
17302 echo "$as_me: failed program was:" >&5
17303sed 's/^/| /' conftest.$ac_ext >&5
17304
17305cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
17311$ac_includes_default
17312int
17313main ()
17314{
17315static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17316test_array [0] = 0
17317
17318 ;
17319 return 0;
17320}
17321_ACEOF
17322rm -f conftest.$ac_objext
17323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17324 (eval $ac_compile) 2>conftest.er1
a848cd7e 17325 ac_status=$?
ac1cb8d3
VS
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
a848cd7e
SC
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
224bf05c 17331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_hi=-1 ac_mid=-1
17344 while :; do
17345 cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h. */
17351$ac_includes_default
17352int
17353main ()
17354{
17355static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17356test_array [0] = 0
17357
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext
17363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17364 (eval $ac_compile) 2>conftest.er1
a848cd7e 17365 ac_status=$?
ac1cb8d3
VS
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
a848cd7e
SC
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
224bf05c 17371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_lo=$ac_mid; break
17384else
17385 echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
17388ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17389 if test $ac_mid -le $ac_hi; then
17390 ac_lo= ac_hi=
17391 break
17392 fi
17393 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17394fi
ac1cb8d3 17395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17396 done
17397else
17398 echo "$as_me: failed program was:" >&5
17399sed 's/^/| /' conftest.$ac_ext >&5
17400
17401ac_lo= ac_hi=
17402fi
ac1cb8d3 17403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17404fi
ac1cb8d3 17405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17406# Binary search between lo and hi bounds.
17407while test "x$ac_lo" != "x$ac_hi"; do
17408 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17409 cat >conftest.$ac_ext <<_ACEOF
17410/* confdefs.h. */
17411_ACEOF
17412cat confdefs.h >>conftest.$ac_ext
17413cat >>conftest.$ac_ext <<_ACEOF
17414/* end confdefs.h. */
17415$ac_includes_default
17416int
17417main ()
17418{
17419static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17420test_array [0] = 0
17421
17422 ;
17423 return 0;
17424}
17425_ACEOF
17426rm -f conftest.$ac_objext
17427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17428 (eval $ac_compile) 2>conftest.er1
a848cd7e 17429 ac_status=$?
ac1cb8d3
VS
17430 grep -v '^ *+' conftest.er1 >conftest.err
17431 rm -f conftest.er1
17432 cat conftest.err >&5
a848cd7e
SC
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
224bf05c 17435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17447 ac_hi=$ac_mid
17448else
17449 echo "$as_me: failed program was:" >&5
17450sed 's/^/| /' conftest.$ac_ext >&5
17451
17452ac_lo=`expr '(' $ac_mid ')' + 1`
17453fi
ac1cb8d3 17454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17455done
17456case $ac_lo in
17457?*) ac_cv_sizeof_long_long=$ac_lo;;
17458'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17459See \`config.log' for more details." >&5
17460echo "$as_me: error: cannot compute sizeof (long long), 77
17461See \`config.log' for more details." >&2;}
17462 { (exit 1); exit 1; }; } ;;
17463esac
17464else
17465 if test "$cross_compiling" = yes; then
224bf05c
VZ
17466 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17467echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17468 { (exit 1); exit 1; }; }
17469else
17470 cat >conftest.$ac_ext <<_ACEOF
17471/* confdefs.h. */
17472_ACEOF
17473cat confdefs.h >>conftest.$ac_ext
17474cat >>conftest.$ac_ext <<_ACEOF
17475/* end confdefs.h. */
17476$ac_includes_default
17477long longval () { return (long) (sizeof (long long)); }
17478unsigned long ulongval () { return (long) (sizeof (long long)); }
17479#include <stdio.h>
17480#include <stdlib.h>
17481int
17482main ()
17483{
17484
17485 FILE *f = fopen ("conftest.val", "w");
17486 if (! f)
17487 exit (1);
17488 if (((long) (sizeof (long long))) < 0)
17489 {
17490 long i = longval ();
17491 if (i != ((long) (sizeof (long long))))
17492 exit (1);
17493 fprintf (f, "%ld\n", i);
17494 }
17495 else
17496 {
17497 unsigned long i = ulongval ();
17498 if (i != ((long) (sizeof (long long))))
17499 exit (1);
17500 fprintf (f, "%lu\n", i);
17501 }
17502 exit (ferror (f) || fclose (f) != 0);
17503
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest$ac_exeext
17509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510 (eval $ac_link) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_sizeof_long_long=`cat conftest.val`
17520else
17521 echo "$as_me: program exited with status $ac_status" >&5
17522echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
17525( exit $ac_status )
17526{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17527See \`config.log' for more details." >&5
17528echo "$as_me: error: cannot compute sizeof (long long), 77
17529See \`config.log' for more details." >&2;}
17530 { (exit 1); exit 1; }; }
17531fi
ac1cb8d3 17532rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17533fi
17534fi
17535rm -f conftest.val
17536else
17537 ac_cv_sizeof_long_long=0
17538fi
17539fi
17540echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17541echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17542cat >>confdefs.h <<_ACEOF
17543#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17544_ACEOF
17545
17546
17547 if test "$ac_cv_sizeof_long_long" != "0"; then
17548 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17549 fi
17550 ;;
17551 * )
17552 echo "$as_me:$LINENO: checking for long long" >&5
17553echo $ECHO_N "checking for long long... $ECHO_C" >&6
17554if test "${ac_cv_type_long_long+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556else
17557 cat >conftest.$ac_ext <<_ACEOF
17558/* confdefs.h. */
17559_ACEOF
17560cat confdefs.h >>conftest.$ac_ext
17561cat >>conftest.$ac_ext <<_ACEOF
17562/* end confdefs.h. */
17563$ac_includes_default
17564int
17565main ()
17566{
17567if ((long long *) 0)
17568 return 0;
17569if (sizeof (long long))
17570 return 0;
17571 ;
17572 return 0;
17573}
17574_ACEOF
17575rm -f conftest.$ac_objext
17576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17577 (eval $ac_compile) 2>conftest.er1
a848cd7e 17578 ac_status=$?
ac1cb8d3
VS
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
a848cd7e
SC
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
224bf05c 17584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_type_long_long=yes
17597else
17598 echo "$as_me: failed program was:" >&5
17599sed 's/^/| /' conftest.$ac_ext >&5
17600
17601ac_cv_type_long_long=no
17602fi
ac1cb8d3 17603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17604fi
17605echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17606echo "${ECHO_T}$ac_cv_type_long_long" >&6
17607
17608echo "$as_me:$LINENO: checking size of long long" >&5
17609echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17610if test "${ac_cv_sizeof_long_long+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612else
17613 if test "$ac_cv_type_long_long" = yes; then
17614 # The cast to unsigned long works around a bug in the HP C Compiler
17615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17617 # This bug is HP SR number 8606223364.
17618 if test "$cross_compiling" = yes; then
17619 # Depending upon the size, compute the lo and hi bounds.
17620cat >conftest.$ac_ext <<_ACEOF
17621/* confdefs.h. */
17622_ACEOF
17623cat confdefs.h >>conftest.$ac_ext
17624cat >>conftest.$ac_ext <<_ACEOF
17625/* end confdefs.h. */
17626$ac_includes_default
17627int
17628main ()
17629{
17630static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17631test_array [0] = 0
17632
17633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest.$ac_objext
17638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17639 (eval $ac_compile) 2>conftest.er1
a848cd7e 17640 ac_status=$?
ac1cb8d3
VS
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
a848cd7e
SC
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
224bf05c 17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_lo=0 ac_mid=0
17659 while :; do
17660 cat >conftest.$ac_ext <<_ACEOF
17661/* confdefs.h. */
17662_ACEOF
17663cat confdefs.h >>conftest.$ac_ext
17664cat >>conftest.$ac_ext <<_ACEOF
17665/* end confdefs.h. */
17666$ac_includes_default
17667int
17668main ()
17669{
17670static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17671test_array [0] = 0
17672
17673 ;
17674 return 0;
17675}
17676_ACEOF
17677rm -f conftest.$ac_objext
17678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17679 (eval $ac_compile) 2>conftest.er1
a848cd7e 17680 ac_status=$?
ac1cb8d3
VS
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
a848cd7e
SC
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
224bf05c 17686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 ac_hi=$ac_mid; break
17699else
17700 echo "$as_me: failed program was:" >&5
17701sed 's/^/| /' conftest.$ac_ext >&5
17702
17703ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17704 if test $ac_lo -le $ac_mid; then
17705 ac_lo= ac_hi=
17706 break
17707 fi
17708 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17709fi
ac1cb8d3 17710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17711 done
17712else
17713 echo "$as_me: failed program was:" >&5
17714sed 's/^/| /' conftest.$ac_ext >&5
17715
17716cat >conftest.$ac_ext <<_ACEOF
17717/* confdefs.h. */
17718_ACEOF
17719cat confdefs.h >>conftest.$ac_ext
17720cat >>conftest.$ac_ext <<_ACEOF
17721/* end confdefs.h. */
17722$ac_includes_default
17723int
17724main ()
17725{
17726static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17727test_array [0] = 0
17728
17729 ;
17730 return 0;
17731}
17732_ACEOF
17733rm -f conftest.$ac_objext
17734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17735 (eval $ac_compile) 2>conftest.er1
a848cd7e 17736 ac_status=$?
ac1cb8d3
VS
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
a848cd7e
SC
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
224bf05c 17742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_hi=-1 ac_mid=-1
17755 while :; do
17756 cat >conftest.$ac_ext <<_ACEOF
17757/* confdefs.h. */
17758_ACEOF
17759cat confdefs.h >>conftest.$ac_ext
17760cat >>conftest.$ac_ext <<_ACEOF
17761/* end confdefs.h. */
17762$ac_includes_default
17763int
17764main ()
17765{
17766static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17767test_array [0] = 0
17768
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext
17774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17775 (eval $ac_compile) 2>conftest.er1
a848cd7e 17776 ac_status=$?
ac1cb8d3
VS
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
a848cd7e
SC
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
224bf05c 17782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_lo=$ac_mid; break
17795else
17796 echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17800 if test $ac_mid -le $ac_hi; then
17801 ac_lo= ac_hi=
17802 break
17803 fi
17804 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17805fi
ac1cb8d3 17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17807 done
17808else
17809 echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812ac_lo= ac_hi=
17813fi
ac1cb8d3 17814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17815fi
ac1cb8d3 17816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17817# Binary search between lo and hi bounds.
17818while test "x$ac_lo" != "x$ac_hi"; do
17819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17820 cat >conftest.$ac_ext <<_ACEOF
17821/* confdefs.h. */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h. */
17826$ac_includes_default
17827int
17828main ()
17829{
17830static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17831test_array [0] = 0
17832
17833 ;
17834 return 0;
17835}
17836_ACEOF
17837rm -f conftest.$ac_objext
17838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17839 (eval $ac_compile) 2>conftest.er1
a848cd7e 17840 ac_status=$?
ac1cb8d3
VS
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
a848cd7e
SC
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
224bf05c 17846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_hi=$ac_mid
17859else
17860 echo "$as_me: failed program was:" >&5
17861sed 's/^/| /' conftest.$ac_ext >&5
17862
17863ac_lo=`expr '(' $ac_mid ')' + 1`
17864fi
ac1cb8d3 17865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17866done
17867case $ac_lo in
17868?*) ac_cv_sizeof_long_long=$ac_lo;;
17869'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17870See \`config.log' for more details." >&5
17871echo "$as_me: error: cannot compute sizeof (long long), 77
17872See \`config.log' for more details." >&2;}
17873 { (exit 1); exit 1; }; } ;;
17874esac
17875else
17876 if test "$cross_compiling" = yes; then
224bf05c
VZ
17877 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17878echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17879 { (exit 1); exit 1; }; }
17880else
17881 cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887$ac_includes_default
17888long longval () { return (long) (sizeof (long long)); }
17889unsigned long ulongval () { return (long) (sizeof (long long)); }
17890#include <stdio.h>
17891#include <stdlib.h>
17892int
17893main ()
17894{
17895
17896 FILE *f = fopen ("conftest.val", "w");
17897 if (! f)
17898 exit (1);
17899 if (((long) (sizeof (long long))) < 0)
17900 {
17901 long i = longval ();
17902 if (i != ((long) (sizeof (long long))))
17903 exit (1);
17904 fprintf (f, "%ld\n", i);
17905 }
17906 else
17907 {
17908 unsigned long i = ulongval ();
17909 if (i != ((long) (sizeof (long long))))
17910 exit (1);
17911 fprintf (f, "%lu\n", i);
17912 }
17913 exit (ferror (f) || fclose (f) != 0);
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
17919rm -f conftest$ac_exeext
17920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17921 (eval $ac_link) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_cv_sizeof_long_long=`cat conftest.val`
17931else
17932 echo "$as_me: program exited with status $ac_status" >&5
17933echo "$as_me: failed program was:" >&5
17934sed 's/^/| /' conftest.$ac_ext >&5
17935
17936( exit $ac_status )
17937{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17938See \`config.log' for more details." >&5
17939echo "$as_me: error: cannot compute sizeof (long long), 77
17940See \`config.log' for more details." >&2;}
17941 { (exit 1); exit 1; }; }
17942fi
ac1cb8d3 17943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17944fi
17945fi
17946rm -f conftest.val
17947else
17948 ac_cv_sizeof_long_long=0
17949fi
17950fi
17951echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17952echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17953cat >>confdefs.h <<_ACEOF
17954#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17955_ACEOF
17956
17957
17958esac
17959
17960echo "$as_me:$LINENO: checking size of wchar_t" >&5
17961echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17962if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964else
17965
17966 if test "$cross_compiling" = yes; then
17967
17968 case "${host}" in
17969 *-pc-msdosdjgpp )
17970 wx_cv_sizeof_wchar_t=0
17971 ;;
17972 * )
17973 wx_cv_sizeof_wchar_t=4
17974 ;;
17975 esac
17976
17977
17978else
17979 cat >conftest.$ac_ext <<_ACEOF
17980/* confdefs.h. */
17981_ACEOF
17982cat confdefs.h >>conftest.$ac_ext
17983cat >>conftest.$ac_ext <<_ACEOF
17984/* end confdefs.h. */
17985
17986 /* DJGPP only has fake wchar_t: */
17987 #ifdef __DJGPP__
17988 # error "fake wchar_t"
17989 #endif
17990 #ifdef HAVE_WCHAR_H
17991 # ifdef __CYGWIN__
17992 # include <stddef.h>
17993 # endif
17994 # include <wchar.h>
17995 #endif
17996 #ifdef HAVE_STDLIB_H
17997 # include <stdlib.h>
17998 #endif
17999 #include <stdio.h>
18000 int main()
18001 {
18002 FILE *f=fopen("conftestval", "w");
18003 if (!f) exit(1);
18004 fprintf(f, "%i", sizeof(wchar_t));
18005 exit(0);
18006 }
18007
18008_ACEOF
18009rm -f conftest$ac_exeext
18010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18011 (eval $ac_link) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 wx_cv_sizeof_wchar_t=`cat conftestval`
18021else
18022 echo "$as_me: program exited with status $ac_status" >&5
18023echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026( exit $ac_status )
18027wx_cv_sizeof_wchar_t=0
18028fi
ac1cb8d3 18029rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18030fi
18031
18032fi
18033echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18034echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18035
18036cat >>confdefs.h <<_ACEOF
18037#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18038_ACEOF
18039
18040
18041# Check whether --enable-largefile or --disable-largefile was given.
18042if test "${enable_largefile+set}" = set; then
18043 enableval="$enable_largefile"
18044
18045fi;
18046if test "$enable_largefile" != no; then
18047 wx_largefile=no
18048
18049 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18050echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18051if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053else
18054
18055 cat >conftest.$ac_ext <<_ACEOF
18056/* confdefs.h. */
18057_ACEOF
18058cat confdefs.h >>conftest.$ac_ext
18059cat >>conftest.$ac_ext <<_ACEOF
18060/* end confdefs.h. */
18061#define _FILE_OFFSET_BITS 64
18062 #include <sys/types.h>
18063int
18064main ()
18065{
18066typedef struct {
18067 unsigned int field: sizeof(off_t) == 8;
18068} wxlf;
18069
18070 ;
18071 return 0;
18072}
18073_ACEOF
18074rm -f conftest.$ac_objext
18075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18076 (eval $ac_compile) 2>conftest.er1
a848cd7e 18077 ac_status=$?
ac1cb8d3
VS
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
a848cd7e
SC
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
224bf05c 18083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; } &&
18089 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; }; then
18095 ac_cv_sys_file_offset_bits=64
18096else
18097 echo "$as_me: failed program was:" >&5
18098sed 's/^/| /' conftest.$ac_ext >&5
18099
18100ac_cv_sys_file_offset_bits=no
18101fi
ac1cb8d3 18102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18103
18104
18105fi
18106echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18107echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18108
18109 if test "$ac_cv_sys_file_offset_bits" != no; then
18110 wx_largefile=yes
18111 cat >>confdefs.h <<_ACEOF
18112#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18113_ACEOF
18114
18115 fi
18116
18117 if test "x$wx_largefile" != "xyes"; then
18118
18119 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18120echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18121if test "${ac_cv_sys_large_files+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123else
18124
18125 cat >conftest.$ac_ext <<_ACEOF
18126/* confdefs.h. */
18127_ACEOF
18128cat confdefs.h >>conftest.$ac_ext
18129cat >>conftest.$ac_ext <<_ACEOF
18130/* end confdefs.h. */
18131#define _LARGE_FILES 1
18132 #include <sys/types.h>
18133int
18134main ()
18135{
18136typedef struct {
18137 unsigned int field: sizeof(off_t) == 8;
18138} wxlf;
18139
18140 ;
18141 return 0;
18142}
18143_ACEOF
18144rm -f conftest.$ac_objext
18145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18146 (eval $ac_compile) 2>conftest.er1
a848cd7e 18147 ac_status=$?
ac1cb8d3
VS
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
a848cd7e
SC
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
224bf05c 18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_sys_large_files=1
18166else
18167 echo "$as_me: failed program was:" >&5
18168sed 's/^/| /' conftest.$ac_ext >&5
18169
18170ac_cv_sys_large_files=no
18171fi
ac1cb8d3 18172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18173
18174
18175fi
18176echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18177echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18178
18179 if test "$ac_cv_sys_large_files" != no; then
18180 wx_largefile=yes
18181 cat >>confdefs.h <<_ACEOF
18182#define _LARGE_FILES $ac_cv_sys_large_files
18183_ACEOF
18184
18185 fi
18186
18187 fi
18188
18189 echo "$as_me:$LINENO: checking if large file support is available" >&5
18190echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18191 if test "x$wx_largefile" = "xyes"; then
18192 cat >>confdefs.h <<\_ACEOF
18193#define HAVE_LARGEFILE_SUPPORT 1
18194_ACEOF
18195
18196 fi
18197 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18198echo "${ECHO_T}$wx_largefile" >&6
18199fi
18200
18201
18202if test "x$wx_largefile" = "xyes"; then
18203 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18204 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18205 else
18206 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18207 fi
18208 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18209fi
18210
18211echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18212echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18213if test "${ac_cv_c_bigendian+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18215else
18216 ac_cv_c_bigendian=unknown
18217# See if sys/param.h defines the BYTE_ORDER macro.
18218cat >conftest.$ac_ext <<_ACEOF
18219/* confdefs.h. */
18220_ACEOF
18221cat confdefs.h >>conftest.$ac_ext
18222cat >>conftest.$ac_ext <<_ACEOF
18223/* end confdefs.h. */
18224#include <sys/types.h>
18225#include <sys/param.h>
18226int
18227main ()
18228{
18229
18230#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18231 bogus endian macros
18232#endif
18233 ;
18234 return 0;
18235}
18236_ACEOF
18237rm -f conftest.$ac_objext
18238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18239 (eval $ac_compile) 2>conftest.er1
a848cd7e 18240 ac_status=$?
ac1cb8d3
VS
18241 grep -v '^ *+' conftest.er1 >conftest.err
18242 rm -f conftest.er1
18243 cat conftest.err >&5
a848cd7e
SC
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } &&
224bf05c 18246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; } &&
18252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18258 # It does; now see whether it defined to BIG_ENDIAN or not.
18259cat >conftest.$ac_ext <<_ACEOF
18260/* confdefs.h. */
18261_ACEOF
18262cat confdefs.h >>conftest.$ac_ext
18263cat >>conftest.$ac_ext <<_ACEOF
18264/* end confdefs.h. */
18265#include <sys/types.h>
18266#include <sys/param.h>
18267int
18268main ()
18269{
18270
18271#if BYTE_ORDER != BIG_ENDIAN
18272 not big endian
18273#endif
18274 ;
18275 return 0;
18276}
18277_ACEOF
18278rm -f conftest.$ac_objext
18279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18280 (eval $ac_compile) 2>conftest.er1
a848cd7e 18281 ac_status=$?
ac1cb8d3
VS
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
a848cd7e
SC
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
224bf05c 18287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_cv_c_bigendian=yes
18300else
18301 echo "$as_me: failed program was:" >&5
18302sed 's/^/| /' conftest.$ac_ext >&5
18303
18304ac_cv_c_bigendian=no
18305fi
ac1cb8d3 18306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18307else
18308 echo "$as_me: failed program was:" >&5
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
18311fi
ac1cb8d3 18312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18313if test $ac_cv_c_bigendian = unknown; then
18314if test "$cross_compiling" = yes; then
18315 ac_cv_c_bigendian=unknown
18316else
18317 cat >conftest.$ac_ext <<_ACEOF
18318/* confdefs.h. */
18319_ACEOF
18320cat confdefs.h >>conftest.$ac_ext
18321cat >>conftest.$ac_ext <<_ACEOF
18322/* end confdefs.h. */
18323main () {
18324 /* Are we little or big endian? From Harbison&Steele. */
18325 union
18326 {
18327 long l;
18328 char c[sizeof (long)];
18329 } u;
18330 u.l = 1;
18331 exit (u.c[sizeof (long) - 1] == 1);
18332}
18333_ACEOF
18334rm -f conftest$ac_exeext
18335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18336 (eval $ac_link) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_c_bigendian=no
18346else
18347 echo "$as_me: program exited with status $ac_status" >&5
18348echo "$as_me: failed program was:" >&5
18349sed 's/^/| /' conftest.$ac_ext >&5
18350
18351( exit $ac_status )
18352ac_cv_c_bigendian=yes
18353fi
ac1cb8d3 18354rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18355fi
18356fi
18357fi
18358echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18359echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18360if test $ac_cv_c_bigendian = unknown; then
18361 { 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
18362echo "$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;}
18363fi
18364if test $ac_cv_c_bigendian = yes; then
18365 cat >>confdefs.h <<\_ACEOF
18366#define WORDS_BIGENDIAN 1
18367_ACEOF
18368
18369fi
18370
18371
18372ac_ext=cc
18373ac_cpp='$CXXCPP $CPPFLAGS'
18374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18377echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18378echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18379if test -z "$CXXCPP"; then
18380 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382else
18383 # Double quotes because CXXCPP needs to be expanded
18384 for CXXCPP in "$CXX -E" "/lib/cpp"
18385 do
18386 ac_preproc_ok=false
18387for ac_cxx_preproc_warn_flag in '' yes
18388do
18389 # Use a header file that comes with gcc, so configuring glibc
18390 # with a fresh cross-compiler works.
18391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18392 # <limits.h> exists even on freestanding compilers.
18393 # On the NeXT, cc -E runs the code through the compiler's parser,
18394 # not just through cpp. "Syntax error" is here to catch this case.
18395 cat >conftest.$ac_ext <<_ACEOF
18396/* confdefs.h. */
18397_ACEOF
18398cat confdefs.h >>conftest.$ac_ext
18399cat >>conftest.$ac_ext <<_ACEOF
18400/* end confdefs.h. */
18401#ifdef __STDC__
18402# include <limits.h>
18403#else
18404# include <assert.h>
18405#endif
ac1cb8d3 18406 Syntax error
a848cd7e
SC
18407_ACEOF
18408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18410 ac_status=$?
18411 grep -v '^ *+' conftest.er1 >conftest.err
18412 rm -f conftest.er1
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } >/dev/null; then
18416 if test -s conftest.err; then
18417 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18419 else
18420 ac_cpp_err=
18421 fi
18422else
18423 ac_cpp_err=yes
18424fi
18425if test -z "$ac_cpp_err"; then
18426 :
18427else
18428 echo "$as_me: failed program was:" >&5
18429sed 's/^/| /' conftest.$ac_ext >&5
18430
18431 # Broken: fails on valid input.
18432continue
18433fi
18434rm -f conftest.err conftest.$ac_ext
18435
18436 # OK, works on sane cases. Now check whether non-existent headers
18437 # can be detected and how.
18438 cat >conftest.$ac_ext <<_ACEOF
18439/* confdefs.h. */
18440_ACEOF
18441cat confdefs.h >>conftest.$ac_ext
18442cat >>conftest.$ac_ext <<_ACEOF
18443/* end confdefs.h. */
18444#include <ac_nonexistent.h>
18445_ACEOF
18446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } >/dev/null; then
18454 if test -s conftest.err; then
18455 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18456 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18457 else
18458 ac_cpp_err=
18459 fi
18460else
18461 ac_cpp_err=yes
18462fi
18463if test -z "$ac_cpp_err"; then
18464 # Broken: success on invalid input.
18465continue
18466else
18467 echo "$as_me: failed program was:" >&5
18468sed 's/^/| /' conftest.$ac_ext >&5
18469
18470 # Passes both tests.
18471ac_preproc_ok=:
18472break
18473fi
18474rm -f conftest.err conftest.$ac_ext
18475
18476done
18477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18478rm -f conftest.err conftest.$ac_ext
18479if $ac_preproc_ok; then
18480 break
18481fi
18482
18483 done
18484 ac_cv_prog_CXXCPP=$CXXCPP
18485
18486fi
18487 CXXCPP=$ac_cv_prog_CXXCPP
18488else
18489 ac_cv_prog_CXXCPP=$CXXCPP
18490fi
18491echo "$as_me:$LINENO: result: $CXXCPP" >&5
18492echo "${ECHO_T}$CXXCPP" >&6
18493ac_preproc_ok=false
18494for ac_cxx_preproc_warn_flag in '' yes
18495do
18496 # Use a header file that comes with gcc, so configuring glibc
18497 # with a fresh cross-compiler works.
18498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18499 # <limits.h> exists even on freestanding compilers.
18500 # On the NeXT, cc -E runs the code through the compiler's parser,
18501 # not just through cpp. "Syntax error" is here to catch this case.
18502 cat >conftest.$ac_ext <<_ACEOF
18503/* confdefs.h. */
18504_ACEOF
18505cat confdefs.h >>conftest.$ac_ext
18506cat >>conftest.$ac_ext <<_ACEOF
18507/* end confdefs.h. */
18508#ifdef __STDC__
18509# include <limits.h>
18510#else
18511# include <assert.h>
18512#endif
ac1cb8d3 18513 Syntax error
a848cd7e
SC
18514_ACEOF
18515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } >/dev/null; then
18523 if test -s conftest.err; then
18524 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18525 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18526 else
18527 ac_cpp_err=
18528 fi
18529else
18530 ac_cpp_err=yes
18531fi
18532if test -z "$ac_cpp_err"; then
18533 :
18534else
18535 echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 # Broken: fails on valid input.
18539continue
18540fi
18541rm -f conftest.err conftest.$ac_ext
18542
18543 # OK, works on sane cases. Now check whether non-existent headers
18544 # can be detected and how.
18545 cat >conftest.$ac_ext <<_ACEOF
18546/* confdefs.h. */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
18550/* end confdefs.h. */
18551#include <ac_nonexistent.h>
18552_ACEOF
18553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } >/dev/null; then
18561 if test -s conftest.err; then
18562 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18563 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18564 else
18565 ac_cpp_err=
18566 fi
18567else
18568 ac_cpp_err=yes
18569fi
18570if test -z "$ac_cpp_err"; then
18571 # Broken: success on invalid input.
18572continue
18573else
18574 echo "$as_me: failed program was:" >&5
18575sed 's/^/| /' conftest.$ac_ext >&5
18576
18577 # Passes both tests.
18578ac_preproc_ok=:
18579break
18580fi
18581rm -f conftest.err conftest.$ac_ext
18582
18583done
18584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18585rm -f conftest.err conftest.$ac_ext
18586if $ac_preproc_ok; then
18587 :
18588else
18589 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18590See \`config.log' for more details." >&5
18591echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18592See \`config.log' for more details." >&2;}
18593 { (exit 1); exit 1; }; }
18594fi
18595
18596ac_ext=cc
18597ac_cpp='$CXXCPP $CPPFLAGS'
18598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18601
18602
18603
18604
18605
18606 ac_ext=cc
18607ac_cpp='$CXXCPP $CPPFLAGS'
18608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18611
18612
18613
18614for ac_header in iostream
18615do
18616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18617if eval "test \"\${$as_ac_Header+set}\" = set"; then
18618 echo "$as_me:$LINENO: checking for $ac_header" >&5
18619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18620if eval "test \"\${$as_ac_Header+set}\" = set"; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18622fi
18623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18625else
18626 # Is the header compilable?
18627echo "$as_me:$LINENO: checking $ac_header usability" >&5
18628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18629cat >conftest.$ac_ext <<_ACEOF
18630/* confdefs.h. */
18631_ACEOF
18632cat confdefs.h >>conftest.$ac_ext
18633cat >>conftest.$ac_ext <<_ACEOF
18634/* end confdefs.h. */
18635$ac_includes_default
18636#include <$ac_header>
18637_ACEOF
18638rm -f conftest.$ac_objext
18639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18640 (eval $ac_compile) 2>conftest.er1
a848cd7e 18641 ac_status=$?
ac1cb8d3
VS
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
a848cd7e
SC
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
224bf05c 18647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18649 (eval $ac_try) 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 ac_header_compiler=yes
18660else
18661 echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664ac_header_compiler=no
18665fi
ac1cb8d3 18666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18668echo "${ECHO_T}$ac_header_compiler" >&6
18669
18670# Is the header present?
18671echo "$as_me:$LINENO: checking $ac_header presence" >&5
18672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18673cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h. */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h. */
18679#include <$ac_header>
18680_ACEOF
18681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } >/dev/null; then
18689 if test -s conftest.err; then
18690 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18691 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18692 else
18693 ac_cpp_err=
18694 fi
18695else
18696 ac_cpp_err=yes
18697fi
18698if test -z "$ac_cpp_err"; then
18699 ac_header_preproc=yes
18700else
18701 echo "$as_me: failed program was:" >&5
18702sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 ac_header_preproc=no
18705fi
18706rm -f conftest.err conftest.$ac_ext
18707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18708echo "${ECHO_T}$ac_header_preproc" >&6
18709
18710# So? What about this header?
ac1cb8d3
VS
18711case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18712 yes:no: )
a848cd7e
SC
18713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18717 ac_header_preproc=yes
a848cd7e 18718 ;;
ac1cb8d3 18719 no:yes:* )
a848cd7e
SC
18720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18732 (
18733 cat <<\_ASBOX
ac1cb8d3
VS
18734## ----------------------------------------- ##
18735## Report this to wx-dev@lists.wxwidgets.org ##
18736## ----------------------------------------- ##
a848cd7e
SC
18737_ASBOX
18738 ) |
18739 sed "s/^/$as_me: WARNING: /" >&2
18740 ;;
18741esac
18742echo "$as_me:$LINENO: checking for $ac_header" >&5
18743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18744if eval "test \"\${$as_ac_Header+set}\" = set"; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746else
ac1cb8d3 18747 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18748fi
18749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18751
18752fi
18753if test `eval echo '${'$as_ac_Header'}'` = yes; then
18754 cat >>confdefs.h <<_ACEOF
18755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18756_ACEOF
18757
18758fi
18759
18760done
18761
18762
18763 if test "$ac_cv_header_iostream" = "yes" ; then
18764 :
18765 else
18766 cat >>confdefs.h <<\_ACEOF
18767#define wxUSE_IOSTREAMH 1
18768_ACEOF
18769
18770 fi
18771
18772 ac_ext=c
18773ac_cpp='$CPP $CPPFLAGS'
18774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18776ac_compiler_gnu=$ac_cv_c_compiler_gnu
18777
18778
18779
18780
18781 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18782echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18783if test "${wx_cv_cpp_bool+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18785else
18786
18787
18788
18789 ac_ext=cc
18790ac_cpp='$CXXCPP $CPPFLAGS'
18791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18794
18795
18796 cat >conftest.$ac_ext <<_ACEOF
18797/* confdefs.h. */
18798_ACEOF
18799cat confdefs.h >>conftest.$ac_ext
18800cat >>conftest.$ac_ext <<_ACEOF
18801/* end confdefs.h. */
18802
18803
18804int
18805main ()
18806{
18807
18808 bool b = true;
18809
18810 return 0;
18811
18812 ;
18813 return 0;
18814}
18815_ACEOF
18816rm -f conftest.$ac_objext
18817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18818 (eval $ac_compile) 2>conftest.er1
a848cd7e 18819 ac_status=$?
ac1cb8d3
VS
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
a848cd7e
SC
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
224bf05c 18825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; } &&
18831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833 (eval $ac_try) 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837
18838 wx_cv_cpp_bool=yes
18839
18840else
18841 echo "$as_me: failed program was:" >&5
18842sed 's/^/| /' conftest.$ac_ext >&5
18843
18844
18845 wx_cv_cpp_bool=no
18846
18847
18848fi
ac1cb8d3 18849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18850
18851 ac_ext=c
18852ac_cpp='$CPP $CPPFLAGS'
18853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18855ac_compiler_gnu=$ac_cv_c_compiler_gnu
18856
18857
18858fi
18859echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18860echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18861
18862 if test "$wx_cv_cpp_bool" = "yes"; then
18863 cat >>confdefs.h <<\_ACEOF
18864#define HAVE_BOOL 1
18865_ACEOF
18866
18867 fi
18868
18869
18870
18871 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18872echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18873if test "${wx_cv_explicit+set}" = set; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
18875else
18876
18877
18878
18879 ac_ext=cc
18880ac_cpp='$CXXCPP $CPPFLAGS'
18881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18884
18885
18886 cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h. */
18892
18893 class Foo { public: explicit Foo(int) {} };
18894
18895int
18896main ()
18897{
18898
18899 return 0;
18900
18901 ;
18902 return 0;
18903}
18904_ACEOF
18905rm -f conftest.$ac_objext
18906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18907 (eval $ac_compile) 2>conftest.er1
a848cd7e 18908 ac_status=$?
ac1cb8d3
VS
18909 grep -v '^ *+' conftest.er1 >conftest.err
18910 rm -f conftest.er1
18911 cat conftest.err >&5
a848cd7e
SC
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
224bf05c 18914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
18926
18927 cat >conftest.$ac_ext <<_ACEOF
18928/* confdefs.h. */
18929_ACEOF
18930cat confdefs.h >>conftest.$ac_ext
18931cat >>conftest.$ac_ext <<_ACEOF
18932/* end confdefs.h. */
18933
18934 class Foo { public: explicit Foo(int) {} };
18935 static void TakeFoo(const Foo& foo) { }
18936
18937int
18938main ()
18939{
18940
18941 TakeFoo(17);
18942 return 0;
18943
18944 ;
18945 return 0;
18946}
18947_ACEOF
18948rm -f conftest.$ac_objext
18949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18950 (eval $ac_compile) 2>conftest.er1
a848cd7e 18951 ac_status=$?
ac1cb8d3
VS
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
a848cd7e
SC
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
224bf05c 18957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18966 ac_status=$?
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 wx_cv_explicit=no
18970else
18971 echo "$as_me: failed program was:" >&5
18972sed 's/^/| /' conftest.$ac_ext >&5
18973
18974wx_cv_explicit=yes
18975
18976fi
ac1cb8d3 18977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18978
18979else
18980 echo "$as_me: failed program was:" >&5
18981sed 's/^/| /' conftest.$ac_ext >&5
18982
18983wx_cv_explicit=no
18984
18985fi
ac1cb8d3 18986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18987
18988 ac_ext=c
18989ac_cpp='$CPP $CPPFLAGS'
18990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18992ac_compiler_gnu=$ac_cv_c_compiler_gnu
18993
18994
18995fi
18996echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18997echo "${ECHO_T}$wx_cv_explicit" >&6
18998
18999 if test "$wx_cv_explicit" = "yes"; then
19000 cat >>confdefs.h <<\_ACEOF
19001#define HAVE_EXPLICIT 1
19002_ACEOF
19003
19004 fi
19005
19006
19007echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19008echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19009if test "${ac_cv_cxx_const_cast+set}" = set; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19011else
19012
19013
19014 ac_ext=cc
19015ac_cpp='$CXXCPP $CPPFLAGS'
19016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19019
19020 cat >conftest.$ac_ext <<_ACEOF
19021/* confdefs.h. */
19022_ACEOF
19023cat confdefs.h >>conftest.$ac_ext
19024cat >>conftest.$ac_ext <<_ACEOF
19025/* end confdefs.h. */
19026
19027int
19028main ()
19029{
19030int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19031 ;
19032 return 0;
19033}
19034_ACEOF
19035rm -f conftest.$ac_objext
19036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19037 (eval $ac_compile) 2>conftest.er1
a848cd7e 19038 ac_status=$?
ac1cb8d3
VS
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
a848cd7e
SC
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
224bf05c 19044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; } &&
19050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 ac_cv_cxx_const_cast=yes
19057else
19058 echo "$as_me: failed program was:" >&5
19059sed 's/^/| /' conftest.$ac_ext >&5
19060
19061ac_cv_cxx_const_cast=no
19062fi
ac1cb8d3 19063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19064 ac_ext=c
19065ac_cpp='$CPP $CPPFLAGS'
19066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068ac_compiler_gnu=$ac_cv_c_compiler_gnu
19069
19070
19071fi
19072echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19073echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19074if test "$ac_cv_cxx_const_cast" = yes; then
19075
19076cat >>confdefs.h <<\_ACEOF
19077#define HAVE_CONST_CAST
19078_ACEOF
19079
19080fi
19081
19082echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19083echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19084if test "${ac_cv_cxx_static_cast+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19086else
19087
19088
19089 ac_ext=cc
19090ac_cpp='$CXXCPP $CPPFLAGS'
19091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19094
19095 cat >conftest.$ac_ext <<_ACEOF
19096/* confdefs.h. */
19097_ACEOF
19098cat confdefs.h >>conftest.$ac_ext
19099cat >>conftest.$ac_ext <<_ACEOF
19100/* end confdefs.h. */
19101#include <typeinfo>
19102class Base { public : Base () {} virtual void f () = 0; };
19103class Derived : public Base { public : Derived () {} virtual void f () {} };
19104int g (Derived&) { return 0; }
19105int
19106main ()
19107{
19108
19109Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19110 ;
19111 return 0;
19112}
19113_ACEOF
19114rm -f conftest.$ac_objext
19115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19116 (eval $ac_compile) 2>conftest.er1
a848cd7e 19117 ac_status=$?
ac1cb8d3
VS
19118 grep -v '^ *+' conftest.er1 >conftest.err
19119 rm -f conftest.er1
19120 cat conftest.err >&5
a848cd7e
SC
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
224bf05c 19123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; } &&
19129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ac_cv_cxx_static_cast=yes
19136else
19137 echo "$as_me: failed program was:" >&5
19138sed 's/^/| /' conftest.$ac_ext >&5
19139
19140ac_cv_cxx_static_cast=no
19141fi
ac1cb8d3 19142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19143 ac_ext=c
19144ac_cpp='$CPP $CPPFLAGS'
19145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147ac_compiler_gnu=$ac_cv_c_compiler_gnu
19148
19149
19150fi
19151echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19152echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19153if test "$ac_cv_cxx_static_cast" = yes; then
19154
19155cat >>confdefs.h <<\_ACEOF
19156#define HAVE_STATIC_CAST
19157_ACEOF
19158
19159fi
19160
19161
19162if test "$wxUSE_STL" = "yes"; then
19163 ac_ext=cc
19164ac_cpp='$CXXCPP $CPPFLAGS'
19165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19168
19169
19170 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19171echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19172 cat >conftest.$ac_ext <<_ACEOF
19173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
19178#include <string>
19179 #include <functional>
19180 #include <algorithm>
19181 #include <vector>
19182 #include <list>
19183int
19184main ()
19185{
19186std::vector<int> moo;
19187 std::list<int> foo;
19188 std::vector<int>::iterator it =
19189 std::find_if(moo.begin(), moo.end(),
19190 std::bind2nd(std::less<int>(), 3));
19191 ;
19192 return 0;
19193}
19194_ACEOF
19195rm -f conftest.$ac_objext
19196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19197 (eval $ac_compile) 2>conftest.er1
a848cd7e 19198 ac_status=$?
ac1cb8d3
VS
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
a848cd7e
SC
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
224bf05c 19204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; } &&
19210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; }; then
19216 echo "$as_me:$LINENO: result: yes" >&5
19217echo "${ECHO_T}yes" >&6
19218else
19219 echo "$as_me: failed program was:" >&5
19220sed 's/^/| /' conftest.$ac_ext >&5
19221
19222echo "$as_me:$LINENO: result: no" >&5
19223echo "${ECHO_T}no" >&6
19224 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19225echo "$as_me: error: Basic STL functionality missing" >&2;}
19226 { (exit 1); exit 1; }; }
19227fi
ac1cb8d3 19228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19229
19230 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19231echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h. */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h. */
19238#include <string>
19239int
19240main ()
19241{
19242std::wstring foo;
19243 ;
19244 return 0;
19245}
19246_ACEOF
19247rm -f conftest.$ac_objext
19248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19249 (eval $ac_compile) 2>conftest.er1
a848cd7e 19250 ac_status=$?
ac1cb8d3
VS
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
a848cd7e
SC
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
224bf05c 19256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 echo "$as_me:$LINENO: result: yes" >&5
19269echo "${ECHO_T}yes" >&6
19270 cat >>confdefs.h <<\_ACEOF
19271#define HAVE_STD_WSTRING 1
19272_ACEOF
19273
19274else
19275 echo "$as_me: failed program was:" >&5
19276sed 's/^/| /' conftest.$ac_ext >&5
19277
19278echo "$as_me:$LINENO: result: no" >&5
19279echo "${ECHO_T}no" >&6
19280fi
ac1cb8d3 19281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19282
19283 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19284echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19285 cat >conftest.$ac_ext <<_ACEOF
19286/* confdefs.h. */
19287_ACEOF
19288cat confdefs.h >>conftest.$ac_ext
19289cat >>conftest.$ac_ext <<_ACEOF
19290/* end confdefs.h. */
19291#include <string>
19292int
19293main ()
19294{
19295std::string foo, bar;
19296 foo.compare(bar);
19297 foo.compare(1, 1, bar);
19298 foo.compare(1, 1, bar, 1, 1);
19299 foo.compare("");
19300 foo.compare(1, 1, "");
19301 foo.compare(1, 1, "", 2);
19302 ;
19303 return 0;
19304}
19305_ACEOF
19306rm -f conftest.$ac_objext
19307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19308 (eval $ac_compile) 2>conftest.er1
a848cd7e 19309 ac_status=$?
ac1cb8d3
VS
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
a848cd7e
SC
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
224bf05c 19315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19318 ac_status=$?
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; } &&
19321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 echo "$as_me:$LINENO: result: yes" >&5
19328echo "${ECHO_T}yes" >&6
19329 cat >>confdefs.h <<\_ACEOF
19330#define HAVE_STD_STRING_COMPARE 1
19331_ACEOF
19332
19333else
19334 echo "$as_me: failed program was:" >&5
19335sed 's/^/| /' conftest.$ac_ext >&5
19336
19337echo "$as_me:$LINENO: result: no" >&5
19338echo "${ECHO_T}no" >&6
19339fi
ac1cb8d3 19340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19341
19342 if test "${ac_cv_header_hash_map+set}" = set; then
19343 echo "$as_me:$LINENO: checking for hash_map" >&5
19344echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19345if test "${ac_cv_header_hash_map+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19347fi
19348echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19349echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19350else
19351 # Is the header compilable?
19352echo "$as_me:$LINENO: checking hash_map usability" >&5
19353echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19354cat >conftest.$ac_ext <<_ACEOF
19355/* confdefs.h. */
19356_ACEOF
19357cat confdefs.h >>conftest.$ac_ext
19358cat >>conftest.$ac_ext <<_ACEOF
19359/* end confdefs.h. */
19360$ac_includes_default
19361#include <hash_map>
19362_ACEOF
19363rm -f conftest.$ac_objext
19364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19365 (eval $ac_compile) 2>conftest.er1
bdcade0a 19366 ac_status=$?
ac1cb8d3
VS
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
bdcade0a
MB
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
224bf05c 19372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_header_compiler=yes
19385else
19386 echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389ac_header_compiler=no
19390fi
ac1cb8d3 19391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19393echo "${ECHO_T}$ac_header_compiler" >&6
19394
19395# Is the header present?
19396echo "$as_me:$LINENO: checking hash_map presence" >&5
19397echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19398cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404#include <hash_map>
19405_ACEOF
19406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } >/dev/null; then
19414 if test -s conftest.err; then
19415 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19417 else
19418 ac_cpp_err=
19419 fi
19420else
19421 ac_cpp_err=yes
19422fi
19423if test -z "$ac_cpp_err"; then
19424 ac_header_preproc=yes
19425else
19426 echo "$as_me: failed program was:" >&5
19427sed 's/^/| /' conftest.$ac_ext >&5
19428
19429 ac_header_preproc=no
19430fi
19431rm -f conftest.err conftest.$ac_ext
19432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19433echo "${ECHO_T}$ac_header_preproc" >&6
19434
19435# So? What about this header?
ac1cb8d3
VS
19436case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19437 yes:no: )
bdcade0a
MB
19438 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19439echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19440 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19441echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19442 ac_header_preproc=yes
bdcade0a 19443 ;;
ac1cb8d3 19444 no:yes:* )
bdcade0a
MB
19445 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19446echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19447 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19448echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19450echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19452echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19453 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19454echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19455 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19456echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19457 (
19458 cat <<\_ASBOX
ac1cb8d3
VS
19459## ----------------------------------------- ##
19460## Report this to wx-dev@lists.wxwidgets.org ##
19461## ----------------------------------------- ##
bdcade0a
MB
19462_ASBOX
19463 ) |
19464 sed "s/^/$as_me: WARNING: /" >&2
19465 ;;
19466esac
19467echo "$as_me:$LINENO: checking for hash_map" >&5
19468echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19469if test "${ac_cv_header_hash_map+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471else
19472 ac_cv_header_hash_map=$ac_header_preproc
19473fi
19474echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19475echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19476
19477fi
19478if test $ac_cv_header_hash_map = yes; then
19479 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19480echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19481 cat >conftest.$ac_ext <<_ACEOF
19482/* confdefs.h. */
19483_ACEOF
19484cat confdefs.h >>conftest.$ac_ext
19485cat >>conftest.$ac_ext <<_ACEOF
19486/* end confdefs.h. */
19487#include <hash_map>
19488 #include <hash_set>
19489int
19490main ()
19491{
19492std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19493 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19494 ;
19495 return 0;
19496}
19497_ACEOF
19498rm -f conftest.$ac_objext
19499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19500 (eval $ac_compile) 2>conftest.er1
bdcade0a 19501 ac_status=$?
ac1cb8d3
VS
19502 grep -v '^ *+' conftest.er1 >conftest.err
19503 rm -f conftest.er1
19504 cat conftest.err >&5
bdcade0a
MB
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } &&
224bf05c 19507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; } &&
19513 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519 echo "$as_me:$LINENO: result: yes" >&5
19520echo "${ECHO_T}yes" >&6
19521 cat >>confdefs.h <<\_ACEOF
19522#define HAVE_HASH_MAP 1
19523_ACEOF
19524
19525 cat >>confdefs.h <<\_ACEOF
19526#define HAVE_STD_HASH_MAP 1
19527_ACEOF
19528
19529else
19530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
19533echo "$as_me:$LINENO: result: no" >&5
19534echo "${ECHO_T}no" >&6
19535fi
ac1cb8d3 19536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19537
19538fi
19539
19540
19541
19542 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19543 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19544echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19545if test "${ac_cv_header_ext_hash_map+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547fi
19548echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19549echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19550else
19551 # Is the header compilable?
19552echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19553echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19554cat >conftest.$ac_ext <<_ACEOF
19555/* confdefs.h. */
19556_ACEOF
19557cat confdefs.h >>conftest.$ac_ext
19558cat >>conftest.$ac_ext <<_ACEOF
19559/* end confdefs.h. */
19560$ac_includes_default
19561#include <ext/hash_map>
19562_ACEOF
19563rm -f conftest.$ac_objext
19564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19565 (eval $ac_compile) 2>conftest.er1
bdcade0a 19566 ac_status=$?
ac1cb8d3
VS
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
bdcade0a
MB
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
224bf05c 19572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 ac_header_compiler=yes
19585else
19586 echo "$as_me: failed program was:" >&5
19587sed 's/^/| /' conftest.$ac_ext >&5
19588
19589ac_header_compiler=no
19590fi
ac1cb8d3 19591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19593echo "${ECHO_T}$ac_header_compiler" >&6
19594
19595# Is the header present?
19596echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19597echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19598cat >conftest.$ac_ext <<_ACEOF
19599/* confdefs.h. */
19600_ACEOF
19601cat confdefs.h >>conftest.$ac_ext
19602cat >>conftest.$ac_ext <<_ACEOF
19603/* end confdefs.h. */
19604#include <ext/hash_map>
19605_ACEOF
19606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } >/dev/null; then
19614 if test -s conftest.err; then
19615 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19616 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19617 else
19618 ac_cpp_err=
19619 fi
19620else
19621 ac_cpp_err=yes
19622fi
19623if test -z "$ac_cpp_err"; then
19624 ac_header_preproc=yes
19625else
19626 echo "$as_me: failed program was:" >&5
19627sed 's/^/| /' conftest.$ac_ext >&5
19628
19629 ac_header_preproc=no
19630fi
19631rm -f conftest.err conftest.$ac_ext
19632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19633echo "${ECHO_T}$ac_header_preproc" >&6
19634
19635# So? What about this header?
ac1cb8d3
VS
19636case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19637 yes:no: )
bdcade0a
MB
19638 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19639echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19640 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19641echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19642 ac_header_preproc=yes
bdcade0a 19643 ;;
ac1cb8d3 19644 no:yes:* )
bdcade0a
MB
19645 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19646echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19647 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19648echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19649 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19650echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19651 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19652echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19653 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19654echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19655 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19656echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19657 (
19658 cat <<\_ASBOX
ac1cb8d3
VS
19659## ----------------------------------------- ##
19660## Report this to wx-dev@lists.wxwidgets.org ##
19661## ----------------------------------------- ##
bdcade0a
MB
19662_ASBOX
19663 ) |
19664 sed "s/^/$as_me: WARNING: /" >&2
19665 ;;
19666esac
19667echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19668echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19669if test "${ac_cv_header_ext_hash_map+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19671else
19672 ac_cv_header_ext_hash_map=$ac_header_preproc
19673fi
19674echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19675echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19676
19677fi
19678if test $ac_cv_header_ext_hash_map = yes; then
19679 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19680echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19681 cat >conftest.$ac_ext <<_ACEOF
19682/* confdefs.h. */
19683_ACEOF
19684cat confdefs.h >>conftest.$ac_ext
19685cat >>conftest.$ac_ext <<_ACEOF
19686/* end confdefs.h. */
19687#include <ext/hash_map>
19688 #include <ext/hash_set>
19689int
19690main ()
19691{
19692__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19693 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19694 ;
19695 return 0;
19696}
19697_ACEOF
19698rm -f conftest.$ac_objext
19699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19700 (eval $ac_compile) 2>conftest.er1
bdcade0a 19701 ac_status=$?
ac1cb8d3
VS
19702 grep -v '^ *+' conftest.er1 >conftest.err
19703 rm -f conftest.er1
19704 cat conftest.err >&5
bdcade0a
MB
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } &&
224bf05c 19707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 echo "$as_me:$LINENO: result: yes" >&5
19720echo "${ECHO_T}yes" >&6
19721 cat >>confdefs.h <<\_ACEOF
19722#define HAVE_EXT_HASH_MAP 1
19723_ACEOF
19724
19725 cat >>confdefs.h <<\_ACEOF
19726#define HAVE_GNU_CXX_HASH_MAP 1
19727_ACEOF
19728
19729else
19730 echo "$as_me: failed program was:" >&5
19731sed 's/^/| /' conftest.$ac_ext >&5
19732
19733echo "$as_me:$LINENO: result: no" >&5
19734echo "${ECHO_T}no" >&6
19735fi
ac1cb8d3 19736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19737
19738fi
19739
19740
a848cd7e
SC
19741
19742 ac_ext=c
19743ac_cpp='$CPP $CPPFLAGS'
19744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746ac_compiler_gnu=$ac_cv_c_compiler_gnu
19747
19748fi
19749
19750
19751SEARCH_INCLUDE="\
19752 /usr/local/include \
19753 \
19754 /usr/Motif-2.1/include \
19755 /usr/Motif-1.2/include \
19756 /usr/include/Motif1.2 \
19757 /opt/xpm/include/X11 \
19758 /opt/GBxpm/include/ \
19759 /opt/GBxpm/X11/include/ \
19760 \
19761 /usr/dt/include \
19762 /usr/openwin/include \
19763 \
19764 /usr/include/Xm \
19765 \
19766 /usr/X11R6/include \
19767 /usr/X11R6.4/include \
19768 /usr/X11R5/include \
19769 /usr/X11R4/include \
19770 \
19771 /usr/include/X11R6 \
19772 /usr/include/X11R5 \
19773 /usr/include/X11R4 \
19774 \
19775 /usr/local/X11R6/include \
19776 /usr/local/X11R5/include \
19777 /usr/local/X11R4/include \
19778 \
19779 /usr/local/include/X11R6 \
19780 /usr/local/include/X11R5 \
19781 /usr/local/include/X11R4 \
19782 \
19783 /usr/X11/include \
19784 /usr/include/X11 \
19785 /usr/local/X11/include \
19786 /usr/local/include/X11 \
19787 \
19788 /usr/X386/include \
19789 /usr/x386/include \
19790 /usr/XFree86/include/X11 \
19791 \
19792 X:/XFree86/include \
19793 X:/XFree86/include/X11 \
19794 \
19795 /usr/include/gtk \
19796 /usr/local/include/gtk \
19797 /usr/include/glib \
19798 /usr/local/include/glib \
19799 \
19800 /usr/include/qt \
19801 /usr/local/include/qt \
19802 \
19803 /usr/local/arm/3.3.2/include \
19804 \
19805 /usr/include/windows \
19806 /usr/include/wine \
19807 /usr/local/include/wine \
19808 \
19809 /usr/unsupported/include \
19810 /usr/athena/include \
19811 /usr/local/x11r5/include \
19812 /usr/lpp/Xamples/include \
19813 \
19814 /usr/openwin/share/include"
19815
19816SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19817
19818
19819cat >confcache <<\_ACEOF
19820# This file is a shell script that caches the results of configure
19821# tests run on this system so they can be shared between configure
19822# scripts and configure runs, see configure's option --config-cache.
19823# It is not useful on other systems. If it contains results you don't
19824# want to keep, you may remove or edit it.
19825#
19826# config.status only pays attention to the cache file if you give it
19827# the --recheck option to rerun configure.
19828#
19829# `ac_cv_env_foo' variables (set or unset) will be overridden when
19830# loading this file, other *unset* `ac_cv_foo' will be assigned the
19831# following values.
19832
19833_ACEOF
19834
19835# The following way of writing the cache mishandles newlines in values,
19836# but we know of no workaround that is simple, portable, and efficient.
19837# So, don't put newlines in cache variables' values.
19838# Ultrix sh set writes to stderr and can't be redirected directly,
19839# and sets the high bit in the cache file unless we assign to the vars.
19840{
19841 (set) 2>&1 |
19842 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19843 *ac_space=\ *)
19844 # `set' does not quote correctly, so add quotes (double-quote
19845 # substitution turns \\\\ into \\, and sed turns \\ into \).
19846 sed -n \
ac1cb8d3
VS
19847 "s/'/'\\\\''/g;
19848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19849 ;;
19850 *)
19851 # `set' quotes correctly as required by POSIX, so do not add quotes.
19852 sed -n \
ac1cb8d3 19853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19854 ;;
19855 esac;
19856} |
19857 sed '
19858 t clear
19859 : clear
19860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19861 t end
19862 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19863 : end' >>confcache
19864if diff $cache_file confcache >/dev/null 2>&1; then :; else
19865 if test -w $cache_file; then
19866 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19867 cat confcache >$cache_file
19868 else
19869 echo "not updating unwritable cache $cache_file"
19870 fi
19871fi
19872rm -f confcache
19873
19874if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19875 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19876echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19877if test "${wx_cv_lib_glibc21+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879else
19880
19881 cat >conftest.$ac_ext <<_ACEOF
19882/* confdefs.h. */
19883_ACEOF
19884cat confdefs.h >>conftest.$ac_ext
19885cat >>conftest.$ac_ext <<_ACEOF
19886/* end confdefs.h. */
19887#include <features.h>
19888int
19889main ()
19890{
19891
19892 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19893 #error not glibc2.1
19894 #endif
19895
19896 ;
19897 return 0;
19898}
19899_ACEOF
19900rm -f conftest.$ac_objext
19901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19902 (eval $ac_compile) 2>conftest.er1
a848cd7e 19903 ac_status=$?
ac1cb8d3
VS
19904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
a848cd7e
SC
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
224bf05c 19909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921
19922 wx_cv_lib_glibc21=yes
19923
19924else
19925 echo "$as_me: failed program was:" >&5
19926sed 's/^/| /' conftest.$ac_ext >&5
19927
19928
19929 wx_cv_lib_glibc21=no
19930
19931
19932fi
ac1cb8d3 19933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19934
19935fi
19936echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19937echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19938 if test "$wx_cv_lib_glibc21" = "yes"; then
19939 cat >>confdefs.h <<\_ACEOF
19940#define wxHAVE_GLIBC2 1
19941_ACEOF
19942
19943 fi
19944fi
19945
19946if test "x$wx_cv_lib_glibc21" = "xyes"; then
19947 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19948 cat >>confdefs.h <<\_ACEOF
19949#define _GNU_SOURCE 1
19950_ACEOF
19951
19952 fi
19953fi
19954
19955
19956
19957if test "$wxUSE_REGEX" != "no"; then
19958 cat >>confdefs.h <<\_ACEOF
19959#define wxUSE_REGEX 1
19960_ACEOF
19961
19962
19963 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19964 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19965echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19966 wxUSE_REGEX=builtin
19967 fi
19968
19969 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19970 if test "${ac_cv_header_regex_h+set}" = set; then
19971 echo "$as_me:$LINENO: checking for regex.h" >&5
19972echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19973if test "${ac_cv_header_regex_h+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975fi
19976echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19977echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19978else
19979 # Is the header compilable?
19980echo "$as_me:$LINENO: checking regex.h usability" >&5
19981echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19982cat >conftest.$ac_ext <<_ACEOF
19983/* confdefs.h. */
19984_ACEOF
19985cat confdefs.h >>conftest.$ac_ext
19986cat >>conftest.$ac_ext <<_ACEOF
19987/* end confdefs.h. */
19988$ac_includes_default
19989#include <regex.h>
19990_ACEOF
19991rm -f conftest.$ac_objext
19992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19993 (eval $ac_compile) 2>conftest.er1
a848cd7e 19994 ac_status=$?
ac1cb8d3
VS
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
a848cd7e
SC
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
224bf05c 20000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_header_compiler=yes
20013else
20014 echo "$as_me: failed program was:" >&5
20015sed 's/^/| /' conftest.$ac_ext >&5
20016
20017ac_header_compiler=no
20018fi
ac1cb8d3 20019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021echo "${ECHO_T}$ac_header_compiler" >&6
20022
20023# Is the header present?
20024echo "$as_me:$LINENO: checking regex.h presence" >&5
20025echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20026cat >conftest.$ac_ext <<_ACEOF
20027/* confdefs.h. */
20028_ACEOF
20029cat confdefs.h >>conftest.$ac_ext
20030cat >>conftest.$ac_ext <<_ACEOF
20031/* end confdefs.h. */
20032#include <regex.h>
20033_ACEOF
20034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev/null; then
20042 if test -s conftest.err; then
20043 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20045 else
20046 ac_cpp_err=
20047 fi
20048else
20049 ac_cpp_err=yes
20050fi
20051if test -z "$ac_cpp_err"; then
20052 ac_header_preproc=yes
20053else
20054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 ac_header_preproc=no
20058fi
20059rm -f conftest.err conftest.$ac_ext
20060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061echo "${ECHO_T}$ac_header_preproc" >&6
20062
20063# So? What about this header?
ac1cb8d3
VS
20064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065 yes:no: )
a848cd7e
SC
20066 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20067echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20068 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20069echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
a848cd7e 20071 ;;
ac1cb8d3 20072 no:yes:* )
a848cd7e
SC
20073 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20074echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20075 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20076echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20078echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20080echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20081 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20082echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20083 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20084echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20085 (
20086 cat <<\_ASBOX
ac1cb8d3
VS
20087## ----------------------------------------- ##
20088## Report this to wx-dev@lists.wxwidgets.org ##
20089## ----------------------------------------- ##
a848cd7e
SC
20090_ASBOX
20091 ) |
20092 sed "s/^/$as_me: WARNING: /" >&2
20093 ;;
20094esac
20095echo "$as_me:$LINENO: checking for regex.h" >&5
20096echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20097if test "${ac_cv_header_regex_h+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099else
20100 ac_cv_header_regex_h=$ac_header_preproc
20101fi
20102echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20103echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20104
20105fi
20106if test $ac_cv_header_regex_h = yes; then
20107
20108for ac_func in regcomp
20109do
20110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20111echo "$as_me:$LINENO: checking for $ac_func" >&5
20112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20113if eval "test \"\${$as_ac_var+set}\" = set"; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115else
20116 cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h. */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h. */
ac1cb8d3
VS
20122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20124#define $ac_func innocuous_$ac_func
20125
a848cd7e
SC
20126/* System header to define __stub macros and hopefully few prototypes,
20127 which can conflict with char $ac_func (); below.
20128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20129 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20130
a848cd7e
SC
20131#ifdef __STDC__
20132# include <limits.h>
20133#else
20134# include <assert.h>
20135#endif
ac1cb8d3
VS
20136
20137#undef $ac_func
20138
a848cd7e
SC
20139/* Override any gcc2 internal prototype to avoid an error. */
20140#ifdef __cplusplus
20141extern "C"
20142{
20143#endif
20144/* We use char because int might match the return type of a gcc2
20145 builtin and then its argument prototype would still apply. */
20146char $ac_func ();
20147/* The GNU C library defines this for functions which it implements
20148 to always fail with ENOSYS. Some functions are actually named
20149 something starting with __ and the normal name is an alias. */
20150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20151choke me
20152#else
20153char (*f) () = $ac_func;
20154#endif
20155#ifdef __cplusplus
20156}
20157#endif
20158
20159int
20160main ()
20161{
20162return f != $ac_func;
20163 ;
20164 return 0;
20165}
20166_ACEOF
20167rm -f conftest.$ac_objext conftest$ac_exeext
20168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20169 (eval $ac_link) 2>conftest.er1
a848cd7e 20170 ac_status=$?
ac1cb8d3
VS
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
a848cd7e
SC
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
224bf05c 20176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 eval "$as_ac_var=yes"
20189else
20190 echo "$as_me: failed program was:" >&5
20191sed 's/^/| /' conftest.$ac_ext >&5
20192
20193eval "$as_ac_var=no"
20194fi
ac1cb8d3
VS
20195rm -f conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20197fi
20198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20200if test `eval echo '${'$as_ac_var'}'` = yes; then
20201 cat >>confdefs.h <<_ACEOF
20202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20203_ACEOF
20204
20205fi
20206done
20207
20208fi
20209
20210
20211
20212 if test "x$ac_cv_func_regcomp" != "xyes"; then
20213 if test "$wxUSE_REGEX" = "sys" ; then
20214 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20215echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20216 { (exit 1); exit 1; }; }
20217 else
20218 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20219echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20220 wxUSE_REGEX=builtin
20221 fi
20222 else
20223 wxUSE_REGEX=sys
20224 cat >>confdefs.h <<\_ACEOF
20225#define WX_NO_REGEX_ADVANCED 1
20226_ACEOF
20227
20228 fi
20229 fi
20230fi
20231
20232
20233ZLIB_LINK=
20234if test "$wxUSE_ZLIB" != "no" ; then
20235 cat >>confdefs.h <<\_ACEOF
20236#define wxUSE_ZLIB 1
20237_ACEOF
20238
20239
20240 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20241 if test "$USE_DARWIN" = 1; then
20242 system_zlib_h_ok="yes"
20243 else
20244 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20245echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20246if test "${ac_cv_header_zlib_h+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248else
20249 if test "$cross_compiling" = yes; then
20250 unset ac_cv_header_zlib_h
20251
20252else
20253 cat >conftest.$ac_ext <<_ACEOF
20254/* confdefs.h. */
20255_ACEOF
20256cat confdefs.h >>conftest.$ac_ext
20257cat >>conftest.$ac_ext <<_ACEOF
20258/* end confdefs.h. */
20259
20260 #include <zlib.h>
20261 #include <stdio.h>
20262
20263 int main()
20264 {
20265 FILE *f=fopen("conftestval", "w");
20266 if (!f) exit(1);
20267 fprintf(f, "%s",
20268 ZLIB_VERSION[0] == '1' &&
20269 (ZLIB_VERSION[2] > '1' ||
20270 (ZLIB_VERSION[2] == '1' &&
20271 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20272 exit(0);
20273 }
20274
20275_ACEOF
20276rm -f conftest$ac_exeext
20277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_cv_header_zlib_h=`cat conftestval`
20288else
20289 echo "$as_me: program exited with status $ac_status" >&5
20290echo "$as_me: failed program was:" >&5
20291sed 's/^/| /' conftest.$ac_ext >&5
20292
20293( exit $ac_status )
20294ac_cv_header_zlib_h=no
20295fi
ac1cb8d3 20296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20297fi
20298
20299fi
20300echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20301echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20302 if test "${ac_cv_header_zlib_h+set}" = set; then
20303 echo "$as_me:$LINENO: checking for zlib.h" >&5
20304echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20305if test "${ac_cv_header_zlib_h+set}" = set; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20307fi
20308echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20309echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20310else
20311 # Is the header compilable?
20312echo "$as_me:$LINENO: checking zlib.h usability" >&5
20313echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20314cat >conftest.$ac_ext <<_ACEOF
20315/* confdefs.h. */
20316_ACEOF
20317cat confdefs.h >>conftest.$ac_ext
20318cat >>conftest.$ac_ext <<_ACEOF
20319/* end confdefs.h. */
20320$ac_includes_default
20321#include <zlib.h>
20322_ACEOF
20323rm -f conftest.$ac_objext
20324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20325 (eval $ac_compile) 2>conftest.er1
a848cd7e 20326 ac_status=$?
ac1cb8d3
VS
20327 grep -v '^ *+' conftest.er1 >conftest.err
20328 rm -f conftest.er1
20329 cat conftest.err >&5
a848cd7e
SC
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
224bf05c 20332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; } &&
20338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_header_compiler=yes
20345else
20346 echo "$as_me: failed program was:" >&5
20347sed 's/^/| /' conftest.$ac_ext >&5
20348
20349ac_header_compiler=no
20350fi
ac1cb8d3 20351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20353echo "${ECHO_T}$ac_header_compiler" >&6
20354
20355# Is the header present?
20356echo "$as_me:$LINENO: checking zlib.h presence" >&5
20357echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20358cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h. */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h. */
20364#include <zlib.h>
20365_ACEOF
20366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20368 ac_status=$?
20369 grep -v '^ *+' conftest.er1 >conftest.err
20370 rm -f conftest.er1
20371 cat conftest.err >&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } >/dev/null; then
20374 if test -s conftest.err; then
20375 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20377 else
20378 ac_cpp_err=
20379 fi
20380else
20381 ac_cpp_err=yes
20382fi
20383if test -z "$ac_cpp_err"; then
20384 ac_header_preproc=yes
20385else
20386 echo "$as_me: failed program was:" >&5
20387sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 ac_header_preproc=no
20390fi
20391rm -f conftest.err conftest.$ac_ext
20392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20393echo "${ECHO_T}$ac_header_preproc" >&6
20394
20395# So? What about this header?
ac1cb8d3
VS
20396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20397 yes:no: )
a848cd7e
SC
20398 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20399echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20400 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20401echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20402 ac_header_preproc=yes
a848cd7e 20403 ;;
ac1cb8d3 20404 no:yes:* )
a848cd7e
SC
20405 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20406echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20407 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20408echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20409 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20410echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20411 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20412echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20413 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20414echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20415 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20416echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20417 (
20418 cat <<\_ASBOX
ac1cb8d3
VS
20419## ----------------------------------------- ##
20420## Report this to wx-dev@lists.wxwidgets.org ##
20421## ----------------------------------------- ##
a848cd7e
SC
20422_ASBOX
20423 ) |
20424 sed "s/^/$as_me: WARNING: /" >&2
20425 ;;
20426esac
20427echo "$as_me:$LINENO: checking for zlib.h" >&5
20428echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20429if test "${ac_cv_header_zlib_h+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20431else
20432 ac_cv_header_zlib_h=$ac_header_preproc
20433fi
20434echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20435echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20436
20437fi
20438
20439
20440
20441 system_zlib_h_ok=$ac_cv_header_zlib_h
20442 fi
20443
20444 if test "$system_zlib_h_ok" = "yes"; then
20445 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20446echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20447if test "${ac_cv_lib_z_deflate+set}" = set; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20449else
20450 ac_check_lib_save_LIBS=$LIBS
20451LIBS="-lz $LIBS"
20452cat >conftest.$ac_ext <<_ACEOF
20453/* confdefs.h. */
20454_ACEOF
20455cat confdefs.h >>conftest.$ac_ext
20456cat >>conftest.$ac_ext <<_ACEOF
20457/* end confdefs.h. */
20458
20459/* Override any gcc2 internal prototype to avoid an error. */
20460#ifdef __cplusplus
20461extern "C"
20462#endif
20463/* We use char because int might match the return type of a gcc2
20464 builtin and then its argument prototype would still apply. */
20465char deflate ();
20466int
20467main ()
20468{
20469deflate ();
20470 ;
20471 return 0;
20472}
20473_ACEOF
20474rm -f conftest.$ac_objext conftest$ac_exeext
20475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20476 (eval $ac_link) 2>conftest.er1
a848cd7e 20477 ac_status=$?
ac1cb8d3
VS
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
a848cd7e
SC
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
224bf05c 20483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 ac_cv_lib_z_deflate=yes
20496else
20497 echo "$as_me: failed program was:" >&5
20498sed 's/^/| /' conftest.$ac_ext >&5
20499
20500ac_cv_lib_z_deflate=no
20501fi
ac1cb8d3
VS
20502rm -f conftest.err conftest.$ac_objext \
20503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20504LIBS=$ac_check_lib_save_LIBS
20505fi
20506echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20507echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20508if test $ac_cv_lib_z_deflate = yes; then
20509 ZLIB_LINK=" -lz"
20510fi
20511
20512 fi
20513
20514 if test "x$ZLIB_LINK" = "x" ; then
20515 if test "$wxUSE_ZLIB" = "sys" ; then
20516 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20517echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20518 { (exit 1); exit 1; }; }
20519 else
20520 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20521echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20522 wxUSE_ZLIB=builtin
20523 fi
20524 else
20525 wxUSE_ZLIB=sys
20526 fi
20527 fi
20528fi
20529
20530
20531PNG_LINK=
20532if test "$wxUSE_LIBPNG" != "no" ; then
20533 cat >>confdefs.h <<\_ACEOF
20534#define wxUSE_LIBPNG 1
20535_ACEOF
20536
20537
20538 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20539 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20540echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20541 wxUSE_LIBPNG=sys
20542 fi
20543
20544 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20545 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20546echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20547 wxUSE_LIBPNG=builtin
20548 fi
20549
20550 if test "$wxUSE_MGL" != 1 ; then
20551 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20552 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20553echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20554if test "${ac_cv_header_png_h+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20556else
20557 if test "$cross_compiling" = yes; then
20558 unset ac_cv_header_png_h
20559
20560else
20561 cat >conftest.$ac_ext <<_ACEOF
20562/* confdefs.h. */
20563_ACEOF
20564cat confdefs.h >>conftest.$ac_ext
20565cat >>conftest.$ac_ext <<_ACEOF
20566/* end confdefs.h. */
20567
20568 #include <png.h>
20569 #include <stdio.h>
20570
20571 int main()
20572 {
20573 FILE *f=fopen("conftestval", "w");
20574 if (!f) exit(1);
20575 fprintf(f, "%s",
20576 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20577 exit(0);
20578 }
20579
20580_ACEOF
20581rm -f conftest$ac_exeext
20582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20583 (eval $ac_link) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; }; then
20592 ac_cv_header_png_h=`cat conftestval`
20593else
20594 echo "$as_me: program exited with status $ac_status" >&5
20595echo "$as_me: failed program was:" >&5
20596sed 's/^/| /' conftest.$ac_ext >&5
20597
20598( exit $ac_status )
20599ac_cv_header_png_h=no
20600fi
ac1cb8d3 20601rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20602fi
20603
20604fi
20605echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20606echo "${ECHO_T}$ac_cv_header_png_h" >&6
20607 if test "${ac_cv_header_png_h+set}" = set; then
20608 echo "$as_me:$LINENO: checking for png.h" >&5
20609echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20610if test "${ac_cv_header_png_h+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612fi
20613echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20614echo "${ECHO_T}$ac_cv_header_png_h" >&6
20615else
20616 # Is the header compilable?
20617echo "$as_me:$LINENO: checking png.h usability" >&5
20618echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20619cat >conftest.$ac_ext <<_ACEOF
20620/* confdefs.h. */
20621_ACEOF
20622cat confdefs.h >>conftest.$ac_ext
20623cat >>conftest.$ac_ext <<_ACEOF
20624/* end confdefs.h. */
20625$ac_includes_default
20626#include <png.h>
20627_ACEOF
20628rm -f conftest.$ac_objext
20629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20630 (eval $ac_compile) 2>conftest.er1
a848cd7e 20631 ac_status=$?
ac1cb8d3
VS
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
a848cd7e
SC
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
224bf05c 20637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_header_compiler=yes
20650else
20651 echo "$as_me: failed program was:" >&5
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
20654ac_header_compiler=no
20655fi
ac1cb8d3 20656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20657echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20658echo "${ECHO_T}$ac_header_compiler" >&6
20659
20660# Is the header present?
20661echo "$as_me:$LINENO: checking png.h presence" >&5
20662echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20663cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
20669#include <png.h>
20670_ACEOF
20671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20673 ac_status=$?
20674 grep -v '^ *+' conftest.er1 >conftest.err
20675 rm -f conftest.er1
20676 cat conftest.err >&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } >/dev/null; then
20679 if test -s conftest.err; then
20680 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20682 else
20683 ac_cpp_err=
20684 fi
20685else
20686 ac_cpp_err=yes
20687fi
20688if test -z "$ac_cpp_err"; then
20689 ac_header_preproc=yes
20690else
20691 echo "$as_me: failed program was:" >&5
20692sed 's/^/| /' conftest.$ac_ext >&5
20693
20694 ac_header_preproc=no
20695fi
20696rm -f conftest.err conftest.$ac_ext
20697echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20698echo "${ECHO_T}$ac_header_preproc" >&6
20699
20700# So? What about this header?
ac1cb8d3
VS
20701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20702 yes:no: )
a848cd7e
SC
20703 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20704echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20705 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20706echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20707 ac_header_preproc=yes
a848cd7e 20708 ;;
ac1cb8d3 20709 no:yes:* )
a848cd7e
SC
20710 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20711echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20712 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20713echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20715echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20717echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20718 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20719echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20720 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20721echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20722 (
20723 cat <<\_ASBOX
ac1cb8d3
VS
20724## ----------------------------------------- ##
20725## Report this to wx-dev@lists.wxwidgets.org ##
20726## ----------------------------------------- ##
a848cd7e
SC
20727_ASBOX
20728 ) |
20729 sed "s/^/$as_me: WARNING: /" >&2
20730 ;;
20731esac
20732echo "$as_me:$LINENO: checking for png.h" >&5
20733echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20734if test "${ac_cv_header_png_h+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736else
20737 ac_cv_header_png_h=$ac_header_preproc
20738fi
20739echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20740echo "${ECHO_T}$ac_cv_header_png_h" >&6
20741
20742fi
20743
20744
20745
20746 if test "$ac_cv_header_png_h" = "yes"; then
20747 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20748echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20749if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20751else
20752 ac_check_lib_save_LIBS=$LIBS
20753LIBS="-lpng -lz -lm $LIBS"
20754cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
20760
20761/* Override any gcc2 internal prototype to avoid an error. */
20762#ifdef __cplusplus
20763extern "C"
20764#endif
20765/* We use char because int might match the return type of a gcc2
20766 builtin and then its argument prototype would still apply. */
20767char png_check_sig ();
20768int
20769main ()
20770{
20771png_check_sig ();
20772 ;
20773 return 0;
20774}
20775_ACEOF
20776rm -f conftest.$ac_objext conftest$ac_exeext
20777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20778 (eval $ac_link) 2>conftest.er1
a848cd7e 20779 ac_status=$?
ac1cb8d3
VS
20780 grep -v '^ *+' conftest.er1 >conftest.err
20781 rm -f conftest.er1
20782 cat conftest.err >&5
a848cd7e
SC
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } &&
224bf05c 20785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; } &&
20791 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793 (eval $ac_try) 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
20797 ac_cv_lib_png_png_check_sig=yes
20798else
20799 echo "$as_me: failed program was:" >&5
20800sed 's/^/| /' conftest.$ac_ext >&5
20801
20802ac_cv_lib_png_png_check_sig=no
20803fi
ac1cb8d3
VS
20804rm -f conftest.err conftest.$ac_objext \
20805 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20806LIBS=$ac_check_lib_save_LIBS
20807fi
20808echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20809echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20810if test $ac_cv_lib_png_png_check_sig = yes; then
20811 PNG_LINK=" -lpng -lz"
20812fi
20813
20814 fi
20815
20816 if test "x$PNG_LINK" = "x" ; then
20817 if test "$wxUSE_LIBPNG" = "sys" ; then
20818 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20819echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20820 { (exit 1); exit 1; }; }
20821 else
20822 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20823echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20824 wxUSE_LIBPNG=builtin
20825 fi
20826 else
20827 wxUSE_LIBPNG=sys
20828 fi
20829 fi
20830 fi
20831
20832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20833fi
20834
20835
20836JPEG_LINK=
20837if test "$wxUSE_LIBJPEG" != "no" ; then
20838 cat >>confdefs.h <<\_ACEOF
20839#define wxUSE_LIBJPEG 1
20840_ACEOF
20841
20842
20843 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20844 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20845echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20846 wxUSE_LIBJPEG=sys
20847 fi
20848
20849 if test "$wxUSE_MGL" != 1 ; then
20850 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20851 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20852echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20853 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20855else
20856 cat >conftest.$ac_ext <<_ACEOF
20857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
20862
20863 #undef HAVE_STDLIB_H
20864 #include <stdio.h>
20865 #include <jpeglib.h>
20866
20867int
20868main ()
20869{
20870
20871
20872 ;
20873 return 0;
20874}
20875_ACEOF
20876rm -f conftest.$ac_objext
20877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20878 (eval $ac_compile) 2>conftest.er1
a848cd7e 20879 ac_status=$?
ac1cb8d3
VS
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
a848cd7e
SC
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
224bf05c 20885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; } &&
20891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }; then
20897 ac_cv_header_jpeglib_h=yes
20898else
20899 echo "$as_me: failed program was:" >&5
20900sed 's/^/| /' conftest.$ac_ext >&5
20901
20902ac_cv_header_jpeglib_h=no
20903
20904fi
ac1cb8d3 20905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20906
20907fi
20908
20909 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20910echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20911
20912 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20913 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20914echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20915if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20917else
20918 ac_check_lib_save_LIBS=$LIBS
20919LIBS="-ljpeg $LIBS"
20920cat >conftest.$ac_ext <<_ACEOF
20921/* confdefs.h. */
20922_ACEOF
20923cat confdefs.h >>conftest.$ac_ext
20924cat >>conftest.$ac_ext <<_ACEOF
20925/* end confdefs.h. */
20926
20927/* Override any gcc2 internal prototype to avoid an error. */
20928#ifdef __cplusplus
20929extern "C"
20930#endif
20931/* We use char because int might match the return type of a gcc2
20932 builtin and then its argument prototype would still apply. */
20933char jpeg_read_header ();
20934int
20935main ()
20936{
20937jpeg_read_header ();
20938 ;
20939 return 0;
20940}
20941_ACEOF
20942rm -f conftest.$ac_objext conftest$ac_exeext
20943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20944 (eval $ac_link) 2>conftest.er1
a848cd7e 20945 ac_status=$?
ac1cb8d3
VS
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
a848cd7e
SC
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } &&
224bf05c 20951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }; then
20963 ac_cv_lib_jpeg_jpeg_read_header=yes
20964else
20965 echo "$as_me: failed program was:" >&5
20966sed 's/^/| /' conftest.$ac_ext >&5
20967
20968ac_cv_lib_jpeg_jpeg_read_header=no
20969fi
ac1cb8d3
VS
20970rm -f conftest.err conftest.$ac_objext \
20971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20972LIBS=$ac_check_lib_save_LIBS
20973fi
20974echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20975echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20976if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20977 JPEG_LINK=" -ljpeg"
20978fi
20979
20980 fi
20981
20982 if test "x$JPEG_LINK" = "x" ; then
20983 if test "$wxUSE_LIBJPEG" = "sys" ; then
20984 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20985echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20986 { (exit 1); exit 1; }; }
20987 else
20988 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20989echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20990 wxUSE_LIBJPEG=builtin
20991 fi
20992 else
20993 wxUSE_LIBJPEG=sys
20994 fi
20995 fi
20996 fi
20997fi
20998
20999
21000TIFF_LINK=
21001TIFF_PREREQ_LINKS=-lm
21002if test "$wxUSE_LIBTIFF" != "no" ; then
21003 cat >>confdefs.h <<\_ACEOF
21004#define wxUSE_LIBTIFF 1
21005_ACEOF
21006
21007
21008 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21009 if test "$wxUSE_LIBJPEG" = "sys"; then
21010 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21011 fi
21012 if test "$wxUSE_ZLIB" = "sys"; then
21013 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21014 fi
21015 if test "${ac_cv_header_tiffio_h+set}" = set; then
21016 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21017echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21018if test "${ac_cv_header_tiffio_h+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21020fi
21021echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21022echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21023else
21024 # Is the header compilable?
21025echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21026echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21027cat >conftest.$ac_ext <<_ACEOF
21028/* confdefs.h. */
21029_ACEOF
21030cat confdefs.h >>conftest.$ac_ext
21031cat >>conftest.$ac_ext <<_ACEOF
21032/* end confdefs.h. */
21033$ac_includes_default
21034#include <tiffio.h>
21035_ACEOF
21036rm -f conftest.$ac_objext
21037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21038 (eval $ac_compile) 2>conftest.er1
a848cd7e 21039 ac_status=$?
ac1cb8d3
VS
21040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
a848cd7e
SC
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
224bf05c 21045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_header_compiler=yes
21058else
21059 echo "$as_me: failed program was:" >&5
21060sed 's/^/| /' conftest.$ac_ext >&5
21061
21062ac_header_compiler=no
21063fi
ac1cb8d3 21064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21065echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21066echo "${ECHO_T}$ac_header_compiler" >&6
21067
21068# Is the header present?
21069echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21070echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21071cat >conftest.$ac_ext <<_ACEOF
21072/* confdefs.h. */
21073_ACEOF
21074cat confdefs.h >>conftest.$ac_ext
21075cat >>conftest.$ac_ext <<_ACEOF
21076/* end confdefs.h. */
21077#include <tiffio.h>
21078_ACEOF
21079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } >/dev/null; then
21087 if test -s conftest.err; then
21088 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21090 else
21091 ac_cpp_err=
21092 fi
21093else
21094 ac_cpp_err=yes
21095fi
21096if test -z "$ac_cpp_err"; then
21097 ac_header_preproc=yes
21098else
21099 echo "$as_me: failed program was:" >&5
21100sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 ac_header_preproc=no
21103fi
21104rm -f conftest.err conftest.$ac_ext
21105echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21106echo "${ECHO_T}$ac_header_preproc" >&6
21107
21108# So? What about this header?
ac1cb8d3
VS
21109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21110 yes:no: )
a848cd7e
SC
21111 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21112echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21113 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21114echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21115 ac_header_preproc=yes
a848cd7e 21116 ;;
ac1cb8d3 21117 no:yes:* )
a848cd7e
SC
21118 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21119echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21120 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21121echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21123echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21125echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21126 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21127echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21128 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21129echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21130 (
21131 cat <<\_ASBOX
ac1cb8d3
VS
21132## ----------------------------------------- ##
21133## Report this to wx-dev@lists.wxwidgets.org ##
21134## ----------------------------------------- ##
a848cd7e
SC
21135_ASBOX
21136 ) |
21137 sed "s/^/$as_me: WARNING: /" >&2
21138 ;;
21139esac
21140echo "$as_me:$LINENO: checking for tiffio.h" >&5
21141echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21142if test "${ac_cv_header_tiffio_h+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21144else
21145 ac_cv_header_tiffio_h=$ac_header_preproc
21146fi
21147echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21148echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21149
21150fi
21151if test $ac_cv_header_tiffio_h = yes; then
21152
21153 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21154echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21155if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157else
21158 ac_check_lib_save_LIBS=$LIBS
21159LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
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
21167/* Override any gcc2 internal prototype to avoid an error. */
21168#ifdef __cplusplus
21169extern "C"
21170#endif
21171/* We use char because int might match the return type of a gcc2
21172 builtin and then its argument prototype would still apply. */
21173char TIFFError ();
21174int
21175main ()
21176{
21177TIFFError ();
21178 ;
21179 return 0;
21180}
21181_ACEOF
21182rm -f conftest.$ac_objext conftest$ac_exeext
21183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21184 (eval $ac_link) 2>conftest.er1
a848cd7e 21185 ac_status=$?
ac1cb8d3
VS
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
a848cd7e
SC
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
224bf05c 21191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_lib_tiff_TIFFError=yes
21204else
21205 echo "$as_me: failed program was:" >&5
21206sed 's/^/| /' conftest.$ac_ext >&5
21207
21208ac_cv_lib_tiff_TIFFError=no
21209fi
ac1cb8d3
VS
21210rm -f conftest.err conftest.$ac_objext \
21211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21212LIBS=$ac_check_lib_save_LIBS
21213fi
21214echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21215echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21216if test $ac_cv_lib_tiff_TIFFError = yes; then
21217 TIFF_LINK=" -ltiff"
21218fi
21219
21220
21221
21222fi
21223
21224
21225
21226 if test "x$TIFF_LINK" = "x" ; then
21227 if test "$wxUSE_LIBTIFF" = "sys" ; then
21228 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21229echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21230 { (exit 1); exit 1; }; }
21231 else
21232 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21233echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21234 wxUSE_LIBTIFF=builtin
21235 fi
21236 else
21237 wxUSE_LIBTIFF=sys
21238 fi
21239 fi
21240fi
21241
21242
21243if test "$wxUSE_EXPAT" != "no"; then
21244 wxUSE_XML=yes
21245 cat >>confdefs.h <<\_ACEOF
21246#define wxUSE_EXPAT 1
21247_ACEOF
21248
21249 cat >>confdefs.h <<\_ACEOF
21250#define wxUSE_XML 1
21251_ACEOF
21252
21253
21254 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21255 if test "${ac_cv_header_expat_h+set}" = set; then
21256 echo "$as_me:$LINENO: checking for expat.h" >&5
21257echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21258if test "${ac_cv_header_expat_h+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260fi
21261echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21262echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21263else
21264 # Is the header compilable?
21265echo "$as_me:$LINENO: checking expat.h usability" >&5
21266echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21267cat >conftest.$ac_ext <<_ACEOF
21268/* confdefs.h. */
21269_ACEOF
21270cat confdefs.h >>conftest.$ac_ext
21271cat >>conftest.$ac_ext <<_ACEOF
21272/* end confdefs.h. */
21273$ac_includes_default
21274#include <expat.h>
21275_ACEOF
21276rm -f conftest.$ac_objext
21277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21278 (eval $ac_compile) 2>conftest.er1
a848cd7e 21279 ac_status=$?
ac1cb8d3
VS
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
a848cd7e
SC
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
224bf05c 21285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; } &&
21291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21297 ac_header_compiler=yes
21298else
21299 echo "$as_me: failed program was:" >&5
21300sed 's/^/| /' conftest.$ac_ext >&5
21301
21302ac_header_compiler=no
21303fi
ac1cb8d3 21304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21305echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21306echo "${ECHO_T}$ac_header_compiler" >&6
21307
21308# Is the header present?
21309echo "$as_me:$LINENO: checking expat.h presence" >&5
21310echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21311cat >conftest.$ac_ext <<_ACEOF
21312/* confdefs.h. */
21313_ACEOF
21314cat confdefs.h >>conftest.$ac_ext
21315cat >>conftest.$ac_ext <<_ACEOF
21316/* end confdefs.h. */
21317#include <expat.h>
21318_ACEOF
21319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21321 ac_status=$?
21322 grep -v '^ *+' conftest.er1 >conftest.err
21323 rm -f conftest.er1
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } >/dev/null; then
21327 if test -s conftest.err; then
21328 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21330 else
21331 ac_cpp_err=
21332 fi
21333else
21334 ac_cpp_err=yes
21335fi
21336if test -z "$ac_cpp_err"; then
21337 ac_header_preproc=yes
21338else
21339 echo "$as_me: failed program was:" >&5
21340sed 's/^/| /' conftest.$ac_ext >&5
21341
21342 ac_header_preproc=no
21343fi
21344rm -f conftest.err conftest.$ac_ext
21345echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21346echo "${ECHO_T}$ac_header_preproc" >&6
21347
21348# So? What about this header?
ac1cb8d3
VS
21349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21350 yes:no: )
a848cd7e
SC
21351 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21352echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21353 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21354echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21355 ac_header_preproc=yes
a848cd7e 21356 ;;
ac1cb8d3 21357 no:yes:* )
a848cd7e
SC
21358 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21359echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21360 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21361echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21362 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21363echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21365echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21366 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21367echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21368 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21369echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21370 (
21371 cat <<\_ASBOX
ac1cb8d3
VS
21372## ----------------------------------------- ##
21373## Report this to wx-dev@lists.wxwidgets.org ##
21374## ----------------------------------------- ##
a848cd7e
SC
21375_ASBOX
21376 ) |
21377 sed "s/^/$as_me: WARNING: /" >&2
21378 ;;
21379esac
21380echo "$as_me:$LINENO: checking for expat.h" >&5
21381echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21382if test "${ac_cv_header_expat_h+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21384else
21385 ac_cv_header_expat_h=$ac_header_preproc
21386fi
21387echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21388echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21389
21390fi
21391if test $ac_cv_header_expat_h = yes; then
21392 found_expat_h=1
21393fi
21394
21395
21396 if test "x$found_expat_h" = "x1"; then
21397 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21398echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21399if test "${wx_cv_expat_is_not_broken+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21401else
21402
21403
21404
21405 ac_ext=cc
21406ac_cpp='$CXXCPP $CPPFLAGS'
21407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21410
21411 cat >conftest.$ac_ext <<_ACEOF
21412/* confdefs.h. */
21413_ACEOF
21414cat confdefs.h >>conftest.$ac_ext
21415cat >>conftest.$ac_ext <<_ACEOF
21416/* end confdefs.h. */
21417#include <expat.h>
21418int
21419main ()
21420{
21421
21422 ;
21423 return 0;
21424}
21425_ACEOF
21426rm -f conftest.$ac_objext
21427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21428 (eval $ac_compile) 2>conftest.er1
a848cd7e 21429 ac_status=$?
ac1cb8d3
VS
21430 grep -v '^ *+' conftest.er1 >conftest.err
21431 rm -f conftest.er1
21432 cat conftest.err >&5
a848cd7e
SC
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } &&
224bf05c 21435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; } &&
21441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; }; then
21447 wx_cv_expat_is_not_broken=yes
21448else
21449 echo "$as_me: failed program was:" >&5
21450sed 's/^/| /' conftest.$ac_ext >&5
21451
21452wx_cv_expat_is_not_broken=no
21453
21454fi
ac1cb8d3 21455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21456 ac_ext=c
21457ac_cpp='$CPP $CPPFLAGS'
21458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460ac_compiler_gnu=$ac_cv_c_compiler_gnu
21461
21462
21463
21464fi
21465echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21466echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21467 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21468 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21469echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21470if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21472else
21473 ac_check_lib_save_LIBS=$LIBS
21474LIBS="-lexpat $LIBS"
21475cat >conftest.$ac_ext <<_ACEOF
21476/* confdefs.h. */
21477_ACEOF
21478cat confdefs.h >>conftest.$ac_ext
21479cat >>conftest.$ac_ext <<_ACEOF
21480/* end confdefs.h. */
21481
21482/* Override any gcc2 internal prototype to avoid an error. */
21483#ifdef __cplusplus
21484extern "C"
21485#endif
21486/* We use char because int might match the return type of a gcc2
21487 builtin and then its argument prototype would still apply. */
21488char XML_ParserCreate ();
21489int
21490main ()
21491{
21492XML_ParserCreate ();
21493 ;
21494 return 0;
21495}
21496_ACEOF
21497rm -f conftest.$ac_objext conftest$ac_exeext
21498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21499 (eval $ac_link) 2>conftest.er1
a848cd7e 21500 ac_status=$?
ac1cb8d3
VS
21501 grep -v '^ *+' conftest.er1 >conftest.err
21502 rm -f conftest.er1
21503 cat conftest.err >&5
a848cd7e
SC
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } &&
224bf05c 21506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; } &&
21512 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21518 ac_cv_lib_expat_XML_ParserCreate=yes
21519else
21520 echo "$as_me: failed program was:" >&5
21521sed 's/^/| /' conftest.$ac_ext >&5
21522
21523ac_cv_lib_expat_XML_ParserCreate=no
21524fi
ac1cb8d3
VS
21525rm -f conftest.err conftest.$ac_objext \
21526 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21527LIBS=$ac_check_lib_save_LIBS
21528fi
21529echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21530echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21531if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21532 EXPAT_LINK=" -lexpat"
21533fi
21534
21535 fi
21536 fi
21537 if test "x$EXPAT_LINK" = "x" ; then
21538 if test "$wxUSE_EXPAT" = "sys" ; then
21539 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21540echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21541 { (exit 1); exit 1; }; }
21542 else
21543 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21544echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21545 wxUSE_EXPAT=builtin
21546 fi
21547 else
21548 wxUSE_EXPAT=sys
21549 fi
21550 fi
21551 if test "$wxUSE_EXPAT" = "builtin" ; then
21552
21553
21554subdirs="$subdirs src/expat"
21555
21556 fi
21557fi
21558
21559
21560
21561if test "$wxUSE_LIBMSPACK" != "no"; then
21562
21563 if test "${ac_cv_header_mspack_h+set}" = set; then
21564 echo "$as_me:$LINENO: checking for mspack.h" >&5
21565echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21566if test "${ac_cv_header_mspack_h+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568fi
21569echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21570echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21571else
21572 # Is the header compilable?
21573echo "$as_me:$LINENO: checking mspack.h usability" >&5
21574echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21575cat >conftest.$ac_ext <<_ACEOF
21576/* confdefs.h. */
21577_ACEOF
21578cat confdefs.h >>conftest.$ac_ext
21579cat >>conftest.$ac_ext <<_ACEOF
21580/* end confdefs.h. */
21581$ac_includes_default
21582#include <mspack.h>
21583_ACEOF
21584rm -f conftest.$ac_objext
21585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21586 (eval $ac_compile) 2>conftest.er1
a848cd7e 21587 ac_status=$?
ac1cb8d3
VS
21588 grep -v '^ *+' conftest.er1 >conftest.err
21589 rm -f conftest.er1
21590 cat conftest.err >&5
a848cd7e
SC
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } &&
224bf05c 21593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } &&
21599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 ac_header_compiler=yes
21606else
21607 echo "$as_me: failed program was:" >&5
21608sed 's/^/| /' conftest.$ac_ext >&5
21609
21610ac_header_compiler=no
21611fi
ac1cb8d3 21612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21613echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21614echo "${ECHO_T}$ac_header_compiler" >&6
21615
21616# Is the header present?
21617echo "$as_me:$LINENO: checking mspack.h presence" >&5
21618echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21619cat >conftest.$ac_ext <<_ACEOF
21620/* confdefs.h. */
21621_ACEOF
21622cat confdefs.h >>conftest.$ac_ext
21623cat >>conftest.$ac_ext <<_ACEOF
21624/* end confdefs.h. */
21625#include <mspack.h>
21626_ACEOF
21627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } >/dev/null; then
21635 if test -s conftest.err; then
21636 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21638 else
21639 ac_cpp_err=
21640 fi
21641else
21642 ac_cpp_err=yes
21643fi
21644if test -z "$ac_cpp_err"; then
21645 ac_header_preproc=yes
21646else
21647 echo "$as_me: failed program was:" >&5
21648sed 's/^/| /' conftest.$ac_ext >&5
21649
21650 ac_header_preproc=no
21651fi
21652rm -f conftest.err conftest.$ac_ext
21653echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21654echo "${ECHO_T}$ac_header_preproc" >&6
21655
21656# So? What about this header?
ac1cb8d3
VS
21657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21658 yes:no: )
a848cd7e
SC
21659 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21660echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21661 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21662echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21663 ac_header_preproc=yes
a848cd7e 21664 ;;
ac1cb8d3 21665 no:yes:* )
a848cd7e
SC
21666 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21667echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21668 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21669echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21671echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21673echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21674 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21675echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21676 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21677echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21678 (
21679 cat <<\_ASBOX
ac1cb8d3
VS
21680## ----------------------------------------- ##
21681## Report this to wx-dev@lists.wxwidgets.org ##
21682## ----------------------------------------- ##
a848cd7e
SC
21683_ASBOX
21684 ) |
21685 sed "s/^/$as_me: WARNING: /" >&2
21686 ;;
21687esac
21688echo "$as_me:$LINENO: checking for mspack.h" >&5
21689echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21690if test "${ac_cv_header_mspack_h+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692else
21693 ac_cv_header_mspack_h=$ac_header_preproc
21694fi
21695echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21696echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21697
21698fi
21699if test $ac_cv_header_mspack_h = yes; then
21700 found_mspack_h=1
21701fi
21702
21703
21704 if test "x$found_mspack_h" = "x1"; then
21705 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21706echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21707if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21709else
21710 ac_check_lib_save_LIBS=$LIBS
21711LIBS="-lmspack $LIBS"
21712cat >conftest.$ac_ext <<_ACEOF
21713/* confdefs.h. */
21714_ACEOF
21715cat confdefs.h >>conftest.$ac_ext
21716cat >>conftest.$ac_ext <<_ACEOF
21717/* end confdefs.h. */
21718
21719/* Override any gcc2 internal prototype to avoid an error. */
21720#ifdef __cplusplus
21721extern "C"
21722#endif
21723/* We use char because int might match the return type of a gcc2
21724 builtin and then its argument prototype would still apply. */
21725char mspack_create_chm_decompressor ();
21726int
21727main ()
21728{
21729mspack_create_chm_decompressor ();
21730 ;
21731 return 0;
21732}
21733_ACEOF
21734rm -f conftest.$ac_objext conftest$ac_exeext
21735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21736 (eval $ac_link) 2>conftest.er1
a848cd7e 21737 ac_status=$?
ac1cb8d3
VS
21738 grep -v '^ *+' conftest.er1 >conftest.err
21739 rm -f conftest.er1
21740 cat conftest.err >&5
a848cd7e
SC
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } &&
224bf05c 21743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; } &&
21749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21756else
21757 echo "$as_me: failed program was:" >&5
21758sed 's/^/| /' conftest.$ac_ext >&5
21759
21760ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21761fi
ac1cb8d3
VS
21762rm -f conftest.err conftest.$ac_objext \
21763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21764LIBS=$ac_check_lib_save_LIBS
21765fi
21766echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21767echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21768if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21769 MSPACK_LINK=" -lmspack"
21770fi
21771
21772 fi
21773 if test "x$MSPACK_LINK" = "x" ; then
21774 wxUSE_LIBMSPACK=no
21775 else
21776 cat >>confdefs.h <<\_ACEOF
21777#define wxUSE_LIBMSPACK 1
21778_ACEOF
21779
21780 fi
21781fi
21782
21783
21784
21785AFMINSTALL=
21786WIN32INSTALL=
21787
21788TOOLKIT=
21789TOOLKIT_INCLUDE=
21790WIDGET_SET=
21791
21792if test "$USE_WIN32" = 1 ; then
21793
21794for ac_header in w32api.h
21795do
21796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21797if eval "test \"\${$as_ac_Header+set}\" = set"; then
21798 echo "$as_me:$LINENO: checking for $ac_header" >&5
21799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21800if eval "test \"\${$as_ac_Header+set}\" = set"; then
21801 echo $ECHO_N "(cached) $ECHO_C" >&6
21802fi
21803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21805else
21806 # Is the header compilable?
21807echo "$as_me:$LINENO: checking $ac_header usability" >&5
21808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21809cat >conftest.$ac_ext <<_ACEOF
21810/* confdefs.h. */
21811_ACEOF
21812cat confdefs.h >>conftest.$ac_ext
21813cat >>conftest.$ac_ext <<_ACEOF
21814/* end confdefs.h. */
21815$ac_includes_default
21816#include <$ac_header>
21817_ACEOF
21818rm -f conftest.$ac_objext
21819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21820 (eval $ac_compile) 2>conftest.er1
a848cd7e 21821 ac_status=$?
ac1cb8d3
VS
21822 grep -v '^ *+' conftest.er1 >conftest.err
21823 rm -f conftest.er1
21824 cat conftest.err >&5
a848cd7e
SC
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } &&
224bf05c 21827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_header_compiler=yes
21840else
21841 echo "$as_me: failed program was:" >&5
21842sed 's/^/| /' conftest.$ac_ext >&5
21843
21844ac_header_compiler=no
21845fi
ac1cb8d3 21846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21848echo "${ECHO_T}$ac_header_compiler" >&6
21849
21850# Is the header present?
21851echo "$as_me:$LINENO: checking $ac_header presence" >&5
21852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21853cat >conftest.$ac_ext <<_ACEOF
21854/* confdefs.h. */
21855_ACEOF
21856cat confdefs.h >>conftest.$ac_ext
21857cat >>conftest.$ac_ext <<_ACEOF
21858/* end confdefs.h. */
21859#include <$ac_header>
21860_ACEOF
21861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21863 ac_status=$?
21864 grep -v '^ *+' conftest.er1 >conftest.err
21865 rm -f conftest.er1
21866 cat conftest.err >&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } >/dev/null; then
21869 if test -s conftest.err; then
21870 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21872 else
21873 ac_cpp_err=
21874 fi
21875else
21876 ac_cpp_err=yes
21877fi
21878if test -z "$ac_cpp_err"; then
21879 ac_header_preproc=yes
21880else
21881 echo "$as_me: failed program was:" >&5
21882sed 's/^/| /' conftest.$ac_ext >&5
21883
21884 ac_header_preproc=no
21885fi
21886rm -f conftest.err conftest.$ac_ext
21887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21888echo "${ECHO_T}$ac_header_preproc" >&6
21889
21890# So? What about this header?
ac1cb8d3
VS
21891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21892 yes:no: )
a848cd7e
SC
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21897 ac_header_preproc=yes
a848cd7e 21898 ;;
ac1cb8d3 21899 no:yes:* )
a848cd7e
SC
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21912 (
21913 cat <<\_ASBOX
ac1cb8d3
VS
21914## ----------------------------------------- ##
21915## Report this to wx-dev@lists.wxwidgets.org ##
21916## ----------------------------------------- ##
a848cd7e
SC
21917_ASBOX
21918 ) |
21919 sed "s/^/$as_me: WARNING: /" >&2
21920 ;;
21921esac
21922echo "$as_me:$LINENO: checking for $ac_header" >&5
21923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21924if eval "test \"\${$as_ac_Header+set}\" = set"; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926else
ac1cb8d3 21927 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21928fi
21929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21931
21932fi
21933if test `eval echo '${'$as_ac_Header'}'` = yes; then
21934 cat >>confdefs.h <<_ACEOF
21935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21936_ACEOF
21937
21938fi
21939
21940done
21941
21942 if test "${ac_cv_header_windows_h+set}" = set; then
21943 echo "$as_me:$LINENO: checking for windows.h" >&5
21944echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21945if test "${ac_cv_header_windows_h+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21947fi
21948echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21949echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21950else
21951 # Is the header compilable?
21952echo "$as_me:$LINENO: checking windows.h usability" >&5
21953echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21954cat >conftest.$ac_ext <<_ACEOF
21955/* confdefs.h. */
21956_ACEOF
21957cat confdefs.h >>conftest.$ac_ext
21958cat >>conftest.$ac_ext <<_ACEOF
21959/* end confdefs.h. */
21960$ac_includes_default
21961#include <windows.h>
21962_ACEOF
21963rm -f conftest.$ac_objext
21964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21965 (eval $ac_compile) 2>conftest.er1
a848cd7e 21966 ac_status=$?
ac1cb8d3
VS
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
a848cd7e
SC
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
224bf05c 21972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21975 ac_status=$?
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; } &&
21978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21981 ac_status=$?
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21984 ac_header_compiler=yes
21985else
21986 echo "$as_me: failed program was:" >&5
21987sed 's/^/| /' conftest.$ac_ext >&5
21988
21989ac_header_compiler=no
21990fi
ac1cb8d3 21991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21993echo "${ECHO_T}$ac_header_compiler" >&6
21994
21995# Is the header present?
21996echo "$as_me:$LINENO: checking windows.h presence" >&5
21997echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21998cat >conftest.$ac_ext <<_ACEOF
21999/* confdefs.h. */
22000_ACEOF
22001cat confdefs.h >>conftest.$ac_ext
22002cat >>conftest.$ac_ext <<_ACEOF
22003/* end confdefs.h. */
22004#include <windows.h>
22005_ACEOF
22006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22008 ac_status=$?
22009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } >/dev/null; then
22014 if test -s conftest.err; then
22015 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22017 else
22018 ac_cpp_err=
22019 fi
22020else
22021 ac_cpp_err=yes
22022fi
22023if test -z "$ac_cpp_err"; then
22024 ac_header_preproc=yes
22025else
22026 echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 ac_header_preproc=no
22030fi
22031rm -f conftest.err conftest.$ac_ext
22032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22033echo "${ECHO_T}$ac_header_preproc" >&6
22034
22035# So? What about this header?
ac1cb8d3
VS
22036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22037 yes:no: )
a848cd7e
SC
22038 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22039echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22040 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22041echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22042 ac_header_preproc=yes
a848cd7e 22043 ;;
ac1cb8d3 22044 no:yes:* )
a848cd7e
SC
22045 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22046echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22047 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22048echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22050echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22052echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22053 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22054echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22055 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22056echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22057 (
22058 cat <<\_ASBOX
ac1cb8d3
VS
22059## ----------------------------------------- ##
22060## Report this to wx-dev@lists.wxwidgets.org ##
22061## ----------------------------------------- ##
a848cd7e
SC
22062_ASBOX
22063 ) |
22064 sed "s/^/$as_me: WARNING: /" >&2
22065 ;;
22066esac
22067echo "$as_me:$LINENO: checking for windows.h" >&5
22068echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22069if test "${ac_cv_header_windows_h+set}" = set; then
22070 echo $ECHO_N "(cached) $ECHO_C" >&6
22071else
22072 ac_cv_header_windows_h=$ac_header_preproc
22073fi
22074echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22075echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22076
22077fi
22078if test $ac_cv_header_windows_h = yes; then
22079 :
22080else
22081
22082 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22083echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22084 { (exit 1); exit 1; }; }
22085
22086fi
22087
22088
22089
22090 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22091
22092 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22093 LIBS="$LIBS -loleacc"
22094 fi
22095
22096 case "${host}" in
22097 *-*-cygwin* )
22098 LIBS="$LIBS -lkernel32 -luser32"
22099 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22100 esac
22101
22102 if test "$wxUSE_ODBC" = "sys" ; then
22103 wxUSE_ODBC = "yes"
22104 fi
22105 if test "$wxUSE_ODBC" = "yes" ; then
22106 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22107 cat >>confdefs.h <<\_ACEOF
22108#define wxUSE_ODBC 1
22109_ACEOF
22110
22111 fi
22112
22113 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22114 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22115
22116 WIN32INSTALL=win32install
22117fi
22118
22119if test "$wxUSE_GUI" = "yes"; then
22120 USE_GUI=1
22121
22122 GUI_TK_LIBRARY=
22123
22124 WXGTK12=
22125 WXGTK127=
22126 WXGTK20=
22127 WXGPE=
22128
22129 if test "$wxUSE_MSW" = 1 ; then
22130 TOOLKIT=MSW
22131 GUIDIST=MSW_DIST
22132
22133 case "${host}" in
22134 *-*-mingw32* )
22135 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22136 esac
22137 fi
22138
22139 if test "$wxUSE_GTK" = 1; then
22140 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22141echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22142
22143 gtk_version_cached=1
22144 if test "${wx_cv_lib_gtk+set}" = set; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22146else
22147
22148 gtk_version_cached=0
22149 echo "$as_me:$LINENO: result: " >&5
22150echo "${ECHO_T}" >&6
22151
22152 GTK_MODULES=
22153 if test "$wxUSE_THREADS" = "yes"; then
22154 GTK_MODULES=gthread
22155 fi
22156
22157 wx_cv_lib_gtk=
22158 if test "x$wxUSE_GTK2" = "xyes"; then
22159 # Check whether --enable-gtktest or --disable-gtktest was given.
22160if test "${enable_gtktest+set}" = set; then
22161 enableval="$enable_gtktest"
22162
22163else
22164 enable_gtktest=yes
22165fi;
22166
22167 pkg_config_args=gtk+-2.0
22168 for module in . $GTK_MODULES
22169 do
22170 case "$module" in
22171 gthread)
22172 pkg_config_args="$pkg_config_args gthread-2.0"
22173 ;;
22174 esac
22175 done
22176
22177 no_gtk=""
22178
22179 # Extract the first word of "pkg-config", so it can be a program name with args.
22180set dummy pkg-config; ac_word=$2
22181echo "$as_me:$LINENO: checking for $ac_word" >&5
22182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22183if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22185else
22186 case $PKG_CONFIG in
22187 [\\/]* | ?:[\\/]*)
22188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22189 ;;
22190 *)
22191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22192for as_dir in $PATH
22193do
22194 IFS=$as_save_IFS
22195 test -z "$as_dir" && as_dir=.
22196 for ac_exec_ext in '' $ac_executable_extensions; do
22197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22198 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22200 break 2
22201 fi
22202done
22203done
22204
22205 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22206 ;;
22207esac
22208fi
22209PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22210
22211if test -n "$PKG_CONFIG"; then
22212 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22213echo "${ECHO_T}$PKG_CONFIG" >&6
22214else
22215 echo "$as_me:$LINENO: result: no" >&5
22216echo "${ECHO_T}no" >&6
22217fi
22218
22219
22220 if test x$PKG_CONFIG != xno ; then
22221 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22222 :
22223 else
c2218763 22224 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22225 no_gtk=yes
22226 PKG_CONFIG=no
22227 fi
22228 else
22229 no_gtk=yes
22230 fi
22231
22232 min_gtk_version=2.0.0
22233 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22234echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22235
22236 if test x$PKG_CONFIG != xno ; then
22237 ## don't try to run the test against uninstalled libtool libs
22238 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22239 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22240 enable_gtktest=no
22241 fi
22242
22243 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22244 :
22245 else
22246 no_gtk=yes
22247 fi
22248 fi
22249
22250 if test x"$no_gtk" = x ; then
22251 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22252 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22253 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22254 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22255 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22256 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22257 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22258 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22259 if test "x$enable_gtktest" = "xyes" ; then
22260 ac_save_CFLAGS="$CFLAGS"
22261 ac_save_LIBS="$LIBS"
22262 CFLAGS="$CFLAGS $GTK_CFLAGS"
22263 LIBS="$GTK_LIBS $LIBS"
22264 rm -f conf.gtktest
22265 if test "$cross_compiling" = yes; then
22266 echo $ac_n "cross compiling; assumed OK... $ac_c"
22267else
22268 cat >conftest.$ac_ext <<_ACEOF
22269/* confdefs.h. */
22270_ACEOF
22271cat confdefs.h >>conftest.$ac_ext
22272cat >>conftest.$ac_ext <<_ACEOF
22273/* end confdefs.h. */
22274
22275#include <gtk/gtk.h>
22276#include <stdio.h>
22277#include <stdlib.h>
22278
22279int
22280main ()
22281{
22282 int major, minor, micro;
22283 char *tmp_version;
22284
22285 system ("touch conf.gtktest");
22286
22287 /* HP/UX 9 (%@#!) writes to sscanf strings */
22288 tmp_version = g_strdup("$min_gtk_version");
22289 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22290 printf("%s, bad version string\n", "$min_gtk_version");
22291 exit(1);
22292 }
22293
22294 if ((gtk_major_version != $gtk_config_major_version) ||
22295 (gtk_minor_version != $gtk_config_minor_version) ||
22296 (gtk_micro_version != $gtk_config_micro_version))
22297 {
22298 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22299 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22300 gtk_major_version, gtk_minor_version, gtk_micro_version);
22301 printf ("*** was found! If pkg-config was correct, then it is best\n");
22302 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22303 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22304 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22305 printf("*** required on your system.\n");
22306 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22307 printf("*** to point to the correct configuration files\n");
22308 }
22309 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22310 (gtk_minor_version != GTK_MINOR_VERSION) ||
22311 (gtk_micro_version != GTK_MICRO_VERSION))
22312 {
22313 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22314 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22315 printf("*** library (version %d.%d.%d)\n",
22316 gtk_major_version, gtk_minor_version, gtk_micro_version);
22317 }
22318 else
22319 {
22320 if ((gtk_major_version > major) ||
22321 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22322 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22323 {
22324 return 0;
22325 }
22326 else
22327 {
22328 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22329 gtk_major_version, gtk_minor_version, gtk_micro_version);
22330 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22331 major, minor, micro);
22332 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22333 printf("***\n");
22334 printf("*** If you have already installed a sufficiently new version, this error\n");
22335 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22336 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22337 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22338 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22339 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22340 printf("*** so that the correct libraries are found at run-time))\n");
22341 }
22342 }
22343 return 1;
22344}
22345
22346_ACEOF
22347rm -f conftest$ac_exeext
22348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22349 (eval $ac_link) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354 (eval $ac_try) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }; }; then
22358 :
22359else
22360 echo "$as_me: program exited with status $ac_status" >&5
22361echo "$as_me: failed program was:" >&5
22362sed 's/^/| /' conftest.$ac_ext >&5
22363
22364( exit $ac_status )
22365no_gtk=yes
22366fi
ac1cb8d3 22367rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22368fi
22369 CFLAGS="$ac_save_CFLAGS"
22370 LIBS="$ac_save_LIBS"
22371 fi
22372 fi
22373 if test "x$no_gtk" = x ; then
22374 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22375echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22376 wx_cv_lib_gtk=2.0
22377 else
22378 echo "$as_me:$LINENO: result: no" >&5
22379echo "${ECHO_T}no" >&6
22380 if test "$PKG_CONFIG" = "no" ; then
22381 echo "*** A new enough version of pkg-config was not found."
22382 echo "*** See http://pkgconfig.sourceforge.net"
22383 else
22384 if test -f conf.gtktest ; then
22385 :
22386 else
22387 echo "*** Could not run GTK+ test program, checking why..."
22388 ac_save_CFLAGS="$CFLAGS"
22389 ac_save_LIBS="$LIBS"
22390 CFLAGS="$CFLAGS $GTK_CFLAGS"
22391 LIBS="$LIBS $GTK_LIBS"
22392 cat >conftest.$ac_ext <<_ACEOF
22393/* confdefs.h. */
22394_ACEOF
22395cat confdefs.h >>conftest.$ac_ext
22396cat >>conftest.$ac_ext <<_ACEOF
22397/* end confdefs.h. */
22398
22399#include <gtk/gtk.h>
22400#include <stdio.h>
22401
22402int
22403main ()
22404{
22405 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22406 ;
22407 return 0;
22408}
22409_ACEOF
22410rm -f conftest.$ac_objext conftest$ac_exeext
22411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22412 (eval $ac_link) 2>conftest.er1
a848cd7e 22413 ac_status=$?
ac1cb8d3
VS
22414 grep -v '^ *+' conftest.er1 >conftest.err
22415 rm -f conftest.er1
22416 cat conftest.err >&5
a848cd7e
SC
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); } &&
224bf05c 22419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; } &&
22425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427 (eval $ac_try) 2>&5
22428 ac_status=$?
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; }; then
22431 echo "*** The test program compiled, but did not run. This usually means"
22432 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22433 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22434 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22435 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22436 echo "*** is required on your system"
22437 echo "***"
22438 echo "*** If you have an old version installed, it is best to remove it, although"
22439 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22440else
22441 echo "$as_me: failed program was:" >&5
22442sed 's/^/| /' conftest.$ac_ext >&5
22443
22444 echo "*** The test program failed to compile or link. See the file config.log for the"
22445 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22446fi
ac1cb8d3
VS
22447rm -f conftest.err conftest.$ac_objext \
22448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22449 CFLAGS="$ac_save_CFLAGS"
22450 LIBS="$ac_save_LIBS"
22451 fi
22452 fi
22453 GTK_CFLAGS=""
22454 GTK_LIBS=""
22455 :
22456 fi
22457
22458
22459 rm -f conf.gtktest
22460
22461 else
22462
22463# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22464if test "${with_gtk_prefix+set}" = set; then
22465 withval="$with_gtk_prefix"
22466 gtk_config_prefix="$withval"
22467else
22468 gtk_config_prefix=""
22469fi;
22470
22471# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22472if test "${with_gtk_exec_prefix+set}" = set; then
22473 withval="$with_gtk_exec_prefix"
22474 gtk_config_exec_prefix="$withval"
22475else
22476 gtk_config_exec_prefix=""
22477fi;
22478# Check whether --enable-gtktest or --disable-gtktest was given.
22479if test "${enable_gtktest+set}" = set; then
22480 enableval="$enable_gtktest"
22481
22482else
22483 enable_gtktest=yes
22484fi;
22485
22486 for module in . $GTK_MODULES
22487 do
22488 case "$module" in
22489 gthread)
22490 gtk_config_args="$gtk_config_args gthread"
22491 ;;
22492 esac
22493 done
22494
22495 if test x$gtk_config_exec_prefix != x ; then
22496 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22497 if test x${GTK_CONFIG+set} != xset ; then
22498 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22499 fi
22500 fi
22501 if test x$gtk_config_prefix != x ; then
22502 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22503 if test x${GTK_CONFIG+set} != xset ; then
22504 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22505 fi
22506 fi
22507
22508 # Extract the first word of "gtk-config", so it can be a program name with args.
22509set dummy gtk-config; ac_word=$2
22510echo "$as_me:$LINENO: checking for $ac_word" >&5
22511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22512if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22514else
22515 case $GTK_CONFIG in
22516 [\\/]* | ?:[\\/]*)
22517 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22518 ;;
22519 *)
22520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22521for as_dir in $PATH
22522do
22523 IFS=$as_save_IFS
22524 test -z "$as_dir" && as_dir=.
22525 for ac_exec_ext in '' $ac_executable_extensions; do
22526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22527 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22529 break 2
22530 fi
22531done
22532done
22533
22534 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22535 ;;
22536esac
22537fi
22538GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22539
22540if test -n "$GTK_CONFIG"; then
22541 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22542echo "${ECHO_T}$GTK_CONFIG" >&6
22543else
22544 echo "$as_me:$LINENO: result: no" >&5
22545echo "${ECHO_T}no" >&6
22546fi
22547
22548 min_gtk_version=1.2.7
22549 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22550echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22551 no_gtk=""
22552 if test "$GTK_CONFIG" = "no" ; then
22553 no_gtk=yes
22554 else
22555 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22556 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22557 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22558 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22559 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22560 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22561 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22562 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22563 if test "x$enable_gtktest" = "xyes" ; then
22564 ac_save_CFLAGS="$CFLAGS"
22565 ac_save_LIBS="$LIBS"
22566 CFLAGS="$CFLAGS $GTK_CFLAGS"
22567 LIBS="$GTK_LIBS $LIBS"
22568 rm -f conf.gtktest
22569 if test "$cross_compiling" = yes; then
22570 echo $ac_n "cross compiling; assumed OK... $ac_c"
22571else
22572 cat >conftest.$ac_ext <<_ACEOF
22573/* confdefs.h. */
22574_ACEOF
22575cat confdefs.h >>conftest.$ac_ext
22576cat >>conftest.$ac_ext <<_ACEOF
22577/* end confdefs.h. */
22578
22579#include <gtk/gtk.h>
22580#include <stdio.h>
22581#include <stdlib.h>
22582
22583int
22584main ()
22585{
22586 int major, minor, micro;
22587 char *tmp_version;
22588
22589 system ("touch conf.gtktest");
22590
22591 /* HP/UX 9 (%@#!) writes to sscanf strings */
22592 tmp_version = g_strdup("$min_gtk_version");
22593 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22594 printf("%s, bad version string\n", "$min_gtk_version");
22595 exit(1);
22596 }
22597
22598 if ((gtk_major_version != $gtk_config_major_version) ||
22599 (gtk_minor_version != $gtk_config_minor_version) ||
22600 (gtk_micro_version != $gtk_config_micro_version))
22601 {
22602 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22603 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22604 gtk_major_version, gtk_minor_version, gtk_micro_version);
22605 printf ("*** was found! If gtk-config was correct, then it is best\n");
22606 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22607 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22608 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22609 printf("*** required on your system.\n");
22610 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22611 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22612 printf("*** before re-running configure\n");
22613 }
22614#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22615 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22616 (gtk_minor_version != GTK_MINOR_VERSION) ||
22617 (gtk_micro_version != GTK_MICRO_VERSION))
22618 {
22619 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22620 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22621 printf("*** library (version %d.%d.%d)\n",
22622 gtk_major_version, gtk_minor_version, gtk_micro_version);
22623 }
22624#endif /* defined (GTK_MAJOR_VERSION) ... */
22625 else
22626 {
22627 if ((gtk_major_version > major) ||
22628 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22629 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22630 {
22631 return 0;
22632 }
22633 else
22634 {
22635 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22636 gtk_major_version, gtk_minor_version, gtk_micro_version);
22637 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22638 major, minor, micro);
22639 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22640 printf("***\n");
22641 printf("*** If you have already installed a sufficiently new version, this error\n");
22642 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22643 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22644 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22645 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22646 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22647 printf("*** so that the correct libraries are found at run-time))\n");
22648 }
22649 }
22650 return 1;
22651}
22652
22653_ACEOF
22654rm -f conftest$ac_exeext
22655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22656 (eval $ac_link) 2>&5
22657 ac_status=$?
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661 (eval $ac_try) 2>&5
22662 ac_status=$?
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); }; }; then
22665 :
22666else
22667 echo "$as_me: program exited with status $ac_status" >&5
22668echo "$as_me: failed program was:" >&5
22669sed 's/^/| /' conftest.$ac_ext >&5
22670
22671( exit $ac_status )
22672no_gtk=yes
22673fi
ac1cb8d3 22674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22675fi
22676 CFLAGS="$ac_save_CFLAGS"
22677 LIBS="$ac_save_LIBS"
22678 fi
22679 fi
22680 if test "x$no_gtk" = x ; then
22681 echo "$as_me:$LINENO: result: yes" >&5
22682echo "${ECHO_T}yes" >&6
22683 wx_cv_lib_gtk=1.2.7
22684 else
22685 echo "$as_me:$LINENO: result: no" >&5
22686echo "${ECHO_T}no" >&6
22687 if test "$GTK_CONFIG" = "no" ; then
22688 echo "*** The gtk-config script installed by GTK could not be found"
22689 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22690 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22691 echo "*** full path to gtk-config."
22692 else
22693 if test -f conf.gtktest ; then
22694 :
22695 else
22696 echo "*** Could not run GTK test program, checking why..."
22697 CFLAGS="$CFLAGS $GTK_CFLAGS"
22698 LIBS="$LIBS $GTK_LIBS"
22699 cat >conftest.$ac_ext <<_ACEOF
22700/* confdefs.h. */
22701_ACEOF
22702cat confdefs.h >>conftest.$ac_ext
22703cat >>conftest.$ac_ext <<_ACEOF
22704/* end confdefs.h. */
22705
22706#include <gtk/gtk.h>
22707#include <stdio.h>
22708
22709int
22710main ()
22711{
22712 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22713 ;
22714 return 0;
22715}
22716_ACEOF
22717rm -f conftest.$ac_objext conftest$ac_exeext
22718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22719 (eval $ac_link) 2>conftest.er1
a848cd7e 22720 ac_status=$?
ac1cb8d3
VS
22721 grep -v '^ *+' conftest.er1 >conftest.err
22722 rm -f conftest.er1
22723 cat conftest.err >&5
a848cd7e
SC
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } &&
224bf05c 22726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; } &&
22732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; }; then
22738 echo "*** The test program compiled, but did not run. This usually means"
22739 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22740 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22741 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22742 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22743 echo "*** is required on your system"
22744 echo "***"
22745 echo "*** If you have an old version installed, it is best to remove it, although"
22746 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22747 echo "***"
22748 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22749 echo "*** came with the system with the command"
22750 echo "***"
22751 echo "*** rpm --erase --nodeps gtk gtk-devel"
22752else
22753 echo "$as_me: failed program was:" >&5
22754sed 's/^/| /' conftest.$ac_ext >&5
22755
22756 echo "*** The test program failed to compile or link. See the file config.log for the"
22757 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22758 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22759 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22760fi
ac1cb8d3
VS
22761rm -f conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22763 CFLAGS="$ac_save_CFLAGS"
22764 LIBS="$ac_save_LIBS"
22765 fi
22766 fi
22767 GTK_CFLAGS=""
22768 GTK_LIBS=""
22769 :
22770 fi
22771
22772
22773 rm -f conf.gtktest
22774
22775
22776 if test -z "$wx_cv_lib_gtk"; then
22777
22778# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22779if test "${with_gtk_prefix+set}" = set; then
22780 withval="$with_gtk_prefix"
22781 gtk_config_prefix="$withval"
22782else
22783 gtk_config_prefix=""
22784fi;
22785
22786# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22787if test "${with_gtk_exec_prefix+set}" = set; then
22788 withval="$with_gtk_exec_prefix"
22789 gtk_config_exec_prefix="$withval"
22790else
22791 gtk_config_exec_prefix=""
22792fi;
22793# Check whether --enable-gtktest or --disable-gtktest was given.
22794if test "${enable_gtktest+set}" = set; then
22795 enableval="$enable_gtktest"
22796
22797else
22798 enable_gtktest=yes
22799fi;
22800
22801 for module in . $GTK_MODULES
22802 do
22803 case "$module" in
22804 gthread)
22805 gtk_config_args="$gtk_config_args gthread"
22806 ;;
22807 esac
22808 done
22809
22810 if test x$gtk_config_exec_prefix != x ; then
22811 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22812 if test x${GTK_CONFIG+set} != xset ; then
22813 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22814 fi
22815 fi
22816 if test x$gtk_config_prefix != x ; then
22817 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22818 if test x${GTK_CONFIG+set} != xset ; then
22819 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22820 fi
22821 fi
22822
22823 # Extract the first word of "gtk-config", so it can be a program name with args.
22824set dummy gtk-config; ac_word=$2
22825echo "$as_me:$LINENO: checking for $ac_word" >&5
22826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22827if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22829else
22830 case $GTK_CONFIG in
22831 [\\/]* | ?:[\\/]*)
22832 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22833 ;;
22834 *)
22835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22836for as_dir in $PATH
22837do
22838 IFS=$as_save_IFS
22839 test -z "$as_dir" && as_dir=.
22840 for ac_exec_ext in '' $ac_executable_extensions; do
22841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22842 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22844 break 2
22845 fi
22846done
22847done
22848
22849 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22850 ;;
22851esac
22852fi
22853GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22854
22855if test -n "$GTK_CONFIG"; then
22856 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22857echo "${ECHO_T}$GTK_CONFIG" >&6
22858else
22859 echo "$as_me:$LINENO: result: no" >&5
22860echo "${ECHO_T}no" >&6
22861fi
22862
22863 min_gtk_version=1.2.3
22864 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22865echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22866 no_gtk=""
22867 if test "$GTK_CONFIG" = "no" ; then
22868 no_gtk=yes
22869 else
22870 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22871 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22872 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22873 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22874 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22875 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22876 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22878 if test "x$enable_gtktest" = "xyes" ; then
22879 ac_save_CFLAGS="$CFLAGS"
22880 ac_save_LIBS="$LIBS"
22881 CFLAGS="$CFLAGS $GTK_CFLAGS"
22882 LIBS="$GTK_LIBS $LIBS"
22883 rm -f conf.gtktest
22884 if test "$cross_compiling" = yes; then
22885 echo $ac_n "cross compiling; assumed OK... $ac_c"
22886else
22887 cat >conftest.$ac_ext <<_ACEOF
22888/* confdefs.h. */
22889_ACEOF
22890cat confdefs.h >>conftest.$ac_ext
22891cat >>conftest.$ac_ext <<_ACEOF
22892/* end confdefs.h. */
22893
22894#include <gtk/gtk.h>
22895#include <stdio.h>
22896#include <stdlib.h>
22897
22898int
22899main ()
22900{
22901 int major, minor, micro;
22902 char *tmp_version;
22903
22904 system ("touch conf.gtktest");
22905
22906 /* HP/UX 9 (%@#!) writes to sscanf strings */
22907 tmp_version = g_strdup("$min_gtk_version");
22908 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22909 printf("%s, bad version string\n", "$min_gtk_version");
22910 exit(1);
22911 }
22912
22913 if ((gtk_major_version != $gtk_config_major_version) ||
22914 (gtk_minor_version != $gtk_config_minor_version) ||
22915 (gtk_micro_version != $gtk_config_micro_version))
22916 {
22917 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22918 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22919 gtk_major_version, gtk_minor_version, gtk_micro_version);
22920 printf ("*** was found! If gtk-config was correct, then it is best\n");
22921 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22922 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22923 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22924 printf("*** required on your system.\n");
22925 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22926 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22927 printf("*** before re-running configure\n");
22928 }
22929#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22930 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22931 (gtk_minor_version != GTK_MINOR_VERSION) ||
22932 (gtk_micro_version != GTK_MICRO_VERSION))
22933 {
22934 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22935 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22936 printf("*** library (version %d.%d.%d)\n",
22937 gtk_major_version, gtk_minor_version, gtk_micro_version);
22938 }
22939#endif /* defined (GTK_MAJOR_VERSION) ... */
22940 else
22941 {
22942 if ((gtk_major_version > major) ||
22943 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22944 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22945 {
22946 return 0;
22947 }
22948 else
22949 {
22950 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22951 gtk_major_version, gtk_minor_version, gtk_micro_version);
22952 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22953 major, minor, micro);
22954 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22955 printf("***\n");
22956 printf("*** If you have already installed a sufficiently new version, this error\n");
22957 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22958 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22959 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22960 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22961 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22962 printf("*** so that the correct libraries are found at run-time))\n");
22963 }
22964 }
22965 return 1;
22966}
22967
22968_ACEOF
22969rm -f conftest$ac_exeext
22970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22971 (eval $ac_link) 2>&5
22972 ac_status=$?
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22976 (eval $ac_try) 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; }; then
22980 :
22981else
22982 echo "$as_me: program exited with status $ac_status" >&5
22983echo "$as_me: failed program was:" >&5
22984sed 's/^/| /' conftest.$ac_ext >&5
22985
22986( exit $ac_status )
22987no_gtk=yes
22988fi
ac1cb8d3 22989rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22990fi
22991 CFLAGS="$ac_save_CFLAGS"
22992 LIBS="$ac_save_LIBS"
22993 fi
22994 fi
22995 if test "x$no_gtk" = x ; then
22996 echo "$as_me:$LINENO: result: yes" >&5
22997echo "${ECHO_T}yes" >&6
22998 wx_cv_lib_gtk=1.2.3
22999 else
23000 echo "$as_me:$LINENO: result: no" >&5
23001echo "${ECHO_T}no" >&6
23002 if test "$GTK_CONFIG" = "no" ; then
23003 echo "*** The gtk-config script installed by GTK could not be found"
23004 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23005 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23006 echo "*** full path to gtk-config."
23007 else
23008 if test -f conf.gtktest ; then
23009 :
23010 else
23011 echo "*** Could not run GTK test program, checking why..."
23012 CFLAGS="$CFLAGS $GTK_CFLAGS"
23013 LIBS="$LIBS $GTK_LIBS"
23014 cat >conftest.$ac_ext <<_ACEOF
23015/* confdefs.h. */
23016_ACEOF
23017cat confdefs.h >>conftest.$ac_ext
23018cat >>conftest.$ac_ext <<_ACEOF
23019/* end confdefs.h. */
23020
23021#include <gtk/gtk.h>
23022#include <stdio.h>
23023
23024int
23025main ()
23026{
23027 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23028 ;
23029 return 0;
23030}
23031_ACEOF
23032rm -f conftest.$ac_objext conftest$ac_exeext
23033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23034 (eval $ac_link) 2>conftest.er1
a848cd7e 23035 ac_status=$?
ac1cb8d3
VS
23036 grep -v '^ *+' conftest.er1 >conftest.err
23037 rm -f conftest.er1
23038 cat conftest.err >&5
a848cd7e
SC
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } &&
224bf05c 23041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); }; } &&
23047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; }; then
23053 echo "*** The test program compiled, but did not run. This usually means"
23054 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23055 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23056 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23057 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23058 echo "*** is required on your system"
23059 echo "***"
23060 echo "*** If you have an old version installed, it is best to remove it, although"
23061 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23062 echo "***"
23063 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23064 echo "*** came with the system with the command"
23065 echo "***"
23066 echo "*** rpm --erase --nodeps gtk gtk-devel"
23067else
23068 echo "$as_me: failed program was:" >&5
23069sed 's/^/| /' conftest.$ac_ext >&5
23070
23071 echo "*** The test program failed to compile or link. See the file config.log for the"
23072 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23073 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23074 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23075fi
ac1cb8d3
VS
23076rm -f conftest.err conftest.$ac_objext \
23077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23078 CFLAGS="$ac_save_CFLAGS"
23079 LIBS="$ac_save_LIBS"
23080 fi
23081 fi
23082 GTK_CFLAGS=""
23083 GTK_LIBS=""
23084 :
23085 fi
23086
23087
23088 rm -f conf.gtktest
23089
23090 fi
23091 fi
23092
23093 if test -z "$wx_cv_lib_gtk"; then
23094 wx_cv_lib_gtk=none
23095 else
23096 wx_cv_cflags_gtk=$GTK_CFLAGS
23097 wx_cv_libs_gtk=$GTK_LIBS
23098 fi
23099
23100
23101fi
23102
23103
23104 if test "$gtk_version_cached" = 1; then
23105 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23106echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23107 fi
23108
23109 case "$wx_cv_lib_gtk" in
23110 2.0) WXGTK20=1
23111 TOOLKIT_VERSION=2
23112 ;;
23113 1.2.7) WXGTK127=1
23114 WXGTK12=1
23115 ;;
23116 1.2.3) WXGTK12=1
23117 ;;
23118 *) { { echo "$as_me:$LINENO: error:
23119Please check that gtk-config is in path, the directory
23120where GTK+ libraries are installed (returned by
23121'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23122equivalent variable and GTK+ is version 1.2.3 or above.
23123 " >&5
23124echo "$as_me: error:
23125Please check that gtk-config is in path, the directory
23126where GTK+ libraries are installed (returned by
23127'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23128equivalent variable and GTK+ is version 1.2.3 or above.
23129 " >&2;}
23130 { (exit 1); exit 1; }; }
23131 ;;
23132 esac
23133
23134 if test "$WXGTK20" = 1; then
23135 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23136
23137 succeeded=no
23138
23139 if test -z "$PKG_CONFIG"; then
23140 # Extract the first word of "pkg-config", so it can be a program name with args.
23141set dummy pkg-config; ac_word=$2
23142echo "$as_me:$LINENO: checking for $ac_word" >&5
23143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23144if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23145 echo $ECHO_N "(cached) $ECHO_C" >&6
23146else
23147 case $PKG_CONFIG in
23148 [\\/]* | ?:[\\/]*)
23149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23150 ;;
23151 *)
23152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23153for as_dir in $PATH
23154do
23155 IFS=$as_save_IFS
23156 test -z "$as_dir" && as_dir=.
23157 for ac_exec_ext in '' $ac_executable_extensions; do
23158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23161 break 2
23162 fi
23163done
23164done
23165
23166 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23167 ;;
23168esac
23169fi
23170PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23171
23172if test -n "$PKG_CONFIG"; then
23173 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23174echo "${ECHO_T}$PKG_CONFIG" >&6
23175else
23176 echo "$as_me:$LINENO: result: no" >&5
23177echo "${ECHO_T}no" >&6
23178fi
23179
23180 fi
23181
23182 if test "$PKG_CONFIG" = "no" ; then
23183 echo "*** The pkg-config script could not be found. Make sure it is"
23184 echo "*** in your path, or set the PKG_CONFIG environment variable"
23185 echo "*** to the full path to pkg-config."
23186 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23187 else
23188 PKG_CONFIG_MIN_VERSION=0.9.0
23189 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23190 echo "$as_me:$LINENO: checking for pangoft2" >&5
23191echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23192
23193 if $PKG_CONFIG --exists "pangoft2" ; then
23194 echo "$as_me:$LINENO: result: yes" >&5
23195echo "${ECHO_T}yes" >&6
23196 succeeded=yes
23197
23198 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23199echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23200 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23201 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23202echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23203
23204 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23205echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23206 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23207 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23208echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23209 else
23210 PANGOFT2_CFLAGS=""
23211 PANGOFT2_LIBS=""
23212 ## If we have a custom action on failure, don't print errors, but
23213 ## do set a variable so people can do so.
23214 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23215
23216 fi
23217
23218
23219
23220 else
23221 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23222 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23223 fi
23224 fi
23225
23226 if test $succeeded = yes; then
23227
23228 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23229 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23230
23231 else
23232
23233 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23234echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23235 wxUSE_PRINTING_ARCHITECTURE="no"
23236
23237
23238 fi
23239
23240 fi
304205f1
VS
23241
23242 save_CFLAGS="$CFLAGS"
23243 save_LIBS="$LIBS"
23244 CFLAGS="$CFLAGS $GTK_CFLAGS"
23245 LIBS="$LIBS $GTK_LIBS"
23246
23247for ac_func in pango_font_family_is_monospace
23248do
23249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23250echo "$as_me:$LINENO: checking for $ac_func" >&5
23251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23252if eval "test \"\${$as_ac_var+set}\" = set"; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23254else
23255 cat >conftest.$ac_ext <<_ACEOF
23256/* confdefs.h. */
23257_ACEOF
23258cat confdefs.h >>conftest.$ac_ext
23259cat >>conftest.$ac_ext <<_ACEOF
23260/* end confdefs.h. */
23261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23263#define $ac_func innocuous_$ac_func
23264
23265/* System header to define __stub macros and hopefully few prototypes,
23266 which can conflict with char $ac_func (); below.
23267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23268 <limits.h> exists even on freestanding compilers. */
23269
23270#ifdef __STDC__
23271# include <limits.h>
23272#else
23273# include <assert.h>
23274#endif
23275
23276#undef $ac_func
23277
23278/* Override any gcc2 internal prototype to avoid an error. */
23279#ifdef __cplusplus
23280extern "C"
23281{
23282#endif
23283/* We use char because int might match the return type of a gcc2
23284 builtin and then its argument prototype would still apply. */
23285char $ac_func ();
23286/* The GNU C library defines this for functions which it implements
23287 to always fail with ENOSYS. Some functions are actually named
23288 something starting with __ and the normal name is an alias. */
23289#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23290choke me
23291#else
23292char (*f) () = $ac_func;
23293#endif
23294#ifdef __cplusplus
23295}
23296#endif
23297
23298int
23299main ()
23300{
23301return f != $ac_func;
23302 ;
23303 return 0;
23304}
23305_ACEOF
23306rm -f conftest.$ac_objext conftest$ac_exeext
23307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23308 (eval $ac_link) 2>conftest.er1
23309 ac_status=$?
23310 grep -v '^ *+' conftest.er1 >conftest.err
23311 rm -f conftest.er1
23312 cat conftest.err >&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
224bf05c 23315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; } &&
23321 { ac_try='test -s conftest$ac_exeext'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 eval "$as_ac_var=yes"
23328else
23329 echo "$as_me: failed program was:" >&5
23330sed 's/^/| /' conftest.$ac_ext >&5
23331
23332eval "$as_ac_var=no"
23333fi
23334rm -f conftest.err conftest.$ac_objext \
23335 conftest$ac_exeext conftest.$ac_ext
23336fi
23337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23339if test `eval echo '${'$as_ac_var'}'` = yes; then
23340 cat >>confdefs.h <<_ACEOF
23341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23342_ACEOF
23343
23344fi
23345done
23346
23347 CFLAGS="$save_CFLAGS"
23348 LIBS="$save_LIBS"
a848cd7e
SC
23349 else
23350 if test "$wxUSE_UNICODE" = "yes"; then
23351 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23352echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23353 wxUSE_UNICODE=no
23354 fi
23355 fi
23356
23357 if test "$USE_DARWIN" != 1; then
23358
23359for ac_func in poll
23360do
23361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23362echo "$as_me:$LINENO: checking for $ac_func" >&5
23363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23364if eval "test \"\${$as_ac_var+set}\" = set"; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23366else
23367 cat >conftest.$ac_ext <<_ACEOF
23368/* confdefs.h. */
23369_ACEOF
23370cat confdefs.h >>conftest.$ac_ext
23371cat >>conftest.$ac_ext <<_ACEOF
23372/* end confdefs.h. */
ac1cb8d3
VS
23373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23375#define $ac_func innocuous_$ac_func
23376
a848cd7e
SC
23377/* System header to define __stub macros and hopefully few prototypes,
23378 which can conflict with char $ac_func (); below.
23379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23380 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23381
a848cd7e
SC
23382#ifdef __STDC__
23383# include <limits.h>
23384#else
23385# include <assert.h>
23386#endif
ac1cb8d3
VS
23387
23388#undef $ac_func
23389
a848cd7e
SC
23390/* Override any gcc2 internal prototype to avoid an error. */
23391#ifdef __cplusplus
23392extern "C"
23393{
23394#endif
23395/* We use char because int might match the return type of a gcc2
23396 builtin and then its argument prototype would still apply. */
23397char $ac_func ();
23398/* The GNU C library defines this for functions which it implements
23399 to always fail with ENOSYS. Some functions are actually named
23400 something starting with __ and the normal name is an alias. */
23401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23402choke me
23403#else
23404char (*f) () = $ac_func;
23405#endif
23406#ifdef __cplusplus
23407}
23408#endif
23409
23410int
23411main ()
23412{
23413return f != $ac_func;
23414 ;
23415 return 0;
23416}
23417_ACEOF
23418rm -f conftest.$ac_objext conftest$ac_exeext
23419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23420 (eval $ac_link) 2>conftest.er1
a848cd7e 23421 ac_status=$?
ac1cb8d3
VS
23422 grep -v '^ *+' conftest.er1 >conftest.err
23423 rm -f conftest.er1
23424 cat conftest.err >&5
a848cd7e
SC
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } &&
224bf05c 23427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429 (eval $ac_try) 2>&5
23430 ac_status=$?
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; } &&
23433 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23436 ac_status=$?
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; }; then
23439 eval "$as_ac_var=yes"
23440else
23441 echo "$as_me: failed program was:" >&5
23442sed 's/^/| /' conftest.$ac_ext >&5
23443
23444eval "$as_ac_var=no"
23445fi
ac1cb8d3
VS
23446rm -f conftest.err conftest.$ac_objext \
23447 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23448fi
23449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23450echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23451if test `eval echo '${'$as_ac_var'}'` = yes; then
23452 cat >>confdefs.h <<_ACEOF
23453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23454_ACEOF
23455
23456fi
23457done
23458
23459 fi
23460
23461 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23462 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23463
23464 AFMINSTALL=afminstall
23465 TOOLKIT=GTK
23466 GUIDIST=GTK_DIST
23467
23468 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23469echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23470if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23471 echo $ECHO_N "(cached) $ECHO_C" >&6
23472else
23473 ac_check_lib_save_LIBS=$LIBS
23474LIBS="-lgdk $LIBS"
23475cat >conftest.$ac_ext <<_ACEOF
23476/* confdefs.h. */
23477_ACEOF
23478cat confdefs.h >>conftest.$ac_ext
23479cat >>conftest.$ac_ext <<_ACEOF
23480/* end confdefs.h. */
23481
23482/* Override any gcc2 internal prototype to avoid an error. */
23483#ifdef __cplusplus
23484extern "C"
23485#endif
23486/* We use char because int might match the return type of a gcc2
23487 builtin and then its argument prototype would still apply. */
23488char gdk_im_open ();
23489int
23490main ()
23491{
23492gdk_im_open ();
23493 ;
23494 return 0;
23495}
23496_ACEOF
23497rm -f conftest.$ac_objext conftest$ac_exeext
23498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23499 (eval $ac_link) 2>conftest.er1
a848cd7e 23500 ac_status=$?
ac1cb8d3
VS
23501 grep -v '^ *+' conftest.er1 >conftest.err
23502 rm -f conftest.er1
23503 cat conftest.err >&5
a848cd7e
SC
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } &&
224bf05c 23506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23508 (eval $ac_try) 2>&5
23509 ac_status=$?
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); }; } &&
23512 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; }; then
23518 ac_cv_lib_gdk_gdk_im_open=yes
23519else
23520 echo "$as_me: failed program was:" >&5
23521sed 's/^/| /' conftest.$ac_ext >&5
23522
23523ac_cv_lib_gdk_gdk_im_open=no
23524fi
ac1cb8d3
VS
23525rm -f conftest.err conftest.$ac_objext \
23526 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23527LIBS=$ac_check_lib_save_LIBS
23528fi
23529echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23530echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23531if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23532 cat >>confdefs.h <<\_ACEOF
23533#define HAVE_XIM 1
23534_ACEOF
23535
23536fi
23537
23538
23539
23540 if test "$wxUSE_GPE" = "yes"; then
23541 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23542echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23543
23544ac_find_libraries=
23545for ac_dir in $SEARCH_LIB /usr/lib;
23546 do
23547 for ac_extension in a so sl dylib; do
23548 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23549 ac_find_libraries=$ac_dir
23550 break 2
23551 fi
23552 done
23553 done
23554
23555 if test "$ac_find_libraries" != "" ; then
23556
23557 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23558 result=$?
23559 if test $result = 0; then
23560 ac_path_to_link=""
23561 else
23562 ac_path_to_link=" -L$ac_find_libraries"
23563 fi
23564
23565 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23566 WXGPE=1
23567 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23568echo "${ECHO_T}found at $ac_find_libraries" >&6
23569 else
23570 echo "$as_me:$LINENO: result: not found" >&5
23571echo "${ECHO_T}not found" >&6
23572 fi
23573
23574 fi
23575 fi
23576
23577 if test "$wxUSE_MGL" = 1; then
23578 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23579echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23580 if test "x$MGL_ROOT" = x ; then
23581 echo "$as_me:$LINENO: result: not found" >&5
23582echo "${ECHO_T}not found" >&6
23583 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23584echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23585 { (exit 1); exit 1; }; }
23586 else
23587 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23588echo "${ECHO_T}$MGL_ROOT" >&6
23589 fi
23590
23591 echo "$as_me:$LINENO: checking for libmgl location" >&5
23592echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23593 case "${host}" in
23594 *-*-linux* )
23595 if test "x$wxUSE_SHARED" = xyes ; then
23596 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23597 else
23598 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23599 fi
23600 ;;
23601 *-pc-msdosdjgpp )
23602 mgl_os_candidates="dos32/dj2"
23603 ;;
23604 *)
23605 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23606echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23607 { (exit 1); exit 1; }; }
23608 esac
23609
23610 mgl_lib_type=""
23611 mgl_os=""
23612
23613 for mgl_os_i in $mgl_os_candidates ; do
23614 if test "x$mgl_os" = x ; then
23615 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23616 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23617 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23618 mgl_lib_type=debug
23619 mgl_os=$mgl_os_i
23620 fi
23621 fi
23622 if test "x$mgl_lib_type" = x ; then
23623 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23624 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23625 mgl_lib_type=release
23626 mgl_os=$mgl_os_i
23627 fi
23628 fi
23629 fi
23630 done
23631
23632 if test "x$mgl_os" = x ; then
23633 echo "$as_me:$LINENO: result: not found" >&5
23634echo "${ECHO_T}not found" >&6
23635 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23636echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23637 { (exit 1); exit 1; }; }
23638 fi
23639 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23640echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23641
23642 wxUSE_UNIVERSAL="yes"
23643
23644 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23645 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23646
23647 AFMINSTALL=afminstall
23648 TOOLKIT=MGL
23649 GUIDIST=MGL_DIST
23650 fi
23651
23652 if test "$wxUSE_MICROWIN" = 1; then
23653 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23654echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23655 if test "x$MICROWINDOWS" = x ; then
23656 echo "$as_me:$LINENO: result: not found" >&5
23657echo "${ECHO_T}not found" >&6
23658 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23659echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23660 { (exit 1); exit 1; }; }
23661 else
23662 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23663echo "${ECHO_T}$MICROWINDOWS" >&6
23664 fi
23665
23666 if test -f $MICROWINDOWS/lib/libmwin.a; then
23667 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23668echo "${ECHO_T}MicroWindows' libraries found." >&6
23669 else
23670 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23671echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23672 { (exit 1); exit 1; }; }
23673 fi
23674
23675 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23676 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23677
23678 wxUSE_UNIVERSAL="yes"
23679
23680 AFMINSTALL=afminstall
23681 TOOLKIT=MICROWIN
23682 GUIDIST=MICROWIN_DIST
23683
23684 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23685 fi
23686
74b84332 23687 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
224bf05c
VZ
23688
23689if test "x$ac_path_x_has_been_run" != xyes; then
23690 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23691echo $ECHO_N "checking for X... $ECHO_C" >&6
23692
224bf05c 23693ac_path_x_has_been_run=yes
a848cd7e
SC
23694
23695# Check whether --with-x or --without-x was given.
23696if test "${with_x+set}" = set; then
23697 withval="$with_x"
23698
23699fi;
23700# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23701if test "x$with_x" = xno; then
23702 # The user explicitly disabled X.
23703 have_x=disabled
23704else
23705 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23706 # Both variables are already set.
23707 have_x=yes
23708 else
23709 if test "${ac_cv_have_x+set}" = set; then
23710 echo $ECHO_N "(cached) $ECHO_C" >&6
23711else
23712 # One or both of the vars are not set, and there is no cached value.
23713ac_x_includes=no ac_x_libraries=no
23714rm -fr conftest.dir
23715if mkdir conftest.dir; then
23716 cd conftest.dir
23717 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23718 cat >Imakefile <<'_ACEOF'
23719acfindx:
23720 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23721_ACEOF
23722 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23724 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23725 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23726 for ac_extension in a so sl; do
23727 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23728 test -f $ac_im_libdir/libX11.$ac_extension; then
23729 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23730 fi
23731 done
23732 # Screen out bogus values from the imake configuration. They are
23733 # bogus both because they are the default anyway, and because
23734 # using them would break gcc on systems where it needs fixed includes.
23735 case $ac_im_incroot in
23736 /usr/include) ;;
23737 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23738 esac
23739 case $ac_im_usrlibdir in
23740 /usr/lib | /lib) ;;
23741 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23742 esac
23743 fi
23744 cd ..
23745 rm -fr conftest.dir
23746fi
23747
23748# Standard set of common directories for X headers.
23749# Check X11 before X11Rn because it is often a symlink to the current release.
23750ac_x_header_dirs='
23751/usr/X11/include
23752/usr/X11R6/include
23753/usr/X11R5/include
23754/usr/X11R4/include
23755
23756/usr/include/X11
23757/usr/include/X11R6
23758/usr/include/X11R5
23759/usr/include/X11R4
23760
23761/usr/local/X11/include
23762/usr/local/X11R6/include
23763/usr/local/X11R5/include
23764/usr/local/X11R4/include
23765
23766/usr/local/include/X11
23767/usr/local/include/X11R6
23768/usr/local/include/X11R5
23769/usr/local/include/X11R4
23770
23771/usr/X386/include
23772/usr/x386/include
23773/usr/XFree86/include/X11
23774
23775/usr/include
23776/usr/local/include
23777/usr/unsupported/include
23778/usr/athena/include
23779/usr/local/x11r5/include
23780/usr/lpp/Xamples/include
23781
23782/usr/openwin/include
23783/usr/openwin/share/include'
23784
23785if test "$ac_x_includes" = no; then
224bf05c 23786 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
23787 # First, try using that file with no special directory specified.
23788 cat >conftest.$ac_ext <<_ACEOF
23789/* confdefs.h. */
23790_ACEOF
23791cat confdefs.h >>conftest.$ac_ext
23792cat >>conftest.$ac_ext <<_ACEOF
23793/* end confdefs.h. */
23794#include <X11/Intrinsic.h>
23795_ACEOF
23796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23798 ac_status=$?
23799 grep -v '^ *+' conftest.er1 >conftest.err
23800 rm -f conftest.er1
23801 cat conftest.err >&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); } >/dev/null; then
23804 if test -s conftest.err; then
23805 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23807 else
23808 ac_cpp_err=
23809 fi
23810else
23811 ac_cpp_err=yes
23812fi
23813if test -z "$ac_cpp_err"; then
23814 # We can compile using X headers with no special include directory.
23815ac_x_includes=
23816else
23817 echo "$as_me: failed program was:" >&5
23818sed 's/^/| /' conftest.$ac_ext >&5
23819
23820 for ac_dir in $ac_x_header_dirs; do
23821 if test -r "$ac_dir/X11/Intrinsic.h"; then
23822 ac_x_includes=$ac_dir
23823 break
23824 fi
23825done
23826fi
23827rm -f conftest.err conftest.$ac_ext
23828fi # $ac_x_includes = no
23829
23830if test "$ac_x_libraries" = no; then
23831 # Check for the libraries.
23832 # See if we find them without any special options.
23833 # Don't add to $LIBS permanently.
23834 ac_save_LIBS=$LIBS
23835 LIBS="-lXt $LIBS"
23836 cat >conftest.$ac_ext <<_ACEOF
23837/* confdefs.h. */
23838_ACEOF
23839cat confdefs.h >>conftest.$ac_ext
23840cat >>conftest.$ac_ext <<_ACEOF
23841/* end confdefs.h. */
23842#include <X11/Intrinsic.h>
23843int
23844main ()
23845{
23846XtMalloc (0)
23847 ;
23848 return 0;
23849}
23850_ACEOF
23851rm -f conftest.$ac_objext conftest$ac_exeext
23852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23853 (eval $ac_link) 2>conftest.er1
a848cd7e 23854 ac_status=$?
ac1cb8d3
VS
23855 grep -v '^ *+' conftest.er1 >conftest.err
23856 rm -f conftest.er1
23857 cat conftest.err >&5
a848cd7e
SC
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } &&
224bf05c 23860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23863 ac_status=$?
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; } &&
23866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868 (eval $ac_try) 2>&5
23869 ac_status=$?
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; }; then
23872 LIBS=$ac_save_LIBS
23873# We can link X programs with no special library path.
23874ac_x_libraries=
23875else
23876 echo "$as_me: failed program was:" >&5
23877sed 's/^/| /' conftest.$ac_ext >&5
23878
23879LIBS=$ac_save_LIBS
23880for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23881do
23882 # Don't even attempt the hair of trying to link an X program!
23883 for ac_extension in a so sl; do
23884 if test -r $ac_dir/libXt.$ac_extension; then
23885 ac_x_libraries=$ac_dir
23886 break 2
23887 fi
23888 done
23889done
23890fi
ac1cb8d3
VS
23891rm -f conftest.err conftest.$ac_objext \
23892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23893fi # $ac_x_libraries = no
23894
23895if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23896 # Didn't find X anywhere. Cache the known absence of X.
23897 ac_cv_have_x="have_x=no"
23898else
23899 # Record where we found X for the cache.
23900 ac_cv_have_x="have_x=yes \
ac1cb8d3 23901 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
23902fi
23903fi
23904
23905 fi
23906 eval "$ac_cv_have_x"
23907fi # $with_x != no
23908
23909if test "$have_x" != yes; then
23910 echo "$as_me:$LINENO: result: $have_x" >&5
23911echo "${ECHO_T}$have_x" >&6
23912 no_x=yes
23913else
23914 # If each of the values was on the command line, it overrides each guess.
23915 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23916 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23917 # Update the cache value to reflect the command line values.
23918 ac_cv_have_x="have_x=yes \
23919 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
224bf05c
VZ
23920 # It might be that x_includes is empty (headers are found in the
23921 # standard search path. Then output the corresponding message
23922 ac_out_x_includes=$x_includes
23923 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
23924 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
23925echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
23926fi
23927
224bf05c 23928fi
a848cd7e
SC
23929if test "$no_x" = yes; then
23930 # Not all programs may use this symbol, but it does not hurt to define it.
23931
23932cat >>confdefs.h <<\_ACEOF
23933#define X_DISPLAY_MISSING 1
23934_ACEOF
23935
23936 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23937else
23938 if test -n "$x_includes"; then
23939 X_CFLAGS="$X_CFLAGS -I$x_includes"
23940 fi
23941
23942 # It would also be nice to do this for all -L options, not just this one.
23943 if test -n "$x_libraries"; then
23944 X_LIBS="$X_LIBS -L$x_libraries"
23945 # For Solaris; some versions of Sun CC require a space after -R and
23946 # others require no space. Words are not sufficient . . . .
23947 case `(uname -sr) 2>/dev/null` in
23948 "SunOS 5"*)
23949 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23950echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23951 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23952 cat >conftest.$ac_ext <<_ACEOF
23953/* confdefs.h. */
23954_ACEOF
23955cat confdefs.h >>conftest.$ac_ext
23956cat >>conftest.$ac_ext <<_ACEOF
23957/* end confdefs.h. */
23958
23959int
23960main ()
23961{
23962
23963 ;
23964 return 0;
23965}
23966_ACEOF
23967rm -f conftest.$ac_objext conftest$ac_exeext
23968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23969 (eval $ac_link) 2>conftest.er1
a848cd7e 23970 ac_status=$?
ac1cb8d3
VS
23971 grep -v '^ *+' conftest.er1 >conftest.err
23972 rm -f conftest.er1
23973 cat conftest.err >&5
a848cd7e
SC
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } &&
224bf05c 23976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; } &&
23982 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23984 (eval $ac_try) 2>&5
23985 ac_status=$?
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); }; }; then
23988 ac_R_nospace=yes
23989else
23990 echo "$as_me: failed program was:" >&5
23991sed 's/^/| /' conftest.$ac_ext >&5
23992
23993ac_R_nospace=no
23994fi
ac1cb8d3
VS
23995rm -f conftest.err conftest.$ac_objext \
23996 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23997 if test $ac_R_nospace = yes; then
23998 echo "$as_me:$LINENO: result: no" >&5
23999echo "${ECHO_T}no" >&6
24000 X_LIBS="$X_LIBS -R$x_libraries"
24001 else
24002 LIBS="$ac_xsave_LIBS -R $x_libraries"
24003 cat >conftest.$ac_ext <<_ACEOF
24004/* confdefs.h. */
24005_ACEOF
24006cat confdefs.h >>conftest.$ac_ext
24007cat >>conftest.$ac_ext <<_ACEOF
24008/* end confdefs.h. */
24009
24010int
24011main ()
24012{
24013
24014 ;
24015 return 0;
24016}
24017_ACEOF
24018rm -f conftest.$ac_objext conftest$ac_exeext
24019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24020 (eval $ac_link) 2>conftest.er1
a848cd7e 24021 ac_status=$?
ac1cb8d3
VS
24022 grep -v '^ *+' conftest.er1 >conftest.err
24023 rm -f conftest.er1
24024 cat conftest.err >&5
a848cd7e
SC
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } &&
224bf05c 24027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029 (eval $ac_try) 2>&5
24030 ac_status=$?
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); }; } &&
24033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24035 (eval $ac_try) 2>&5
24036 ac_status=$?
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); }; }; then
24039 ac_R_space=yes
24040else
24041 echo "$as_me: failed program was:" >&5
24042sed 's/^/| /' conftest.$ac_ext >&5
24043
24044ac_R_space=no
24045fi
ac1cb8d3
VS
24046rm -f conftest.err conftest.$ac_objext \
24047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24048 if test $ac_R_space = yes; then
24049 echo "$as_me:$LINENO: result: yes" >&5
24050echo "${ECHO_T}yes" >&6
24051 X_LIBS="$X_LIBS -R $x_libraries"
24052 else
24053 echo "$as_me:$LINENO: result: neither works" >&5
24054echo "${ECHO_T}neither works" >&6
24055 fi
24056 fi
24057 LIBS=$ac_xsave_LIBS
24058 esac
24059 fi
24060
24061 # Check for system-dependent libraries X programs must link with.
24062 # Do this before checking for the system-independent R6 libraries
24063 # (-lICE), since we may need -lsocket or whatever for X linking.
24064
24065 if test "$ISC" = yes; then
24066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24067 else
24068 # Martyn Johnson says this is needed for Ultrix, if the X
24069 # libraries were built with DECnet support. And Karl Berry says
24070 # the Alpha needs dnet_stub (dnet does not exist).
24071 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24072 cat >conftest.$ac_ext <<_ACEOF
24073/* confdefs.h. */
24074_ACEOF
24075cat confdefs.h >>conftest.$ac_ext
24076cat >>conftest.$ac_ext <<_ACEOF
24077/* end confdefs.h. */
24078
24079/* Override any gcc2 internal prototype to avoid an error. */
24080#ifdef __cplusplus
24081extern "C"
24082#endif
24083/* We use char because int might match the return type of a gcc2
24084 builtin and then its argument prototype would still apply. */
24085char XOpenDisplay ();
24086int
24087main ()
24088{
24089XOpenDisplay ();
24090 ;
24091 return 0;
24092}
24093_ACEOF
24094rm -f conftest.$ac_objext conftest$ac_exeext
24095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24096 (eval $ac_link) 2>conftest.er1
a848cd7e 24097 ac_status=$?
ac1cb8d3
VS
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
a848cd7e
SC
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
224bf05c 24103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24106 ac_status=$?
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); }; } &&
24109 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; }; then
24115 :
24116else
24117 echo "$as_me: failed program was:" >&5
24118sed 's/^/| /' conftest.$ac_ext >&5
24119
24120echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24121echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24122if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24124else
24125 ac_check_lib_save_LIBS=$LIBS
24126LIBS="-ldnet $LIBS"
24127cat >conftest.$ac_ext <<_ACEOF
24128/* confdefs.h. */
24129_ACEOF
24130cat confdefs.h >>conftest.$ac_ext
24131cat >>conftest.$ac_ext <<_ACEOF
24132/* end confdefs.h. */
24133
24134/* Override any gcc2 internal prototype to avoid an error. */
24135#ifdef __cplusplus
24136extern "C"
24137#endif
24138/* We use char because int might match the return type of a gcc2
24139 builtin and then its argument prototype would still apply. */
24140char dnet_ntoa ();
24141int
24142main ()
24143{
24144dnet_ntoa ();
24145 ;
24146 return 0;
24147}
24148_ACEOF
24149rm -f conftest.$ac_objext conftest$ac_exeext
24150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24151 (eval $ac_link) 2>conftest.er1
a848cd7e 24152 ac_status=$?
ac1cb8d3
VS
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
a848cd7e
SC
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } &&
224bf05c 24158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24161 ac_status=$?
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; } &&
24164 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24167 ac_status=$?
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; }; then
24170 ac_cv_lib_dnet_dnet_ntoa=yes
24171else
24172 echo "$as_me: failed program was:" >&5
24173sed 's/^/| /' conftest.$ac_ext >&5
24174
24175ac_cv_lib_dnet_dnet_ntoa=no
24176fi
ac1cb8d3
VS
24177rm -f conftest.err conftest.$ac_objext \
24178 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24179LIBS=$ac_check_lib_save_LIBS
24180fi
24181echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24182echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24183if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24184 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24185fi
24186
24187 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24188 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24189echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24190if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24192else
24193 ac_check_lib_save_LIBS=$LIBS
24194LIBS="-ldnet_stub $LIBS"
24195cat >conftest.$ac_ext <<_ACEOF
24196/* confdefs.h. */
24197_ACEOF
24198cat confdefs.h >>conftest.$ac_ext
24199cat >>conftest.$ac_ext <<_ACEOF
24200/* end confdefs.h. */
24201
24202/* Override any gcc2 internal prototype to avoid an error. */
24203#ifdef __cplusplus
24204extern "C"
24205#endif
24206/* We use char because int might match the return type of a gcc2
24207 builtin and then its argument prototype would still apply. */
24208char dnet_ntoa ();
24209int
24210main ()
24211{
24212dnet_ntoa ();
24213 ;
24214 return 0;
24215}
24216_ACEOF
24217rm -f conftest.$ac_objext conftest$ac_exeext
24218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24219 (eval $ac_link) 2>conftest.er1
a848cd7e 24220 ac_status=$?
ac1cb8d3
VS
24221 grep -v '^ *+' conftest.er1 >conftest.err
24222 rm -f conftest.er1
24223 cat conftest.err >&5
a848cd7e
SC
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); } &&
224bf05c 24226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24228 (eval $ac_try) 2>&5
24229 ac_status=$?
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); }; } &&
24232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24234 (eval $ac_try) 2>&5
24235 ac_status=$?
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); }; }; then
24238 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24239else
24240 echo "$as_me: failed program was:" >&5
24241sed 's/^/| /' conftest.$ac_ext >&5
24242
24243ac_cv_lib_dnet_stub_dnet_ntoa=no
24244fi
ac1cb8d3
VS
24245rm -f conftest.err conftest.$ac_objext \
24246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24247LIBS=$ac_check_lib_save_LIBS
24248fi
24249echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24250echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24251if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24252 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24253fi
24254
24255 fi
24256fi
ac1cb8d3
VS
24257rm -f conftest.err conftest.$ac_objext \
24258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24259 LIBS="$ac_xsave_LIBS"
24260
24261 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24262 # to get the SysV transport functions.
24263 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24264 # needs -lnsl.
24265 # The nsl library prevents programs from opening the X display
24266 # on Irix 5.2, according to T.E. Dickey.
24267 # The functions gethostbyname, getservbyname, and inet_addr are
24268 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24269 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24270echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24271if test "${ac_cv_func_gethostbyname+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24273else
24274 cat >conftest.$ac_ext <<_ACEOF
24275/* confdefs.h. */
24276_ACEOF
24277cat confdefs.h >>conftest.$ac_ext
24278cat >>conftest.$ac_ext <<_ACEOF
24279/* end confdefs.h. */
ac1cb8d3
VS
24280/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24282#define gethostbyname innocuous_gethostbyname
24283
a848cd7e
SC
24284/* System header to define __stub macros and hopefully few prototypes,
24285 which can conflict with char gethostbyname (); below.
24286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24287 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24288
a848cd7e
SC
24289#ifdef __STDC__
24290# include <limits.h>
24291#else
24292# include <assert.h>
24293#endif
ac1cb8d3
VS
24294
24295#undef gethostbyname
24296
a848cd7e
SC
24297/* Override any gcc2 internal prototype to avoid an error. */
24298#ifdef __cplusplus
24299extern "C"
24300{
24301#endif
24302/* We use char because int might match the return type of a gcc2
24303 builtin and then its argument prototype would still apply. */
24304char gethostbyname ();
24305/* The GNU C library defines this for functions which it implements
24306 to always fail with ENOSYS. Some functions are actually named
24307 something starting with __ and the normal name is an alias. */
24308#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24309choke me
24310#else
24311char (*f) () = gethostbyname;
24312#endif
24313#ifdef __cplusplus
24314}
24315#endif
24316
24317int
24318main ()
24319{
24320return f != gethostbyname;
24321 ;
24322 return 0;
24323}
24324_ACEOF
24325rm -f conftest.$ac_objext conftest$ac_exeext
24326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24327 (eval $ac_link) 2>conftest.er1
a848cd7e 24328 ac_status=$?
ac1cb8d3
VS
24329 grep -v '^ *+' conftest.er1 >conftest.err
24330 rm -f conftest.er1
24331 cat conftest.err >&5
a848cd7e
SC
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } &&
224bf05c 24334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; } &&
24340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342 (eval $ac_try) 2>&5
24343 ac_status=$?
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); }; }; then
24346 ac_cv_func_gethostbyname=yes
24347else
24348 echo "$as_me: failed program was:" >&5
24349sed 's/^/| /' conftest.$ac_ext >&5
24350
24351ac_cv_func_gethostbyname=no
24352fi
ac1cb8d3
VS
24353rm -f conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24355fi
24356echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24357echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24358
24359 if test $ac_cv_func_gethostbyname = no; then
24360 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24361echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24362if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24364else
24365 ac_check_lib_save_LIBS=$LIBS
24366LIBS="-lnsl $LIBS"
24367cat >conftest.$ac_ext <<_ACEOF
24368/* confdefs.h. */
24369_ACEOF
24370cat confdefs.h >>conftest.$ac_ext
24371cat >>conftest.$ac_ext <<_ACEOF
24372/* end confdefs.h. */
24373
24374/* Override any gcc2 internal prototype to avoid an error. */
24375#ifdef __cplusplus
24376extern "C"
24377#endif
24378/* We use char because int might match the return type of a gcc2
24379 builtin and then its argument prototype would still apply. */
24380char gethostbyname ();
24381int
24382main ()
24383{
24384gethostbyname ();
24385 ;
24386 return 0;
24387}
24388_ACEOF
24389rm -f conftest.$ac_objext conftest$ac_exeext
24390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24391 (eval $ac_link) 2>conftest.er1
24392 ac_status=$?
24393 grep -v '^ *+' conftest.er1 >conftest.err
24394 rm -f conftest.er1
24395 cat conftest.err >&5
24396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); } &&
224bf05c 24398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; } &&
24404 { ac_try='test -s conftest$ac_exeext'
24405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406 (eval $ac_try) 2>&5
24407 ac_status=$?
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); }; }; then
24410 ac_cv_lib_nsl_gethostbyname=yes
24411else
24412 echo "$as_me: failed program was:" >&5
24413sed 's/^/| /' conftest.$ac_ext >&5
24414
24415ac_cv_lib_nsl_gethostbyname=no
24416fi
24417rm -f conftest.err conftest.$ac_objext \
24418 conftest$ac_exeext conftest.$ac_ext
24419LIBS=$ac_check_lib_save_LIBS
24420fi
24421echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24422echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24423if test $ac_cv_lib_nsl_gethostbyname = yes; then
24424 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24425fi
24426
24427 if test $ac_cv_lib_nsl_gethostbyname = no; then
24428 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24429echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24430if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24431 echo $ECHO_N "(cached) $ECHO_C" >&6
24432else
24433 ac_check_lib_save_LIBS=$LIBS
24434LIBS="-lbsd $LIBS"
24435cat >conftest.$ac_ext <<_ACEOF
24436/* confdefs.h. */
24437_ACEOF
24438cat confdefs.h >>conftest.$ac_ext
24439cat >>conftest.$ac_ext <<_ACEOF
24440/* end confdefs.h. */
24441
24442/* Override any gcc2 internal prototype to avoid an error. */
24443#ifdef __cplusplus
24444extern "C"
24445#endif
24446/* We use char because int might match the return type of a gcc2
24447 builtin and then its argument prototype would still apply. */
24448char gethostbyname ();
24449int
24450main ()
24451{
24452gethostbyname ();
24453 ;
24454 return 0;
24455}
24456_ACEOF
24457rm -f conftest.$ac_objext conftest$ac_exeext
24458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24459 (eval $ac_link) 2>conftest.er1
a848cd7e 24460 ac_status=$?
ac1cb8d3
VS
24461 grep -v '^ *+' conftest.er1 >conftest.err
24462 rm -f conftest.er1
24463 cat conftest.err >&5
a848cd7e
SC
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); } &&
224bf05c 24466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24468 (eval $ac_try) 2>&5
24469 ac_status=$?
24470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24471 (exit $ac_status); }; } &&
24472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474 (eval $ac_try) 2>&5
24475 ac_status=$?
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); }; }; then
24478 ac_cv_lib_bsd_gethostbyname=yes
24479else
24480 echo "$as_me: failed program was:" >&5
24481sed 's/^/| /' conftest.$ac_ext >&5
24482
24483ac_cv_lib_bsd_gethostbyname=no
24484fi
ac1cb8d3
VS
24485rm -f conftest.err conftest.$ac_objext \
24486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24487LIBS=$ac_check_lib_save_LIBS
24488fi
24489echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24490echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24491if test $ac_cv_lib_bsd_gethostbyname = yes; then
24492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24493fi
24494
24495 fi
24496 fi
24497
24498 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24499 # socket/setsockopt and other routines are undefined under SCO ODT
24500 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24501 # on later versions), says Simon Leinen: it contains gethostby*
24502 # variants that don't use the name server (or something). -lsocket
24503 # must be given before -lnsl if both are needed. We assume that
24504 # if connect needs -lnsl, so does gethostbyname.
24505 echo "$as_me:$LINENO: checking for connect" >&5
24506echo $ECHO_N "checking for connect... $ECHO_C" >&6
24507if test "${ac_cv_func_connect+set}" = set; then
24508 echo $ECHO_N "(cached) $ECHO_C" >&6
24509else
24510 cat >conftest.$ac_ext <<_ACEOF
24511/* confdefs.h. */
24512_ACEOF
24513cat confdefs.h >>conftest.$ac_ext
24514cat >>conftest.$ac_ext <<_ACEOF
24515/* end confdefs.h. */
ac1cb8d3
VS
24516/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24518#define connect innocuous_connect
24519
a848cd7e
SC
24520/* System header to define __stub macros and hopefully few prototypes,
24521 which can conflict with char connect (); below.
24522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24523 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24524
a848cd7e
SC
24525#ifdef __STDC__
24526# include <limits.h>
24527#else
24528# include <assert.h>
24529#endif
ac1cb8d3
VS
24530
24531#undef connect
24532
a848cd7e
SC
24533/* Override any gcc2 internal prototype to avoid an error. */
24534#ifdef __cplusplus
24535extern "C"
24536{
24537#endif
24538/* We use char because int might match the return type of a gcc2
24539 builtin and then its argument prototype would still apply. */
24540char connect ();
24541/* The GNU C library defines this for functions which it implements
24542 to always fail with ENOSYS. Some functions are actually named
24543 something starting with __ and the normal name is an alias. */
24544#if defined (__stub_connect) || defined (__stub___connect)
24545choke me
24546#else
24547char (*f) () = connect;
24548#endif
24549#ifdef __cplusplus
24550}
24551#endif
24552
24553int
24554main ()
24555{
24556return f != connect;
24557 ;
24558 return 0;
24559}
24560_ACEOF
24561rm -f conftest.$ac_objext conftest$ac_exeext
24562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24563 (eval $ac_link) 2>conftest.er1
a848cd7e 24564 ac_status=$?
ac1cb8d3
VS
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
a848cd7e
SC
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } &&
224bf05c 24570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); }; } &&
24576 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24578 (eval $ac_try) 2>&5
24579 ac_status=$?
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); }; }; then
24582 ac_cv_func_connect=yes
24583else
24584 echo "$as_me: failed program was:" >&5
24585sed 's/^/| /' conftest.$ac_ext >&5
24586
24587ac_cv_func_connect=no
24588fi
ac1cb8d3
VS
24589rm -f conftest.err conftest.$ac_objext \
24590 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24591fi
24592echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24593echo "${ECHO_T}$ac_cv_func_connect" >&6
24594
24595 if test $ac_cv_func_connect = no; then
24596 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24597echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24598if test "${ac_cv_lib_socket_connect+set}" = set; then
24599 echo $ECHO_N "(cached) $ECHO_C" >&6
24600else
24601 ac_check_lib_save_LIBS=$LIBS
24602LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24603cat >conftest.$ac_ext <<_ACEOF
24604/* confdefs.h. */
24605_ACEOF
24606cat confdefs.h >>conftest.$ac_ext
24607cat >>conftest.$ac_ext <<_ACEOF
24608/* end confdefs.h. */
24609
24610/* Override any gcc2 internal prototype to avoid an error. */
24611#ifdef __cplusplus
24612extern "C"
24613#endif
24614/* We use char because int might match the return type of a gcc2
24615 builtin and then its argument prototype would still apply. */
24616char connect ();
24617int
24618main ()
24619{
24620connect ();
24621 ;
24622 return 0;
24623}
24624_ACEOF
24625rm -f conftest.$ac_objext conftest$ac_exeext
24626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24627 (eval $ac_link) 2>conftest.er1
a848cd7e 24628 ac_status=$?
ac1cb8d3
VS
24629 grep -v '^ *+' conftest.er1 >conftest.err
24630 rm -f conftest.er1
24631 cat conftest.err >&5
a848cd7e
SC
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); } &&
224bf05c 24634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; } &&
24640 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24642 (eval $ac_try) 2>&5
24643 ac_status=$?
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); }; }; then
24646 ac_cv_lib_socket_connect=yes
24647else
24648 echo "$as_me: failed program was:" >&5
24649sed 's/^/| /' conftest.$ac_ext >&5
24650
24651ac_cv_lib_socket_connect=no
24652fi
ac1cb8d3
VS
24653rm -f conftest.err conftest.$ac_objext \
24654 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24655LIBS=$ac_check_lib_save_LIBS
24656fi
24657echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24658echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24659if test $ac_cv_lib_socket_connect = yes; then
24660 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24661fi
24662
24663 fi
24664
24665 # Guillermo Gomez says -lposix is necessary on A/UX.
24666 echo "$as_me:$LINENO: checking for remove" >&5
24667echo $ECHO_N "checking for remove... $ECHO_C" >&6
24668if test "${ac_cv_func_remove+set}" = set; then
24669 echo $ECHO_N "(cached) $ECHO_C" >&6
24670else
24671 cat >conftest.$ac_ext <<_ACEOF
24672/* confdefs.h. */
24673_ACEOF
24674cat confdefs.h >>conftest.$ac_ext
24675cat >>conftest.$ac_ext <<_ACEOF
24676/* end confdefs.h. */
ac1cb8d3
VS
24677/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24679#define remove innocuous_remove
24680
a848cd7e
SC
24681/* System header to define __stub macros and hopefully few prototypes,
24682 which can conflict with char remove (); below.
24683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24684 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24685
a848cd7e
SC
24686#ifdef __STDC__
24687# include <limits.h>
24688#else
24689# include <assert.h>
24690#endif
ac1cb8d3
VS
24691
24692#undef remove
24693
a848cd7e
SC
24694/* Override any gcc2 internal prototype to avoid an error. */
24695#ifdef __cplusplus
24696extern "C"
24697{
24698#endif
24699/* We use char because int might match the return type of a gcc2
24700 builtin and then its argument prototype would still apply. */
24701char remove ();
24702/* The GNU C library defines this for functions which it implements
24703 to always fail with ENOSYS. Some functions are actually named
24704 something starting with __ and the normal name is an alias. */
24705#if defined (__stub_remove) || defined (__stub___remove)
24706choke me
24707#else
24708char (*f) () = remove;
24709#endif
24710#ifdef __cplusplus
24711}
24712#endif
24713
24714int
24715main ()
24716{
24717return f != remove;
24718 ;
24719 return 0;
24720}
24721_ACEOF
24722rm -f conftest.$ac_objext conftest$ac_exeext
24723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24724 (eval $ac_link) 2>conftest.er1
a848cd7e 24725 ac_status=$?
ac1cb8d3
VS
24726 grep -v '^ *+' conftest.er1 >conftest.err
24727 rm -f conftest.er1
24728 cat conftest.err >&5
a848cd7e
SC
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } &&
224bf05c 24731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } &&
24737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24740 ac_status=$?
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; }; then
24743 ac_cv_func_remove=yes
24744else
24745 echo "$as_me: failed program was:" >&5
24746sed 's/^/| /' conftest.$ac_ext >&5
24747
24748ac_cv_func_remove=no
24749fi
ac1cb8d3
VS
24750rm -f conftest.err conftest.$ac_objext \
24751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24752fi
24753echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24754echo "${ECHO_T}$ac_cv_func_remove" >&6
24755
24756 if test $ac_cv_func_remove = no; then
24757 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24758echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24759if test "${ac_cv_lib_posix_remove+set}" = set; then
24760 echo $ECHO_N "(cached) $ECHO_C" >&6
24761else
24762 ac_check_lib_save_LIBS=$LIBS
24763LIBS="-lposix $LIBS"
24764cat >conftest.$ac_ext <<_ACEOF
24765/* confdefs.h. */
24766_ACEOF
24767cat confdefs.h >>conftest.$ac_ext
24768cat >>conftest.$ac_ext <<_ACEOF
24769/* end confdefs.h. */
24770
24771/* Override any gcc2 internal prototype to avoid an error. */
24772#ifdef __cplusplus
24773extern "C"
24774#endif
24775/* We use char because int might match the return type of a gcc2
24776 builtin and then its argument prototype would still apply. */
24777char remove ();
24778int
24779main ()
24780{
24781remove ();
24782 ;
24783 return 0;
24784}
24785_ACEOF
24786rm -f conftest.$ac_objext conftest$ac_exeext
24787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24788 (eval $ac_link) 2>conftest.er1
a848cd7e 24789 ac_status=$?
ac1cb8d3
VS
24790 grep -v '^ *+' conftest.er1 >conftest.err
24791 rm -f conftest.er1
24792 cat conftest.err >&5
a848cd7e
SC
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); } &&
224bf05c 24795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; } &&
24801 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; }; then
24807 ac_cv_lib_posix_remove=yes
24808else
24809 echo "$as_me: failed program was:" >&5
24810sed 's/^/| /' conftest.$ac_ext >&5
24811
24812ac_cv_lib_posix_remove=no
24813fi
ac1cb8d3
VS
24814rm -f conftest.err conftest.$ac_objext \
24815 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24816LIBS=$ac_check_lib_save_LIBS
24817fi
24818echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24819echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24820if test $ac_cv_lib_posix_remove = yes; then
24821 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24822fi
24823
24824 fi
24825
24826 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24827 echo "$as_me:$LINENO: checking for shmat" >&5
24828echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24829if test "${ac_cv_func_shmat+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24831else
24832 cat >conftest.$ac_ext <<_ACEOF
24833/* confdefs.h. */
24834_ACEOF
24835cat confdefs.h >>conftest.$ac_ext
24836cat >>conftest.$ac_ext <<_ACEOF
24837/* end confdefs.h. */
ac1cb8d3
VS
24838/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24840#define shmat innocuous_shmat
24841
a848cd7e
SC
24842/* System header to define __stub macros and hopefully few prototypes,
24843 which can conflict with char shmat (); below.
24844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24845 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24846
a848cd7e
SC
24847#ifdef __STDC__
24848# include <limits.h>
24849#else
24850# include <assert.h>
24851#endif
ac1cb8d3
VS
24852
24853#undef shmat
24854
a848cd7e
SC
24855/* Override any gcc2 internal prototype to avoid an error. */
24856#ifdef __cplusplus
24857extern "C"
24858{
24859#endif
24860/* We use char because int might match the return type of a gcc2
24861 builtin and then its argument prototype would still apply. */
24862char shmat ();
24863/* The GNU C library defines this for functions which it implements
24864 to always fail with ENOSYS. Some functions are actually named
24865 something starting with __ and the normal name is an alias. */
24866#if defined (__stub_shmat) || defined (__stub___shmat)
24867choke me
24868#else
24869char (*f) () = shmat;
24870#endif
24871#ifdef __cplusplus
24872}
24873#endif
24874
24875int
24876main ()
24877{
24878return f != shmat;
24879 ;
24880 return 0;
24881}
24882_ACEOF
24883rm -f conftest.$ac_objext conftest$ac_exeext
24884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24885 (eval $ac_link) 2>conftest.er1
a848cd7e 24886 ac_status=$?
ac1cb8d3
VS
24887 grep -v '^ *+' conftest.er1 >conftest.err
24888 rm -f conftest.er1
24889 cat conftest.err >&5
a848cd7e
SC
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } &&
224bf05c 24892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24894 (eval $ac_try) 2>&5
24895 ac_status=$?
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); }; } &&
24898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; }; then
24904 ac_cv_func_shmat=yes
24905else
24906 echo "$as_me: failed program was:" >&5
24907sed 's/^/| /' conftest.$ac_ext >&5
24908
24909ac_cv_func_shmat=no
24910fi
ac1cb8d3
VS
24911rm -f conftest.err conftest.$ac_objext \
24912 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24913fi
24914echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24915echo "${ECHO_T}$ac_cv_func_shmat" >&6
24916
24917 if test $ac_cv_func_shmat = no; then
24918 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24919echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24920if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
24922else
24923 ac_check_lib_save_LIBS=$LIBS
24924LIBS="-lipc $LIBS"
24925cat >conftest.$ac_ext <<_ACEOF
24926/* confdefs.h. */
24927_ACEOF
24928cat confdefs.h >>conftest.$ac_ext
24929cat >>conftest.$ac_ext <<_ACEOF
24930/* end confdefs.h. */
24931
24932/* Override any gcc2 internal prototype to avoid an error. */
24933#ifdef __cplusplus
24934extern "C"
24935#endif
24936/* We use char because int might match the return type of a gcc2
24937 builtin and then its argument prototype would still apply. */
24938char shmat ();
24939int
24940main ()
24941{
24942shmat ();
24943 ;
24944 return 0;
24945}
24946_ACEOF
24947rm -f conftest.$ac_objext conftest$ac_exeext
24948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24949 (eval $ac_link) 2>conftest.er1
a848cd7e 24950 ac_status=$?
ac1cb8d3
VS
24951 grep -v '^ *+' conftest.er1 >conftest.err
24952 rm -f conftest.er1
24953 cat conftest.err >&5
a848cd7e
SC
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); } &&
224bf05c 24956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24958 (eval $ac_try) 2>&5
24959 ac_status=$?
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); }; } &&
24962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24964 (eval $ac_try) 2>&5
24965 ac_status=$?
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); }; }; then
24968 ac_cv_lib_ipc_shmat=yes
24969else
24970 echo "$as_me: failed program was:" >&5
24971sed 's/^/| /' conftest.$ac_ext >&5
24972
24973ac_cv_lib_ipc_shmat=no
24974fi
ac1cb8d3
VS
24975rm -f conftest.err conftest.$ac_objext \
24976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24977LIBS=$ac_check_lib_save_LIBS
24978fi
24979echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24980echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24981if test $ac_cv_lib_ipc_shmat = yes; then
24982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24983fi
24984
24985 fi
24986 fi
24987
24988 # Check for libraries that X11R6 Xt/Xaw programs need.
24989 ac_save_LDFLAGS=$LDFLAGS
24990 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24991 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24992 # check for ICE first), but we must link in the order -lSM -lICE or
24993 # we get undefined symbols. So assume we have SM if we have ICE.
24994 # These have to be linked with before -lX11, unlike the other
24995 # libraries we check for below, so use a different variable.
24996 # John Interrante, Karl Berry
24997 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24998echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24999if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25000 echo $ECHO_N "(cached) $ECHO_C" >&6
25001else
25002 ac_check_lib_save_LIBS=$LIBS
25003LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25004cat >conftest.$ac_ext <<_ACEOF
25005/* confdefs.h. */
25006_ACEOF
25007cat confdefs.h >>conftest.$ac_ext
25008cat >>conftest.$ac_ext <<_ACEOF
25009/* end confdefs.h. */
25010
25011/* Override any gcc2 internal prototype to avoid an error. */
25012#ifdef __cplusplus
25013extern "C"
25014#endif
25015/* We use char because int might match the return type of a gcc2
25016 builtin and then its argument prototype would still apply. */
25017char IceConnectionNumber ();
25018int
25019main ()
25020{
25021IceConnectionNumber ();
25022 ;
25023 return 0;
25024}
25025_ACEOF
25026rm -f conftest.$ac_objext conftest$ac_exeext
25027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25028 (eval $ac_link) 2>conftest.er1
a848cd7e 25029 ac_status=$?
ac1cb8d3
VS
25030 grep -v '^ *+' conftest.er1 >conftest.err
25031 rm -f conftest.er1
25032 cat conftest.err >&5
a848cd7e
SC
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); } &&
224bf05c 25035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037 (eval $ac_try) 2>&5
25038 ac_status=$?
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); }; } &&
25041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043 (eval $ac_try) 2>&5
25044 ac_status=$?
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; }; then
25047 ac_cv_lib_ICE_IceConnectionNumber=yes
25048else
25049 echo "$as_me: failed program was:" >&5
25050sed 's/^/| /' conftest.$ac_ext >&5
25051
25052ac_cv_lib_ICE_IceConnectionNumber=no
25053fi
ac1cb8d3
VS
25054rm -f conftest.err conftest.$ac_objext \
25055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25056LIBS=$ac_check_lib_save_LIBS
25057fi
25058echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25059echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25060if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25061 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25062fi
25063
25064 LDFLAGS=$ac_save_LDFLAGS
25065
25066fi
25067
25068
25069 if test "$no_x" = "yes"; then
25070 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25071echo "$as_me: error: X11 not found" >&2;}
25072 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25073 fi
25074
74b84332
VS
25075 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25076 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25077 AFMINSTALL=afminstall
25078 COMPILED_X_PROGRAM=0
25079
74b84332
VS
25080 fi
25081
25082 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25083 if test "$wxUSE_NANOX" = "yes"; then
25084 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25085echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25086 if test "x$MICROWIN" = x ; then
25087 echo "$as_me:$LINENO: result: not found" >&5
25088echo "${ECHO_T}not found" >&6
25089 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25090echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25091 { (exit 1); exit 1; }; }
25092 else
25093 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25094echo "${ECHO_T}$MICROWIN" >&6
25095 cat >>confdefs.h <<\_ACEOF
25096#define wxUSE_NANOX 1
25097_ACEOF
25098
25099 fi
25100 fi
25101
25102 if test "$wxUSE_UNICODE" = "yes"; then
25103
25104 succeeded=no
25105
25106 if test -z "$PKG_CONFIG"; then
25107 # Extract the first word of "pkg-config", so it can be a program name with args.
25108set dummy pkg-config; ac_word=$2
25109echo "$as_me:$LINENO: checking for $ac_word" >&5
25110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25111if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25112 echo $ECHO_N "(cached) $ECHO_C" >&6
25113else
25114 case $PKG_CONFIG in
25115 [\\/]* | ?:[\\/]*)
25116 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25117 ;;
25118 *)
25119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25120for as_dir in $PATH
25121do
25122 IFS=$as_save_IFS
25123 test -z "$as_dir" && as_dir=.
25124 for ac_exec_ext in '' $ac_executable_extensions; do
25125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25126 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25128 break 2
25129 fi
25130done
25131done
25132
25133 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25134 ;;
25135esac
25136fi
25137PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25138
25139if test -n "$PKG_CONFIG"; then
25140 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25141echo "${ECHO_T}$PKG_CONFIG" >&6
25142else
25143 echo "$as_me:$LINENO: result: no" >&5
25144echo "${ECHO_T}no" >&6
25145fi
25146
25147 fi
25148
25149 if test "$PKG_CONFIG" = "no" ; then
25150 echo "*** The pkg-config script could not be found. Make sure it is"
25151 echo "*** in your path, or set the PKG_CONFIG environment variable"
25152 echo "*** to the full path to pkg-config."
25153 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25154 else
25155 PKG_CONFIG_MIN_VERSION=0.9.0
25156 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25157 echo "$as_me:$LINENO: checking for pangox" >&5
25158echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25159
25160 if $PKG_CONFIG --exists "pangox" ; then
25161 echo "$as_me:$LINENO: result: yes" >&5
25162echo "${ECHO_T}yes" >&6
25163 succeeded=yes
25164
25165 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25166echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25167 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25168 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25169echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25170
25171 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25172echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25173 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25174 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25175echo "${ECHO_T}$PANGOX_LIBS" >&6
25176 else
25177 PANGOX_CFLAGS=""
25178 PANGOX_LIBS=""
25179 ## If we have a custom action on failure, don't print errors, but
25180 ## do set a variable so people can do so.
25181 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25182
25183 fi
25184
25185
25186
25187 else
25188 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25189 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25190 fi
25191 fi
25192
25193 if test $succeeded = yes; then
25194
25195 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25196 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25197
25198 else
25199
25200 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25201echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25202 { (exit 1); exit 1; }; }
25203
25204
25205 fi
25206
25207
25208 succeeded=no
25209
25210 if test -z "$PKG_CONFIG"; then
25211 # Extract the first word of "pkg-config", so it can be a program name with args.
25212set dummy pkg-config; ac_word=$2
25213echo "$as_me:$LINENO: checking for $ac_word" >&5
25214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25215if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25216 echo $ECHO_N "(cached) $ECHO_C" >&6
25217else
25218 case $PKG_CONFIG in
25219 [\\/]* | ?:[\\/]*)
25220 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25221 ;;
25222 *)
25223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25224for as_dir in $PATH
25225do
25226 IFS=$as_save_IFS
25227 test -z "$as_dir" && as_dir=.
25228 for ac_exec_ext in '' $ac_executable_extensions; do
25229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25230 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25232 break 2
25233 fi
25234done
25235done
25236
25237 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25238 ;;
25239esac
25240fi
25241PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25242
25243if test -n "$PKG_CONFIG"; then
25244 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25245echo "${ECHO_T}$PKG_CONFIG" >&6
25246else
25247 echo "$as_me:$LINENO: result: no" >&5
25248echo "${ECHO_T}no" >&6
25249fi
25250
25251 fi
25252
25253 if test "$PKG_CONFIG" = "no" ; then
25254 echo "*** The pkg-config script could not be found. Make sure it is"
25255 echo "*** in your path, or set the PKG_CONFIG environment variable"
25256 echo "*** to the full path to pkg-config."
25257 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25258 else
25259 PKG_CONFIG_MIN_VERSION=0.9.0
25260 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25261 echo "$as_me:$LINENO: checking for pangoft2" >&5
25262echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25263
25264 if $PKG_CONFIG --exists "pangoft2" ; then
25265 echo "$as_me:$LINENO: result: yes" >&5
25266echo "${ECHO_T}yes" >&6
25267 succeeded=yes
25268
25269 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25270echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25271 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25272 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25273echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25274
25275 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25276echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25277 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25278 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25279echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25280 else
25281 PANGOFT2_CFLAGS=""
25282 PANGOFT2_LIBS=""
25283 ## If we have a custom action on failure, don't print errors, but
25284 ## do set a variable so people can do so.
25285 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25286
25287 fi
25288
25289
25290
25291 else
25292 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25293 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25294 fi
25295 fi
25296
25297 if test $succeeded = yes; then
25298
25299 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25300 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25301
25302 else
25303
25304 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25305echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25306 wxUSE_PRINTING_ARCHITECTURE="no"
25307
25308
25309 fi
25310
25311
25312 succeeded=no
25313
25314 if test -z "$PKG_CONFIG"; then
25315 # Extract the first word of "pkg-config", so it can be a program name with args.
25316set dummy pkg-config; ac_word=$2
25317echo "$as_me:$LINENO: checking for $ac_word" >&5
25318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25319if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25320 echo $ECHO_N "(cached) $ECHO_C" >&6
25321else
25322 case $PKG_CONFIG in
25323 [\\/]* | ?:[\\/]*)
25324 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25325 ;;
25326 *)
25327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25328for as_dir in $PATH
25329do
25330 IFS=$as_save_IFS
25331 test -z "$as_dir" && as_dir=.
25332 for ac_exec_ext in '' $ac_executable_extensions; do
25333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25334 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25336 break 2
25337 fi
25338done
25339done
25340
25341 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25342 ;;
25343esac
25344fi
25345PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25346
25347if test -n "$PKG_CONFIG"; then
25348 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25349echo "${ECHO_T}$PKG_CONFIG" >&6
25350else
25351 echo "$as_me:$LINENO: result: no" >&5
25352echo "${ECHO_T}no" >&6
25353fi
25354
25355 fi
25356
25357 if test "$PKG_CONFIG" = "no" ; then
25358 echo "*** The pkg-config script could not be found. Make sure it is"
25359 echo "*** in your path, or set the PKG_CONFIG environment variable"
25360 echo "*** to the full path to pkg-config."
25361 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25362 else
25363 PKG_CONFIG_MIN_VERSION=0.9.0
25364 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25365 echo "$as_me:$LINENO: checking for pangoxft" >&5
25366echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25367
25368 if $PKG_CONFIG --exists "pangoxft" ; then
25369 echo "$as_me:$LINENO: result: yes" >&5
25370echo "${ECHO_T}yes" >&6
25371 succeeded=yes
25372
25373 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25374echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25375 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25376 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25377echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25378
25379 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25380echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25381 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25382 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25383echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25384 else
25385 PANGOXFT_CFLAGS=""
25386 PANGOXFT_LIBS=""
25387 ## If we have a custom action on failure, don't print errors, but
25388 ## do set a variable so people can do so.
25389 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25390
25391 fi
25392
25393
25394
25395 else
25396 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25397 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25398 fi
25399 fi
25400
25401 if test $succeeded = yes; then
25402
25403 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25404 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25405
25406 else
25407
25408 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25409echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25410
25411
25412 fi
25413
304205f1
VS
25414 save_CFLAGS="$CFLAGS"
25415 save_LIBS="$LIBS"
25416 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25417 LIBS="$LIBS $PANGOX_LIBS"
25418
25419for ac_func in pango_font_family_is_monospace
25420do
25421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25422echo "$as_me:$LINENO: checking for $ac_func" >&5
25423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25424if eval "test \"\${$as_ac_var+set}\" = set"; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25426else
25427 cat >conftest.$ac_ext <<_ACEOF
25428/* confdefs.h. */
25429_ACEOF
25430cat confdefs.h >>conftest.$ac_ext
25431cat >>conftest.$ac_ext <<_ACEOF
25432/* end confdefs.h. */
25433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25435#define $ac_func innocuous_$ac_func
25436
25437/* System header to define __stub macros and hopefully few prototypes,
25438 which can conflict with char $ac_func (); below.
25439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25440 <limits.h> exists even on freestanding compilers. */
25441
25442#ifdef __STDC__
25443# include <limits.h>
25444#else
25445# include <assert.h>
25446#endif
25447
25448#undef $ac_func
25449
25450/* Override any gcc2 internal prototype to avoid an error. */
25451#ifdef __cplusplus
25452extern "C"
25453{
25454#endif
25455/* We use char because int might match the return type of a gcc2
25456 builtin and then its argument prototype would still apply. */
25457char $ac_func ();
25458/* The GNU C library defines this for functions which it implements
25459 to always fail with ENOSYS. Some functions are actually named
25460 something starting with __ and the normal name is an alias. */
25461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25462choke me
25463#else
25464char (*f) () = $ac_func;
25465#endif
25466#ifdef __cplusplus
25467}
25468#endif
25469
25470int
25471main ()
25472{
25473return f != $ac_func;
25474 ;
25475 return 0;
25476}
25477_ACEOF
25478rm -f conftest.$ac_objext conftest$ac_exeext
25479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25480 (eval $ac_link) 2>conftest.er1
25481 ac_status=$?
25482 grep -v '^ *+' conftest.er1 >conftest.err
25483 rm -f conftest.er1
25484 cat conftest.err >&5
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); } &&
224bf05c 25487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489 (eval $ac_try) 2>&5
25490 ac_status=$?
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); }; } &&
25493 { ac_try='test -s conftest$ac_exeext'
25494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495 (eval $ac_try) 2>&5
25496 ac_status=$?
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); }; }; then
25499 eval "$as_ac_var=yes"
25500else
25501 echo "$as_me: failed program was:" >&5
25502sed 's/^/| /' conftest.$ac_ext >&5
25503
25504eval "$as_ac_var=no"
25505fi
25506rm -f conftest.err conftest.$ac_objext \
25507 conftest$ac_exeext conftest.$ac_ext
25508fi
25509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25511if test `eval echo '${'$as_ac_var'}'` = yes; then
25512 cat >>confdefs.h <<_ACEOF
25513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25514_ACEOF
25515
25516fi
25517done
25518
25519 CFLAGS="$save_CFLAGS"
25520 LIBS="$save_LIBS"
a848cd7e
SC
25521 fi
25522
25523 wxUSE_UNIVERSAL="yes"
25524
25525 if test "$wxUSE_NANOX" = "yes"; then
25526 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25527 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"
25528 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25529 else
25530 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25531 fi
25532
25533 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25534 TOOLKIT=X11
25535 GUIDIST=X11_DIST
25536 fi
25537
25538 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25539 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25540echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25541
74b84332
VS
25542ac_find_includes=
25543for ac_dir in $SEARCH_INCLUDE /usr/include;
25544 do
25545 if test -f "$ac_dir/Xm/Xm.h"; then
25546 ac_find_includes=$ac_dir
25547 break
25548 fi
25549 done
a848cd7e 25550
74b84332
VS
25551 if test "$ac_find_includes" != "" ; then
25552 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25553echo "${ECHO_T}found in $ac_find_includes" >&6
25554
25555 if test "x$ac_find_includes" = "x/usr/include"; then
25556 ac_path_to_include=""
25557 else
25558 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25559 result=$?
25560 if test $result = 0; then
25561 ac_path_to_include=""
25562 else
25563 ac_path_to_include=" -I$ac_find_includes"
25564 fi
a848cd7e
SC
25565 fi
25566
74b84332
VS
25567 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25568 else
25569 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25570/* confdefs.h. */
25571_ACEOF
25572cat confdefs.h >>conftest.$ac_ext
25573cat >>conftest.$ac_ext <<_ACEOF
25574/* end confdefs.h. */
25575
74b84332
VS
25576 #include <Xm/Xm.h>
25577
a848cd7e
SC
25578int
25579main ()
25580{
25581
74b84332
VS
25582 int version;
25583 version = xmUseVersion;
25584
a848cd7e
SC
25585 ;
25586 return 0;
25587}
25588_ACEOF
74b84332
VS
25589rm -f conftest.$ac_objext
25590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25591 (eval $ac_compile) 2>conftest.er1
a848cd7e 25592 ac_status=$?
ac1cb8d3
VS
25593 grep -v '^ *+' conftest.er1 >conftest.err
25594 rm -f conftest.er1
25595 cat conftest.err >&5
a848cd7e
SC
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } &&
224bf05c 25598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600 (eval $ac_try) 2>&5
25601 ac_status=$?
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; } &&
74b84332 25604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; }; then
74b84332
VS
25610
25611 echo "$as_me:$LINENO: result: found in default search path" >&5
25612echo "${ECHO_T}found in default search path" >&6
25613 COMPILED_X_PROGRAM=1
25614
a848cd7e
SC
25615else
25616 echo "$as_me: failed program was:" >&5
25617sed 's/^/| /' conftest.$ac_ext >&5
25618
a848cd7e 25619
74b84332
VS
25620 echo "$as_me:$LINENO: result: no" >&5
25621echo "${ECHO_T}no" >&6
25622 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25623echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25624 { (exit 1); exit 1; }; }
a848cd7e 25625
a848cd7e 25626
a848cd7e 25627fi
74b84332
VS
25628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25629 fi
25630
25631 if test "$COMPILED_X_PROGRAM" = 0; then
25632 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25633echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25634
25635ac_find_libraries=
25636for ac_dir in $SEARCH_LIB /usr/lib;
25637 do
25638 for ac_extension in a so sl dylib; do
25639 if test -f "$ac_dir/libXm.$ac_extension"; then
25640 ac_find_libraries=$ac_dir
25641 break 2
a848cd7e 25642 fi
74b84332
VS
25643 done
25644 done
a848cd7e 25645
74b84332
VS
25646 if test "$ac_find_libraries" != "" ; then
25647 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25648echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25649
74b84332
VS
25650
25651 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25652 result=$?
25653 if test $result = 0; then
25654 ac_path_to_link=""
a848cd7e 25655 else
74b84332
VS
25656 ac_path_to_link=" -L$ac_find_libraries"
25657 fi
25658
25659 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25660 else
25661 save_CFLAGS=$CFLAGS
25662 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25663
25664 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25665/* confdefs.h. */
25666_ACEOF
25667cat confdefs.h >>conftest.$ac_ext
25668cat >>conftest.$ac_ext <<_ACEOF
25669/* end confdefs.h. */
25670
74b84332
VS
25671 #include <Xm/Xm.h>
25672
a848cd7e
SC
25673int
25674main ()
25675{
74b84332
VS
25676
25677 int version;
25678 version = xmUseVersion;
25679
a848cd7e
SC
25680 ;
25681 return 0;
25682}
25683_ACEOF
74b84332
VS
25684rm -f conftest.$ac_objext
25685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25686 (eval $ac_compile) 2>conftest.er1
a848cd7e 25687 ac_status=$?
ac1cb8d3
VS
25688 grep -v '^ *+' conftest.er1 >conftest.err
25689 rm -f conftest.er1
25690 cat conftest.err >&5
a848cd7e
SC
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); } &&
224bf05c 25693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695 (eval $ac_try) 2>&5
25696 ac_status=$?
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); }; } &&
74b84332 25699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25701 (eval $ac_try) 2>&5
25702 ac_status=$?
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); }; }; then
74b84332
VS
25705
25706 echo "$as_me:$LINENO: result: found in default search path" >&5
25707echo "${ECHO_T}found in default search path" >&6
25708 COMPILED_X_PROGRAM=1
25709
a848cd7e
SC
25710else
25711 echo "$as_me: failed program was:" >&5
25712sed 's/^/| /' conftest.$ac_ext >&5
25713
74b84332
VS
25714
25715 echo "$as_me:$LINENO: result: no" >&5
25716echo "${ECHO_T}no" >&6
25717 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25718echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25719 { (exit 1); exit 1; }; }
25720
25721
25722fi
25723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25724
25725 CFLAGS=$save_CFLAGS
25726 fi
25727 fi
25728
25729 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25730echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25731 libp_link=""
25732 libsm_ice_link=""
25733 libs_found=0
25734 for libp in "" " -lXp"; do
25735 if test "$libs_found" = "0"; then
25736 for libsm_ice in "" " -lSM -lICE"; do
25737 if test "$libs_found" = "0"; then
25738 save_LIBS="$LIBS"
25739 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25740 save_CFLAGS=$CFLAGS
25741 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25742
25743 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25744/* confdefs.h. */
25745_ACEOF
25746cat confdefs.h >>conftest.$ac_ext
25747cat >>conftest.$ac_ext <<_ACEOF
25748/* end confdefs.h. */
25749
74b84332
VS
25750 #include <Xm/Xm.h>
25751 #include <Xm/List.h>
25752
a848cd7e
SC
25753int
25754main ()
25755{
74b84332
VS
25756
25757 XmString string = NULL;
25758 Widget w = NULL;
25759 int position = 0;
25760 XmListAddItem(w, string, position);
25761
a848cd7e
SC
25762 ;
25763 return 0;
25764}
25765_ACEOF
25766rm -f conftest.$ac_objext conftest$ac_exeext
25767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25768 (eval $ac_link) 2>conftest.er1
a848cd7e 25769 ac_status=$?
ac1cb8d3
VS
25770 grep -v '^ *+' conftest.er1 >conftest.err
25771 rm -f conftest.er1
25772 cat conftest.err >&5
a848cd7e
SC
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } &&
224bf05c 25775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777 (eval $ac_try) 2>&5
25778 ac_status=$?
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); }; } &&
25781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783 (eval $ac_try) 2>&5
25784 ac_status=$?
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; }; then
25787
25788 libp_link="$libp"
25789 libsm_ice_link="$libsm_ice"
25790 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25791echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25792 libs_found=1
25793
25794else
25795 echo "$as_me: failed program was:" >&5
25796sed 's/^/| /' conftest.$ac_ext >&5
25797
25798
25799
25800fi
ac1cb8d3
VS
25801rm -f conftest.err conftest.$ac_objext \
25802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25803
25804 LIBS="$save_LIBS"
25805 CFLAGS=$save_CFLAGS
25806 fi
25807 done
25808 fi
25809 done
25810
25811 if test "$libs_found" = "0"; then
25812 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25813echo "${ECHO_T}can't find the right libraries" >&6
25814 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25815echo "$as_me: error: can't link a simple motif program" >&2;}
25816 { (exit 1); exit 1; }; }
25817 fi
25818
25819 save_CFLAGS=$CFLAGS
25820 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25821 echo "$as_me:$LINENO: checking for Motif 2" >&5
25822echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25823 cat >conftest.$ac_ext <<_ACEOF
25824/* confdefs.h. */
25825_ACEOF
25826cat confdefs.h >>conftest.$ac_ext
25827cat >>conftest.$ac_ext <<_ACEOF
25828/* end confdefs.h. */
25829
25830 #include <Xm/Xm.h>
25831
25832int
25833main ()
25834{
25835
25836 #if XmVersion < 2000
25837 #error "Not Motif 2"
25838 #endif
25839
25840 ;
25841 return 0;
25842}
25843_ACEOF
25844rm -f conftest.$ac_objext
25845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25846 (eval $ac_compile) 2>conftest.er1
a848cd7e 25847 ac_status=$?
ac1cb8d3
VS
25848 grep -v '^ *+' conftest.er1 >conftest.err
25849 rm -f conftest.er1
25850 cat conftest.err >&5
a848cd7e
SC
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } &&
224bf05c 25853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; } &&
25859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25865
25866 cat >>confdefs.h <<\_ACEOF
25867#define __WXMOTIF20__ 1
25868_ACEOF
25869
25870 echo "$as_me:$LINENO: result: found" >&5
25871echo "${ECHO_T}found" >&6
25872
25873else
25874 echo "$as_me: failed program was:" >&5
25875sed 's/^/| /' conftest.$ac_ext >&5
25876
25877
25878 cat >>confdefs.h <<\_ACEOF
25879#define __WXMOTIF20__ 0
25880_ACEOF
25881
25882 echo "$as_me:$LINENO: result: not found" >&5
25883echo "${ECHO_T}not found" >&6
25884
25885fi
ac1cb8d3 25886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25887 CFLAGS=$save_CFLAGS
25888
25889 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
25890 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
25891 TOOLKIT=MOTIF
25892 GUIDIST=MOTIF_DIST
25893 fi
25894
74b84332 25895 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
25896 if test "$wxUSE_LIBXPM" = "sys"; then
25897 echo "$as_me:$LINENO: checking for Xpm library" >&5
25898echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25899
25900ac_find_libraries=
25901for ac_dir in $SEARCH_LIB /usr/lib;
25902 do
25903 for ac_extension in a so sl dylib; do
25904 if test -f "$ac_dir/libXpm.$ac_extension"; then
25905 ac_find_libraries=$ac_dir
25906 break 2
25907 fi
25908 done
25909 done
25910
25911 if test "$ac_find_libraries" != "" ; then
25912
25913 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25914 result=$?
25915 if test $result = 0; then
25916 ac_path_to_link=""
25917 else
25918 ac_path_to_link=" -L$ac_find_libraries"
25919 fi
25920
25921 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25922 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25923echo "${ECHO_T}found at $ac_find_libraries" >&6
25924
25925 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25926echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25927if test "${wx_cv_x11_xpm_h+set}" = set; then
25928 echo $ECHO_N "(cached) $ECHO_C" >&6
25929else
25930
25931 save_CFLAGS=$CFLAGS
25932 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25933
25934 cat >conftest.$ac_ext <<_ACEOF
25935/* confdefs.h. */
25936_ACEOF
25937cat confdefs.h >>conftest.$ac_ext
25938cat >>conftest.$ac_ext <<_ACEOF
25939/* end confdefs.h. */
25940
25941 #include <X11/xpm.h>
25942
25943int
25944main ()
25945{
25946
25947 int version;
25948 version = XpmLibraryVersion();
25949
25950 ;
25951 return 0;
25952}
25953_ACEOF
25954rm -f conftest.$ac_objext
25955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25956 (eval $ac_compile) 2>conftest.er1
a848cd7e 25957 ac_status=$?
ac1cb8d3
VS
25958 grep -v '^ *+' conftest.er1 >conftest.err
25959 rm -f conftest.er1
25960 cat conftest.err >&5
a848cd7e
SC
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } &&
224bf05c 25963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; } &&
25969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25972 ac_status=$?
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 wx_cv_x11_xpm_h=yes
25976else
25977 echo "$as_me: failed program was:" >&5
25978sed 's/^/| /' conftest.$ac_ext >&5
25979
25980wx_cv_x11_xpm_h=no
25981
25982fi
ac1cb8d3 25983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25984
25985 CFLAGS=$save_CFLAGS
25986
25987
25988fi
25989echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25990echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25991
25992 if test $wx_cv_x11_xpm_h = "yes"; then
25993 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
25994 cat >>confdefs.h <<\_ACEOF
25995#define wxHAVE_LIB_XPM 1
25996_ACEOF
25997
25998 else
25999 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26000echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26001 fi
26002 fi
26003
26004 fi
26005
26006 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26007echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26008if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26009 echo $ECHO_N "(cached) $ECHO_C" >&6
26010else
26011 ac_check_lib_save_LIBS=$LIBS
26012LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26013cat >conftest.$ac_ext <<_ACEOF
26014/* confdefs.h. */
26015_ACEOF
26016cat confdefs.h >>conftest.$ac_ext
26017cat >>conftest.$ac_ext <<_ACEOF
26018/* end confdefs.h. */
26019
26020/* Override any gcc2 internal prototype to avoid an error. */
26021#ifdef __cplusplus
26022extern "C"
26023#endif
26024/* We use char because int might match the return type of a gcc2
26025 builtin and then its argument prototype would still apply. */
26026char XShapeQueryExtension ();
26027int
26028main ()
26029{
26030XShapeQueryExtension ();
26031 ;
26032 return 0;
26033}
26034_ACEOF
26035rm -f conftest.$ac_objext conftest$ac_exeext
26036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26037 (eval $ac_link) 2>conftest.er1
a848cd7e 26038 ac_status=$?
ac1cb8d3
VS
26039 grep -v '^ *+' conftest.er1 >conftest.err
26040 rm -f conftest.er1
26041 cat conftest.err >&5
a848cd7e
SC
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } &&
224bf05c 26044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046 (eval $ac_try) 2>&5
26047 ac_status=$?
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); }; } &&
26050 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26052 (eval $ac_try) 2>&5
26053 ac_status=$?
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); }; }; then
26056 ac_cv_lib_Xext_XShapeQueryExtension=yes
26057else
26058 echo "$as_me: failed program was:" >&5
26059sed 's/^/| /' conftest.$ac_ext >&5
26060
26061ac_cv_lib_Xext_XShapeQueryExtension=no
26062fi
ac1cb8d3
VS
26063rm -f conftest.err conftest.$ac_objext \
26064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26065LIBS=$ac_check_lib_save_LIBS
26066fi
26067echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26068echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26069if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26070
26071 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26072 wxHAVE_XEXT_LIB=1
26073
26074fi
26075
26076
26077 if test "$wxHAVE_XEXT_LIB" = 1; then
26078 save_CFLAGS="$CFLAGS"
26079 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26080
26081 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26082echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26083 cat >conftest.$ac_ext <<_ACEOF
26084/* confdefs.h. */
26085_ACEOF
26086cat confdefs.h >>conftest.$ac_ext
26087cat >>conftest.$ac_ext <<_ACEOF
26088/* end confdefs.h. */
26089
26090 #include <X11/Xlib.h>
26091 #include <X11/extensions/shape.h>
26092
26093int
26094main ()
26095{
26096
26097 int dummy1, dummy2;
26098 XShapeQueryExtension((Display*)NULL,
26099 (int*)NULL, (int*)NULL);
26100
26101 ;
26102 return 0;
26103}
26104_ACEOF
26105rm -f conftest.$ac_objext
26106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26107 (eval $ac_compile) 2>conftest.er1
a848cd7e 26108 ac_status=$?
ac1cb8d3
VS
26109 grep -v '^ *+' conftest.er1 >conftest.err
26110 rm -f conftest.er1
26111 cat conftest.err >&5
a848cd7e
SC
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); } &&
224bf05c 26114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26117 ac_status=$?
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); }; } &&
26120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122 (eval $ac_try) 2>&5
26123 ac_status=$?
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; }; then
26126
26127 cat >>confdefs.h <<\_ACEOF
26128#define HAVE_XSHAPE 1
26129_ACEOF
26130
26131 echo "$as_me:$LINENO: result: found" >&5
26132echo "${ECHO_T}found" >&6
26133
26134else
26135 echo "$as_me: failed program was:" >&5
26136sed 's/^/| /' conftest.$ac_ext >&5
26137
26138
26139 echo "$as_me:$LINENO: result: not found" >&5
26140echo "${ECHO_T}not found" >&6
26141
26142fi
ac1cb8d3 26143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26144 CFLAGS="$save_CFLAGS"
26145
26146 fi
26147 fi
26148
26149 if test "$wxUSE_MAC" = 1; then
26150 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26151echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26152 if test "$GCC" = yes; then
26153 echo "$as_me:$LINENO: result: gcc" >&5
26154echo "${ECHO_T}gcc" >&6
26155 CPPFLAGS_PASCAL="-fpascal-strings"
26156 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26157 echo "$as_me:$LINENO: result: xlc" >&5
26158echo "${ECHO_T}xlc" >&6
26159 CPPFLAGS_PASCAL="-qmacpstr"
26160 else
26161 echo "$as_me:$LINENO: result: none" >&5
26162echo "${ECHO_T}none" >&6
26163 fi
26164
26165 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26166
26167 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26168 TOOLKIT=MAC
26169 GUIDIST=MACX_DIST
26170 WXBASEPORT="_carbon"
26171 fi
26172
26173 if test "$wxUSE_COCOA" = 1; then
26174 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26175 TOOLKIT=COCOA
26176 GUIDIST=COCOA_DIST
26177 fi
26178
26179 if test "$wxUSE_PM" = 1; then
26180 TOOLKIT=PM
de59c161
RD
26181 GUIDIST=PM_DIST
26182 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26183echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26184if test "${wx_cv_spbcdata+set}" = set; then
26185 echo $ECHO_N "(cached) $ECHO_C" >&6
26186else
26187
26188 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26189/* confdefs.h. */
26190_ACEOF
26191cat confdefs.h >>conftest.$ac_ext
26192cat >>conftest.$ac_ext <<_ACEOF
26193/* end confdefs.h. */
26194
26195 #define INCL_PM
26196 #include <os2.h>
26197
26198int
26199main ()
26200{
26201
26202 SPBCDATA test;
26203
26204 ;
26205 return 0;
26206}
26207_ACEOF
26208rm -f conftest.$ac_objext
26209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26210 (eval $ac_compile) 2>conftest.er1
de59c161 26211 ac_status=$?
ac1cb8d3
VS
26212 grep -v '^ *+' conftest.er1 >conftest.err
26213 rm -f conftest.er1
26214 cat conftest.err >&5
de59c161
RD
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); } &&
224bf05c 26217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26219 (eval $ac_try) 2>&5
26220 ac_status=$?
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); }; } &&
26223 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225 (eval $ac_try) 2>&5
26226 ac_status=$?
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); }; }; then
26229 wx_cv_spbcdata=yes
26230else
26231 echo "$as_me: failed program was:" >&5
26232sed 's/^/| /' conftest.$ac_ext >&5
26233
26234wx_cv_spbcdata=no
26235
26236fi
ac1cb8d3 26237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26238
26239
26240fi
26241echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26242echo "${ECHO_T}$wx_cv_spbcdata" >&6
26243
26244 if test $wx_cv_spbcdata = "yes"; then
26245 cat >>confdefs.h <<\_ACEOF
26246#define HAVE_SPBCDATA 1
26247_ACEOF
26248
26249 fi
a848cd7e
SC
26250 fi
26251
26252 if test "$TOOLKIT" = "PM" ; then
26253 TOOLKIT_DIR="os2"
26254 else
26255 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26256 fi
26257
26258 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26259
26260 if test "$wxUSE_UNIVERSAL" = "yes"; then
26261 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26262
26263 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26264 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26265
26266 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26267 if test "$wxUSE_X11" = 1; then
26268 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26269 else
26270 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26271 fi
26272 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26273 WIDGET_SET=univ
26274 else
26275 ALL_OBJECTS="\$(GUIOBJS)"
26276 ALL_SOURCES="\$(ALL_SOURCES)"
26277 ALL_HEADERS="\$(ALL_HEADERS)"
26278 fi
26279
26280 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26281
26282 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26283 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26284 fi
26285
26286 if test "$wxUSE_HTML" = "yes"; then
26287 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26288 fi
26289
26290 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26291 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26292 fi
26293 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26294 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26295 fi
26296 if test "$wxUSE_LIBPNG" = "builtin" ; then
26297 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26298 fi
26299
26300 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26301 DISTDIR="wx\$(TOOLKIT)"
26302else
26303 USE_GUI=0
26304
26305 TOOLKIT_DIR="base"
26306
26307 if test "$USE_WIN32" = 1 ; then
26308 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26309 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26310
26311 TOOLKIT="MSW"
26312 else
26313 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26314 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26315 fi
26316
26317 ALL_SOURCES="\$(ALL_SOURCES)"
26318 ALL_HEADERS="\$(ALL_HEADERS)"
26319
26320 PORT_FILES="\${top_srcdir}/src/files.lst"
26321
26322 GUIDIST="BASE_DIST"
26323 DISTDIR="wxBase"
26324fi
26325
26326
26327
26328
26329IODBC_C_SRC=""
26330
26331
26332if test "$TOOLKIT" != "MSW" ; then
26333
26334 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26335
26336 if test "${ac_cv_header_sql_h+set}" = set; then
26337 echo "$as_me:$LINENO: checking for sql.h" >&5
26338echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26339if test "${ac_cv_header_sql_h+set}" = set; then
26340 echo $ECHO_N "(cached) $ECHO_C" >&6
26341fi
26342echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26343echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26344else
26345 # Is the header compilable?
26346echo "$as_me:$LINENO: checking sql.h usability" >&5
26347echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26348cat >conftest.$ac_ext <<_ACEOF
26349/* confdefs.h. */
26350_ACEOF
26351cat confdefs.h >>conftest.$ac_ext
26352cat >>conftest.$ac_ext <<_ACEOF
26353/* end confdefs.h. */
26354$ac_includes_default
26355#include <sql.h>
26356_ACEOF
26357rm -f conftest.$ac_objext
26358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26359 (eval $ac_compile) 2>conftest.er1
a848cd7e 26360 ac_status=$?
ac1cb8d3
VS
26361 grep -v '^ *+' conftest.er1 >conftest.err
26362 rm -f conftest.er1
26363 cat conftest.err >&5
a848cd7e
SC
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); } &&
224bf05c 26366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26368 (eval $ac_try) 2>&5
26369 ac_status=$?
26370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371 (exit $ac_status); }; } &&
26372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26375 ac_status=$?
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; }; then
26378 ac_header_compiler=yes
26379else
26380 echo "$as_me: failed program was:" >&5
26381sed 's/^/| /' conftest.$ac_ext >&5
26382
26383ac_header_compiler=no
26384fi
ac1cb8d3 26385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26387echo "${ECHO_T}$ac_header_compiler" >&6
26388
26389# Is the header present?
26390echo "$as_me:$LINENO: checking sql.h presence" >&5
26391echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26392cat >conftest.$ac_ext <<_ACEOF
26393/* confdefs.h. */
26394_ACEOF
26395cat confdefs.h >>conftest.$ac_ext
26396cat >>conftest.$ac_ext <<_ACEOF
26397/* end confdefs.h. */
26398#include <sql.h>
26399_ACEOF
26400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26402 ac_status=$?
26403 grep -v '^ *+' conftest.er1 >conftest.err
26404 rm -f conftest.er1
26405 cat conftest.err >&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); } >/dev/null; then
26408 if test -s conftest.err; then
26409 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26411 else
26412 ac_cpp_err=
26413 fi
26414else
26415 ac_cpp_err=yes
26416fi
26417if test -z "$ac_cpp_err"; then
26418 ac_header_preproc=yes
26419else
26420 echo "$as_me: failed program was:" >&5
26421sed 's/^/| /' conftest.$ac_ext >&5
26422
26423 ac_header_preproc=no
26424fi
26425rm -f conftest.err conftest.$ac_ext
26426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26427echo "${ECHO_T}$ac_header_preproc" >&6
26428
26429# So? What about this header?
ac1cb8d3
VS
26430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26431 yes:no: )
a848cd7e
SC
26432 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26433echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26434 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26435echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26436 ac_header_preproc=yes
a848cd7e 26437 ;;
ac1cb8d3 26438 no:yes:* )
a848cd7e
SC
26439 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26440echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26441 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26442echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26443 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26444echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26445 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26446echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26447 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26448echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26449 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26450echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26451 (
26452 cat <<\_ASBOX
ac1cb8d3
VS
26453## ----------------------------------------- ##
26454## Report this to wx-dev@lists.wxwidgets.org ##
26455## ----------------------------------------- ##
a848cd7e
SC
26456_ASBOX
26457 ) |
26458 sed "s/^/$as_me: WARNING: /" >&2
26459 ;;
26460esac
26461echo "$as_me:$LINENO: checking for sql.h" >&5
26462echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26463if test "${ac_cv_header_sql_h+set}" = set; then
26464 echo $ECHO_N "(cached) $ECHO_C" >&6
26465else
26466 ac_cv_header_sql_h=$ac_header_preproc
26467fi
26468echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26469echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26470
26471fi
26472if test $ac_cv_header_sql_h = yes; then
26473 found_sql_h=1
26474fi
26475
26476
26477 if test "x$found_sql_h" = "x1" ; then
26478 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26479echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26480if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26482else
26483 ac_check_lib_save_LIBS=$LIBS
26484LIBS="-liodbc $LIBS"
26485cat >conftest.$ac_ext <<_ACEOF
26486/* confdefs.h. */
26487_ACEOF
26488cat confdefs.h >>conftest.$ac_ext
26489cat >>conftest.$ac_ext <<_ACEOF
26490/* end confdefs.h. */
26491
26492/* Override any gcc2 internal prototype to avoid an error. */
26493#ifdef __cplusplus
26494extern "C"
26495#endif
26496/* We use char because int might match the return type of a gcc2
26497 builtin and then its argument prototype would still apply. */
26498char SQLAllocEnv ();
26499int
26500main ()
26501{
26502SQLAllocEnv ();
26503 ;
26504 return 0;
26505}
26506_ACEOF
26507rm -f conftest.$ac_objext conftest$ac_exeext
26508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26509 (eval $ac_link) 2>conftest.er1
a848cd7e 26510 ac_status=$?
ac1cb8d3
VS
26511 grep -v '^ *+' conftest.er1 >conftest.err
26512 rm -f conftest.er1
26513 cat conftest.err >&5
a848cd7e
SC
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); } &&
224bf05c 26516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; } &&
26522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26524 (eval $ac_try) 2>&5
26525 ac_status=$?
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); }; }; then
26528 ac_cv_lib_iodbc_SQLAllocEnv=yes
26529else
26530 echo "$as_me: failed program was:" >&5
26531sed 's/^/| /' conftest.$ac_ext >&5
26532
26533ac_cv_lib_iodbc_SQLAllocEnv=no
26534fi
ac1cb8d3
VS
26535rm -f conftest.err conftest.$ac_objext \
26536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26537LIBS=$ac_check_lib_save_LIBS
26538fi
26539echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26540echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26541if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26542 ODBC_LINK=" -liodbc"
26543else
26544
26545 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26546echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26547if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26548 echo $ECHO_N "(cached) $ECHO_C" >&6
26549else
26550 ac_check_lib_save_LIBS=$LIBS
26551LIBS="-lunixodbc $LIBS"
26552cat >conftest.$ac_ext <<_ACEOF
26553/* confdefs.h. */
26554_ACEOF
26555cat confdefs.h >>conftest.$ac_ext
26556cat >>conftest.$ac_ext <<_ACEOF
26557/* end confdefs.h. */
26558
26559/* Override any gcc2 internal prototype to avoid an error. */
26560#ifdef __cplusplus
26561extern "C"
26562#endif
26563/* We use char because int might match the return type of a gcc2
26564 builtin and then its argument prototype would still apply. */
26565char SQLAllocEnv ();
26566int
26567main ()
26568{
26569SQLAllocEnv ();
26570 ;
26571 return 0;
26572}
26573_ACEOF
26574rm -f conftest.$ac_objext conftest$ac_exeext
26575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26576 (eval $ac_link) 2>conftest.er1
a848cd7e 26577 ac_status=$?
ac1cb8d3
VS
26578 grep -v '^ *+' conftest.er1 >conftest.err
26579 rm -f conftest.er1
26580 cat conftest.err >&5
a848cd7e
SC
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } &&
224bf05c 26583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26585 (eval $ac_try) 2>&5
26586 ac_status=$?
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); }; } &&
26589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26591 (eval $ac_try) 2>&5
26592 ac_status=$?
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); }; }; then
26595 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26596else
26597 echo "$as_me: failed program was:" >&5
26598sed 's/^/| /' conftest.$ac_ext >&5
26599
26600ac_cv_lib_unixodbc_SQLAllocEnv=no
26601fi
ac1cb8d3
VS
26602rm -f conftest.err conftest.$ac_objext \
26603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26604LIBS=$ac_check_lib_save_LIBS
26605fi
26606echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26607echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26608if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26609 ODBC_LINK=" -lunixodbc"
26610else
26611
26612 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26613echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26614if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26615 echo $ECHO_N "(cached) $ECHO_C" >&6
26616else
26617 ac_check_lib_save_LIBS=$LIBS
26618LIBS="-lodbc $LIBS"
26619cat >conftest.$ac_ext <<_ACEOF
26620/* confdefs.h. */
26621_ACEOF
26622cat confdefs.h >>conftest.$ac_ext
26623cat >>conftest.$ac_ext <<_ACEOF
26624/* end confdefs.h. */
26625
26626/* Override any gcc2 internal prototype to avoid an error. */
26627#ifdef __cplusplus
26628extern "C"
26629#endif
26630/* We use char because int might match the return type of a gcc2
26631 builtin and then its argument prototype would still apply. */
26632char SQLAllocEnv ();
26633int
26634main ()
26635{
26636SQLAllocEnv ();
26637 ;
26638 return 0;
26639}
26640_ACEOF
26641rm -f conftest.$ac_objext conftest$ac_exeext
26642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26643 (eval $ac_link) 2>conftest.er1
a848cd7e 26644 ac_status=$?
ac1cb8d3
VS
26645 grep -v '^ *+' conftest.er1 >conftest.err
26646 rm -f conftest.er1
26647 cat conftest.err >&5
a848cd7e
SC
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } &&
224bf05c 26650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26652 (eval $ac_try) 2>&5
26653 ac_status=$?
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); }; } &&
26656 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26658 (eval $ac_try) 2>&5
26659 ac_status=$?
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); }; }; then
26662 ac_cv_lib_odbc_SQLAllocEnv=yes
26663else
26664 echo "$as_me: failed program was:" >&5
26665sed 's/^/| /' conftest.$ac_ext >&5
26666
26667ac_cv_lib_odbc_SQLAllocEnv=no
26668fi
ac1cb8d3
VS
26669rm -f conftest.err conftest.$ac_objext \
26670 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26671LIBS=$ac_check_lib_save_LIBS
26672fi
26673echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26674echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26675if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26676 ODBC_LINK=" -lodbc"
26677fi
26678
26679
26680fi
26681
26682
26683fi
26684
26685 fi
26686 if test "x$ODBC_LINK" = "x" ; then
26687 if test "$wxUSE_ODBC" = "sys" ; then
26688 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26689echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26690 { (exit 1); exit 1; }; }
26691 else
26692 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26693echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26694 wxUSE_ODBC=builtin
26695 fi
26696 else
26697 wxUSE_ODBC=sys
26698 fi
26699 fi
26700 if test "$wxUSE_ODBC" != "no" ; then
26701 cat >>confdefs.h <<\_ACEOF
26702#define wxUSE_ODBC 1
26703_ACEOF
26704
26705 if test "$wxUSE_ODBC" = "builtin" ; then
26706 cat >>confdefs.h <<\_ACEOF
26707#define wxUSE_BUILTIN_IODBC 1
26708_ACEOF
26709
26710 fi
26711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26712
26713 WXODBCFLAG="-D_IODBC_"
26714 fi
26715fi
26716
26717if test "$wxUSE_REGEX" = "builtin" ; then
26718 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26719fi
26720if test "$wxUSE_ZLIB" = "builtin" ; then
26721 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26722fi
26723
01cb68df 26724
a848cd7e 26725if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26726 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26727 echo "$as_me:$LINENO: checking for Xinerama" >&5
26728echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26729
26730ac_find_libraries=
26731for ac_dir in $SEARCH_LIB /usr/lib;
26732 do
26733 for ac_extension in a so sl dylib; do
26734 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26735 ac_find_libraries=$ac_dir
26736 break 2
26737 fi
26738 done
26739 done
26740
26741 if test "$ac_find_libraries" != "" ; then
26742
26743 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26744 result=$?
26745 if test $result = 0; then
26746 ac_path_to_link=""
26747 else
26748 ac_path_to_link=" -L$ac_find_libraries"
26749 fi
26750
26751 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26752 LDFLAGS="$LDFLAGS $ac_path_to_link"
26753 fi
26754 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26755 echo "$as_me:$LINENO: result: yes" >&5
26756echo "${ECHO_T}yes" >&6
26757
26758 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26759echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26760
26761ac_find_libraries=
26762for ac_dir in $SEARCH_LIB /usr/lib;
26763 do
26764 for ac_extension in a so sl dylib; do
26765 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26766 ac_find_libraries=$ac_dir
26767 break 2
26768 fi
26769 done
26770 done
26771
26772 if test "$ac_find_libraries" != "" ; then
26773 echo "$as_me:$LINENO: result: yes" >&5
26774echo "${ECHO_T}yes" >&6
26775
26776for ac_header in X11/extensions/xf86vmode.h
26777do
26778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26779echo "$as_me:$LINENO: checking for $ac_header" >&5
26780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26781if eval "test \"\${$as_ac_Header+set}\" = set"; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26783else
26784 cat >conftest.$ac_ext <<_ACEOF
26785/* confdefs.h. */
26786_ACEOF
26787cat confdefs.h >>conftest.$ac_ext
26788cat >>conftest.$ac_ext <<_ACEOF
26789/* end confdefs.h. */
26790
26791 #if HAVE_X11_XLIB_H
26792 #include <X11/Xlib.h>
26793 #endif
26794
26795
26796#include <$ac_header>
26797_ACEOF
26798rm -f conftest.$ac_objext
26799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26800 (eval $ac_compile) 2>conftest.er1
a848cd7e 26801 ac_status=$?
ac1cb8d3
VS
26802 grep -v '^ *+' conftest.er1 >conftest.err
26803 rm -f conftest.er1
26804 cat conftest.err >&5
a848cd7e
SC
26805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806 (exit $ac_status); } &&
224bf05c 26807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26809 (eval $ac_try) 2>&5
26810 ac_status=$?
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); }; } &&
26813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26815 (eval $ac_try) 2>&5
26816 ac_status=$?
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); }; }; then
26819 eval "$as_ac_Header=yes"
26820else
26821 echo "$as_me: failed program was:" >&5
26822sed 's/^/| /' conftest.$ac_ext >&5
26823
26824eval "$as_ac_Header=no"
26825fi
ac1cb8d3 26826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26827fi
26828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26830if test `eval echo '${'$as_ac_Header'}'` = yes; then
26831 cat >>confdefs.h <<_ACEOF
26832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26833_ACEOF
26834
26835 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26836
26837fi
26838
26839done
26840
26841 else
26842 echo "$as_me:$LINENO: result: no" >&5
26843echo "${ECHO_T}no" >&6
26844 fi
26845
26846 else
26847 echo "$as_me:$LINENO: result: no" >&5
26848echo "${ECHO_T}no" >&6
dcc1b6ad
VS
26849 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
26850echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
26851 wxUSE_DISPLAY="no"
26852 fi
01cb68df
RG
26853 elif test "$wxUSE_MSW" = 1; then
26854
26855
26856for ac_header in multimon.h ddraw.h
26857do
26858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26859if eval "test \"\${$as_ac_Header+set}\" = set"; then
26860 echo "$as_me:$LINENO: checking for $ac_header" >&5
26861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26862if eval "test \"\${$as_ac_Header+set}\" = set"; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
26864fi
26865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26867else
26868 # Is the header compilable?
26869echo "$as_me:$LINENO: checking $ac_header usability" >&5
26870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26871cat >conftest.$ac_ext <<_ACEOF
26872/* confdefs.h. */
26873_ACEOF
26874cat confdefs.h >>conftest.$ac_ext
26875cat >>conftest.$ac_ext <<_ACEOF
26876/* end confdefs.h. */
26877$ac_includes_default
26878#include <$ac_header>
26879_ACEOF
26880rm -f conftest.$ac_objext
26881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26882 (eval $ac_compile) 2>conftest.er1
01cb68df 26883 ac_status=$?
ac1cb8d3
VS
26884 grep -v '^ *+' conftest.er1 >conftest.err
26885 rm -f conftest.er1
26886 cat conftest.err >&5
01cb68df
RG
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); } &&
224bf05c 26889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; } &&
26895 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
26896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; }; then
26901 ac_header_compiler=yes
26902else
26903 echo "$as_me: failed program was:" >&5
26904sed 's/^/| /' conftest.$ac_ext >&5
26905
26906ac_header_compiler=no
26907fi
ac1cb8d3 26908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
26909echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26910echo "${ECHO_T}$ac_header_compiler" >&6
26911
26912# Is the header present?
26913echo "$as_me:$LINENO: checking $ac_header presence" >&5
26914echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26915cat >conftest.$ac_ext <<_ACEOF
26916/* confdefs.h. */
26917_ACEOF
26918cat confdefs.h >>conftest.$ac_ext
26919cat >>conftest.$ac_ext <<_ACEOF
26920/* end confdefs.h. */
26921#include <$ac_header>
26922_ACEOF
26923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26925 ac_status=$?
26926 grep -v '^ *+' conftest.er1 >conftest.err
26927 rm -f conftest.er1
26928 cat conftest.err >&5
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); } >/dev/null; then
26931 if test -s conftest.err; then
26932 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
26934 else
26935 ac_cpp_err=
26936 fi
26937else
26938 ac_cpp_err=yes
26939fi
26940if test -z "$ac_cpp_err"; then
26941 ac_header_preproc=yes
26942else
26943 echo "$as_me: failed program was:" >&5
26944sed 's/^/| /' conftest.$ac_ext >&5
26945
26946 ac_header_preproc=no
26947fi
26948rm -f conftest.err conftest.$ac_ext
26949echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26950echo "${ECHO_T}$ac_header_preproc" >&6
26951
26952# So? What about this header?
ac1cb8d3
VS
26953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26954 yes:no: )
01cb68df
RG
26955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26959 ac_header_preproc=yes
01cb68df 26960 ;;
ac1cb8d3 26961 no:yes:* )
01cb68df
RG
26962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
26970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
26974 (
26975 cat <<\_ASBOX
ac1cb8d3
VS
26976## ----------------------------------------- ##
26977## Report this to wx-dev@lists.wxwidgets.org ##
26978## ----------------------------------------- ##
01cb68df
RG
26979_ASBOX
26980 ) |
26981 sed "s/^/$as_me: WARNING: /" >&2
26982 ;;
26983esac
26984echo "$as_me:$LINENO: checking for $ac_header" >&5
26985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26986if eval "test \"\${$as_ac_Header+set}\" = set"; then
26987 echo $ECHO_N "(cached) $ECHO_C" >&6
26988else
ac1cb8d3 26989 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
26990fi
26991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26993
26994fi
26995if test `eval echo '${'$as_ac_Header'}'` = yes; then
26996 cat >>confdefs.h <<_ACEOF
26997#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26998_ACEOF
26999
27000else
27001
27002 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27003 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27004echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27005
27006fi
27007
27008done
27009
a848cd7e
SC
27010 fi
27011fi
27012
27013
27014USE_OPENGL=0
27015if test "$wxUSE_OPENGL" = "yes"; then
27016 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27017 OPENGL_LIBS="-framework OpenGL -framework AGL"
27018 elif test "$wxUSE_MSW" = 1; then
27019 OPENGL_LIBS="-lopengl32 -lglu32"
27020 else
27021
27022
27023ac_find_includes=
27024for ac_dir in $SEARCH_INCLUDE /usr/include;
27025 do
27026 if test -f "$ac_dir/GL/gl.h"; then
27027 ac_find_includes=$ac_dir
27028 break
27029 fi
27030 done
27031
27032 if test "$ac_find_includes" != "" ; then
27033 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27034echo "${ECHO_T}found in $ac_find_includes" >&6
27035
27036 if test "x$ac_find_includes" = "x/usr/include"; then
27037 ac_path_to_include=""
27038 else
27039 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27040 result=$?
27041 if test $result = 0; then
27042 ac_path_to_include=""
27043 else
27044 ac_path_to_include=" -I$ac_find_includes"
27045 fi
27046 fi
27047
27048 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27049 fi
27050
27051 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27052 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27053echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27054if test "${ac_cv_header_GL_gl_h+set}" = set; then
27055 echo $ECHO_N "(cached) $ECHO_C" >&6
27056fi
27057echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27058echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27059else
27060 # Is the header compilable?
27061echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27062echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27063cat >conftest.$ac_ext <<_ACEOF
27064/* confdefs.h. */
27065_ACEOF
27066cat confdefs.h >>conftest.$ac_ext
27067cat >>conftest.$ac_ext <<_ACEOF
27068/* end confdefs.h. */
27069$ac_includes_default
27070#include <GL/gl.h>
27071_ACEOF
27072rm -f conftest.$ac_objext
27073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27074 (eval $ac_compile) 2>conftest.er1
a848cd7e 27075 ac_status=$?
ac1cb8d3
VS
27076 grep -v '^ *+' conftest.er1 >conftest.err
27077 rm -f conftest.er1
27078 cat conftest.err >&5
a848cd7e
SC
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); } &&
224bf05c 27081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; } &&
27087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089 (eval $ac_try) 2>&5
27090 ac_status=$?
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); }; }; then
27093 ac_header_compiler=yes
27094else
27095 echo "$as_me: failed program was:" >&5
27096sed 's/^/| /' conftest.$ac_ext >&5
27097
27098ac_header_compiler=no
27099fi
ac1cb8d3 27100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27102echo "${ECHO_T}$ac_header_compiler" >&6
27103
27104# Is the header present?
27105echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27106echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27107cat >conftest.$ac_ext <<_ACEOF
27108/* confdefs.h. */
27109_ACEOF
27110cat confdefs.h >>conftest.$ac_ext
27111cat >>conftest.$ac_ext <<_ACEOF
27112/* end confdefs.h. */
27113#include <GL/gl.h>
27114_ACEOF
27115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27117 ac_status=$?
27118 grep -v '^ *+' conftest.er1 >conftest.err
27119 rm -f conftest.er1
27120 cat conftest.err >&5
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } >/dev/null; then
27123 if test -s conftest.err; then
27124 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27126 else
27127 ac_cpp_err=
27128 fi
27129else
27130 ac_cpp_err=yes
27131fi
27132if test -z "$ac_cpp_err"; then
27133 ac_header_preproc=yes
27134else
27135 echo "$as_me: failed program was:" >&5
27136sed 's/^/| /' conftest.$ac_ext >&5
27137
27138 ac_header_preproc=no
27139fi
27140rm -f conftest.err conftest.$ac_ext
27141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27142echo "${ECHO_T}$ac_header_preproc" >&6
27143
27144# So? What about this header?
ac1cb8d3
VS
27145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27146 yes:no: )
a848cd7e
SC
27147 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27148echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27149 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27150echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27151 ac_header_preproc=yes
a848cd7e 27152 ;;
ac1cb8d3 27153 no:yes:* )
a848cd7e
SC
27154 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27155echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27156 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27157echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27158 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27159echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27160 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27161echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27162 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27163echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27164 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27165echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27166 (
27167 cat <<\_ASBOX
ac1cb8d3
VS
27168## ----------------------------------------- ##
27169## Report this to wx-dev@lists.wxwidgets.org ##
27170## ----------------------------------------- ##
a848cd7e
SC
27171_ASBOX
27172 ) |
27173 sed "s/^/$as_me: WARNING: /" >&2
27174 ;;
27175esac
27176echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27177echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27178if test "${ac_cv_header_GL_gl_h+set}" = set; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27180else
27181 ac_cv_header_GL_gl_h=$ac_header_preproc
27182fi
27183echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27184echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27185
27186fi
27187if test $ac_cv_header_GL_gl_h = yes; then
27188
27189 found_gl=0
27190
27191 echo "$as_me:$LINENO: checking for -lGL" >&5
27192echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27193
27194ac_find_libraries=
27195for ac_dir in $SEARCH_LIB /usr/lib;
27196 do
27197 for ac_extension in a so sl dylib; do
27198 if test -f "$ac_dir/libGL.$ac_extension"; then
27199 ac_find_libraries=$ac_dir
27200 break 2
27201 fi
27202 done
27203 done
27204
27205 if test "$ac_find_libraries" != "" ; then
27206
27207 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27208 result=$?
27209 if test $result = 0; then
27210 ac_path_to_link=""
27211 else
27212 ac_path_to_link=" -L$ac_find_libraries"
27213 fi
27214
27215 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27216 LDFLAGS_GL="$ac_path_to_link"
27217 fi
27218
27219
27220ac_find_libraries=
27221for ac_dir in $SEARCH_LIB /usr/lib;
27222 do
27223 for ac_extension in a so sl dylib; do
27224 if test -f "$ac_dir/libGLU.$ac_extension"; then
27225 ac_find_libraries=$ac_dir
27226 break 2
27227 fi
27228 done
27229 done
27230
27231 if test "$ac_find_libraries" != "" ; then
27232
27233 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27234 result=$?
27235 if test $result = 0; then
27236 ac_path_to_link=""
27237 else
27238 ac_path_to_link=" -L$ac_find_libraries"
27239 fi
27240
27241 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27242 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27243 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27244 fi
27245
27246 found_gl=1
27247 OPENGL_LIBS="-lGL -lGLU"
27248 echo "$as_me:$LINENO: result: yes" >&5
27249echo "${ECHO_T}yes" >&6
27250 fi
27251 fi
27252
27253 if test "$found_gl" != 1; then
27254 echo "$as_me:$LINENO: result: no" >&5
27255echo "${ECHO_T}no" >&6
27256 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27257echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27258
27259ac_find_libraries=
27260for ac_dir in $SEARCH_LIB /usr/lib;
27261 do
27262 for ac_extension in a so sl dylib; do
27263 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27264 ac_find_libraries=$ac_dir
27265 break 2
27266 fi
27267 done
27268 done
27269
27270 if test "$ac_find_libraries" != "" ; then
27271
27272 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27273 result=$?
27274 if test $result = 0; then
27275 ac_path_to_link=""
27276 else
27277 ac_path_to_link=" -L$ac_find_libraries"
27278 fi
27279
27280 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27281 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27282 echo "$as_me:$LINENO: result: yes" >&5
27283echo "${ECHO_T}yes" >&6
27284 else
27285 echo "$as_me:$LINENO: result: no" >&5
27286echo "${ECHO_T}no" >&6
27287 fi
27288 fi
27289
27290fi
27291
27292
27293
27294 if test "x$OPENGL_LIBS" = "x"; then
27295 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27296echo "$as_me: error: OpenGL libraries not available" >&2;}
27297 { (exit 1); exit 1; }; }
27298 fi
27299 fi
27300
27301 if test "$wxUSE_OPENGL" = "yes"; then
27302 USE_OPENGL=1
27303 cat >>confdefs.h <<\_ACEOF
27304#define wxUSE_OPENGL 1
27305_ACEOF
27306
27307 cat >>confdefs.h <<\_ACEOF
27308#define wxUSE_GLCANVAS 1
27309_ACEOF
27310
27311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27312 fi
27313fi
27314
27315if test -z "$TOOLKIT_VPATH" ; then
27316 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27317fi
27318
27319if test -n "$TOOLKIT" ; then
27320 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27321fi
27322
27323UNICODE=0
27324lib_unicode_suffix=
48112931 27325wxconfig_filename_unicode="ansi"
a848cd7e
SC
27326if test "$wxUSE_UNICODE" = "yes"; then
27327 lib_unicode_suffix=u
48112931 27328 wxconfig_filename_unicode="unicode"
a848cd7e
SC
27329 UNICODE=1
27330fi
27331
27332lib_debug_suffix=
48112931 27333wxconfig_filename_debug="release"
a848cd7e
SC
27334DEBUG_FLAG=0
27335if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27336 lib_debug_suffix=d
48112931 27337 wxconfig_filename_debug="debug"
a848cd7e
SC
27338 DEBUG_FLAG=1
27339fi
27340
27341DEBUG_INFO=0
27342if test "$wxUSE_DEBUG_INFO" = "yes"; then
27343 DEBUG_INFO=1
27344fi
27345
27346WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27347
27348TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27349TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27350
48112931
VS
27351WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27352
a848cd7e
SC
27353if test "$cross_compiling" = "yes"; then
27354 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27355 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
48112931 27356 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
a848cd7e
SC
27357 HOST_SUFFIX="-${host_alias}"
27358fi
27359
27360WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27361WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27362WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27363WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27364
27365WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27366WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27367
27368WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27369WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27370WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27371WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27372
27373case "${host}" in
27374 *-*-cygwin* | *-*-mingw32* )
27375 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27376 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27377 ;;
27378
27379 *-*-darwin* )
27380
27381 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27382 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27383
27384 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27385 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27386 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27387 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27388
27389 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27390 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27391 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27392 fi
27393 ;;
27394esac
27395
27396WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27397WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27398
27399WXCONFIG_LIBS="-l${WX_LIBRARY}"
27400WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27401
27402if test "$wxUSE_OPENGL" = "yes"; then
27403 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27404 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27405fi
27406
27407
27408
27409if test "$wxUSE_SHARED" = "yes"; then
27410 case "${host}" in
27411 *-pc-msdosdjgpp )
27412 wxUSE_SHARED=no
27413 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27414echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27415 ;;
27416 esac
27417fi
27418
27419SHARED=0
27420if test "$wxUSE_SHARED" = "yes"; then
27421 SHARED=1
27422
27423
27424 found_versioning=no
27425
27426
27427 if test $found_versioning = no ; then
27428 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27429echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27430if test "${wx_cv_version_script+set}" = set; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27432else
27433
27434 echo "VER_1 { *; };" >conftest.sym
27435 echo "int main() { return 0; }" >conftest.cpp
27436
27437 if { ac_try='
27438 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27439 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27441 (eval $ac_try) 2>&5
27442 ac_status=$?
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); }; } ; then
27445 if test -s conftest.stderr ; then
27446 wx_cv_version_script=no
27447 else
27448 wx_cv_version_script=yes
27449 fi
27450 else
27451 wx_cv_version_script=no
27452 fi
27453 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27454
27455fi
27456echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27457echo "${ECHO_T}$wx_cv_version_script" >&6
27458 if test $wx_cv_version_script = yes ; then
27459 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27460 fi
27461 fi
27462
27463
27464 case "${host}" in
27465 *-*-linux* | *-*-gnu* )
27466 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27467 ;;
27468
27469 *-*-solaris2* )
27470 if test "$GCC" = yes ; then
27471 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27472
27473 saveLdflags="$LDFLAGS"
27474 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27475 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27476echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27477 cat >conftest.$ac_ext <<_ACEOF
27478/* confdefs.h. */
27479_ACEOF
27480cat confdefs.h >>conftest.$ac_ext
27481cat >>conftest.$ac_ext <<_ACEOF
27482/* end confdefs.h. */
27483
27484int
27485main ()
27486{
27487
27488 ;
27489 return 0;
27490}
27491_ACEOF
27492rm -f conftest.$ac_objext conftest$ac_exeext
27493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27494 (eval $ac_link) 2>conftest.er1
a848cd7e 27495 ac_status=$?
ac1cb8d3
VS
27496 grep -v '^ *+' conftest.er1 >conftest.err
27497 rm -f conftest.er1
27498 cat conftest.err >&5
a848cd7e
SC
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } &&
224bf05c 27501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27503 (eval $ac_try) 2>&5
27504 ac_status=$?
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); }; } &&
27507 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509 (eval $ac_try) 2>&5
27510 ac_status=$?
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; }; then
27513
27514 echo "$as_me:$LINENO: result: yes" >&5
27515echo "${ECHO_T}yes" >&6
27516 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27517
27518else
27519 echo "$as_me: failed program was:" >&5
27520sed 's/^/| /' conftest.$ac_ext >&5
27521
27522
27523 echo "$as_me:$LINENO: result: no" >&5
27524echo "${ECHO_T}no" >&6
27525 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27526echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27527 LDFLAGS="$saveLdflags -Wl,-R,/"
27528 cat >conftest.$ac_ext <<_ACEOF
27529/* confdefs.h. */
27530_ACEOF
27531cat confdefs.h >>conftest.$ac_ext
27532cat >>conftest.$ac_ext <<_ACEOF
27533/* end confdefs.h. */
27534
27535int
27536main ()
27537{
27538
27539 ;
27540 return 0;
27541}
27542_ACEOF
27543rm -f conftest.$ac_objext conftest$ac_exeext
27544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27545 (eval $ac_link) 2>conftest.er1
a848cd7e 27546 ac_status=$?
ac1cb8d3
VS
27547 grep -v '^ *+' conftest.er1 >conftest.err
27548 rm -f conftest.er1
27549 cat conftest.err >&5
a848cd7e
SC
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); } &&
224bf05c 27552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554 (eval $ac_try) 2>&5
27555 ac_status=$?
27556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); }; } &&
27558 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27560 (eval $ac_try) 2>&5
27561 ac_status=$?
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); }; }; then
27564
27565 echo "$as_me:$LINENO: result: yes" >&5
27566echo "${ECHO_T}yes" >&6
27567 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27568else
27569 echo "$as_me: failed program was:" >&5
27570sed 's/^/| /' conftest.$ac_ext >&5
27571
27572
27573 echo "$as_me:$LINENO: result: no" >&5
27574echo "${ECHO_T}no" >&6
27575
27576fi
ac1cb8d3
VS
27577rm -f conftest.err conftest.$ac_objext \
27578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27579
27580fi
ac1cb8d3
VS
27581rm -f conftest.err conftest.$ac_objext \
27582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27583 LDFLAGS="$saveLdflags"
27584 else
27585 SHARED_LD="${CXX} -G -o"
27586 PIC_FLAG="-KPIC"
27587 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27588 fi
27589 ;;
27590
27591 powerpc-*-darwin* )
27592 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27593 cat <<EOF >change-install-names
27594#!/bin/sh
27595libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27596inst_cmd="install_name_tool "
27597for i in \${libnames} ; do
27598 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27599done
27600\${inst_cmd} \${3}
27601EOF
27602 chmod +x change-install-names
27603 ;;
27604
27605 *-*-cygwin* | *-*-mingw32* )
27606 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27607 ;;
27608
27609 esac
27610
27611 if test "x$WX_TARGET_LIBRARY" = "x"; then
27612 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27613 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27614 fi
27615
27616 WX_TARGET_LIBRARY_TYPE="so"
27617 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27618fi
27619
27620if test "$wxUSE_SHARED" = "no"; then
27621
27622 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27623 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27624 fi
27625
27626 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27627 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27628 fi
27629
27630 if test "$wxUSE_OPENGL" = "yes"; then
27631 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27632 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27633 else
27634 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27635 fi
27636
27637 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27638 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27639
27640 WX_TARGET_LIBRARY_TYPE="a"
27641 INSTALL_LIBRARY='$(INSTALL_DATA)'
27642
27643 STATIC_FLAG="yes"
27644else
27645 STATIC_FLAG="no"
27646fi
27647
27648if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27649 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27650 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27651 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27652
27653 # Extract the first word of "Rez", so it can be a program name with args.
27654set dummy Rez; ac_word=$2
27655echo "$as_me:$LINENO: checking for $ac_word" >&5
27656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27657if test "${ac_cv_prog_RESCOMP+set}" = set; then
27658 echo $ECHO_N "(cached) $ECHO_C" >&6
27659else
27660 if test -n "$RESCOMP"; then
27661 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27662else
27663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27664for as_dir in $PATH
27665do
27666 IFS=$as_save_IFS
27667 test -z "$as_dir" && as_dir=.
27668 for ac_exec_ext in '' $ac_executable_extensions; do
27669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27670 ac_cv_prog_RESCOMP="Rez"
27671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27672 break 2
27673 fi
27674done
27675done
27676
27677 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27678fi
27679fi
27680RESCOMP=$ac_cv_prog_RESCOMP
27681if test -n "$RESCOMP"; then
27682 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27683echo "${ECHO_T}$RESCOMP" >&6
27684else
27685 echo "$as_me:$LINENO: result: no" >&5
27686echo "${ECHO_T}no" >&6
27687fi
27688
27689 # Extract the first word of "DeRez", so it can be a program name with args.
27690set dummy DeRez; ac_word=$2
27691echo "$as_me:$LINENO: checking for $ac_word" >&5
27692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27693if test "${ac_cv_prog_DEREZ+set}" = set; then
27694 echo $ECHO_N "(cached) $ECHO_C" >&6
27695else
27696 if test -n "$DEREZ"; then
27697 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27698else
27699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27700for as_dir in $PATH
27701do
27702 IFS=$as_save_IFS
27703 test -z "$as_dir" && as_dir=.
27704 for ac_exec_ext in '' $ac_executable_extensions; do
27705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27706 ac_cv_prog_DEREZ="DeRez"
27707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27708 break 2
27709 fi
27710done
27711done
27712
27713 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27714fi
27715fi
27716DEREZ=$ac_cv_prog_DEREZ
27717if test -n "$DEREZ"; then
27718 echo "$as_me:$LINENO: result: $DEREZ" >&5
27719echo "${ECHO_T}$DEREZ" >&6
27720else
27721 echo "$as_me:$LINENO: result: no" >&5
27722echo "${ECHO_T}no" >&6
27723fi
27724
27725 # Extract the first word of "SetFile", so it can be a program name with args.
27726set dummy SetFile; ac_word=$2
27727echo "$as_me:$LINENO: checking for $ac_word" >&5
27728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27729if test "${ac_cv_prog_SETFILE+set}" = set; then
27730 echo $ECHO_N "(cached) $ECHO_C" >&6
27731else
27732 if test -n "$SETFILE"; then
27733 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27734else
27735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27736for as_dir in $PATH
27737do
27738 IFS=$as_save_IFS
27739 test -z "$as_dir" && as_dir=.
27740 for ac_exec_ext in '' $ac_executable_extensions; do
27741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27742 ac_cv_prog_SETFILE="SetFile"
27743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27744 break 2
27745 fi
27746done
27747done
27748
27749 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27750fi
27751fi
27752SETFILE=$ac_cv_prog_SETFILE
27753if test -n "$SETFILE"; then
27754 echo "$as_me:$LINENO: result: $SETFILE" >&5
27755echo "${ECHO_T}$SETFILE" >&6
27756else
27757 echo "$as_me:$LINENO: result: no" >&5
27758echo "${ECHO_T}no" >&6
27759fi
27760
27761
27762 MACSETFILE="\$(SETFILE)"
27763
27764 if test "$wxUSE_MAC" = 1; then
27765 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27766
27767 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27768 else
27769 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27770 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27771 fi
27772else
27773 MACSETFILE="@#"
27774 MACRESWXCONFIG="#"
27775
27776 if test "$wxUSE_PM" = 1; then
27777 MACRESCOMP="emxbind -ep"
27778 else
27779 MACRESCOMP="@#"
27780 fi
27781fi
27782
27783
27784
27785echo "$as_me:$LINENO: checking for mode_t" >&5
27786echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27787if test "${ac_cv_type_mode_t+set}" = set; then
27788 echo $ECHO_N "(cached) $ECHO_C" >&6
27789else
27790 cat >conftest.$ac_ext <<_ACEOF
27791/* confdefs.h. */
27792_ACEOF
27793cat confdefs.h >>conftest.$ac_ext
27794cat >>conftest.$ac_ext <<_ACEOF
27795/* end confdefs.h. */
27796$ac_includes_default
27797int
27798main ()
27799{
27800if ((mode_t *) 0)
27801 return 0;
27802if (sizeof (mode_t))
27803 return 0;
27804 ;
27805 return 0;
27806}
27807_ACEOF
27808rm -f conftest.$ac_objext
27809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27810 (eval $ac_compile) 2>conftest.er1
a848cd7e 27811 ac_status=$?
ac1cb8d3
VS
27812 grep -v '^ *+' conftest.er1 >conftest.err
27813 rm -f conftest.er1
27814 cat conftest.err >&5
a848cd7e
SC
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); } &&
224bf05c 27817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27819 (eval $ac_try) 2>&5
27820 ac_status=$?
27821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822 (exit $ac_status); }; } &&
27823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27825 (eval $ac_try) 2>&5
27826 ac_status=$?
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); }; }; then
27829 ac_cv_type_mode_t=yes
27830else
27831 echo "$as_me: failed program was:" >&5
27832sed 's/^/| /' conftest.$ac_ext >&5
27833
27834ac_cv_type_mode_t=no
27835fi
ac1cb8d3 27836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27837fi
27838echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27839echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27840if test $ac_cv_type_mode_t = yes; then
27841 :
27842else
27843
27844cat >>confdefs.h <<_ACEOF
27845#define mode_t int
27846_ACEOF
27847
27848fi
27849
27850echo "$as_me:$LINENO: checking for off_t" >&5
27851echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27852if test "${ac_cv_type_off_t+set}" = set; then
27853 echo $ECHO_N "(cached) $ECHO_C" >&6
27854else
27855 cat >conftest.$ac_ext <<_ACEOF
27856/* confdefs.h. */
27857_ACEOF
27858cat confdefs.h >>conftest.$ac_ext
27859cat >>conftest.$ac_ext <<_ACEOF
27860/* end confdefs.h. */
27861$ac_includes_default
27862int
27863main ()
27864{
27865if ((off_t *) 0)
27866 return 0;
27867if (sizeof (off_t))
27868 return 0;
27869 ;
27870 return 0;
27871}
27872_ACEOF
27873rm -f conftest.$ac_objext
27874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27875 (eval $ac_compile) 2>conftest.er1
a848cd7e 27876 ac_status=$?
ac1cb8d3
VS
27877 grep -v '^ *+' conftest.er1 >conftest.err
27878 rm -f conftest.er1
27879 cat conftest.err >&5
a848cd7e
SC
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } &&
224bf05c 27882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27884 (eval $ac_try) 2>&5
27885 ac_status=$?
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; } &&
27888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27890 (eval $ac_try) 2>&5
27891 ac_status=$?
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; }; then
27894 ac_cv_type_off_t=yes
27895else
27896 echo "$as_me: failed program was:" >&5
27897sed 's/^/| /' conftest.$ac_ext >&5
27898
27899ac_cv_type_off_t=no
27900fi
ac1cb8d3 27901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27902fi
27903echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27904echo "${ECHO_T}$ac_cv_type_off_t" >&6
27905if test $ac_cv_type_off_t = yes; then
27906 :
27907else
27908
27909cat >>confdefs.h <<_ACEOF
27910#define off_t long
27911_ACEOF
27912
27913fi
27914
27915echo "$as_me:$LINENO: checking for pid_t" >&5
27916echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27917if test "${ac_cv_type_pid_t+set}" = set; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
27919else
27920 cat >conftest.$ac_ext <<_ACEOF
27921/* confdefs.h. */
27922_ACEOF
27923cat confdefs.h >>conftest.$ac_ext
27924cat >>conftest.$ac_ext <<_ACEOF
27925/* end confdefs.h. */
27926$ac_includes_default
27927int
27928main ()
27929{
27930if ((pid_t *) 0)
27931 return 0;
27932if (sizeof (pid_t))
27933 return 0;
27934 ;
27935 return 0;
27936}
27937_ACEOF
27938rm -f conftest.$ac_objext
27939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27940 (eval $ac_compile) 2>conftest.er1
a848cd7e 27941 ac_status=$?
ac1cb8d3
VS
27942 grep -v '^ *+' conftest.er1 >conftest.err
27943 rm -f conftest.er1
27944 cat conftest.err >&5
a848cd7e
SC
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } &&
224bf05c 27947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949 (eval $ac_try) 2>&5
27950 ac_status=$?
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); }; } &&
27953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27955 (eval $ac_try) 2>&5
27956 ac_status=$?
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); }; }; then
27959 ac_cv_type_pid_t=yes
27960else
27961 echo "$as_me: failed program was:" >&5
27962sed 's/^/| /' conftest.$ac_ext >&5
27963
27964ac_cv_type_pid_t=no
27965fi
ac1cb8d3 27966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27967fi
27968echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27969echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27970if test $ac_cv_type_pid_t = yes; then
27971 :
27972else
27973
27974cat >>confdefs.h <<_ACEOF
27975#define pid_t int
27976_ACEOF
27977
27978fi
27979
27980echo "$as_me:$LINENO: checking for size_t" >&5
27981echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27982if test "${ac_cv_type_size_t+set}" = set; then
27983 echo $ECHO_N "(cached) $ECHO_C" >&6
27984else
27985 cat >conftest.$ac_ext <<_ACEOF
27986/* confdefs.h. */
27987_ACEOF
27988cat confdefs.h >>conftest.$ac_ext
27989cat >>conftest.$ac_ext <<_ACEOF
27990/* end confdefs.h. */
27991$ac_includes_default
27992int
27993main ()
27994{
27995if ((size_t *) 0)
27996 return 0;
27997if (sizeof (size_t))
27998 return 0;
27999 ;
28000 return 0;
28001}
28002_ACEOF
28003rm -f conftest.$ac_objext
28004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28005 (eval $ac_compile) 2>conftest.er1
a848cd7e 28006 ac_status=$?
ac1cb8d3
VS
28007 grep -v '^ *+' conftest.er1 >conftest.err
28008 rm -f conftest.er1
28009 cat conftest.err >&5
a848cd7e
SC
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } &&
224bf05c 28012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014 (eval $ac_try) 2>&5
28015 ac_status=$?
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); }; } &&
28018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020 (eval $ac_try) 2>&5
28021 ac_status=$?
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); }; }; then
28024 ac_cv_type_size_t=yes
28025else
28026 echo "$as_me: failed program was:" >&5
28027sed 's/^/| /' conftest.$ac_ext >&5
28028
28029ac_cv_type_size_t=no
28030fi
ac1cb8d3 28031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28032fi
28033echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28034echo "${ECHO_T}$ac_cv_type_size_t" >&6
28035if test $ac_cv_type_size_t = yes; then
28036 :
28037else
28038
28039cat >>confdefs.h <<_ACEOF
28040#define size_t unsigned
28041_ACEOF
28042
28043fi
28044
28045echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28046echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28047if test "${ac_cv_type_uid_t+set}" = set; then
28048 echo $ECHO_N "(cached) $ECHO_C" >&6
28049else
28050 cat >conftest.$ac_ext <<_ACEOF
28051/* confdefs.h. */
28052_ACEOF
28053cat confdefs.h >>conftest.$ac_ext
28054cat >>conftest.$ac_ext <<_ACEOF
28055/* end confdefs.h. */
28056#include <sys/types.h>
28057
28058_ACEOF
28059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28060 $EGREP "uid_t" >/dev/null 2>&1; then
28061 ac_cv_type_uid_t=yes
28062else
28063 ac_cv_type_uid_t=no
28064fi
28065rm -f conftest*
28066
28067fi
28068echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28069echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28070if test $ac_cv_type_uid_t = no; then
28071
28072cat >>confdefs.h <<\_ACEOF
28073#define uid_t int
28074_ACEOF
28075
28076
28077cat >>confdefs.h <<\_ACEOF
28078#define gid_t int
28079_ACEOF
28080
28081fi
28082
28083
28084
28085
28086ac_ext=cc
28087ac_cpp='$CXXCPP $CPPFLAGS'
28088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28091
28092echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28093echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28094if test "${wx_cv_size_t_is_uint+set}" = set; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
28096else
28097
28098 cat >conftest.$ac_ext <<_ACEOF
28099/* confdefs.h. */
28100_ACEOF
28101cat confdefs.h >>conftest.$ac_ext
28102cat >>conftest.$ac_ext <<_ACEOF
28103/* end confdefs.h. */
28104#include <stddef.h>
28105int
28106main ()
28107{
28108
28109 return 0; }
28110
28111 struct Foo { void foo(size_t); void foo(unsigned int); };
28112
28113 int bar() {
28114
28115 ;
28116 return 0;
28117}
28118_ACEOF
28119rm -f conftest.$ac_objext
28120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28121 (eval $ac_compile) 2>conftest.er1
a848cd7e 28122 ac_status=$?
ac1cb8d3
VS
28123 grep -v '^ *+' conftest.er1 >conftest.err
28124 rm -f conftest.er1
28125 cat conftest.err >&5
a848cd7e
SC
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); } &&
224bf05c 28128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28131 ac_status=$?
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; } &&
28134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 wx_cv_size_t_is_uint=no
28141else
28142 echo "$as_me: failed program was:" >&5
28143sed 's/^/| /' conftest.$ac_ext >&5
28144
28145wx_cv_size_t_is_uint=yes
28146
28147fi
ac1cb8d3 28148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28149
28150
28151fi
28152echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28153echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28154
28155if test "$wx_cv_size_t_is_uint" = "yes"; then
28156 cat >>confdefs.h <<\_ACEOF
28157#define wxSIZE_T_IS_UINT 1
28158_ACEOF
28159
28160else
28161 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28162echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28163if test "${wx_cv_size_t_is_ulong+set}" = set; then
28164 echo $ECHO_N "(cached) $ECHO_C" >&6
28165else
28166 cat >conftest.$ac_ext <<_ACEOF
28167/* confdefs.h. */
28168_ACEOF
28169cat confdefs.h >>conftest.$ac_ext
28170cat >>conftest.$ac_ext <<_ACEOF
28171/* end confdefs.h. */
28172#include <stddef.h>
28173int
28174main ()
28175{
28176
28177 return 0; }
28178
28179 struct Foo { void foo(size_t); void foo(unsigned long); };
28180
28181 int bar() {
28182
28183 ;
28184 return 0;
28185}
28186_ACEOF
28187rm -f conftest.$ac_objext
28188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28189 (eval $ac_compile) 2>conftest.er1
a848cd7e 28190 ac_status=$?
ac1cb8d3
VS
28191 grep -v '^ *+' conftest.er1 >conftest.err
28192 rm -f conftest.er1
28193 cat conftest.err >&5
a848cd7e
SC
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); } &&
224bf05c 28196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
28202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204 (eval $ac_try) 2>&5
28205 ac_status=$?
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; }; then
28208 wx_cv_size_t_is_ulong=no
28209else
28210 echo "$as_me: failed program was:" >&5
28211sed 's/^/| /' conftest.$ac_ext >&5
28212
28213wx_cv_size_t_is_ulong=yes
28214
28215fi
ac1cb8d3 28216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28217
28218fi
28219echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28220echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28221
28222 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28223 cat >>confdefs.h <<\_ACEOF
28224#define wxSIZE_T_IS_ULONG 1
28225_ACEOF
28226
28227 fi
28228fi
28229
28230ac_ext=c
28231ac_cpp='$CPP $CPPFLAGS'
28232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28234ac_compiler_gnu=$ac_cv_c_compiler_gnu
28235
28236
28237
28238echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28239echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28240if test "${wx_cv_struct_pw_gecos+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28242else
28243
28244 cat >conftest.$ac_ext <<_ACEOF
28245/* confdefs.h. */
28246_ACEOF
28247cat confdefs.h >>conftest.$ac_ext
28248cat >>conftest.$ac_ext <<_ACEOF
28249/* end confdefs.h. */
28250#include <pwd.h>
28251int
28252main ()
28253{
28254
28255 char *p;
28256 struct passwd *pw;
28257 p = pw->pw_gecos;
28258
28259 ;
28260 return 0;
28261}
28262_ACEOF
28263rm -f conftest.$ac_objext
28264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28265 (eval $ac_compile) 2>conftest.er1
a848cd7e 28266 ac_status=$?
ac1cb8d3
VS
28267 grep -v '^ *+' conftest.er1 >conftest.err
28268 rm -f conftest.er1
28269 cat conftest.err >&5
a848cd7e
SC
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); } &&
224bf05c 28272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28274 (eval $ac_try) 2>&5
28275 ac_status=$?
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); }; } &&
28278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280 (eval $ac_try) 2>&5
28281 ac_status=$?
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); }; }; then
28284
28285 wx_cv_struct_pw_gecos=yes
28286
28287else
28288 echo "$as_me: failed program was:" >&5
28289sed 's/^/| /' conftest.$ac_ext >&5
28290
28291
28292 wx_cv_struct_pw_gecos=no
28293
28294
28295fi
ac1cb8d3 28296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28297
28298
28299fi
28300echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28301echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28302
28303if test "$wx_cv_struct_pw_gecos" = "yes"; then
28304 cat >>confdefs.h <<\_ACEOF
28305#define HAVE_PW_GECOS 1
28306_ACEOF
28307
28308fi
28309
28310
28311if test "$wx_cv_sizeof_wchar_t" != "0"; then
28312 cat >>confdefs.h <<\_ACEOF
28313#define wxUSE_WCHAR_T 1
28314_ACEOF
28315
28316
28317 WCSLEN_FOUND=0
28318 WCHAR_LINK=
28319
28320for ac_func in wcslen
28321do
28322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28323echo "$as_me:$LINENO: checking for $ac_func" >&5
28324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28325if eval "test \"\${$as_ac_var+set}\" = set"; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327else
28328 cat >conftest.$ac_ext <<_ACEOF
28329/* confdefs.h. */
28330_ACEOF
28331cat confdefs.h >>conftest.$ac_ext
28332cat >>conftest.$ac_ext <<_ACEOF
28333/* end confdefs.h. */
ac1cb8d3
VS
28334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28336#define $ac_func innocuous_$ac_func
28337
a848cd7e
SC
28338/* System header to define __stub macros and hopefully few prototypes,
28339 which can conflict with char $ac_func (); below.
28340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28341 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28342
a848cd7e
SC
28343#ifdef __STDC__
28344# include <limits.h>
28345#else
28346# include <assert.h>
28347#endif
ac1cb8d3
VS
28348
28349#undef $ac_func
28350
a848cd7e
SC
28351/* Override any gcc2 internal prototype to avoid an error. */
28352#ifdef __cplusplus
28353extern "C"
28354{
28355#endif
28356/* We use char because int might match the return type of a gcc2
28357 builtin and then its argument prototype would still apply. */
28358char $ac_func ();
28359/* The GNU C library defines this for functions which it implements
28360 to always fail with ENOSYS. Some functions are actually named
28361 something starting with __ and the normal name is an alias. */
28362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28363choke me
28364#else
28365char (*f) () = $ac_func;
28366#endif
28367#ifdef __cplusplus
28368}
28369#endif
28370
28371int
28372main ()
28373{
28374return f != $ac_func;
28375 ;
28376 return 0;
28377}
28378_ACEOF
28379rm -f conftest.$ac_objext conftest$ac_exeext
28380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28381 (eval $ac_link) 2>conftest.er1
a848cd7e 28382 ac_status=$?
ac1cb8d3
VS
28383 grep -v '^ *+' conftest.er1 >conftest.err
28384 rm -f conftest.er1
28385 cat conftest.err >&5
a848cd7e
SC
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
224bf05c 28388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28391 ac_status=$?
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; } &&
28394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 eval "$as_ac_var=yes"
28401else
28402 echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405eval "$as_ac_var=no"
28406fi
ac1cb8d3
VS
28407rm -f conftest.err conftest.$ac_objext \
28408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28409fi
28410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28412if test `eval echo '${'$as_ac_var'}'` = yes; then
28413 cat >>confdefs.h <<_ACEOF
28414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28415_ACEOF
28416 WCSLEN_FOUND=1
28417fi
28418done
28419
28420
28421 if test "$WCSLEN_FOUND" = 0; then
28422 if test "$TOOLKIT" = "MSW"; then
28423 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28424echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28425if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28426 echo $ECHO_N "(cached) $ECHO_C" >&6
28427else
28428 ac_check_lib_save_LIBS=$LIBS
28429LIBS="-lmsvcrt $LIBS"
28430cat >conftest.$ac_ext <<_ACEOF
28431/* confdefs.h. */
28432_ACEOF
28433cat confdefs.h >>conftest.$ac_ext
28434cat >>conftest.$ac_ext <<_ACEOF
28435/* end confdefs.h. */
28436
28437/* Override any gcc2 internal prototype to avoid an error. */
28438#ifdef __cplusplus
28439extern "C"
28440#endif
28441/* We use char because int might match the return type of a gcc2
28442 builtin and then its argument prototype would still apply. */
28443char wcslen ();
28444int
28445main ()
28446{
28447wcslen ();
28448 ;
28449 return 0;
28450}
28451_ACEOF
28452rm -f conftest.$ac_objext conftest$ac_exeext
28453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28454 (eval $ac_link) 2>conftest.er1
a848cd7e 28455 ac_status=$?
ac1cb8d3
VS
28456 grep -v '^ *+' conftest.er1 >conftest.err
28457 rm -f conftest.er1
28458 cat conftest.err >&5
a848cd7e
SC
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } &&
224bf05c 28461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28464 ac_status=$?
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; } &&
28467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469 (eval $ac_try) 2>&5
28470 ac_status=$?
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); }; }; then
28473 ac_cv_lib_msvcrt_wcslen=yes
28474else
28475 echo "$as_me: failed program was:" >&5
28476sed 's/^/| /' conftest.$ac_ext >&5
28477
28478ac_cv_lib_msvcrt_wcslen=no
28479fi
ac1cb8d3
VS
28480rm -f conftest.err conftest.$ac_objext \
28481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28482LIBS=$ac_check_lib_save_LIBS
28483fi
28484echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28485echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28486if test $ac_cv_lib_msvcrt_wcslen = yes; then
28487 WCHAR_OK=1
28488fi
28489
28490 else
28491 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28492echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28493if test "${ac_cv_lib_w_wcslen+set}" = set; then
28494 echo $ECHO_N "(cached) $ECHO_C" >&6
28495else
28496 ac_check_lib_save_LIBS=$LIBS
28497LIBS="-lw $LIBS"
28498cat >conftest.$ac_ext <<_ACEOF
28499/* confdefs.h. */
28500_ACEOF
28501cat confdefs.h >>conftest.$ac_ext
28502cat >>conftest.$ac_ext <<_ACEOF
28503/* end confdefs.h. */
28504
28505/* Override any gcc2 internal prototype to avoid an error. */
28506#ifdef __cplusplus
28507extern "C"
28508#endif
28509/* We use char because int might match the return type of a gcc2
28510 builtin and then its argument prototype would still apply. */
28511char wcslen ();
28512int
28513main ()
28514{
28515wcslen ();
28516 ;
28517 return 0;
28518}
28519_ACEOF
28520rm -f conftest.$ac_objext conftest$ac_exeext
28521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28522 (eval $ac_link) 2>conftest.er1
a848cd7e 28523 ac_status=$?
ac1cb8d3
VS
28524 grep -v '^ *+' conftest.er1 >conftest.err
28525 rm -f conftest.er1
28526 cat conftest.err >&5
a848cd7e
SC
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); } &&
224bf05c 28529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28532 ac_status=$?
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; } &&
28535 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28538 ac_status=$?
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; }; then
28541 ac_cv_lib_w_wcslen=yes
28542else
28543 echo "$as_me: failed program was:" >&5
28544sed 's/^/| /' conftest.$ac_ext >&5
28545
28546ac_cv_lib_w_wcslen=no
28547fi
ac1cb8d3
VS
28548rm -f conftest.err conftest.$ac_objext \
28549 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28550LIBS=$ac_check_lib_save_LIBS
28551fi
28552echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28553echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28554if test $ac_cv_lib_w_wcslen = yes; then
28555
28556 WCHAR_LINK=" -lw"
28557 WCSLEN_FOUND=1
28558
28559fi
28560
28561 fi
28562 fi
28563
28564 if test "$WCSLEN_FOUND" = 1; then
28565 cat >>confdefs.h <<\_ACEOF
28566#define HAVE_WCSLEN 1
28567_ACEOF
28568
28569 fi
28570
473276a9
VS
28571 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28572 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28573 fi
28574
a848cd7e
SC
28575
28576for ac_func in wcsrtombs
28577do
28578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28579echo "$as_me:$LINENO: checking for $ac_func" >&5
28580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28581if eval "test \"\${$as_ac_var+set}\" = set"; then
28582 echo $ECHO_N "(cached) $ECHO_C" >&6
28583else
28584 cat >conftest.$ac_ext <<_ACEOF
28585/* confdefs.h. */
28586_ACEOF
28587cat confdefs.h >>conftest.$ac_ext
28588cat >>conftest.$ac_ext <<_ACEOF
28589/* end confdefs.h. */
ac1cb8d3
VS
28590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28592#define $ac_func innocuous_$ac_func
28593
a848cd7e
SC
28594/* System header to define __stub macros and hopefully few prototypes,
28595 which can conflict with char $ac_func (); below.
28596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28597 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28598
a848cd7e
SC
28599#ifdef __STDC__
28600# include <limits.h>
28601#else
28602# include <assert.h>
28603#endif
ac1cb8d3
VS
28604
28605#undef $ac_func
28606
a848cd7e
SC
28607/* Override any gcc2 internal prototype to avoid an error. */
28608#ifdef __cplusplus
28609extern "C"
28610{
28611#endif
28612/* We use char because int might match the return type of a gcc2
28613 builtin and then its argument prototype would still apply. */
28614char $ac_func ();
28615/* The GNU C library defines this for functions which it implements
28616 to always fail with ENOSYS. Some functions are actually named
28617 something starting with __ and the normal name is an alias. */
28618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28619choke me
28620#else
28621char (*f) () = $ac_func;
28622#endif
28623#ifdef __cplusplus
28624}
28625#endif
28626
28627int
28628main ()
28629{
28630return f != $ac_func;
28631 ;
28632 return 0;
28633}
28634_ACEOF
28635rm -f conftest.$ac_objext conftest$ac_exeext
28636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28637 (eval $ac_link) 2>conftest.er1
a848cd7e 28638 ac_status=$?
ac1cb8d3
VS
28639 grep -v '^ *+' conftest.er1 >conftest.err
28640 rm -f conftest.er1
28641 cat conftest.err >&5
a848cd7e
SC
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); } &&
224bf05c 28644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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 eval "$as_ac_var=yes"
28657else
28658 echo "$as_me: failed program was:" >&5
28659sed 's/^/| /' conftest.$ac_ext >&5
28660
28661eval "$as_ac_var=no"
28662fi
ac1cb8d3
VS
28663rm -f conftest.err conftest.$ac_objext \
28664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28665fi
28666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28667echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28668if test `eval echo '${'$as_ac_var'}'` = yes; then
28669 cat >>confdefs.h <<_ACEOF
28670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28671_ACEOF
28672
28673fi
28674done
28675
28676else
28677 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28678echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28679fi
28680
28681
28682
28683ac_ext=cc
28684ac_cpp='$CXXCPP $CPPFLAGS'
28685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28688
28689
28690
28691for ac_func in vsnprintf
28692do
28693as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28694echo "$as_me:$LINENO: checking for $ac_func" >&5
28695echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28696if eval "test \"\${$as_ac_var+set}\" = set"; then
28697 echo $ECHO_N "(cached) $ECHO_C" >&6
28698else
28699 cat >conftest.$ac_ext <<_ACEOF
28700/* confdefs.h. */
28701_ACEOF
28702cat confdefs.h >>conftest.$ac_ext
28703cat >>conftest.$ac_ext <<_ACEOF
28704/* end confdefs.h. */
ac1cb8d3
VS
28705/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28707#define $ac_func innocuous_$ac_func
28708
a848cd7e
SC
28709/* System header to define __stub macros and hopefully few prototypes,
28710 which can conflict with char $ac_func (); below.
28711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28712 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28713
a848cd7e
SC
28714#ifdef __STDC__
28715# include <limits.h>
28716#else
28717# include <assert.h>
28718#endif
ac1cb8d3
VS
28719
28720#undef $ac_func
28721
a848cd7e
SC
28722/* Override any gcc2 internal prototype to avoid an error. */
28723#ifdef __cplusplus
28724extern "C"
28725{
28726#endif
28727/* We use char because int might match the return type of a gcc2
28728 builtin and then its argument prototype would still apply. */
28729char $ac_func ();
28730/* The GNU C library defines this for functions which it implements
28731 to always fail with ENOSYS. Some functions are actually named
28732 something starting with __ and the normal name is an alias. */
28733#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28734choke me
28735#else
28736char (*f) () = $ac_func;
28737#endif
28738#ifdef __cplusplus
28739}
28740#endif
28741
28742int
28743main ()
28744{
28745return f != $ac_func;
28746 ;
28747 return 0;
28748}
28749_ACEOF
28750rm -f conftest.$ac_objext conftest$ac_exeext
28751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28752 (eval $ac_link) 2>conftest.er1
a848cd7e 28753 ac_status=$?
ac1cb8d3
VS
28754 grep -v '^ *+' conftest.er1 >conftest.err
28755 rm -f conftest.er1
28756 cat conftest.err >&5
a848cd7e
SC
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); } &&
224bf05c 28759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28761 (eval $ac_try) 2>&5
28762 ac_status=$?
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); }; } &&
28765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767 (eval $ac_try) 2>&5
28768 ac_status=$?
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); }; }; then
28771 eval "$as_ac_var=yes"
28772else
28773 echo "$as_me: failed program was:" >&5
28774sed 's/^/| /' conftest.$ac_ext >&5
28775
28776eval "$as_ac_var=no"
28777fi
ac1cb8d3
VS
28778rm -f conftest.err conftest.$ac_objext \
28779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28780fi
28781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28782echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28783if test `eval echo '${'$as_ac_var'}'` = yes; then
28784 cat >>confdefs.h <<_ACEOF
28785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28786_ACEOF
28787
28788fi
28789done
28790
28791
28792if test "$ac_cv_func_vsnprintf" = "yes"; then
28793 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28794echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28795if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28796 echo $ECHO_N "(cached) $ECHO_C" >&6
28797else
28798
28799 cat >conftest.$ac_ext <<_ACEOF
28800/* confdefs.h. */
28801_ACEOF
28802cat confdefs.h >>conftest.$ac_ext
28803cat >>conftest.$ac_ext <<_ACEOF
28804/* end confdefs.h. */
28805
28806 #include <stdio.h>
28807 #include <stdarg.h>
28808
28809int
28810main ()
28811{
28812
28813 char *buf;
28814 va_list ap;
28815 vsnprintf(buf, 10u, "%s", ap);
28816
28817 ;
28818 return 0;
28819}
28820_ACEOF
28821rm -f conftest.$ac_objext
28822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28823 (eval $ac_compile) 2>conftest.er1
a848cd7e 28824 ac_status=$?
ac1cb8d3
VS
28825 grep -v '^ *+' conftest.er1 >conftest.err
28826 rm -f conftest.er1
28827 cat conftest.err >&5
a848cd7e
SC
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } &&
224bf05c 28830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28832 (eval $ac_try) 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; } &&
28836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28838 (eval $ac_try) 2>&5
28839 ac_status=$?
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); }; }; then
28842 wx_cv_func_vsnprintf_decl=yes
28843else
28844 echo "$as_me: failed program was:" >&5
28845sed 's/^/| /' conftest.$ac_ext >&5
28846
28847wx_cv_func_vsnprintf_decl=no
28848
28849fi
ac1cb8d3 28850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28851
28852
28853fi
28854echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28855echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
28856
28857 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
28858 cat >>confdefs.h <<\_ACEOF
28859#define HAVE_VSNPRINTF_DECL 1
28860_ACEOF
28861
28862 fi
28863fi
28864
28865if test "$wxUSE_UNICODE" = yes; then
28866
28867
28868
fbe47c7b
VS
28869
28870
28871
28872for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
28873do
28874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28875echo "$as_me:$LINENO: checking for $ac_func" >&5
28876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28877if eval "test \"\${$as_ac_var+set}\" = set"; then
28878 echo $ECHO_N "(cached) $ECHO_C" >&6
28879else
28880 cat >conftest.$ac_ext <<_ACEOF
28881/* confdefs.h. */
28882_ACEOF
28883cat confdefs.h >>conftest.$ac_ext
28884cat >>conftest.$ac_ext <<_ACEOF
28885/* end confdefs.h. */
ac1cb8d3
VS
28886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28888#define $ac_func innocuous_$ac_func
28889
a848cd7e
SC
28890/* System header to define __stub macros and hopefully few prototypes,
28891 which can conflict with char $ac_func (); below.
28892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28893 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28894
a848cd7e
SC
28895#ifdef __STDC__
28896# include <limits.h>
28897#else
28898# include <assert.h>
28899#endif
ac1cb8d3
VS
28900
28901#undef $ac_func
28902
a848cd7e
SC
28903/* Override any gcc2 internal prototype to avoid an error. */
28904#ifdef __cplusplus
28905extern "C"
28906{
28907#endif
28908/* We use char because int might match the return type of a gcc2
28909 builtin and then its argument prototype would still apply. */
28910char $ac_func ();
28911/* The GNU C library defines this for functions which it implements
28912 to always fail with ENOSYS. Some functions are actually named
28913 something starting with __ and the normal name is an alias. */
28914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28915choke me
28916#else
28917char (*f) () = $ac_func;
28918#endif
28919#ifdef __cplusplus
28920}
28921#endif
28922
28923int
28924main ()
28925{
28926return f != $ac_func;
28927 ;
28928 return 0;
28929}
28930_ACEOF
28931rm -f conftest.$ac_objext conftest$ac_exeext
28932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28933 (eval $ac_link) 2>conftest.er1
a848cd7e 28934 ac_status=$?
ac1cb8d3
VS
28935 grep -v '^ *+' conftest.er1 >conftest.err
28936 rm -f conftest.er1
28937 cat conftest.err >&5
a848cd7e
SC
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
224bf05c 28940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; }; then
28952 eval "$as_ac_var=yes"
28953else
28954 echo "$as_me: failed program was:" >&5
28955sed 's/^/| /' conftest.$ac_ext >&5
28956
28957eval "$as_ac_var=no"
28958fi
ac1cb8d3
VS
28959rm -f conftest.err conftest.$ac_objext \
28960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28961fi
28962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28964if test `eval echo '${'$as_ac_var'}'` = yes; then
28965 cat >>confdefs.h <<_ACEOF
28966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28967_ACEOF
28968
28969fi
28970done
28971
28972
28973 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28974echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28975 cat >conftest.$ac_ext <<_ACEOF
28976/* confdefs.h. */
28977_ACEOF
28978cat confdefs.h >>conftest.$ac_ext
28979cat >>conftest.$ac_ext <<_ACEOF
28980/* end confdefs.h. */
28981#include <wchar.h>
28982int
28983main ()
28984{
28985&_vsnwprintf;
28986 ;
28987 return 0;
28988}
28989_ACEOF
28990rm -f conftest.$ac_objext
28991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28992 (eval $ac_compile) 2>conftest.er1
a848cd7e 28993 ac_status=$?
ac1cb8d3
VS
28994 grep -v '^ *+' conftest.er1 >conftest.err
28995 rm -f conftest.er1
28996 cat conftest.err >&5
a848cd7e
SC
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } &&
224bf05c 28999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29001 (eval $ac_try) 2>&5
29002 ac_status=$?
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); }; } &&
29005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29007 (eval $ac_try) 2>&5
29008 ac_status=$?
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); }; }; then
29011 echo "$as_me:$LINENO: result: yes" >&5
29012echo "${ECHO_T}yes" >&6
29013 cat >>confdefs.h <<\_ACEOF
29014#define HAVE__VSNWPRINTF 1
29015_ACEOF
29016
29017else
29018 echo "$as_me: failed program was:" >&5
29019sed 's/^/| /' conftest.$ac_ext >&5
29020
29021echo "$as_me:$LINENO: result: no" >&5
29022echo "${ECHO_T}no" >&6
29023fi
ac1cb8d3 29024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29025fi
29026
29027ac_ext=c
29028ac_cpp='$CPP $CPPFLAGS'
29029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29031ac_compiler_gnu=$ac_cv_c_compiler_gnu
29032
29033
29034
29035
29036if test "$TOOLKIT" != "MSW"; then
29037
29038
29039
29040
29041ac_ext=cc
29042ac_cpp='$CXXCPP $CPPFLAGS'
29043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29046
29047
29048
29049
29050# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29051if test "${with_libiconv_prefix+set}" = set; then
29052 withval="$with_libiconv_prefix"
29053
29054 for dir in `echo "$withval" | tr : ' '`; do
29055 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29056 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29057 done
29058
29059fi;
29060
29061 echo "$as_me:$LINENO: checking for iconv" >&5
29062echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29063if test "${am_cv_func_iconv+set}" = set; then
29064 echo $ECHO_N "(cached) $ECHO_C" >&6
29065else
29066
29067 am_cv_func_iconv="no, consider installing GNU libiconv"
29068 am_cv_lib_iconv=no
29069 cat >conftest.$ac_ext <<_ACEOF
29070/* confdefs.h. */
29071_ACEOF
29072cat confdefs.h >>conftest.$ac_ext
29073cat >>conftest.$ac_ext <<_ACEOF
29074/* end confdefs.h. */
29075#include <stdlib.h>
29076#include <iconv.h>
29077int
29078main ()
29079{
29080iconv_t cd = iconv_open("","");
29081 iconv(cd,NULL,NULL,NULL,NULL);
29082 iconv_close(cd);
29083 ;
29084 return 0;
29085}
29086_ACEOF
29087rm -f conftest.$ac_objext conftest$ac_exeext
29088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29089 (eval $ac_link) 2>conftest.er1
a848cd7e 29090 ac_status=$?
ac1cb8d3
VS
29091 grep -v '^ *+' conftest.er1 >conftest.err
29092 rm -f conftest.er1
29093 cat conftest.err >&5
a848cd7e
SC
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } &&
224bf05c 29096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29099 ac_status=$?
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; } &&
29102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29104 (eval $ac_try) 2>&5
29105 ac_status=$?
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); }; }; then
29108 am_cv_func_iconv=yes
29109else
29110 echo "$as_me: failed program was:" >&5
29111sed 's/^/| /' conftest.$ac_ext >&5
29112
29113fi
ac1cb8d3
VS
29114rm -f conftest.err conftest.$ac_objext \
29115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29116 if test "$am_cv_func_iconv" != yes; then
29117 am_save_LIBS="$LIBS"
29118 LIBS="$LIBS -liconv"
29119 cat >conftest.$ac_ext <<_ACEOF
29120/* confdefs.h. */
29121_ACEOF
29122cat confdefs.h >>conftest.$ac_ext
29123cat >>conftest.$ac_ext <<_ACEOF
29124/* end confdefs.h. */
29125#include <stdlib.h>
29126#include <iconv.h>
29127int
29128main ()
29129{
29130iconv_t cd = iconv_open("","");
29131 iconv(cd,NULL,NULL,NULL,NULL);
29132 iconv_close(cd);
29133 ;
29134 return 0;
29135}
29136_ACEOF
29137rm -f conftest.$ac_objext conftest$ac_exeext
29138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29139 (eval $ac_link) 2>conftest.er1
a848cd7e 29140 ac_status=$?
ac1cb8d3
VS
29141 grep -v '^ *+' conftest.er1 >conftest.err
29142 rm -f conftest.er1
29143 cat conftest.err >&5
a848cd7e
SC
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); } &&
224bf05c 29146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148 (eval $ac_try) 2>&5
29149 ac_status=$?
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; } &&
29152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154 (eval $ac_try) 2>&5
29155 ac_status=$?
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; }; then
29158 am_cv_lib_iconv=yes
29159 am_cv_func_iconv=yes
29160else
29161 echo "$as_me: failed program was:" >&5
29162sed 's/^/| /' conftest.$ac_ext >&5
29163
29164fi
ac1cb8d3
VS
29165rm -f conftest.err conftest.$ac_objext \
29166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29167 LIBS="$am_save_LIBS"
29168 fi
29169
29170fi
29171echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29172echo "${ECHO_T}$am_cv_func_iconv" >&6
29173 if test "$am_cv_func_iconv" = yes; then
29174
29175cat >>confdefs.h <<\_ACEOF
29176#define HAVE_ICONV 1
29177_ACEOF
29178
29179 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29180echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29181if test "${wx_cv_func_iconv_const+set}" = set; then
29182 echo $ECHO_N "(cached) $ECHO_C" >&6
29183else
29184 cat >conftest.$ac_ext <<_ACEOF
29185/* confdefs.h. */
29186_ACEOF
29187cat confdefs.h >>conftest.$ac_ext
29188cat >>conftest.$ac_ext <<_ACEOF
29189/* end confdefs.h. */
29190
29191#include <stdlib.h>
29192#include <iconv.h>
29193extern
29194#ifdef __cplusplus
29195"C"
29196#endif
29197#if defined(__STDC__) || defined(__cplusplus)
29198size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29199#else
29200size_t iconv();
29201#endif
29202
29203int
29204main ()
29205{
29206
29207 ;
29208 return 0;
29209}
29210_ACEOF
29211rm -f conftest.$ac_objext
29212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29213 (eval $ac_compile) 2>conftest.er1
a848cd7e 29214 ac_status=$?
ac1cb8d3
VS
29215 grep -v '^ *+' conftest.er1 >conftest.err
29216 rm -f conftest.er1
29217 cat conftest.err >&5
a848cd7e
SC
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); } &&
224bf05c 29220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29222 (eval $ac_try) 2>&5
29223 ac_status=$?
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; } &&
29226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29228 (eval $ac_try) 2>&5
29229 ac_status=$?
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); }; }; then
29232 wx_cv_func_iconv_const="no"
29233else
29234 echo "$as_me: failed program was:" >&5
29235sed 's/^/| /' conftest.$ac_ext >&5
29236
29237wx_cv_func_iconv_const="yes"
29238
29239fi
ac1cb8d3 29240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29241
29242fi
29243echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29244echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29245
29246 iconv_const=
29247 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29248 iconv_const="const"
29249 fi
29250
29251
29252cat >>confdefs.h <<_ACEOF
29253#define ICONV_CONST $iconv_const
29254_ACEOF
29255
29256 fi
29257 LIBICONV=
29258 if test "$am_cv_lib_iconv" = yes; then
29259 LIBICONV="-liconv"
29260 fi
29261
29262
29263LIBS="$LIBICONV $LIBS"
29264ac_ext=c
29265ac_cpp='$CPP $CPPFLAGS'
29266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29268ac_compiler_gnu=$ac_cv_c_compiler_gnu
29269
29270
29271if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29272
29273for ac_func in sigaction
29274do
29275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29276echo "$as_me:$LINENO: checking for $ac_func" >&5
29277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29278if eval "test \"\${$as_ac_var+set}\" = set"; then
29279 echo $ECHO_N "(cached) $ECHO_C" >&6
29280else
29281 cat >conftest.$ac_ext <<_ACEOF
29282/* confdefs.h. */
29283_ACEOF
29284cat confdefs.h >>conftest.$ac_ext
29285cat >>conftest.$ac_ext <<_ACEOF
29286/* end confdefs.h. */
ac1cb8d3
VS
29287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29289#define $ac_func innocuous_$ac_func
29290
a848cd7e
SC
29291/* System header to define __stub macros and hopefully few prototypes,
29292 which can conflict with char $ac_func (); below.
29293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29294 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29295
a848cd7e
SC
29296#ifdef __STDC__
29297# include <limits.h>
29298#else
29299# include <assert.h>
29300#endif
ac1cb8d3
VS
29301
29302#undef $ac_func
29303
a848cd7e
SC
29304/* Override any gcc2 internal prototype to avoid an error. */
29305#ifdef __cplusplus
29306extern "C"
29307{
29308#endif
29309/* We use char because int might match the return type of a gcc2
29310 builtin and then its argument prototype would still apply. */
29311char $ac_func ();
29312/* The GNU C library defines this for functions which it implements
29313 to always fail with ENOSYS. Some functions are actually named
29314 something starting with __ and the normal name is an alias. */
29315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29316choke me
29317#else
29318char (*f) () = $ac_func;
29319#endif
29320#ifdef __cplusplus
29321}
29322#endif
29323
29324int
29325main ()
29326{
29327return f != $ac_func;
29328 ;
29329 return 0;
29330}
29331_ACEOF
29332rm -f conftest.$ac_objext conftest$ac_exeext
29333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29334 (eval $ac_link) 2>conftest.er1
a848cd7e 29335 ac_status=$?
ac1cb8d3
VS
29336 grep -v '^ *+' conftest.er1 >conftest.err
29337 rm -f conftest.er1
29338 cat conftest.err >&5
a848cd7e
SC
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } &&
224bf05c 29341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29344 ac_status=$?
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; } &&
29347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349 (eval $ac_try) 2>&5
29350 ac_status=$?
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; }; then
29353 eval "$as_ac_var=yes"
29354else
29355 echo "$as_me: failed program was:" >&5
29356sed 's/^/| /' conftest.$ac_ext >&5
29357
29358eval "$as_ac_var=no"
29359fi
ac1cb8d3
VS
29360rm -f conftest.err conftest.$ac_objext \
29361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29362fi
29363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29365if test `eval echo '${'$as_ac_var'}'` = yes; then
29366 cat >>confdefs.h <<_ACEOF
29367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29368_ACEOF
29369
29370fi
29371done
29372
29373
29374 if test "$ac_cv_func_sigaction" = "no"; then
29375 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29376echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29377 wxUSE_ON_FATAL_EXCEPTION=no
29378 fi
29379
29380 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29381
29382
29383 ac_ext=cc
29384ac_cpp='$CXXCPP $CPPFLAGS'
29385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29388
29389
29390 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29391echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29392if test "${wx_cv_type_sa_handler+set}" = set; then
29393 echo $ECHO_N "(cached) $ECHO_C" >&6
29394else
29395
29396 cat >conftest.$ac_ext <<_ACEOF
29397/* confdefs.h. */
29398_ACEOF
29399cat confdefs.h >>conftest.$ac_ext
29400cat >>conftest.$ac_ext <<_ACEOF
29401/* end confdefs.h. */
29402#include <signal.h>
29403int
29404main ()
29405{
29406
29407 extern void testSigHandler(int);
29408
29409 struct sigaction sa;
29410 sa.sa_handler = testSigHandler;
29411
29412 ;
29413 return 0;
29414}
29415_ACEOF
29416rm -f conftest.$ac_objext
29417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29418 (eval $ac_compile) 2>conftest.er1
a848cd7e 29419 ac_status=$?
ac1cb8d3
VS
29420 grep -v '^ *+' conftest.er1 >conftest.err
29421 rm -f conftest.er1
29422 cat conftest.err >&5
a848cd7e
SC
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); } &&
224bf05c 29425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427 (eval $ac_try) 2>&5
29428 ac_status=$?
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); }; } &&
29431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29434 ac_status=$?
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; }; then
29437
29438 wx_cv_type_sa_handler=int
29439
29440else
29441 echo "$as_me: failed program was:" >&5
29442sed 's/^/| /' conftest.$ac_ext >&5
29443
29444
29445 wx_cv_type_sa_handler=void
29446
29447fi
ac1cb8d3 29448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29449
29450fi
29451echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29452echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29453
29454 ac_ext=c
29455ac_cpp='$CPP $CPPFLAGS'
29456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458ac_compiler_gnu=$ac_cv_c_compiler_gnu
29459
29460
29461 cat >>confdefs.h <<_ACEOF
29462#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29463_ACEOF
29464
29465 fi
29466fi
29467
29468
29469
29470for ac_func in mkstemp mktemp
29471do
29472as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29473echo "$as_me:$LINENO: checking for $ac_func" >&5
29474echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29475if eval "test \"\${$as_ac_var+set}\" = set"; then
29476 echo $ECHO_N "(cached) $ECHO_C" >&6
29477else
29478 cat >conftest.$ac_ext <<_ACEOF
29479/* confdefs.h. */
29480_ACEOF
29481cat confdefs.h >>conftest.$ac_ext
29482cat >>conftest.$ac_ext <<_ACEOF
29483/* end confdefs.h. */
ac1cb8d3
VS
29484/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29486#define $ac_func innocuous_$ac_func
29487
a848cd7e
SC
29488/* System header to define __stub macros and hopefully few prototypes,
29489 which can conflict with char $ac_func (); below.
29490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29491 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29492
a848cd7e
SC
29493#ifdef __STDC__
29494# include <limits.h>
29495#else
29496# include <assert.h>
29497#endif
ac1cb8d3
VS
29498
29499#undef $ac_func
29500
a848cd7e
SC
29501/* Override any gcc2 internal prototype to avoid an error. */
29502#ifdef __cplusplus
29503extern "C"
29504{
29505#endif
29506/* We use char because int might match the return type of a gcc2
29507 builtin and then its argument prototype would still apply. */
29508char $ac_func ();
29509/* The GNU C library defines this for functions which it implements
29510 to always fail with ENOSYS. Some functions are actually named
29511 something starting with __ and the normal name is an alias. */
29512#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29513choke me
29514#else
29515char (*f) () = $ac_func;
29516#endif
29517#ifdef __cplusplus
29518}
29519#endif
29520
29521int
29522main ()
29523{
29524return f != $ac_func;
29525 ;
29526 return 0;
29527}
29528_ACEOF
29529rm -f conftest.$ac_objext conftest$ac_exeext
29530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29531 (eval $ac_link) 2>conftest.er1
a848cd7e 29532 ac_status=$?
ac1cb8d3
VS
29533 grep -v '^ *+' conftest.er1 >conftest.err
29534 rm -f conftest.er1
29535 cat conftest.err >&5
a848cd7e
SC
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } &&
224bf05c 29538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540 (eval $ac_try) 2>&5
29541 ac_status=$?
29542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); }; } &&
29544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546 (eval $ac_try) 2>&5
29547 ac_status=$?
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); }; }; then
29550 eval "$as_ac_var=yes"
29551else
29552 echo "$as_me: failed program was:" >&5
29553sed 's/^/| /' conftest.$ac_ext >&5
29554
29555eval "$as_ac_var=no"
29556fi
ac1cb8d3
VS
29557rm -f conftest.err conftest.$ac_objext \
29558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29559fi
29560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29562if test `eval echo '${'$as_ac_var'}'` = yes; then
29563 cat >>confdefs.h <<_ACEOF
29564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29565_ACEOF
29566 break
29567fi
29568done
29569
29570
29571echo "$as_me:$LINENO: checking for statfs" >&5
29572echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29573if test "${wx_cv_func_statfs+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29575else
29576 cat >conftest.$ac_ext <<_ACEOF
29577/* confdefs.h. */
29578_ACEOF
29579cat confdefs.h >>conftest.$ac_ext
29580cat >>conftest.$ac_ext <<_ACEOF
29581/* end confdefs.h. */
29582
29583 #if defined(__BSD__)
29584 #include <sys/param.h>
29585 #include <sys/mount.h>
29586 #else
29587 #include <sys/vfs.h>
29588 #endif
29589
29590int
29591main ()
29592{
29593
29594 long l;
29595 struct statfs fs;
29596 statfs("/", &fs);
29597 l = fs.f_bsize;
29598 l += fs.f_blocks;
29599 l += fs.f_bavail;
29600
29601 ;
29602 return 0;
29603}
29604_ACEOF
29605rm -f conftest.$ac_objext
29606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29607 (eval $ac_compile) 2>conftest.er1
a848cd7e 29608 ac_status=$?
ac1cb8d3
VS
29609 grep -v '^ *+' conftest.er1 >conftest.err
29610 rm -f conftest.er1
29611 cat conftest.err >&5
a848cd7e
SC
29612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613 (exit $ac_status); } &&
224bf05c 29614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29616 (eval $ac_try) 2>&5
29617 ac_status=$?
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; } &&
29620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622 (eval $ac_try) 2>&5
29623 ac_status=$?
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; }; then
29626
29627 wx_cv_func_statfs=yes
29628
29629else
29630 echo "$as_me: failed program was:" >&5
29631sed 's/^/| /' conftest.$ac_ext >&5
29632
29633
29634 wx_cv_func_statfs=no
29635
29636
29637fi
ac1cb8d3 29638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29639
29640fi
29641echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29642echo "${ECHO_T}$wx_cv_func_statfs" >&6
29643
29644if test "$wx_cv_func_statfs" = "yes"; then
29645 wx_cv_type_statvfs_t="struct statfs"
29646 cat >>confdefs.h <<\_ACEOF
29647#define HAVE_STATFS 1
29648_ACEOF
29649
29650else
29651 echo "$as_me:$LINENO: checking for statvfs" >&5
29652echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29653if test "${wx_cv_func_statvfs+set}" = set; then
29654 echo $ECHO_N "(cached) $ECHO_C" >&6
29655else
29656 cat >conftest.$ac_ext <<_ACEOF
29657/* confdefs.h. */
29658_ACEOF
29659cat confdefs.h >>conftest.$ac_ext
29660cat >>conftest.$ac_ext <<_ACEOF
29661/* end confdefs.h. */
29662
29663 #include <stddef.h>
29664 #include <sys/statvfs.h>
29665
29666int
29667main ()
29668{
29669
29670 statvfs("/", NULL);
29671
29672 ;
29673 return 0;
29674}
29675_ACEOF
29676rm -f conftest.$ac_objext
29677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29678 (eval $ac_compile) 2>conftest.er1
a848cd7e 29679 ac_status=$?
ac1cb8d3
VS
29680 grep -v '^ *+' conftest.er1 >conftest.err
29681 rm -f conftest.er1
29682 cat conftest.err >&5
a848cd7e
SC
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); } &&
224bf05c 29685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29687 (eval $ac_try) 2>&5
29688 ac_status=$?
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; } &&
29691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29693 (eval $ac_try) 2>&5
29694 ac_status=$?
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; }; then
29697 wx_cv_func_statvfs=yes
29698else
29699 echo "$as_me: failed program was:" >&5
29700sed 's/^/| /' conftest.$ac_ext >&5
29701
29702wx_cv_func_statvfs=no
29703
29704fi
ac1cb8d3 29705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29706
29707fi
29708echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29709echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29710
29711 if test "$wx_cv_func_statvfs" = "yes"; then
29712
29713
29714 ac_ext=cc
29715ac_cpp='$CXXCPP $CPPFLAGS'
29716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29719
29720
29721 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29722echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29723if test "${wx_cv_type_statvfs_t+set}" = set; then
29724 echo $ECHO_N "(cached) $ECHO_C" >&6
29725else
29726 cat >conftest.$ac_ext <<_ACEOF
29727/* confdefs.h. */
29728_ACEOF
29729cat confdefs.h >>conftest.$ac_ext
29730cat >>conftest.$ac_ext <<_ACEOF
29731/* end confdefs.h. */
29732
29733 #include <sys/statvfs.h>
29734
29735int
29736main ()
29737{
29738
29739 long l;
29740 statvfs_t fs;
29741 statvfs("/", &fs);
29742 l = fs.f_bsize;
29743 l += fs.f_blocks;
29744 l += fs.f_bavail;
29745
29746 ;
29747 return 0;
29748}
29749_ACEOF
29750rm -f conftest.$ac_objext
29751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29752 (eval $ac_compile) 2>conftest.er1
a848cd7e 29753 ac_status=$?
ac1cb8d3
VS
29754 grep -v '^ *+' conftest.er1 >conftest.err
29755 rm -f conftest.er1
29756 cat conftest.err >&5
a848cd7e
SC
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); } &&
224bf05c 29759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29761 (eval $ac_try) 2>&5
29762 ac_status=$?
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); }; } &&
29765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29767 (eval $ac_try) 2>&5
29768 ac_status=$?
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); }; }; then
29771 wx_cv_type_statvfs_t=statvfs_t
29772else
29773 echo "$as_me: failed program was:" >&5
29774sed 's/^/| /' conftest.$ac_ext >&5
29775
29776
29777 cat >conftest.$ac_ext <<_ACEOF
29778/* confdefs.h. */
29779_ACEOF
29780cat confdefs.h >>conftest.$ac_ext
29781cat >>conftest.$ac_ext <<_ACEOF
29782/* end confdefs.h. */
29783
29784 #include <sys/statvfs.h>
29785
29786int
29787main ()
29788{
29789
29790 long l;
29791 struct statvfs fs;
29792 statvfs("/", &fs);
29793 l = fs.f_bsize;
29794 l += fs.f_blocks;
29795 l += fs.f_bavail;
29796
29797 ;
29798 return 0;
29799}
29800_ACEOF
29801rm -f conftest.$ac_objext
29802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29803 (eval $ac_compile) 2>conftest.er1
a848cd7e 29804 ac_status=$?
ac1cb8d3
VS
29805 grep -v '^ *+' conftest.er1 >conftest.err
29806 rm -f conftest.er1
29807 cat conftest.err >&5
a848cd7e
SC
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); } &&
224bf05c 29810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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 wx_cv_type_statvfs_t="struct statvfs"
29823else
29824 echo "$as_me: failed program was:" >&5
29825sed 's/^/| /' conftest.$ac_ext >&5
29826
29827wx_cv_type_statvfs_t="unknown"
29828
29829fi
ac1cb8d3 29830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
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_type_statvfs_t" >&5
29838echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
29839
29840 ac_ext=c
29841ac_cpp='$CPP $CPPFLAGS'
29842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29844ac_compiler_gnu=$ac_cv_c_compiler_gnu
29845
29846
29847 if test "$wx_cv_type_statvfs_t" != "unknown"; then
29848 cat >>confdefs.h <<\_ACEOF
29849#define HAVE_STATVFS 1
29850_ACEOF
29851
29852 fi
29853 else
29854 wx_cv_type_statvfs_t="unknown"
29855 fi
29856fi
29857
29858if test "$wx_cv_type_statvfs_t" != "unknown"; then
29859 cat >>confdefs.h <<_ACEOF
29860#define WX_STATFS_T $wx_cv_type_statvfs_t
29861_ACEOF
29862
29863else
29864 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29865echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
29866fi
29867
29868if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
29869
29870
29871for ac_func in fcntl flock
29872do
29873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29874echo "$as_me:$LINENO: checking for $ac_func" >&5
29875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29876if eval "test \"\${$as_ac_var+set}\" = set"; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29878else
29879 cat >conftest.$ac_ext <<_ACEOF
29880/* confdefs.h. */
29881_ACEOF
29882cat confdefs.h >>conftest.$ac_ext
29883cat >>conftest.$ac_ext <<_ACEOF
29884/* end confdefs.h. */
ac1cb8d3
VS
29885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29887#define $ac_func innocuous_$ac_func
29888
a848cd7e
SC
29889/* System header to define __stub macros and hopefully few prototypes,
29890 which can conflict with char $ac_func (); below.
29891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29892 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29893
a848cd7e
SC
29894#ifdef __STDC__
29895# include <limits.h>
29896#else
29897# include <assert.h>
29898#endif
ac1cb8d3
VS
29899
29900#undef $ac_func
29901
a848cd7e
SC
29902/* Override any gcc2 internal prototype to avoid an error. */
29903#ifdef __cplusplus
29904extern "C"
29905{
29906#endif
29907/* We use char because int might match the return type of a gcc2
29908 builtin and then its argument prototype would still apply. */
29909char $ac_func ();
29910/* The GNU C library defines this for functions which it implements
29911 to always fail with ENOSYS. Some functions are actually named
29912 something starting with __ and the normal name is an alias. */
29913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29914choke me
29915#else
29916char (*f) () = $ac_func;
29917#endif
29918#ifdef __cplusplus
29919}
29920#endif
29921
29922int
29923main ()
29924{
29925return f != $ac_func;
29926 ;
29927 return 0;
29928}
29929_ACEOF
29930rm -f conftest.$ac_objext conftest$ac_exeext
29931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29932 (eval $ac_link) 2>conftest.er1
a848cd7e 29933 ac_status=$?
ac1cb8d3
VS
29934 grep -v '^ *+' conftest.er1 >conftest.err
29935 rm -f conftest.er1
29936 cat conftest.err >&5
a848cd7e
SC
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); } &&
224bf05c 29939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29942 ac_status=$?
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; } &&
29945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947 (eval $ac_try) 2>&5
29948 ac_status=$?
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29951 eval "$as_ac_var=yes"
29952else
29953 echo "$as_me: failed program was:" >&5
29954sed 's/^/| /' conftest.$ac_ext >&5
29955
29956eval "$as_ac_var=no"
29957fi
ac1cb8d3
VS
29958rm -f conftest.err conftest.$ac_objext \
29959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29960fi
29961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29963if test `eval echo '${'$as_ac_var'}'` = yes; then
29964 cat >>confdefs.h <<_ACEOF
29965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29966_ACEOF
29967 break
29968fi
29969done
29970
29971
29972 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
29973 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29974echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
29975 wxUSE_SNGLINST_CHECKER=no
29976 fi
29977fi
29978
29979
29980for ac_func in timegm
29981do
29982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29983echo "$as_me:$LINENO: checking for $ac_func" >&5
29984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29985if eval "test \"\${$as_ac_var+set}\" = set"; then
29986 echo $ECHO_N "(cached) $ECHO_C" >&6
29987else
29988 cat >conftest.$ac_ext <<_ACEOF
29989/* confdefs.h. */
29990_ACEOF
29991cat confdefs.h >>conftest.$ac_ext
29992cat >>conftest.$ac_ext <<_ACEOF
29993/* end confdefs.h. */
ac1cb8d3
VS
29994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29996#define $ac_func innocuous_$ac_func
29997
a848cd7e
SC
29998/* System header to define __stub macros and hopefully few prototypes,
29999 which can conflict with char $ac_func (); below.
30000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30001 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30002
a848cd7e
SC
30003#ifdef __STDC__
30004# include <limits.h>
30005#else
30006# include <assert.h>
30007#endif
ac1cb8d3
VS
30008
30009#undef $ac_func
30010
a848cd7e
SC
30011/* Override any gcc2 internal prototype to avoid an error. */
30012#ifdef __cplusplus
30013extern "C"
30014{
30015#endif
30016/* We use char because int might match the return type of a gcc2
30017 builtin and then its argument prototype would still apply. */
30018char $ac_func ();
30019/* The GNU C library defines this for functions which it implements
30020 to always fail with ENOSYS. Some functions are actually named
30021 something starting with __ and the normal name is an alias. */
30022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30023choke me
30024#else
30025char (*f) () = $ac_func;
30026#endif
30027#ifdef __cplusplus
30028}
30029#endif
30030
30031int
30032main ()
30033{
30034return f != $ac_func;
30035 ;
30036 return 0;
30037}
30038_ACEOF
30039rm -f conftest.$ac_objext conftest$ac_exeext
30040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30041 (eval $ac_link) 2>conftest.er1
a848cd7e 30042 ac_status=$?
ac1cb8d3
VS
30043 grep -v '^ *+' conftest.er1 >conftest.err
30044 rm -f conftest.er1
30045 cat conftest.err >&5
a848cd7e
SC
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); } &&
224bf05c 30048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050 (eval $ac_try) 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; } &&
30054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056 (eval $ac_try) 2>&5
30057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060 eval "$as_ac_var=yes"
30061else
30062 echo "$as_me: failed program was:" >&5
30063sed 's/^/| /' conftest.$ac_ext >&5
30064
30065eval "$as_ac_var=no"
30066fi
ac1cb8d3
VS
30067rm -f conftest.err conftest.$ac_objext \
30068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30069fi
30070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30072if test `eval echo '${'$as_ac_var'}'` = yes; then
30073 cat >>confdefs.h <<_ACEOF
30074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30075_ACEOF
30076
30077fi
30078done
30079
30080
30081
30082
30083for ac_func in putenv setenv
30084do
30085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30086echo "$as_me:$LINENO: checking for $ac_func" >&5
30087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30088if eval "test \"\${$as_ac_var+set}\" = set"; then
30089 echo $ECHO_N "(cached) $ECHO_C" >&6
30090else
30091 cat >conftest.$ac_ext <<_ACEOF
30092/* confdefs.h. */
30093_ACEOF
30094cat confdefs.h >>conftest.$ac_ext
30095cat >>conftest.$ac_ext <<_ACEOF
30096/* end confdefs.h. */
ac1cb8d3
VS
30097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30099#define $ac_func innocuous_$ac_func
30100
a848cd7e
SC
30101/* System header to define __stub macros and hopefully few prototypes,
30102 which can conflict with char $ac_func (); below.
30103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30104 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30105
a848cd7e
SC
30106#ifdef __STDC__
30107# include <limits.h>
30108#else
30109# include <assert.h>
30110#endif
ac1cb8d3
VS
30111
30112#undef $ac_func
30113
a848cd7e
SC
30114/* Override any gcc2 internal prototype to avoid an error. */
30115#ifdef __cplusplus
30116extern "C"
30117{
30118#endif
30119/* We use char because int might match the return type of a gcc2
30120 builtin and then its argument prototype would still apply. */
30121char $ac_func ();
30122/* The GNU C library defines this for functions which it implements
30123 to always fail with ENOSYS. Some functions are actually named
30124 something starting with __ and the normal name is an alias. */
30125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30126choke me
30127#else
30128char (*f) () = $ac_func;
30129#endif
30130#ifdef __cplusplus
30131}
30132#endif
30133
30134int
30135main ()
30136{
30137return f != $ac_func;
30138 ;
30139 return 0;
30140}
30141_ACEOF
30142rm -f conftest.$ac_objext conftest$ac_exeext
30143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30144 (eval $ac_link) 2>conftest.er1
a848cd7e 30145 ac_status=$?
ac1cb8d3
VS
30146 grep -v '^ *+' conftest.er1 >conftest.err
30147 rm -f conftest.er1
30148 cat conftest.err >&5
a848cd7e
SC
30149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150 (exit $ac_status); } &&
224bf05c 30151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30153 (eval $ac_try) 2>&5
30154 ac_status=$?
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); }; } &&
30157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30159 (eval $ac_try) 2>&5
30160 ac_status=$?
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); }; }; then
30163 eval "$as_ac_var=yes"
30164else
30165 echo "$as_me: failed program was:" >&5
30166sed 's/^/| /' conftest.$ac_ext >&5
30167
30168eval "$as_ac_var=no"
30169fi
ac1cb8d3
VS
30170rm -f conftest.err conftest.$ac_objext \
30171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30172fi
30173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30175if test `eval echo '${'$as_ac_var'}'` = yes; then
30176 cat >>confdefs.h <<_ACEOF
30177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30178_ACEOF
30179 break
30180fi
30181done
30182
30183
30184HAVE_SOME_SLEEP_FUNC=0
30185if test "$USE_BEOS" = 1; then
30186 cat >>confdefs.h <<\_ACEOF
30187#define HAVE_SLEEP 1
30188_ACEOF
30189
30190 HAVE_SOME_SLEEP_FUNC=1
30191fi
30192
30193if test "$USE_DARWIN" = 1; then
30194 cat >>confdefs.h <<\_ACEOF
30195#define HAVE_USLEEP 1
30196_ACEOF
30197
30198 HAVE_SOME_SLEEP_FUNC=1
30199fi
30200
30201if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30202 POSIX4_LINK=
30203
30204for ac_func in nanosleep
30205do
30206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30207echo "$as_me:$LINENO: checking for $ac_func" >&5
30208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30209if eval "test \"\${$as_ac_var+set}\" = set"; then
30210 echo $ECHO_N "(cached) $ECHO_C" >&6
30211else
30212 cat >conftest.$ac_ext <<_ACEOF
30213/* confdefs.h. */
30214_ACEOF
30215cat confdefs.h >>conftest.$ac_ext
30216cat >>conftest.$ac_ext <<_ACEOF
30217/* end confdefs.h. */
ac1cb8d3
VS
30218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30220#define $ac_func innocuous_$ac_func
30221
a848cd7e
SC
30222/* System header to define __stub macros and hopefully few prototypes,
30223 which can conflict with char $ac_func (); below.
30224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30225 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30226
a848cd7e
SC
30227#ifdef __STDC__
30228# include <limits.h>
30229#else
30230# include <assert.h>
30231#endif
ac1cb8d3
VS
30232
30233#undef $ac_func
30234
a848cd7e
SC
30235/* Override any gcc2 internal prototype to avoid an error. */
30236#ifdef __cplusplus
30237extern "C"
30238{
30239#endif
30240/* We use char because int might match the return type of a gcc2
30241 builtin and then its argument prototype would still apply. */
30242char $ac_func ();
30243/* The GNU C library defines this for functions which it implements
30244 to always fail with ENOSYS. Some functions are actually named
30245 something starting with __ and the normal name is an alias. */
30246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30247choke me
30248#else
30249char (*f) () = $ac_func;
30250#endif
30251#ifdef __cplusplus
30252}
30253#endif
30254
30255int
30256main ()
30257{
30258return f != $ac_func;
30259 ;
30260 return 0;
30261}
30262_ACEOF
30263rm -f conftest.$ac_objext conftest$ac_exeext
30264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30265 (eval $ac_link) 2>conftest.er1
a848cd7e 30266 ac_status=$?
ac1cb8d3
VS
30267 grep -v '^ *+' conftest.er1 >conftest.err
30268 rm -f conftest.er1
30269 cat conftest.err >&5
a848cd7e
SC
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); } &&
224bf05c 30272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274 (eval $ac_try) 2>&5
30275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280 (eval $ac_try) 2>&5
30281 ac_status=$?
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; }; then
30284 eval "$as_ac_var=yes"
30285else
30286 echo "$as_me: failed program was:" >&5
30287sed 's/^/| /' conftest.$ac_ext >&5
30288
30289eval "$as_ac_var=no"
30290fi
ac1cb8d3
VS
30291rm -f conftest.err conftest.$ac_objext \
30292 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30293fi
30294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30296if test `eval echo '${'$as_ac_var'}'` = yes; then
30297 cat >>confdefs.h <<_ACEOF
30298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30299_ACEOF
30300 cat >>confdefs.h <<\_ACEOF
30301#define HAVE_NANOSLEEP 1
30302_ACEOF
30303
30304else
30305
30306 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30307echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30308if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30310else
30311 ac_check_lib_save_LIBS=$LIBS
30312LIBS="-lposix4 $LIBS"
30313cat >conftest.$ac_ext <<_ACEOF
30314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
30319
30320/* Override any gcc2 internal prototype to avoid an error. */
30321#ifdef __cplusplus
30322extern "C"
30323#endif
30324/* We use char because int might match the return type of a gcc2
30325 builtin and then its argument prototype would still apply. */
30326char nanosleep ();
30327int
30328main ()
30329{
30330nanosleep ();
30331 ;
30332 return 0;
30333}
30334_ACEOF
30335rm -f conftest.$ac_objext conftest$ac_exeext
30336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30337 (eval $ac_link) 2>conftest.er1
a848cd7e 30338 ac_status=$?
ac1cb8d3
VS
30339 grep -v '^ *+' conftest.er1 >conftest.err
30340 rm -f conftest.er1
30341 cat conftest.err >&5
a848cd7e
SC
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } &&
224bf05c 30344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30346 (eval $ac_try) 2>&5
30347 ac_status=$?
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); }; } &&
30350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30352 (eval $ac_try) 2>&5
30353 ac_status=$?
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; }; then
30356 ac_cv_lib_posix4_nanosleep=yes
30357else
30358 echo "$as_me: failed program was:" >&5
30359sed 's/^/| /' conftest.$ac_ext >&5
30360
30361ac_cv_lib_posix4_nanosleep=no
30362fi
ac1cb8d3
VS
30363rm -f conftest.err conftest.$ac_objext \
30364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30365LIBS=$ac_check_lib_save_LIBS
30366fi
30367echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30368echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30369if test $ac_cv_lib_posix4_nanosleep = yes; then
30370
30371 cat >>confdefs.h <<\_ACEOF
30372#define HAVE_NANOSLEEP 1
30373_ACEOF
30374
30375 POSIX4_LINK=" -lposix4"
30376
30377else
30378
30379
30380for ac_func in usleep
30381do
30382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30383echo "$as_me:$LINENO: checking for $ac_func" >&5
30384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30385if eval "test \"\${$as_ac_var+set}\" = set"; then
30386 echo $ECHO_N "(cached) $ECHO_C" >&6
30387else
30388 cat >conftest.$ac_ext <<_ACEOF
30389/* confdefs.h. */
30390_ACEOF
30391cat confdefs.h >>conftest.$ac_ext
30392cat >>conftest.$ac_ext <<_ACEOF
30393/* end confdefs.h. */
ac1cb8d3
VS
30394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30396#define $ac_func innocuous_$ac_func
30397
a848cd7e
SC
30398/* System header to define __stub macros and hopefully few prototypes,
30399 which can conflict with char $ac_func (); below.
30400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30401 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30402
a848cd7e
SC
30403#ifdef __STDC__
30404# include <limits.h>
30405#else
30406# include <assert.h>
30407#endif
ac1cb8d3
VS
30408
30409#undef $ac_func
30410
a848cd7e
SC
30411/* Override any gcc2 internal prototype to avoid an error. */
30412#ifdef __cplusplus
30413extern "C"
30414{
30415#endif
30416/* We use char because int might match the return type of a gcc2
30417 builtin and then its argument prototype would still apply. */
30418char $ac_func ();
30419/* The GNU C library defines this for functions which it implements
30420 to always fail with ENOSYS. Some functions are actually named
30421 something starting with __ and the normal name is an alias. */
30422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30423choke me
30424#else
30425char (*f) () = $ac_func;
30426#endif
30427#ifdef __cplusplus
30428}
30429#endif
30430
30431int
30432main ()
30433{
30434return f != $ac_func;
30435 ;
30436 return 0;
30437}
30438_ACEOF
30439rm -f conftest.$ac_objext conftest$ac_exeext
30440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30441 (eval $ac_link) 2>conftest.er1
a848cd7e 30442 ac_status=$?
ac1cb8d3
VS
30443 grep -v '^ *+' conftest.er1 >conftest.err
30444 rm -f conftest.er1
30445 cat conftest.err >&5
a848cd7e
SC
30446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447 (exit $ac_status); } &&
224bf05c 30448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30450 (eval $ac_try) 2>&5
30451 ac_status=$?
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); }; } &&
30454 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30456 (eval $ac_try) 2>&5
30457 ac_status=$?
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); }; }; then
30460 eval "$as_ac_var=yes"
30461else
30462 echo "$as_me: failed program was:" >&5
30463sed 's/^/| /' conftest.$ac_ext >&5
30464
30465eval "$as_ac_var=no"
30466fi
ac1cb8d3
VS
30467rm -f conftest.err conftest.$ac_objext \
30468 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30469fi
30470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30472if test `eval echo '${'$as_ac_var'}'` = yes; then
30473 cat >>confdefs.h <<_ACEOF
30474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30475_ACEOF
30476 cat >>confdefs.h <<\_ACEOF
30477#define HAVE_USLEEP 1
30478_ACEOF
30479
30480else
30481 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30482echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30483
30484fi
30485done
30486
30487
30488
30489fi
30490
30491
30492
30493fi
30494done
30495
30496fi
30497
30498
30499
30500for ac_func in uname gethostname
30501do
30502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30503echo "$as_me:$LINENO: checking for $ac_func" >&5
30504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30505if eval "test \"\${$as_ac_var+set}\" = set"; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30507else
30508 cat >conftest.$ac_ext <<_ACEOF
30509/* confdefs.h. */
30510_ACEOF
30511cat confdefs.h >>conftest.$ac_ext
30512cat >>conftest.$ac_ext <<_ACEOF
30513/* end confdefs.h. */
ac1cb8d3
VS
30514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30516#define $ac_func innocuous_$ac_func
30517
a848cd7e
SC
30518/* System header to define __stub macros and hopefully few prototypes,
30519 which can conflict with char $ac_func (); below.
30520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30522
a848cd7e
SC
30523#ifdef __STDC__
30524# include <limits.h>
30525#else
30526# include <assert.h>
30527#endif
ac1cb8d3
VS
30528
30529#undef $ac_func
30530
a848cd7e
SC
30531/* Override any gcc2 internal prototype to avoid an error. */
30532#ifdef __cplusplus
30533extern "C"
30534{
30535#endif
30536/* We use char because int might match the return type of a gcc2
30537 builtin and then its argument prototype would still apply. */
30538char $ac_func ();
30539/* The GNU C library defines this for functions which it implements
30540 to always fail with ENOSYS. Some functions are actually named
30541 something starting with __ and the normal name is an alias. */
30542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30543choke me
30544#else
30545char (*f) () = $ac_func;
30546#endif
30547#ifdef __cplusplus
30548}
30549#endif
30550
30551int
30552main ()
30553{
30554return f != $ac_func;
30555 ;
30556 return 0;
30557}
30558_ACEOF
30559rm -f conftest.$ac_objext conftest$ac_exeext
30560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30561 (eval $ac_link) 2>conftest.er1
a848cd7e 30562 ac_status=$?
ac1cb8d3
VS
30563 grep -v '^ *+' conftest.er1 >conftest.err
30564 rm -f conftest.er1
30565 cat conftest.err >&5
a848cd7e
SC
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); } &&
224bf05c 30568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30570 (eval $ac_try) 2>&5
30571 ac_status=$?
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); }; } &&
30574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30576 (eval $ac_try) 2>&5
30577 ac_status=$?
30578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579 (exit $ac_status); }; }; then
30580 eval "$as_ac_var=yes"
30581else
30582 echo "$as_me: failed program was:" >&5
30583sed 's/^/| /' conftest.$ac_ext >&5
30584
30585eval "$as_ac_var=no"
30586fi
ac1cb8d3
VS
30587rm -f conftest.err conftest.$ac_objext \
30588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30589fi
30590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30592if test `eval echo '${'$as_ac_var'}'` = yes; then
30593 cat >>confdefs.h <<_ACEOF
30594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30595_ACEOF
30596 break
30597fi
30598done
30599
30600
30601
30602
30603ac_ext=cc
30604ac_cpp='$CXXCPP $CPPFLAGS'
30605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30608
30609
30610
30611for ac_func in strtok_r
30612do
30613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30614echo "$as_me:$LINENO: checking for $ac_func" >&5
30615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30616if eval "test \"\${$as_ac_var+set}\" = set"; then
30617 echo $ECHO_N "(cached) $ECHO_C" >&6
30618else
30619 cat >conftest.$ac_ext <<_ACEOF
30620/* confdefs.h. */
30621_ACEOF
30622cat confdefs.h >>conftest.$ac_ext
30623cat >>conftest.$ac_ext <<_ACEOF
30624/* end confdefs.h. */
ac1cb8d3
VS
30625/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30627#define $ac_func innocuous_$ac_func
30628
a848cd7e
SC
30629/* System header to define __stub macros and hopefully few prototypes,
30630 which can conflict with char $ac_func (); below.
30631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30632 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30633
a848cd7e
SC
30634#ifdef __STDC__
30635# include <limits.h>
30636#else
30637# include <assert.h>
30638#endif
ac1cb8d3
VS
30639
30640#undef $ac_func
30641
a848cd7e
SC
30642/* Override any gcc2 internal prototype to avoid an error. */
30643#ifdef __cplusplus
30644extern "C"
30645{
30646#endif
30647/* We use char because int might match the return type of a gcc2
30648 builtin and then its argument prototype would still apply. */
30649char $ac_func ();
30650/* The GNU C library defines this for functions which it implements
30651 to always fail with ENOSYS. Some functions are actually named
30652 something starting with __ and the normal name is an alias. */
30653#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30654choke me
30655#else
30656char (*f) () = $ac_func;
30657#endif
30658#ifdef __cplusplus
30659}
30660#endif
30661
30662int
30663main ()
30664{
30665return f != $ac_func;
30666 ;
30667 return 0;
30668}
30669_ACEOF
30670rm -f conftest.$ac_objext conftest$ac_exeext
30671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30672 (eval $ac_link) 2>conftest.er1
a848cd7e 30673 ac_status=$?
ac1cb8d3
VS
30674 grep -v '^ *+' conftest.er1 >conftest.err
30675 rm -f conftest.er1
30676 cat conftest.err >&5
a848cd7e
SC
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); } &&
224bf05c 30679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30681 (eval $ac_try) 2>&5
30682 ac_status=$?
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); }; } &&
30685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687 (eval $ac_try) 2>&5
30688 ac_status=$?
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; }; then
30691 eval "$as_ac_var=yes"
30692else
30693 echo "$as_me: failed program was:" >&5
30694sed 's/^/| /' conftest.$ac_ext >&5
30695
30696eval "$as_ac_var=no"
30697fi
ac1cb8d3
VS
30698rm -f conftest.err conftest.$ac_objext \
30699 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30700fi
30701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30702echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30703if test `eval echo '${'$as_ac_var'}'` = yes; then
30704 cat >>confdefs.h <<_ACEOF
30705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30706_ACEOF
30707
30708fi
30709done
30710
30711
30712ac_ext=c
30713ac_cpp='$CPP $CPPFLAGS'
30714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30716ac_compiler_gnu=$ac_cv_c_compiler_gnu
30717
30718
30719INET_LINK=
30720
30721for ac_func in inet_addr
30722do
30723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30724echo "$as_me:$LINENO: checking for $ac_func" >&5
30725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30726if eval "test \"\${$as_ac_var+set}\" = set"; then
30727 echo $ECHO_N "(cached) $ECHO_C" >&6
30728else
30729 cat >conftest.$ac_ext <<_ACEOF
30730/* confdefs.h. */
30731_ACEOF
30732cat confdefs.h >>conftest.$ac_ext
30733cat >>conftest.$ac_ext <<_ACEOF
30734/* end confdefs.h. */
ac1cb8d3
VS
30735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30737#define $ac_func innocuous_$ac_func
30738
a848cd7e
SC
30739/* System header to define __stub macros and hopefully few prototypes,
30740 which can conflict with char $ac_func (); below.
30741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30742 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30743
a848cd7e
SC
30744#ifdef __STDC__
30745# include <limits.h>
30746#else
30747# include <assert.h>
30748#endif
ac1cb8d3
VS
30749
30750#undef $ac_func
30751
a848cd7e
SC
30752/* Override any gcc2 internal prototype to avoid an error. */
30753#ifdef __cplusplus
30754extern "C"
30755{
30756#endif
30757/* We use char because int might match the return type of a gcc2
30758 builtin and then its argument prototype would still apply. */
30759char $ac_func ();
30760/* The GNU C library defines this for functions which it implements
30761 to always fail with ENOSYS. Some functions are actually named
30762 something starting with __ and the normal name is an alias. */
30763#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30764choke me
30765#else
30766char (*f) () = $ac_func;
30767#endif
30768#ifdef __cplusplus
30769}
30770#endif
30771
30772int
30773main ()
30774{
30775return f != $ac_func;
30776 ;
30777 return 0;
30778}
30779_ACEOF
30780rm -f conftest.$ac_objext conftest$ac_exeext
30781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30782 (eval $ac_link) 2>conftest.er1
a848cd7e 30783 ac_status=$?
ac1cb8d3
VS
30784 grep -v '^ *+' conftest.er1 >conftest.err
30785 rm -f conftest.er1
30786 cat conftest.err >&5
a848cd7e
SC
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); } &&
224bf05c 30789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30791 (eval $ac_try) 2>&5
30792 ac_status=$?
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); }; } &&
30795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797 (eval $ac_try) 2>&5
30798 ac_status=$?
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; }; then
30801 eval "$as_ac_var=yes"
30802else
30803 echo "$as_me: failed program was:" >&5
30804sed 's/^/| /' conftest.$ac_ext >&5
30805
30806eval "$as_ac_var=no"
30807fi
ac1cb8d3
VS
30808rm -f conftest.err conftest.$ac_objext \
30809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30810fi
30811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30813if test `eval echo '${'$as_ac_var'}'` = yes; then
30814 cat >>confdefs.h <<_ACEOF
30815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30816_ACEOF
30817 cat >>confdefs.h <<\_ACEOF
30818#define HAVE_INET_ADDR 1
30819_ACEOF
30820
30821else
30822
30823 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30824echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30825if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30826 echo $ECHO_N "(cached) $ECHO_C" >&6
30827else
30828 ac_check_lib_save_LIBS=$LIBS
30829LIBS="-lnsl $LIBS"
30830cat >conftest.$ac_ext <<_ACEOF
30831/* confdefs.h. */
30832_ACEOF
30833cat confdefs.h >>conftest.$ac_ext
30834cat >>conftest.$ac_ext <<_ACEOF
30835/* end confdefs.h. */
30836
30837/* Override any gcc2 internal prototype to avoid an error. */
30838#ifdef __cplusplus
30839extern "C"
30840#endif
30841/* We use char because int might match the return type of a gcc2
30842 builtin and then its argument prototype would still apply. */
30843char inet_addr ();
30844int
30845main ()
30846{
30847inet_addr ();
30848 ;
30849 return 0;
30850}
30851_ACEOF
30852rm -f conftest.$ac_objext conftest$ac_exeext
30853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30854 (eval $ac_link) 2>conftest.er1
a848cd7e 30855 ac_status=$?
ac1cb8d3
VS
30856 grep -v '^ *+' conftest.er1 >conftest.err
30857 rm -f conftest.er1
30858 cat conftest.err >&5
a848cd7e
SC
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); } &&
224bf05c 30861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30863 (eval $ac_try) 2>&5
30864 ac_status=$?
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; } &&
30867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30869 (eval $ac_try) 2>&5
30870 ac_status=$?
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); }; }; then
30873 ac_cv_lib_nsl_inet_addr=yes
30874else
30875 echo "$as_me: failed program was:" >&5
30876sed 's/^/| /' conftest.$ac_ext >&5
30877
30878ac_cv_lib_nsl_inet_addr=no
30879fi
ac1cb8d3
VS
30880rm -f conftest.err conftest.$ac_objext \
30881 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30882LIBS=$ac_check_lib_save_LIBS
30883fi
30884echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30885echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30886if test $ac_cv_lib_nsl_inet_addr = yes; then
30887 INET_LINK="nsl"
30888else
30889
30890 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
30891echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30892if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30893 echo $ECHO_N "(cached) $ECHO_C" >&6
30894else
30895 ac_check_lib_save_LIBS=$LIBS
30896LIBS="-lresolv $LIBS"
30897cat >conftest.$ac_ext <<_ACEOF
30898/* confdefs.h. */
30899_ACEOF
30900cat confdefs.h >>conftest.$ac_ext
30901cat >>conftest.$ac_ext <<_ACEOF
30902/* end confdefs.h. */
30903
30904/* Override any gcc2 internal prototype to avoid an error. */
30905#ifdef __cplusplus
30906extern "C"
30907#endif
30908/* We use char because int might match the return type of a gcc2
30909 builtin and then its argument prototype would still apply. */
30910char inet_addr ();
30911int
30912main ()
30913{
30914inet_addr ();
30915 ;
30916 return 0;
30917}
30918_ACEOF
30919rm -f conftest.$ac_objext conftest$ac_exeext
30920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30921 (eval $ac_link) 2>conftest.er1
a848cd7e 30922 ac_status=$?
ac1cb8d3
VS
30923 grep -v '^ *+' conftest.er1 >conftest.err
30924 rm -f conftest.er1
30925 cat conftest.err >&5
a848cd7e
SC
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); } &&
224bf05c 30928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30930 (eval $ac_try) 2>&5
30931 ac_status=$?
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); }; } &&
30934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30936 (eval $ac_try) 2>&5
30937 ac_status=$?
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); }; }; then
30940 ac_cv_lib_resolv_inet_addr=yes
30941else
30942 echo "$as_me: failed program was:" >&5
30943sed 's/^/| /' conftest.$ac_ext >&5
30944
30945ac_cv_lib_resolv_inet_addr=no
30946fi
ac1cb8d3
VS
30947rm -f conftest.err conftest.$ac_objext \
30948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30949LIBS=$ac_check_lib_save_LIBS
30950fi
30951echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30952echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30953if test $ac_cv_lib_resolv_inet_addr = yes; then
30954 INET_LINK="resolv"
30955else
30956
30957 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
30958echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30959if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30960 echo $ECHO_N "(cached) $ECHO_C" >&6
30961else
30962 ac_check_lib_save_LIBS=$LIBS
30963LIBS="-lsocket $LIBS"
30964cat >conftest.$ac_ext <<_ACEOF
30965/* confdefs.h. */
30966_ACEOF
30967cat confdefs.h >>conftest.$ac_ext
30968cat >>conftest.$ac_ext <<_ACEOF
30969/* end confdefs.h. */
30970
30971/* Override any gcc2 internal prototype to avoid an error. */
30972#ifdef __cplusplus
30973extern "C"
30974#endif
30975/* We use char because int might match the return type of a gcc2
30976 builtin and then its argument prototype would still apply. */
30977char inet_addr ();
30978int
30979main ()
30980{
30981inet_addr ();
30982 ;
30983 return 0;
30984}
30985_ACEOF
30986rm -f conftest.$ac_objext conftest$ac_exeext
30987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30988 (eval $ac_link) 2>conftest.er1
a848cd7e 30989 ac_status=$?
ac1cb8d3
VS
30990 grep -v '^ *+' conftest.er1 >conftest.err
30991 rm -f conftest.er1
30992 cat conftest.err >&5
a848cd7e
SC
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); } &&
224bf05c 30995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30997 (eval $ac_try) 2>&5
30998 ac_status=$?
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); }; } &&
31001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31003 (eval $ac_try) 2>&5
31004 ac_status=$?
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); }; }; then
31007 ac_cv_lib_socket_inet_addr=yes
31008else
31009 echo "$as_me: failed program was:" >&5
31010sed 's/^/| /' conftest.$ac_ext >&5
31011
31012ac_cv_lib_socket_inet_addr=no
31013fi
ac1cb8d3
VS
31014rm -f conftest.err conftest.$ac_objext \
31015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31016LIBS=$ac_check_lib_save_LIBS
31017fi
31018echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31019echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31020if test $ac_cv_lib_socket_inet_addr = yes; then
31021 INET_LINK="socket"
31022
31023fi
31024
31025
31026
31027fi
31028
31029
31030
31031fi
31032
31033
31034
31035fi
31036done
31037
31038
31039
31040for ac_func in inet_aton
31041do
31042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31043echo "$as_me:$LINENO: checking for $ac_func" >&5
31044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31045if eval "test \"\${$as_ac_var+set}\" = set"; then
31046 echo $ECHO_N "(cached) $ECHO_C" >&6
31047else
31048 cat >conftest.$ac_ext <<_ACEOF
31049/* confdefs.h. */
31050_ACEOF
31051cat confdefs.h >>conftest.$ac_ext
31052cat >>conftest.$ac_ext <<_ACEOF
31053/* end confdefs.h. */
ac1cb8d3
VS
31054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31056#define $ac_func innocuous_$ac_func
31057
a848cd7e
SC
31058/* System header to define __stub macros and hopefully few prototypes,
31059 which can conflict with char $ac_func (); below.
31060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31061 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31062
a848cd7e
SC
31063#ifdef __STDC__
31064# include <limits.h>
31065#else
31066# include <assert.h>
31067#endif
ac1cb8d3
VS
31068
31069#undef $ac_func
31070
a848cd7e
SC
31071/* Override any gcc2 internal prototype to avoid an error. */
31072#ifdef __cplusplus
31073extern "C"
31074{
31075#endif
31076/* We use char because int might match the return type of a gcc2
31077 builtin and then its argument prototype would still apply. */
31078char $ac_func ();
31079/* The GNU C library defines this for functions which it implements
31080 to always fail with ENOSYS. Some functions are actually named
31081 something starting with __ and the normal name is an alias. */
31082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31083choke me
31084#else
31085char (*f) () = $ac_func;
31086#endif
31087#ifdef __cplusplus
31088}
31089#endif
31090
31091int
31092main ()
31093{
31094return f != $ac_func;
31095 ;
31096 return 0;
31097}
31098_ACEOF
31099rm -f conftest.$ac_objext conftest$ac_exeext
31100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31101 (eval $ac_link) 2>conftest.er1
a848cd7e 31102 ac_status=$?
ac1cb8d3
VS
31103 grep -v '^ *+' conftest.er1 >conftest.err
31104 rm -f conftest.er1
31105 cat conftest.err >&5
a848cd7e
SC
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); } &&
224bf05c 31108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31110 (eval $ac_try) 2>&5
31111 ac_status=$?
31112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113 (exit $ac_status); }; } &&
31114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31116 (eval $ac_try) 2>&5
31117 ac_status=$?
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; }; then
31120 eval "$as_ac_var=yes"
31121else
31122 echo "$as_me: failed program was:" >&5
31123sed 's/^/| /' conftest.$ac_ext >&5
31124
31125eval "$as_ac_var=no"
31126fi
ac1cb8d3
VS
31127rm -f conftest.err conftest.$ac_objext \
31128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31129fi
31130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31132if test `eval echo '${'$as_ac_var'}'` = yes; then
31133 cat >>confdefs.h <<_ACEOF
31134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31135_ACEOF
31136 cat >>confdefs.h <<\_ACEOF
31137#define HAVE_INET_ATON 1
31138_ACEOF
31139
31140else
31141
31142 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31143echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31144echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31145if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31146 echo $ECHO_N "(cached) $ECHO_C" >&6
31147else
31148 ac_check_lib_save_LIBS=$LIBS
31149LIBS="-l$INET_LINK $LIBS"
31150cat >conftest.$ac_ext <<_ACEOF
31151/* confdefs.h. */
31152_ACEOF
31153cat confdefs.h >>conftest.$ac_ext
31154cat >>conftest.$ac_ext <<_ACEOF
31155/* end confdefs.h. */
31156
31157/* Override any gcc2 internal prototype to avoid an error. */
31158#ifdef __cplusplus
31159extern "C"
31160#endif
31161/* We use char because int might match the return type of a gcc2
31162 builtin and then its argument prototype would still apply. */
31163char inet_aton ();
31164int
31165main ()
31166{
31167inet_aton ();
31168 ;
31169 return 0;
31170}
31171_ACEOF
31172rm -f conftest.$ac_objext conftest$ac_exeext
31173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31174 (eval $ac_link) 2>conftest.er1
a848cd7e 31175 ac_status=$?
ac1cb8d3
VS
31176 grep -v '^ *+' conftest.er1 >conftest.err
31177 rm -f conftest.er1
31178 cat conftest.err >&5
a848cd7e
SC
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); } &&
224bf05c 31181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31183 (eval $ac_try) 2>&5
31184 ac_status=$?
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); }; } &&
31187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31189 (eval $ac_try) 2>&5
31190 ac_status=$?
31191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192 (exit $ac_status); }; }; then
31193 eval "$as_ac_Lib=yes"
31194else
31195 echo "$as_me: failed program was:" >&5
31196sed 's/^/| /' conftest.$ac_ext >&5
31197
31198eval "$as_ac_Lib=no"
31199fi
ac1cb8d3
VS
31200rm -f conftest.err conftest.$ac_objext \
31201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31202LIBS=$ac_check_lib_save_LIBS
31203fi
31204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31205echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31206if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31207 cat >>confdefs.h <<\_ACEOF
31208#define HAVE_INET_ATON 1
31209_ACEOF
31210
31211fi
31212
31213
31214fi
31215done
31216
31217
31218if test "x$INET_LINK" != "x"; then
31219 cat >>confdefs.h <<\_ACEOF
31220#define HAVE_INET_ADDR 1
31221_ACEOF
31222
31223 INET_LINK=" -l$INET_LINK"
31224fi
31225
31226fi
31227
31228
31229
31230EXTRALIBS_ESD=
31231echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31232echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31233if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31234 echo $ECHO_N "(cached) $ECHO_C" >&6
31235else
31236 ac_check_lib_save_LIBS=$LIBS
31237LIBS="-lesd $LIBS"
31238cat >conftest.$ac_ext <<_ACEOF
31239/* confdefs.h. */
31240_ACEOF
31241cat confdefs.h >>conftest.$ac_ext
31242cat >>conftest.$ac_ext <<_ACEOF
31243/* end confdefs.h. */
31244
31245/* Override any gcc2 internal prototype to avoid an error. */
31246#ifdef __cplusplus
31247extern "C"
31248#endif
31249/* We use char because int might match the return type of a gcc2
31250 builtin and then its argument prototype would still apply. */
31251char esd_close ();
31252int
31253main ()
31254{
31255esd_close ();
31256 ;
31257 return 0;
31258}
31259_ACEOF
31260rm -f conftest.$ac_objext conftest$ac_exeext
31261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31262 (eval $ac_link) 2>conftest.er1
a848cd7e 31263 ac_status=$?
ac1cb8d3
VS
31264 grep -v '^ *+' conftest.er1 >conftest.err
31265 rm -f conftest.er1
31266 cat conftest.err >&5
a848cd7e
SC
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } &&
224bf05c 31269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31271 (eval $ac_try) 2>&5
31272 ac_status=$?
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); }; } &&
31275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31277 (eval $ac_try) 2>&5
31278 ac_status=$?
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); }; }; then
31281 ac_cv_lib_esd_esd_close=yes
31282else
31283 echo "$as_me: failed program was:" >&5
31284sed 's/^/| /' conftest.$ac_ext >&5
31285
31286ac_cv_lib_esd_esd_close=no
31287fi
ac1cb8d3
VS
31288rm -f conftest.err conftest.$ac_objext \
31289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31290LIBS=$ac_check_lib_save_LIBS
31291fi
31292echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31293echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31294if test $ac_cv_lib_esd_esd_close = yes; then
31295
31296
31297for ac_header in esd.h
31298do
31299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31300if eval "test \"\${$as_ac_Header+set}\" = set"; then
31301 echo "$as_me:$LINENO: checking for $ac_header" >&5
31302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31303if eval "test \"\${$as_ac_Header+set}\" = set"; then
31304 echo $ECHO_N "(cached) $ECHO_C" >&6
31305fi
31306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31308else
31309 # Is the header compilable?
31310echo "$as_me:$LINENO: checking $ac_header usability" >&5
31311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31312cat >conftest.$ac_ext <<_ACEOF
31313/* confdefs.h. */
31314_ACEOF
31315cat confdefs.h >>conftest.$ac_ext
31316cat >>conftest.$ac_ext <<_ACEOF
31317/* end confdefs.h. */
31318$ac_includes_default
31319#include <$ac_header>
31320_ACEOF
31321rm -f conftest.$ac_objext
31322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31323 (eval $ac_compile) 2>conftest.er1
a848cd7e 31324 ac_status=$?
ac1cb8d3
VS
31325 grep -v '^ *+' conftest.er1 >conftest.err
31326 rm -f conftest.er1
31327 cat conftest.err >&5
a848cd7e
SC
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); } &&
224bf05c 31330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332 (eval $ac_try) 2>&5
31333 ac_status=$?
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; } &&
31336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31338 (eval $ac_try) 2>&5
31339 ac_status=$?
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); }; }; then
31342 ac_header_compiler=yes
31343else
31344 echo "$as_me: failed program was:" >&5
31345sed 's/^/| /' conftest.$ac_ext >&5
31346
31347ac_header_compiler=no
31348fi
ac1cb8d3 31349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31351echo "${ECHO_T}$ac_header_compiler" >&6
31352
31353# Is the header present?
31354echo "$as_me:$LINENO: checking $ac_header presence" >&5
31355echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31356cat >conftest.$ac_ext <<_ACEOF
31357/* confdefs.h. */
31358_ACEOF
31359cat confdefs.h >>conftest.$ac_ext
31360cat >>conftest.$ac_ext <<_ACEOF
31361/* end confdefs.h. */
31362#include <$ac_header>
31363_ACEOF
31364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31366 ac_status=$?
31367 grep -v '^ *+' conftest.er1 >conftest.err
31368 rm -f conftest.er1
31369 cat conftest.err >&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); } >/dev/null; then
31372 if test -s conftest.err; then
31373 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31375 else
31376 ac_cpp_err=
31377 fi
31378else
31379 ac_cpp_err=yes
31380fi
31381if test -z "$ac_cpp_err"; then
31382 ac_header_preproc=yes
31383else
31384 echo "$as_me: failed program was:" >&5
31385sed 's/^/| /' conftest.$ac_ext >&5
31386
31387 ac_header_preproc=no
31388fi
31389rm -f conftest.err conftest.$ac_ext
31390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31391echo "${ECHO_T}$ac_header_preproc" >&6
31392
31393# So? What about this header?
ac1cb8d3
VS
31394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31395 yes:no: )
a848cd7e
SC
31396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31400 ac_header_preproc=yes
a848cd7e 31401 ;;
ac1cb8d3 31402 no:yes:* )
a848cd7e
SC
31403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31410echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31415 (
31416 cat <<\_ASBOX
ac1cb8d3
VS
31417## ----------------------------------------- ##
31418## Report this to wx-dev@lists.wxwidgets.org ##
31419## ----------------------------------------- ##
a848cd7e
SC
31420_ASBOX
31421 ) |
31422 sed "s/^/$as_me: WARNING: /" >&2
31423 ;;
31424esac
31425echo "$as_me:$LINENO: checking for $ac_header" >&5
31426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31427if eval "test \"\${$as_ac_Header+set}\" = set"; then
31428 echo $ECHO_N "(cached) $ECHO_C" >&6
31429else
ac1cb8d3 31430 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31431fi
31432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31434
31435fi
31436if test `eval echo '${'$as_ac_Header'}'` = yes; then
31437 cat >>confdefs.h <<_ACEOF
31438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31439_ACEOF
31440
31441 EXTRALIBS_ESD="-lesd"
31442
31443fi
31444
31445done
31446
31447
31448fi
31449
31450
31451
31452echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31453echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31454cat >conftest.$ac_ext <<_ACEOF
31455/* confdefs.h. */
31456_ACEOF
31457cat confdefs.h >>conftest.$ac_ext
31458cat >>conftest.$ac_ext <<_ACEOF
31459/* end confdefs.h. */
31460#ifdef __linux__
31461 #include <linux/cdrom.h>
31462 #else
31463 /* For Solaris */
31464 #include <sys/cdio.h>
31465 #endif
31466
31467int
31468main ()
31469{
31470struct cdrom_tocentry entry, old_entry;
31471 ;
31472 return 0;
31473}
31474_ACEOF
31475rm -f conftest.$ac_objext
31476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31477 (eval $ac_compile) 2>conftest.er1
a848cd7e 31478 ac_status=$?
ac1cb8d3
VS
31479 grep -v '^ *+' conftest.er1 >conftest.err
31480 rm -f conftest.er1
31481 cat conftest.err >&5
a848cd7e
SC
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); } &&
224bf05c 31484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31486 (eval $ac_try) 2>&5
31487 ac_status=$?
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; } &&
31490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31492 (eval $ac_try) 2>&5
31493 ac_status=$?
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); }; }; then
31496 echo "$as_me:$LINENO: result: yes" >&5
31497echo "${ECHO_T}yes" >&6
31498 cat >>confdefs.h <<\_ACEOF
31499#define HAVE_KNOWN_CDROM_INTERFACE 1
31500_ACEOF
31501
31502else
31503 echo "$as_me: failed program was:" >&5
31504sed 's/^/| /' conftest.$ac_ext >&5
31505
31506echo "$as_me:$LINENO: result: no" >&5
31507echo "${ECHO_T}no" >&6
31508fi
ac1cb8d3 31509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31510
31511
31512cat >confcache <<\_ACEOF
31513# This file is a shell script that caches the results of configure
31514# tests run on this system so they can be shared between configure
31515# scripts and configure runs, see configure's option --config-cache.
31516# It is not useful on other systems. If it contains results you don't
31517# want to keep, you may remove or edit it.
31518#
31519# config.status only pays attention to the cache file if you give it
31520# the --recheck option to rerun configure.
31521#
31522# `ac_cv_env_foo' variables (set or unset) will be overridden when
31523# loading this file, other *unset* `ac_cv_foo' will be assigned the
31524# following values.
31525
31526_ACEOF
31527
31528# The following way of writing the cache mishandles newlines in values,
31529# but we know of no workaround that is simple, portable, and efficient.
31530# So, don't put newlines in cache variables' values.
31531# Ultrix sh set writes to stderr and can't be redirected directly,
31532# and sets the high bit in the cache file unless we assign to the vars.
31533{
31534 (set) 2>&1 |
31535 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31536 *ac_space=\ *)
31537 # `set' does not quote correctly, so add quotes (double-quote
31538 # substitution turns \\\\ into \\, and sed turns \\ into \).
31539 sed -n \
ac1cb8d3
VS
31540 "s/'/'\\\\''/g;
31541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31542 ;;
31543 *)
31544 # `set' quotes correctly as required by POSIX, so do not add quotes.
31545 sed -n \
ac1cb8d3 31546 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31547 ;;
31548 esac;
31549} |
31550 sed '
31551 t clear
31552 : clear
31553 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31554 t end
31555 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31556 : end' >>confcache
31557if diff $cache_file confcache >/dev/null 2>&1; then :; else
31558 if test -w $cache_file; then
31559 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31560 cat confcache >$cache_file
31561 else
31562 echo "not updating unwritable cache $cache_file"
31563 fi
31564fi
31565rm -f confcache
31566
31567
31568CPP_MT_FLAG=
31569if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31570
31571
31572 THREADS_LINK=
31573 THREADS_CFLAGS=
31574
31575 if test "$wxUSE_THREADS" = "yes" ; then
31576 if test "$USE_BEOS" = 1; then
31577 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31578echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31579 wxUSE_THREADS="no"
31580 fi
31581 fi
31582
31583 if test "$wxUSE_THREADS" = "yes" ; then
31584
31585
31586 THREAD_OPTS="-pthread"
31587 case "${host}" in
31588 *-*-solaris2* | *-*-sunos4* )
31589 if test "x$GCC" = "xyes"; then
31590 THREAD_OPTS="-pthreads $THREAD_OPTS"
31591 else
31592 THREAD_OPTS="-mt $THREAD_OPTS"
31593 fi
31594 ;;
31595 *-*-freebsd*)
31596 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31597 ;;
31598 *-*-darwin* | *-*-cygwin* )
31599 THREAD_OPTS=""
31600 ;;
31601 *-*-aix*)
31602 THREAD_OPTS="pthreads"
31603 ;;
31604 *-hp-hpux* )
31605 if test "x$GCC" != "xyes"; then
31606 THREAD_OPTS=""
31607 fi
31608 ;;
31609
31610 *-*-irix* )
31611 if test "x$GCC" = "xyes"; then
31612 THREAD_OPTS=""
31613 fi
31614 ;;
31615
31616 *-*-*UnixWare*)
31617 if test "x$GCC" != "xyes"; then
31618 THREAD_OPTS="-Ethread"
31619 fi
31620 ;;
31621 esac
31622
31623 THREAD_OPTS="$THREAD_OPTS pthread none"
31624
31625 THREADS_OK=no
31626 for flag in $THREAD_OPTS; do
31627 case $flag in
31628 none)
31629 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31630echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31631 ;;
31632
31633 -*)
31634 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31635echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31636 THREADS_CFLAGS="$flag"
31637 ;;
31638
31639 *)
31640 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31641echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31642 THREADS_LINK="-l$flag"
31643 ;;
31644 esac
31645
31646 save_LIBS="$LIBS"
31647 save_CFLAGS="$CFLAGS"
31648 LIBS="$THREADS_LINK $LIBS"
31649 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31650
31651 cat >conftest.$ac_ext <<_ACEOF
31652/* confdefs.h. */
31653_ACEOF
31654cat confdefs.h >>conftest.$ac_ext
31655cat >>conftest.$ac_ext <<_ACEOF
31656/* end confdefs.h. */
31657#include <pthread.h>
31658int
31659main ()
31660{
31661pthread_create(0,0,0,0);
31662 ;
31663 return 0;
31664}
31665_ACEOF
31666rm -f conftest.$ac_objext conftest$ac_exeext
31667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31668 (eval $ac_link) 2>conftest.er1
a848cd7e 31669 ac_status=$?
ac1cb8d3
VS
31670 grep -v '^ *+' conftest.er1 >conftest.err
31671 rm -f conftest.er1
31672 cat conftest.err >&5
a848cd7e
SC
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); } &&
224bf05c 31675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31677 (eval $ac_try) 2>&5
31678 ac_status=$?
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; } &&
31681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31683 (eval $ac_try) 2>&5
31684 ac_status=$?
31685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686 (exit $ac_status); }; }; then
31687 THREADS_OK=yes
31688else
31689 echo "$as_me: failed program was:" >&5
31690sed 's/^/| /' conftest.$ac_ext >&5
31691
31692fi
ac1cb8d3
VS
31693rm -f conftest.err conftest.$ac_objext \
31694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31695
31696 LIBS="$save_LIBS"
31697 CFLAGS="$save_CFLAGS"
31698
31699 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31700echo "${ECHO_T}$THREADS_OK" >&6
31701 if test "x$THREADS_OK" = "xyes"; then
31702 break;
31703 fi
31704
31705 THREADS_LINK=""
31706 THREADS_CFLAGS=""
31707 done
31708
31709 if test "x$THREADS_OK" != "xyes"; then
31710 wxUSE_THREADS=no
31711 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31712echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31713 else
31714 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31715 LIBS="$THREADS_LINK $LIBS"
31716
31717 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31718echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31719 flag=no
31720 case "${host}" in
31721 *-aix*)
31722 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31723 flag="-D_THREAD_SAFE"
31724 ;;
31725 *-freebsd*)
31726 flag="-D_THREAD_SAFE"
31727 ;;
31728 *-hp-hpux* )
31729 flag="-D_REENTRANT"
31730 if test "x$GCC" != "xyes"; then
31731 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31732
31733 LIBS="$LIBS -lcma"
a848cd7e
SC
31734 fi
31735 ;;
31736 *solaris* | alpha*-osf*)
31737 flag="-D_REENTRANT"
31738 ;;
31739 esac
31740 echo "$as_me:$LINENO: result: ${flag}" >&5
31741echo "${ECHO_T}${flag}" >&6
31742 if test "x$flag" != xno; then
31743 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31744 fi
31745
31746 if test "x$THREADS_CFLAGS" != "x"; then
31747 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31748 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31749 fi
31750 fi
31751 fi
31752
31753 if test "$wxUSE_THREADS" = "yes" ; then
31754
31755for ac_func in thr_setconcurrency
31756do
31757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31758echo "$as_me:$LINENO: checking for $ac_func" >&5
31759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31760if eval "test \"\${$as_ac_var+set}\" = set"; then
31761 echo $ECHO_N "(cached) $ECHO_C" >&6
31762else
31763 cat >conftest.$ac_ext <<_ACEOF
31764/* confdefs.h. */
31765_ACEOF
31766cat confdefs.h >>conftest.$ac_ext
31767cat >>conftest.$ac_ext <<_ACEOF
31768/* end confdefs.h. */
ac1cb8d3
VS
31769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31771#define $ac_func innocuous_$ac_func
31772
a848cd7e
SC
31773/* System header to define __stub macros and hopefully few prototypes,
31774 which can conflict with char $ac_func (); below.
31775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31776 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31777
a848cd7e
SC
31778#ifdef __STDC__
31779# include <limits.h>
31780#else
31781# include <assert.h>
31782#endif
ac1cb8d3
VS
31783
31784#undef $ac_func
31785
a848cd7e
SC
31786/* Override any gcc2 internal prototype to avoid an error. */
31787#ifdef __cplusplus
31788extern "C"
31789{
31790#endif
31791/* We use char because int might match the return type of a gcc2
31792 builtin and then its argument prototype would still apply. */
31793char $ac_func ();
31794/* The GNU C library defines this for functions which it implements
31795 to always fail with ENOSYS. Some functions are actually named
31796 something starting with __ and the normal name is an alias. */
31797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31798choke me
31799#else
31800char (*f) () = $ac_func;
31801#endif
31802#ifdef __cplusplus
31803}
31804#endif
31805
31806int
31807main ()
31808{
31809return f != $ac_func;
31810 ;
31811 return 0;
31812}
31813_ACEOF
31814rm -f conftest.$ac_objext conftest$ac_exeext
31815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31816 (eval $ac_link) 2>conftest.er1
a848cd7e 31817 ac_status=$?
ac1cb8d3
VS
31818 grep -v '^ *+' conftest.er1 >conftest.err
31819 rm -f conftest.er1
31820 cat conftest.err >&5
a848cd7e
SC
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); } &&
224bf05c 31823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31825 (eval $ac_try) 2>&5
31826 ac_status=$?
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; } &&
31829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31831 (eval $ac_try) 2>&5
31832 ac_status=$?
31833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834 (exit $ac_status); }; }; then
31835 eval "$as_ac_var=yes"
31836else
31837 echo "$as_me: failed program was:" >&5
31838sed 's/^/| /' conftest.$ac_ext >&5
31839
31840eval "$as_ac_var=no"
31841fi
ac1cb8d3
VS
31842rm -f conftest.err conftest.$ac_objext \
31843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31844fi
31845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31846echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31847if test `eval echo '${'$as_ac_var'}'` = yes; then
31848 cat >>confdefs.h <<_ACEOF
31849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31850_ACEOF
31851
31852fi
31853done
31854
31855
31856
31857for ac_header in sched.h
31858do
31859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31860if eval "test \"\${$as_ac_Header+set}\" = set"; then
31861 echo "$as_me:$LINENO: checking for $ac_header" >&5
31862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31863if eval "test \"\${$as_ac_Header+set}\" = set"; then
31864 echo $ECHO_N "(cached) $ECHO_C" >&6
31865fi
31866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31868else
31869 # Is the header compilable?
31870echo "$as_me:$LINENO: checking $ac_header usability" >&5
31871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31872cat >conftest.$ac_ext <<_ACEOF
31873/* confdefs.h. */
31874_ACEOF
31875cat confdefs.h >>conftest.$ac_ext
31876cat >>conftest.$ac_ext <<_ACEOF
31877/* end confdefs.h. */
31878$ac_includes_default
31879#include <$ac_header>
31880_ACEOF
31881rm -f conftest.$ac_objext
31882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31883 (eval $ac_compile) 2>conftest.er1
a848cd7e 31884 ac_status=$?
ac1cb8d3
VS
31885 grep -v '^ *+' conftest.er1 >conftest.err
31886 rm -f conftest.er1
31887 cat conftest.err >&5
a848cd7e
SC
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); } &&
224bf05c 31890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31892 (eval $ac_try) 2>&5
31893 ac_status=$?
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); }; } &&
31896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898 (eval $ac_try) 2>&5
31899 ac_status=$?
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); }; }; then
31902 ac_header_compiler=yes
31903else
31904 echo "$as_me: failed program was:" >&5
31905sed 's/^/| /' conftest.$ac_ext >&5
31906
31907ac_header_compiler=no
31908fi
ac1cb8d3 31909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31911echo "${ECHO_T}$ac_header_compiler" >&6
31912
31913# Is the header present?
31914echo "$as_me:$LINENO: checking $ac_header presence" >&5
31915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31916cat >conftest.$ac_ext <<_ACEOF
31917/* confdefs.h. */
31918_ACEOF
31919cat confdefs.h >>conftest.$ac_ext
31920cat >>conftest.$ac_ext <<_ACEOF
31921/* end confdefs.h. */
31922#include <$ac_header>
31923_ACEOF
31924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31926 ac_status=$?
31927 grep -v '^ *+' conftest.er1 >conftest.err
31928 rm -f conftest.er1
31929 cat conftest.err >&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); } >/dev/null; then
31932 if test -s conftest.err; then
31933 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31935 else
31936 ac_cpp_err=
31937 fi
31938else
31939 ac_cpp_err=yes
31940fi
31941if test -z "$ac_cpp_err"; then
31942 ac_header_preproc=yes
31943else
31944 echo "$as_me: failed program was:" >&5
31945sed 's/^/| /' conftest.$ac_ext >&5
31946
31947 ac_header_preproc=no
31948fi
31949rm -f conftest.err conftest.$ac_ext
31950echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31951echo "${ECHO_T}$ac_header_preproc" >&6
31952
31953# So? What about this header?
ac1cb8d3
VS
31954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31955 yes:no: )
a848cd7e
SC
31956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31959echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31960 ac_header_preproc=yes
a848cd7e 31961 ;;
ac1cb8d3 31962 no:yes:* )
a848cd7e
SC
31963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31964echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31966echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31968echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31970echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31974echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31975 (
31976 cat <<\_ASBOX
ac1cb8d3
VS
31977## ----------------------------------------- ##
31978## Report this to wx-dev@lists.wxwidgets.org ##
31979## ----------------------------------------- ##
a848cd7e
SC
31980_ASBOX
31981 ) |
31982 sed "s/^/$as_me: WARNING: /" >&2
31983 ;;
31984esac
31985echo "$as_me:$LINENO: checking for $ac_header" >&5
31986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31987if eval "test \"\${$as_ac_Header+set}\" = set"; then
31988 echo $ECHO_N "(cached) $ECHO_C" >&6
31989else
ac1cb8d3 31990 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31991fi
31992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31994
31995fi
31996if test `eval echo '${'$as_ac_Header'}'` = yes; then
31997 cat >>confdefs.h <<_ACEOF
31998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31999_ACEOF
32000
32001fi
32002
32003done
32004
32005 if test "$ac_cv_header_sched_h" = "yes"; then
32006 echo "$as_me:$LINENO: checking for sched_yield" >&5
32007echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32008if test "${ac_cv_func_sched_yield+set}" = set; then
32009 echo $ECHO_N "(cached) $ECHO_C" >&6
32010else
32011 cat >conftest.$ac_ext <<_ACEOF
32012/* confdefs.h. */
32013_ACEOF
32014cat confdefs.h >>conftest.$ac_ext
32015cat >>conftest.$ac_ext <<_ACEOF
32016/* end confdefs.h. */
ac1cb8d3
VS
32017/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32019#define sched_yield innocuous_sched_yield
32020
a848cd7e
SC
32021/* System header to define __stub macros and hopefully few prototypes,
32022 which can conflict with char sched_yield (); below.
32023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32024 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32025
a848cd7e
SC
32026#ifdef __STDC__
32027# include <limits.h>
32028#else
32029# include <assert.h>
32030#endif
ac1cb8d3
VS
32031
32032#undef sched_yield
32033
a848cd7e
SC
32034/* Override any gcc2 internal prototype to avoid an error. */
32035#ifdef __cplusplus
32036extern "C"
32037{
32038#endif
32039/* We use char because int might match the return type of a gcc2
32040 builtin and then its argument prototype would still apply. */
32041char sched_yield ();
32042/* The GNU C library defines this for functions which it implements
32043 to always fail with ENOSYS. Some functions are actually named
32044 something starting with __ and the normal name is an alias. */
32045#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32046choke me
32047#else
32048char (*f) () = sched_yield;
32049#endif
32050#ifdef __cplusplus
32051}
32052#endif
32053
32054int
32055main ()
32056{
32057return f != sched_yield;
32058 ;
32059 return 0;
32060}
32061_ACEOF
32062rm -f conftest.$ac_objext conftest$ac_exeext
32063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32064 (eval $ac_link) 2>conftest.er1
a848cd7e 32065 ac_status=$?
ac1cb8d3
VS
32066 grep -v '^ *+' conftest.er1 >conftest.err
32067 rm -f conftest.er1
32068 cat conftest.err >&5
a848cd7e
SC
32069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070 (exit $ac_status); } &&
224bf05c 32071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32073 (eval $ac_try) 2>&5
32074 ac_status=$?
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; } &&
32077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32079 (eval $ac_try) 2>&5
32080 ac_status=$?
32081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082 (exit $ac_status); }; }; then
32083 ac_cv_func_sched_yield=yes
32084else
32085 echo "$as_me: failed program was:" >&5
32086sed 's/^/| /' conftest.$ac_ext >&5
32087
32088ac_cv_func_sched_yield=no
32089fi
ac1cb8d3
VS
32090rm -f conftest.err conftest.$ac_objext \
32091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32092fi
32093echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32094echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32095if test $ac_cv_func_sched_yield = yes; then
32096 cat >>confdefs.h <<\_ACEOF
32097#define HAVE_SCHED_YIELD 1
32098_ACEOF
32099
32100else
32101
32102 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32103echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32104if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32105 echo $ECHO_N "(cached) $ECHO_C" >&6
32106else
32107 ac_check_lib_save_LIBS=$LIBS
32108LIBS="-lposix4 $LIBS"
32109cat >conftest.$ac_ext <<_ACEOF
32110/* confdefs.h. */
32111_ACEOF
32112cat confdefs.h >>conftest.$ac_ext
32113cat >>conftest.$ac_ext <<_ACEOF
32114/* end confdefs.h. */
32115
32116/* Override any gcc2 internal prototype to avoid an error. */
32117#ifdef __cplusplus
32118extern "C"
32119#endif
32120/* We use char because int might match the return type of a gcc2
32121 builtin and then its argument prototype would still apply. */
32122char sched_yield ();
32123int
32124main ()
32125{
32126sched_yield ();
32127 ;
32128 return 0;
32129}
32130_ACEOF
32131rm -f conftest.$ac_objext conftest$ac_exeext
32132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32133 (eval $ac_link) 2>conftest.er1
a848cd7e 32134 ac_status=$?
ac1cb8d3
VS
32135 grep -v '^ *+' conftest.er1 >conftest.err
32136 rm -f conftest.er1
32137 cat conftest.err >&5
a848cd7e
SC
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); } &&
224bf05c 32140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32142 (eval $ac_try) 2>&5
32143 ac_status=$?
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); }; } &&
32146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32148 (eval $ac_try) 2>&5
32149 ac_status=$?
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); }; }; then
32152 ac_cv_lib_posix4_sched_yield=yes
32153else
32154 echo "$as_me: failed program was:" >&5
32155sed 's/^/| /' conftest.$ac_ext >&5
32156
32157ac_cv_lib_posix4_sched_yield=no
32158fi
ac1cb8d3
VS
32159rm -f conftest.err conftest.$ac_objext \
32160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32161LIBS=$ac_check_lib_save_LIBS
32162fi
32163echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32164echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32165if test $ac_cv_lib_posix4_sched_yield = yes; then
32166 cat >>confdefs.h <<\_ACEOF
32167#define HAVE_SCHED_YIELD 1
32168_ACEOF
32169 POSIX4_LINK=" -lposix4"
32170else
32171 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32172echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32173
32174fi
32175
32176
32177
32178fi
32179
32180 fi
32181
32182 HAVE_PRIOR_FUNCS=0
32183 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32184echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32185if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32186 echo $ECHO_N "(cached) $ECHO_C" >&6
32187else
32188 cat >conftest.$ac_ext <<_ACEOF
32189/* confdefs.h. */
32190_ACEOF
32191cat confdefs.h >>conftest.$ac_ext
32192cat >>conftest.$ac_ext <<_ACEOF
32193/* end confdefs.h. */
ac1cb8d3
VS
32194/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32196#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32197
a848cd7e
SC
32198/* System header to define __stub macros and hopefully few prototypes,
32199 which can conflict with char pthread_attr_getschedpolicy (); below.
32200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32201 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32202
a848cd7e
SC
32203#ifdef __STDC__
32204# include <limits.h>
32205#else
32206# include <assert.h>
32207#endif
ac1cb8d3
VS
32208
32209#undef pthread_attr_getschedpolicy
32210
a848cd7e
SC
32211/* Override any gcc2 internal prototype to avoid an error. */
32212#ifdef __cplusplus
32213extern "C"
32214{
32215#endif
32216/* We use char because int might match the return type of a gcc2
32217 builtin and then its argument prototype would still apply. */
32218char pthread_attr_getschedpolicy ();
32219/* The GNU C library defines this for functions which it implements
32220 to always fail with ENOSYS. Some functions are actually named
32221 something starting with __ and the normal name is an alias. */
32222#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32223choke me
32224#else
32225char (*f) () = pthread_attr_getschedpolicy;
32226#endif
32227#ifdef __cplusplus
32228}
32229#endif
32230
32231int
32232main ()
32233{
32234return f != pthread_attr_getschedpolicy;
32235 ;
32236 return 0;
32237}
32238_ACEOF
32239rm -f conftest.$ac_objext conftest$ac_exeext
32240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32241 (eval $ac_link) 2>conftest.er1
a848cd7e 32242 ac_status=$?
ac1cb8d3
VS
32243 grep -v '^ *+' conftest.er1 >conftest.err
32244 rm -f conftest.er1
32245 cat conftest.err >&5
a848cd7e
SC
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); } &&
224bf05c 32248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32250 (eval $ac_try) 2>&5
32251 ac_status=$?
32252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32253 (exit $ac_status); }; } &&
32254 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32256 (eval $ac_try) 2>&5
32257 ac_status=$?
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); }; }; then
32260 ac_cv_func_pthread_attr_getschedpolicy=yes
32261else
32262 echo "$as_me: failed program was:" >&5
32263sed 's/^/| /' conftest.$ac_ext >&5
32264
32265ac_cv_func_pthread_attr_getschedpolicy=no
32266fi
ac1cb8d3
VS
32267rm -f conftest.err conftest.$ac_objext \
32268 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32269fi
32270echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32271echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32272if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32273 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32274echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32275if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32276 echo $ECHO_N "(cached) $ECHO_C" >&6
32277else
32278 cat >conftest.$ac_ext <<_ACEOF
32279/* confdefs.h. */
32280_ACEOF
32281cat confdefs.h >>conftest.$ac_ext
32282cat >>conftest.$ac_ext <<_ACEOF
32283/* end confdefs.h. */
ac1cb8d3
VS
32284/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32286#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32287
a848cd7e
SC
32288/* System header to define __stub macros and hopefully few prototypes,
32289 which can conflict with char pthread_attr_setschedparam (); below.
32290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32291 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32292
a848cd7e
SC
32293#ifdef __STDC__
32294# include <limits.h>
32295#else
32296# include <assert.h>
32297#endif
ac1cb8d3
VS
32298
32299#undef pthread_attr_setschedparam
32300
a848cd7e
SC
32301/* Override any gcc2 internal prototype to avoid an error. */
32302#ifdef __cplusplus
32303extern "C"
32304{
32305#endif
32306/* We use char because int might match the return type of a gcc2
32307 builtin and then its argument prototype would still apply. */
32308char pthread_attr_setschedparam ();
32309/* The GNU C library defines this for functions which it implements
32310 to always fail with ENOSYS. Some functions are actually named
32311 something starting with __ and the normal name is an alias. */
32312#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32313choke me
32314#else
32315char (*f) () = pthread_attr_setschedparam;
32316#endif
32317#ifdef __cplusplus
32318}
32319#endif
32320
32321int
32322main ()
32323{
32324return f != pthread_attr_setschedparam;
32325 ;
32326 return 0;
32327}
32328_ACEOF
32329rm -f conftest.$ac_objext conftest$ac_exeext
32330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32331 (eval $ac_link) 2>conftest.er1
a848cd7e 32332 ac_status=$?
ac1cb8d3
VS
32333 grep -v '^ *+' conftest.er1 >conftest.err
32334 rm -f conftest.er1
32335 cat conftest.err >&5
a848cd7e
SC
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); } &&
224bf05c 32338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32340 (eval $ac_try) 2>&5
32341 ac_status=$?
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); }; } &&
32344 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32346 (eval $ac_try) 2>&5
32347 ac_status=$?
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); }; }; then
32350 ac_cv_func_pthread_attr_setschedparam=yes
32351else
32352 echo "$as_me: failed program was:" >&5
32353sed 's/^/| /' conftest.$ac_ext >&5
32354
32355ac_cv_func_pthread_attr_setschedparam=no
32356fi
ac1cb8d3
VS
32357rm -f conftest.err conftest.$ac_objext \
32358 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32359fi
32360echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32361echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32362if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32363 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32364echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32365if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32366 echo $ECHO_N "(cached) $ECHO_C" >&6
32367else
32368 cat >conftest.$ac_ext <<_ACEOF
32369/* confdefs.h. */
32370_ACEOF
32371cat confdefs.h >>conftest.$ac_ext
32372cat >>conftest.$ac_ext <<_ACEOF
32373/* end confdefs.h. */
ac1cb8d3
VS
32374/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32376#define sched_get_priority_max innocuous_sched_get_priority_max
32377
a848cd7e
SC
32378/* System header to define __stub macros and hopefully few prototypes,
32379 which can conflict with char sched_get_priority_max (); below.
32380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32381 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32382
a848cd7e
SC
32383#ifdef __STDC__
32384# include <limits.h>
32385#else
32386# include <assert.h>
32387#endif
ac1cb8d3
VS
32388
32389#undef sched_get_priority_max
32390
a848cd7e
SC
32391/* Override any gcc2 internal prototype to avoid an error. */
32392#ifdef __cplusplus
32393extern "C"
32394{
32395#endif
32396/* We use char because int might match the return type of a gcc2
32397 builtin and then its argument prototype would still apply. */
32398char sched_get_priority_max ();
32399/* The GNU C library defines this for functions which it implements
32400 to always fail with ENOSYS. Some functions are actually named
32401 something starting with __ and the normal name is an alias. */
32402#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32403choke me
32404#else
32405char (*f) () = sched_get_priority_max;
32406#endif
32407#ifdef __cplusplus
32408}
32409#endif
32410
32411int
32412main ()
32413{
32414return f != sched_get_priority_max;
32415 ;
32416 return 0;
32417}
32418_ACEOF
32419rm -f conftest.$ac_objext conftest$ac_exeext
32420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32421 (eval $ac_link) 2>conftest.er1
a848cd7e 32422 ac_status=$?
ac1cb8d3
VS
32423 grep -v '^ *+' conftest.er1 >conftest.err
32424 rm -f conftest.er1
32425 cat conftest.err >&5
a848cd7e
SC
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); } &&
224bf05c 32428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32430 (eval $ac_try) 2>&5
32431 ac_status=$?
32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); }; } &&
32434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32436 (eval $ac_try) 2>&5
32437 ac_status=$?
32438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439 (exit $ac_status); }; }; then
32440 ac_cv_func_sched_get_priority_max=yes
32441else
32442 echo "$as_me: failed program was:" >&5
32443sed 's/^/| /' conftest.$ac_ext >&5
32444
32445ac_cv_func_sched_get_priority_max=no
32446fi
ac1cb8d3
VS
32447rm -f conftest.err conftest.$ac_objext \
32448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32449fi
32450echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32451echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32452if test $ac_cv_func_sched_get_priority_max = yes; then
32453 HAVE_PRIOR_FUNCS=1
32454else
32455 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32456echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32457if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32458 echo $ECHO_N "(cached) $ECHO_C" >&6
32459else
32460 ac_check_lib_save_LIBS=$LIBS
32461LIBS="-lposix4 $LIBS"
32462cat >conftest.$ac_ext <<_ACEOF
32463/* confdefs.h. */
32464_ACEOF
32465cat confdefs.h >>conftest.$ac_ext
32466cat >>conftest.$ac_ext <<_ACEOF
32467/* end confdefs.h. */
32468
32469/* Override any gcc2 internal prototype to avoid an error. */
32470#ifdef __cplusplus
32471extern "C"
32472#endif
32473/* We use char because int might match the return type of a gcc2
32474 builtin and then its argument prototype would still apply. */
32475char sched_get_priority_max ();
32476int
32477main ()
32478{
32479sched_get_priority_max ();
32480 ;
32481 return 0;
32482}
32483_ACEOF
32484rm -f conftest.$ac_objext conftest$ac_exeext
32485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32486 (eval $ac_link) 2>conftest.er1
a848cd7e 32487 ac_status=$?
ac1cb8d3
VS
32488 grep -v '^ *+' conftest.er1 >conftest.err
32489 rm -f conftest.er1
32490 cat conftest.err >&5
a848cd7e
SC
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); } &&
224bf05c 32493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32495 (eval $ac_try) 2>&5
32496 ac_status=$?
32497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); }; } &&
32499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32501 (eval $ac_try) 2>&5
32502 ac_status=$?
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; }; then
32505 ac_cv_lib_posix4_sched_get_priority_max=yes
32506else
32507 echo "$as_me: failed program was:" >&5
32508sed 's/^/| /' conftest.$ac_ext >&5
32509
32510ac_cv_lib_posix4_sched_get_priority_max=no
32511fi
ac1cb8d3
VS
32512rm -f conftest.err conftest.$ac_objext \
32513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32514LIBS=$ac_check_lib_save_LIBS
32515fi
32516echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32517echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32518if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32519
32520 HAVE_PRIOR_FUNCS=1
32521 POSIX4_LINK=" -lposix4"
32522
32523fi
32524
32525
32526fi
32527
32528
32529fi
32530
32531
32532fi
32533
32534
32535 if test "$HAVE_PRIOR_FUNCS" = 1; then
32536 cat >>confdefs.h <<\_ACEOF
32537#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32538_ACEOF
32539
32540 else
32541 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32542echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32543 fi
32544
32545 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32546echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32547if test "${ac_cv_func_pthread_cancel+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32549else
32550 cat >conftest.$ac_ext <<_ACEOF
32551/* confdefs.h. */
32552_ACEOF
32553cat confdefs.h >>conftest.$ac_ext
32554cat >>conftest.$ac_ext <<_ACEOF
32555/* end confdefs.h. */
ac1cb8d3
VS
32556/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32558#define pthread_cancel innocuous_pthread_cancel
32559
a848cd7e
SC
32560/* System header to define __stub macros and hopefully few prototypes,
32561 which can conflict with char pthread_cancel (); below.
32562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32563 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32564
a848cd7e
SC
32565#ifdef __STDC__
32566# include <limits.h>
32567#else
32568# include <assert.h>
32569#endif
ac1cb8d3
VS
32570
32571#undef pthread_cancel
32572
a848cd7e
SC
32573/* Override any gcc2 internal prototype to avoid an error. */
32574#ifdef __cplusplus
32575extern "C"
32576{
32577#endif
32578/* We use char because int might match the return type of a gcc2
32579 builtin and then its argument prototype would still apply. */
32580char pthread_cancel ();
32581/* The GNU C library defines this for functions which it implements
32582 to always fail with ENOSYS. Some functions are actually named
32583 something starting with __ and the normal name is an alias. */
32584#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32585choke me
32586#else
32587char (*f) () = pthread_cancel;
32588#endif
32589#ifdef __cplusplus
32590}
32591#endif
32592
32593int
32594main ()
32595{
32596return f != pthread_cancel;
32597 ;
32598 return 0;
32599}
32600_ACEOF
32601rm -f conftest.$ac_objext conftest$ac_exeext
32602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32603 (eval $ac_link) 2>conftest.er1
a848cd7e 32604 ac_status=$?
ac1cb8d3
VS
32605 grep -v '^ *+' conftest.er1 >conftest.err
32606 rm -f conftest.er1
32607 cat conftest.err >&5
a848cd7e
SC
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); } &&
224bf05c 32610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612 (eval $ac_try) 2>&5
32613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; } &&
32616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32618 (eval $ac_try) 2>&5
32619 ac_status=$?
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); }; }; then
32622 ac_cv_func_pthread_cancel=yes
32623else
32624 echo "$as_me: failed program was:" >&5
32625sed 's/^/| /' conftest.$ac_ext >&5
32626
32627ac_cv_func_pthread_cancel=no
32628fi
ac1cb8d3
VS
32629rm -f conftest.err conftest.$ac_objext \
32630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32631fi
32632echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32633echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32634if test $ac_cv_func_pthread_cancel = yes; then
32635 cat >>confdefs.h <<\_ACEOF
32636#define HAVE_PTHREAD_CANCEL 1
32637_ACEOF
32638
32639else
32640 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32641echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32642fi
32643
32644
32645
32646
32647 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32648echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32649if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32650 echo $ECHO_N "(cached) $ECHO_C" >&6
32651else
32652
32653 cat >conftest.$ac_ext <<_ACEOF
32654/* confdefs.h. */
32655_ACEOF
32656cat confdefs.h >>conftest.$ac_ext
32657cat >>conftest.$ac_ext <<_ACEOF
32658/* end confdefs.h. */
32659#include <pthread.h>
32660int
32661main ()
32662{
32663
32664 pthread_mutexattr_t attr;
32665 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32666
32667 ;
32668 return 0;
32669}
32670_ACEOF
32671rm -f conftest.$ac_objext
32672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32673 (eval $ac_compile) 2>conftest.er1
a848cd7e 32674 ac_status=$?
ac1cb8d3
VS
32675 grep -v '^ *+' conftest.er1 >conftest.err
32676 rm -f conftest.er1
32677 cat conftest.err >&5
a848cd7e
SC
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } &&
224bf05c 32680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682 (eval $ac_try) 2>&5
32683 ac_status=$?
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); }; } &&
32686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688 (eval $ac_try) 2>&5
32689 ac_status=$?
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; }; then
32692
32693 wx_cv_type_pthread_mutexattr_t=yes
32694
32695else
32696 echo "$as_me: failed program was:" >&5
32697sed 's/^/| /' conftest.$ac_ext >&5
32698
32699
32700 wx_cv_type_pthread_mutexattr_t=no
32701
32702
32703fi
ac1cb8d3 32704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32705
32706fi
32707echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32708echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32709
32710 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32711 cat >>confdefs.h <<\_ACEOF
32712#define HAVE_PTHREAD_MUTEXATTR_T 1
32713_ACEOF
32714
32715 else
32716 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32717echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32718if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32719 echo $ECHO_N "(cached) $ECHO_C" >&6
32720else
32721
32722 cat >conftest.$ac_ext <<_ACEOF
32723/* confdefs.h. */
32724_ACEOF
32725cat confdefs.h >>conftest.$ac_ext
32726cat >>conftest.$ac_ext <<_ACEOF
32727/* end confdefs.h. */
32728#include <pthread.h>
32729int
32730main ()
32731{
32732
32733 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32734
32735 ;
32736 return 0;
32737}
32738_ACEOF
32739rm -f conftest.$ac_objext
32740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32741 (eval $ac_compile) 2>conftest.er1
a848cd7e 32742 ac_status=$?
ac1cb8d3
VS
32743 grep -v '^ *+' conftest.er1 >conftest.err
32744 rm -f conftest.er1
32745 cat conftest.err >&5
a848cd7e
SC
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); } &&
224bf05c 32748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32750 (eval $ac_try) 2>&5
32751 ac_status=$?
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); }; } &&
32754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32756 (eval $ac_try) 2>&5
32757 ac_status=$?
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); }; }; then
32760
32761 wx_cv_type_pthread_rec_mutex_init=yes
32762
32763else
32764 echo "$as_me: failed program was:" >&5
32765sed 's/^/| /' conftest.$ac_ext >&5
32766
32767
32768 wx_cv_type_pthread_rec_mutex_init=no
32769
32770
32771fi
ac1cb8d3 32772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32773
32774fi
32775echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32776echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32777 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32778 cat >>confdefs.h <<\_ACEOF
32779#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32780_ACEOF
32781
32782 else
32783 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32784echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32785 fi
32786 fi
32787 fi
32788
32789else
32790 if test "$wxUSE_THREADS" = "yes" ; then
32791 case "${host}" in
32792 *-*-mingw32* )
32793 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32794echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32795if test "${wx_cv_cflags_mthread+set}" = set; then
32796 echo $ECHO_N "(cached) $ECHO_C" >&6
32797else
32798
32799 CFLAGS_OLD="$CFLAGS"
32800 CFLAGS="$CFLAGS -mthreads"
32801 cat >conftest.$ac_ext <<_ACEOF
32802/* confdefs.h. */
32803_ACEOF
32804cat confdefs.h >>conftest.$ac_ext
32805cat >>conftest.$ac_ext <<_ACEOF
32806/* end confdefs.h. */
32807
32808int
32809main ()
32810{
32811
32812 ;
32813 return 0;
32814}
32815_ACEOF
32816rm -f conftest.$ac_objext
32817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32818 (eval $ac_compile) 2>conftest.er1
a848cd7e 32819 ac_status=$?
ac1cb8d3
VS
32820 grep -v '^ *+' conftest.er1 >conftest.err
32821 rm -f conftest.er1
32822 cat conftest.err >&5
a848cd7e
SC
32823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); } &&
224bf05c 32825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32827 (eval $ac_try) 2>&5
32828 ac_status=$?
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); }; } &&
32831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32833 (eval $ac_try) 2>&5
32834 ac_status=$?
32835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836 (exit $ac_status); }; }; then
32837 wx_cv_cflags_mthread=yes
32838else
32839 echo "$as_me: failed program was:" >&5
32840sed 's/^/| /' conftest.$ac_ext >&5
32841
32842wx_cv_cflags_mthread=no
32843
32844fi
ac1cb8d3 32845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32846
32847
32848fi
32849echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32850echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
32851
32852 if test "$wx_cv_cflags_mthread" = "yes"; then
32853 CXXFLAGS="$CXXFLAGS -mthreads"
32854 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32855 LDFLAGS="$LDFLAGS -mthreads"
32856 else
32857 CFLAGS="$CFLAGS_OLD"
32858 fi
32859 ;;
32860 *-pc-os2*emx )
32861 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32862 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32863 LDFLAGS="$LDFLAGS -Zmt"
32864 ;;
32865 esac
32866 fi
32867fi
32868
32869if test "$wxUSE_THREADS" = "yes"; then
32870 cat >>confdefs.h <<\_ACEOF
32871#define wxUSE_THREADS 1
32872_ACEOF
32873
32874
32875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
32876else
32877 if test "$ac_cv_func_strtok_r" = "yes"; then
32878 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32879echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
32880 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32881 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
32882 echo "$as_me:$LINENO: result: yes" >&5
32883echo "${ECHO_T}yes" >&6
32884 else
32885 echo "$as_me:$LINENO: result: no" >&5
32886echo "${ECHO_T}no" >&6
32887 fi
32888 fi
32889fi
32890
32891if test "$WXGTK20" = 1 ; then
32892 cat >>confdefs.h <<_ACEOF
32893#define __WXGTK20__ $WXGTK20
32894_ACEOF
32895
32896 WXGTK12=1
32897fi
32898
32899if test "$WXGTK12" = 1 ; then
32900 cat >>confdefs.h <<_ACEOF
32901#define __WXGTK12__ $WXGTK12
32902_ACEOF
32903
32904fi
32905
32906if test "$WXGTK127" = 1 ; then
32907 cat >>confdefs.h <<_ACEOF
32908#define __WXGTK127__ $WXGTK127
32909_ACEOF
32910
32911fi
32912
32913if test "$WXGPE" = 1 ; then
32914 cat >>confdefs.h <<_ACEOF
32915#define __WXGPE__ $WXGPE
32916_ACEOF
32917
32918fi
32919
32920WXDEBUG=
32921
32922if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32923 WXDEBUG="-g"
32924 wxUSE_OPTIMISE=no
32925fi
32926
32927if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32928 wxUSE_DEBUG_INFO=yes
32929 WXDEBUG="-ggdb"
32930fi
32931
32932if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
32933 cat >>confdefs.h <<\_ACEOF
32934#define WXDEBUG 1
32935_ACEOF
32936
32937 WXDEBUG_DEFINE="-D__WXDEBUG__"
32938else
32939 if test "$wxUSE_GTK" = 1 ; then
32940 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32941 fi
32942fi
32943
32944if test "$wxUSE_MEM_TRACING" = "yes" ; then
32945 cat >>confdefs.h <<\_ACEOF
32946#define wxUSE_MEMORY_TRACING 1
32947_ACEOF
32948
32949 cat >>confdefs.h <<\_ACEOF
32950#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
32951_ACEOF
32952
32953 cat >>confdefs.h <<\_ACEOF
32954#define wxUSE_DEBUG_NEW_ALWAYS 1
32955_ACEOF
32956
32957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32958fi
32959
32960if test "$wxUSE_DMALLOC" = "yes" ; then
32961 DMALLOC_LIBS="-ldmalloc"
32962fi
32963
32964PROFILE=
32965if test "$wxUSE_PROFILE" = "yes" ; then
32966 PROFILE=" -pg"
32967fi
32968
32969CODE_GEN_FLAGS=
32970CODE_GEN_FLAGS_CXX=
32971if test "$GCC" = "yes" ; then
32972 if test "$wxUSE_NO_RTTI" = "yes" ; then
32973 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
32974 fi
32975 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32976 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32977 fi
32978 if test "$wxUSE_PERMISSIVE" = "yes" ; then
32979 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32980 fi
32981
32982 case "${host}" in
32983 powerpc*-*-aix* )
32984 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32985 ;;
32986 *-hppa* )
32987 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32988 ;;
32989 esac
32990fi
32991
32992OPTIMISE=
32993if test "$wxUSE_OPTIMISE" = "no" ; then
32994 if test "$GCC" = yes ; then
32995 OPTIMISE="-O0"
32996 fi
32997else
32998 if test "$GCC" = yes ; then
32999 OPTIMISE="-O2"
33000
33001 case "${host}" in
33002 i586-*-*|i686-*-* )
33003 OPTIMISE="${OPTIMISE} "
33004 ;;
33005 esac
33006 else
33007 OPTIMISE="-O"
33008 fi
33009fi
33010
33011
33012if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33013 cat >>confdefs.h <<\_ACEOF
33014#define WXWIN_COMPATIBILITY_2_2 1
33015_ACEOF
33016
33017
33018 WXWIN_COMPATIBILITY_2_4="yes"
33019fi
33020
33021if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33022 cat >>confdefs.h <<\_ACEOF
33023#define WXWIN_COMPATIBILITY_2_4 1
33024_ACEOF
33025
33026fi
33027
33028
33029if test "$wxUSE_GUI" = "yes"; then
33030 cat >>confdefs.h <<\_ACEOF
33031#define wxUSE_GUI 1
33032_ACEOF
33033
33034
33035 else
33036 cat >>confdefs.h <<\_ACEOF
33037#define wxUSE_NOGUI 1
33038_ACEOF
33039
33040fi
33041
33042
33043if test "$wxUSE_UNIX" = "yes"; then
33044 cat >>confdefs.h <<\_ACEOF
33045#define wxUSE_UNIX 1
33046_ACEOF
33047
33048fi
33049
33050
33051if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33052
33053 HAVE_DL_FUNCS=0
33054 HAVE_SHL_FUNCS=0
33055 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33056 if test "$USE_DARWIN" = 1; then
33057 HAVE_DL_FUNCS=1
33058 else
33059
33060for ac_func in dlopen
33061do
33062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33063echo "$as_me:$LINENO: checking for $ac_func" >&5
33064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33065if eval "test \"\${$as_ac_var+set}\" = set"; then
33066 echo $ECHO_N "(cached) $ECHO_C" >&6
33067else
33068 cat >conftest.$ac_ext <<_ACEOF
33069/* confdefs.h. */
33070_ACEOF
33071cat confdefs.h >>conftest.$ac_ext
33072cat >>conftest.$ac_ext <<_ACEOF
33073/* end confdefs.h. */
ac1cb8d3
VS
33074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33076#define $ac_func innocuous_$ac_func
33077
a848cd7e
SC
33078/* System header to define __stub macros and hopefully few prototypes,
33079 which can conflict with char $ac_func (); below.
33080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33081 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33082
a848cd7e
SC
33083#ifdef __STDC__
33084# include <limits.h>
33085#else
33086# include <assert.h>
33087#endif
ac1cb8d3
VS
33088
33089#undef $ac_func
33090
a848cd7e
SC
33091/* Override any gcc2 internal prototype to avoid an error. */
33092#ifdef __cplusplus
33093extern "C"
33094{
33095#endif
33096/* We use char because int might match the return type of a gcc2
33097 builtin and then its argument prototype would still apply. */
33098char $ac_func ();
33099/* The GNU C library defines this for functions which it implements
33100 to always fail with ENOSYS. Some functions are actually named
33101 something starting with __ and the normal name is an alias. */
33102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33103choke me
33104#else
33105char (*f) () = $ac_func;
33106#endif
33107#ifdef __cplusplus
33108}
33109#endif
33110
33111int
33112main ()
33113{
33114return f != $ac_func;
33115 ;
33116 return 0;
33117}
33118_ACEOF
33119rm -f conftest.$ac_objext conftest$ac_exeext
33120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33121 (eval $ac_link) 2>conftest.er1
a848cd7e 33122 ac_status=$?
ac1cb8d3
VS
33123 grep -v '^ *+' conftest.er1 >conftest.err
33124 rm -f conftest.er1
33125 cat conftest.err >&5
a848cd7e
SC
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); } &&
224bf05c 33128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33130 (eval $ac_try) 2>&5
33131 ac_status=$?
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); }; } &&
33134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33136 (eval $ac_try) 2>&5
33137 ac_status=$?
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); }; }; then
33140 eval "$as_ac_var=yes"
33141else
33142 echo "$as_me: failed program was:" >&5
33143sed 's/^/| /' conftest.$ac_ext >&5
33144
33145eval "$as_ac_var=no"
33146fi
ac1cb8d3
VS
33147rm -f conftest.err conftest.$ac_objext \
33148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33149fi
33150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33152if test `eval echo '${'$as_ac_var'}'` = yes; then
33153 cat >>confdefs.h <<_ACEOF
33154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33155_ACEOF
33156
33157 cat >>confdefs.h <<\_ACEOF
33158#define HAVE_DLOPEN 1
33159_ACEOF
33160
33161 HAVE_DL_FUNCS=1
33162
33163else
33164
33165 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33166echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33167if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33168 echo $ECHO_N "(cached) $ECHO_C" >&6
33169else
33170 ac_check_lib_save_LIBS=$LIBS
33171LIBS="-ldl $LIBS"
33172cat >conftest.$ac_ext <<_ACEOF
33173/* confdefs.h. */
33174_ACEOF
33175cat confdefs.h >>conftest.$ac_ext
33176cat >>conftest.$ac_ext <<_ACEOF
33177/* end confdefs.h. */
33178
33179/* Override any gcc2 internal prototype to avoid an error. */
33180#ifdef __cplusplus
33181extern "C"
33182#endif
33183/* We use char because int might match the return type of a gcc2
33184 builtin and then its argument prototype would still apply. */
33185char dlopen ();
33186int
33187main ()
33188{
33189dlopen ();
33190 ;
33191 return 0;
33192}
33193_ACEOF
33194rm -f conftest.$ac_objext conftest$ac_exeext
33195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33196 (eval $ac_link) 2>conftest.er1
a848cd7e 33197 ac_status=$?
ac1cb8d3
VS
33198 grep -v '^ *+' conftest.er1 >conftest.err
33199 rm -f conftest.er1
33200 cat conftest.err >&5
a848cd7e
SC
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); } &&
224bf05c 33203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33205 (eval $ac_try) 2>&5
33206 ac_status=$?
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); }; } &&
33209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33211 (eval $ac_try) 2>&5
33212 ac_status=$?
33213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); }; }; then
33215 ac_cv_lib_dl_dlopen=yes
33216else
33217 echo "$as_me: failed program was:" >&5
33218sed 's/^/| /' conftest.$ac_ext >&5
33219
33220ac_cv_lib_dl_dlopen=no
33221fi
ac1cb8d3
VS
33222rm -f conftest.err conftest.$ac_objext \
33223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33224LIBS=$ac_check_lib_save_LIBS
33225fi
33226echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33227echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33228if test $ac_cv_lib_dl_dlopen = yes; then
33229
33230 cat >>confdefs.h <<\_ACEOF
33231#define HAVE_DLOPEN 1
33232_ACEOF
33233
33234 HAVE_DL_FUNCS=1
33235 DL_LINK=" -ldl$DL_LINK"
33236
33237else
33238
33239
33240for ac_func in shl_load
33241do
33242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33243echo "$as_me:$LINENO: checking for $ac_func" >&5
33244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33245if eval "test \"\${$as_ac_var+set}\" = set"; then
33246 echo $ECHO_N "(cached) $ECHO_C" >&6
33247else
33248 cat >conftest.$ac_ext <<_ACEOF
33249/* confdefs.h. */
33250_ACEOF
33251cat confdefs.h >>conftest.$ac_ext
33252cat >>conftest.$ac_ext <<_ACEOF
33253/* end confdefs.h. */
ac1cb8d3
VS
33254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33256#define $ac_func innocuous_$ac_func
33257
a848cd7e
SC
33258/* System header to define __stub macros and hopefully few prototypes,
33259 which can conflict with char $ac_func (); below.
33260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33261 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33262
a848cd7e
SC
33263#ifdef __STDC__
33264# include <limits.h>
33265#else
33266# include <assert.h>
33267#endif
ac1cb8d3
VS
33268
33269#undef $ac_func
33270
a848cd7e
SC
33271/* Override any gcc2 internal prototype to avoid an error. */
33272#ifdef __cplusplus
33273extern "C"
33274{
33275#endif
33276/* We use char because int might match the return type of a gcc2
33277 builtin and then its argument prototype would still apply. */
33278char $ac_func ();
33279/* The GNU C library defines this for functions which it implements
33280 to always fail with ENOSYS. Some functions are actually named
33281 something starting with __ and the normal name is an alias. */
33282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33283choke me
33284#else
33285char (*f) () = $ac_func;
33286#endif
33287#ifdef __cplusplus
33288}
33289#endif
33290
33291int
33292main ()
33293{
33294return f != $ac_func;
33295 ;
33296 return 0;
33297}
33298_ACEOF
33299rm -f conftest.$ac_objext conftest$ac_exeext
33300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33301 (eval $ac_link) 2>conftest.er1
a848cd7e 33302 ac_status=$?
ac1cb8d3
VS
33303 grep -v '^ *+' conftest.er1 >conftest.err
33304 rm -f conftest.er1
33305 cat conftest.err >&5
a848cd7e
SC
33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307 (exit $ac_status); } &&
224bf05c 33308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310 (eval $ac_try) 2>&5
33311 ac_status=$?
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; } &&
33314 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316 (eval $ac_try) 2>&5
33317 ac_status=$?
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); }; }; then
33320 eval "$as_ac_var=yes"
33321else
33322 echo "$as_me: failed program was:" >&5
33323sed 's/^/| /' conftest.$ac_ext >&5
33324
33325eval "$as_ac_var=no"
33326fi
ac1cb8d3
VS
33327rm -f conftest.err conftest.$ac_objext \
33328 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33329fi
33330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33332if test `eval echo '${'$as_ac_var'}'` = yes; then
33333 cat >>confdefs.h <<_ACEOF
33334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33335_ACEOF
33336
33337 cat >>confdefs.h <<\_ACEOF
33338#define HAVE_SHL_LOAD 1
33339_ACEOF
33340
33341 HAVE_SHL_FUNCS=1
33342
33343else
33344
33345 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33346echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33347if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33348 echo $ECHO_N "(cached) $ECHO_C" >&6
33349else
33350 ac_check_lib_save_LIBS=$LIBS
33351LIBS="-lshl_load $LIBS"
33352cat >conftest.$ac_ext <<_ACEOF
33353/* confdefs.h. */
33354_ACEOF
33355cat confdefs.h >>conftest.$ac_ext
33356cat >>conftest.$ac_ext <<_ACEOF
33357/* end confdefs.h. */
33358
33359/* Override any gcc2 internal prototype to avoid an error. */
33360#ifdef __cplusplus
33361extern "C"
33362#endif
33363/* We use char because int might match the return type of a gcc2
33364 builtin and then its argument prototype would still apply. */
33365char dld ();
33366int
33367main ()
33368{
33369dld ();
33370 ;
33371 return 0;
33372}
33373_ACEOF
33374rm -f conftest.$ac_objext conftest$ac_exeext
33375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33376 (eval $ac_link) 2>conftest.er1
a848cd7e 33377 ac_status=$?
ac1cb8d3
VS
33378 grep -v '^ *+' conftest.er1 >conftest.err
33379 rm -f conftest.er1
33380 cat conftest.err >&5
a848cd7e
SC
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); } &&
224bf05c 33383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33385 (eval $ac_try) 2>&5
33386 ac_status=$?
33387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388 (exit $ac_status); }; } &&
33389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33391 (eval $ac_try) 2>&5
33392 ac_status=$?
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); }; }; then
33395 ac_cv_lib_shl_load_dld=yes
33396else
33397 echo "$as_me: failed program was:" >&5
33398sed 's/^/| /' conftest.$ac_ext >&5
33399
33400ac_cv_lib_shl_load_dld=no
33401fi
ac1cb8d3
VS
33402rm -f conftest.err conftest.$ac_objext \
33403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33404LIBS=$ac_check_lib_save_LIBS
33405fi
33406echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33407echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33408if test $ac_cv_lib_shl_load_dld = yes; then
33409
33410 HAVE_SHL_FUNCS=1
33411 DL_LINK=" -ldld$DL_LINK"
33412
33413fi
33414
33415
33416fi
33417done
33418
33419
33420fi
33421
33422
33423fi
33424done
33425
33426
33427 if test "$HAVE_DL_FUNCS" = 1; then
33428
33429for ac_func in dlerror
33430do
33431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33432echo "$as_me:$LINENO: checking for $ac_func" >&5
33433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33434if eval "test \"\${$as_ac_var+set}\" = set"; then
33435 echo $ECHO_N "(cached) $ECHO_C" >&6
33436else
33437 cat >conftest.$ac_ext <<_ACEOF
33438/* confdefs.h. */
33439_ACEOF
33440cat confdefs.h >>conftest.$ac_ext
33441cat >>conftest.$ac_ext <<_ACEOF
33442/* end confdefs.h. */
ac1cb8d3
VS
33443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33445#define $ac_func innocuous_$ac_func
33446
a848cd7e
SC
33447/* System header to define __stub macros and hopefully few prototypes,
33448 which can conflict with char $ac_func (); below.
33449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33450 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33451
a848cd7e
SC
33452#ifdef __STDC__
33453# include <limits.h>
33454#else
33455# include <assert.h>
33456#endif
ac1cb8d3
VS
33457
33458#undef $ac_func
33459
a848cd7e
SC
33460/* Override any gcc2 internal prototype to avoid an error. */
33461#ifdef __cplusplus
33462extern "C"
33463{
33464#endif
33465/* We use char because int might match the return type of a gcc2
33466 builtin and then its argument prototype would still apply. */
33467char $ac_func ();
33468/* The GNU C library defines this for functions which it implements
33469 to always fail with ENOSYS. Some functions are actually named
33470 something starting with __ and the normal name is an alias. */
33471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33472choke me
33473#else
33474char (*f) () = $ac_func;
33475#endif
33476#ifdef __cplusplus
33477}
33478#endif
33479
33480int
33481main ()
33482{
33483return f != $ac_func;
33484 ;
33485 return 0;
33486}
33487_ACEOF
33488rm -f conftest.$ac_objext conftest$ac_exeext
33489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33490 (eval $ac_link) 2>conftest.er1
a848cd7e 33491 ac_status=$?
ac1cb8d3
VS
33492 grep -v '^ *+' conftest.er1 >conftest.err
33493 rm -f conftest.er1
33494 cat conftest.err >&5
a848cd7e
SC
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); } &&
224bf05c 33497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33499 (eval $ac_try) 2>&5
33500 ac_status=$?
33501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); }; } &&
33503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33505 (eval $ac_try) 2>&5
33506 ac_status=$?
33507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508 (exit $ac_status); }; }; then
33509 eval "$as_ac_var=yes"
33510else
33511 echo "$as_me: failed program was:" >&5
33512sed 's/^/| /' conftest.$ac_ext >&5
33513
33514eval "$as_ac_var=no"
33515fi
ac1cb8d3
VS
33516rm -f conftest.err conftest.$ac_objext \
33517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33518fi
33519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33521if test `eval echo '${'$as_ac_var'}'` = yes; then
33522 cat >>confdefs.h <<_ACEOF
33523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33524_ACEOF
33525 cat >>confdefs.h <<\_ACEOF
33526#define HAVE_DLERROR 1
33527_ACEOF
33528
33529else
33530
33531 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33532echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33533if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33534 echo $ECHO_N "(cached) $ECHO_C" >&6
33535else
33536 ac_check_lib_save_LIBS=$LIBS
33537LIBS="-ldl $LIBS"
33538cat >conftest.$ac_ext <<_ACEOF
33539/* confdefs.h. */
33540_ACEOF
33541cat confdefs.h >>conftest.$ac_ext
33542cat >>conftest.$ac_ext <<_ACEOF
33543/* end confdefs.h. */
33544
33545/* Override any gcc2 internal prototype to avoid an error. */
33546#ifdef __cplusplus
33547extern "C"
33548#endif
33549/* We use char because int might match the return type of a gcc2
33550 builtin and then its argument prototype would still apply. */
33551char dlerror ();
33552int
33553main ()
33554{
33555dlerror ();
33556 ;
33557 return 0;
33558}
33559_ACEOF
33560rm -f conftest.$ac_objext conftest$ac_exeext
33561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33562 (eval $ac_link) 2>conftest.er1
a848cd7e 33563 ac_status=$?
ac1cb8d3
VS
33564 grep -v '^ *+' conftest.er1 >conftest.err
33565 rm -f conftest.er1
33566 cat conftest.err >&5
a848cd7e
SC
33567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568 (exit $ac_status); } &&
224bf05c 33569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33571 (eval $ac_try) 2>&5
33572 ac_status=$?
33573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574 (exit $ac_status); }; } &&
33575 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33577 (eval $ac_try) 2>&5
33578 ac_status=$?
33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); }; }; then
33581 ac_cv_lib_dl_dlerror=yes
33582else
33583 echo "$as_me: failed program was:" >&5
33584sed 's/^/| /' conftest.$ac_ext >&5
33585
33586ac_cv_lib_dl_dlerror=no
33587fi
ac1cb8d3
VS
33588rm -f conftest.err conftest.$ac_objext \
33589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33590LIBS=$ac_check_lib_save_LIBS
33591fi
33592echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33593echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33594if test $ac_cv_lib_dl_dlerror = yes; then
33595 cat >>confdefs.h <<\_ACEOF
33596#define HAVE_DLERROR 1
33597_ACEOF
33598
33599fi
33600
33601
33602
33603fi
33604done
33605
33606 fi
33607 fi
33608
33609 if test "$HAVE_DL_FUNCS" = 0; then
33610 if test "$HAVE_SHL_FUNCS" = 0; then
33611 if test "$USE_UNIX" = 1; then
33612 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33613echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33614 wxUSE_DYNAMIC_LOADER=no
33615 wxUSE_DYNLIB_CLASS=no
33616 else
33617 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33618echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33619 fi
33620 fi
33621 fi
33622 fi
33623fi
33624
33625if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33626 cat >>confdefs.h <<\_ACEOF
33627#define wxUSE_DYNAMIC_LOADER 1
33628_ACEOF
33629
33630fi
33631if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33632 cat >>confdefs.h <<\_ACEOF
33633#define wxUSE_DYNLIB_CLASS 1
33634_ACEOF
33635
33636fi
33637
33638
33639
33640if test "$wxUSE_PLUGINS" = "yes" ; then
33641 if test "$wxUSE_SHARED" = "no" ; then
33642 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33643echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33644 wxUSE_PLUGINS=no
33645 fi
33646 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33647 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33648echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33649 wxUSE_PLUGINS=no
33650 fi
33651 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33652 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33653echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33654 wxUSE_PLUGINS=no
33655 fi
33656 if test "$wxUSE_PLUGINS" = "yes" ; then
33657 cat >>confdefs.h <<\_ACEOF
33658#define wxUSE_PLUGINS 1
33659_ACEOF
33660
33661 fi
33662fi
33663
33664
33665if test "$wxUSE_STL" = "yes"; then
33666 cat >>confdefs.h <<\_ACEOF
33667#define wxUSE_STL 1
33668_ACEOF
33669
33670fi
33671
33672if test "$wxUSE_APPLE_IEEE" = "yes"; then
33673 cat >>confdefs.h <<\_ACEOF
33674#define wxUSE_APPLE_IEEE 1
33675_ACEOF
33676
33677fi
33678
33679if test "$wxUSE_TIMER" = "yes"; then
33680 cat >>confdefs.h <<\_ACEOF
33681#define wxUSE_TIMER 1
33682_ACEOF
33683
33684fi
33685
33686WITH_PLUGIN_SDL=0
33687if test "$wxUSE_SOUND" = "yes"; then
33688 if test "$USE_UNIX" = "1" ; then
33689
33690for ac_header in sys/soundcard.h
33691do
33692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33693if eval "test \"\${$as_ac_Header+set}\" = set"; then
33694 echo "$as_me:$LINENO: checking for $ac_header" >&5
33695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33696if eval "test \"\${$as_ac_Header+set}\" = set"; then
33697 echo $ECHO_N "(cached) $ECHO_C" >&6
33698fi
33699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33701else
33702 # Is the header compilable?
33703echo "$as_me:$LINENO: checking $ac_header usability" >&5
33704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33705cat >conftest.$ac_ext <<_ACEOF
33706/* confdefs.h. */
33707_ACEOF
33708cat confdefs.h >>conftest.$ac_ext
33709cat >>conftest.$ac_ext <<_ACEOF
33710/* end confdefs.h. */
33711$ac_includes_default
33712#include <$ac_header>
33713_ACEOF
33714rm -f conftest.$ac_objext
33715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33716 (eval $ac_compile) 2>conftest.er1
a848cd7e 33717 ac_status=$?
ac1cb8d3
VS
33718 grep -v '^ *+' conftest.er1 >conftest.err
33719 rm -f conftest.er1
33720 cat conftest.err >&5
a848cd7e
SC
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); } &&
224bf05c 33723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725 (eval $ac_try) 2>&5
33726 ac_status=$?
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); }; } &&
33729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33731 (eval $ac_try) 2>&5
33732 ac_status=$?
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); }; }; then
33735 ac_header_compiler=yes
33736else
33737 echo "$as_me: failed program was:" >&5
33738sed 's/^/| /' conftest.$ac_ext >&5
33739
33740ac_header_compiler=no
33741fi
ac1cb8d3 33742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33744echo "${ECHO_T}$ac_header_compiler" >&6
33745
33746# Is the header present?
33747echo "$as_me:$LINENO: checking $ac_header presence" >&5
33748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33749cat >conftest.$ac_ext <<_ACEOF
33750/* confdefs.h. */
33751_ACEOF
33752cat confdefs.h >>conftest.$ac_ext
33753cat >>conftest.$ac_ext <<_ACEOF
33754/* end confdefs.h. */
33755#include <$ac_header>
33756_ACEOF
33757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33759 ac_status=$?
33760 grep -v '^ *+' conftest.er1 >conftest.err
33761 rm -f conftest.er1
33762 cat conftest.err >&5
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); } >/dev/null; then
33765 if test -s conftest.err; then
33766 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33768 else
33769 ac_cpp_err=
33770 fi
33771else
33772 ac_cpp_err=yes
33773fi
33774if test -z "$ac_cpp_err"; then
33775 ac_header_preproc=yes
33776else
33777 echo "$as_me: failed program was:" >&5
33778sed 's/^/| /' conftest.$ac_ext >&5
33779
33780 ac_header_preproc=no
33781fi
33782rm -f conftest.err conftest.$ac_ext
33783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33784echo "${ECHO_T}$ac_header_preproc" >&6
33785
33786# So? What about this header?
ac1cb8d3
VS
33787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33788 yes:no: )
a848cd7e
SC
33789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33793 ac_header_preproc=yes
a848cd7e 33794 ;;
ac1cb8d3 33795 no:yes:* )
a848cd7e
SC
33796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33808 (
33809 cat <<\_ASBOX
ac1cb8d3
VS
33810## ----------------------------------------- ##
33811## Report this to wx-dev@lists.wxwidgets.org ##
33812## ----------------------------------------- ##
a848cd7e
SC
33813_ASBOX
33814 ) |
33815 sed "s/^/$as_me: WARNING: /" >&2
33816 ;;
33817esac
33818echo "$as_me:$LINENO: checking for $ac_header" >&5
33819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33820if eval "test \"\${$as_ac_Header+set}\" = set"; then
33821 echo $ECHO_N "(cached) $ECHO_C" >&6
33822else
ac1cb8d3 33823 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33824fi
33825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33827
33828fi
33829if test `eval echo '${'$as_ac_Header'}'` = yes; then
33830 cat >>confdefs.h <<_ACEOF
33831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33832_ACEOF
33833
33834fi
33835
33836done
33837
33838
33839 if test "$wxUSE_LIBSDL" != "no"; then
33840
33841# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
33842if test "${with_sdl_prefix+set}" = set; then
33843 withval="$with_sdl_prefix"
33844 sdl_prefix="$withval"
33845else
33846 sdl_prefix=""
33847fi;
33848
33849# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
33850if test "${with_sdl_exec_prefix+set}" = set; then
33851 withval="$with_sdl_exec_prefix"
33852 sdl_exec_prefix="$withval"
33853else
33854 sdl_exec_prefix=""
33855fi;
33856# Check whether --enable-sdltest or --disable-sdltest was given.
33857if test "${enable_sdltest+set}" = set; then
33858 enableval="$enable_sdltest"
33859
33860else
33861 enable_sdltest=yes
33862fi;
33863
33864 if test x$sdl_exec_prefix != x ; then
33865 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33866 if test x${SDL_CONFIG+set} != xset ; then
33867 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33868 fi
33869 fi
33870 if test x$sdl_prefix != x ; then
33871 sdl_args="$sdl_args --prefix=$sdl_prefix"
33872 if test x${SDL_CONFIG+set} != xset ; then
33873 SDL_CONFIG=$sdl_prefix/bin/sdl-config
33874 fi
33875 fi
33876
33877
33878 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33879 # Extract the first word of "sdl-config", so it can be a program name with args.
33880set dummy sdl-config; ac_word=$2
33881echo "$as_me:$LINENO: checking for $ac_word" >&5
33882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33883if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33884 echo $ECHO_N "(cached) $ECHO_C" >&6
33885else
33886 case $SDL_CONFIG in
33887 [\\/]* | ?:[\\/]*)
33888 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33889 ;;
33890 *)
33891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33892for as_dir in $PATH
33893do
33894 IFS=$as_save_IFS
33895 test -z "$as_dir" && as_dir=.
33896 for ac_exec_ext in '' $ac_executable_extensions; do
33897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33898 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33900 break 2
33901 fi
33902done
33903done
33904
33905 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33906 ;;
33907esac
33908fi
33909SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33910
33911if test -n "$SDL_CONFIG"; then
33912 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33913echo "${ECHO_T}$SDL_CONFIG" >&6
33914else
33915 echo "$as_me:$LINENO: result: no" >&5
33916echo "${ECHO_T}no" >&6
33917fi
33918
33919 min_sdl_version=1.2.0
33920 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33921echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
33922 no_sdl=""
33923 if test "$SDL_CONFIG" = "no" ; then
33924 no_sdl=yes
33925 else
33926 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33927 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33928
33929 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33930 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33931 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33932 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33933 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33934 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33935 if test "x$enable_sdltest" = "xyes" ; then
33936 ac_save_CFLAGS="$CFLAGS"
33937 ac_save_LIBS="$LIBS"
33938 CFLAGS="$CFLAGS $SDL_CFLAGS"
33939 LIBS="$LIBS $SDL_LIBS"
33940 rm -f conf.sdltest
33941 if test "$cross_compiling" = yes; then
33942 echo $ac_n "cross compiling; assumed OK... $ac_c"
33943else
33944 cat >conftest.$ac_ext <<_ACEOF
33945/* confdefs.h. */
33946_ACEOF
33947cat confdefs.h >>conftest.$ac_ext
33948cat >>conftest.$ac_ext <<_ACEOF
33949/* end confdefs.h. */
33950
33951#include <stdio.h>
33952#include <stdlib.h>
33953#include <string.h>
33954#include "SDL.h"
33955
33956char*
33957my_strdup (char *str)
33958{
33959 char *new_str;
33960
33961 if (str)
33962 {
33963 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33964 strcpy (new_str, str);
33965 }
33966 else
33967 new_str = NULL;
33968
33969 return new_str;
33970}
33971
33972int main (int argc, char *argv[])
33973{
33974 int major, minor, micro;
33975 char *tmp_version;
33976
33977 /* This hangs on some systems (?)
33978 system ("touch conf.sdltest");
33979 */
33980 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33981
33982 /* HP/UX 9 (%@#!) writes to sscanf strings */
33983 tmp_version = my_strdup("$min_sdl_version");
33984 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
33985 printf("%s, bad version string\n", "$min_sdl_version");
33986 exit(1);
33987 }
33988
33989 if (($sdl_major_version > major) ||
33990 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33991 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33992 {
33993 return 0;
33994 }
33995 else
33996 {
33997 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33998 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33999 printf("*** best to upgrade to the required version.\n");
34000 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34001 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34002 printf("*** config.cache before re-running configure\n");
34003 return 1;
34004 }
34005}
34006
34007
34008_ACEOF
34009rm -f conftest$ac_exeext
34010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34011 (eval $ac_link) 2>&5
34012 ac_status=$?
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34016 (eval $ac_try) 2>&5
34017 ac_status=$?
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; }; then
34020 :
34021else
34022 echo "$as_me: program exited with status $ac_status" >&5
34023echo "$as_me: failed program was:" >&5
34024sed 's/^/| /' conftest.$ac_ext >&5
34025
34026( exit $ac_status )
34027no_sdl=yes
34028fi
ac1cb8d3 34029rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34030fi
34031 CFLAGS="$ac_save_CFLAGS"
34032 LIBS="$ac_save_LIBS"
34033 fi
34034 fi
34035 if test "x$no_sdl" = x ; then
34036 echo "$as_me:$LINENO: result: yes" >&5
34037echo "${ECHO_T}yes" >&6
34038
34039 EXTRALIBS_SDL="$SDL_LIBS"
34040 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34041 cat >>confdefs.h <<\_ACEOF
34042#define wxUSE_LIBSDL 1
34043_ACEOF
34044
34045
34046 else
34047 echo "$as_me:$LINENO: result: no" >&5
34048echo "${ECHO_T}no" >&6
34049 if test "$SDL_CONFIG" = "no" ; then
34050 echo "*** The sdl-config script installed by SDL could not be found"
34051 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34052 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34053 echo "*** full path to sdl-config."
34054 else
34055 if test -f conf.sdltest ; then
34056 :
34057 else
34058 echo "*** Could not run SDL test program, checking why..."
34059 CFLAGS="$CFLAGS $SDL_CFLAGS"
34060 LIBS="$LIBS $SDL_LIBS"
34061 cat >conftest.$ac_ext <<_ACEOF
34062/* confdefs.h. */
34063_ACEOF
34064cat confdefs.h >>conftest.$ac_ext
34065cat >>conftest.$ac_ext <<_ACEOF
34066/* end confdefs.h. */
34067
34068#include <stdio.h>
34069#include "SDL.h"
34070
34071int main(int argc, char *argv[])
34072{ return 0; }
34073#undef main
34074#define main K_and_R_C_main
34075
34076int
34077main ()
34078{
34079 return 0;
34080 ;
34081 return 0;
34082}
34083_ACEOF
34084rm -f conftest.$ac_objext conftest$ac_exeext
34085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34086 (eval $ac_link) 2>conftest.er1
a848cd7e 34087 ac_status=$?
ac1cb8d3
VS
34088 grep -v '^ *+' conftest.er1 >conftest.err
34089 rm -f conftest.er1
34090 cat conftest.err >&5
a848cd7e
SC
34091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092 (exit $ac_status); } &&
224bf05c 34093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34095 (eval $ac_try) 2>&5
34096 ac_status=$?
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); }; } &&
34099 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34101 (eval $ac_try) 2>&5
34102 ac_status=$?
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 (exit $ac_status); }; }; then
34105 echo "*** The test program compiled, but did not run. This usually means"
34106 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34107 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34108 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34109 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34110 echo "*** is required on your system"
34111 echo "***"
34112 echo "*** If you have an old version installed, it is best to remove it, although"
34113 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34114else
34115 echo "$as_me: failed program was:" >&5
34116sed 's/^/| /' conftest.$ac_ext >&5
34117
34118 echo "*** The test program failed to compile or link. See the file config.log for the"
34119 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34120 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34121 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34122fi
ac1cb8d3
VS
34123rm -f conftest.err conftest.$ac_objext \
34124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34125 CFLAGS="$ac_save_CFLAGS"
34126 LIBS="$ac_save_LIBS"
34127 fi
34128 fi
34129 SDL_CFLAGS=""
34130 SDL_LIBS=""
34131 wxUSE_LIBSDL="no"
34132 fi
34133
34134
34135 rm -f conf.sdltest
34136
34137 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34138 WITH_PLUGIN_SDL=1
34139 fi
34140 fi
34141 fi
34142
34143 cat >>confdefs.h <<\_ACEOF
34144#define wxUSE_SOUND 1
34145_ACEOF
34146
34147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34148fi
34149
34150if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34151 cat >>confdefs.h <<\_ACEOF
34152#define wxUSE_CMDLINE_PARSER 1
34153_ACEOF
34154
34155fi
34156
34157if test "$wxUSE_STOPWATCH" = "yes"; then
34158 cat >>confdefs.h <<\_ACEOF
34159#define wxUSE_STOPWATCH 1
34160_ACEOF
34161
34162fi
34163
34164if test "$wxUSE_DATETIME" = "yes"; then
34165 cat >>confdefs.h <<\_ACEOF
34166#define wxUSE_DATETIME 1
34167_ACEOF
34168
34169fi
34170
34171if test "$wxUSE_FILE" = "yes"; then
34172 cat >>confdefs.h <<\_ACEOF
34173#define wxUSE_FILE 1
34174_ACEOF
34175
34176fi
34177
34178if test "$wxUSE_FFILE" = "yes"; then
34179 cat >>confdefs.h <<\_ACEOF
34180#define wxUSE_FFILE 1
34181_ACEOF
34182
34183fi
34184
34185if test "$wxUSE_FILESYSTEM" = "yes"; then
34186 cat >>confdefs.h <<\_ACEOF
34187#define wxUSE_FILESYSTEM 1
34188_ACEOF
34189
34190fi
34191
34192if test "$wxUSE_FS_ZIP" = "yes"; then
34193 cat >>confdefs.h <<\_ACEOF
34194#define wxUSE_FS_ZIP 1
34195_ACEOF
34196
34197fi
34198
34199if test "$wxUSE_ZIPSTREAM" = "yes"; then
34200 cat >>confdefs.h <<\_ACEOF
34201#define wxUSE_ZIPSTREAM 1
34202_ACEOF
34203
34204fi
34205
a848cd7e
SC
34206if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34207 cat >>confdefs.h <<\_ACEOF
34208#define wxUSE_ON_FATAL_EXCEPTION 1
34209_ACEOF
34210
34211fi
34212
34213if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34214 cat >>confdefs.h <<\_ACEOF
34215#define wxUSE_SNGLINST_CHECKER 1
34216_ACEOF
34217
34218fi
34219
34220if test "$wxUSE_BUSYINFO" = "yes"; then
34221 cat >>confdefs.h <<\_ACEOF
34222#define wxUSE_BUSYINFO 1
34223_ACEOF
34224
34225fi
34226
34227if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34228 cat >>confdefs.h <<\_ACEOF
34229#define wxUSE_STD_IOSTREAM 1
34230_ACEOF
34231
34232fi
34233
34234if test "$wxUSE_TEXTBUFFER" = "yes"; then
34235 cat >>confdefs.h <<\_ACEOF
34236#define wxUSE_TEXTBUFFER 1
34237_ACEOF
34238
34239fi
34240
34241if test "$wxUSE_TEXTFILE" = "yes"; then
34242 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34243 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34244echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34245 else
34246 cat >>confdefs.h <<\_ACEOF
34247#define wxUSE_TEXTFILE 1
34248_ACEOF
34249
34250 fi
34251fi
34252
34253if test "$wxUSE_CONFIG" = "yes" ; then
34254 if test "$wxUSE_TEXTFILE" != "yes"; then
34255 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34256echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34257 else
34258 cat >>confdefs.h <<\_ACEOF
34259#define wxUSE_CONFIG 1
34260_ACEOF
34261
34262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34263 fi
34264fi
34265
34266if test "$wxUSE_INTL" = "yes" ; then
34267 if test "$wxUSE_FILE" != "yes"; then
34268 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34269echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34270 else
34271 cat >>confdefs.h <<\_ACEOF
34272#define wxUSE_INTL 1
34273_ACEOF
34274
34275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34276 GUIDIST="$GUIDIST INTL_DIST"
34277 fi
34278fi
34279
34280if test "$wxUSE_LOG" = "yes"; then
34281 cat >>confdefs.h <<\_ACEOF
34282#define wxUSE_LOG 1
34283_ACEOF
34284
34285
34286 if test "$wxUSE_LOGGUI" = "yes"; then
34287 cat >>confdefs.h <<\_ACEOF
34288#define wxUSE_LOGGUI 1
34289_ACEOF
34290
34291 fi
34292
34293 if test "$wxUSE_LOGWINDOW" = "yes"; then
34294 cat >>confdefs.h <<\_ACEOF
34295#define wxUSE_LOGWINDOW 1
34296_ACEOF
34297
34298 fi
34299
34300 if test "$wxUSE_LOGDIALOG" = "yes"; then
34301 cat >>confdefs.h <<\_ACEOF
34302#define wxUSE_LOG_DIALOG 1
34303_ACEOF
34304
34305 fi
34306fi
34307
34308if test "$wxUSE_LONGLONG" = "yes"; then
34309 cat >>confdefs.h <<\_ACEOF
34310#define wxUSE_LONGLONG 1
34311_ACEOF
34312
34313fi
34314
34315if test "$wxUSE_GEOMETRY" = "yes"; then
34316 cat >>confdefs.h <<\_ACEOF
34317#define wxUSE_GEOMETRY 1
34318_ACEOF
34319
34320fi
34321
34322if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34323 cat >>confdefs.h <<\_ACEOF
34324#define wxUSE_DIALUP_MANAGER 1
34325_ACEOF
34326
34327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34328fi
34329
34330if test "$wxUSE_STREAMS" = "yes" ; then
34331 cat >>confdefs.h <<\_ACEOF
34332#define wxUSE_STREAMS 1
34333_ACEOF
34334
34335fi
34336
34337
34338if test "$wxUSE_DATETIME" = "yes"; then
34339
34340for ac_func in strptime
34341do
34342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34343echo "$as_me:$LINENO: checking for $ac_func" >&5
34344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34345if eval "test \"\${$as_ac_var+set}\" = set"; then
34346 echo $ECHO_N "(cached) $ECHO_C" >&6
34347else
34348 cat >conftest.$ac_ext <<_ACEOF
34349/* confdefs.h. */
34350_ACEOF
34351cat confdefs.h >>conftest.$ac_ext
34352cat >>conftest.$ac_ext <<_ACEOF
34353/* end confdefs.h. */
ac1cb8d3
VS
34354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34356#define $ac_func innocuous_$ac_func
34357
a848cd7e
SC
34358/* System header to define __stub macros and hopefully few prototypes,
34359 which can conflict with char $ac_func (); below.
34360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34361 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34362
a848cd7e
SC
34363#ifdef __STDC__
34364# include <limits.h>
34365#else
34366# include <assert.h>
34367#endif
ac1cb8d3
VS
34368
34369#undef $ac_func
34370
a848cd7e
SC
34371/* Override any gcc2 internal prototype to avoid an error. */
34372#ifdef __cplusplus
34373extern "C"
34374{
34375#endif
34376/* We use char because int might match the return type of a gcc2
34377 builtin and then its argument prototype would still apply. */
34378char $ac_func ();
34379/* The GNU C library defines this for functions which it implements
34380 to always fail with ENOSYS. Some functions are actually named
34381 something starting with __ and the normal name is an alias. */
34382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34383choke me
34384#else
34385char (*f) () = $ac_func;
34386#endif
34387#ifdef __cplusplus
34388}
34389#endif
34390
34391int
34392main ()
34393{
34394return f != $ac_func;
34395 ;
34396 return 0;
34397}
34398_ACEOF
34399rm -f conftest.$ac_objext conftest$ac_exeext
34400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34401 (eval $ac_link) 2>conftest.er1
a848cd7e 34402 ac_status=$?
ac1cb8d3
VS
34403 grep -v '^ *+' conftest.er1 >conftest.err
34404 rm -f conftest.er1
34405 cat conftest.err >&5
a848cd7e
SC
34406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407 (exit $ac_status); } &&
224bf05c 34408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34410 (eval $ac_try) 2>&5
34411 ac_status=$?
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); }; } &&
34414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34416 (eval $ac_try) 2>&5
34417 ac_status=$?
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); }; }; then
34420 eval "$as_ac_var=yes"
34421else
34422 echo "$as_me: failed program was:" >&5
34423sed 's/^/| /' conftest.$ac_ext >&5
34424
34425eval "$as_ac_var=no"
34426fi
ac1cb8d3
VS
34427rm -f conftest.err conftest.$ac_objext \
34428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34429fi
34430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34431echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34432if test `eval echo '${'$as_ac_var'}'` = yes; then
34433 cat >>confdefs.h <<_ACEOF
34434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34435_ACEOF
34436
34437fi
34438done
34439
34440
34441 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34442echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34443if test "${wx_cv_var_timezone+set}" = set; then
34444 echo $ECHO_N "(cached) $ECHO_C" >&6
34445else
34446
34447 cat >conftest.$ac_ext <<_ACEOF
34448/* confdefs.h. */
34449_ACEOF
34450cat confdefs.h >>conftest.$ac_ext
34451cat >>conftest.$ac_ext <<_ACEOF
34452/* end confdefs.h. */
34453
34454 #include <time.h>
34455
34456int
34457main ()
34458{
34459
34460 int tz;
34461 tz = timezone;
34462
34463 ;
34464 return 0;
34465}
34466_ACEOF
34467rm -f conftest.$ac_objext
34468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34469 (eval $ac_compile) 2>conftest.er1
a848cd7e 34470 ac_status=$?
ac1cb8d3
VS
34471 grep -v '^ *+' conftest.er1 >conftest.err
34472 rm -f conftest.er1
34473 cat conftest.err >&5
a848cd7e
SC
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); } &&
224bf05c 34476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34478 (eval $ac_try) 2>&5
34479 ac_status=$?
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); }; } &&
34482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34484 (eval $ac_try) 2>&5
34485 ac_status=$?
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); }; }; then
34488
34489 wx_cv_var_timezone=timezone
34490
34491else
34492 echo "$as_me: failed program was:" >&5
34493sed 's/^/| /' conftest.$ac_ext >&5
34494
34495
34496 cat >conftest.$ac_ext <<_ACEOF
34497/* confdefs.h. */
34498_ACEOF
34499cat confdefs.h >>conftest.$ac_ext
34500cat >>conftest.$ac_ext <<_ACEOF
34501/* end confdefs.h. */
34502
34503 #include <time.h>
34504
34505int
34506main ()
34507{
34508
34509 int tz;
34510 tz = _timezone;
34511
34512 ;
34513 return 0;
34514}
34515_ACEOF
34516rm -f conftest.$ac_objext
34517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34518 (eval $ac_compile) 2>conftest.er1
a848cd7e 34519 ac_status=$?
ac1cb8d3
VS
34520 grep -v '^ *+' conftest.er1 >conftest.err
34521 rm -f conftest.er1
34522 cat conftest.err >&5
a848cd7e
SC
34523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); } &&
224bf05c 34525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527 (eval $ac_try) 2>&5
34528 ac_status=$?
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); }; } &&
34531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34533 (eval $ac_try) 2>&5
34534 ac_status=$?
34535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536 (exit $ac_status); }; }; then
34537
34538 wx_cv_var_timezone=_timezone
34539
34540else
34541 echo "$as_me: failed program was:" >&5
34542sed 's/^/| /' conftest.$ac_ext >&5
34543
34544
34545 cat >conftest.$ac_ext <<_ACEOF
34546/* confdefs.h. */
34547_ACEOF
34548cat confdefs.h >>conftest.$ac_ext
34549cat >>conftest.$ac_ext <<_ACEOF
34550/* end confdefs.h. */
34551
34552 #include <time.h>
34553
34554int
34555main ()
34556{
34557
34558 int tz;
34559 tz = __timezone;
34560
34561 ;
34562 return 0;
34563}
34564_ACEOF
34565rm -f conftest.$ac_objext
34566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34567 (eval $ac_compile) 2>conftest.er1
a848cd7e 34568 ac_status=$?
ac1cb8d3
VS
34569 grep -v '^ *+' conftest.er1 >conftest.err
34570 rm -f conftest.er1
34571 cat conftest.err >&5
a848cd7e
SC
34572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 (exit $ac_status); } &&
224bf05c 34574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34576 (eval $ac_try) 2>&5
34577 ac_status=$?
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); }; } &&
34580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34582 (eval $ac_try) 2>&5
34583 ac_status=$?
34584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34585 (exit $ac_status); }; }; then
34586
34587 wx_cv_var_timezone=__timezone
34588
34589else
34590 echo "$as_me: failed program was:" >&5
34591sed 's/^/| /' conftest.$ac_ext >&5
34592
34593
34594 if test "$USE_DOS" = 0 ; then
34595 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34596echo "$as_me: WARNING: no timezone variable" >&2;}
34597 fi
34598
34599
34600fi
ac1cb8d3 34601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34602
34603
34604fi
ac1cb8d3 34605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34606
34607
34608fi
ac1cb8d3 34609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34610
34611
34612fi
34613echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34614echo "${ECHO_T}$wx_cv_var_timezone" >&6
34615
34616 if test "x$wx_cv_var_timezone" != x ; then
34617 cat >>confdefs.h <<_ACEOF
34618#define WX_TIMEZONE $wx_cv_var_timezone
34619_ACEOF
34620
34621 fi
34622
34623
34624for ac_func in localtime
34625do
34626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34627echo "$as_me:$LINENO: checking for $ac_func" >&5
34628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34629if eval "test \"\${$as_ac_var+set}\" = set"; then
34630 echo $ECHO_N "(cached) $ECHO_C" >&6
34631else
34632 cat >conftest.$ac_ext <<_ACEOF
34633/* confdefs.h. */
34634_ACEOF
34635cat confdefs.h >>conftest.$ac_ext
34636cat >>conftest.$ac_ext <<_ACEOF
34637/* end confdefs.h. */
ac1cb8d3
VS
34638/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34640#define $ac_func innocuous_$ac_func
34641
a848cd7e
SC
34642/* System header to define __stub macros and hopefully few prototypes,
34643 which can conflict with char $ac_func (); below.
34644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34645 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34646
a848cd7e
SC
34647#ifdef __STDC__
34648# include <limits.h>
34649#else
34650# include <assert.h>
34651#endif
ac1cb8d3
VS
34652
34653#undef $ac_func
34654
a848cd7e
SC
34655/* Override any gcc2 internal prototype to avoid an error. */
34656#ifdef __cplusplus
34657extern "C"
34658{
34659#endif
34660/* We use char because int might match the return type of a gcc2
34661 builtin and then its argument prototype would still apply. */
34662char $ac_func ();
34663/* The GNU C library defines this for functions which it implements
34664 to always fail with ENOSYS. Some functions are actually named
34665 something starting with __ and the normal name is an alias. */
34666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34667choke me
34668#else
34669char (*f) () = $ac_func;
34670#endif
34671#ifdef __cplusplus
34672}
34673#endif
34674
34675int
34676main ()
34677{
34678return f != $ac_func;
34679 ;
34680 return 0;
34681}
34682_ACEOF
34683rm -f conftest.$ac_objext conftest$ac_exeext
34684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34685 (eval $ac_link) 2>conftest.er1
a848cd7e 34686 ac_status=$?
ac1cb8d3
VS
34687 grep -v '^ *+' conftest.er1 >conftest.err
34688 rm -f conftest.er1
34689 cat conftest.err >&5
a848cd7e
SC
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); } &&
224bf05c 34692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34694 (eval $ac_try) 2>&5
34695 ac_status=$?
34696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697 (exit $ac_status); }; } &&
34698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34700 (eval $ac_try) 2>&5
34701 ac_status=$?
34702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34703 (exit $ac_status); }; }; then
34704 eval "$as_ac_var=yes"
34705else
34706 echo "$as_me: failed program was:" >&5
34707sed 's/^/| /' conftest.$ac_ext >&5
34708
34709eval "$as_ac_var=no"
34710fi
ac1cb8d3
VS
34711rm -f conftest.err conftest.$ac_objext \
34712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34713fi
34714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34715echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34716if test `eval echo '${'$as_ac_var'}'` = yes; then
34717 cat >>confdefs.h <<_ACEOF
34718#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34719_ACEOF
34720
34721fi
34722done
34723
34724
34725 if test "$ac_cv_func_localtime" = "yes"; then
34726 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34727echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34728if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34729 echo $ECHO_N "(cached) $ECHO_C" >&6
34730else
34731
34732 cat >conftest.$ac_ext <<_ACEOF
34733/* confdefs.h. */
34734_ACEOF
34735cat confdefs.h >>conftest.$ac_ext
34736cat >>conftest.$ac_ext <<_ACEOF
34737/* end confdefs.h. */
34738
34739 #include <time.h>
34740
34741int
34742main ()
34743{
34744
34745 struct tm tm;
34746 tm.tm_gmtoff++;
34747
34748 ;
34749 return 0;
34750}
34751_ACEOF
34752rm -f conftest.$ac_objext
34753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34754 (eval $ac_compile) 2>conftest.er1
a848cd7e 34755 ac_status=$?
ac1cb8d3
VS
34756 grep -v '^ *+' conftest.er1 >conftest.err
34757 rm -f conftest.er1
34758 cat conftest.err >&5
a848cd7e
SC
34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760 (exit $ac_status); } &&
224bf05c 34761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34764 ac_status=$?
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; } &&
34767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34769 (eval $ac_try) 2>&5
34770 ac_status=$?
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); }; }; then
34773
34774 wx_cv_struct_tm_has_gmtoff=yes
34775
34776else
34777 echo "$as_me: failed program was:" >&5
34778sed 's/^/| /' conftest.$ac_ext >&5
34779
34780wx_cv_struct_tm_has_gmtoff=no
34781
34782fi
ac1cb8d3 34783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34784
34785fi
34786echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
34787echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
34788 fi
34789
34790 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
34791 cat >>confdefs.h <<\_ACEOF
34792#define WX_GMTOFF_IN_TM 1
34793_ACEOF
34794
34795 fi
34796
34797
34798
34799for ac_func in gettimeofday ftime
34800do
34801as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34802echo "$as_me:$LINENO: checking for $ac_func" >&5
34803echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34804if eval "test \"\${$as_ac_var+set}\" = set"; then
34805 echo $ECHO_N "(cached) $ECHO_C" >&6
34806else
34807 cat >conftest.$ac_ext <<_ACEOF
34808/* confdefs.h. */
34809_ACEOF
34810cat confdefs.h >>conftest.$ac_ext
34811cat >>conftest.$ac_ext <<_ACEOF
34812/* end confdefs.h. */
ac1cb8d3
VS
34813/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34815#define $ac_func innocuous_$ac_func
34816
a848cd7e
SC
34817/* System header to define __stub macros and hopefully few prototypes,
34818 which can conflict with char $ac_func (); below.
34819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34820 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34821
a848cd7e
SC
34822#ifdef __STDC__
34823# include <limits.h>
34824#else
34825# include <assert.h>
34826#endif
ac1cb8d3
VS
34827
34828#undef $ac_func
34829
a848cd7e
SC
34830/* Override any gcc2 internal prototype to avoid an error. */
34831#ifdef __cplusplus
34832extern "C"
34833{
34834#endif
34835/* We use char because int might match the return type of a gcc2
34836 builtin and then its argument prototype would still apply. */
34837char $ac_func ();
34838/* The GNU C library defines this for functions which it implements
34839 to always fail with ENOSYS. Some functions are actually named
34840 something starting with __ and the normal name is an alias. */
34841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34842choke me
34843#else
34844char (*f) () = $ac_func;
34845#endif
34846#ifdef __cplusplus
34847}
34848#endif
34849
34850int
34851main ()
34852{
34853return f != $ac_func;
34854 ;
34855 return 0;
34856}
34857_ACEOF
34858rm -f conftest.$ac_objext conftest$ac_exeext
34859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34860 (eval $ac_link) 2>conftest.er1
a848cd7e 34861 ac_status=$?
ac1cb8d3
VS
34862 grep -v '^ *+' conftest.er1 >conftest.err
34863 rm -f conftest.er1
34864 cat conftest.err >&5
a848cd7e
SC
34865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866 (exit $ac_status); } &&
224bf05c 34867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34869 (eval $ac_try) 2>&5
34870 ac_status=$?
34871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872 (exit $ac_status); }; } &&
34873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34875 (eval $ac_try) 2>&5
34876 ac_status=$?
34877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34878 (exit $ac_status); }; }; then
34879 eval "$as_ac_var=yes"
34880else
34881 echo "$as_me: failed program was:" >&5
34882sed 's/^/| /' conftest.$ac_ext >&5
34883
34884eval "$as_ac_var=no"
34885fi
ac1cb8d3
VS
34886rm -f conftest.err conftest.$ac_objext \
34887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34888fi
34889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34891if test `eval echo '${'$as_ac_var'}'` = yes; then
34892 cat >>confdefs.h <<_ACEOF
34893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34894_ACEOF
34895 break
34896fi
34897done
34898
34899
34900 if test "$ac_cv_func_gettimeofday" = "yes"; then
34901 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
34902echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
34903if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
34904 echo $ECHO_N "(cached) $ECHO_C" >&6
34905else
34906
34907
34908
34909 ac_ext=cc
34910ac_cpp='$CXXCPP $CPPFLAGS'
34911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34914
34915
34916 cat >conftest.$ac_ext <<_ACEOF
34917/* confdefs.h. */
34918_ACEOF
34919cat confdefs.h >>conftest.$ac_ext
34920cat >>conftest.$ac_ext <<_ACEOF
34921/* end confdefs.h. */
34922
34923 #include <sys/time.h>
34924 #include <unistd.h>
34925
34926int
34927main ()
34928{
34929
34930 struct timeval tv;
34931 gettimeofday(&tv, NULL);
34932
34933 ;
34934 return 0;
34935}
34936_ACEOF
34937rm -f conftest.$ac_objext
34938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34939 (eval $ac_compile) 2>conftest.er1
a848cd7e 34940 ac_status=$?
ac1cb8d3
VS
34941 grep -v '^ *+' conftest.er1 >conftest.err
34942 rm -f conftest.er1
34943 cat conftest.err >&5
a848cd7e
SC
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); } &&
224bf05c 34946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948 (eval $ac_try) 2>&5
34949 ac_status=$?
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); }; } &&
34952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954 (eval $ac_try) 2>&5
34955 ac_status=$?
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); }; }; then
34958 wx_cv_func_gettimeofday_has_2_args=yes
34959else
34960 echo "$as_me: failed program was:" >&5
34961sed 's/^/| /' conftest.$ac_ext >&5
34962
34963cat >conftest.$ac_ext <<_ACEOF
34964/* confdefs.h. */
34965_ACEOF
34966cat confdefs.h >>conftest.$ac_ext
34967cat >>conftest.$ac_ext <<_ACEOF
34968/* end confdefs.h. */
34969
34970 #include <sys/time.h>
34971 #include <unistd.h>
34972
34973int
34974main ()
34975{
34976
34977 struct timeval tv;
34978 gettimeofday(&tv);
34979
34980 ;
34981 return 0;
34982}
34983_ACEOF
34984rm -f conftest.$ac_objext
34985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34986 (eval $ac_compile) 2>conftest.er1
a848cd7e 34987 ac_status=$?
ac1cb8d3
VS
34988 grep -v '^ *+' conftest.er1 >conftest.err
34989 rm -f conftest.er1
34990 cat conftest.err >&5
a848cd7e
SC
34991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992 (exit $ac_status); } &&
224bf05c 34993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34995 (eval $ac_try) 2>&5
34996 ac_status=$?
34997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34998 (exit $ac_status); }; } &&
34999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35001 (eval $ac_try) 2>&5
35002 ac_status=$?
35003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004 (exit $ac_status); }; }; then
35005 wx_cv_func_gettimeofday_has_2_args=no
35006else
35007 echo "$as_me: failed program was:" >&5
35008sed 's/^/| /' conftest.$ac_ext >&5
35009
35010
35011 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35012echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35013 wx_cv_func_gettimeofday_has_2_args=unknown
35014
35015
35016fi
ac1cb8d3 35017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35018
35019fi
ac1cb8d3 35020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35021 ac_ext=c
35022ac_cpp='$CPP $CPPFLAGS'
35023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35025ac_compiler_gnu=$ac_cv_c_compiler_gnu
35026
35027
35028fi
35029echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35030echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35031
35032 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35033 cat >>confdefs.h <<\_ACEOF
35034#define WX_GETTIMEOFDAY_NO_TZ 1
35035_ACEOF
35036
35037 fi
35038 fi
35039
35040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35041fi
35042
35043
35044if test "$wxUSE_SOCKETS" = "yes"; then
35045 if test "$wxUSE_MGL" = "1"; then
35046 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35047echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35048 wxUSE_SOCKETS="no"
35049 fi
35050fi
35051
35052if test "$wxUSE_SOCKETS" = "yes"; then
35053 if test "$TOOLKIT" != "MSW"; then
35054 echo "$as_me:$LINENO: checking for socket" >&5
35055echo $ECHO_N "checking for socket... $ECHO_C" >&6
35056if test "${ac_cv_func_socket+set}" = set; then
35057 echo $ECHO_N "(cached) $ECHO_C" >&6
35058else
35059 cat >conftest.$ac_ext <<_ACEOF
35060/* confdefs.h. */
35061_ACEOF
35062cat confdefs.h >>conftest.$ac_ext
35063cat >>conftest.$ac_ext <<_ACEOF
35064/* end confdefs.h. */
ac1cb8d3
VS
35065/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35067#define socket innocuous_socket
35068
a848cd7e
SC
35069/* System header to define __stub macros and hopefully few prototypes,
35070 which can conflict with char socket (); below.
35071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35072 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35073
a848cd7e
SC
35074#ifdef __STDC__
35075# include <limits.h>
35076#else
35077# include <assert.h>
35078#endif
ac1cb8d3
VS
35079
35080#undef socket
35081
a848cd7e
SC
35082/* Override any gcc2 internal prototype to avoid an error. */
35083#ifdef __cplusplus
35084extern "C"
35085{
35086#endif
35087/* We use char because int might match the return type of a gcc2
35088 builtin and then its argument prototype would still apply. */
35089char socket ();
35090/* The GNU C library defines this for functions which it implements
35091 to always fail with ENOSYS. Some functions are actually named
35092 something starting with __ and the normal name is an alias. */
35093#if defined (__stub_socket) || defined (__stub___socket)
35094choke me
35095#else
35096char (*f) () = socket;
35097#endif
35098#ifdef __cplusplus
35099}
35100#endif
35101
35102int
35103main ()
35104{
35105return f != socket;
35106 ;
35107 return 0;
35108}
35109_ACEOF
35110rm -f conftest.$ac_objext conftest$ac_exeext
35111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35112 (eval $ac_link) 2>conftest.er1
a848cd7e 35113 ac_status=$?
ac1cb8d3
VS
35114 grep -v '^ *+' conftest.er1 >conftest.err
35115 rm -f conftest.er1
35116 cat conftest.err >&5
a848cd7e
SC
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); } &&
224bf05c 35119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121 (eval $ac_try) 2>&5
35122 ac_status=$?
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); }; } &&
35125 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35128 ac_status=$?
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; }; then
35131 ac_cv_func_socket=yes
35132else
35133 echo "$as_me: failed program was:" >&5
35134sed 's/^/| /' conftest.$ac_ext >&5
35135
35136ac_cv_func_socket=no
35137fi
ac1cb8d3
VS
35138rm -f conftest.err conftest.$ac_objext \
35139 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35140fi
35141echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35142echo "${ECHO_T}$ac_cv_func_socket" >&6
35143if test $ac_cv_func_socket = yes; then
35144 :
35145else
35146
35147 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35148echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35149if test "${ac_cv_lib_socket_socket+set}" = set; then
35150 echo $ECHO_N "(cached) $ECHO_C" >&6
35151else
35152 ac_check_lib_save_LIBS=$LIBS
35153LIBS="-lsocket $LIBS"
35154cat >conftest.$ac_ext <<_ACEOF
35155/* confdefs.h. */
35156_ACEOF
35157cat confdefs.h >>conftest.$ac_ext
35158cat >>conftest.$ac_ext <<_ACEOF
35159/* end confdefs.h. */
35160
35161/* Override any gcc2 internal prototype to avoid an error. */
35162#ifdef __cplusplus
35163extern "C"
35164#endif
35165/* We use char because int might match the return type of a gcc2
35166 builtin and then its argument prototype would still apply. */
35167char socket ();
35168int
35169main ()
35170{
35171socket ();
35172 ;
35173 return 0;
35174}
35175_ACEOF
35176rm -f conftest.$ac_objext conftest$ac_exeext
35177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35178 (eval $ac_link) 2>conftest.er1
a848cd7e 35179 ac_status=$?
ac1cb8d3
VS
35180 grep -v '^ *+' conftest.er1 >conftest.err
35181 rm -f conftest.er1
35182 cat conftest.err >&5
a848cd7e
SC
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); } &&
224bf05c 35185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35187 (eval $ac_try) 2>&5
35188 ac_status=$?
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); }; } &&
35191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35197 ac_cv_lib_socket_socket=yes
35198else
35199 echo "$as_me: failed program was:" >&5
35200sed 's/^/| /' conftest.$ac_ext >&5
35201
35202ac_cv_lib_socket_socket=no
35203fi
ac1cb8d3
VS
35204rm -f conftest.err conftest.$ac_objext \
35205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35206LIBS=$ac_check_lib_save_LIBS
35207fi
35208echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35209echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35210if test $ac_cv_lib_socket_socket = yes; then
35211 if test "$INET_LINK" != " -lsocket"; then
35212 INET_LINK="$INET_LINK -lsocket"
35213 fi
35214else
35215
35216 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35217echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35218 wxUSE_SOCKETS=no
35219
35220
35221fi
35222
35223
35224
35225fi
35226
35227 fi
35228fi
35229
35230if test "$wxUSE_SOCKETS" = "yes" ; then
35231 if test "$TOOLKIT" != "MSW"; then
35232 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35233echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35234if test "${wx_cv_type_getsockname3+set}" = set; then
35235 echo $ECHO_N "(cached) $ECHO_C" >&6
35236else
35237
35238 cat >conftest.$ac_ext <<_ACEOF
35239/* confdefs.h. */
35240_ACEOF
35241cat confdefs.h >>conftest.$ac_ext
35242cat >>conftest.$ac_ext <<_ACEOF
35243/* end confdefs.h. */
35244
35245 #include <sys/types.h>
35246 #include <sys/socket.h>
35247
35248int
35249main ()
35250{
35251
35252 socklen_t len;
35253 getsockname(0, 0, &len);
35254
35255 ;
35256 return 0;
35257}
35258_ACEOF
35259rm -f conftest.$ac_objext
35260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35261 (eval $ac_compile) 2>conftest.er1
a848cd7e 35262 ac_status=$?
ac1cb8d3
VS
35263 grep -v '^ *+' conftest.er1 >conftest.err
35264 rm -f conftest.er1
35265 cat conftest.err >&5
a848cd7e
SC
35266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267 (exit $ac_status); } &&
224bf05c 35268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35270 (eval $ac_try) 2>&5
35271 ac_status=$?
35272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 (exit $ac_status); }; } &&
35274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35276 (eval $ac_try) 2>&5
35277 ac_status=$?
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); }; }; then
35280 wx_cv_type_getsockname3=socklen_t
35281else
35282 echo "$as_me: failed program was:" >&5
35283sed 's/^/| /' conftest.$ac_ext >&5
35284
35285
35286 CFLAGS_OLD="$CFLAGS"
35287 if test "$GCC" = yes ; then
35288 CFLAGS="$CFLAGS -Werror"
35289 fi
35290
35291 cat >conftest.$ac_ext <<_ACEOF
35292/* confdefs.h. */
35293_ACEOF
35294cat confdefs.h >>conftest.$ac_ext
35295cat >>conftest.$ac_ext <<_ACEOF
35296/* end confdefs.h. */
35297
35298 #include <sys/types.h>
35299 #include <sys/socket.h>
35300
35301int
35302main ()
35303{
35304
35305 size_t len;
35306 getsockname(0, 0, &len);
35307
35308 ;
35309 return 0;
35310}
35311_ACEOF
35312rm -f conftest.$ac_objext
35313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35314 (eval $ac_compile) 2>conftest.er1
a848cd7e 35315 ac_status=$?
ac1cb8d3
VS
35316 grep -v '^ *+' conftest.er1 >conftest.err
35317 rm -f conftest.er1
35318 cat conftest.err >&5
a848cd7e
SC
35319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320 (exit $ac_status); } &&
224bf05c 35321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35323 (eval $ac_try) 2>&5
35324 ac_status=$?
35325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326 (exit $ac_status); }; } &&
35327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35329 (eval $ac_try) 2>&5
35330 ac_status=$?
35331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332 (exit $ac_status); }; }; then
35333 wx_cv_type_getsockname3=size_t
35334else
35335 echo "$as_me: failed program was:" >&5
35336sed 's/^/| /' conftest.$ac_ext >&5
35337
35338cat >conftest.$ac_ext <<_ACEOF
35339/* confdefs.h. */
35340_ACEOF
35341cat confdefs.h >>conftest.$ac_ext
35342cat >>conftest.$ac_ext <<_ACEOF
35343/* end confdefs.h. */
35344
35345 #include <sys/types.h>
35346 #include <sys/socket.h>
35347
35348int
35349main ()
35350{
35351
35352 int len;
35353 getsockname(0, 0, &len);
35354
35355 ;
35356 return 0;
35357}
35358_ACEOF
35359rm -f conftest.$ac_objext
35360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35361 (eval $ac_compile) 2>conftest.er1
a848cd7e 35362 ac_status=$?
ac1cb8d3
VS
35363 grep -v '^ *+' conftest.er1 >conftest.err
35364 rm -f conftest.er1
35365 cat conftest.err >&5
a848cd7e
SC
35366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35367 (exit $ac_status); } &&
224bf05c 35368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35370 (eval $ac_try) 2>&5
35371 ac_status=$?
35372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373 (exit $ac_status); }; } &&
35374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35376 (eval $ac_try) 2>&5
35377 ac_status=$?
35378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35379 (exit $ac_status); }; }; then
35380 wx_cv_type_getsockname3=int
35381else
35382 echo "$as_me: failed program was:" >&5
35383sed 's/^/| /' conftest.$ac_ext >&5
35384
35385wx_cv_type_getsockname3=unknown
35386
35387fi
ac1cb8d3 35388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35389
35390fi
ac1cb8d3 35391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35392
35393 CFLAGS="$CFLAGS_OLD"
35394
35395
35396fi
ac1cb8d3 35397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35398
35399fi
35400echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35401echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35402
35403 if test "$wx_cv_type_getsockname3" = "unknown"; then
35404 wxUSE_SOCKETS=no
35405 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35406echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35407 else
35408 cat >>confdefs.h <<_ACEOF
35409#define SOCKLEN_T $wx_cv_type_getsockname3
35410_ACEOF
35411
35412 fi
35413 fi
35414fi
35415
35416if test "$wxUSE_SOCKETS" = "yes" ; then
35417 cat >>confdefs.h <<\_ACEOF
35418#define wxUSE_SOCKETS 1
35419_ACEOF
35420
35421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35422fi
35423
35424if test "$wxUSE_PROTOCOL" = "yes"; then
35425 if test "$wxUSE_SOCKETS" != "yes"; then
35426 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35427echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35428 wxUSE_PROTOCOL=no
35429 fi
35430fi
35431
35432if test "$wxUSE_PROTOCOL" = "yes"; then
35433 cat >>confdefs.h <<\_ACEOF
35434#define wxUSE_PROTOCOL 1
35435_ACEOF
35436
35437
35438 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35439 cat >>confdefs.h <<\_ACEOF
35440#define wxUSE_PROTOCOL_HTTP 1
35441_ACEOF
35442
35443 fi
35444 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35445 cat >>confdefs.h <<\_ACEOF
35446#define wxUSE_PROTOCOL_FTP 1
35447_ACEOF
35448
35449 fi
35450 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35451 cat >>confdefs.h <<\_ACEOF
35452#define wxUSE_PROTOCOL_FILE 1
35453_ACEOF
35454
35455 fi
35456else
35457 if test "$wxUSE_FS_INET" = "yes"; then
35458 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35459echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35460 wxUSE_FS_INET="no"
35461 fi
35462fi
35463
35464if test "$wxUSE_URL" = "yes"; then
35465 if test "$wxUSE_PROTOCOL" != "yes"; then
35466 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35467echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35468 wxUSE_URL=no
35469 fi
35470 if test "$wxUSE_URL" = "yes"; then
35471 cat >>confdefs.h <<\_ACEOF
35472#define wxUSE_URL 1
35473_ACEOF
35474
35475 fi
35476fi
35477
35478if test "$wxUSE_FS_INET" = "yes"; then
35479 cat >>confdefs.h <<\_ACEOF
35480#define wxUSE_FS_INET 1
35481_ACEOF
35482
35483fi
35484
35485
35486if test "$wxUSE_GUI" = "yes"; then
35487
35488 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35489 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35490echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35491 wxUSE_JOYSTICK=no
35492 fi
35493
35494 if test "$TOOLKIT" != "MSW"; then
35495 if test "$wxUSE_JOYSTICK" = "yes"; then
35496
35497for ac_header in linux/joystick.h
35498do
35499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35500if eval "test \"\${$as_ac_Header+set}\" = set"; then
35501 echo "$as_me:$LINENO: checking for $ac_header" >&5
35502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35503if eval "test \"\${$as_ac_Header+set}\" = set"; then
35504 echo $ECHO_N "(cached) $ECHO_C" >&6
35505fi
35506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35508else
35509 # Is the header compilable?
35510echo "$as_me:$LINENO: checking $ac_header usability" >&5
35511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35512cat >conftest.$ac_ext <<_ACEOF
35513/* confdefs.h. */
35514_ACEOF
35515cat confdefs.h >>conftest.$ac_ext
35516cat >>conftest.$ac_ext <<_ACEOF
35517/* end confdefs.h. */
35518$ac_includes_default
35519#include <$ac_header>
35520_ACEOF
35521rm -f conftest.$ac_objext
35522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35523 (eval $ac_compile) 2>conftest.er1
a848cd7e 35524 ac_status=$?
ac1cb8d3
VS
35525 grep -v '^ *+' conftest.er1 >conftest.err
35526 rm -f conftest.er1
35527 cat conftest.err >&5
a848cd7e
SC
35528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529 (exit $ac_status); } &&
224bf05c 35530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35532 (eval $ac_try) 2>&5
35533 ac_status=$?
35534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35535 (exit $ac_status); }; } &&
35536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35538 (eval $ac_try) 2>&5
35539 ac_status=$?
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); }; }; then
35542 ac_header_compiler=yes
35543else
35544 echo "$as_me: failed program was:" >&5
35545sed 's/^/| /' conftest.$ac_ext >&5
35546
35547ac_header_compiler=no
35548fi
ac1cb8d3 35549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35550echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35551echo "${ECHO_T}$ac_header_compiler" >&6
35552
35553# Is the header present?
35554echo "$as_me:$LINENO: checking $ac_header presence" >&5
35555echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35556cat >conftest.$ac_ext <<_ACEOF
35557/* confdefs.h. */
35558_ACEOF
35559cat confdefs.h >>conftest.$ac_ext
35560cat >>conftest.$ac_ext <<_ACEOF
35561/* end confdefs.h. */
35562#include <$ac_header>
35563_ACEOF
35564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35566 ac_status=$?
35567 grep -v '^ *+' conftest.er1 >conftest.err
35568 rm -f conftest.er1
35569 cat conftest.err >&5
35570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35571 (exit $ac_status); } >/dev/null; then
35572 if test -s conftest.err; then
35573 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35575 else
35576 ac_cpp_err=
35577 fi
35578else
35579 ac_cpp_err=yes
35580fi
35581if test -z "$ac_cpp_err"; then
35582 ac_header_preproc=yes
35583else
35584 echo "$as_me: failed program was:" >&5
35585sed 's/^/| /' conftest.$ac_ext >&5
35586
35587 ac_header_preproc=no
35588fi
35589rm -f conftest.err conftest.$ac_ext
35590echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35591echo "${ECHO_T}$ac_header_preproc" >&6
35592
35593# So? What about this header?
ac1cb8d3
VS
35594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35595 yes:no: )
a848cd7e
SC
35596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35597echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35599echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35600 ac_header_preproc=yes
a848cd7e 35601 ;;
ac1cb8d3 35602 no:yes:* )
a848cd7e
SC
35603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35604echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35606echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35608echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35610echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35612echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35614echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35615 (
35616 cat <<\_ASBOX
ac1cb8d3
VS
35617## ----------------------------------------- ##
35618## Report this to wx-dev@lists.wxwidgets.org ##
35619## ----------------------------------------- ##
a848cd7e
SC
35620_ASBOX
35621 ) |
35622 sed "s/^/$as_me: WARNING: /" >&2
35623 ;;
35624esac
35625echo "$as_me:$LINENO: checking for $ac_header" >&5
35626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35627if eval "test \"\${$as_ac_Header+set}\" = set"; then
35628 echo $ECHO_N "(cached) $ECHO_C" >&6
35629else
ac1cb8d3 35630 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35631fi
35632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35634
35635fi
35636if test `eval echo '${'$as_ac_Header'}'` = yes; then
35637 cat >>confdefs.h <<_ACEOF
35638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35639_ACEOF
35640
35641fi
35642
35643done
35644
35645 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35646 wxUSE_JOYSTICK=no
35647 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35648echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35649 fi
35650 fi
35651 fi
35652
35653 if test "$wxUSE_JOYSTICK" = "yes"; then
35654 cat >>confdefs.h <<\_ACEOF
35655#define wxUSE_JOYSTICK 1
35656_ACEOF
35657
35658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35659 fi
35660fi
35661
35662
35663
35664if test "$wxUSE_FONTMAP" = "yes" ; then
35665 cat >>confdefs.h <<\_ACEOF
35666#define wxUSE_FONTMAP 1
35667_ACEOF
35668
35669fi
35670
35671if test "$wxUSE_UNICODE" = "yes" ; then
35672 cat >>confdefs.h <<\_ACEOF
35673#define wxUSE_UNICODE 1
35674_ACEOF
35675
35676
35677 if test "$USE_WIN32" != 1; then
35678 wxUSE_UNICODE_MSLU=no
35679 fi
35680
35681 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35682 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35683echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35684if test "${ac_cv_lib_unicows_main+set}" = set; then
35685 echo $ECHO_N "(cached) $ECHO_C" >&6
35686else
35687 ac_check_lib_save_LIBS=$LIBS
35688LIBS="-lunicows $LIBS"
35689cat >conftest.$ac_ext <<_ACEOF
35690/* confdefs.h. */
35691_ACEOF
35692cat confdefs.h >>conftest.$ac_ext
35693cat >>conftest.$ac_ext <<_ACEOF
35694/* end confdefs.h. */
35695
35696
35697int
35698main ()
35699{
35700main ();
35701 ;
35702 return 0;
35703}
35704_ACEOF
35705rm -f conftest.$ac_objext conftest$ac_exeext
35706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35707 (eval $ac_link) 2>conftest.er1
a848cd7e 35708 ac_status=$?
ac1cb8d3
VS
35709 grep -v '^ *+' conftest.er1 >conftest.err
35710 rm -f conftest.er1
35711 cat conftest.err >&5
a848cd7e
SC
35712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713 (exit $ac_status); } &&
224bf05c 35714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35716 (eval $ac_try) 2>&5
35717 ac_status=$?
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); }; } &&
35720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722 (eval $ac_try) 2>&5
35723 ac_status=$?
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); }; }; then
35726 ac_cv_lib_unicows_main=yes
35727else
35728 echo "$as_me: failed program was:" >&5
35729sed 's/^/| /' conftest.$ac_ext >&5
35730
35731ac_cv_lib_unicows_main=no
35732fi
ac1cb8d3
VS
35733rm -f conftest.err conftest.$ac_objext \
35734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35735LIBS=$ac_check_lib_save_LIBS
35736fi
35737echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35738echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35739if test $ac_cv_lib_unicows_main = yes; then
35740
35741 cat >>confdefs.h <<\_ACEOF
35742#define wxUSE_UNICODE_MSLU 1
35743_ACEOF
35744
35745
35746else
35747
35748 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35749 Applications will only run on Windows NT/2000/XP!" >&5
35750echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35751 Applications will only run on Windows NT/2000/XP!" >&2;}
35752 wxUSE_UNICODE_MSLU=no
35753
35754fi
35755
35756 fi
35757fi
35758
35759if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35760 cat >>confdefs.h <<\_ACEOF
35761#define wxUSE_EXPERIMENTAL_PRINTF 1
35762_ACEOF
35763
35764fi
35765
35766
35767if test "$wxUSE_POSTSCRIPT" = "yes" ; then
35768 cat >>confdefs.h <<\_ACEOF
35769#define wxUSE_POSTSCRIPT 1
35770_ACEOF
35771
35772fi
35773
35774cat >>confdefs.h <<\_ACEOF
35775#define wxUSE_AFM_FOR_POSTSCRIPT 1
35776_ACEOF
35777
35778
35779cat >>confdefs.h <<\_ACEOF
35780#define wxUSE_NORMALIZED_PS_FONTS 1
35781_ACEOF
35782
35783
35784
35785if test "$wxUSE_CONSTRAINTS" = "yes"; then
35786 cat >>confdefs.h <<\_ACEOF
35787#define wxUSE_CONSTRAINTS 1
35788_ACEOF
35789
35790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35791fi
35792
8a7b1113
VZ
35793if test "$wxUSE_MDI" = "yes"; then
35794 cat >>confdefs.h <<\_ACEOF
35795#define wxUSE_MDI 1
35796_ACEOF
35797
35798
35799 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35800 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35801#define wxUSE_MDI_ARCHITECTURE 1
35802_ACEOF
35803
8a7b1113
VZ
35804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
35805 fi
a848cd7e
SC
35806fi
35807
35808if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
35809 cat >>confdefs.h <<\_ACEOF
35810#define wxUSE_DOC_VIEW_ARCHITECTURE 1
35811_ACEOF
35812
35813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35814 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35816 fi
35817fi
35818
35819if test "$wxUSE_HELP" = "yes"; then
35820 cat >>confdefs.h <<\_ACEOF
35821#define wxUSE_HELP 1
35822_ACEOF
35823
35824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
35825
35826 if test "$wxUSE_MSW" = 1; then
35827 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
35828 cat >>confdefs.h <<\_ACEOF
35829#define wxUSE_MS_HTML_HELP 1
35830_ACEOF
35831
35832 fi
35833 fi
35834
35835 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35836 if test "$wxUSE_HTML" = "yes"; then
35837 cat >>confdefs.h <<\_ACEOF
35838#define wxUSE_WXHTML_HELP 1
35839_ACEOF
35840
35841 else
35842 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35843echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
35844 wxUSE_WXHTML_HELP=no
35845 fi
35846 fi
35847fi
35848
35849if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35850 if test "$wxUSE_CONSTRAINTS" != "yes"; then
35851 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35852echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
35853 else
35854 cat >>confdefs.h <<\_ACEOF
35855#define wxUSE_PRINTING_ARCHITECTURE 1
35856_ACEOF
35857
35858 fi
35859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35860fi
35861
35862if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35863 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35864echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35865 { (exit 1); exit 1; }; }
35866fi
35867
35868
35869if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
35870 -o "$wxUSE_CLIPBOARD" = "yes" \
35871 -o "$wxUSE_OLE" = "yes" \
35872 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35873
35874for ac_header in ole2.h
35875do
35876as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35877if eval "test \"\${$as_ac_Header+set}\" = set"; then
35878 echo "$as_me:$LINENO: checking for $ac_header" >&5
35879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35880if eval "test \"\${$as_ac_Header+set}\" = set"; then
35881 echo $ECHO_N "(cached) $ECHO_C" >&6
35882fi
35883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35885else
35886 # Is the header compilable?
35887echo "$as_me:$LINENO: checking $ac_header usability" >&5
35888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35889cat >conftest.$ac_ext <<_ACEOF
35890/* confdefs.h. */
35891_ACEOF
35892cat confdefs.h >>conftest.$ac_ext
35893cat >>conftest.$ac_ext <<_ACEOF
35894/* end confdefs.h. */
35895$ac_includes_default
35896#include <$ac_header>
35897_ACEOF
35898rm -f conftest.$ac_objext
35899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35900 (eval $ac_compile) 2>conftest.er1
a848cd7e 35901 ac_status=$?
ac1cb8d3
VS
35902 grep -v '^ *+' conftest.er1 >conftest.err
35903 rm -f conftest.er1
35904 cat conftest.err >&5
a848cd7e
SC
35905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35906 (exit $ac_status); } &&
224bf05c 35907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35909 (eval $ac_try) 2>&5
35910 ac_status=$?
35911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912 (exit $ac_status); }; } &&
35913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35915 (eval $ac_try) 2>&5
35916 ac_status=$?
35917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35918 (exit $ac_status); }; }; then
35919 ac_header_compiler=yes
35920else
35921 echo "$as_me: failed program was:" >&5
35922sed 's/^/| /' conftest.$ac_ext >&5
35923
35924ac_header_compiler=no
35925fi
ac1cb8d3 35926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35928echo "${ECHO_T}$ac_header_compiler" >&6
35929
35930# Is the header present?
35931echo "$as_me:$LINENO: checking $ac_header presence" >&5
35932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35933cat >conftest.$ac_ext <<_ACEOF
35934/* confdefs.h. */
35935_ACEOF
35936cat confdefs.h >>conftest.$ac_ext
35937cat >>conftest.$ac_ext <<_ACEOF
35938/* end confdefs.h. */
35939#include <$ac_header>
35940_ACEOF
35941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35943 ac_status=$?
35944 grep -v '^ *+' conftest.er1 >conftest.err
35945 rm -f conftest.er1
35946 cat conftest.err >&5
35947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948 (exit $ac_status); } >/dev/null; then
35949 if test -s conftest.err; then
35950 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35952 else
35953 ac_cpp_err=
35954 fi
35955else
35956 ac_cpp_err=yes
35957fi
35958if test -z "$ac_cpp_err"; then
35959 ac_header_preproc=yes
35960else
35961 echo "$as_me: failed program was:" >&5
35962sed 's/^/| /' conftest.$ac_ext >&5
35963
35964 ac_header_preproc=no
35965fi
35966rm -f conftest.err conftest.$ac_ext
35967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35968echo "${ECHO_T}$ac_header_preproc" >&6
35969
35970# So? What about this header?
ac1cb8d3
VS
35971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35972 yes:no: )
a848cd7e
SC
35973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35977 ac_header_preproc=yes
a848cd7e 35978 ;;
ac1cb8d3 35979 no:yes:* )
a848cd7e
SC
35980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35992 (
35993 cat <<\_ASBOX
ac1cb8d3
VS
35994## ----------------------------------------- ##
35995## Report this to wx-dev@lists.wxwidgets.org ##
35996## ----------------------------------------- ##
a848cd7e
SC
35997_ASBOX
35998 ) |
35999 sed "s/^/$as_me: WARNING: /" >&2
36000 ;;
36001esac
36002echo "$as_me:$LINENO: checking for $ac_header" >&5
36003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36004if eval "test \"\${$as_ac_Header+set}\" = set"; then
36005 echo $ECHO_N "(cached) $ECHO_C" >&6
36006else
ac1cb8d3 36007 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36008fi
36009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36011
36012fi
36013if test `eval echo '${'$as_ac_Header'}'` = yes; then
36014 cat >>confdefs.h <<_ACEOF
36015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36016_ACEOF
36017
36018fi
36019
36020done
36021
36022
36023 if test "$ac_cv_header_ole2_h" = "yes" ; then
36024 if test "$GCC" = yes ; then
36025
36026
36027 ac_ext=cc
36028ac_cpp='$CXXCPP $CPPFLAGS'
36029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36032
36033
36034 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36035echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36036 cat >conftest.$ac_ext <<_ACEOF
36037/* confdefs.h. */
36038_ACEOF
36039cat confdefs.h >>conftest.$ac_ext
36040cat >>conftest.$ac_ext <<_ACEOF
36041/* end confdefs.h. */
36042#include <windows.h>
36043 #include <ole2.h>
36044int
36045main ()
36046{
36047
36048 ;
36049 return 0;
36050}
36051_ACEOF
36052rm -f conftest.$ac_objext
36053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36054 (eval $ac_compile) 2>conftest.er1
a848cd7e 36055 ac_status=$?
ac1cb8d3
VS
36056 grep -v '^ *+' conftest.er1 >conftest.err
36057 rm -f conftest.er1
36058 cat conftest.err >&5
a848cd7e
SC
36059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); } &&
224bf05c 36061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063 (eval $ac_try) 2>&5
36064 ac_status=$?
36065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066 (exit $ac_status); }; } &&
36067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36069 (eval $ac_try) 2>&5
36070 ac_status=$?
36071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 (exit $ac_status); }; }; then
36073 echo "$as_me:$LINENO: result: no" >&5
36074echo "${ECHO_T}no" >&6
36075else
36076 echo "$as_me: failed program was:" >&5
36077sed 's/^/| /' conftest.$ac_ext >&5
36078
36079echo "$as_me:$LINENO: result: yes" >&5
36080echo "${ECHO_T}yes" >&6
36081 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36082fi
ac1cb8d3 36083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36084 ac_ext=c
36085ac_cpp='$CPP $CPPFLAGS'
36086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36088ac_compiler_gnu=$ac_cv_c_compiler_gnu
36089
36090 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36091 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36092 if test "$wxUSE_OLE" = "yes" ; then
36093 cat >>confdefs.h <<\_ACEOF
36094#define wxUSE_OLE 1
36095_ACEOF
36096
36097 fi
36098 fi
36099
36100 if test "$wxUSE_DATAOBJ" = "yes" ; then
36101 cat >>confdefs.h <<\_ACEOF
36102#define wxUSE_DATAOBJ 1
36103_ACEOF
36104
36105 fi
36106 else
36107 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36108echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36109
36110 wxUSE_CLIPBOARD=no
36111 wxUSE_DRAG_AND_DROP=no
36112 wxUSE_DATAOBJ=no
36113 wxUSE_OLE=no
36114 fi
36115
36116 if test "$wxUSE_METAFILE" = "yes"; then
36117 cat >>confdefs.h <<\_ACEOF
36118#define wxUSE_METAFILE 1
36119_ACEOF
36120
36121
36122 cat >>confdefs.h <<\_ACEOF
36123#define wxUSE_ENH_METAFILE 1
36124_ACEOF
36125
36126 fi
36127fi
36128
36129if test "$wxUSE_IPC" = "yes"; then
36130 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36131 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36132echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36133 fi
36134
36135 cat >>confdefs.h <<\_ACEOF
36136#define wxUSE_IPC 1
36137_ACEOF
36138
36139fi
36140
36141if test "$wxUSE_CLIPBOARD" = "yes"; then
36142 if test "$wxUSE_MGL" = 1; then
36143 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36144echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36145 wxUSE_CLIPBOARD=no
36146 fi
36147
36148 if test "$wxUSE_CLIPBOARD" = "yes"; then
36149 cat >>confdefs.h <<\_ACEOF
36150#define wxUSE_CLIPBOARD 1
36151_ACEOF
36152
36153
36154 cat >>confdefs.h <<\_ACEOF
36155#define wxUSE_DATAOBJ 1
36156_ACEOF
36157
36158 fi
36159fi
36160
36161if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36162 if test "$wxUSE_GTK" = 1; then
36163 if test "$WXGTK12" != 1; then
36164 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36165echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36166 wxUSE_DRAG_AND_DROP=no
36167 fi
36168 fi
36169
36170 if test "$wxUSE_MOTIF" = 1; then
36171 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36172echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36173 wxUSE_DRAG_AND_DROP=no
36174 fi
36175
36176 if test "$wxUSE_X11" = 1; then
36177 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36178echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36179 wxUSE_DRAG_AND_DROP=no
36180 fi
36181
36182 if test "$wxUSE_MGL" = 1; then
36183 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36184echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36185 wxUSE_DRAG_AND_DROP=no
36186 fi
36187
36188 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36189 cat >>confdefs.h <<\_ACEOF
36190#define wxUSE_DRAG_AND_DROP 1
36191_ACEOF
36192
36193 fi
36194
36195fi
36196
36197if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36199fi
36200
36201if test "$wxUSE_SPLINES" = "yes" ; then
36202 cat >>confdefs.h <<\_ACEOF
36203#define wxUSE_SPLINES 1
36204_ACEOF
36205
36206fi
36207
36208
36209USES_CONTROLS=0
36210if test "$wxUSE_CONTROLS" = "yes"; then
36211 USES_CONTROLS=1
36212fi
36213
36214if test "$wxUSE_ACCEL" = "yes"; then
36215 cat >>confdefs.h <<\_ACEOF
36216#define wxUSE_ACCEL 1
36217_ACEOF
36218
36219 USES_CONTROLS=1
36220fi
36221
36222if test "$wxUSE_BUTTON" = "yes"; then
36223 cat >>confdefs.h <<\_ACEOF
36224#define wxUSE_BUTTON 1
36225_ACEOF
36226
36227 USES_CONTROLS=1
36228fi
36229
36230if test "$wxUSE_BMPBUTTON" = "yes"; then
36231 cat >>confdefs.h <<\_ACEOF
36232#define wxUSE_BMPBUTTON 1
36233_ACEOF
36234
36235 USES_CONTROLS=1
36236fi
36237
36238if test "$wxUSE_CALCTRL" = "yes"; then
36239 cat >>confdefs.h <<\_ACEOF
36240#define wxUSE_CALENDARCTRL 1
36241_ACEOF
36242
36243 USES_CONTROLS=1
36244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36245fi
36246
36247if test "$wxUSE_CARET" = "yes"; then
36248 cat >>confdefs.h <<\_ACEOF
36249#define wxUSE_CARET 1
36250_ACEOF
36251
36252 USES_CONTROLS=1
36253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36254fi
36255
36256if test "$wxUSE_COMBOBOX" = "yes"; then
36257 cat >>confdefs.h <<\_ACEOF
36258#define wxUSE_COMBOBOX 1
36259_ACEOF
36260
36261 USES_CONTROLS=1
36262fi
36263
36264if test "$wxUSE_CHOICE" = "yes"; then
36265 cat >>confdefs.h <<\_ACEOF
36266#define wxUSE_CHOICE 1
36267_ACEOF
36268
36269 USES_CONTROLS=1
36270fi
36271
36272if test "$wxUSE_CHECKBOX" = "yes"; then
36273 cat >>confdefs.h <<\_ACEOF
36274#define wxUSE_CHECKBOX 1
36275_ACEOF
36276
36277 USES_CONTROLS=1
36278fi
36279
36280if test "$wxUSE_CHECKLST" = "yes"; then
36281 cat >>confdefs.h <<\_ACEOF
36282#define wxUSE_CHECKLISTBOX 1
36283_ACEOF
36284
36285 USES_CONTROLS=1
36286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36287fi
36288
36289if test "$wxUSE_DISPLAY" = "yes"; then
36290 cat >>confdefs.h <<\_ACEOF
36291#define wxUSE_DISPLAY 1
36292_ACEOF
36293
36294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36295fi
36296
36297if test "$wxUSE_GAUGE" = "yes"; then
36298 cat >>confdefs.h <<\_ACEOF
36299#define wxUSE_GAUGE 1
36300_ACEOF
36301
36302 USES_CONTROLS=1
36303fi
36304
36305if test "$wxUSE_GRID" = "yes"; then
36306 cat >>confdefs.h <<\_ACEOF
36307#define wxUSE_GRID 1
36308_ACEOF
36309
36310 USES_CONTROLS=1
36311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36312fi
36313
36314if test "$wxUSE_IMAGLIST" = "yes"; then
36315 cat >>confdefs.h <<\_ACEOF
36316#define wxUSE_IMAGLIST 1
36317_ACEOF
36318
36319fi
36320
36321if test "$wxUSE_LISTBOOK" = "yes"; then
36322 cat >>confdefs.h <<\_ACEOF
36323#define wxUSE_LISTBOOK 1
36324_ACEOF
36325
36326 USES_CONTROLS=1
36327fi
36328
36329if test "$wxUSE_LISTBOX" = "yes"; then
36330 cat >>confdefs.h <<\_ACEOF
36331#define wxUSE_LISTBOX 1
36332_ACEOF
36333
36334 USES_CONTROLS=1
36335fi
36336
36337if test "$wxUSE_LISTCTRL" = "yes"; then
36338 if test "$wxUSE_IMAGLIST" = "yes"; then
36339 cat >>confdefs.h <<\_ACEOF
36340#define wxUSE_LISTCTRL 1
36341_ACEOF
36342
36343 USES_CONTROLS=1
36344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36345 else
36346 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36347echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36348 fi
36349fi
36350
36351if test "$wxUSE_NOTEBOOK" = "yes"; then
36352 cat >>confdefs.h <<\_ACEOF
36353#define wxUSE_NOTEBOOK 1
36354_ACEOF
36355
36356 USES_CONTROLS=1
36357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36358fi
36359
36360
36361if test "$wxUSE_RADIOBOX" = "yes"; then
36362 cat >>confdefs.h <<\_ACEOF
36363#define wxUSE_RADIOBOX 1
36364_ACEOF
36365
36366 USES_CONTROLS=1
36367fi
36368
36369if test "$wxUSE_RADIOBTN" = "yes"; then
36370 cat >>confdefs.h <<\_ACEOF
36371#define wxUSE_RADIOBTN 1
36372_ACEOF
36373
36374 USES_CONTROLS=1
36375fi
36376
36377if test "$wxUSE_SASH" = "yes"; then
36378 cat >>confdefs.h <<\_ACEOF
36379#define wxUSE_SASH 1
36380_ACEOF
36381
36382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36383fi
36384
36385if test "$wxUSE_SCROLLBAR" = "yes"; then
36386 cat >>confdefs.h <<\_ACEOF
36387#define wxUSE_SCROLLBAR 1
36388_ACEOF
36389
36390 USES_CONTROLS=1
36391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36392fi
36393
36394if test "$wxUSE_SLIDER" = "yes"; then
36395 cat >>confdefs.h <<\_ACEOF
36396#define wxUSE_SLIDER 1
36397_ACEOF
36398
36399 USES_CONTROLS=1
36400fi
36401
36402if test "$wxUSE_SPINBTN" = "yes"; then
36403 cat >>confdefs.h <<\_ACEOF
36404#define wxUSE_SPINBTN 1
36405_ACEOF
36406
36407 USES_CONTROLS=1
36408fi
36409
36410if test "$wxUSE_SPINCTRL" = "yes"; then
36411 cat >>confdefs.h <<\_ACEOF
36412#define wxUSE_SPINCTRL 1
36413_ACEOF
36414
36415 USES_CONTROLS=1
36416fi
36417
36418if test "$wxUSE_SPLITTER" = "yes"; then
36419 cat >>confdefs.h <<\_ACEOF
36420#define wxUSE_SPLITTER 1
36421_ACEOF
36422
36423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36424fi
36425
36426if test "$wxUSE_STATBMP" = "yes"; then
36427 cat >>confdefs.h <<\_ACEOF
36428#define wxUSE_STATBMP 1
36429_ACEOF
36430
36431 USES_CONTROLS=1
36432fi
36433
36434if test "$wxUSE_STATBOX" = "yes"; then
36435 cat >>confdefs.h <<\_ACEOF
36436#define wxUSE_STATBOX 1
36437_ACEOF
36438
36439 USES_CONTROLS=1
36440fi
36441
36442if test "$wxUSE_STATTEXT" = "yes"; then
36443 cat >>confdefs.h <<\_ACEOF
36444#define wxUSE_STATTEXT 1
36445_ACEOF
36446
36447 USES_CONTROLS=1
36448fi
36449
36450if test "$wxUSE_STATLINE" = "yes"; then
36451 cat >>confdefs.h <<\_ACEOF
36452#define wxUSE_STATLINE 1
36453_ACEOF
36454
36455 USES_CONTROLS=1
36456fi
36457
36458if test "$wxUSE_STATUSBAR" = "yes"; then
36459 cat >>confdefs.h <<\_ACEOF
36460#define wxUSE_STATUSBAR 1
36461_ACEOF
36462
36463 USES_CONTROLS=1
36464
36465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36466fi
36467
36468if test "$wxUSE_TABDIALOG" = "yes"; then
36469 cat >>confdefs.h <<\_ACEOF
36470#define wxUSE_TAB_DIALOG 1
36471_ACEOF
36472
36473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36474fi
36475
36476if test "$wxUSE_TEXTCTRL" = "yes"; then
36477 cat >>confdefs.h <<\_ACEOF
36478#define wxUSE_TEXTCTRL 1
36479_ACEOF
36480
36481 USES_CONTROLS=1
36482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36483fi
36484
36485if test "$wxUSE_TOGGLEBTN" = "yes"; then
36486 if test "$wxUSE_COCOA" = 1 ; then
36487 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36488echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36489 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36490 else
36491 if test "$wxUSE_PM" = 1; then
36492 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36493echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36494 wxUSE_TOGGLEBTN=no
36495 fi
a848cd7e
SC
36496 fi
36497 if test "$wxUSE_UNIVERSAL" = "yes"; then
36498 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36499echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36500 wxUSE_TOGGLEBTN=no
36501 fi
36502
36503 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36504 cat >>confdefs.h <<\_ACEOF
36505#define wxUSE_TOGGLEBTN 1
36506_ACEOF
36507
36508 USES_CONTROLS=1
36509 fi
36510fi
36511
36512if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36513 cat >>confdefs.h <<\_ACEOF
36514#define wxUSE_TOOLBAR_SIMPLE 1
36515_ACEOF
36516
36517 wxUSE_TOOLBAR="yes"
36518 USES_CONTROLS=1
36519fi
36520
36521if test "$wxUSE_TOOLBAR" = "yes"; then
36522 cat >>confdefs.h <<\_ACEOF
36523#define wxUSE_TOOLBAR 1
36524_ACEOF
36525
36526 USES_CONTROLS=1
36527
36528 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36529 wxUSE_TOOLBAR_NATIVE="yes"
36530 fi
36531
36532 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36533 cat >>confdefs.h <<\_ACEOF
36534#define wxUSE_TOOLBAR_NATIVE 1
36535_ACEOF
36536
36537 USES_CONTROLS=1
36538 fi
36539
36540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36541fi
36542
36543if test "$wxUSE_TOOLTIPS" = "yes"; then
36544 if test "$wxUSE_MOTIF" = 1; then
36545 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36546echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36547 else
36548 if test "$wxUSE_UNIVERSAL" = "yes"; then
36549 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36550echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36551 else
36552 cat >>confdefs.h <<\_ACEOF
36553#define wxUSE_TOOLTIPS 1
36554_ACEOF
36555
36556 fi
36557 fi
36558fi
36559
36560if test "$wxUSE_TREECTRL" = "yes"; then
36561 if test "$wxUSE_IMAGLIST" = "yes"; then
36562 cat >>confdefs.h <<\_ACEOF
36563#define wxUSE_TREECTRL 1
36564_ACEOF
36565
36566 USES_CONTROLS=1
36567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36568 else
36569 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36570echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36571 fi
36572fi
36573
36574if test "$wxUSE_POPUPWIN" = "yes"; then
36575 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36576 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36577echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36578 else
36579 if test "$wxUSE_PM" = 1; then
36580 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36581echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36582 else
36583 cat >>confdefs.h <<\_ACEOF
36584#define wxUSE_POPUPWIN 1
36585_ACEOF
36586
36587
36588 USES_CONTROLS=1
36589 fi
36590 fi
36591fi
36592
36593if test "$wxUSE_TIPWINDOW" = "yes"; then
36594 if test "$wxUSE_PM" = 1; then
36595 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36596echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36597 else
36598 cat >>confdefs.h <<\_ACEOF
36599#define wxUSE_TIPWINDOW 1
36600_ACEOF
36601
36602 fi
36603fi
36604
36605if test "$USES_CONTROLS" = 1; then
36606 cat >>confdefs.h <<\_ACEOF
36607#define wxUSE_CONTROLS 1
36608_ACEOF
36609
36610fi
36611
36612
36613if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36614 cat >>confdefs.h <<\_ACEOF
36615#define wxUSE_ACCESSIBILITY 1
36616_ACEOF
36617
36618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36619fi
36620
36621if test "$wxUSE_DRAGIMAGE" = "yes"; then
36622 cat >>confdefs.h <<\_ACEOF
36623#define wxUSE_DRAGIMAGE 1
36624_ACEOF
36625
36626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36627fi
36628
36629if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36630 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36631 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36632echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36633 else
36634 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36635#define wxUSE_EXCEPTIONS 1
36636_ACEOF
36637
07bea8f0
VS
36638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36639 fi
a848cd7e
SC
36640fi
36641
36642USE_HTML=0
36643if test "$wxUSE_HTML" = "yes"; then
36644 cat >>confdefs.h <<\_ACEOF
36645#define wxUSE_HTML 1
36646_ACEOF
36647
36648 USE_HTML=1
36649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36650 if test "$wxUSE_MAC" = 1; then
36651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36652 fi
a848cd7e 36653fi
646b6ec1 36654if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36655 if test "$wxUSE_MAC" = 1; then
36656 old_CPPFLAGS="$CPPFLAGS"
36657 CPPFLAGS="$CPPFLAGS -x objective-c++"
36658 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36659echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36660if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36661 echo $ECHO_N "(cached) $ECHO_C" >&6
36662else
36663 cat >conftest.$ac_ext <<_ACEOF
36664/* confdefs.h. */
36665_ACEOF
36666cat confdefs.h >>conftest.$ac_ext
36667cat >>conftest.$ac_ext <<_ACEOF
36668/* end confdefs.h. */
36669#include <Carbon/Carbon.h>
36670
36671#include <WebKit/HIWebView.h>
36672_ACEOF
36673rm -f conftest.$ac_objext
36674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36675 (eval $ac_compile) 2>conftest.er1
36676 ac_status=$?
36677 grep -v '^ *+' conftest.er1 >conftest.err
36678 rm -f conftest.er1
36679 cat conftest.err >&5
36680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681 (exit $ac_status); } &&
224bf05c 36682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
36683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36684 (eval $ac_try) 2>&5
36685 ac_status=$?
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); }; } &&
36688 { ac_try='test -s conftest.$ac_objext'
36689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36690 (eval $ac_try) 2>&5
36691 ac_status=$?
36692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693 (exit $ac_status); }; }; then
36694 ac_cv_header_WebKit_HIWebView_h=yes
36695else
36696 echo "$as_me: failed program was:" >&5
36697sed 's/^/| /' conftest.$ac_ext >&5
36698
36699ac_cv_header_WebKit_HIWebView_h=no
36700fi
36701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36702fi
36703echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36704echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36705if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36706
36707 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36708#define wxUSE_WEBKIT 1
36709_ACEOF
36710
07bea8f0
VS
36711 WEBKIT_LINK="-framework WebKit"
36712
36713else
36714
36715 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36716echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36717 wxUSE_WEBKIT=no
36718
646b6ec1
VS
36719fi
36720
07bea8f0
VS
36721
36722 CPPFLAGS="$old_CPPFLAGS"
36723 elif test "$wxUSE_COCOA" = 1; then
36724 cat >>confdefs.h <<\_ACEOF
36725#define wxUSE_WEBKIT 1
36726_ACEOF
36727
36728 else
36729 wxUSE_WEBKIT=no
36730 fi
36731fi
36732
36733
a848cd7e
SC
36734if test "$wxUSE_MENUS" = "yes"; then
36735 cat >>confdefs.h <<\_ACEOF
36736#define wxUSE_MENUS 1
36737_ACEOF
36738
36739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36740fi
36741
36742if test "$wxUSE_METAFILE" = "yes"; then
36743 cat >>confdefs.h <<\_ACEOF
36744#define wxUSE_METAFILE 1
36745_ACEOF
36746
36747fi
36748
36749if test "$wxUSE_MIMETYPE" = "yes"; then
36750 cat >>confdefs.h <<\_ACEOF
36751#define wxUSE_MIMETYPE 1
36752_ACEOF
36753
36754fi
36755
36756if test "$wxUSE_MINIFRAME" = "yes"; then
36757 cat >>confdefs.h <<\_ACEOF
36758#define wxUSE_MINIFRAME 1
36759_ACEOF
36760
36761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36762fi
36763
36764if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
36765 cat >>confdefs.h <<\_ACEOF
36766#define wxUSE_SYSTEM_OPTIONS 1
36767_ACEOF
36768
36769 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36770 "$TOOLKIT" = "MOTIF"; then
36771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36772 fi
36773fi
36774
36775
36776if test "$wxUSE_VALIDATORS" = "yes"; then
36777 cat >>confdefs.h <<\_ACEOF
36778#define wxUSE_VALIDATORS 1
36779_ACEOF
36780
36781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36782fi
36783
36784if test "$wxUSE_PALETTE" = "yes" ; then
36785 cat >>confdefs.h <<\_ACEOF
36786#define wxUSE_PALETTE 1
36787_ACEOF
36788
36789fi
36790
36791if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36792 LIBS=" -lunicows $LIBS"
36793fi
36794
36795
36796if test "$wxUSE_IMAGE" = "yes" ; then
36797 cat >>confdefs.h <<\_ACEOF
36798#define wxUSE_IMAGE 1
36799_ACEOF
36800
36801
36802 if test "$wxUSE_GIF" = "yes" ; then
36803 cat >>confdefs.h <<\_ACEOF
36804#define wxUSE_GIF 1
36805_ACEOF
36806
36807 fi
36808
36809 if test "$wxUSE_PCX" = "yes" ; then
36810 cat >>confdefs.h <<\_ACEOF
36811#define wxUSE_PCX 1
36812_ACEOF
36813
36814 fi
36815
36816 if test "$wxUSE_IFF" = "yes" ; then
36817 cat >>confdefs.h <<\_ACEOF
36818#define wxUSE_IFF 1
36819_ACEOF
36820
36821 fi
36822
36823 if test "$wxUSE_PNM" = "yes" ; then
36824 cat >>confdefs.h <<\_ACEOF
36825#define wxUSE_PNM 1
36826_ACEOF
36827
36828 fi
36829
36830 if test "$wxUSE_XPM" = "yes" ; then
36831 cat >>confdefs.h <<\_ACEOF
36832#define wxUSE_XPM 1
36833_ACEOF
36834
36835 fi
36836
36837 if test "$wxUSE_ICO_CUR" = "yes" ; then
36838 cat >>confdefs.h <<\_ACEOF
36839#define wxUSE_ICO_CUR 1
36840_ACEOF
36841
36842 fi
36843fi
36844
36845
36846if test "$wxUSE_CHOICEDLG" = "yes"; then
36847 cat >>confdefs.h <<\_ACEOF
36848#define wxUSE_CHOICEDLG 1
36849_ACEOF
36850
36851fi
36852
36853if test "$wxUSE_COLOURDLG" = "yes"; then
36854 cat >>confdefs.h <<\_ACEOF
36855#define wxUSE_COLOURDLG 1
36856_ACEOF
36857
36858fi
36859
36860if test "$wxUSE_FILEDLG" = "yes"; then
36861 cat >>confdefs.h <<\_ACEOF
36862#define wxUSE_FILEDLG 1
36863_ACEOF
36864
36865fi
36866
36867if test "$wxUSE_FINDREPLDLG" = "yes"; then
36868 cat >>confdefs.h <<\_ACEOF
36869#define wxUSE_FINDREPLDLG 1
36870_ACEOF
36871
36872fi
36873
36874if test "$wxUSE_FONTDLG" = "yes"; then
36875 cat >>confdefs.h <<\_ACEOF
36876#define wxUSE_FONTDLG 1
36877_ACEOF
36878
36879fi
36880
36881if test "$wxUSE_DIRDLG" = "yes"; then
36882 if test "$wxUSE_TREECTRL" != "yes"; then
36883 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36884echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
36885 else
36886 cat >>confdefs.h <<\_ACEOF
36887#define wxUSE_DIRDLG 1
36888_ACEOF
36889
36890 fi
36891fi
36892
36893if test "$wxUSE_MSGDLG" = "yes"; then
36894 cat >>confdefs.h <<\_ACEOF
36895#define wxUSE_MSGDLG 1
36896_ACEOF
36897
36898fi
36899
36900if test "$wxUSE_NUMBERDLG" = "yes"; then
36901 cat >>confdefs.h <<\_ACEOF
36902#define wxUSE_NUMBERDLG 1
36903_ACEOF
36904
36905fi
36906
36907if test "$wxUSE_PROGRESSDLG" = "yes"; then
36908 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36909 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36910echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
36911 else
36912 cat >>confdefs.h <<\_ACEOF
36913#define wxUSE_PROGRESSDLG 1
36914_ACEOF
36915
36916 fi
36917fi
36918
36919if test "$wxUSE_SPLASH" = "yes"; then
36920 cat >>confdefs.h <<\_ACEOF
36921#define wxUSE_SPLASH 1
36922_ACEOF
36923
36924fi
36925
36926if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36927 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36928 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36929echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
36930 else
36931 cat >>confdefs.h <<\_ACEOF
36932#define wxUSE_STARTUP_TIPS 1
36933_ACEOF
36934
36935 fi
36936fi
36937
36938if test "$wxUSE_TEXTDLG" = "yes"; then
36939 cat >>confdefs.h <<\_ACEOF
36940#define wxUSE_TEXTDLG 1
36941_ACEOF
36942
36943fi
36944
36945if test "$wxUSE_WIZARDDLG" = "yes"; then
36946 cat >>confdefs.h <<\_ACEOF
36947#define wxUSE_WIZARDDLG 1
36948_ACEOF
36949
36950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36951fi
36952
36953
36954if test "$cross_compiling" = "yes"; then
36955 OSINFO="\"$host\""
36956else
36957 OSINFO=`uname -s -r -m`
36958 OSINFO="\"$OSINFO\""
36959fi
36960
36961cat >>confdefs.h <<_ACEOF
36962#define WXWIN_OS_DESCRIPTION $OSINFO
36963_ACEOF
36964
36965
36966
36967if test "x$prefix" != "xNONE"; then
36968 wxPREFIX=$prefix
36969else
36970 wxPREFIX=$ac_default_prefix
36971fi
36972
36973cat >>confdefs.h <<_ACEOF
36974#define wxINSTALL_PREFIX "$wxPREFIX"
36975_ACEOF
36976
36977
36978top_builddir_wxconfig=`pwd`
36979
36980
36981
36982CORE_BASE_LIBS="net base"
36983CORE_GUI_LIBS="adv core"
36984
36985if test "$wxUSE_XML" = "yes" ; then
36986 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36987fi
36988if test "$wxUSE_ODBC" != "no" ; then
36989 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36990 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
36991fi
36992if test "$wxUSE_HTML" = "yes" ; then
36993 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36994fi
36995
36996if test "$wxUSE_GUI" != "yes"; then
36997 CORE_GUI_LIBS=""
36998fi
36999
37000
37001
37002
37003
37004
37005
37006
37007if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37008 if test "$wxUSE_SOUND" = "yes"; then
37009 LDFLAGS="$LDFLAGS -framework QuickTime"
37010 fi
37011 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37012fi
37013if test "$wxUSE_COCOA" = 1 ; then
37014 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37015fi
37016
37017
37018LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37019
37020have_cos=0
37021have_floor=0
37022
37023for ac_func in cos
37024do
37025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37026echo "$as_me:$LINENO: checking for $ac_func" >&5
37027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37028if eval "test \"\${$as_ac_var+set}\" = set"; then
37029 echo $ECHO_N "(cached) $ECHO_C" >&6
37030else
37031 cat >conftest.$ac_ext <<_ACEOF
37032/* confdefs.h. */
37033_ACEOF
37034cat confdefs.h >>conftest.$ac_ext
37035cat >>conftest.$ac_ext <<_ACEOF
37036/* end confdefs.h. */
ac1cb8d3
VS
37037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37039#define $ac_func innocuous_$ac_func
37040
a848cd7e
SC
37041/* System header to define __stub macros and hopefully few prototypes,
37042 which can conflict with char $ac_func (); below.
37043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37044 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37045
a848cd7e
SC
37046#ifdef __STDC__
37047# include <limits.h>
37048#else
37049# include <assert.h>
37050#endif
ac1cb8d3
VS
37051
37052#undef $ac_func
37053
a848cd7e
SC
37054/* Override any gcc2 internal prototype to avoid an error. */
37055#ifdef __cplusplus
37056extern "C"
37057{
37058#endif
37059/* We use char because int might match the return type of a gcc2
37060 builtin and then its argument prototype would still apply. */
37061char $ac_func ();
37062/* The GNU C library defines this for functions which it implements
37063 to always fail with ENOSYS. Some functions are actually named
37064 something starting with __ and the normal name is an alias. */
37065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37066choke me
37067#else
37068char (*f) () = $ac_func;
37069#endif
37070#ifdef __cplusplus
37071}
37072#endif
37073
37074int
37075main ()
37076{
37077return f != $ac_func;
37078 ;
37079 return 0;
37080}
37081_ACEOF
37082rm -f conftest.$ac_objext conftest$ac_exeext
37083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37084 (eval $ac_link) 2>conftest.er1
a848cd7e 37085 ac_status=$?
ac1cb8d3
VS
37086 grep -v '^ *+' conftest.er1 >conftest.err
37087 rm -f conftest.er1
37088 cat conftest.err >&5
a848cd7e
SC
37089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37090 (exit $ac_status); } &&
224bf05c 37091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37093 (eval $ac_try) 2>&5
37094 ac_status=$?
37095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37096 (exit $ac_status); }; } &&
37097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37099 (eval $ac_try) 2>&5
37100 ac_status=$?
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); }; }; then
37103 eval "$as_ac_var=yes"
37104else
37105 echo "$as_me: failed program was:" >&5
37106sed 's/^/| /' conftest.$ac_ext >&5
37107
37108eval "$as_ac_var=no"
37109fi
ac1cb8d3
VS
37110rm -f conftest.err conftest.$ac_objext \
37111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37112fi
37113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37115if test `eval echo '${'$as_ac_var'}'` = yes; then
37116 cat >>confdefs.h <<_ACEOF
37117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37118_ACEOF
37119 have_cos=1
37120fi
37121done
37122
37123
37124for ac_func in floor
37125do
37126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37127echo "$as_me:$LINENO: checking for $ac_func" >&5
37128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37129if eval "test \"\${$as_ac_var+set}\" = set"; then
37130 echo $ECHO_N "(cached) $ECHO_C" >&6
37131else
37132 cat >conftest.$ac_ext <<_ACEOF
37133/* confdefs.h. */
37134_ACEOF
37135cat confdefs.h >>conftest.$ac_ext
37136cat >>conftest.$ac_ext <<_ACEOF
37137/* end confdefs.h. */
ac1cb8d3
VS
37138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37140#define $ac_func innocuous_$ac_func
37141
a848cd7e
SC
37142/* System header to define __stub macros and hopefully few prototypes,
37143 which can conflict with char $ac_func (); below.
37144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37145 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37146
a848cd7e
SC
37147#ifdef __STDC__
37148# include <limits.h>
37149#else
37150# include <assert.h>
37151#endif
ac1cb8d3
VS
37152
37153#undef $ac_func
37154
a848cd7e
SC
37155/* Override any gcc2 internal prototype to avoid an error. */
37156#ifdef __cplusplus
37157extern "C"
37158{
37159#endif
37160/* We use char because int might match the return type of a gcc2
37161 builtin and then its argument prototype would still apply. */
37162char $ac_func ();
37163/* The GNU C library defines this for functions which it implements
37164 to always fail with ENOSYS. Some functions are actually named
37165 something starting with __ and the normal name is an alias. */
37166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37167choke me
37168#else
37169char (*f) () = $ac_func;
37170#endif
37171#ifdef __cplusplus
37172}
37173#endif
37174
37175int
37176main ()
37177{
37178return f != $ac_func;
37179 ;
37180 return 0;
37181}
37182_ACEOF
37183rm -f conftest.$ac_objext conftest$ac_exeext
37184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37185 (eval $ac_link) 2>conftest.er1
a848cd7e 37186 ac_status=$?
ac1cb8d3
VS
37187 grep -v '^ *+' conftest.er1 >conftest.err
37188 rm -f conftest.er1
37189 cat conftest.err >&5
a848cd7e
SC
37190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37191 (exit $ac_status); } &&
224bf05c 37192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37194 (eval $ac_try) 2>&5
37195 ac_status=$?
37196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37197 (exit $ac_status); }; } &&
37198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37200 (eval $ac_try) 2>&5
37201 ac_status=$?
37202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203 (exit $ac_status); }; }; then
37204 eval "$as_ac_var=yes"
37205else
37206 echo "$as_me: failed program was:" >&5
37207sed 's/^/| /' conftest.$ac_ext >&5
37208
37209eval "$as_ac_var=no"
37210fi
ac1cb8d3
VS
37211rm -f conftest.err conftest.$ac_objext \
37212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37213fi
37214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37216if test `eval echo '${'$as_ac_var'}'` = yes; then
37217 cat >>confdefs.h <<_ACEOF
37218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37219_ACEOF
37220 have_floor=1
37221fi
37222done
37223
37224echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37225echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37226if test "$have_cos" = 1 -a "$have_floor" = 1; then
37227 echo "$as_me:$LINENO: result: yes" >&5
37228echo "${ECHO_T}yes" >&6
37229else
37230 echo "$as_me:$LINENO: result: no" >&5
37231echo "${ECHO_T}no" >&6
37232 LIBS="$LIBS -lm"
37233 # use different functions to avoid configure caching
37234 have_sin=0
37235 have_ceil=0
37236
37237for ac_func in sin
37238do
37239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37240echo "$as_me:$LINENO: checking for $ac_func" >&5
37241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37242if eval "test \"\${$as_ac_var+set}\" = set"; then
37243 echo $ECHO_N "(cached) $ECHO_C" >&6
37244else
37245 cat >conftest.$ac_ext <<_ACEOF
37246/* confdefs.h. */
37247_ACEOF
37248cat confdefs.h >>conftest.$ac_ext
37249cat >>conftest.$ac_ext <<_ACEOF
37250/* end confdefs.h. */
ac1cb8d3
VS
37251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37253#define $ac_func innocuous_$ac_func
37254
a848cd7e
SC
37255/* System header to define __stub macros and hopefully few prototypes,
37256 which can conflict with char $ac_func (); below.
37257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37258 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37259
a848cd7e
SC
37260#ifdef __STDC__
37261# include <limits.h>
37262#else
37263# include <assert.h>
37264#endif
ac1cb8d3
VS
37265
37266#undef $ac_func
37267
a848cd7e
SC
37268/* Override any gcc2 internal prototype to avoid an error. */
37269#ifdef __cplusplus
37270extern "C"
37271{
37272#endif
37273/* We use char because int might match the return type of a gcc2
37274 builtin and then its argument prototype would still apply. */
37275char $ac_func ();
37276/* The GNU C library defines this for functions which it implements
37277 to always fail with ENOSYS. Some functions are actually named
37278 something starting with __ and the normal name is an alias. */
37279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37280choke me
37281#else
37282char (*f) () = $ac_func;
37283#endif
37284#ifdef __cplusplus
37285}
37286#endif
37287
37288int
37289main ()
37290{
37291return f != $ac_func;
37292 ;
37293 return 0;
37294}
37295_ACEOF
37296rm -f conftest.$ac_objext conftest$ac_exeext
37297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37298 (eval $ac_link) 2>conftest.er1
a848cd7e 37299 ac_status=$?
ac1cb8d3
VS
37300 grep -v '^ *+' conftest.er1 >conftest.err
37301 rm -f conftest.er1
37302 cat conftest.err >&5
a848cd7e
SC
37303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304 (exit $ac_status); } &&
224bf05c 37305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37307 (eval $ac_try) 2>&5
37308 ac_status=$?
37309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310 (exit $ac_status); }; } &&
37311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37313 (eval $ac_try) 2>&5
37314 ac_status=$?
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); }; }; then
37317 eval "$as_ac_var=yes"
37318else
37319 echo "$as_me: failed program was:" >&5
37320sed 's/^/| /' conftest.$ac_ext >&5
37321
37322eval "$as_ac_var=no"
37323fi
ac1cb8d3
VS
37324rm -f conftest.err conftest.$ac_objext \
37325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37326fi
37327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37328echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37329if test `eval echo '${'$as_ac_var'}'` = yes; then
37330 cat >>confdefs.h <<_ACEOF
37331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37332_ACEOF
37333 have_sin=1
37334fi
37335done
37336
37337
37338for ac_func in ceil
37339do
37340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37341echo "$as_me:$LINENO: checking for $ac_func" >&5
37342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37343if eval "test \"\${$as_ac_var+set}\" = set"; then
37344 echo $ECHO_N "(cached) $ECHO_C" >&6
37345else
37346 cat >conftest.$ac_ext <<_ACEOF
37347/* confdefs.h. */
37348_ACEOF
37349cat confdefs.h >>conftest.$ac_ext
37350cat >>conftest.$ac_ext <<_ACEOF
37351/* end confdefs.h. */
ac1cb8d3
VS
37352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37354#define $ac_func innocuous_$ac_func
37355
a848cd7e
SC
37356/* System header to define __stub macros and hopefully few prototypes,
37357 which can conflict with char $ac_func (); below.
37358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37359 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37360
a848cd7e
SC
37361#ifdef __STDC__
37362# include <limits.h>
37363#else
37364# include <assert.h>
37365#endif
ac1cb8d3
VS
37366
37367#undef $ac_func
37368
a848cd7e
SC
37369/* Override any gcc2 internal prototype to avoid an error. */
37370#ifdef __cplusplus
37371extern "C"
37372{
37373#endif
37374/* We use char because int might match the return type of a gcc2
37375 builtin and then its argument prototype would still apply. */
37376char $ac_func ();
37377/* The GNU C library defines this for functions which it implements
37378 to always fail with ENOSYS. Some functions are actually named
37379 something starting with __ and the normal name is an alias. */
37380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37381choke me
37382#else
37383char (*f) () = $ac_func;
37384#endif
37385#ifdef __cplusplus
37386}
37387#endif
37388
37389int
37390main ()
37391{
37392return f != $ac_func;
37393 ;
37394 return 0;
37395}
37396_ACEOF
37397rm -f conftest.$ac_objext conftest$ac_exeext
37398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37399 (eval $ac_link) 2>conftest.er1
a848cd7e 37400 ac_status=$?
ac1cb8d3
VS
37401 grep -v '^ *+' conftest.er1 >conftest.err
37402 rm -f conftest.er1
37403 cat conftest.err >&5
a848cd7e
SC
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); } &&
224bf05c 37406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37408 (eval $ac_try) 2>&5
37409 ac_status=$?
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); }; } &&
37412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37414 (eval $ac_try) 2>&5
37415 ac_status=$?
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); }; }; then
37418 eval "$as_ac_var=yes"
37419else
37420 echo "$as_me: failed program was:" >&5
37421sed 's/^/| /' conftest.$ac_ext >&5
37422
37423eval "$as_ac_var=no"
37424fi
ac1cb8d3
VS
37425rm -f conftest.err conftest.$ac_objext \
37426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37427fi
37428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37430if test `eval echo '${'$as_ac_var'}'` = yes; then
37431 cat >>confdefs.h <<_ACEOF
37432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37433_ACEOF
37434 have_ceil=1
37435fi
37436done
37437
37438 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37439echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37440 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37441 echo "$as_me:$LINENO: result: yes" >&5
37442echo "${ECHO_T}yes" >&6
37443 else
37444 echo "$as_me:$LINENO: result: no" >&5
37445echo "${ECHO_T}no" >&6
37446 # not sure we should warn the user, crash, etc.
37447 fi
37448fi
37449
37450if test "$wxUSE_GUI" = "yes"; then
37451
37452
37453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37454 drawing dynamic erase event exec font image \
37455 minimal propsize rotate shaped widgets render"
37456
37457 if test "$wxUSE_MONOLITHIC" != "yes"; then
37458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37459 fi
37460else
37461 SAMPLES_SUBDIRS="console"
37462fi
37463
37464
37465INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37466-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37467
37468if test "$GXX" = yes ; then
37469 CXXWARNINGS="-Wall"
37470 fi
37471
37472EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37473
37474CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37475CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37476CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37477
37478
37479LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37480EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37481EXTRALIBS_XML="$EXPAT_LINK"
37482EXTRALIBS_HTML="$MSPACK_LINK"
37483EXTRALIBS_ODBC="$ODBC_LINK"
37484if test "$wxUSE_GUI" = "yes"; then
07bea8f0 37485 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK | sed 's/ \+/ /g'`
a848cd7e
SC
37486fi
37487if test "$wxUSE_OPENGL" = "yes"; then
37488 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37489fi
37490
37491LDFLAGS="$LDFLAGS $PROFILE"
37492
37493if test "$wxUSE_GTK" = 1; then
37494 WXCONFIG_INCLUDE=
37495else
37496 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37497fi
37498
37499WXCONFIG_EXTRALIBS="$LIBS"
37500
37501if test "$wxUSE_REGEX" = "builtin" ; then
37502 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37503fi
37504if test "$wxUSE_EXPAT" = "builtin" ; then
37505 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37506fi
37507if test "$wxUSE_ODBC" = "builtin" ; then
37508 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37509fi
37510if test "$wxUSE_LIBTIFF" = "builtin" ; then
37511 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37512fi
37513if test "$wxUSE_LIBJPEG" = "builtin" ; then
37514 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37515fi
37516if test "$wxUSE_LIBPNG" = "builtin" ; then
37517 wxconfig_3rdparty="$wxconfig_3rdparty png"
37518fi
37519if test "$wxUSE_ZLIB" = "builtin" ; then
37520 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37521fi
37522if test "$wxUSE_ODBC" = "builtin" ; then
37523 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37524fi
37525
37526for i in $wxconfig_3rdparty ; do
37527 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37528done
37529
37530
37531if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37532 WXUNIV=1
37533else
37534 WXUNIV=0
37535fi
37536
37537
37538
37539
37540
37541
37542
37543
37544
37545if test $wxUSE_MONOLITHIC = "yes" ; then
37546 MONOLITHIC=1
37547else
37548 MONOLITHIC=0
37549fi
37550
37551if test $wxUSE_PLUGINS = "yes" ; then
37552 USE_PLUGINS=1
37553else
37554 USE_PLUGINS=0
37555fi
37556
37557if test $wxUSE_ODBC != "no" ; then
37558 USE_ODBC=1
37559else
37560 USE_ODBC=0
37561fi
37562
37563if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37564 OFFICIAL_BUILD=1
37565else
37566 OFFICIAL_BUILD=0
37567fi
37568
37569
37570
37571
37572
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37590
37591
37592
37593
37594
37595
37596
37597
37598
37599 if test "x$BAKEFILE_HOST" = "x"; then
37600 BAKEFILE_HOST="${host}"
37601 fi
37602
37603 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37604
37605 if test -n "$ac_tool_prefix"; then
37606 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37607set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37608echo "$as_me:$LINENO: checking for $ac_word" >&5
37609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37610if test "${ac_cv_prog_RANLIB+set}" = set; then
37611 echo $ECHO_N "(cached) $ECHO_C" >&6
37612else
37613 if test -n "$RANLIB"; then
37614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37615else
37616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37617for as_dir in $PATH
37618do
37619 IFS=$as_save_IFS
37620 test -z "$as_dir" && as_dir=.
37621 for ac_exec_ext in '' $ac_executable_extensions; do
37622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37623 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37625 break 2
37626 fi
37627done
37628done
37629
37630fi
37631fi
37632RANLIB=$ac_cv_prog_RANLIB
37633if test -n "$RANLIB"; then
37634 echo "$as_me:$LINENO: result: $RANLIB" >&5
37635echo "${ECHO_T}$RANLIB" >&6
37636else
37637 echo "$as_me:$LINENO: result: no" >&5
37638echo "${ECHO_T}no" >&6
37639fi
37640
37641fi
37642if test -z "$ac_cv_prog_RANLIB"; then
37643 ac_ct_RANLIB=$RANLIB
37644 # Extract the first word of "ranlib", so it can be a program name with args.
37645set dummy ranlib; ac_word=$2
37646echo "$as_me:$LINENO: checking for $ac_word" >&5
37647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37648if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37649 echo $ECHO_N "(cached) $ECHO_C" >&6
37650else
37651 if test -n "$ac_ct_RANLIB"; then
37652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37653else
37654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37655for as_dir in $PATH
37656do
37657 IFS=$as_save_IFS
37658 test -z "$as_dir" && as_dir=.
37659 for ac_exec_ext in '' $ac_executable_extensions; do
37660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37661 ac_cv_prog_ac_ct_RANLIB="ranlib"
37662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37663 break 2
37664 fi
37665done
37666done
37667
37668 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37669fi
37670fi
37671ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37672if test -n "$ac_ct_RANLIB"; then
37673 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37674echo "${ECHO_T}$ac_ct_RANLIB" >&6
37675else
37676 echo "$as_me:$LINENO: result: no" >&5
37677echo "${ECHO_T}no" >&6
37678fi
37679
37680 RANLIB=$ac_ct_RANLIB
37681else
37682 RANLIB="$ac_cv_prog_RANLIB"
37683fi
37684
37685 # Find a good install program. We prefer a C program (faster),
37686# so one script is as good as another. But avoid the broken or
37687# incompatible versions:
37688# SysV /etc/install, /usr/sbin/install
37689# SunOS /usr/etc/install
37690# IRIX /sbin/install
37691# AIX /bin/install
37692# AmigaOS /C/install, which installs bootblocks on floppy discs
37693# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37694# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37695# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37696# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37697# ./install, which can be erroneously created by make from ./install.sh.
37698echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37699echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37700if test -z "$INSTALL"; then
37701if test "${ac_cv_path_install+set}" = set; then
37702 echo $ECHO_N "(cached) $ECHO_C" >&6
37703else
37704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37705for as_dir in $PATH
37706do
37707 IFS=$as_save_IFS
37708 test -z "$as_dir" && as_dir=.
37709 # Account for people who put trailing slashes in PATH elements.
37710case $as_dir/ in
37711 ./ | .// | /cC/* | \
37712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37713 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37714 /usr/ucb/* ) ;;
37715 *)
37716 # OSF1 and SCO ODT 3.0 have their own names for install.
37717 # Don't use installbsd from OSF since it installs stuff as root
37718 # by default.
37719 for ac_prog in ginstall scoinst install; do
37720 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37721 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37722 if test $ac_prog = install &&
37723 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37724 # AIX install. It has an incompatible calling convention.
37725 :
37726 elif test $ac_prog = install &&
37727 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37728 # program-specific install script used by HP pwplus--don't use.
37729 :
37730 else
37731 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37732 break 3
37733 fi
37734 fi
a848cd7e
SC
37735 done
37736 done
37737 ;;
37738esac
37739done
37740
37741
37742fi
37743 if test "${ac_cv_path_install+set}" = set; then
37744 INSTALL=$ac_cv_path_install
37745 else
37746 # As a last resort, use the slow shell script. We don't cache a
37747 # path for INSTALL within a source directory, because that will
37748 # break other packages using the cache if that directory is
37749 # removed, or if the path is relative.
37750 INSTALL=$ac_install_sh
37751 fi
37752fi
37753echo "$as_me:$LINENO: result: $INSTALL" >&5
37754echo "${ECHO_T}$INSTALL" >&6
37755
37756# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37757# It thinks the first close brace ends the variable substitution.
37758test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37759
37760test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
37761
37762test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37763
37764 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37765echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37766LN_S=$as_ln_s
37767if test "$LN_S" = "ln -s"; then
37768 echo "$as_me:$LINENO: result: yes" >&5
37769echo "${ECHO_T}yes" >&6
37770else
37771 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37772echo "${ECHO_T}no, using $LN_S" >&6
37773fi
37774
37775
37776 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37777echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 37778set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
37779if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37780 echo $ECHO_N "(cached) $ECHO_C" >&6
37781else
37782 cat >conftest.make <<\_ACEOF
37783all:
37784 @echo 'ac_maketemp="$(MAKE)"'
37785_ACEOF
37786# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37787eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37788if test -n "$ac_maketemp"; then
37789 eval ac_cv_prog_make_${ac_make}_set=yes
37790else
37791 eval ac_cv_prog_make_${ac_make}_set=no
37792fi
37793rm -f conftest.make
37794fi
37795if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37796 echo "$as_me:$LINENO: result: yes" >&5
37797echo "${ECHO_T}yes" >&6
37798 SET_MAKE=
37799else
37800 echo "$as_me:$LINENO: result: no" >&5
37801echo "${ECHO_T}no" >&6
37802 SET_MAKE="MAKE=${MAKE-make}"
37803fi
37804
37805
37806
37807 if test -n "$ac_tool_prefix"; then
37808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37809set dummy ${ac_tool_prefix}ar; ac_word=$2
37810echo "$as_me:$LINENO: checking for $ac_word" >&5
37811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37812if test "${ac_cv_prog_AR+set}" = set; then
37813 echo $ECHO_N "(cached) $ECHO_C" >&6
37814else
37815 if test -n "$AR"; then
37816 ac_cv_prog_AR="$AR" # Let the user override the test.
37817else
37818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37819for as_dir in $PATH
37820do
37821 IFS=$as_save_IFS
37822 test -z "$as_dir" && as_dir=.
37823 for ac_exec_ext in '' $ac_executable_extensions; do
37824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37825 ac_cv_prog_AR="${ac_tool_prefix}ar"
37826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37827 break 2
37828 fi
37829done
37830done
37831
37832fi
37833fi
37834AR=$ac_cv_prog_AR
37835if test -n "$AR"; then
37836 echo "$as_me:$LINENO: result: $AR" >&5
37837echo "${ECHO_T}$AR" >&6
37838else
37839 echo "$as_me:$LINENO: result: no" >&5
37840echo "${ECHO_T}no" >&6
37841fi
37842
37843fi
37844if test -z "$ac_cv_prog_AR"; then
37845 ac_ct_AR=$AR
37846 # Extract the first word of "ar", so it can be a program name with args.
37847set dummy ar; ac_word=$2
37848echo "$as_me:$LINENO: checking for $ac_word" >&5
37849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37850if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37851 echo $ECHO_N "(cached) $ECHO_C" >&6
37852else
37853 if test -n "$ac_ct_AR"; then
37854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37855else
37856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37857for as_dir in $PATH
37858do
37859 IFS=$as_save_IFS
37860 test -z "$as_dir" && as_dir=.
37861 for ac_exec_ext in '' $ac_executable_extensions; do
37862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37863 ac_cv_prog_ac_ct_AR="ar"
37864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37865 break 2
37866 fi
37867done
37868done
37869
37870 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37871fi
37872fi
37873ac_ct_AR=$ac_cv_prog_ac_ct_AR
37874if test -n "$ac_ct_AR"; then
37875 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37876echo "${ECHO_T}$ac_ct_AR" >&6
37877else
37878 echo "$as_me:$LINENO: result: no" >&5
37879echo "${ECHO_T}no" >&6
37880fi
37881
37882 AR=$ac_ct_AR
37883else
37884 AR="$ac_cv_prog_AR"
37885fi
37886
37887 if test -n "$ac_tool_prefix"; then
37888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37889set dummy ${ac_tool_prefix}strip; ac_word=$2
37890echo "$as_me:$LINENO: checking for $ac_word" >&5
37891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37892if test "${ac_cv_prog_STRIP+set}" = set; then
37893 echo $ECHO_N "(cached) $ECHO_C" >&6
37894else
37895 if test -n "$STRIP"; then
37896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37897else
37898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37899for as_dir in $PATH
37900do
37901 IFS=$as_save_IFS
37902 test -z "$as_dir" && as_dir=.
37903 for ac_exec_ext in '' $ac_executable_extensions; do
37904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37907 break 2
37908 fi
37909done
37910done
37911
37912fi
37913fi
37914STRIP=$ac_cv_prog_STRIP
37915if test -n "$STRIP"; then
37916 echo "$as_me:$LINENO: result: $STRIP" >&5
37917echo "${ECHO_T}$STRIP" >&6
37918else
37919 echo "$as_me:$LINENO: result: no" >&5
37920echo "${ECHO_T}no" >&6
37921fi
37922
37923fi
37924if test -z "$ac_cv_prog_STRIP"; then
37925 ac_ct_STRIP=$STRIP
37926 # Extract the first word of "strip", so it can be a program name with args.
37927set dummy strip; ac_word=$2
37928echo "$as_me:$LINENO: checking for $ac_word" >&5
37929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37930if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37931 echo $ECHO_N "(cached) $ECHO_C" >&6
37932else
37933 if test -n "$ac_ct_STRIP"; then
37934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37935else
37936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37937for as_dir in $PATH
37938do
37939 IFS=$as_save_IFS
37940 test -z "$as_dir" && as_dir=.
37941 for ac_exec_ext in '' $ac_executable_extensions; do
37942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37943 ac_cv_prog_ac_ct_STRIP="strip"
37944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37945 break 2
37946 fi
37947done
37948done
37949
37950 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37951fi
37952fi
37953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37954if test -n "$ac_ct_STRIP"; then
37955 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37956echo "${ECHO_T}$ac_ct_STRIP" >&6
37957else
37958 echo "$as_me:$LINENO: result: no" >&5
37959echo "${ECHO_T}no" >&6
37960fi
37961
37962 STRIP=$ac_ct_STRIP
37963else
37964 STRIP="$ac_cv_prog_STRIP"
37965fi
37966
37967 if test -n "$ac_tool_prefix"; then
37968 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37969set dummy ${ac_tool_prefix}nm; ac_word=$2
37970echo "$as_me:$LINENO: checking for $ac_word" >&5
37971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37972if test "${ac_cv_prog_NM+set}" = set; then
37973 echo $ECHO_N "(cached) $ECHO_C" >&6
37974else
37975 if test -n "$NM"; then
37976 ac_cv_prog_NM="$NM" # Let the user override the test.
37977else
37978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37979for as_dir in $PATH
37980do
37981 IFS=$as_save_IFS
37982 test -z "$as_dir" && as_dir=.
37983 for ac_exec_ext in '' $ac_executable_extensions; do
37984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37985 ac_cv_prog_NM="${ac_tool_prefix}nm"
37986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37987 break 2
37988 fi
37989done
37990done
37991
37992fi
37993fi
37994NM=$ac_cv_prog_NM
37995if test -n "$NM"; then
37996 echo "$as_me:$LINENO: result: $NM" >&5
37997echo "${ECHO_T}$NM" >&6
37998else
37999 echo "$as_me:$LINENO: result: no" >&5
38000echo "${ECHO_T}no" >&6
38001fi
38002
38003fi
38004if test -z "$ac_cv_prog_NM"; then
38005 ac_ct_NM=$NM
38006 # Extract the first word of "nm", so it can be a program name with args.
38007set dummy nm; ac_word=$2
38008echo "$as_me:$LINENO: checking for $ac_word" >&5
38009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38010if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38011 echo $ECHO_N "(cached) $ECHO_C" >&6
38012else
38013 if test -n "$ac_ct_NM"; then
38014 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38015else
38016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38017for as_dir in $PATH
38018do
38019 IFS=$as_save_IFS
38020 test -z "$as_dir" && as_dir=.
38021 for ac_exec_ext in '' $ac_executable_extensions; do
38022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38023 ac_cv_prog_ac_ct_NM="nm"
38024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38025 break 2
38026 fi
38027done
38028done
38029
38030 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38031fi
38032fi
38033ac_ct_NM=$ac_cv_prog_ac_ct_NM
38034if test -n "$ac_ct_NM"; then
38035 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38036echo "${ECHO_T}$ac_ct_NM" >&6
38037else
38038 echo "$as_me:$LINENO: result: no" >&5
38039echo "${ECHO_T}no" >&6
38040fi
38041
38042 NM=$ac_ct_NM
38043else
38044 NM="$ac_cv_prog_NM"
38045fi
38046
38047
38048 case ${BAKEFILE_HOST} in
38049 *-hp-hpux* )
38050 INSTALL_DIR="mkdir"
38051 ;;
38052 *) INSTALL_DIR="$INSTALL -d"
38053 ;;
38054 esac
38055
38056
38057 LDFLAGS_GUI=
38058 case ${BAKEFILE_HOST} in
38059 *-*-cygwin* | *-*-mingw32* )
38060 LDFLAGS_GUI="-mwindows"
38061 esac
38062
38063
38064 fi
38065
38066 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38067echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38068if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38069 echo $ECHO_N "(cached) $ECHO_C" >&6
38070else
38071
38072 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38073 egrep -s GNU > /dev/null); then
38074 bakefile_cv_prog_makeisgnu="yes"
38075 else
38076 bakefile_cv_prog_makeisgnu="no"
38077 fi
38078
38079fi
38080echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38081echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38082
38083 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38084 IF_GNU_MAKE=""
38085 else
38086 IF_GNU_MAKE="#"
38087 fi
38088
38089
38090
38091 PLATFORM_UNIX=0
38092 PLATFORM_WIN32=0
38093 PLATFORM_MSDOS=0
38094 PLATFORM_MAC=0
38095 PLATFORM_MACOSX=0
38096 PLATFORM_OS2=0
38097
38098 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38099 case "${BAKEFILE_HOST}" in
38100 *-*-cygwin* | *-*-mingw32* )
38101 PLATFORM_WIN32=1
38102 ;;
38103 *-pc-msdosdjgpp )
38104 PLATFORM_MSDOS=1
38105 ;;
38106 *-pc-os2_emx | *-pc-os2-emx )
38107 PLATFORM_OS2=1
38108 ;;
38109 powerpc-*-darwin* )
38110 PLATFORM_MAC=1
38111 PLATFORM_MACOSX=1
38112 ;;
38113 * )
38114 PLATFORM_UNIX=1
38115 ;;
38116 esac
38117 else
38118 case "$BAKEFILE_FORCE_PLATFORM" in
38119 win32 )
38120 PLATFORM_WIN32=1
38121 ;;
38122 msdos )
38123 PLATFORM_MSDOS=1
38124 ;;
38125 os2 )
38126 PLATFORM_OS2=1
38127 ;;
38128 darwin )
38129 PLATFORM_MAC=1
38130 PLATFORM_MACOSX=1
38131 ;;
38132 unix )
38133 PLATFORM_UNIX=1
38134 ;;
38135 * )
38136 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38137echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38138 { (exit 1); exit 1; }; }
38139 ;;
38140 esac
38141 fi
38142
38143
38144
38145
38146
38147
38148
38149
38150
38151 # Check whether --enable-omf or --disable-omf was given.
38152if test "${enable_omf+set}" = set; then
38153 enableval="$enable_omf"
38154 bk_os2_use_omf="$enableval"
38155fi;
38156
38157 case "${BAKEFILE_HOST}" in
38158 *-*-darwin* )
38159 CFLAGS="$CFLAGS -fno-common"
38160 CXXFLAGS="$CXXFLAGS -fno-common"
38161 ;;
38162
38163 *-pc-os2_emx | *-pc-os2-emx )
38164 if test "x$bk_os2_use_omf" = "xyes" ; then
38165 AR=emxomfar
38166 RANLIB=:
38167 LDFLAGS="-Zomf $LDFLAGS"
38168 CFLAGS="-Zomf $CFLAGS"
38169 CXXFLAGS="-Zomf $CXXFLAGS"
38170 OS2_LIBEXT="lib"
38171 else
38172 OS2_LIBEXT="a"
38173 fi
38174 ;;
38175 esac
38176
38177
38178 SO_SUFFIX="so"
38179 SO_SUFFIX_MODULE="so"
38180 EXEEXT=""
38181 LIBPREFIX="lib"
38182 LIBEXT=".a"
38183 DLLPREFIX="lib"
38184 DLLPREFIX_MODULE=""
38185 DLLIMP_SUFFIX=""
38186
38187 case "${BAKEFILE_HOST}" in
38188 *-hp-hpux* )
38189 SO_SUFFIX="sl"
38190 SO_SUFFIX_MODULE="sl"
38191 ;;
38192 *-*-aix* )
38193 SO_SUFFIX="a"
38194 SO_SUFFIX_MODULE="a"
38195 ;;
38196 *-*-cygwin* | *-*-mingw32* )
38197 SO_SUFFIX="dll"
38198 SO_SUFFIX_MODULE="dll"
38199 DLLIMP_SUFFIX="dll.a"
38200 EXEEXT=".exe"
38201 DLLPREFIX=""
38202 ;;
38203 *-pc-msdosdjgpp )
38204 EXEEXT=".exe"
38205 DLLPREFIX=""
38206 ;;
38207 *-pc-os2_emx | *-pc-os2-emx )
38208 SO_SUFFIX="dll"
38209 SO_SUFFIX_MODULE="dll"
38210 DLLIMP_SUFFIX=$OS2_LIBEXT
38211 EXEEXT=".exe"
38212 DLLPREFIX=""
38213 LIBPREFIX=""
38214 LIBEXT=".$OS2_LIBEXT"
38215 ;;
38216 powerpc-*-darwin* )
38217 SO_SUFFIX="dylib"
38218 SO_SUFFIX_MODULE="bundle"
38219 ;;
38220 esac
38221
38222 if test "x$DLLIMP_SUFFIX" = "x" ; then
38223 DLLIMP_SUFFIX="$SO_SUFFIX"
38224 fi
38225
38226
38227
38228
38229
38230
38231
38232
38233
38234
38235
38236 SHARED_LD_CC="\$(CC) -shared -o"
38237 SHARED_LD_CXX="\$(CXX) -shared -o"
38238
38239 if test "x$GCC" = "xyes"; then
38240 PIC_FLAG="-fPIC"
38241 fi
38242
38243 case "${BAKEFILE_HOST}" in
38244 *-hp-hpux* )
38245 if test "x$GCC" = "xyes"; then
38246 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38247 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38248 else
38249 LDFLAGS="$LDFLAGS -L/usr/lib"
38250
38251 SHARED_LD_CC="${CC} -b -o"
38252 SHARED_LD_CXX="${CXX} -b -o"
38253 PIC_FLAG="+Z"
38254 fi
38255 ;;
38256
38257 *-*-linux* )
38258 if test "x$GCC" != "xyes"; then
38259 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38260echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38261if test "${bakefile_cv_prog_icc+set}" = set; then
38262 echo $ECHO_N "(cached) $ECHO_C" >&6
38263else
38264
38265 cat >conftest.$ac_ext <<_ACEOF
38266/* confdefs.h. */
38267_ACEOF
38268cat confdefs.h >>conftest.$ac_ext
38269cat >>conftest.$ac_ext <<_ACEOF
38270/* end confdefs.h. */
38271
38272int
38273main ()
38274{
38275
38276 #ifndef __INTEL_COMPILER
38277 #error Not icc
38278 #endif
38279
38280 ;
38281 return 0;
38282}
38283_ACEOF
38284rm -f conftest.$ac_objext
38285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38286 (eval $ac_compile) 2>conftest.er1
a848cd7e 38287 ac_status=$?
ac1cb8d3
VS
38288 grep -v '^ *+' conftest.er1 >conftest.err
38289 rm -f conftest.er1
38290 cat conftest.err >&5
a848cd7e
SC
38291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); } &&
224bf05c 38293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38295 (eval $ac_try) 2>&5
38296 ac_status=$?
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); }; } &&
38299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38301 (eval $ac_try) 2>&5
38302 ac_status=$?
38303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304 (exit $ac_status); }; }; then
38305 bakefile_cv_prog_icc=yes
38306else
38307 echo "$as_me: failed program was:" >&5
38308sed 's/^/| /' conftest.$ac_ext >&5
38309
38310bakefile_cv_prog_icc=no
38311
38312fi
ac1cb8d3 38313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38314
38315fi
38316echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38317echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38318 if test "$bakefile_cv_prog_icc" = "yes"; then
38319 PIC_FLAG="-KPIC"
38320 fi
38321 fi
38322 ;;
38323
38324 *-*-solaris2* )
38325 if test "x$GCC" != xyes ; then
38326 SHARED_LD_CC="${CC} -G -o"
38327 SHARED_LD_CXX="${CXX} -G -o"
38328 PIC_FLAG="-KPIC"
38329 fi
38330 ;;
38331
38332 *-*-darwin* )
38333
38334 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38335echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38336if test "${wx_cv_gcc31+set}" = set; then
38337 echo $ECHO_N "(cached) $ECHO_C" >&6
38338else
38339
38340 cat >conftest.$ac_ext <<_ACEOF
38341/* confdefs.h. */
38342_ACEOF
38343cat confdefs.h >>conftest.$ac_ext
38344cat >>conftest.$ac_ext <<_ACEOF
38345/* end confdefs.h. */
38346
38347int
38348main ()
38349{
38350
38351 #if (__GNUC__ < 3) || \
38352 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38353 #error old gcc
38354 #endif
38355
38356 ;
38357 return 0;
38358}
38359_ACEOF
38360rm -f conftest.$ac_objext
38361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38362 (eval $ac_compile) 2>conftest.er1
a848cd7e 38363 ac_status=$?
ac1cb8d3
VS
38364 grep -v '^ *+' conftest.er1 >conftest.err
38365 rm -f conftest.er1
38366 cat conftest.err >&5
a848cd7e
SC
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); } &&
224bf05c 38369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38371 (eval $ac_try) 2>&5
38372 ac_status=$?
38373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374 (exit $ac_status); }; } &&
38375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38377 (eval $ac_try) 2>&5
38378 ac_status=$?
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); }; }; then
38381
38382 wx_cv_gcc31=yes
38383
38384else
38385 echo "$as_me: failed program was:" >&5
38386sed 's/^/| /' conftest.$ac_ext >&5
38387
38388
38389 wx_cv_gcc31=no
38390
38391
38392fi
ac1cb8d3 38393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38394
38395fi
38396echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38397echo "${ECHO_T}$wx_cv_gcc31" >&6
38398 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38399
38400D='$'
38401cat <<EOF >shared-ld-sh
a848cd7e
SC
38402#!/bin/sh
38403#-----------------------------------------------------------------------------
38404#-- Name: distrib/mac/shared-ld-sh
38405#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38406#-- Author: Gilles Depeyrot
38407#-- Copyright: (c) 2002 Gilles Depeyrot
38408#-- Licence: any use permitted
38409#-----------------------------------------------------------------------------
38410
38411verbose=0
38412args=""
38413objects=""
38414linking_flag="-dynamiclib"
38415
473276a9
VS
38416while test ${D}# -gt 0; do
38417 case ${D}1 in
a848cd7e
SC
38418
38419 -v)
38420 verbose=1
38421 ;;
38422
38423 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38424 # collect these options and values
473276a9 38425 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38426 shift
38427 ;;
38428
38429 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38430 # collect these options
473276a9 38431 args="${D}{args} ${D}1"
a848cd7e
SC
38432 ;;
38433
38434 -dynamiclib|-bundle)
473276a9 38435 linking_flag="${D}1"
a848cd7e
SC
38436 ;;
38437
38438 -*)
473276a9 38439 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38440 exit 1
38441 ;;
38442
38443 *.o | *.a | *.dylib)
38444 # collect object files
473276a9 38445 objects="${D}{objects} ${D}1"
a848cd7e
SC
38446 ;;
38447
38448 *)
473276a9 38449 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38450 exit 1
38451 ;;
38452
38453 esac
38454 shift
38455done
38456
38457#
38458# Link one module containing all the others
38459#
473276a9
VS
38460if test ${D}{verbose} = 1; then
38461 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38462fi
473276a9
VS
38463c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38464status=${D}?
38465if test ${D}{status} != 0; then
38466 exit ${D}{status}
a848cd7e
SC
38467fi
38468
38469#
38470# Link the shared library from the single module created
38471#
473276a9
VS
38472if test ${D}{verbose} = 1; then
38473 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38474fi
473276a9
VS
38475c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38476status=${D}?
38477if test ${D}{status} != 0; then
38478 exit ${D}{status}
a848cd7e
SC
38479fi
38480
38481#
38482# Remove intermediate module
38483#
473276a9 38484rm -f master.${D}${D}.o
a848cd7e
SC
38485
38486exit 0
38487EOF
473276a9 38488
a848cd7e
SC
38489 chmod +x shared-ld-sh
38490
38491 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38492 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38493 SHARED_LD_CXX="$SHARED_LD_CC"
38494 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38495 else
38496 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38497 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38498 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38499 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38500 fi
38501
38502 PIC_FLAG="-dynamic -fPIC"
38503 ;;
38504
38505 *-*-aix* )
38506 if test "x$GCC" != "xyes"; then
38507 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38508set dummy makeC++SharedLib; ac_word=$2
38509echo "$as_me:$LINENO: checking for $ac_word" >&5
38510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38511if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38512 echo $ECHO_N "(cached) $ECHO_C" >&6
38513else
38514 if test -n "$AIX_CXX_LD"; then
38515 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38516else
38517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38518for as_dir in $PATH
38519do
38520 IFS=$as_save_IFS
38521 test -z "$as_dir" && as_dir=.
38522 for ac_exec_ext in '' $ac_executable_extensions; do
38523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38524 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38526 break 2
38527 fi
38528done
38529done
38530
38531 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38532fi
38533fi
38534AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38535if test -n "$AIX_CXX_LD"; then
38536 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38537echo "${ECHO_T}$AIX_CXX_LD" >&6
38538else
38539 echo "$as_me:$LINENO: result: no" >&5
38540echo "${ECHO_T}no" >&6
38541fi
38542
38543 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38544 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38545 fi
38546 ;;
38547
38548 *-*-beos* )
38549 SHARED_LD_CC="${LD} -shared -o"
38550 SHARED_LD_CXX="${LD} -shared -o"
38551 ;;
38552
38553 *-*-irix* )
38554 if test "x$GCC" != "xyes"; then
38555 PIC_FLAG="-KPIC"
38556 fi
38557 ;;
38558
38559 *-*-cygwin* | *-*-mingw32* )
38560 PIC_FLAG=""
38561 ;;
38562
38563 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38564 SHARED_LD_CC="`pwd`/dllar.sh -o"
38565 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38566 PIC_FLAG=""
473276a9
VS
38567
38568D='$'
38569cat <<EOF >dllar.sh
38570#!/bin/sh
38571#
38572# dllar - a tool to build both a .dll and an .a file
38573# from a set of object (.o) files for EMX/OS2.
38574#
38575# Written by Andrew Zabolotny, bit@freya.etu.ru
38576# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38577#
38578# This script will accept a set of files on the command line.
38579# All the public symbols from the .o files will be exported into
38580# a .DEF file, then linker will be run (through gcc) against them to
38581# build a shared library consisting of all given .o files. All libraries
38582# (.a) will be first decompressed into component .o files then act as
38583# described above. You can optionally give a description (-d "description")
38584# which will be put into .DLL. To see the list of accepted options (as well
38585# as command-line format) simply run this program without options. The .DLL
38586# is built to be imported by name (there is no guarantee that new versions
38587# of the library you build will have same ordinals for same symbols).
38588#
38589# dllar is free software; you can redistribute it and/or modify
38590# it under the terms of the GNU General Public License as published by
38591# the Free Software Foundation; either version 2, or (at your option)
38592# any later version.
38593#
38594# dllar is distributed in the hope that it will be useful,
38595# but WITHOUT ANY WARRANTY; without even the implied warranty of
38596# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38597# GNU General Public License for more details.
38598#
38599# You should have received a copy of the GNU General Public License
38600# along with dllar; see the file COPYING. If not, write to the Free
38601# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38602# 02111-1307, USA.
38603
38604# To successfuly run this program you will need:
38605# - Current drive should have LFN support (HPFS, ext2, network, etc)
38606# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38607# - gcc
38608# (used to build the .dll)
38609# - emxexp
38610# (used to create .def file from .o files)
38611# - emximp
38612# (used to create .a file from .def file)
38613# - GNU text utilites (cat, sort, uniq)
38614# used to process emxexp output
38615# - GNU file utilities (mv, rm)
38616# - GNU sed
38617# - lxlite (optional, see flag below)
38618# (used for general .dll cleanup)
38619#
38620
38621flag_USE_LXLITE=1;
38622
38623#
38624# helper functions
38625# basnam, variant of basename, which does _not_ remove the path, _iff_
38626# second argument (suffix to remove) is given
38627basnam(){
38628 case ${D}# in
38629 1)
38630 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38631 ;;
38632 2)
38633 echo ${D}1 | sed 's/'${D}2'${D}//'
38634 ;;
38635 *)
38636 echo "error in basnam ${D}*"
38637 exit 8
38638 ;;
38639 esac
38640}
38641
38642# Cleanup temporary files and output
38643CleanUp() {
38644 cd ${D}curDir
38645 for i in ${D}inputFiles ; do
38646 case ${D}i in
38647 *!)
38648 rm -rf \`basnam ${D}i !\`
38649 ;;
38650 *)
38651 ;;
38652 esac
38653 done
38654
38655 # Kill result in case of failure as there is just to many stupid make/nmake
38656 # things out there which doesn't do this.
224bf05c 38657 if ${D}# -eq 0 ; then
473276a9
VS
38658 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38659 fi
38660}
38661
38662# Print usage and exit script with rc=1.
38663PrintHelp() {
224bf05c
VZ
38664 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
38665 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
38666 echo ' -ord[inals] -exclude "symbol(s)"'
38667 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
38668 echo ' *.o *.a'
473276a9
VS
38669 echo '*> "output_file" should have no extension.'
38670 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38671 echo ' The import library name is derived from this and is set to "name".a,'
38672 echo ' unless overridden by -import'
38673 echo '*> "importlib_name" should have no extension.'
38674 echo ' If it has the .o, or .a extension, it is automatically removed.'
38675 echo ' This name is used as the import library name and may be longer and'
38676 echo ' more descriptive than the DLL name which has to follow the old '
38677 echo ' 8.3 convention of FAT.'
38678 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38679 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38680 echo ' These flags will be put at the start of GCC command line.'
224bf05c
VZ
38681 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
38682 echo '*> -exclude defines symbols which will not be exported. You can define'
473276a9
VS
38683 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38684 echo ' If the last character of a symbol is "*", all symbols beginning'
38685 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
224bf05c 38686 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38687 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
224bf05c 38688 echo '*> -nocrtdll switch will disable linking the library against emx''s'
473276a9 38689 echo ' C runtime DLLs.'
224bf05c 38690 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38691 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38692 echo ' unchanged to GCC at the end of command line.'
38693 echo '*> If you create a DLL from a library and you do not specify -o,'
38694 echo ' the basename for DLL and import library will be set to library name,'
38695 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38696 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38697 echo ' library will be renamed into gcc_s.a.'
38698 echo '--------'
38699 echo 'Example:'
38700 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38701 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38702 CleanUp
38703 exit 1
38704}
38705
38706# Execute a command.
38707# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38708# @Uses Whatever CleanUp() uses.
38709doCommand() {
38710 echo "${D}*"
38711 eval ${D}*
38712 rcCmd=${D}?
38713
224bf05c 38714 if ${D}rcCmd -ne 0 ; then
473276a9
VS
38715 echo "command failed, exit code="${D}rcCmd
38716 CleanUp
38717 exit ${D}rcCmd
38718 fi
38719}
38720
38721# main routine
38722# setup globals
38723cmdLine=${D}*
38724outFile=""
38725outimpFile=""
38726inputFiles=""
38727description=""
38728CC=gcc.exe
38729CFLAGS="-s -Zcrtdll"
38730EXTRA_CFLAGS=""
38731EXPORT_BY_ORDINALS=0
38732exclude_symbols=""
38733library_flags=""
38734curDir=\`pwd\`
38735curDirS=curDir
38736case ${D}curDirS in
38737*/)
38738 ;;
38739*)
38740 curDirS=${D}{curDirS}"/"
38741 ;;
38742esac
38743# Parse commandline
38744libsToLink=0
224bf05c 38745while ${D}1 ; do
473276a9
VS
38746 case ${D}1 in
38747 -ord*)
38748 EXPORT_BY_ORDINALS=1;
38749 ;;
38750 -o*)
38751 shift
38752 outFile=${D}1
38753 ;;
38754 -i*)
38755 shift
38756 outimpFile=${D}1
38757 ;;
38758 -d*)
38759 shift
38760 description=${D}1
38761 ;;
38762 -f*)
38763 shift
38764 CFLAGS=${D}1
38765 ;;
38766 -c*)
38767 shift
38768 CC=${D}1
38769 ;;
38770 -h*)
38771 PrintHelp
38772 ;;
38773 -ex*)
38774 shift
38775 exclude_symbols=${D}{exclude_symbols}${D}1" "
38776 ;;
38777 -libf*)
38778 shift
38779 library_flags=${D}{library_flags}${D}1" "
38780 ;;
38781 -nocrt*)
38782 CFLAGS="-s"
38783 ;;
38784 -nolxl*)
38785 flag_USE_LXLITE=0
38786 ;;
38787 -* | /*)
38788 case ${D}1 in
38789 -L* | -l*)
38790 libsToLink=1
38791 ;;
38792 *)
38793 ;;
38794 esac
38795 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38796 ;;
38797 *)
38798 found=0;
224bf05c 38799 if ${D}libsToLink -ne 0 ; then
473276a9
VS
38800 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38801 else
38802 for file in ${D}1 ; do
224bf05c 38803 if -f ${D}file ; then
473276a9
VS
38804 inputFiles="${D}{inputFiles} ${D}file"
38805 found=1
38806 fi
38807 done
224bf05c 38808 if ${D}found -eq 0 ; then
473276a9
VS
38809 echo "ERROR: No file(s) found: "${D}1
38810 exit 8
38811 fi
38812 fi
38813 ;;
38814 esac
38815 shift
38816done # iterate cmdline words
38817
38818#
224bf05c 38819if -z "${D}inputFiles" ; then
473276a9
VS
38820 echo "dllar: no input files"
38821 PrintHelp
38822fi
38823
38824# Now extract all .o files from .a files
38825newInputFiles=""
38826for file in ${D}inputFiles ; do
38827 case ${D}file in
38828 *.a | *.lib)
38829 case ${D}file in
38830 *.a)
38831 suffix=".a"
38832 AR="ar"
38833 ;;
38834 *.lib)
38835 suffix=".lib"
38836 AR="emxomfar"
38837 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
38838 ;;
38839 *)
38840 ;;
38841 esac
38842 dirname=\`basnam ${D}file ${D}suffix\`"_%"
38843 mkdir ${D}dirname
224bf05c 38844 if ${D}? -ne 0 ; then
473276a9
VS
38845 echo "Failed to create subdirectory ./${D}dirname"
38846 CleanUp
38847 exit 8;
38848 fi
38849 # Append '!' to indicate archive
38850 newInputFiles="${D}newInputFiles ${D}{dirname}!"
38851 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
38852 cd ${D}curDir
38853 found=0;
38854 for subfile in ${D}dirname/*.o* ; do
224bf05c 38855 if -f ${D}subfile ; then
473276a9 38856 found=1
224bf05c 38857 if -s ${D}subfile ; then
473276a9
VS
38858 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
38859 newInputFiles="${D}newInputFiles ${D}subfile"
38860 fi
38861 fi
38862 done
224bf05c 38863 if ${D}found -eq 0 ; then
473276a9
VS
38864 echo "WARNING: there are no files in archive \'${D}file\'"
38865 fi
38866 ;;
38867 *)
38868 newInputFiles="${D}{newInputFiles} ${D}file"
38869 ;;
38870 esac
38871done
38872inputFiles="${D}newInputFiles"
38873
38874# Output filename(s).
38875do_backup=0;
224bf05c 38876if -z ${D}outFile ; then
473276a9
VS
38877 do_backup=1;
38878 set outFile ${D}inputFiles; outFile=${D}2
38879fi
38880
38881# If it is an archive, remove the '!' and the '_%' suffixes
38882case ${D}outFile in
38883*_%!)
38884 outFile=\`basnam ${D}outFile _%!\`
38885 ;;
38886*)
38887 ;;
38888esac
38889case ${D}outFile in
38890*.dll)
38891 outFile=\`basnam ${D}outFile .dll\`
38892 ;;
38893*.DLL)
38894 outFile=\`basnam ${D}outFile .DLL\`
38895 ;;
38896*.o)
38897 outFile=\`basnam ${D}outFile .o\`
38898 ;;
38899*.obj)
38900 outFile=\`basnam ${D}outFile .obj\`
38901 ;;
38902*.a)
38903 outFile=\`basnam ${D}outFile .a\`
38904 ;;
38905*.lib)
38906 outFile=\`basnam ${D}outFile .lib\`
38907 ;;
38908*)
38909 ;;
38910esac
38911case ${D}outimpFile in
38912*.a)
38913 outimpFile=\`basnam ${D}outimpFile .a\`
38914 ;;
38915*.lib)
38916 outimpFile=\`basnam ${D}outimpFile .lib\`
38917 ;;
38918*)
38919 ;;
38920esac
224bf05c 38921if -z ${D}outimpFile ; then
473276a9
VS
38922 outimpFile=${D}outFile
38923fi
38924defFile="${D}{outFile}.def"
38925arcFile="${D}{outimpFile}.a"
38926arcFile2="${D}{outimpFile}.lib"
38927dllFile="${D}outFile"
38928# Add suffix to dllFile later, first we need a version to use as
38929# name in .def file.
38930
224bf05c
VZ
38931if ${D}do_backup -ne 0 ; then
38932 if -f ${D}arcFile ; then
473276a9
VS
38933 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
38934 fi
224bf05c 38935 if -f ${D}arcFile2 ; then
473276a9
VS
38936 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
38937 fi
38938fi
38939
38940# Extract public symbols from all the object files.
38941tmpdefFile=${D}{defFile}_%
38942rm -f ${D}tmpdefFile
38943for file in ${D}inputFiles ; do
38944 case ${D}file in
38945 *!)
38946 ;;
38947 *)
38948 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
38949 ;;
38950 esac
38951done
38952
38953# Create the def file.
38954rm -f ${D}defFile
38955echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
38956dllFile="${D}dllFile.dll"
224bf05c 38957if -n ${D}description ; then
473276a9
VS
38958 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
38959fi
38960echo "EXPORTS" >> ${D}defFile
38961
38962doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
38963grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
38964
38965# Checks if the export is ok or not.
38966for word in ${D}exclude_symbols; do
38967 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
38968 mv ${D}{tmpdefFile}% ${D}tmpdefFile
38969done
38970
38971
224bf05c 38972if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
473276a9
VS
38973 sed "=" < ${D}tmpdefFile | \
38974 sed '
38975 N
38976 : loop
224bf05c 38977 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
38978 t loop
38979 ' > ${D}{tmpdefFile}%
38980 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
38981else
38982 rm -f ${D}{tmpdefFile}%
38983fi
38984cat ${D}tmpdefFile >> ${D}defFile
38985rm -f ${D}tmpdefFile
38986
38987# Do linking, create implib, and apply lxlite.
38988gccCmdl="";
38989for file in ${D}inputFiles ; do
38990 case ${D}file in
38991 *!)
38992 ;;
38993 *)
38994 gccCmdl="${D}gccCmdl ${D}file"
38995 ;;
38996 esac
38997done
38998doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
38999touch "${D}{outFile}.dll"
39000
39001doCommand "emximp -o ${D}arcFile ${D}defFile"
224bf05c 39002if ${D}flag_USE_LXLITE -ne 0 ; then
473276a9 39003 add_flags="";
224bf05c 39004 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
473276a9
VS
39005 add_flags="-ynd"
39006 fi
39007 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39008fi
39009doCommand "emxomf -s -l ${D}arcFile"
39010
39011# Successful exit.
39012CleanUp 1
39013exit 0
39014EOF
39015
39016 chmod +x dllar.sh
a848cd7e
SC
39017 ;;
39018
39019 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39020 *-*-sunos4* | \
39021 *-*-osf* | \
39022 *-*-dgux5* | \
39023 *-*-sysv5* )
39024 ;;
39025
39026 *)
39027 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39028echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39029 { (exit 1); exit 1; }; }
39030 esac
39031
39032 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39033 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39034 fi
39035 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39036 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39037 fi
39038
39039
39040
39041
39042
39043
39044
39045
39046 USE_SOVERSION=0
39047 USE_SOVERLINUX=0
39048 USE_SOVERSOLARIS=0
39049 USE_SOSYMLINKS=0
39050 USE_MACVERSION=0
39051 SONAME_FLAG=
39052
39053 case "${BAKEFILE_HOST}" in
39054 *-*-linux* )
39055 SONAME_FLAG="-Wl,-soname,"
39056 USE_SOVERSION=1
39057 USE_SOVERLINUX=1
39058 USE_SOSYMLINKS=1
39059 ;;
39060
39061 *-*-solaris2* )
39062 SONAME_FLAG="-h "
39063 USE_SOVERSION=1
39064 USE_SOVERSOLARIS=1
39065 USE_SOSYMLINKS=1
39066 ;;
39067
39068 *-*-darwin* )
39069 USE_MACVERSION=1
39070 USE_SOVERSION=1
39071 USE_SOSYMLINKS=1
39072 ;;
39073 esac
39074
39075
39076
39077
39078
39079
39080
39081
39082
39083 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39084echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39085 DEPS_TRACKING=0
39086
39087 if test "x$GCC" = "xyes"; then
39088 DEPSMODE=gcc
39089 DEPS_TRACKING=1
39090 case "${BAKEFILE_HOST}" in
39091 powerpc-*-darwin* )
39092 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39093 ;;
39094 * )
39095 DEPSFLAG_GCC="-MMD"
39096 ;;
39097 esac
39098 echo "$as_me:$LINENO: result: gcc" >&5
39099echo "${ECHO_T}gcc" >&6
39100 else
39101 echo "$as_me:$LINENO: result: none" >&5
39102echo "${ECHO_T}none" >&6
39103 fi
39104
39105 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39106
39107D='$'
39108cat <<EOF >bk-deps
a848cd7e
SC
39109#!/bin/sh
39110
39111# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39112# script. It is used to track C/C++ files dependencies in portable way.
39113#
39114# Permission is given to use this file in any way.
39115
473276a9 39116DEPSMODE=${DEPSMODE}
a848cd7e 39117DEPSDIR=.deps
473276a9 39118DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39119
473276a9 39120mkdir -p ${D}DEPSDIR
a848cd7e 39121
473276a9
VS
39122if test ${D}DEPSMODE = gcc ; then
39123 ${D}* ${D}{DEPSFLAG_GCC}
39124 status=${D}?
39125 if test ${D}{status} != 0 ; then
39126 exit ${D}{status}
a848cd7e
SC
39127 fi
39128 # move created file to the location we want it in:
473276a9
VS
39129 while test ${D}# -gt 0; do
39130 case "${D}1" in
a848cd7e
SC
39131 -o )
39132 shift
473276a9 39133 objfile=${D}1
a848cd7e
SC
39134 ;;
39135 -* )
39136 ;;
39137 * )
473276a9 39138 srcfile=${D}1
a848cd7e
SC
39139 ;;
39140 esac
39141 shift
39142 done
473276a9
VS
39143 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39144 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39145 if test -f ${D}depfile ; then
39146 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39147 rm -f ${D}depfile
a848cd7e 39148 else
473276a9
VS
39149 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39150 if test -f ${D}depfile ; then
39151 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39152 rm -f ${D}depfile
a848cd7e
SC
39153 fi
39154 fi
39155 exit 0
39156else
473276a9
VS
39157 ${D}*
39158 exit ${D}?
a848cd7e
SC
39159fi
39160EOF
473276a9 39161
a848cd7e
SC
39162 chmod +x bk-deps
39163 fi
39164
39165
39166
39167
39168 RESCOMP=
39169 SETFILE=
39170
39171 case ${BAKEFILE_HOST} in
39172 *-*-cygwin* | *-*-mingw32* )
39173 if test "$build" != "$host" ; then
39174 RESCOMP=$host_alias-windres
39175 else
39176 # Extract the first word of "windres", so it can be a program name with args.
39177set dummy windres; ac_word=$2
39178echo "$as_me:$LINENO: checking for $ac_word" >&5
39179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39180if test "${ac_cv_prog_RESCOMP+set}" = set; then
39181 echo $ECHO_N "(cached) $ECHO_C" >&6
39182else
39183 if test -n "$RESCOMP"; then
39184 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39185else
39186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39187for as_dir in $PATH
39188do
39189 IFS=$as_save_IFS
39190 test -z "$as_dir" && as_dir=.
39191 for ac_exec_ext in '' $ac_executable_extensions; do
39192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39193 ac_cv_prog_RESCOMP="windres"
39194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39195 break 2
39196 fi
39197done
39198done
39199
39200 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39201fi
39202fi
39203RESCOMP=$ac_cv_prog_RESCOMP
39204if test -n "$RESCOMP"; then
39205 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39206echo "${ECHO_T}$RESCOMP" >&6
39207else
39208 echo "$as_me:$LINENO: result: no" >&5
39209echo "${ECHO_T}no" >&6
39210fi
39211
39212 fi
39213 ;;
39214
39215 *-*-darwin* )
39216 # Extract the first word of "Rez", so it can be a program name with args.
39217set dummy Rez; ac_word=$2
39218echo "$as_me:$LINENO: checking for $ac_word" >&5
39219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39220if test "${ac_cv_prog_RESCOMP+set}" = set; then
39221 echo $ECHO_N "(cached) $ECHO_C" >&6
39222else
39223 if test -n "$RESCOMP"; then
39224 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39225else
39226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39227for as_dir in $PATH
39228do
39229 IFS=$as_save_IFS
39230 test -z "$as_dir" && as_dir=.
39231 for ac_exec_ext in '' $ac_executable_extensions; do
39232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39233 ac_cv_prog_RESCOMP="Rez"
39234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39235 break 2
39236 fi
39237done
39238done
39239
39240 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39241fi
39242fi
39243RESCOMP=$ac_cv_prog_RESCOMP
39244if test -n "$RESCOMP"; then
39245 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39246echo "${ECHO_T}$RESCOMP" >&6
39247else
39248 echo "$as_me:$LINENO: result: no" >&5
39249echo "${ECHO_T}no" >&6
39250fi
39251
39252 # Extract the first word of "SetFile", so it can be a program name with args.
39253set dummy SetFile; ac_word=$2
39254echo "$as_me:$LINENO: checking for $ac_word" >&5
39255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39256if test "${ac_cv_prog_SETFILE+set}" = set; then
39257 echo $ECHO_N "(cached) $ECHO_C" >&6
39258else
39259 if test -n "$SETFILE"; then
39260 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39261else
39262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39263for as_dir in $PATH
39264do
39265 IFS=$as_save_IFS
39266 test -z "$as_dir" && as_dir=.
39267 for ac_exec_ext in '' $ac_executable_extensions; do
39268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39269 ac_cv_prog_SETFILE="SetFile"
39270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39271 break 2
39272 fi
39273done
39274done
39275
39276 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39277fi
39278fi
39279SETFILE=$ac_cv_prog_SETFILE
39280if test -n "$SETFILE"; then
39281 echo "$as_me:$LINENO: result: $SETFILE" >&5
39282echo "${ECHO_T}$SETFILE" >&6
39283else
39284 echo "$as_me:$LINENO: result: no" >&5
39285echo "${ECHO_T}no" >&6
39286fi
39287
39288 ;;
39289 esac
39290
39291
39292
39293
39294
224bf05c
VZ
39295
39296
a848cd7e 39297
dcc1b6ad 39298
9f45f08e 39299BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39300
646b6ec1 39301
74b84332 39302
a848cd7e
SC
39303 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39304if test "${enable_precomp_headers+set}" = set; then
39305 enableval="$enable_precomp_headers"
39306 bk_use_pch="$enableval"
39307fi;
39308
39309 GCC_PCH=0
39310
39311 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39312 if test "x$GCC" = "xyes"; then
39313 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39314echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39315 cat >conftest.$ac_ext <<_ACEOF
39316/* confdefs.h. */
39317_ACEOF
39318cat confdefs.h >>conftest.$ac_ext
39319cat >>conftest.$ac_ext <<_ACEOF
39320/* end confdefs.h. */
39321
39322int
39323main ()
39324{
39325
39326 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39327 #error "no pch support"
39328 #endif
39329 #if (__GNUC__ < 3)
39330 #error "no pch support"
39331 #endif
39332 #if (__GNUC__ == 3) && \
39333 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39334 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39335 #error "no pch support"
39336 #endif
39337
39338 ;
39339 return 0;
39340}
39341_ACEOF
39342rm -f conftest.$ac_objext
39343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39344 (eval $ac_compile) 2>conftest.er1
a848cd7e 39345 ac_status=$?
ac1cb8d3
VS
39346 grep -v '^ *+' conftest.er1 >conftest.err
39347 rm -f conftest.er1
39348 cat conftest.err >&5
a848cd7e
SC
39349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350 (exit $ac_status); } &&
224bf05c 39351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39353 (eval $ac_try) 2>&5
39354 ac_status=$?
39355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356 (exit $ac_status); }; } &&
39357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39359 (eval $ac_try) 2>&5
39360 ac_status=$?
39361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39362 (exit $ac_status); }; }; then
39363
39364 echo "$as_me:$LINENO: result: yes" >&5
39365echo "${ECHO_T}yes" >&6
39366 CPPFLAGS="-fpch-deps $CPPFLAGS"
39367 GCC_PCH=1
39368
39369else
39370 echo "$as_me: failed program was:" >&5
39371sed 's/^/| /' conftest.$ac_ext >&5
39372
39373
39374 echo "$as_me:$LINENO: result: no" >&5
39375echo "${ECHO_T}no" >&6
39376
39377fi
ac1cb8d3 39378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39379 if test $GCC_PCH = 1 ; then
39380 cat <<EOF >bk-make-pch
39381#!/bin/sh
39382
39383# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39384# script. It is used to generated precompiled headers.
39385#
39386# Permission is given to use this file in any way.
39387
39388outfile="\${1}"
39389header="\${2}"
39390shift
39391shift
39392
39393compiler=
39394headerfile=
39395while test \${#} -gt 0; do
39396 case "\${1}" in
39397 -I* )
39398 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39399 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39400 headerfile="\${incdir}/\${header}"
39401 fi
39402 ;;
39403 esac
39404 compiler="\${compiler} \${1}"
39405 shift
39406done
39407
39408if test "x\${headerfile}" = "x" ; then
39409 echo "error: can't find header \${header} in include paths" >2
39410else
39411 if test -f \${outfile} ; then
39412 rm -f \${outfile}
39413 else
39414 mkdir -p \`dirname \${outfile}\`
39415 fi
39416 depsfile=".deps/\`basename \${outfile}\`.d"
39417 mkdir -p .deps
39418 # can do this because gcc is >= 3.4:
39419 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39420 exit \${?}
39421fi
39422EOF
39423 chmod +x bk-make-pch
39424 fi
39425 fi
39426 fi
39427
39428
39429
39430
39431
dcc1b6ad
VS
39432
39433
39434 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39435if test "${enable_precomp_headers+set}" = set; then
39436 enableval="$enable_precomp_headers"
39437 bk_use_pch="$enableval"
39438fi;
39439
39440 GCC_PCH=0
39441
39442 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39443 if test "x$GCC" = "xyes"; then
39444 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39445echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39446 cat >conftest.$ac_ext <<_ACEOF
39447/* confdefs.h. */
39448_ACEOF
39449cat confdefs.h >>conftest.$ac_ext
39450cat >>conftest.$ac_ext <<_ACEOF
39451/* end confdefs.h. */
39452
39453int
39454main ()
39455{
39456
39457 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39458 #error "no pch support"
39459 #endif
39460 #if (__GNUC__ < 3)
39461 #error "no pch support"
39462 #endif
39463 #if (__GNUC__ == 3) && \
39464 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39465 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39466 #error "no pch support"
39467 #endif
39468
39469 ;
39470 return 0;
39471}
39472_ACEOF
39473rm -f conftest.$ac_objext
39474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39475 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39476 ac_status=$?
ac1cb8d3
VS
39477 grep -v '^ *+' conftest.er1 >conftest.err
39478 rm -f conftest.er1
39479 cat conftest.err >&5
dcc1b6ad
VS
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); } &&
224bf05c 39482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39484 (eval $ac_try) 2>&5
39485 ac_status=$?
39486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39487 (exit $ac_status); }; } &&
39488 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39490 (eval $ac_try) 2>&5
39491 ac_status=$?
39492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493 (exit $ac_status); }; }; then
39494
39495 echo "$as_me:$LINENO: result: yes" >&5
39496echo "${ECHO_T}yes" >&6
39497 CPPFLAGS="-fpch-deps $CPPFLAGS"
39498 GCC_PCH=1
39499
39500else
39501 echo "$as_me: failed program was:" >&5
39502sed 's/^/| /' conftest.$ac_ext >&5
39503
39504
39505 echo "$as_me:$LINENO: result: no" >&5
39506echo "${ECHO_T}no" >&6
39507
39508fi
ac1cb8d3 39509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39510 if test $GCC_PCH = 1 ; then
39511 cat <<EOF >bk-make-pch
39512#!/bin/sh
39513
39514# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39515# script. It is used to generated precompiled headers.
39516#
39517# Permission is given to use this file in any way.
39518
39519outfile="\${1}"
39520header="\${2}"
39521shift
39522shift
39523
39524compiler=
39525headerfile=
39526while test \${#} -gt 0; do
39527 case "\${1}" in
39528 -I* )
39529 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39530 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39531 headerfile="\${incdir}/\${header}"
39532 fi
39533 ;;
39534 esac
39535 compiler="\${compiler} \${1}"
39536 shift
39537done
39538
39539if test "x\${headerfile}" = "x" ; then
39540 echo "error: can't find header \${header} in include paths" >2
39541else
39542 if test -f \${outfile} ; then
39543 rm -f \${outfile}
39544 else
39545 mkdir -p \`dirname \${outfile}\`
39546 fi
39547 depsfile=".deps/\`basename \${outfile}\`.d"
39548 mkdir -p .deps
39549 # can do this because gcc is >= 3.4:
39550 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39551 exit \${?}
39552fi
39553EOF
39554 chmod +x bk-make-pch
39555 fi
39556 fi
39557 fi
39558
39559
39560
39561
a848cd7e
SC
39562 COND_BUILD_DEBUG="#"
39563 if test "x$BUILD" = "xdebug" ; then
39564 COND_BUILD_DEBUG=""
39565 fi
39566
39567 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39568 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39569 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39570 fi
39571
39572 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39573 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39574 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39575 fi
39576
39577 COND_BUILD_DEBUG_UNICODE_0="#"
39578 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39579 COND_BUILD_DEBUG_UNICODE_0=""
39580 fi
39581
39582 COND_BUILD_DEBUG_UNICODE_1="#"
39583 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39584 COND_BUILD_DEBUG_UNICODE_1=""
39585 fi
39586
39587 COND_BUILD_RELEASE="#"
39588 if test "x$BUILD" = "xrelease" ; then
39589 COND_BUILD_RELEASE=""
39590 fi
39591
39592 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39593 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39594 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39595 fi
39596
39597 COND_BUILD_RELEASE_UNICODE_0="#"
39598 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39599 COND_BUILD_RELEASE_UNICODE_0=""
39600 fi
39601
39602 COND_BUILD_RELEASE_UNICODE_1="#"
39603 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39604 COND_BUILD_RELEASE_UNICODE_1=""
39605 fi
39606
39607 COND_DEBUG_FLAG_1="#"
39608 if test "x$DEBUG_FLAG" = "x1" ; then
39609 COND_DEBUG_FLAG_1=""
39610 fi
39611
39612 COND_DEBUG_INFO_0="#"
39613 if test "x$DEBUG_INFO" = "x0" ; then
39614 COND_DEBUG_INFO_0=""
39615 fi
39616
39617 COND_DEBUG_INFO_1="#"
39618 if test "x$DEBUG_INFO" = "x1" ; then
39619 COND_DEBUG_INFO_1=""
39620 fi
39621
39622 COND_DEPS_TRACKING_0="#"
39623 if test "x$DEPS_TRACKING" = "x0" ; then
39624 COND_DEPS_TRACKING_0=""
39625 fi
39626
39627 COND_DEPS_TRACKING_1="#"
39628 if test "x$DEPS_TRACKING" = "x1" ; then
39629 COND_DEPS_TRACKING_1=""
39630 fi
39631
39632 COND_GCC_PCH_1="#"
39633 if test "x$GCC_PCH" = "x1" ; then
39634 COND_GCC_PCH_1=""
39635 fi
39636
39637 COND_MONOLITHIC_0="#"
39638 if test "x$MONOLITHIC" = "x0" ; then
39639 COND_MONOLITHIC_0=""
39640 fi
39641
39642 COND_MONOLITHIC_0_SHARED_0="#"
39643 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39644 COND_MONOLITHIC_0_SHARED_0=""
39645 fi
39646
39647 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39648 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39649 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39650 fi
39651
39652 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39653 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39654 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39655 fi
39656
39657 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39658 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39659 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39660 fi
39661
39662 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39663 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39664 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39665 fi
39666
39667 COND_MONOLITHIC_0_SHARED_1="#"
39668 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39669 COND_MONOLITHIC_0_SHARED_1=""
39670 fi
39671
39672 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39673 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39674 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39675 fi
39676
39677 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39678 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39679 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39680 fi
39681
39682 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39683 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39684 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39685 fi
39686
39687 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39688 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39689 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39690 fi
39691
39692 COND_MONOLITHIC_0_USE_ODBC_1="#"
39693 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39694 COND_MONOLITHIC_0_USE_ODBC_1=""
39695 fi
39696
39697 COND_MONOLITHIC_1="#"
39698 if test "x$MONOLITHIC" = "x1" ; then
39699 COND_MONOLITHIC_1=""
39700 fi
39701
39702 COND_MONOLITHIC_1_SHARED_0="#"
39703 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39704 COND_MONOLITHIC_1_SHARED_0=""
39705 fi
39706
39707 COND_MONOLITHIC_1_SHARED_1="#"
39708 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39709 COND_MONOLITHIC_1_SHARED_1=""
39710 fi
39711
39712 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39713 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39714 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39715 fi
39716
39717 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39718 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39719 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39720 fi
39721
39722 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39723 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39724 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39725 fi
39726
39727 COND_PLATFORM_MACOSX_1="#"
39728 if test "x$PLATFORM_MACOSX" = "x1" ; then
39729 COND_PLATFORM_MACOSX_1=""
39730 fi
39731
39732 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39733 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39734 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39735 fi
39736
39737 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39738 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39739 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39740 fi
39741
39742 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39743 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39744 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39745 fi
39746
39747 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39748 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39749 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39750 fi
39751
39752 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39753 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39754 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39755 fi
39756
39757 COND_PLATFORM_MAC_1="#"
39758 if test "x$PLATFORM_MAC" = "x1" ; then
39759 COND_PLATFORM_MAC_1=""
39760 fi
39761
39762 COND_PLATFORM_OS2_1="#"
39763 if test "x$PLATFORM_OS2" = "x1" ; then
39764 COND_PLATFORM_OS2_1=""
39765 fi
39766
39767 COND_PLATFORM_UNIX_0="#"
39768 if test "x$PLATFORM_UNIX" = "x0" ; then
39769 COND_PLATFORM_UNIX_0=""
39770 fi
39771
39772 COND_PLATFORM_UNIX_1="#"
39773 if test "x$PLATFORM_UNIX" = "x1" ; then
39774 COND_PLATFORM_UNIX_1=""
39775 fi
39776
39777 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39778 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39779 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39780 fi
39781
39782 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39783 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39784 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39785 fi
39786
39787 COND_PLATFORM_WIN32_0="#"
39788 if test "x$PLATFORM_WIN32" = "x0" ; then
39789 COND_PLATFORM_WIN32_0=""
39790 fi
39791
39792 COND_PLATFORM_WIN32_1="#"
39793 if test "x$PLATFORM_WIN32" = "x1" ; then
39794 COND_PLATFORM_WIN32_1=""
39795 fi
39796
39797 COND_SHARED_0="#"
39798 if test "x$SHARED" = "x0" ; then
39799 COND_SHARED_0=""
39800 fi
39801
39802 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39803 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39804 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39805 fi
39806
39807 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39808 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39809 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39810 fi
39811
39812 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39813 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39814 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39815 fi
39816
39817 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39818 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39819 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39820 fi
39821
39822 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39823 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39824 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39825 fi
39826
39827 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39828 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39829 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39830 fi
39831
39832 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39833 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39834 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39835 fi
39836
39837 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39838 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39839 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39840 fi
39841
39842 COND_SHARED_1="#"
39843 if test "x$SHARED" = "x1" ; then
39844 COND_SHARED_1=""
39845 fi
39846
39847 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39848 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39849 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39850 fi
39851
39852 COND_TOOLKIT_COCOA="#"
39853 if test "x$TOOLKIT" = "xCOCOA" ; then
39854 COND_TOOLKIT_COCOA=""
39855 fi
39856
39857 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39858 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39859 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
39860 fi
39861
39862 COND_TOOLKIT_GTK="#"
39863 if test "x$TOOLKIT" = "xGTK" ; then
39864 COND_TOOLKIT_GTK=""
39865 fi
39866
39867 COND_TOOLKIT_GTK_USE_GUI_1="#"
39868 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39869 COND_TOOLKIT_GTK_USE_GUI_1=""
39870 fi
39871
39872 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39873 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39874 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
39875 fi
39876
39877 COND_TOOLKIT_MAC="#"
39878 if test "x$TOOLKIT" = "xMAC" ; then
39879 COND_TOOLKIT_MAC=""
39880 fi
39881
39882 COND_TOOLKIT_MAC_USE_GUI_1="#"
39883 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39884 COND_TOOLKIT_MAC_USE_GUI_1=""
39885 fi
39886
39887 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39888 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39889 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
39890 fi
39891
e835546c
DE
39892 COND_TOOLKIT_MAC_WXUNIV_0="#"
39893 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
39894 COND_TOOLKIT_MAC_WXUNIV_0=""
39895 fi
39896
a848cd7e
SC
39897 COND_TOOLKIT_MGL="#"
39898 if test "x$TOOLKIT" = "xMGL" ; then
39899 COND_TOOLKIT_MGL=""
39900 fi
39901
39902 COND_TOOLKIT_MGL_USE_GUI_1="#"
39903 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39904 COND_TOOLKIT_MGL_USE_GUI_1=""
39905 fi
39906
39907 COND_TOOLKIT_MOTIF="#"
39908 if test "x$TOOLKIT" = "xMOTIF" ; then
39909 COND_TOOLKIT_MOTIF=""
39910 fi
39911
39912 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39913 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39914 COND_TOOLKIT_MOTIF_USE_GUI_1=""
39915 fi
39916
39917 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39918 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39919 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
39920 fi
39921
39922 COND_TOOLKIT_MSW="#"
39923 if test "x$TOOLKIT" = "xMSW" ; then
39924 COND_TOOLKIT_MSW=""
39925 fi
39926
39927 COND_TOOLKIT_MSW_USE_GUI_1="#"
39928 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39929 COND_TOOLKIT_MSW_USE_GUI_1=""
39930 fi
39931
39932 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39933 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39934 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
39935 fi
39936
e835546c
DE
39937 COND_TOOLKIT_MSW_WXUNIV_0="#"
39938 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
39939 COND_TOOLKIT_MSW_WXUNIV_0=""
39940 fi
39941
a848cd7e
SC
39942 COND_TOOLKIT_PM="#"
39943 if test "x$TOOLKIT" = "xPM" ; then
39944 COND_TOOLKIT_PM=""
39945 fi
39946
39947 COND_TOOLKIT_PM_USE_GUI_1="#"
39948 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39949 COND_TOOLKIT_PM_USE_GUI_1=""
39950 fi
39951
39952 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39953 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39954 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39955 fi
39956
e835546c
DE
39957 COND_TOOLKIT_PM_WXUNIV_0="#"
39958 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
39959 COND_TOOLKIT_PM_WXUNIV_0=""
39960 fi
39961
3fd9c298
DE
39962 COND_TOOLKIT_WINCE="#"
39963 if test "x$TOOLKIT" = "xWINCE" ; then
39964 COND_TOOLKIT_WINCE=""
39965 fi
39966
39967 COND_TOOLKIT_WINCE_USE_GUI_1="#"
39968 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
39969 COND_TOOLKIT_WINCE_USE_GUI_1=""
39970 fi
39971
39972 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
39973 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39974 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
39975 fi
39976
a848cd7e
SC
39977 COND_TOOLKIT_X11="#"
39978 if test "x$TOOLKIT" = "xX11" ; then
39979 COND_TOOLKIT_X11=""
39980 fi
39981
39982 COND_TOOLKIT_X11_USE_GUI_1="#"
39983 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39984 COND_TOOLKIT_X11_USE_GUI_1=""
39985 fi
39986
39987 COND_UNICODE_1="#"
39988 if test "x$UNICODE" = "x1" ; then
39989 COND_UNICODE_1=""
39990 fi
39991
39992 COND_USE_EXCEPTIONS_0="#"
39993 if test "x$USE_EXCEPTIONS" = "x0" ; then
39994 COND_USE_EXCEPTIONS_0=""
39995 fi
39996
39997 COND_USE_EXCEPTIONS_1="#"
39998 if test "x$USE_EXCEPTIONS" = "x1" ; then
39999 COND_USE_EXCEPTIONS_1=""
40000 fi
40001
40002 COND_USE_GUI_0="#"
40003 if test "x$USE_GUI" = "x0" ; then
40004 COND_USE_GUI_0=""
40005 fi
40006
40007 COND_USE_GUI_1="#"
40008 if test "x$USE_GUI" = "x1" ; then
40009 COND_USE_GUI_1=""
40010 fi
40011
40012 COND_USE_GUI_1_WXUNIV_0="#"
40013 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40014 COND_USE_GUI_1_WXUNIV_0=""
40015 fi
40016
40017 COND_USE_GUI_1_WXUNIV_1="#"
40018 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40019 COND_USE_GUI_1_WXUNIV_1=""
40020 fi
40021
40022 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40023 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40024 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40025 fi
40026
40027 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40028 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40029 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40030 fi
40031
40032 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40033 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40034 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40035 fi
40036
40037 COND_USE_ODBC_1="#"
40038 if test "x$USE_ODBC" = "x1" ; then
40039 COND_USE_ODBC_1=""
40040 fi
40041
40042 COND_USE_PLUGINS_0="#"
40043 if test "x$USE_PLUGINS" = "x0" ; then
40044 COND_USE_PLUGINS_0=""
40045 fi
40046
40047 COND_USE_SOSYMLINKS_1="#"
40048 if test "x$USE_SOSYMLINKS" = "x1" ; then
40049 COND_USE_SOSYMLINKS_1=""
40050 fi
40051
40052 COND_USE_SOVERLINUX_1="#"
40053 if test "x$USE_SOVERLINUX" = "x1" ; then
40054 COND_USE_SOVERLINUX_1=""
40055 fi
40056
40057 COND_USE_SOVERSION_0="#"
40058 if test "x$USE_SOVERSION" = "x0" ; then
40059 COND_USE_SOVERSION_0=""
40060 fi
40061
40062 COND_USE_SOVERSOLARIS_1="#"
40063 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40064 COND_USE_SOVERSOLARIS_1=""
40065 fi
40066
40067 COND_WITH_PLUGIN_SDL_1="#"
40068 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40069 COND_WITH_PLUGIN_SDL_1=""
40070 fi
40071
40072 COND_WITH_SDL_1="#"
40073 if test "x$WITH_SDL" = "x1" ; then
40074 COND_WITH_SDL_1=""
40075 fi
40076
40077 COND_WXUNIV_1="#"
40078 if test "x$WXUNIV" = "x1" ; then
40079 COND_WXUNIV_1=""
40080 fi
40081
40082 COND_WXUSE_EXPAT_BUILTIN="#"
40083 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40084 COND_WXUSE_EXPAT_BUILTIN=""
40085 fi
40086
40087 COND_WXUSE_LIBJPEG_BUILTIN="#"
40088 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40089 COND_WXUSE_LIBJPEG_BUILTIN=""
40090 fi
40091
40092 COND_WXUSE_LIBPNG_BUILTIN="#"
40093 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40094 COND_WXUSE_LIBPNG_BUILTIN=""
40095 fi
40096
40097 COND_WXUSE_LIBTIFF_BUILTIN="#"
40098 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40099 COND_WXUSE_LIBTIFF_BUILTIN=""
40100 fi
40101
40102 COND_WXUSE_ODBC_BUILTIN="#"
40103 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40104 COND_WXUSE_ODBC_BUILTIN=""
40105 fi
40106
40107 COND_WXUSE_REGEX_BUILTIN="#"
40108 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40109 COND_WXUSE_REGEX_BUILTIN=""
40110 fi
40111
40112 COND_WXUSE_ZLIB_BUILTIN="#"
40113 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40114 COND_WXUSE_ZLIB_BUILTIN=""
40115 fi
40116
dcc1b6ad
VS
40117 COND_BUILD_DEBUG="#"
40118 if test "x$BUILD" = "xdebug" ; then
40119 COND_BUILD_DEBUG=""
40120 fi
40121
40122 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40123 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40124 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40125 fi
40126
40127 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40128 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40129 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40130 fi
40131
40132 COND_BUILD_DEBUG_UNICODE_0="#"
40133 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40134 COND_BUILD_DEBUG_UNICODE_0=""
40135 fi
40136
40137 COND_BUILD_DEBUG_UNICODE_1="#"
40138 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40139 COND_BUILD_DEBUG_UNICODE_1=""
40140 fi
40141
40142 COND_BUILD_RELEASE="#"
40143 if test "x$BUILD" = "xrelease" ; then
40144 COND_BUILD_RELEASE=""
40145 fi
40146
40147 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40148 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40149 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40150 fi
40151
40152 COND_BUILD_RELEASE_UNICODE_0="#"
40153 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40154 COND_BUILD_RELEASE_UNICODE_0=""
40155 fi
40156
40157 COND_BUILD_RELEASE_UNICODE_1="#"
40158 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40159 COND_BUILD_RELEASE_UNICODE_1=""
40160 fi
40161
40162 COND_DEBUG_FLAG_1="#"
40163 if test "x$DEBUG_FLAG" = "x1" ; then
40164 COND_DEBUG_FLAG_1=""
40165 fi
40166
40167 COND_DEBUG_INFO_0="#"
40168 if test "x$DEBUG_INFO" = "x0" ; then
40169 COND_DEBUG_INFO_0=""
40170 fi
40171
40172 COND_DEBUG_INFO_1="#"
40173 if test "x$DEBUG_INFO" = "x1" ; then
40174 COND_DEBUG_INFO_1=""
40175 fi
40176
40177 COND_DEPS_TRACKING_0="#"
40178 if test "x$DEPS_TRACKING" = "x0" ; then
40179 COND_DEPS_TRACKING_0=""
40180 fi
40181
40182 COND_DEPS_TRACKING_1="#"
40183 if test "x$DEPS_TRACKING" = "x1" ; then
40184 COND_DEPS_TRACKING_1=""
40185 fi
40186
40187 COND_GCC_PCH_1="#"
40188 if test "x$GCC_PCH" = "x1" ; then
40189 COND_GCC_PCH_1=""
40190 fi
40191
40192 COND_MONOLITHIC_0="#"
40193 if test "x$MONOLITHIC" = "x0" ; then
40194 COND_MONOLITHIC_0=""
40195 fi
40196
40197 COND_MONOLITHIC_0_SHARED_0="#"
40198 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40199 COND_MONOLITHIC_0_SHARED_0=""
40200 fi
40201
40202 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40203 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40204 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40205 fi
40206
40207 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40208 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40209 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40210 fi
40211
40212 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40213 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40214 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40215 fi
40216
40217 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40218 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40219 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40220 fi
40221
40222 COND_MONOLITHIC_0_SHARED_1="#"
40223 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40224 COND_MONOLITHIC_0_SHARED_1=""
40225 fi
40226
40227 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40228 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40229 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40230 fi
40231
40232 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40233 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40234 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40235 fi
40236
40237 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40238 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40239 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40240 fi
40241
40242 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40243 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40244 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40245 fi
40246
40247 COND_MONOLITHIC_0_USE_ODBC_1="#"
40248 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40249 COND_MONOLITHIC_0_USE_ODBC_1=""
40250 fi
40251
40252 COND_MONOLITHIC_1="#"
40253 if test "x$MONOLITHIC" = "x1" ; then
40254 COND_MONOLITHIC_1=""
40255 fi
40256
40257 COND_MONOLITHIC_1_SHARED_0="#"
40258 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40259 COND_MONOLITHIC_1_SHARED_0=""
40260 fi
40261
40262 COND_MONOLITHIC_1_SHARED_1="#"
40263 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40264 COND_MONOLITHIC_1_SHARED_1=""
40265 fi
40266
40267 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40268 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40269 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40270 fi
40271
40272 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40273 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40274 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40275 fi
40276
40277 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40278 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40279 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40280 fi
40281
40282 COND_PLATFORM_MACOSX_1="#"
40283 if test "x$PLATFORM_MACOSX" = "x1" ; then
40284 COND_PLATFORM_MACOSX_1=""
40285 fi
40286
40287 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40288 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40289 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40290 fi
40291
40292 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40293 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40294 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40295 fi
40296
40297 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40298 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40299 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40300 fi
40301
40302 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40303 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40304 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40305 fi
40306
40307 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40308 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40309 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40310 fi
40311
40312 COND_PLATFORM_MAC_1="#"
40313 if test "x$PLATFORM_MAC" = "x1" ; then
40314 COND_PLATFORM_MAC_1=""
40315 fi
40316
40317 COND_PLATFORM_OS2_1="#"
40318 if test "x$PLATFORM_OS2" = "x1" ; then
40319 COND_PLATFORM_OS2_1=""
40320 fi
40321
40322 COND_PLATFORM_UNIX_0="#"
40323 if test "x$PLATFORM_UNIX" = "x0" ; then
40324 COND_PLATFORM_UNIX_0=""
40325 fi
40326
40327 COND_PLATFORM_UNIX_1="#"
40328 if test "x$PLATFORM_UNIX" = "x1" ; then
40329 COND_PLATFORM_UNIX_1=""
40330 fi
40331
40332 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40333 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40334 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40335 fi
40336
40337 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40338 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40339 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40340 fi
40341
40342 COND_PLATFORM_WIN32_0="#"
40343 if test "x$PLATFORM_WIN32" = "x0" ; then
40344 COND_PLATFORM_WIN32_0=""
40345 fi
40346
40347 COND_PLATFORM_WIN32_1="#"
40348 if test "x$PLATFORM_WIN32" = "x1" ; then
40349 COND_PLATFORM_WIN32_1=""
40350 fi
40351
40352 COND_SHARED_0="#"
40353 if test "x$SHARED" = "x0" ; then
40354 COND_SHARED_0=""
40355 fi
40356
40357 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40358 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40359 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40360 fi
40361
40362 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40363 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40364 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40365 fi
40366
40367 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40368 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40369 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40370 fi
40371
40372 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40373 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40374 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40375 fi
40376
40377 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40378 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40379 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40380 fi
40381
40382 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40383 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40384 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40385 fi
40386
40387 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40388 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40389 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40390 fi
40391
40392 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40393 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40394 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40395 fi
40396
40397 COND_SHARED_1="#"
40398 if test "x$SHARED" = "x1" ; then
40399 COND_SHARED_1=""
40400 fi
40401
40402 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40403 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40404 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40405 fi
40406
40407 COND_TOOLKIT_COCOA="#"
40408 if test "x$TOOLKIT" = "xCOCOA" ; then
40409 COND_TOOLKIT_COCOA=""
40410 fi
40411
40412 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40413 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40414 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40415 fi
40416
40417 COND_TOOLKIT_GTK="#"
40418 if test "x$TOOLKIT" = "xGTK" ; then
40419 COND_TOOLKIT_GTK=""
40420 fi
40421
40422 COND_TOOLKIT_GTK_USE_GUI_1="#"
40423 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40424 COND_TOOLKIT_GTK_USE_GUI_1=""
40425 fi
40426
40427 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40428 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40429 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40430 fi
40431
40432 COND_TOOLKIT_MAC="#"
40433 if test "x$TOOLKIT" = "xMAC" ; then
40434 COND_TOOLKIT_MAC=""
40435 fi
40436
40437 COND_TOOLKIT_MAC_USE_GUI_1="#"
40438 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40439 COND_TOOLKIT_MAC_USE_GUI_1=""
40440 fi
40441
40442 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40443 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40444 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40445 fi
40446
40447 COND_TOOLKIT_MGL="#"
40448 if test "x$TOOLKIT" = "xMGL" ; then
40449 COND_TOOLKIT_MGL=""
40450 fi
40451
40452 COND_TOOLKIT_MGL_USE_GUI_1="#"
40453 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40454 COND_TOOLKIT_MGL_USE_GUI_1=""
40455 fi
40456
40457 COND_TOOLKIT_MOTIF="#"
40458 if test "x$TOOLKIT" = "xMOTIF" ; then
40459 COND_TOOLKIT_MOTIF=""
40460 fi
40461
40462 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40463 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40464 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40465 fi
40466
40467 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40468 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40469 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40470 fi
40471
40472 COND_TOOLKIT_MSW="#"
40473 if test "x$TOOLKIT" = "xMSW" ; then
40474 COND_TOOLKIT_MSW=""
40475 fi
40476
40477 COND_TOOLKIT_MSW_USE_GUI_1="#"
40478 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40479 COND_TOOLKIT_MSW_USE_GUI_1=""
40480 fi
40481
40482 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40483 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40484 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40485 fi
40486
40487 COND_TOOLKIT_PM="#"
40488 if test "x$TOOLKIT" = "xPM" ; then
40489 COND_TOOLKIT_PM=""
40490 fi
40491
40492 COND_TOOLKIT_PM_USE_GUI_1="#"
40493 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40494 COND_TOOLKIT_PM_USE_GUI_1=""
40495 fi
40496
40497 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40498 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40499 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40500 fi
40501
40502 COND_TOOLKIT_WINCE="#"
40503 if test "x$TOOLKIT" = "xWINCE" ; then
40504 COND_TOOLKIT_WINCE=""
40505 fi
40506
40507 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40508 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40509 COND_TOOLKIT_WINCE_USE_GUI_1=""
40510 fi
40511
40512 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40513 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40514 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40515 fi
40516
40517 COND_TOOLKIT_X11="#"
40518 if test "x$TOOLKIT" = "xX11" ; then
40519 COND_TOOLKIT_X11=""
40520 fi
40521
40522 COND_TOOLKIT_X11_USE_GUI_1="#"
40523 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40524 COND_TOOLKIT_X11_USE_GUI_1=""
40525 fi
40526
40527 COND_UNICODE_1="#"
40528 if test "x$UNICODE" = "x1" ; then
40529 COND_UNICODE_1=""
40530 fi
40531
40532 COND_USE_EXCEPTIONS_0="#"
40533 if test "x$USE_EXCEPTIONS" = "x0" ; then
40534 COND_USE_EXCEPTIONS_0=""
40535 fi
40536
40537 COND_USE_EXCEPTIONS_1="#"
40538 if test "x$USE_EXCEPTIONS" = "x1" ; then
40539 COND_USE_EXCEPTIONS_1=""
40540 fi
40541
40542 COND_USE_GUI_0="#"
40543 if test "x$USE_GUI" = "x0" ; then
40544 COND_USE_GUI_0=""
40545 fi
40546
40547 COND_USE_GUI_1="#"
40548 if test "x$USE_GUI" = "x1" ; then
40549 COND_USE_GUI_1=""
40550 fi
40551
40552 COND_USE_GUI_1_WXUNIV_0="#"
40553 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40554 COND_USE_GUI_1_WXUNIV_0=""
40555 fi
40556
40557 COND_USE_GUI_1_WXUNIV_1="#"
40558 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40559 COND_USE_GUI_1_WXUNIV_1=""
40560 fi
40561
40562 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40563 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40564 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40565 fi
40566
40567 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40568 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40569 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40570 fi
40571
40572 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40573 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40574 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40575 fi
40576
40577 COND_USE_ODBC_1="#"
40578 if test "x$USE_ODBC" = "x1" ; then
40579 COND_USE_ODBC_1=""
40580 fi
40581
40582 COND_USE_PLUGINS_0="#"
40583 if test "x$USE_PLUGINS" = "x0" ; then
40584 COND_USE_PLUGINS_0=""
40585 fi
40586
40587 COND_USE_SOSYMLINKS_1="#"
40588 if test "x$USE_SOSYMLINKS" = "x1" ; then
40589 COND_USE_SOSYMLINKS_1=""
40590 fi
40591
40592 COND_USE_SOVERLINUX_1="#"
40593 if test "x$USE_SOVERLINUX" = "x1" ; then
40594 COND_USE_SOVERLINUX_1=""
40595 fi
40596
40597 COND_USE_SOVERSION_0="#"
40598 if test "x$USE_SOVERSION" = "x0" ; then
40599 COND_USE_SOVERSION_0=""
40600 fi
40601
40602 COND_USE_SOVERSOLARIS_1="#"
40603 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40604 COND_USE_SOVERSOLARIS_1=""
40605 fi
40606
40607 COND_WITH_PLUGIN_SDL_1="#"
40608 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40609 COND_WITH_PLUGIN_SDL_1=""
40610 fi
40611
40612 COND_WXUNIV_1="#"
40613 if test "x$WXUNIV" = "x1" ; then
40614 COND_WXUNIV_1=""
40615 fi
40616
40617 COND_WXUSE_EXPAT_BUILTIN="#"
40618 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40619 COND_WXUSE_EXPAT_BUILTIN=""
40620 fi
40621
40622 COND_WXUSE_LIBJPEG_BUILTIN="#"
40623 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40624 COND_WXUSE_LIBJPEG_BUILTIN=""
40625 fi
40626
40627 COND_WXUSE_LIBPNG_BUILTIN="#"
40628 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40629 COND_WXUSE_LIBPNG_BUILTIN=""
40630 fi
40631
40632 COND_WXUSE_LIBTIFF_BUILTIN="#"
40633 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40634 COND_WXUSE_LIBTIFF_BUILTIN=""
40635 fi
40636
40637 COND_WXUSE_ODBC_BUILTIN="#"
40638 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40639 COND_WXUSE_ODBC_BUILTIN=""
40640 fi
40641
40642 COND_WXUSE_REGEX_BUILTIN="#"
40643 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40644 COND_WXUSE_REGEX_BUILTIN=""
40645 fi
40646
40647 COND_WXUSE_ZLIB_BUILTIN="#"
40648 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40649 COND_WXUSE_ZLIB_BUILTIN=""
40650 fi
40651
a848cd7e
SC
40652
40653
40654
40655
74b84332 40656GCC_PRAGMA_FLAGS=""
a848cd7e 40657if test $GCC_PCH = 1 ; then
74b84332 40658 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40659else
40660 case "${host}" in
40661 powerpc-*-darwin* )
74b84332 40662 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40663 ;;
bea8e651 40664 *-*-mingw32* )
1f344abf
VS
40665 if test "$wxUSE_STL" = "yes" -o \
40666 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40667 "$wxUSE_NO_RTTI" != "yes"; then
40668 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40669echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40670 cat >conftest.$ac_ext <<_ACEOF
40671/* confdefs.h. */
40672_ACEOF
40673cat confdefs.h >>conftest.$ac_ext
40674cat >>conftest.$ac_ext <<_ACEOF
40675/* end confdefs.h. */
40676
40677int
40678main ()
40679{
1f344abf 40680#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40681 #error "Not GCC 3.2 or greater"
40682 #endif
40683
40684 ;
40685 return 0;
40686}
40687_ACEOF
40688rm -f conftest.$ac_objext
40689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40690 (eval $ac_compile) 2>conftest.er1
bea8e651 40691 ac_status=$?
ac1cb8d3
VS
40692 grep -v '^ *+' conftest.er1 >conftest.err
40693 rm -f conftest.er1
40694 cat conftest.err >&5
bea8e651
MB
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); } &&
224bf05c 40697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40699 (eval $ac_try) 2>&5
40700 ac_status=$?
40701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702 (exit $ac_status); }; } &&
40703 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40705 (eval $ac_try) 2>&5
40706 ac_status=$?
40707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40708 (exit $ac_status); }; }; then
74b84332 40709 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40710 echo "$as_me:$LINENO: result: yes" >&5
40711echo "${ECHO_T}yes" >&6
40712else
40713 echo "$as_me: failed program was:" >&5
40714sed 's/^/| /' conftest.$ac_ext >&5
40715
40716echo "$as_me:$LINENO: result: no" >&5
40717echo "${ECHO_T}no" >&6
40718fi
ac1cb8d3 40719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40720 fi
40721 ;;
a848cd7e
SC
40722 esac
40723fi
74b84332 40724CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
40725
40726
40727SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
40728
40729
40730
40731
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761
40762
40763
40764
40765
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820
40821
40822
40823
40824
40825
74b84332 40826
224bf05c 40827
a848cd7e
SC
40828
40829
40830echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40831echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40832set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40833if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40834 echo $ECHO_N "(cached) $ECHO_C" >&6
40835else
40836 cat >conftest.make <<\_ACEOF
40837all:
40838 @echo 'ac_maketemp="$(MAKE)"'
40839_ACEOF
40840# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40841eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40842if test -n "$ac_maketemp"; then
40843 eval ac_cv_prog_make_${ac_make}_set=yes
40844else
40845 eval ac_cv_prog_make_${ac_make}_set=no
40846fi
40847rm -f conftest.make
40848fi
40849if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40850 echo "$as_me:$LINENO: result: yes" >&5
40851echo "${ECHO_T}yes" >&6
40852 SET_MAKE=
40853else
40854 echo "$as_me:$LINENO: result: no" >&5
40855echo "${ECHO_T}no" >&6
40856 SET_MAKE="MAKE=${MAKE-make}"
40857fi
40858
40859
40860if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
40861 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
40862fi
40863
40864 ac_config_headers="$ac_config_headers setup.h"
40865
40866
8708fa76 40867 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
a848cd7e
SC
40868
40869
40870 ac_config_commands="$ac_config_commands default"
40871
40872
40873
40874if test "$wxUSE_GUI" = "yes"; then
40875 SUBDIRS="samples demos utils contrib"
40876else SUBDIRS="samples utils"
40877fi
40878
40879
40880
40881# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
40882if test "${with_cppunit_prefix+set}" = set; then
40883 withval="$with_cppunit_prefix"
40884 cppunit_config_prefix="$withval"
40885else
40886 cppunit_config_prefix=""
40887fi;
40888
40889# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
40890if test "${with_cppunit_exec_prefix+set}" = set; then
40891 withval="$with_cppunit_exec_prefix"
40892 cppunit_config_exec_prefix="$withval"
40893else
40894 cppunit_config_exec_prefix=""
40895fi;
40896
40897 if test x$cppunit_config_exec_prefix != x ; then
40898 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
40899 if test x${CPPUNIT_CONFIG+set} != xset ; then
40900 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
40901 fi
40902 fi
40903 if test x$cppunit_config_prefix != x ; then
40904 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
40905 if test x${CPPUNIT_CONFIG+set} != xset ; then
40906 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
40907 fi
40908 fi
40909
40910 # Extract the first word of "cppunit-config", so it can be a program name with args.
40911set dummy cppunit-config; ac_word=$2
40912echo "$as_me:$LINENO: checking for $ac_word" >&5
40913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40914if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
40915 echo $ECHO_N "(cached) $ECHO_C" >&6
40916else
40917 case $CPPUNIT_CONFIG in
40918 [\\/]* | ?:[\\/]*)
40919 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
40920 ;;
40921 *)
40922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40923for as_dir in $PATH
40924do
40925 IFS=$as_save_IFS
40926 test -z "$as_dir" && as_dir=.
40927 for ac_exec_ext in '' $ac_executable_extensions; do
40928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40929 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40931 break 2
40932 fi
40933done
40934done
40935
40936 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
40937 ;;
40938esac
40939fi
40940CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
40941
40942if test -n "$CPPUNIT_CONFIG"; then
40943 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
40944echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
40945else
40946 echo "$as_me:$LINENO: result: no" >&5
40947echo "${ECHO_T}no" >&6
40948fi
40949
40950 cppunit_version_min=1.8.0
40951
40952 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
40953echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
40954 no_cppunit=""
40955 if test "$CPPUNIT_CONFIG" = "no" ; then
40956 no_cppunit=yes
224bf05c
VZ
40957 echo "$as_me:$LINENO: result: no" >&5
40958echo "${ECHO_T}no" >&6
a848cd7e
SC
40959 else
40960 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
40961 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
40962 cppunit_version=`$CPPUNIT_CONFIG --version`
40963
40964 cppunit_major_version=`echo $cppunit_version | \
40965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40966 cppunit_minor_version=`echo $cppunit_version | \
40967 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40968 cppunit_micro_version=`echo $cppunit_version | \
40969 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40970
40971 cppunit_major_min=`echo $cppunit_version_min | \
40972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40973 cppunit_minor_min=`echo $cppunit_version_min | \
40974 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40975 cppunit_micro_min=`echo $cppunit_version_min | \
40976 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40977
40978 cppunit_version_proper=`expr \
40979 $cppunit_major_version \> $cppunit_major_min \| \
40980 $cppunit_major_version \= $cppunit_major_min \& \
40981 $cppunit_minor_version \> $cppunit_minor_min \| \
40982 $cppunit_major_version \= $cppunit_major_min \& \
40983 $cppunit_minor_version \= $cppunit_minor_min \& \
40984 $cppunit_micro_version \>= $cppunit_micro_min `
40985
40986 if test "$cppunit_version_proper" = "1" ; then
40987 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
40988echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
40989 else
40990 echo "$as_me:$LINENO: result: no" >&5
40991echo "${ECHO_T}no" >&6
40992 no_cppunit=yes
40993 fi
40994 fi
40995
40996 if test "x$no_cppunit" = x ; then
c2218763 40997 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
40998 else
40999 CPPUNIT_CFLAGS=""
41000 CPPUNIT_LIBS=""
c2218763 41001 :
a848cd7e
SC
41002 fi
41003
41004
41005
41006
41007
41008for subdir in `echo $SUBDIRS`; do
41009 if test -d ${srcdir}/${subdir} ; then
41010 if test "$wxUSE_GUI" = "yes"; then
41011 if test ${subdir} = "samples"; then
41012 makefiles="samples/Makefile.in $makefiles"
41013 for sample in `echo $SAMPLES_SUBDIRS`; do
41014 if test -d $srcdir/samples/$sample; then
41015 makefiles="samples/$sample/Makefile.in $makefiles"
41016 fi
41017 done
41018 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41019 fi
41020 else if test ${subdir} = "samples"; then
41021 makefiles="samples/Makefile.in samples/console/Makefile.in"
41022 elif test ${subdir} = "utils"; then
41023 makefiles="utils/HelpGen/Makefile.in \
41024 utils/HelpGen/src/Makefile.in \
41025 utils/tex2rtf/Makefile.in \
41026 utils/tex2rtf/src/Makefile.in"
41027 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41028 fi
41029 fi
41030
41031 for mkin in $makefiles ; do
41032 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41033 ac_config_files="$ac_config_files $mk"
41034
41035 done
41036 fi
41037done
41038
41039
41040cat >confcache <<\_ACEOF
41041# This file is a shell script that caches the results of configure
41042# tests run on this system so they can be shared between configure
41043# scripts and configure runs, see configure's option --config-cache.
41044# It is not useful on other systems. If it contains results you don't
41045# want to keep, you may remove or edit it.
41046#
41047# config.status only pays attention to the cache file if you give it
41048# the --recheck option to rerun configure.
41049#
41050# `ac_cv_env_foo' variables (set or unset) will be overridden when
41051# loading this file, other *unset* `ac_cv_foo' will be assigned the
41052# following values.
41053
41054_ACEOF
41055
41056# The following way of writing the cache mishandles newlines in values,
41057# but we know of no workaround that is simple, portable, and efficient.
41058# So, don't put newlines in cache variables' values.
41059# Ultrix sh set writes to stderr and can't be redirected directly,
41060# and sets the high bit in the cache file unless we assign to the vars.
41061{
41062 (set) 2>&1 |
41063 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41064 *ac_space=\ *)
41065 # `set' does not quote correctly, so add quotes (double-quote
41066 # substitution turns \\\\ into \\, and sed turns \\ into \).
41067 sed -n \
ac1cb8d3
VS
41068 "s/'/'\\\\''/g;
41069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41070 ;;
41071 *)
41072 # `set' quotes correctly as required by POSIX, so do not add quotes.
41073 sed -n \
ac1cb8d3 41074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41075 ;;
41076 esac;
41077} |
41078 sed '
41079 t clear
41080 : clear
41081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41082 t end
41083 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41084 : end' >>confcache
41085if diff $cache_file confcache >/dev/null 2>&1; then :; else
41086 if test -w $cache_file; then
41087 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41088 cat confcache >$cache_file
41089 else
41090 echo "not updating unwritable cache $cache_file"
41091 fi
41092fi
41093rm -f confcache
41094
41095test "x$prefix" = xNONE && prefix=$ac_default_prefix
41096# Let make expand exec_prefix.
41097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41098
41099# VPATH may cause trouble with some makes, so we remove $(srcdir),
41100# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41101# trailing colons and then remove the whole line if VPATH becomes empty
41102# (actually we leave an empty line to preserve line numbers).
41103if test "x$srcdir" = x.; then
ac1cb8d3 41104 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41105s/:*\$(srcdir):*/:/;
41106s/:*\${srcdir}:*/:/;
41107s/:*@srcdir@:*/:/;
ac1cb8d3 41108s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41109s/:*$//;
ac1cb8d3 41110s/^[^=]*=[ ]*$//;
a848cd7e
SC
41111}'
41112fi
41113
41114DEFS=-DHAVE_CONFIG_H
41115
41116ac_libobjs=
41117ac_ltlibobjs=
41118for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41119 # 1. Remove the extension, and $U if already installed.
41120 ac_i=`echo "$ac_i" |
ac1cb8d3 41121 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41122 # 2. Add them.
41123 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41124 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41125done
41126LIBOBJS=$ac_libobjs
41127
41128LTLIBOBJS=$ac_ltlibobjs
41129
41130
41131
41132: ${CONFIG_STATUS=./config.status}
41133ac_clean_files_save=$ac_clean_files
41134ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41135{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41136echo "$as_me: creating $CONFIG_STATUS" >&6;}
41137cat >$CONFIG_STATUS <<_ACEOF
41138#! $SHELL
41139# Generated by $as_me.
41140# Run this file to recreate the current configuration.
41141# Compiler output produced by configure, useful for debugging
41142# configure, is in config.log if it exists.
41143
41144debug=false
41145ac_cs_recheck=false
41146ac_cs_silent=false
41147SHELL=\${CONFIG_SHELL-$SHELL}
41148_ACEOF
41149
41150cat >>$CONFIG_STATUS <<\_ACEOF
41151## --------------------- ##
41152## M4sh Initialization. ##
41153## --------------------- ##
41154
41155# Be Bourne compatible
41156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41157 emulate sh
41158 NULLCMD=:
41159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41160 # is contrary to our usage. Disable this feature.
41161 alias -g '${1+"$@"}'='"$@"'
41162elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41163 set -o posix
41164fi
ac1cb8d3 41165DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41166
41167# Support unset when possible.
ac1cb8d3 41168if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41169 as_unset=unset
41170else
41171 as_unset=false
41172fi
41173
41174
41175# Work around bugs in pre-3.0 UWIN ksh.
41176$as_unset ENV MAIL MAILPATH
41177PS1='$ '
41178PS2='> '
41179PS4='+ '
41180
41181# NLS nuisances.
41182for as_var in \
41183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41185 LC_TELEPHONE LC_TIME
41186do
ac1cb8d3 41187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41188 eval $as_var=C; export $as_var
41189 else
41190 $as_unset $as_var
41191 fi
41192done
41193
41194# Required to use basename.
41195if expr a : '\(a\)' >/dev/null 2>&1; then
41196 as_expr=expr
41197else
41198 as_expr=false
41199fi
41200
41201if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41202 as_basename=basename
41203else
41204 as_basename=false
41205fi
41206
41207
41208# Name of the executable.
41209as_me=`$as_basename "$0" ||
41210$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41211 X"$0" : 'X\(//\)$' \| \
41212 X"$0" : 'X\(/\)$' \| \
41213 . : '\(.\)' 2>/dev/null ||
41214echo X/"$0" |
41215 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41216 /^X\/\(\/\/\)$/{ s//\1/; q; }
41217 /^X\/\(\/\).*/{ s//\1/; q; }
41218 s/.*/./; q'`
41219
41220
41221# PATH needs CR, and LINENO needs CR and PATH.
41222# Avoid depending upon Character Ranges.
41223as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41224as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41225as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41226as_cr_digits='0123456789'
41227as_cr_alnum=$as_cr_Letters$as_cr_digits
41228
41229# The user is always right.
41230if test "${PATH_SEPARATOR+set}" != set; then
41231 echo "#! /bin/sh" >conf$$.sh
41232 echo "exit 0" >>conf$$.sh
41233 chmod +x conf$$.sh
41234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41235 PATH_SEPARATOR=';'
41236 else
41237 PATH_SEPARATOR=:
41238 fi
41239 rm -f conf$$.sh
41240fi
41241
41242
41243 as_lineno_1=$LINENO
41244 as_lineno_2=$LINENO
41245 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41246 test "x$as_lineno_1" != "x$as_lineno_2" &&
41247 test "x$as_lineno_3" = "x$as_lineno_2" || {
41248 # Find who we are. Look in the path if we contain no path at all
41249 # relative or not.
41250 case $0 in
41251 *[\\/]* ) as_myself=$0 ;;
41252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41253for as_dir in $PATH
41254do
41255 IFS=$as_save_IFS
41256 test -z "$as_dir" && as_dir=.
41257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41258done
41259
41260 ;;
41261 esac
41262 # We did not find ourselves, most probably we were run as `sh COMMAND'
41263 # in which case we are not to be found in the path.
41264 if test "x$as_myself" = x; then
41265 as_myself=$0
41266 fi
41267 if test ! -f "$as_myself"; then
41268 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41269echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41270 { (exit 1); exit 1; }; }
41271 fi
41272 case $CONFIG_SHELL in
41273 '')
41274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41275for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41276do
41277 IFS=$as_save_IFS
41278 test -z "$as_dir" && as_dir=.
41279 for as_base in sh bash ksh sh5; do
41280 case $as_dir in
41281 /*)
41282 if ("$as_dir/$as_base" -c '
41283 as_lineno_1=$LINENO
41284 as_lineno_2=$LINENO
41285 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41286 test "x$as_lineno_1" != "x$as_lineno_2" &&
41287 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41288 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41289 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41290 CONFIG_SHELL=$as_dir/$as_base
41291 export CONFIG_SHELL
41292 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41293 fi;;
41294 esac
41295 done
41296done
41297;;
41298 esac
41299
41300 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41301 # uniformly replaced by the line number. The first 'sed' inserts a
41302 # line-number line before each line; the second 'sed' does the real
41303 # work. The second script uses 'N' to pair each line-number line
41304 # with the numbered line, and appends trailing '-' during
41305 # substitution so that $LINENO is not a special case at line end.
41306 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41307 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41308 sed '=' <$as_myself |
41309 sed '
41310 N
41311 s,$,-,
41312 : loop
41313 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41314 t loop
41315 s,-$,,
41316 s,^['$as_cr_digits']*\n,,
41317 ' >$as_me.lineno &&
41318 chmod +x $as_me.lineno ||
41319 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41320echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41321 { (exit 1); exit 1; }; }
41322
41323 # Don't try to exec as it changes $[0], causing all sort of problems
41324 # (the dirname of $[0] is not the place where we might find the
41325 # original and so on. Autoconf is especially sensible to this).
41326 . ./$as_me.lineno
41327 # Exit status is that of the last command.
41328 exit
41329}
41330
41331
41332case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41333 *c*,-n*) ECHO_N= ECHO_C='
41334' ECHO_T=' ' ;;
41335 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41336 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41337esac
41338
41339if expr a : '\(a\)' >/dev/null 2>&1; then
41340 as_expr=expr
41341else
41342 as_expr=false
41343fi
41344
41345rm -f conf$$ conf$$.exe conf$$.file
41346echo >conf$$.file
41347if ln -s conf$$.file conf$$ 2>/dev/null; then
41348 # We could just check for DJGPP; but this test a) works b) is more generic
41349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41350 if test -f conf$$.exe; then
41351 # Don't use ln at all; we don't have any links
41352 as_ln_s='cp -p'
41353 else
41354 as_ln_s='ln -s'
41355 fi
41356elif ln conf$$.file conf$$ 2>/dev/null; then
41357 as_ln_s=ln
41358else
41359 as_ln_s='cp -p'
41360fi
41361rm -f conf$$ conf$$.exe conf$$.file
41362
41363if mkdir -p . 2>/dev/null; then
41364 as_mkdir_p=:
41365else
ac1cb8d3 41366 test -d ./-p && rmdir ./-p
a848cd7e
SC
41367 as_mkdir_p=false
41368fi
41369
41370as_executable_p="test -f"
41371
41372# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41373as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41374
41375# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41376as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41377
41378
41379# IFS
41380# We need space, tab and new line, in precisely that order.
41381as_nl='
41382'
41383IFS=" $as_nl"
41384
41385# CDPATH.
41386$as_unset CDPATH
41387
41388exec 6>&1
41389
41390# Open the log real soon, to keep \$[0] and so on meaningful, and to
41391# report actual input values of CONFIG_FILES etc. instead of their
41392# values after options handling. Logging --version etc. is OK.
41393exec 5>>config.log
41394{
41395 echo
41396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41397## Running $as_me. ##
41398_ASBOX
41399} >&5
41400cat >&5 <<_CSEOF
41401
77ffb593 41402This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41403generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41404
41405 CONFIG_FILES = $CONFIG_FILES
41406 CONFIG_HEADERS = $CONFIG_HEADERS
41407 CONFIG_LINKS = $CONFIG_LINKS
41408 CONFIG_COMMANDS = $CONFIG_COMMANDS
41409 $ $0 $@
41410
41411_CSEOF
41412echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41413echo >&5
41414_ACEOF
41415
41416# Files that config.status was made for.
41417if test -n "$ac_config_files"; then
41418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41419fi
41420
41421if test -n "$ac_config_headers"; then
41422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41423fi
41424
41425if test -n "$ac_config_links"; then
41426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41427fi
41428
41429if test -n "$ac_config_commands"; then
41430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41431fi
41432
41433cat >>$CONFIG_STATUS <<\_ACEOF
41434
41435ac_cs_usage="\
41436\`$as_me' instantiates files from templates according to the
41437current configuration.
41438
41439Usage: $0 [OPTIONS] [FILE]...
41440
41441 -h, --help print this help, then exit
41442 -V, --version print version number, then exit
41443 -q, --quiet do not print progress messages
41444 -d, --debug don't remove temporary files
41445 --recheck update $as_me by reconfiguring in the same conditions
41446 --file=FILE[:TEMPLATE]
ac1cb8d3 41447 instantiate the configuration file FILE
a848cd7e 41448 --header=FILE[:TEMPLATE]
ac1cb8d3 41449 instantiate the configuration header FILE
a848cd7e
SC
41450
41451Configuration files:
41452$config_files
41453
41454Configuration headers:
41455$config_headers
41456
41457Configuration commands:
41458$config_commands
41459
41460Report bugs to <bug-autoconf@gnu.org>."
41461_ACEOF
41462
41463cat >>$CONFIG_STATUS <<_ACEOF
41464ac_cs_version="\\
77ffb593 41465wxWidgets config.status 2.5.2
ac1cb8d3 41466configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41467 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41468
ac1cb8d3 41469Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41470This config.status script is free software; the Free Software Foundation
41471gives unlimited permission to copy, distribute and modify it."
41472srcdir=$srcdir
41473INSTALL="$INSTALL"
41474_ACEOF
41475
41476cat >>$CONFIG_STATUS <<\_ACEOF
41477# If no file are specified by the user, then we need to provide default
41478# value. By we need to know if files were specified by the user.
41479ac_need_defaults=:
41480while test $# != 0
41481do
41482 case $1 in
41483 --*=*)
41484 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41485 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41486 ac_shift=:
41487 ;;
41488 -*)
41489 ac_option=$1
41490 ac_optarg=$2
41491 ac_shift=shift
41492 ;;
41493 *) # This is not an option, so the user has probably given explicit
41494 # arguments.
41495 ac_option=$1
41496 ac_need_defaults=false;;
41497 esac
41498
41499 case $ac_option in
41500 # Handling of the options.
41501_ACEOF
41502cat >>$CONFIG_STATUS <<\_ACEOF
41503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41504 ac_cs_recheck=: ;;
41505 --version | --vers* | -V )
41506 echo "$ac_cs_version"; exit 0 ;;
41507 --he | --h)
41508 # Conflict between --help and --header
41509 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41510Try \`$0 --help' for more information." >&5
41511echo "$as_me: error: ambiguous option: $1
41512Try \`$0 --help' for more information." >&2;}
41513 { (exit 1); exit 1; }; };;
41514 --help | --hel | -h )
41515 echo "$ac_cs_usage"; exit 0 ;;
41516 --debug | --d* | -d )
41517 debug=: ;;
41518 --file | --fil | --fi | --f )
41519 $ac_shift
41520 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41521 ac_need_defaults=false;;
41522 --header | --heade | --head | --hea )
41523 $ac_shift
41524 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41525 ac_need_defaults=false;;
41526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41528 ac_cs_silent=: ;;
41529
41530 # This is an error.
41531 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41532Try \`$0 --help' for more information." >&5
41533echo "$as_me: error: unrecognized option: $1
41534Try \`$0 --help' for more information." >&2;}
41535 { (exit 1); exit 1; }; } ;;
41536
41537 *) ac_config_targets="$ac_config_targets $1" ;;
41538
41539 esac
41540 shift
41541done
41542
41543ac_configure_extra_args=
41544
41545if $ac_cs_silent; then
41546 exec 6>/dev/null
41547 ac_configure_extra_args="$ac_configure_extra_args --silent"
41548fi
41549
41550_ACEOF
41551cat >>$CONFIG_STATUS <<_ACEOF
41552if \$ac_cs_recheck; then
41553 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41554 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41555fi
41556
41557_ACEOF
41558
41559cat >>$CONFIG_STATUS <<_ACEOF
41560#
41561# INIT-COMMANDS section.
41562#
41563
41564
41565 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
48112931 41566 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
a848cd7e
SC
41567 LN_S="${LN_S}"
41568
41569
41570
41571_ACEOF
41572
41573
41574
41575cat >>$CONFIG_STATUS <<\_ACEOF
41576for ac_config_target in $ac_config_targets
41577do
41578 case "$ac_config_target" in
41579 # Handling of arguments.
41580 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
8708fa76 41581 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
a848cd7e
SC
41582 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41583 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41584 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41585 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41586 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41587 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41588echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41589 { (exit 1); exit 1; }; };;
41590 esac
41591done
41592
41593# If the user did not use the arguments to specify the items to instantiate,
41594# then the envvar interface is used. Set only those that are not.
41595# We use the long form for the default assignment because of an extremely
41596# bizarre bug on SunOS 4.1.3.
41597if $ac_need_defaults; then
41598 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41599 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41600 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41601fi
41602
41603# Have a temporary directory for convenience. Make it in the build tree
41604# simply because there is no reason to put it here, and in addition,
41605# creating and moving files from /tmp can sometimes cause problems.
41606# Create a temporary directory, and hook for its removal unless debugging.
41607$debug ||
41608{
41609 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41610 trap '{ (exit 1); exit 1; }' 1 2 13 15
41611}
41612
41613# Create a (secure) tmp directory for tmp files.
41614
41615{
41616 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41617 test -n "$tmp" && test -d "$tmp"
41618} ||
41619{
41620 tmp=./confstat$$-$RANDOM
41621 (umask 077 && mkdir $tmp)
41622} ||
41623{
41624 echo "$me: cannot create a temporary directory in ." >&2
41625 { (exit 1); exit 1; }
41626}
41627
41628_ACEOF
41629
41630cat >>$CONFIG_STATUS <<_ACEOF
41631
41632#
41633# CONFIG_FILES section.
41634#
41635
41636# No need to generate the scripts if there are no CONFIG_FILES.
41637# This happens for instance when ./config.status config.h
41638if test -n "\$CONFIG_FILES"; then
41639 # Protect against being on the right side of a sed subst in config.status.
41640 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41641 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41642s,@SHELL@,$SHELL,;t t
41643s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41644s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41645s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41646s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41647s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41648s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41649s,@exec_prefix@,$exec_prefix,;t t
41650s,@prefix@,$prefix,;t t
41651s,@program_transform_name@,$program_transform_name,;t t
41652s,@bindir@,$bindir,;t t
41653s,@sbindir@,$sbindir,;t t
41654s,@libexecdir@,$libexecdir,;t t
41655s,@datadir@,$datadir,;t t
41656s,@sysconfdir@,$sysconfdir,;t t
41657s,@sharedstatedir@,$sharedstatedir,;t t
41658s,@localstatedir@,$localstatedir,;t t
41659s,@libdir@,$libdir,;t t
41660s,@includedir@,$includedir,;t t
41661s,@oldincludedir@,$oldincludedir,;t t
41662s,@infodir@,$infodir,;t t
41663s,@mandir@,$mandir,;t t
41664s,@build_alias@,$build_alias,;t t
41665s,@host_alias@,$host_alias,;t t
41666s,@target_alias@,$target_alias,;t t
41667s,@DEFS@,$DEFS,;t t
41668s,@ECHO_C@,$ECHO_C,;t t
41669s,@ECHO_N@,$ECHO_N,;t t
41670s,@ECHO_T@,$ECHO_T,;t t
41671s,@LIBS@,$LIBS,;t t
41672s,@build@,$build,;t t
41673s,@build_cpu@,$build_cpu,;t t
41674s,@build_vendor@,$build_vendor,;t t
41675s,@build_os@,$build_os,;t t
41676s,@host@,$host,;t t
41677s,@host_cpu@,$host_cpu,;t t
41678s,@host_vendor@,$host_vendor,;t t
41679s,@host_os@,$host_os,;t t
41680s,@target@,$target,;t t
41681s,@target_cpu@,$target_cpu,;t t
41682s,@target_vendor@,$target_vendor,;t t
41683s,@target_os@,$target_os,;t t
41684s,@CC@,$CC,;t t
41685s,@CFLAGS@,$CFLAGS,;t t
41686s,@LDFLAGS@,$LDFLAGS,;t t
41687s,@CPPFLAGS@,$CPPFLAGS,;t t
41688s,@ac_ct_CC@,$ac_ct_CC,;t t
41689s,@EXEEXT@,$EXEEXT,;t t
41690s,@OBJEXT@,$OBJEXT,;t t
41691s,@CPP@,$CPP,;t t
41692s,@EGREP@,$EGREP,;t t
41693s,@CXX@,$CXX,;t t
41694s,@CXXFLAGS@,$CXXFLAGS,;t t
41695s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41696s,@RANLIB@,$RANLIB,;t t
41697s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41698s,@AR@,$AR,;t t
41699s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41700s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41701s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41702s,@STRIP@,$STRIP,;t t
41703s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41704s,@LN_S@,$LN_S,;t t
41705s,@CXXCPP@,$CXXCPP,;t t
41706s,@subdirs@,$subdirs,;t t
41707s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41708s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41709s,@GTK_LIBS@,$GTK_LIBS,;t t
41710s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41711s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41712s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41713s,@X_CFLAGS@,$X_CFLAGS,;t t
41714s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41715s,@X_LIBS@,$X_LIBS,;t t
41716s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41717s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41718s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41719s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41720s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41721s,@RESCOMP@,$RESCOMP,;t t
41722s,@DEREZ@,$DEREZ,;t t
41723s,@SETFILE@,$SETFILE,;t t
41724s,@LIBICONV@,$LIBICONV,;t t
41725s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41726s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41727s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41728s,@SDL_LIBS@,$SDL_LIBS,;t t
41729s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41730s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
41731s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
41732s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
41733s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
41734s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
41735s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
41736s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
41737s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
41738s,@VENDOR@,$VENDOR,;t t
41739s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
41740s,@WXUNIV@,$WXUNIV,;t t
41741s,@MONOLITHIC@,$MONOLITHIC,;t t
41742s,@USE_PLUGINS@,$USE_PLUGINS,;t t
41743s,@EXTRALIBS@,$EXTRALIBS,;t t
41744s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
41745s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
41746s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
41747s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
41748s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
41749s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
41750s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
41751s,@UNICODE@,$UNICODE,;t t
41752s,@BUILD@,$BUILD,;t t
41753s,@DEBUG_INFO@,$DEBUG_INFO,;t t
41754s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
41755s,@SHARED@,$SHARED,;t t
41756s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
41757s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
41758s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
41759s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
41760s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
41761s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
41762s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
41763s,@SET_MAKE@,$SET_MAKE,;t t
41764s,@MAKE_SET@,$MAKE_SET,;t t
41765s,@ac_ct_AR@,$ac_ct_AR,;t t
41766s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41767s,@NM@,$NM,;t t
41768s,@ac_ct_NM@,$ac_ct_NM,;t t
41769s,@INSTALL_DIR@,$INSTALL_DIR,;t t
41770s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
41771s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
41772s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
41773s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
41774s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
41775s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
41776s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
41777s,@SO_SUFFIX@,$SO_SUFFIX,;t t
41778s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
41779s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
41780s,@LIBPREFIX@,$LIBPREFIX,;t t
41781s,@LIBEXT@,$LIBEXT,;t t
41782s,@DLLPREFIX@,$DLLPREFIX,;t t
41783s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
41784s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
41785s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
41786s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
41787s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
41788s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
41789s,@PIC_FLAG@,$PIC_FLAG,;t t
41790s,@USE_SOVERSION@,$USE_SOVERSION,;t t
41791s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
41792s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
41793s,@USE_MACVERSION@,$USE_MACVERSION,;t t
41794s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
41795s,@SONAME_FLAG@,$SONAME_FLAG,;t t
41796s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
41797s,@GCC_PCH@,$GCC_PCH,;t t
41798s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
41799s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
41800s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
41801s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
41802s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
41803s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
41804s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
41805s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
41806s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
41807s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
41808s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
41809s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
41810s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
41811s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
41812s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
41813s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
41814s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
41815s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
41816s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
41817s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
41818s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
41819s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
41820s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
41821s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
41822s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
41823s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
41824s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
41825s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
41826s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
41827s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
41828s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
41829s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
41830s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
41831s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
41832s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
41833s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
41834s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
41835s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
41836s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
41837s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
41838s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
41839s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
41840s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
41841s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
41842s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
41843s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
41844s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
41845s,@COND_SHARED_0@,$COND_SHARED_0,;t t
41846s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
41847s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41848s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41849s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41850s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
41851s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
41852s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
41853s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
41854s,@COND_SHARED_1@,$COND_SHARED_1,;t t
41855s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
41856s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
41857s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
41858s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
41859s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
41860s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
41861s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
41862s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
41863s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
e835546c 41864s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
a848cd7e
SC
41865s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
41866s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
41867s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
41868s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
41869s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
41870s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
41871s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
41872s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
e835546c 41873s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
41874s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
41875s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
41876s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
e835546c 41877s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
3fd9c298
DE
41878s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
41879s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
41880s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
41881s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
41882s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
41883s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
41884s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
41885s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
41886s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
41887s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
41888s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
41889s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
41890s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41891s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41892s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41893s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
41894s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
41895s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
41896s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
41897s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
41898s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
41899s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
41900s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
41901s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
41902s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
41903s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
41904s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
41905s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
41906s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
41907s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
41908s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
41909s,@PATH_IFS@,$PATH_IFS,;t t
41910s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
41911s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
41912s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
224bf05c 41913s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t
a848cd7e
SC
41914s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
41915s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
41916s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
41917s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
41918s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
41919s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
41920s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
41921s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
41922s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
41923s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
41924s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
41925s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
41926s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
41927s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
41928s,@WX_ALL@,$WX_ALL,;t t
41929s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
41930s,@SHARED_LD@,$SHARED_LD,;t t
41931s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
41932s,@STATIC_FLAG@,$STATIC_FLAG,;t t
41933s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
41934s,@USE_GUI@,$USE_GUI,;t t
41935s,@AFMINSTALL@,$AFMINSTALL,;t t
41936s,@WIN32INSTALL@,$WIN32INSTALL,;t t
41937s,@TOOLKIT@,$TOOLKIT,;t t
41938s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
41939s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
41940s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
41941s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
41942s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
41943s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
41944s,@cross_compiling@,$cross_compiling,;t t
41945s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
41946s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
41947s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
41948s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
41949s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
41950s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
41951s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
41952s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
48112931 41953s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
a848cd7e 41954s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 41955s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
41956s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
41957s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
41958s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
41959s,@ALL_HEADERS@,$ALL_HEADERS,;t t
41960s,@ALL_SOURCES@,$ALL_SOURCES,;t t
41961s,@GUIDIST@,$GUIDIST,;t t
41962s,@PORT_FILES@,$PORT_FILES,;t t
41963s,@DISTDIR@,$DISTDIR,;t t
41964s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
41965s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
41966s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
41967s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
41968s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
41969s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
41970s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
41971s,@RESFLAGS@,$RESFLAGS,;t t
41972s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
41973s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
41974s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
41975s,@LIBWXMACRES@,$LIBWXMACRES,;t t
41976s,@MACRESCOMP@,$MACRESCOMP,;t t
41977s,@MACSETFILE@,$MACSETFILE,;t t
41978s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
41979s,@GCC@,$GCC,;t t
a848cd7e
SC
41980s,@DLLTOOL@,$DLLTOOL,;t t
41981s,@AS@,$AS,;t t
41982s,@LD@,$LD,;t t
41983s,@MAKEINFO@,$MAKEINFO,;t t
41984s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
41985s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
41986s,@LIBOBJS@,$LIBOBJS,;t t
41987s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41988CEOF
41989
41990_ACEOF
41991
41992 cat >>$CONFIG_STATUS <<\_ACEOF
41993 # Split the substitutions into bite-sized pieces for seds with
41994 # small command number limits, like on Digital OSF/1 and HP-UX.
41995 ac_max_sed_lines=48
41996 ac_sed_frag=1 # Number of current file.
41997 ac_beg=1 # First line for current file.
41998 ac_end=$ac_max_sed_lines # Line after last line for current file.
41999 ac_more_lines=:
42000 ac_sed_cmds=
42001 while $ac_more_lines; do
42002 if test $ac_beg -gt 1; then
42003 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42004 else
42005 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42006 fi
42007 if test ! -s $tmp/subs.frag; then
42008 ac_more_lines=false
42009 else
42010 # The purpose of the label and of the branching condition is to
42011 # speed up the sed processing (if there are no `@' at all, there
42012 # is no need to browse any of the substitutions).
42013 # These are the two extra sed commands mentioned above.
42014 (echo ':t
42015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42016 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42017 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42018 else
ac1cb8d3 42019 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42020 fi
42021 ac_sed_frag=`expr $ac_sed_frag + 1`
42022 ac_beg=$ac_end
42023 ac_end=`expr $ac_end + $ac_max_sed_lines`
42024 fi
42025 done
42026 if test -z "$ac_sed_cmds"; then
42027 ac_sed_cmds=cat
42028 fi
42029fi # test -n "$CONFIG_FILES"
42030
42031_ACEOF
42032cat >>$CONFIG_STATUS <<\_ACEOF
42033for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42035 case $ac_file in
42036 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42037 cat >$tmp/stdin
42038 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42040 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42042 * ) ac_file_in=$ac_file.in ;;
42043 esac
42044
42045 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42046 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42047$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42048 X"$ac_file" : 'X\(//\)[^/]' \| \
42049 X"$ac_file" : 'X\(//\)$' \| \
42050 X"$ac_file" : 'X\(/\)' \| \
42051 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42052echo X"$ac_file" |
42053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42055 /^X\(\/\/\)$/{ s//\1/; q; }
42056 /^X\(\/\).*/{ s//\1/; q; }
42057 s/.*/./; q'`
42058 { if $as_mkdir_p; then
42059 mkdir -p "$ac_dir"
42060 else
42061 as_dir="$ac_dir"
42062 as_dirs=
42063 while test ! -d "$as_dir"; do
42064 as_dirs="$as_dir $as_dirs"
42065 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42066$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42067 X"$as_dir" : 'X\(//\)[^/]' \| \
42068 X"$as_dir" : 'X\(//\)$' \| \
42069 X"$as_dir" : 'X\(/\)' \| \
42070 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42071echo X"$as_dir" |
42072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42074 /^X\(\/\/\)$/{ s//\1/; q; }
42075 /^X\(\/\).*/{ s//\1/; q; }
42076 s/.*/./; q'`
42077 done
42078 test ! -n "$as_dirs" || mkdir $as_dirs
42079 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42080echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42081 { (exit 1); exit 1; }; }; }
42082
42083 ac_builddir=.
42084
42085if test "$ac_dir" != .; then
42086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42087 # A "../" for each directory in $ac_dir_suffix.
42088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42089else
42090 ac_dir_suffix= ac_top_builddir=
42091fi
42092
42093case $srcdir in
42094 .) # No --srcdir option. We are building in place.
42095 ac_srcdir=.
42096 if test -z "$ac_top_builddir"; then
42097 ac_top_srcdir=.
42098 else
42099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42100 fi ;;
42101 [\\/]* | ?:[\\/]* ) # Absolute path.
42102 ac_srcdir=$srcdir$ac_dir_suffix;
42103 ac_top_srcdir=$srcdir ;;
42104 *) # Relative path.
42105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42107esac
ac1cb8d3
VS
42108
42109# Do not use `cd foo && pwd` to compute absolute paths, because
42110# the directories may not exist.
42111case `pwd` in
42112.) ac_abs_builddir="$ac_dir";;
42113*)
42114 case "$ac_dir" in
42115 .) ac_abs_builddir=`pwd`;;
42116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42118 esac;;
42119esac
42120case $ac_abs_builddir in
42121.) ac_abs_top_builddir=${ac_top_builddir}.;;
42122*)
42123 case ${ac_top_builddir}. in
42124 .) ac_abs_top_builddir=$ac_abs_builddir;;
42125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42127 esac;;
42128esac
42129case $ac_abs_builddir in
42130.) ac_abs_srcdir=$ac_srcdir;;
42131*)
42132 case $ac_srcdir in
42133 .) ac_abs_srcdir=$ac_abs_builddir;;
42134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42136 esac;;
42137esac
42138case $ac_abs_builddir in
42139.) ac_abs_top_srcdir=$ac_top_srcdir;;
42140*)
42141 case $ac_top_srcdir in
42142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42145 esac;;
42146esac
a848cd7e
SC
42147
42148
42149 case $INSTALL in
42150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42151 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42152 esac
42153
a848cd7e
SC
42154 # Let's still pretend it is `configure' which instantiates (i.e., don't
42155 # use $as_me), people would be surprised to read:
42156 # /* config.h. Generated by config.status. */
42157 if test x"$ac_file" = x-; then
42158 configure_input=
42159 else
42160 configure_input="$ac_file. "
42161 fi
42162 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42163 sed 's,.*/,,'` by configure."
a848cd7e
SC
42164
42165 # First look for the input files in the build tree, otherwise in the
42166 # src tree.
42167 ac_file_inputs=`IFS=:
42168 for f in $ac_file_in; do
42169 case $f in
42170 -) echo $tmp/stdin ;;
42171 [\\/$]*)
ac1cb8d3
VS
42172 # Absolute (can't be DOS-style, as IFS=:)
42173 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42174echo "$as_me: error: cannot find input file: $f" >&2;}
42175 { (exit 1); exit 1; }; }
ac1cb8d3 42176 echo "$f";;
a848cd7e 42177 *) # Relative
ac1cb8d3
VS
42178 if test -f "$f"; then
42179 # Build tree
42180 echo "$f"
42181 elif test -f "$srcdir/$f"; then
42182 # Source tree
42183 echo "$srcdir/$f"
42184 else
42185 # /dev/null tree
42186 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42187echo "$as_me: error: cannot find input file: $f" >&2;}
42188 { (exit 1); exit 1; }; }
ac1cb8d3 42189 fi;;
a848cd7e
SC
42190 esac
42191 done` || { (exit 1); exit 1; }
224bf05c
VZ
42192
42193 if test x"$ac_file" != x-; then
42194 { echo "$as_me:$LINENO: creating $ac_file" >&5
42195echo "$as_me: creating $ac_file" >&6;}
42196 rm -f "$ac_file"
42197 fi
a848cd7e
SC
42198_ACEOF
42199cat >>$CONFIG_STATUS <<_ACEOF
42200 sed "$ac_vpsub
42201$extrasub
42202_ACEOF
42203cat >>$CONFIG_STATUS <<\_ACEOF
42204:t
42205/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42206s,@configure_input@,$configure_input,;t t
42207s,@srcdir@,$ac_srcdir,;t t
42208s,@abs_srcdir@,$ac_abs_srcdir,;t t
42209s,@top_srcdir@,$ac_top_srcdir,;t t
42210s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42211s,@builddir@,$ac_builddir,;t t
42212s,@abs_builddir@,$ac_abs_builddir,;t t
42213s,@top_builddir@,$ac_top_builddir,;t t
42214s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42215s,@INSTALL@,$ac_INSTALL,;t t
42216" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42217 rm -f $tmp/stdin
42218 if test x"$ac_file" != x-; then
42219 mv $tmp/out $ac_file
42220 else
42221 cat $tmp/out
42222 rm -f $tmp/out
42223 fi
42224
42225done
42226_ACEOF
42227cat >>$CONFIG_STATUS <<\_ACEOF
42228
42229#
42230# CONFIG_HEADER section.
42231#
42232
42233# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42234# NAME is the cpp macro being defined and VALUE is the value it is being given.
42235#
42236# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42237ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42238ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42239ac_dC=' '
42240ac_dD=',;t'
42241# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42242ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42243ac_uB='$,\1#\2define\3'
42244ac_uC=' '
42245ac_uD=',;t'
42246
42247for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42249 case $ac_file in
42250 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42251 cat >$tmp/stdin
42252 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42254 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42256 * ) ac_file_in=$ac_file.in ;;
42257 esac
42258
42259 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42260echo "$as_me: creating $ac_file" >&6;}
42261
42262 # First look for the input files in the build tree, otherwise in the
42263 # src tree.
42264 ac_file_inputs=`IFS=:
42265 for f in $ac_file_in; do
42266 case $f in
42267 -) echo $tmp/stdin ;;
42268 [\\/$]*)
ac1cb8d3
VS
42269 # Absolute (can't be DOS-style, as IFS=:)
42270 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42271echo "$as_me: error: cannot find input file: $f" >&2;}
42272 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42273 # Do quote $f, to prevent DOS paths from being IFS'd.
42274 echo "$f";;
a848cd7e 42275 *) # Relative
ac1cb8d3
VS
42276 if test -f "$f"; then
42277 # Build tree
42278 echo "$f"
42279 elif test -f "$srcdir/$f"; then
42280 # Source tree
42281 echo "$srcdir/$f"
42282 else
42283 # /dev/null tree
42284 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42285echo "$as_me: error: cannot find input file: $f" >&2;}
42286 { (exit 1); exit 1; }; }
ac1cb8d3 42287 fi;;
a848cd7e
SC
42288 esac
42289 done` || { (exit 1); exit 1; }
42290 # Remove the trailing spaces.
ac1cb8d3 42291 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42292
42293_ACEOF
42294
42295# Transform confdefs.h into two sed scripts, `conftest.defines' and
42296# `conftest.undefs', that substitutes the proper values into
42297# config.h.in to produce config.h. The first handles `#define'
42298# templates, and the second `#undef' templates.
42299# And first: Protect against being on the right side of a sed subst in
42300# config.status. Protect against being in an unquoted here document
42301# in config.status.
42302rm -f conftest.defines conftest.undefs
42303# Using a here document instead of a string reduces the quoting nightmare.
42304# Putting comments in sed scripts is not portable.
42305#
42306# `end' is used to avoid that the second main sed command (meant for
42307# 0-ary CPP macros) applies to n-ary macro definitions.
42308# See the Autoconf documentation for `clear'.
42309cat >confdef2sed.sed <<\_ACEOF
42310s/[\\&,]/\\&/g
42311s,[\\$`],\\&,g
42312t clear
42313: clear
ac1cb8d3 42314s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42315t end
ac1cb8d3 42316s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42317: end
42318_ACEOF
42319# If some macros were called several times there might be several times
42320# the same #defines, which is useless. Nevertheless, we may not want to
42321# sort them, since we want the *last* AC-DEFINE to be honored.
42322uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42323sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42324rm -f confdef2sed.sed
42325
42326# This sed command replaces #undef with comments. This is necessary, for
42327# example, in the case of _POSIX_SOURCE, which is predefined and required
42328# on some systems where configure will not decide to define it.
42329cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42330s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42331_ACEOF
42332
42333# Break up conftest.defines because some shells have a limit on the size
42334# of here documents, and old seds have small limits too (100 cmds).
42335echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42336echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42337echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42338echo ' :' >>$CONFIG_STATUS
42339rm -f conftest.tail
42340while grep . conftest.defines >/dev/null
42341do
42342 # Write a limited-size here document to $tmp/defines.sed.
42343 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42344 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42345 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42346 # Work around the forget-to-reset-the-flag bug.
42347 echo 't clr' >>$CONFIG_STATUS
42348 echo ': clr' >>$CONFIG_STATUS
42349 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42350 echo 'CEOF
42351 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42352 rm -f $tmp/in
42353 mv $tmp/out $tmp/in
42354' >>$CONFIG_STATUS
42355 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42356 rm -f conftest.defines
42357 mv conftest.tail conftest.defines
42358done
42359rm -f conftest.defines
42360echo ' fi # grep' >>$CONFIG_STATUS
42361echo >>$CONFIG_STATUS
42362
42363# Break up conftest.undefs because some shells have a limit on the size
42364# of here documents, and old seds have small limits too (100 cmds).
42365echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42366rm -f conftest.tail
42367while grep . conftest.undefs >/dev/null
42368do
42369 # Write a limited-size here document to $tmp/undefs.sed.
42370 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42371 # Speed up: don't consider the non `#undef'
ac1cb8d3 42372 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42373 # Work around the forget-to-reset-the-flag bug.
42374 echo 't clr' >>$CONFIG_STATUS
42375 echo ': clr' >>$CONFIG_STATUS
42376 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42377 echo 'CEOF
42378 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42379 rm -f $tmp/in
42380 mv $tmp/out $tmp/in
42381' >>$CONFIG_STATUS
42382 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42383 rm -f conftest.undefs
42384 mv conftest.tail conftest.undefs
42385done
42386rm -f conftest.undefs
42387
42388cat >>$CONFIG_STATUS <<\_ACEOF
42389 # Let's still pretend it is `configure' which instantiates (i.e., don't
42390 # use $as_me), people would be surprised to read:
42391 # /* config.h. Generated by config.status. */
42392 if test x"$ac_file" = x-; then
42393 echo "/* Generated by configure. */" >$tmp/config.h
42394 else
42395 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42396 fi
42397 cat $tmp/in >>$tmp/config.h
42398 rm -f $tmp/in
42399 if test x"$ac_file" != x-; then
42400 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42401 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42402echo "$as_me: $ac_file is unchanged" >&6;}
42403 else
42404 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42405$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42406 X"$ac_file" : 'X\(//\)[^/]' \| \
42407 X"$ac_file" : 'X\(//\)$' \| \
42408 X"$ac_file" : 'X\(/\)' \| \
42409 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42410echo X"$ac_file" |
42411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42413 /^X\(\/\/\)$/{ s//\1/; q; }
42414 /^X\(\/\).*/{ s//\1/; q; }
42415 s/.*/./; q'`
42416 { if $as_mkdir_p; then
42417 mkdir -p "$ac_dir"
42418 else
42419 as_dir="$ac_dir"
42420 as_dirs=
42421 while test ! -d "$as_dir"; do
42422 as_dirs="$as_dir $as_dirs"
42423 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42424$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42425 X"$as_dir" : 'X\(//\)[^/]' \| \
42426 X"$as_dir" : 'X\(//\)$' \| \
42427 X"$as_dir" : 'X\(/\)' \| \
42428 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42429echo X"$as_dir" |
42430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42432 /^X\(\/\/\)$/{ s//\1/; q; }
42433 /^X\(\/\).*/{ s//\1/; q; }
42434 s/.*/./; q'`
42435 done
42436 test ! -n "$as_dirs" || mkdir $as_dirs
42437 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42438echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42439 { (exit 1); exit 1; }; }; }
42440
42441 rm -f $ac_file
42442 mv $tmp/config.h $ac_file
42443 fi
42444 else
42445 cat $tmp/config.h
42446 rm -f $tmp/config.h
42447 fi
42448done
42449_ACEOF
42450cat >>$CONFIG_STATUS <<\_ACEOF
42451
42452#
42453# CONFIG_COMMANDS section.
42454#
42455for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42456 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42457 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42458 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42459$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42460 X"$ac_dest" : 'X\(//\)[^/]' \| \
42461 X"$ac_dest" : 'X\(//\)$' \| \
42462 X"$ac_dest" : 'X\(/\)' \| \
42463 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42464echo X"$ac_dest" |
42465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42467 /^X\(\/\/\)$/{ s//\1/; q; }
42468 /^X\(\/\).*/{ s//\1/; q; }
42469 s/.*/./; q'`
ac1cb8d3
VS
42470 { if $as_mkdir_p; then
42471 mkdir -p "$ac_dir"
42472 else
42473 as_dir="$ac_dir"
42474 as_dirs=
42475 while test ! -d "$as_dir"; do
42476 as_dirs="$as_dir $as_dirs"
42477 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42478$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42479 X"$as_dir" : 'X\(//\)[^/]' \| \
42480 X"$as_dir" : 'X\(//\)$' \| \
42481 X"$as_dir" : 'X\(/\)' \| \
42482 . : '\(.\)' 2>/dev/null ||
42483echo X"$as_dir" |
42484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42486 /^X\(\/\/\)$/{ s//\1/; q; }
42487 /^X\(\/\).*/{ s//\1/; q; }
42488 s/.*/./; q'`
42489 done
42490 test ! -n "$as_dirs" || mkdir $as_dirs
42491 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42492echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42493 { (exit 1); exit 1; }; }; }
42494
a848cd7e
SC
42495 ac_builddir=.
42496
42497if test "$ac_dir" != .; then
42498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42499 # A "../" for each directory in $ac_dir_suffix.
42500 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42501else
42502 ac_dir_suffix= ac_top_builddir=
42503fi
42504
42505case $srcdir in
42506 .) # No --srcdir option. We are building in place.
42507 ac_srcdir=.
42508 if test -z "$ac_top_builddir"; then
42509 ac_top_srcdir=.
42510 else
42511 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42512 fi ;;
42513 [\\/]* | ?:[\\/]* ) # Absolute path.
42514 ac_srcdir=$srcdir$ac_dir_suffix;
42515 ac_top_srcdir=$srcdir ;;
42516 *) # Relative path.
42517 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42518 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42519esac
ac1cb8d3
VS
42520
42521# Do not use `cd foo && pwd` to compute absolute paths, because
42522# the directories may not exist.
42523case `pwd` in
42524.) ac_abs_builddir="$ac_dir";;
42525*)
42526 case "$ac_dir" in
42527 .) ac_abs_builddir=`pwd`;;
42528 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42529 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42530 esac;;
42531esac
42532case $ac_abs_builddir in
42533.) ac_abs_top_builddir=${ac_top_builddir}.;;
42534*)
42535 case ${ac_top_builddir}. in
42536 .) ac_abs_top_builddir=$ac_abs_builddir;;
42537 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42538 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42539 esac;;
42540esac
42541case $ac_abs_builddir in
42542.) ac_abs_srcdir=$ac_srcdir;;
42543*)
42544 case $ac_srcdir in
42545 .) ac_abs_srcdir=$ac_abs_builddir;;
42546 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42547 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42548 esac;;
42549esac
42550case $ac_abs_builddir in
42551.) ac_abs_top_srcdir=$ac_top_srcdir;;
42552*)
42553 case $ac_top_srcdir in
42554 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42555 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42556 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42557 esac;;
42558esac
a848cd7e
SC
42559
42560
42561 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42562echo "$as_me: executing $ac_dest commands" >&6;}
42563 case $ac_dest in
42564 default )
a848cd7e
SC
42565 if test ! -d lib; then
42566 mkdir lib
42567 fi
42568 if test ! -d lib/wx; then
42569 mkdir lib/wx
42570 fi
8708fa76
VS
42571 if test ! -d lib/wx/config; then
42572 mkdir lib/wx/config
42573 fi
a848cd7e
SC
42574 if test ! -d lib/wx/include; then
42575 mkdir lib/wx/include
42576 fi
42577 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42578 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42579 fi
42580 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42581 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42582 fi
42583 if test -f setup.h; then
42584 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42585 fi
8708fa76
VS
42586
42587 if test -f wx-config; then
42588 chmod +x wx-config
48112931 42589 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
a87bf378
VS
42590 ( cd lib/wx/config ;
42591 rm -f ${TOOLCHAIN_NAME}
42592 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
8708fa76 42593 fi
8708fa76
VS
42594 if test -f wx-config-wrapper; then
42595 chmod +x wx-config-wrapper
42596 mv -f wx-config-wrapper wx-config
b3de4970
VS
42597 rm -f wx${TOOLCHAIN_NAME}-config
42598 ${LN_S} wx-config wx${TOOLCHAIN_NAME}-config
8708fa76 42599 fi
a848cd7e
SC
42600 ;;
42601 esac
42602done
42603_ACEOF
42604
42605cat >>$CONFIG_STATUS <<\_ACEOF
42606
42607{ (exit 0); exit 0; }
42608_ACEOF
42609chmod +x $CONFIG_STATUS
42610ac_clean_files=$ac_clean_files_save
42611
42612
42613# configure is writing to config.log, and then calls config.status.
42614# config.status does its own redirection, appending to config.log.
42615# Unfortunately, on DOS this fails, as config.log is still kept open
42616# by configure, so config.status won't be able to write to it; its
42617# output is simply discarded. So we exec the FD to /dev/null,
42618# effectively closing config.log, so it can be properly (re)opened and
42619# appended to by config.status. When coming back to configure, we
42620# need to make the FD available again.
42621if test "$no_create" != yes; then
42622 ac_cs_success=:
42623 ac_config_status_args=
42624 test "$silent" = yes &&
42625 ac_config_status_args="$ac_config_status_args --quiet"
42626 exec 5>/dev/null
42627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42628 exec 5>>config.log
42629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42630 # would make configure fail if this is the last instruction.
42631 $ac_cs_success || { (exit 1); exit 1; }
42632fi
42633
42634#
42635# CONFIG_SUBDIRS section.
42636#
42637if test "$no_recursion" != yes; then
42638
42639 # Remove --cache-file and --srcdir arguments so they do not pile up.
42640 ac_sub_configure_args=
42641 ac_prev=
42642 for ac_arg in $ac_configure_args; do
42643 if test -n "$ac_prev"; then
42644 ac_prev=
42645 continue
42646 fi
42647 case $ac_arg in
42648 -cache-file | --cache-file | --cache-fil | --cache-fi \
42649 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42650 ac_prev=cache_file ;;
42651 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42652 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42653 | --c=*)
42654 ;;
42655 --config-cache | -C)
42656 ;;
42657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42658 ac_prev=srcdir ;;
42659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42660 ;;
42661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42662 ac_prev=prefix ;;
42663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42664 ;;
42665 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42666 esac
42667 done
42668
42669 # Always prepend --prefix to ensure using the same prefix
42670 # in subdir configurations.
42671 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42672
42673 ac_popdir=`pwd`
42674 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42675
42676 # Do not complain, so a configure script can configure whichever
42677 # parts of a large source tree are present.
42678 test -d $srcdir/$ac_dir || continue
42679
42680 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42681echo "$as_me: configuring in $ac_dir" >&6;}
42682 { if $as_mkdir_p; then
42683 mkdir -p "$ac_dir"
42684 else
42685 as_dir="$ac_dir"
42686 as_dirs=
42687 while test ! -d "$as_dir"; do
42688 as_dirs="$as_dir $as_dirs"
42689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42690$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42691 X"$as_dir" : 'X\(//\)[^/]' \| \
42692 X"$as_dir" : 'X\(//\)$' \| \
42693 X"$as_dir" : 'X\(/\)' \| \
42694 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42695echo X"$as_dir" |
42696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42698 /^X\(\/\/\)$/{ s//\1/; q; }
42699 /^X\(\/\).*/{ s//\1/; q; }
42700 s/.*/./; q'`
42701 done
42702 test ! -n "$as_dirs" || mkdir $as_dirs
42703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42704echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42705 { (exit 1); exit 1; }; }; }
42706
42707 ac_builddir=.
42708
42709if test "$ac_dir" != .; then
42710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42711 # A "../" for each directory in $ac_dir_suffix.
42712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42713else
42714 ac_dir_suffix= ac_top_builddir=
42715fi
42716
42717case $srcdir in
42718 .) # No --srcdir option. We are building in place.
42719 ac_srcdir=.
42720 if test -z "$ac_top_builddir"; then
42721 ac_top_srcdir=.
42722 else
42723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42724 fi ;;
42725 [\\/]* | ?:[\\/]* ) # Absolute path.
42726 ac_srcdir=$srcdir$ac_dir_suffix;
42727 ac_top_srcdir=$srcdir ;;
42728 *) # Relative path.
42729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42731esac
ac1cb8d3
VS
42732
42733# Do not use `cd foo && pwd` to compute absolute paths, because
42734# the directories may not exist.
42735case `pwd` in
42736.) ac_abs_builddir="$ac_dir";;
42737*)
42738 case "$ac_dir" in
42739 .) ac_abs_builddir=`pwd`;;
42740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42741 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42742 esac;;
42743esac
42744case $ac_abs_builddir in
42745.) ac_abs_top_builddir=${ac_top_builddir}.;;
42746*)
42747 case ${ac_top_builddir}. in
42748 .) ac_abs_top_builddir=$ac_abs_builddir;;
42749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42751 esac;;
42752esac
42753case $ac_abs_builddir in
42754.) ac_abs_srcdir=$ac_srcdir;;
42755*)
42756 case $ac_srcdir in
42757 .) ac_abs_srcdir=$ac_abs_builddir;;
42758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42760 esac;;
42761esac
42762case $ac_abs_builddir in
42763.) ac_abs_top_srcdir=$ac_top_srcdir;;
42764*)
42765 case $ac_top_srcdir in
42766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42769 esac;;
42770esac
a848cd7e
SC
42771
42772
42773 cd $ac_dir
42774
42775 # Check for guested configure; otherwise get Cygnus style configure.
42776 if test -f $ac_srcdir/configure.gnu; then
42777 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
42778 elif test -f $ac_srcdir/configure; then
42779 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
42780 elif test -f $ac_srcdir/configure.in; then
42781 ac_sub_configure=$ac_configure
42782 else
42783 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
42784echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42785 ac_sub_configure=
42786 fi
42787
42788 # The recursion is here.
42789 if test -n "$ac_sub_configure"; then
42790 # Make the cache file name correct relative to the subdirectory.
42791 case $cache_file in
42792 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42793 *) # Relative path.
ac1cb8d3 42794 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
42795 esac
42796
42797 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
42798echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42799 # The eval makes quoting arguments work.
42800 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
42801 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
42802 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
42803echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
42804 { (exit 1); exit 1; }; }
42805 fi
42806
224bf05c 42807 cd "$ac_popdir"
a848cd7e
SC
42808 done
42809fi
42810
42811
42812echo
77ffb593 42813echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 42814echo ""
77ffb593
JS
42815echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
42816echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 42817
77ffb593
JS
42818echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
42819echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
42820echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 42821
77ffb593
JS
42822echo " What level of wxWidgets compatibility should be enabled?"
42823echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
42824echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 42825
77ffb593 42826echo " Which libraries should wxWidgets use?"
a848cd7e
SC
42827echo " jpeg ${wxUSE_LIBJPEG-none}"
42828echo " png ${wxUSE_LIBPNG-none}"
42829echo " regex ${wxUSE_REGEX}"
42830echo " tiff ${wxUSE_LIBTIFF-none}"
42831if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
42832echo " xpm ${wxUSE_LIBXPM-none}"
42833fi
42834echo " zlib ${wxUSE_ZLIB}"
42835echo " odbc ${wxUSE_ODBC}"
42836echo " expat ${wxUSE_EXPAT}"
42837echo " libmspack ${wxUSE_LIBMSPACK}"
42838echo " sdl ${wxUSE_LIBSDL}"
42839
42840echo ""
42841