]> git.saurik.com Git - wxWidgets.git/blame - configure
Ensure we don't get an empty help menu on Mac
[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"
74b84332 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI 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 GCC_SEARCHES_USR_LOCAL_INCLUDE 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
646b6ec1 875 --enable-gtk2 use GTK+ 2.0 if available
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
a848cd7e
SC
894 --enable-rpath=DIR output the rpath flag from wx-config
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
8a7b1113 950 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
951 --enable-loggui use standard GUI logger
952 --enable-logwin use wxLogWindow
953 --enable-logdialog use wxLogDialog
646b6ec1 954 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
955 --enable-postscript use wxPostscriptDC device context (default for gtk+)
956 --enable-prologio not available; see contrib
957 --enable-resources not available; see contrib
958 --enable-clipboard use wxClipboard class
959 --enable-dnd use Drag'n'Drop classes
960 --enable-metafile use win32 metafiles
961 --enable-controls use all usual controls
962 --enable-accel use accelerators
963 --enable-button use wxButton class
964 --enable-bmpbutton use wxBitmapButton class
965 --enable-calendar use wxCalendarCtrl class
966 --enable-caret use wxCaret class
967 --enable-checkbox use wxCheckBox class
968 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
969 --enable-choice use wxChoice class
970 --enable-combobox use wxComboBox class
971 --enable-display use wxDisplay class
972 --enable-gauge use wxGauge class
973 --enable-grid use wxGrid class
974 --enable-imaglist use wxImageList class
975 --enable-listbook use wxListbook class
976 --enable-listbox use wxListBox class
977 --enable-listctrl use wxListCtrl class
978 --enable-notebook use wxNotebook class
979 --enable-radiobox use wxRadioBox class
980 --enable-radiobtn use wxRadioButton class
981 --enable-sash use wxSashWindow class
982 --enable-scrollbar use wxScrollBar class and scrollable windows
983 --enable-slider use wxSlider class
984 --enable-spinbtn use wxSpinButton class
985 --enable-spinctrl use wxSpinCtrl class
986 --enable-splitter use wxSplitterWindow class
987 --enable-statbmp use wxStaticBitmap class
988 --enable-statbox use wxStaticBox class
989 --enable-statline use wxStaticLine class
990 --enable-stattext use wxStaticText class
991 --enable-statusbar use wxStatusBar class
992 --enable-tabdialog use wxTabControl class
993 --enable-textctrl use wxTextCtrl class
994 --enable-togglebtn use wxToggleButton class
995 --enable-toolbar use wxToolBar class
996 --enable-tbarnative use native wxToolBar class
997 --enable-tbarsmpl use wxToolBarSimple class
998 --enable-treectrl use wxTreeCtrl class
999 --enable-tipwindow use wxTipWindow class
1000 --enable-popupwin use wxPopUpWindow class
1001 --enable-commondlg use all common dialogs
1002 --enable-choicedlg use wxChoiceDialog
1003 --enable-coldlg use wxColourDialog
1004 --enable-filedlg use wxFileDialog
1005 --enable-finddlg use wxFindReplaceDialog
1006 --enable-fontdlg use wxFontDialog
1007 --enable-dirdlg use wxDirDialog
1008 --enable-msgdlg use wxMessageDialog
1009 --enable-numberdlg use wxNumberEntryDialog
1010 --enable-splash use wxSplashScreen
1011 --enable-textdlg use wxTextDialog
1012 --enable-tipdlg use startup tips
1013 --enable-progressdlg use wxProgressDialog
1014 --enable-wizarddlg use wxWizard
1015 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1016 --enable-miniframe use wxMiniFrame class
1017 --enable-tooltips use wxToolTip class
1018 --enable-splines use spline drawing code
1019 --enable-validators use wxValidator and derived classes
1020 --enable-busyinfo use wxBusyInfo
1021 --enable-joystick use wxJoystick (Linux only)
1022 --enable-metafiles use wxMetaFile (Windows only)
1023 --enable-dragimage use wxDragImage
1024 --enable-accessibility enable accessibility support
1025 --enable-palette use wxPalette class
1026 --enable-image use wxImage class
1027 --enable-gif use gif images (GIF file format)
1028 --enable-pcx use pcx images (PCX file format)
1029 --enable-iff use iff images (IFF file format)
1030 --enable-pnm use pnm images (PNM file format)
1031 --enable-xpm use xpm images (XPM file format)
1032 --enable-icocur use Windows ICO and CUR formats
77ffb593 1033 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1034 --enable-vendor=VENDOR vendor name (win32 DLL only)
1035 --disable-largefile omit support for large files
1036 --disable-gtktest do not try to compile and run a test GTK+ program
1037 --disable-gtktest Do not try to compile and run a test GTK program
1038 --disable-sdltest Do not try to compile and run a test SDL program
1039 --enable-omf use OMF object format (OS/2)
1040 --disable-precomp-headers don't use precompiled headers even if compiler can
1041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gtk use GTK+
1046 --with-motif use Motif/Lesstif
1047 --with-mac use Mac OS X
1048 --with-cocoa use Cocoa
1049 --with-wine use Wine
1050 --with-msw use MS-Windows
1051 --with-pm use OS/2 Presentation Manager
1052 --with-mgl use SciTech MGL
1053 --with-microwin use MicroWindows
1054 --with-x11 use X11
1055 --with-libpng use libpng (PNG image format)
1056 --with-libjpeg use libjpeg (JPEG file format)
1057 --with-libtiff use libtiff (TIFF file format)
1058 --with-libxpm use libxpm (XPM file format)
1059 --with-libmspack use libmspack (CHM help files loading)
1060 --with-sdl use SDL for audio on Unix
1061 --with-opengl use OpenGL (or Mesa)
1062 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1063 --with-regex enable support for wxRegEx class
1064 --with-zlib use zlib for LZW compression
1065 --with-odbc use the IODBC and wxODBC classes
1066 --with-expat enable XML support using expat parser
1067 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1068 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1069 --with-x use the X Window System
1070 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1071 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1072 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1073 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1074 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1075
1076Some influential environment variables:
dcc1b6ad
VS
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CPP C preprocessor
1084 CXX C++ compiler command
1085 CXXFLAGS C++ compiler flags
1086 CXXCPP C++ preprocessor
a848cd7e
SC
1087
1088Use these variables to override the choices made by `configure' or to help
1089it to find libraries and programs with nonstandard names/locations.
1090
77ffb593 1091Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1092_ACEOF
1093fi
1094
1095if test "$ac_init_help" = "recursive"; then
1096 # If there are subdirs, report their specific --help.
1097 ac_popdir=`pwd`
1098 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099 test -d $ac_dir || continue
1100 ac_builddir=.
1101
1102if test "$ac_dir" != .; then
1103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104 # A "../" for each directory in $ac_dir_suffix.
1105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106else
1107 ac_dir_suffix= ac_top_builddir=
1108fi
1109
1110case $srcdir in
1111 .) # No --srcdir option. We are building in place.
1112 ac_srcdir=.
1113 if test -z "$ac_top_builddir"; then
1114 ac_top_srcdir=.
1115 else
1116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117 fi ;;
1118 [\\/]* | ?:[\\/]* ) # Absolute path.
1119 ac_srcdir=$srcdir$ac_dir_suffix;
1120 ac_top_srcdir=$srcdir ;;
1121 *) # Relative path.
1122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124esac
ac1cb8d3
VS
1125
1126# Do not use `cd foo && pwd` to compute absolute paths, because
1127# the directories may not exist.
1128case `pwd` in
1129.) ac_abs_builddir="$ac_dir";;
1130*)
1131 case "$ac_dir" in
1132 .) ac_abs_builddir=`pwd`;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135 esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_top_builddir=${ac_top_builddir}.;;
1139*)
1140 case ${ac_top_builddir}. in
1141 .) ac_abs_top_builddir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_srcdir=$ac_srcdir;;
1148*)
1149 case $ac_srcdir in
1150 .) ac_abs_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_top_srcdir=$ac_top_srcdir;;
1157*)
1158 case $ac_top_srcdir in
1159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1162 esac;;
1163esac
a848cd7e
SC
1164
1165 cd $ac_dir
1166 # Check for guested configure; otherwise get Cygnus style configure.
1167 if test -f $ac_srcdir/configure.gnu; then
1168 echo
1169 $SHELL $ac_srcdir/configure.gnu --help=recursive
1170 elif test -f $ac_srcdir/configure; then
1171 echo
1172 $SHELL $ac_srcdir/configure --help=recursive
1173 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1174 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1175 echo
1176 $ac_configure --help
1177 else
1178 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179 fi
dcc1b6ad 1180 cd $ac_popdir
a848cd7e
SC
1181 done
1182fi
1183
1184test -n "$ac_init_help" && exit 0
1185if $ac_init_version; then
1186 cat <<\_ACEOF
77ffb593 1187wxWidgets configure 2.5.2
ac1cb8d3 1188generated by GNU Autoconf 2.59
a848cd7e 1189
ac1cb8d3 1190Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1191This configure script is free software; the Free Software Foundation
1192gives unlimited permission to copy, distribute and modify it.
1193_ACEOF
1194 exit 0
1195fi
1196exec 5>config.log
1197cat >&5 <<_ACEOF
1198This file contains any messages produced by compilers while
1199running configure, to aid debugging if configure makes a mistake.
1200
77ffb593 1201It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1202generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1203
1204 $ $0 $@
1205
1206_ACEOF
1207{
1208cat <<_ASUNAME
1209## --------- ##
1210## Platform. ##
1211## --------- ##
1212
1213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218
1219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1221
1222/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1223/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1226/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1227/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1228/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1229
1230_ASUNAME
1231
1232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1233for as_dir in $PATH
1234do
1235 IFS=$as_save_IFS
1236 test -z "$as_dir" && as_dir=.
1237 echo "PATH: $as_dir"
1238done
1239
1240} >&5
1241
1242cat >&5 <<_ACEOF
1243
1244
1245## ----------- ##
1246## Core tests. ##
1247## ----------- ##
1248
1249_ACEOF
1250
1251
1252# Keep a trace of the command line.
1253# Strip out --no-create and --no-recursion so they do not pile up.
1254# Strip out --silent because we don't want to record it for future runs.
1255# Also quote any args containing shell meta-characters.
1256# Make two passes to allow for proper duplicate-argument suppression.
1257ac_configure_args=
1258ac_configure_args0=
1259ac_configure_args1=
1260ac_sep=
1261ac_must_keep_next=false
1262for ac_pass in 1 2
1263do
1264 for ac_arg
1265 do
1266 case $ac_arg in
1267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1270 continue ;;
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 esac
1274 case $ac_pass in
1275 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276 2)
1277 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278 if test $ac_must_keep_next = true; then
ac1cb8d3 1279 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1280 else
ac1cb8d3
VS
1281 case $ac_arg in
1282 *=* | --config-cache | -C | -disable-* | --disable-* \
1283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285 | -with-* | --with-* | -without-* | --without-* | --x)
1286 case "$ac_configure_args0 " in
1287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1288 esac
1289 ;;
1290 -* ) ac_must_keep_next=true ;;
1291 esac
a848cd7e
SC
1292 fi
1293 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294 # Get rid of the leading space.
1295 ac_sep=" "
1296 ;;
1297 esac
1298 done
1299done
1300$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302
1303# When interrupted or exit'd, cleanup temporary files, and complete
1304# config.log. We remove comments because anyway the quotes in there
1305# would cause problems or look ugly.
1306# WARNING: Be sure not to use single quotes in there, as some shells,
1307# such as our DU 5.0 friend, will then `close' the trap.
1308trap 'exit_status=$?
1309 # Save into config.log some information that might help in debugging.
1310 {
1311 echo
1312
1313 cat <<\_ASBOX
1314## ---------------- ##
1315## Cache variables. ##
1316## ---------------- ##
1317_ASBOX
1318 echo
1319 # The following way of writing the cache mishandles newlines in values,
1320{
1321 (set) 2>&1 |
1322 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1323 *ac_space=\ *)
1324 sed -n \
ac1cb8d3
VS
1325 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1327 ;;
1328 *)
1329 sed -n \
ac1cb8d3 1330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1331 ;;
1332 esac;
1333}
1334 echo
1335
1336 cat <<\_ASBOX
1337## ----------------- ##
1338## Output variables. ##
1339## ----------------- ##
1340_ASBOX
1341 echo
1342 for ac_var in $ac_subst_vars
1343 do
1344 eval ac_val=$`echo $ac_var`
1345 echo "$ac_var='"'"'$ac_val'"'"'"
1346 done | sort
1347 echo
1348
1349 if test -n "$ac_subst_files"; then
1350 cat <<\_ASBOX
1351## ------------- ##
1352## Output files. ##
1353## ------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_files
1357 do
1358 eval ac_val=$`echo $ac_var`
ac1cb8d3 1359 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1360 done | sort
1361 echo
1362 fi
1363
1364 if test -s confdefs.h; then
1365 cat <<\_ASBOX
1366## ----------- ##
1367## confdefs.h. ##
1368## ----------- ##
1369_ASBOX
1370 echo
1371 sed "/^$/d" confdefs.h | sort
1372 echo
1373 fi
1374 test "$ac_signal" != 0 &&
1375 echo "$as_me: caught signal $ac_signal"
1376 echo "$as_me: exit $exit_status"
1377 } >&5
ac1cb8d3 1378 rm -f core *.core &&
a848cd7e
SC
1379 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1380 exit $exit_status
1381 ' 0
1382for ac_signal in 1 2 13 15; do
1383 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1384done
1385ac_signal=0
1386
1387# confdefs.h avoids OS command line length limits that DEFS can exceed.
1388rm -rf conftest* confdefs.h
1389# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1390echo >confdefs.h
1391
1392# Predefined preprocessor variables.
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_NAME "$PACKAGE_NAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_VERSION "$PACKAGE_VERSION"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_STRING "$PACKAGE_STRING"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1416_ACEOF
1417
1418
1419# Let the site file select an alternate cache file if it wants to.
1420# Prefer explicitly selected file to automatically selected ones.
1421if test -z "$CONFIG_SITE"; then
1422 if test "x$prefix" != xNONE; then
1423 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424 else
1425 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426 fi
1427fi
1428for ac_site_file in $CONFIG_SITE; do
1429 if test -r "$ac_site_file"; then
1430 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431echo "$as_me: loading site script $ac_site_file" >&6;}
1432 sed 's/^/| /' "$ac_site_file" >&5
1433 . "$ac_site_file"
1434 fi
1435done
1436
1437if test -r "$cache_file"; then
1438 # Some versions of bash will fail to source /dev/null (special
1439 # files actually), so we avoid doing that.
1440 if test -f "$cache_file"; then
1441 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442echo "$as_me: loading cache $cache_file" >&6;}
1443 case $cache_file in
1444 [\\/]* | ?:[\\/]* ) . $cache_file;;
1445 *) . ./$cache_file;;
1446 esac
1447 fi
1448else
1449 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450echo "$as_me: creating cache $cache_file" >&6;}
1451 >$cache_file
1452fi
1453
1454# Check that the precious variables saved in the cache have kept the same
1455# value.
1456ac_cache_corrupted=false
1457for ac_var in `(set) 2>&1 |
ac1cb8d3 1458 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460 eval ac_new_set=\$ac_env_${ac_var}_set
1461 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462 eval ac_new_val="\$ac_env_${ac_var}_value"
1463 case $ac_old_set,$ac_new_set in
1464 set,)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,set)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,);;
1473 *)
1474 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1475 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1476echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1477 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1478echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1479 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1480echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1481 ac_cache_corrupted=:
a848cd7e
SC
1482 fi;;
1483 esac
1484 # Pass precious variables to config.status.
1485 if test "$ac_new_set" = set; then
1486 case $ac_new_val in
1487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 *) ac_arg=$ac_var=$ac_new_val ;;
1490 esac
1491 case " $ac_configure_args " in
1492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1493 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494 esac
1495 fi
1496done
1497if $ac_cache_corrupted; then
1498 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502 { (exit 1); exit 1; }; }
1503fi
1504
1505ac_ext=c
1506ac_cpp='$CPP $CPPFLAGS'
1507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540ac_aux_dir=
1541for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1554 fi
1555done
1556if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565# Make sure we can run config.sub.
1566$ac_config_sub sun4 >/dev/null 2>&1 ||
1567 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1568echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571echo "$as_me:$LINENO: checking build system type" >&5
1572echo $ECHO_N "checking build system type... $ECHO_C" >&6
1573if test "${ac_cv_build+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_build_alias=$build_alias
1577test -z "$ac_cv_build_alias" &&
1578 ac_cv_build_alias=`$ac_config_guess`
1579test -z "$ac_cv_build_alias" &&
1580 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1581echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1582 { (exit 1); exit 1; }; }
1583ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1585echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588fi
1589echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1590echo "${ECHO_T}$ac_cv_build" >&6
1591build=$ac_cv_build
1592build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597echo "$as_me:$LINENO: checking host system type" >&5
1598echo $ECHO_N "checking host system type... $ECHO_C" >&6
1599if test "${ac_cv_host+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_host_alias=$host_alias
1603test -z "$ac_cv_host_alias" &&
1604 ac_cv_host_alias=$ac_cv_build_alias
1605ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1607echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1609
1610fi
1611echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1612echo "${ECHO_T}$ac_cv_host" >&6
1613host=$ac_cv_host
1614host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617
1618
1619echo "$as_me:$LINENO: checking target system type" >&5
1620echo $ECHO_N "checking target system type... $ECHO_C" >&6
1621if test "${ac_cv_target+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623else
1624 ac_cv_target_alias=$target_alias
1625test "x$ac_cv_target_alias" = "x" &&
1626 ac_cv_target_alias=$ac_cv_host_alias
1627ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1629echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1631
1632fi
1633echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1634echo "${ECHO_T}$ac_cv_target" >&6
1635target=$ac_cv_target
1636target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641# The aliases save the names the user supplied, while $host etc.
1642# will get canonicalized.
1643test -n "$target_alias" &&
1644 test "$program_prefix$program_suffix$program_transform_name" = \
1645 NONENONEs,x,x, &&
1646 program_prefix=${target_alias}-
1647
1648
1649
1650WX_MAJOR_VERSION_NUMBER=2
1651WX_MINOR_VERSION_NUMBER=5
de59c161 1652WX_RELEASE_NUMBER=2
a848cd7e
SC
1653
1654WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1655WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1656
1657WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1658
de59c161 1659WX_CURRENT=2
a848cd7e
SC
1660WX_REVISION=0
1661WX_AGE=0
1662
1663
1664
1665USE_UNIX=1
1666USE_OS2=0
1667USE_WIN32=0
1668USE_DOS=0
1669USE_BEOS=0
1670USE_MAC=0
1671
1672USE_AIX=
1673USE_BSD= USE_DARWIN= USE_FREEBSD=
1674USE_GNU= USE_HPUX=
1675USE_LINUX=
1676USE_NETBSD=
1677USE_OPENBSD=
1678USE_OSF= USE_SGI=
1679USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1680USE_ULTRIX=
1681USE_UNIXWARE=
1682
1683USE_ALPHA=
1684
1685NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1686
1687ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1688
1689DEFAULT_wxUSE_COCOA=0
1690DEFAULT_wxUSE_GTK=0
1691DEFAULT_wxUSE_MAC=0
1692DEFAULT_wxUSE_MGL=0
1693DEFAULT_wxUSE_MICROWIN=0
1694DEFAULT_wxUSE_MOTIF=0
1695DEFAULT_wxUSE_MSW=0
1696DEFAULT_wxUSE_PM=0
1697DEFAULT_wxUSE_X11=0
1698
1699DEFAULT_DEFAULT_wxUSE_COCOA=0
1700DEFAULT_DEFAULT_wxUSE_GTK=0
1701DEFAULT_DEFAULT_wxUSE_MAC=0
1702DEFAULT_DEFAULT_wxUSE_MGL=0
1703DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1704DEFAULT_DEFAULT_wxUSE_MOTIF=0
1705DEFAULT_DEFAULT_wxUSE_MSW=0
1706DEFAULT_DEFAULT_wxUSE_PM=0
1707DEFAULT_DEFAULT_wxUSE_X11=0
1708
1709PROGRAM_EXT=
1710SO_SUFFIX=so
1711SAMPLES_RPATH_FLAG=
1712SAMPLES_RPATH_POSTLINK=
1713
1714case "${host}" in
1715 *-hp-hpux* )
1716 USE_HPUX=1
1717 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1718 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1719 SO_SUFFIX=sl
1720 cat >>confdefs.h <<\_ACEOF
1721#define __HPUX__ 1
1722_ACEOF
1723
1724 ;;
1725 *-*-linux* )
1726 USE_LINUX=1
1727 cat >>confdefs.h <<\_ACEOF
1728#define __LINUX__ 1
1729_ACEOF
1730
1731 TMP=`uname -m`
1732 if test "x$TMP" = "xalpha"; then
1733 USE_ALPHA=1
1734 cat >>confdefs.h <<\_ACEOF
1735#define __ALPHA__ 1
1736_ACEOF
1737
1738 fi
1739 DEFAULT_DEFAULT_wxUSE_GTK=1
1740 ;;
1741 *-*-gnu* | *-*-k*bsd*-gnu )
1742 USE_GNU=1
1743 TMP=`uname -m`
1744 if test "x$TMP" = "xalpha"; then
1745 USE_ALPHA=1
1746 cat >>confdefs.h <<\_ACEOF
1747#define __ALPHA__ 1
1748_ACEOF
1749
1750 fi
1751 DEFAULT_DEFAULT_wxUSE_GTK=1
1752 ;;
1753 *-*-irix5* | *-*-irix6* )
1754 USE_SGI=1
1755 USE_SVR4=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __SGI__ 1
1758_ACEOF
1759
1760 cat >>confdefs.h <<\_ACEOF
1761#define __SVR4__ 1
1762_ACEOF
1763
1764 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1765 ;;
1766 *-*-solaris2* )
1767 USE_SUN=1
1768 USE_SOLARIS=1
1769 USE_SVR4=1
1770 cat >>confdefs.h <<\_ACEOF
1771#define __SUN__ 1
1772_ACEOF
1773
1774 cat >>confdefs.h <<\_ACEOF
1775#define __SOLARIS__ 1
1776_ACEOF
1777
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SVR4__ 1
1780_ACEOF
1781
1782 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1783 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1784 ;;
1785 *-*-sunos4* )
1786 USE_SUN=1
1787 USE_SUNOS=1
1788 USE_BSD=1
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SUN__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SUNOS__ 1
1795_ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798#define __BSD__ 1
1799_ACEOF
1800
1801 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802 ;;
1803 *-*-freebsd*)
1804 USE_BSD=1
1805 USE_FREEBSD=1
1806 cat >>confdefs.h <<\_ACEOF
1807#define __FREEBSD__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __BSD__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_GTK=1
1815 ;;
1816 *-*-openbsd*)
1817 USE_BSD=1
1818 USE_OPENBSD=1
1819 cat >>confdefs.h <<\_ACEOF
1820#define __OPENBSD__ 1
1821_ACEOF
1822
1823 cat >>confdefs.h <<\_ACEOF
1824#define __BSD__ 1
1825_ACEOF
1826
1827 DEFAULT_DEFAULT_wxUSE_GTK=1
1828 ;;
1829 *-*-netbsd*)
1830 USE_BSD=1
1831 USE_NETBSD=1
1832 cat >>confdefs.h <<\_ACEOF
1833#define __NETBSD__ 1
1834_ACEOF
1835
1836 cat >>confdefs.h <<\_ACEOF
1837#define __BSD__ 1
1838_ACEOF
1839
1840 DEFAULT_DEFAULT_wxUSE_GTK=1
1841 ;;
1842 *-*-osf* )
1843 USE_ALPHA=1
1844 USE_OSF=1
1845 cat >>confdefs.h <<\_ACEOF
1846#define __ALPHA__ 1
1847_ACEOF
1848
1849 cat >>confdefs.h <<\_ACEOF
1850#define __OSF__ 1
1851_ACEOF
1852
1853 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1854 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1855 ;;
1856 *-*-dgux5* )
1857 USE_ALPHA=1
1858 USE_SVR4=1
1859 cat >>confdefs.h <<\_ACEOF
1860#define __ALPHA__ 1
1861_ACEOF
1862
1863 cat >>confdefs.h <<\_ACEOF
1864#define __SVR4__ 1
1865_ACEOF
1866
1867 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1868 ;;
1869 *-*-sysv5* )
1870 USE_SYSV=1
1871 USE_SVR4=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __SYSV__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SVR4__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 ;;
1882 *-*-aix* )
1883 USE_AIX=1
1884 USE_SYSV=1
1885 USE_SVR4=1
1886 SO_SUFFIX=a
1887 cat >>confdefs.h <<\_ACEOF
1888#define __AIX__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SYSV__ 1
1893_ACEOF
1894
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SVR4__ 1
1897_ACEOF
1898
1899 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1900 ;;
1901
1902 *-*-*UnixWare*)
1903 USE_SYSV=1
1904 USE_SVR4=1
1905 USE_UNIXWARE=1
1906 cat >>confdefs.h <<\_ACEOF
1907#define __UNIXWARE__ 1
1908_ACEOF
1909
1910 ;;
1911
1912 *-*-cygwin* | *-*-mingw32* )
1913 SO_SUFFIX=dll
1914 PROGRAM_EXT=".exe"
1915 RESCOMP=windres
1916 DEFAULT_DEFAULT_wxUSE_MSW=1
1917 ;;
1918
1919 *-pc-msdosdjgpp )
1920 USE_UNIX=0
1921 USE_DOS=1
1922 cat >>confdefs.h <<\_ACEOF
1923#define __DOS__ 1
1924_ACEOF
1925
1926 PROGRAM_EXT=".exe"
1927 DEFAULT_DEFAULT_wxUSE_MGL=1
1928 LIBS="$LIBS -lstdc++"
1929 ;;
1930
1931 *-pc-os2_emx | *-pc-os2-emx )
1932 cat >>confdefs.h <<\_ACEOF
1933#define __EMX__ 1
1934_ACEOF
1935
1936 USE_OS2=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __OS2__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_PM=1
1943 CXX=gcc
1944 LDFLAGS="$LDFLAGS -Zcrtdll"
1945 ac_executable_extensions=".exe"
1946 export ac_executable_extensions
1947 ac_save_IFS="$IFS"
1948 IFS='\\'
1949 ac_TEMP_PATH=
1950 for ac_dir in $PATH; do
1951 IFS=$ac_save_IFS
1952 if test -z "$ac_TEMP_PATH"; then
1953 ac_TEMP_PATH="$ac_dir"
1954 else
1955 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1956 fi
1957 done
1958 export PATH="$ac_TEMP_PATH"
1959 unset ac_TEMP_PATH
1960 ;;
1961
1962 powerpc-*-darwin* )
1963 USE_BSD=1
1964 USE_DARWIN=1
1965 SO_SUFFIX=dylib
1966 cat >>confdefs.h <<\_ACEOF
1967#define __BSD__ 1
1968_ACEOF
1969
1970 cat >>confdefs.h <<\_ACEOF
1971#define __DARWIN__ 1
1972_ACEOF
1973
1974 cat >>confdefs.h <<\_ACEOF
1975#define __POWERPC__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define TARGET_CARBON 1
1980_ACEOF
1981
1982 DEFAULT_DEFAULT_wxUSE_MAC=1
1983 ;;
1984
1985 *-*-beos* )
1986 USE_BEOS=1
1987 cat >>confdefs.h <<\_ACEOF
1988#define __BEOS__ 1
1989_ACEOF
1990
1991 ;;
1992
1993 *)
1994 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1995echo "$as_me: error: unknown system type ${host}." >&2;}
1996 { (exit 1); exit 1; }; }
1997esac
1998
1999
2000
2001
2002 wx_arg_cache_file="configarg.cache"
2003 echo "loading argument cache $wx_arg_cache_file"
2004 rm -f ${wx_arg_cache_file}.tmp
2005 touch ${wx_arg_cache_file}.tmp
2006 touch ${wx_arg_cache_file}
2007
2008
2009DEBUG_CONFIGURE=0
2010if test $DEBUG_CONFIGURE = 1; then
2011 DEFAULT_wxUSE_UNIVERSAL=no
2012 DEFAULT_wxUSE_STL=no
2013
2014 DEFAULT_wxUSE_NANOX=no
2015
2016 DEFAULT_wxUSE_THREADS=yes
2017
2018 DEFAULT_wxUSE_SHARED=yes
2019 DEFAULT_wxUSE_OPTIMISE=no
2020 DEFAULT_wxUSE_PROFILE=no
2021 DEFAULT_wxUSE_NO_DEPS=no
2022 DEFAULT_wxUSE_NO_RTTI=no
2023 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2024 DEFAULT_wxUSE_PERMISSIVE=no
2025 DEFAULT_wxUSE_DEBUG_FLAG=yes
2026 DEFAULT_wxUSE_DEBUG_INFO=yes
2027 DEFAULT_wxUSE_DEBUG_GDB=yes
2028 DEFAULT_wxUSE_MEM_TRACING=no
2029 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2030 DEFAULT_wxUSE_DMALLOC=no
2031 DEFAULT_wxUSE_APPLE_IEEE=no
2032
2033 DEFAULT_wxUSE_EXCEPTIONS=no
2034 DEFAULT_wxUSE_LOG=yes
2035 DEFAULT_wxUSE_LOGWINDOW=no
2036 DEFAULT_wxUSE_LOGGUI=no
2037 DEFAULT_wxUSE_LOGDIALOG=no
2038
2039 DEFAULT_wxUSE_GUI=yes
2040 DEFAULT_wxUSE_CONTROLS=no
2041
2042 DEFAULT_wxUSE_REGEX=no
2043 DEFAULT_wxUSE_XML=no
2044 DEFAULT_wxUSE_EXPAT=no
2045 DEFAULT_wxUSE_ZLIB=no
2046 DEFAULT_wxUSE_LIBPNG=no
2047 DEFAULT_wxUSE_LIBJPEG=no
2048 DEFAULT_wxUSE_LIBTIFF=no
2049 DEFAULT_wxUSE_LIBXPM=no
2050 DEFAULT_wxUSE_LIBMSPACK=no
2051 DEFAULT_wxUSE_LIBSDL=no
2052 DEFAULT_wxUSE_ODBC=no
2053 DEFAULT_wxUSE_OPENGL=no
2054
2055 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2056 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2057 DEFAULT_wxUSE_STD_IOSTREAM=no
2058 DEFAULT_wxUSE_CMDLINE_PARSER=no
2059 DEFAULT_wxUSE_DATETIME=no
2060 DEFAULT_wxUSE_TIMER=no
2061 DEFAULT_wxUSE_STOPWATCH=no
2062 DEFAULT_wxUSE_FILE=no
2063 DEFAULT_wxUSE_FFILE=no
2064 DEFAULT_wxUSE_TEXTBUFFER=no
2065 DEFAULT_wxUSE_TEXTFILE=no
2066 DEFAULT_wxUSE_SOUND=no
2067 DEFAULT_wxUSE_INTL=no
2068 DEFAULT_wxUSE_CONFIG=no
2069 DEFAULT_wxUSE_FONTMAP=no
2070 DEFAULT_wxUSE_STREAMS=no
2071 DEFAULT_wxUSE_SOCKETS=no
2072 DEFAULT_wxUSE_OLE=no
2073 DEFAULT_wxUSE_DATAOBJ=no
2074 DEFAULT_wxUSE_DIALUP_MANAGER=no
2075 DEFAULT_wxUSE_JOYSTICK=no
2076 DEFAULT_wxUSE_DYNLIB_CLASS=no
2077 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2078 DEFAULT_wxUSE_LONGLONG=no
2079 DEFAULT_wxUSE_GEOMETRY=no
2080
2081 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2082 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2083 DEFAULT_wxUSE_POSTSCRIPT=no
2084
2085 DEFAULT_wxUSE_CLIPBOARD=no
2086 DEFAULT_wxUSE_TOOLTIPS=no
2087 DEFAULT_wxUSE_DRAG_AND_DROP=no
2088 DEFAULT_wxUSE_DRAGIMAGE=no
2089 DEFAULT_wxUSE_SPLINES=no
2090
8a7b1113 2091 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2092 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2093 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2094 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2095
2096 DEFAULT_wxUSE_RESOURCES=no
2097 DEFAULT_wxUSE_CONSTRAINTS=no
2098 DEFAULT_wxUSE_IPC=no
2099 DEFAULT_wxUSE_HELP=no
2100 DEFAULT_wxUSE_MS_HTML_HELP=no
2101 DEFAULT_wxUSE_WXHTML_HELP=no
2102 DEFAULT_wxUSE_TREELAYOUT=no
2103 DEFAULT_wxUSE_METAFILE=no
2104 DEFAULT_wxUSE_MIMETYPE=no
2105 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2106 DEFAULT_wxUSE_PROTOCOL=no
2107 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2108 DEFAULT_wxUSE_PROTOCOL_FTP=no
2109 DEFAULT_wxUSE_PROTOCOL_FILE=no
2110 DEFAULT_wxUSE_URL=no
2111
2112 DEFAULT_wxUSE_COMMONDLGS=no
2113 DEFAULT_wxUSE_CHOICEDLG=no
2114 DEFAULT_wxUSE_COLOURDLG=no
2115 DEFAULT_wxUSE_DIRDLG=no
2116 DEFAULT_wxUSE_FILEDLG=no
2117 DEFAULT_wxUSE_FINDREPLDLG=no
2118 DEFAULT_wxUSE_FONTDLG=no
2119 DEFAULT_wxUSE_MSGDLG=no
2120 DEFAULT_wxUSE_NUMBERDLG=no
2121 DEFAULT_wxUSE_TEXTDLG=no
2122 DEFAULT_wxUSE_SPLASH=no
2123 DEFAULT_wxUSE_STARTUP_TIPS=no
2124 DEFAULT_wxUSE_PROGRESSDLG=no
2125 DEFAULT_wxUSE_WIZARDDLG=no
2126
2127 DEFAULT_wxUSE_MENUS=no
2128 DEFAULT_wxUSE_MINIFRAME=no
2129 DEFAULT_wxUSE_HTML=no
646b6ec1 2130 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2131 DEFAULT_wxUSE_FILESYSTEM=no
2132 DEFAULT_wxUSE_FS_INET=no
2133 DEFAULT_wxUSE_FS_ZIP=no
2134 DEFAULT_wxUSE_BUSYINFO=no
2135 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2136 DEFAULT_wxUSE_VALIDATORS=no
2137
2138 DEFAULT_wxUSE_ACCEL=no
2139 DEFAULT_wxUSE_BUTTON=no
2140 DEFAULT_wxUSE_BMPBUTTON=no
2141 DEFAULT_wxUSE_CALCTRL=no
2142 DEFAULT_wxUSE_CARET=no
2143 DEFAULT_wxUSE_CHECKBOX=no
2144 DEFAULT_wxUSE_CHECKLST=no
2145 DEFAULT_wxUSE_CHOICE=no
2146 DEFAULT_wxUSE_COMBOBOX=no
2147 DEFAULT_wxUSE_DISPLAY=no
2148 DEFAULT_wxUSE_GAUGE=no
2149 DEFAULT_wxUSE_GRID=no
2150 DEFAULT_wxUSE_IMAGLIST=no
2151 DEFAULT_wxUSE_LISTBOOK=no
2152 DEFAULT_wxUSE_LISTBOX=no
2153 DEFAULT_wxUSE_LISTCTRL=no
2154 DEFAULT_wxUSE_NOTEBOOK=no
2155 DEFAULT_wxUSE_RADIOBOX=no
2156 DEFAULT_wxUSE_RADIOBTN=no
2157 DEFAULT_wxUSE_SASH=no
2158 DEFAULT_wxUSE_SCROLLBAR=no
2159 DEFAULT_wxUSE_SLIDER=no
2160 DEFAULT_wxUSE_SPINBTN=no
2161 DEFAULT_wxUSE_SPINCTRL=no
2162 DEFAULT_wxUSE_SPLITTER=no
2163 DEFAULT_wxUSE_STATBMP=no
2164 DEFAULT_wxUSE_STATBOX=no
2165 DEFAULT_wxUSE_STATLINE=no
2166 DEFAULT_wxUSE_STATTEXT=no
2167 DEFAULT_wxUSE_STATUSBAR=yes
2168 DEFAULT_wxUSE_TABDIALOG=no
2169 DEFAULT_wxUSE_TEXTCTRL=no
2170 DEFAULT_wxUSE_TOGGLEBTN=no
2171 DEFAULT_wxUSE_TOOLBAR=no
2172 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2173 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2174 DEFAULT_wxUSE_TREECTRL=no
2175 DEFAULT_wxUSE_POPUPWIN=no
2176 DEFAULT_wxUSE_TIPWINDOW=no
2177
2178 DEFAULT_wxUSE_UNICODE=no
2179 DEFAULT_wxUSE_UNICODE_MSLU=no
2180 DEFAULT_wxUSE_WCSRTOMBS=no
2181
2182 DEFAULT_wxUSE_PALETTE=no
2183 DEFAULT_wxUSE_IMAGE=no
2184 DEFAULT_wxUSE_GIF=no
2185 DEFAULT_wxUSE_PCX=no
2186 DEFAULT_wxUSE_PNM=no
2187 DEFAULT_wxUSE_IFF=no
2188 DEFAULT_wxUSE_XPM=no
2189 DEFAULT_wxUSE_ICO_CUR=no
2190 DEFAULT_wxUSE_ACCESSIBILITY=no
2191
2192 DEFAULT_wxUSE_MONOLITHIC=no
2193 DEFAULT_wxUSE_PLUGINS=no
2194 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2195else
2196 DEFAULT_wxUSE_UNIVERSAL=no
2197 DEFAULT_wxUSE_STL=no
2198
2199 DEFAULT_wxUSE_NANOX=no
2200
2201 DEFAULT_wxUSE_THREADS=yes
2202
2203 DEFAULT_wxUSE_SHARED=yes
2204 DEFAULT_wxUSE_OPTIMISE=yes
2205 DEFAULT_wxUSE_PROFILE=no
2206 DEFAULT_wxUSE_NO_DEPS=no
2207 DEFAULT_wxUSE_NO_RTTI=no
2208 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2209 DEFAULT_wxUSE_PERMISSIVE=no
2210 DEFAULT_wxUSE_DEBUG_FLAG=no
2211 DEFAULT_wxUSE_DEBUG_INFO=no
2212 DEFAULT_wxUSE_DEBUG_GDB=no
2213 DEFAULT_wxUSE_MEM_TRACING=no
2214 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2215 DEFAULT_wxUSE_DMALLOC=no
2216 DEFAULT_wxUSE_APPLE_IEEE=yes
2217
2218 DEFAULT_wxUSE_EXCEPTIONS=yes
2219 DEFAULT_wxUSE_LOG=yes
2220 DEFAULT_wxUSE_LOGWINDOW=yes
2221 DEFAULT_wxUSE_LOGGUI=yes
2222 DEFAULT_wxUSE_LOGDIALOG=yes
2223
2224 DEFAULT_wxUSE_GUI=yes
2225
2226 DEFAULT_wxUSE_REGEX=yes
2227 DEFAULT_wxUSE_XML=yes
2228 DEFAULT_wxUSE_EXPAT=yes
2229 DEFAULT_wxUSE_ZLIB=yes
2230 DEFAULT_wxUSE_LIBPNG=yes
2231 DEFAULT_wxUSE_LIBJPEG=yes
2232 DEFAULT_wxUSE_LIBTIFF=yes
2233 DEFAULT_wxUSE_LIBXPM=yes
2234 DEFAULT_wxUSE_LIBMSPACK=yes
2235 DEFAULT_wxUSE_LIBSDL=no
2236 DEFAULT_wxUSE_ODBC=no
2237 DEFAULT_wxUSE_OPENGL=no
2238
2239 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2240 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2241 DEFAULT_wxUSE_STD_IOSTREAM=no
2242 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2243 DEFAULT_wxUSE_DATETIME=yes
2244 DEFAULT_wxUSE_TIMER=yes
2245 DEFAULT_wxUSE_STOPWATCH=yes
2246 DEFAULT_wxUSE_FILE=yes
2247 DEFAULT_wxUSE_FFILE=yes
2248 DEFAULT_wxUSE_TEXTBUFFER=yes
2249 DEFAULT_wxUSE_TEXTFILE=yes
2250 DEFAULT_wxUSE_SOUND=yes
2251 DEFAULT_wxUSE_INTL=yes
2252 DEFAULT_wxUSE_CONFIG=yes
2253 DEFAULT_wxUSE_FONTMAP=yes
2254 DEFAULT_wxUSE_STREAMS=yes
2255 DEFAULT_wxUSE_SOCKETS=yes
2256 DEFAULT_wxUSE_OLE=yes
2257 DEFAULT_wxUSE_DATAOBJ=yes
2258 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2259 DEFAULT_wxUSE_JOYSTICK=yes
2260 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2261 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2262 DEFAULT_wxUSE_LONGLONG=yes
2263 DEFAULT_wxUSE_GEOMETRY=yes
2264
2265 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2266 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2267 DEFAULT_wxUSE_POSTSCRIPT=yes
2268
2269 DEFAULT_wxUSE_CLIPBOARD=yes
2270 DEFAULT_wxUSE_TOOLTIPS=yes
2271 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2272 DEFAULT_wxUSE_DRAGIMAGE=yes
2273 DEFAULT_wxUSE_SPLINES=yes
2274
8a7b1113 2275 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2276 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2277 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2278 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2279
2280 DEFAULT_wxUSE_RESOURCES=no
2281 DEFAULT_wxUSE_CONSTRAINTS=yes
2282 DEFAULT_wxUSE_IPC=yes
2283 DEFAULT_wxUSE_HELP=yes
2284 DEFAULT_wxUSE_MS_HTML_HELP=yes
2285 DEFAULT_wxUSE_WXHTML_HELP=yes
2286 DEFAULT_wxUSE_TREELAYOUT=yes
2287 DEFAULT_wxUSE_METAFILE=yes
2288 DEFAULT_wxUSE_MIMETYPE=yes
2289 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2290 DEFAULT_wxUSE_PROTOCOL=yes
2291 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2292 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2293 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2294 DEFAULT_wxUSE_URL=yes
2295
2296 DEFAULT_wxUSE_COMMONDLGS=yes
2297 DEFAULT_wxUSE_CHOICEDLG=yes
2298 DEFAULT_wxUSE_COLOURDLG=yes
2299 DEFAULT_wxUSE_DIRDLG=yes
2300 DEFAULT_wxUSE_FILEDLG=yes
2301 DEFAULT_wxUSE_FINDREPLDLG=yes
2302 DEFAULT_wxUSE_FONTDLG=yes
2303 DEFAULT_wxUSE_MSGDLG=yes
2304 DEFAULT_wxUSE_NUMBERDLG=yes
2305 DEFAULT_wxUSE_TEXTDLG=yes
2306 DEFAULT_wxUSE_SPLASH=yes
2307 DEFAULT_wxUSE_STARTUP_TIPS=yes
2308 DEFAULT_wxUSE_PROGRESSDLG=yes
2309 DEFAULT_wxUSE_WIZARDDLG=yes
2310
2311 DEFAULT_wxUSE_MENUS=yes
2312 DEFAULT_wxUSE_MINIFRAME=yes
2313 DEFAULT_wxUSE_HTML=yes
646b6ec1 2314 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_FILESYSTEM=yes
2316 DEFAULT_wxUSE_FS_INET=yes
2317 DEFAULT_wxUSE_FS_ZIP=yes
2318 DEFAULT_wxUSE_BUSYINFO=yes
2319 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2320 DEFAULT_wxUSE_VALIDATORS=yes
2321
2322 DEFAULT_wxUSE_ACCEL=yes
2323 DEFAULT_wxUSE_BUTTON=yes
2324 DEFAULT_wxUSE_BMPBUTTON=yes
2325 DEFAULT_wxUSE_CALCTRL=yes
2326 DEFAULT_wxUSE_CARET=yes
2327 DEFAULT_wxUSE_CHECKBOX=yes
2328 DEFAULT_wxUSE_CHECKLST=yes
2329 DEFAULT_wxUSE_CHOICE=yes
2330 DEFAULT_wxUSE_COMBOBOX=yes
2331 DEFAULT_wxUSE_DISPLAY=yes
2332 DEFAULT_wxUSE_GAUGE=yes
2333 DEFAULT_wxUSE_GRID=yes
2334 DEFAULT_wxUSE_IMAGLIST=yes
2335 DEFAULT_wxUSE_LISTBOOK=yes
2336 DEFAULT_wxUSE_LISTBOX=yes
2337 DEFAULT_wxUSE_LISTCTRL=yes
2338 DEFAULT_wxUSE_NOTEBOOK=yes
2339 DEFAULT_wxUSE_RADIOBOX=yes
2340 DEFAULT_wxUSE_RADIOBTN=yes
2341 DEFAULT_wxUSE_SASH=yes
2342 DEFAULT_wxUSE_SCROLLBAR=yes
2343 DEFAULT_wxUSE_SLIDER=yes
2344 DEFAULT_wxUSE_SPINBTN=yes
2345 DEFAULT_wxUSE_SPINCTRL=yes
2346 DEFAULT_wxUSE_SPLITTER=yes
2347 DEFAULT_wxUSE_STATBMP=yes
2348 DEFAULT_wxUSE_STATBOX=yes
2349 DEFAULT_wxUSE_STATLINE=yes
2350 DEFAULT_wxUSE_STATTEXT=yes
2351 DEFAULT_wxUSE_STATUSBAR=yes
2352 DEFAULT_wxUSE_TABDIALOG=no
2353 DEFAULT_wxUSE_TEXTCTRL=yes
2354 DEFAULT_wxUSE_TOGGLEBTN=yes
2355 DEFAULT_wxUSE_TOOLBAR=yes
2356 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2357 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2358 DEFAULT_wxUSE_TREECTRL=yes
2359 DEFAULT_wxUSE_POPUPWIN=yes
2360 DEFAULT_wxUSE_TIPWINDOW=yes
2361
2362 DEFAULT_wxUSE_UNICODE=no
2363 DEFAULT_wxUSE_UNICODE_MSLU=yes
2364 DEFAULT_wxUSE_WCSRTOMBS=no
2365
2366 DEFAULT_wxUSE_PALETTE=yes
2367 DEFAULT_wxUSE_IMAGE=yes
2368 DEFAULT_wxUSE_GIF=yes
2369 DEFAULT_wxUSE_PCX=yes
2370 DEFAULT_wxUSE_IFF=no
2371 DEFAULT_wxUSE_PNM=yes
2372 DEFAULT_wxUSE_XPM=yes
2373 DEFAULT_wxUSE_ICO_CUR=yes
2374 DEFAULT_wxUSE_ACCESSIBILITY=no
2375
2376 DEFAULT_wxUSE_MONOLITHIC=no
2377 DEFAULT_wxUSE_PLUGINS=no
2378 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2379fi
2380
2381
2382
2383for toolkit in `echo $ALL_TOOLKITS`; do
2384 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2385 if test "x$LINE" != "x" ; then
2386 has_toolkit_in_cache=1
2387 eval "DEFAULT_$LINE"
2388 eval "CACHE_$toolkit=1"
2389 fi
2390done
2391
2392
2393
2394 enablestring=
2395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2396echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2397 no_cache=0
2398 # Check whether --enable-gui or --disable-gui was given.
2399if test "${enable_gui+set}" = set; then
2400 enableval="$enable_gui"
2401
2402 if test "$enableval" = yes; then
2403 ac_cv_use_gui='wxUSE_GUI=yes'
2404 else
2405 ac_cv_use_gui='wxUSE_GUI=no'
2406 fi
2407
2408else
2409
2410 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2411 if test "x$LINE" != x ; then
2412 eval "DEFAULT_$LINE"
2413 else
2414 no_cache=1
2415 fi
2416
2417 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2418
2419fi;
2420
2421 eval "$ac_cv_use_gui"
2422 if test "$no_cache" != 1; then
2423 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2424 fi
2425
2426 if test "$wxUSE_GUI" = yes; then
2427 echo "$as_me:$LINENO: result: yes" >&5
2428echo "${ECHO_T}yes" >&6
2429 else
2430 echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6
2432 fi
2433
2434
2435 enablestring=
2436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2437echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2438 no_cache=0
2439 # Check whether --enable-monolithic or --disable-monolithic was given.
2440if test "${enable_monolithic+set}" = set; then
2441 enableval="$enable_monolithic"
2442
2443 if test "$enableval" = yes; then
2444 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2445 else
2446 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2447 fi
2448
2449else
2450
2451 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2452 if test "x$LINE" != x ; then
2453 eval "DEFAULT_$LINE"
2454 else
2455 no_cache=1
2456 fi
2457
2458 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2459
2460fi;
2461
2462 eval "$ac_cv_use_monolithic"
2463 if test "$no_cache" != 1; then
2464 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2465 fi
2466
2467 if test "$wxUSE_MONOLITHIC" = yes; then
2468 echo "$as_me:$LINENO: result: yes" >&5
2469echo "${ECHO_T}yes" >&6
2470 else
2471 echo "$as_me:$LINENO: result: no" >&5
2472echo "${ECHO_T}no" >&6
2473 fi
2474
2475
2476 enablestring=
2477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2478echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2479 no_cache=0
2480 # Check whether --enable-plugins or --disable-plugins was given.
2481if test "${enable_plugins+set}" = set; then
2482 enableval="$enable_plugins"
2483
2484 if test "$enableval" = yes; then
2485 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2486 else
2487 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2488 fi
2489
2490else
2491
2492 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2493 if test "x$LINE" != x ; then
2494 eval "DEFAULT_$LINE"
2495 else
2496 no_cache=1
2497 fi
2498
2499 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2500
2501fi;
2502
2503 eval "$ac_cv_use_plugins"
2504 if test "$no_cache" != 1; then
2505 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2506 fi
2507
2508 if test "$wxUSE_PLUGINS" = yes; then
2509 echo "$as_me:$LINENO: result: yes" >&5
2510echo "${ECHO_T}yes" >&6
2511 else
2512 echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6
2514 fi
2515
2516
2517if test "$wxUSE_GUI" = "yes"; then
2518
2519
2520 enablestring=
2521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2522echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2523 no_cache=0
2524 # Check whether --enable-universal or --disable-universal was given.
2525if test "${enable_universal+set}" = set; then
2526 enableval="$enable_universal"
2527
2528 if test "$enableval" = yes; then
2529 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2530 else
2531 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2532 fi
2533
2534else
2535
2536 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2544
2545fi;
2546
2547 eval "$ac_cv_use_universal"
2548 if test "$no_cache" != 1; then
2549 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2550 fi
2551
2552 if test "$wxUSE_UNIVERSAL" = yes; then
2553 echo "$as_me:$LINENO: result: yes" >&5
2554echo "${ECHO_T}yes" >&6
2555 else
2556 echo "$as_me:$LINENO: result: no" >&5
2557echo "${ECHO_T}no" >&6
2558 fi
2559
2560
2561# Check whether --with-gtk or --without-gtk was given.
2562if test "${with_gtk+set}" = set; then
2563 withval="$with_gtk"
2564 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2565fi;
2566
2567# Check whether --with-motif or --without-motif was given.
2568if test "${with_motif+set}" = set; then
2569 withval="$with_motif"
2570 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2571fi;
2572
2573# Check whether --with-mac or --without-mac was given.
2574if test "${with_mac+set}" = set; then
2575 withval="$with_mac"
2576 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2577fi;
2578
2579# Check whether --with-cocoa or --without-cocoa was given.
2580if test "${with_cocoa+set}" = set; then
2581 withval="$with_cocoa"
2582 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2583fi;
2584
2585# Check whether --with-wine or --without-wine was given.
2586if test "${with_wine+set}" = set; then
2587 withval="$with_wine"
2588 wxUSE_WINE="$withval" CACHE_WINE=1
2589fi;
2590
2591# Check whether --with-msw or --without-msw was given.
2592if test "${with_msw+set}" = set; then
2593 withval="$with_msw"
2594 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2595fi;
2596
2597# Check whether --with-pm or --without-pm was given.
2598if test "${with_pm+set}" = set; then
2599 withval="$with_pm"
2600 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2601fi;
2602
2603# Check whether --with-mgl or --without-mgl was given.
2604if test "${with_mgl+set}" = set; then
2605 withval="$with_mgl"
2606 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2607fi;
2608
2609# Check whether --with-microwin or --without-microwin was given.
2610if test "${with_microwin+set}" = set; then
2611 withval="$with_microwin"
2612 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2613fi;
2614
2615# Check whether --with-x11 or --without-x11 was given.
2616if test "${with_x11+set}" = set; then
2617 withval="$with_x11"
2618 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2619fi;
2620
2621 enablestring=
2622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2623echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2624 no_cache=0
2625 # Check whether --enable-nanox or --disable-nanox was given.
2626if test "${enable_nanox+set}" = set; then
2627 enableval="$enable_nanox"
2628
2629 if test "$enableval" = yes; then
2630 ac_cv_use_nanox='wxUSE_NANOX=yes'
2631 else
2632 ac_cv_use_nanox='wxUSE_NANOX=no'
2633 fi
2634
2635else
2636
2637 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2638 if test "x$LINE" != x ; then
2639 eval "DEFAULT_$LINE"
2640 else
2641 no_cache=1
2642 fi
2643
2644 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2645
2646fi;
2647
2648 eval "$ac_cv_use_nanox"
2649 if test "$no_cache" != 1; then
2650 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2651 fi
2652
2653 if test "$wxUSE_NANOX" = yes; then
2654 echo "$as_me:$LINENO: result: yes" >&5
2655echo "${ECHO_T}yes" >&6
2656 else
2657 echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6
2659 fi
2660
2661
2662
2663 enablestring=
2664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2665echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2666 no_cache=0
2667 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2668if test "${enable_gtk2+set}" = set; then
2669 enableval="$enable_gtk2"
2670
2671 if test "$enableval" = yes; then
2672 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2673 else
2674 ac_cv_use_gtk2='wxUSE_GTK2=no'
2675 fi
2676
2677else
2678
2679 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2680 if test "x$LINE" != x ; then
2681 eval "DEFAULT_$LINE"
2682 else
2683 no_cache=1
2684 fi
2685
2686 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2687
2688fi;
2689
2690 eval "$ac_cv_use_gtk2"
2691 if test "$no_cache" != 1; then
2692 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2693 fi
2694
2695 if test "$wxUSE_GTK2" = yes; then
2696 echo "$as_me:$LINENO: result: yes" >&5
2697echo "${ECHO_T}yes" >&6
2698 else
2699 echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6
2701 fi
2702
2703
2704 enablestring=
2705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2706echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2707 no_cache=0
2708 # Check whether --enable-gpe or --disable-gpe was given.
2709if test "${enable_gpe+set}" = set; then
2710 enableval="$enable_gpe"
2711
2712 if test "$enableval" = yes; then
2713 ac_cv_use_gpe='wxUSE_GPE=yes'
2714 else
2715 ac_cv_use_gpe='wxUSE_GPE=no'
2716 fi
2717
2718else
2719
2720 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2721 if test "x$LINE" != x ; then
2722 eval "DEFAULT_$LINE"
2723 else
2724 no_cache=1
2725 fi
2726
2727 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2728
2729fi;
2730
2731 eval "$ac_cv_use_gpe"
2732 if test "$no_cache" != 1; then
2733 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2734 fi
2735
2736 if test "$wxUSE_GPE" = yes; then
2737 echo "$as_me:$LINENO: result: yes" >&5
2738echo "${ECHO_T}yes" >&6
2739 else
2740 echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6
2742 fi
2743
2744
2745
2746 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2747echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2748 no_cache=0
2749
2750# Check whether --with-libpng or --without-libpng was given.
2751if test "${with_libpng+set}" = set; then
2752 withval="$with_libpng"
2753
2754 if test "$withval" = yes; then
2755 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2756 elif test "$withval" = no; then
2757 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2758 elif test "$withval" = sys; then
2759 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2760 elif test "$withval" = builtin; then
2761 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2762 else
2763 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2764echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2765 { (exit 1); exit 1; }; }
2766 fi
2767
2768else
2769
2770 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2771 if test "x$LINE" != x ; then
2772 eval "DEFAULT_$LINE"
2773 else
2774 no_cache=1
2775 fi
2776
2777 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2778
2779fi;
2780
2781 eval "$ac_cv_use_libpng"
2782 if test "$no_cache" != 1; then
2783 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2784 fi
2785
2786 if test "$wxUSE_LIBPNG" = yes; then
2787 echo "$as_me:$LINENO: result: yes" >&5
2788echo "${ECHO_T}yes" >&6
2789 elif test "$wxUSE_LIBPNG" = no; then
2790 echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6
2792 elif test "$wxUSE_LIBPNG" = sys; then
2793 echo "$as_me:$LINENO: result: system version" >&5
2794echo "${ECHO_T}system version" >&6
2795 elif test "$wxUSE_LIBPNG" = builtin; then
2796 echo "$as_me:$LINENO: result: builtin version" >&5
2797echo "${ECHO_T}builtin version" >&6
2798 else
2799 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2800echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2801 { (exit 1); exit 1; }; }
2802 fi
2803
2804
2805 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2806echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2807 no_cache=0
2808
2809# Check whether --with-libjpeg or --without-libjpeg was given.
2810if test "${with_libjpeg+set}" = set; then
2811 withval="$with_libjpeg"
2812
2813 if test "$withval" = yes; then
2814 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2815 elif test "$withval" = no; then
2816 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2817 elif test "$withval" = sys; then
2818 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2819 elif test "$withval" = builtin; then
2820 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2821 else
2822 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2823echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2824 { (exit 1); exit 1; }; }
2825 fi
2826
2827else
2828
2829 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2837
2838fi;
2839
2840 eval "$ac_cv_use_libjpeg"
2841 if test "$no_cache" != 1; then
2842 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2843 fi
2844
2845 if test "$wxUSE_LIBJPEG" = yes; then
2846 echo "$as_me:$LINENO: result: yes" >&5
2847echo "${ECHO_T}yes" >&6
2848 elif test "$wxUSE_LIBJPEG" = no; then
2849 echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6
2851 elif test "$wxUSE_LIBJPEG" = sys; then
2852 echo "$as_me:$LINENO: result: system version" >&5
2853echo "${ECHO_T}system version" >&6
2854 elif test "$wxUSE_LIBJPEG" = builtin; then
2855 echo "$as_me:$LINENO: result: builtin version" >&5
2856echo "${ECHO_T}builtin version" >&6
2857 else
2858 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2859echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2860 { (exit 1); exit 1; }; }
2861 fi
2862
2863
2864 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2865echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2866 no_cache=0
2867
2868# Check whether --with-libtiff or --without-libtiff was given.
2869if test "${with_libtiff+set}" = set; then
2870 withval="$with_libtiff"
2871
2872 if test "$withval" = yes; then
2873 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2874 elif test "$withval" = no; then
2875 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2876 elif test "$withval" = sys; then
2877 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2878 elif test "$withval" = builtin; then
2879 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2880 else
2881 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2882echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2883 { (exit 1); exit 1; }; }
2884 fi
2885
2886else
2887
2888 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2889 if test "x$LINE" != x ; then
2890 eval "DEFAULT_$LINE"
2891 else
2892 no_cache=1
2893 fi
2894
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2896
2897fi;
2898
2899 eval "$ac_cv_use_libtiff"
2900 if test "$no_cache" != 1; then
2901 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2902 fi
2903
2904 if test "$wxUSE_LIBTIFF" = yes; then
2905 echo "$as_me:$LINENO: result: yes" >&5
2906echo "${ECHO_T}yes" >&6
2907 elif test "$wxUSE_LIBTIFF" = no; then
2908 echo "$as_me:$LINENO: result: no" >&5
2909echo "${ECHO_T}no" >&6
2910 elif test "$wxUSE_LIBTIFF" = sys; then
2911 echo "$as_me:$LINENO: result: system version" >&5
2912echo "${ECHO_T}system version" >&6
2913 elif test "$wxUSE_LIBTIFF" = builtin; then
2914 echo "$as_me:$LINENO: result: builtin version" >&5
2915echo "${ECHO_T}builtin version" >&6
2916 else
2917 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2918echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2919 { (exit 1); exit 1; }; }
2920 fi
2921
2922
2923 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2924echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2925 no_cache=0
2926
2927# Check whether --with-libxpm or --without-libxpm was given.
2928if test "${with_libxpm+set}" = set; then
2929 withval="$with_libxpm"
2930
2931 if test "$withval" = yes; then
2932 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2933 elif test "$withval" = no; then
2934 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2935 elif test "$withval" = sys; then
2936 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2937 elif test "$withval" = builtin; then
2938 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2939 else
2940 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2941echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2942 { (exit 1); exit 1; }; }
2943 fi
2944
2945else
2946
2947 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2948 if test "x$LINE" != x ; then
2949 eval "DEFAULT_$LINE"
2950 else
2951 no_cache=1
2952 fi
2953
2954 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2955
2956fi;
2957
2958 eval "$ac_cv_use_libxpm"
2959 if test "$no_cache" != 1; then
2960 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2961 fi
2962
2963 if test "$wxUSE_LIBXPM" = yes; then
2964 echo "$as_me:$LINENO: result: yes" >&5
2965echo "${ECHO_T}yes" >&6
2966 elif test "$wxUSE_LIBXPM" = no; then
2967 echo "$as_me:$LINENO: result: no" >&5
2968echo "${ECHO_T}no" >&6
2969 elif test "$wxUSE_LIBXPM" = sys; then
2970 echo "$as_me:$LINENO: result: system version" >&5
2971echo "${ECHO_T}system version" >&6
2972 elif test "$wxUSE_LIBXPM" = builtin; then
2973 echo "$as_me:$LINENO: result: builtin version" >&5
2974echo "${ECHO_T}builtin version" >&6
2975 else
2976 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2977echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2978 { (exit 1); exit 1; }; }
2979 fi
2980
2981
2982 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2983echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2984 no_cache=0
2985
2986# Check whether --with-libmspack or --without-libmspack was given.
2987if test "${with_libmspack+set}" = set; then
2988 withval="$with_libmspack"
2989
2990 if test "$withval" = yes; then
2991 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2992 else
2993 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2994 fi
2995
2996else
2997
2998 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2999 if test "x$LINE" != x ; then
3000 eval "DEFAULT_$LINE"
3001 else
3002 no_cache=1
3003 fi
3004
3005 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3006
3007fi;
3008
3009 eval "$ac_cv_use_libmspack"
3010 if test "$no_cache" != 1; then
3011 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3012 fi
3013
3014 if test "$wxUSE_LIBMSPACK" = yes; then
3015 echo "$as_me:$LINENO: result: yes" >&5
3016echo "${ECHO_T}yes" >&6
3017 else
3018 echo "$as_me:$LINENO: result: no" >&5
3019echo "${ECHO_T}no" >&6
3020 fi
3021
3022
3023 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3024echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3025 no_cache=0
3026
3027# Check whether --with-sdl or --without-sdl was given.
3028if test "${with_sdl+set}" = set; then
3029 withval="$with_sdl"
3030
3031 if test "$withval" = yes; then
3032 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3033 else
3034 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3035 fi
3036
3037else
3038
3039 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3047
3048fi;
3049
3050 eval "$ac_cv_use_sdl"
3051 if test "$no_cache" != 1; then
3052 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3053 fi
3054
3055 if test "$wxUSE_LIBSDL" = yes; then
3056 echo "$as_me:$LINENO: result: yes" >&5
3057echo "${ECHO_T}yes" >&6
3058 else
3059 echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
3061 fi
3062
3063
3064 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3065echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3066 no_cache=0
3067
3068# Check whether --with-opengl or --without-opengl was given.
3069if test "${with_opengl+set}" = set; then
3070 withval="$with_opengl"
3071
3072 if test "$withval" = yes; then
3073 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3074 else
3075 ac_cv_use_opengl='wxUSE_OPENGL=no'
3076 fi
3077
3078else
3079
3080 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3088
3089fi;
3090
3091 eval "$ac_cv_use_opengl"
3092 if test "$no_cache" != 1; then
3093 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3094 fi
3095
3096 if test "$wxUSE_OPENGL" = yes; then
3097 echo "$as_me:$LINENO: result: yes" >&5
3098echo "${ECHO_T}yes" >&6
3099 else
3100 echo "$as_me:$LINENO: result: no" >&5
3101echo "${ECHO_T}no" >&6
3102 fi
3103
3104
3105fi
3106
3107
3108 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3109echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3110 no_cache=0
3111
3112# Check whether --with-dmalloc or --without-dmalloc was given.
3113if test "${with_dmalloc+set}" = set; then
3114 withval="$with_dmalloc"
3115
3116 if test "$withval" = yes; then
3117 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3118 else
3119 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3120 fi
3121
3122else
3123
3124 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3125 if test "x$LINE" != x ; then
3126 eval "DEFAULT_$LINE"
3127 else
3128 no_cache=1
3129 fi
3130
3131 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3132
3133fi;
3134
3135 eval "$ac_cv_use_dmalloc"
3136 if test "$no_cache" != 1; then
3137 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3138 fi
3139
3140 if test "$wxUSE_DMALLOC" = yes; then
3141 echo "$as_me:$LINENO: result: yes" >&5
3142echo "${ECHO_T}yes" >&6
3143 else
3144 echo "$as_me:$LINENO: result: no" >&5
3145echo "${ECHO_T}no" >&6
3146 fi
3147
3148
3149 echo "$as_me:$LINENO: checking for --with-regex" >&5
3150echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3151 no_cache=0
3152
3153# Check whether --with-regex or --without-regex was given.
3154if test "${with_regex+set}" = set; then
3155 withval="$with_regex"
3156
3157 if test "$withval" = yes; then
3158 ac_cv_use_regex='wxUSE_REGEX=yes'
3159 elif test "$withval" = no; then
3160 ac_cv_use_regex='wxUSE_REGEX=no'
3161 elif test "$withval" = sys; then
3162 ac_cv_use_regex='wxUSE_REGEX=sys'
3163 elif test "$withval" = builtin; then
3164 ac_cv_use_regex='wxUSE_REGEX=builtin'
3165 else
3166 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3167echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3168 { (exit 1); exit 1; }; }
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3181
3182fi;
3183
3184 eval "$ac_cv_use_regex"
3185 if test "$no_cache" != 1; then
3186 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3187 fi
3188
3189 if test "$wxUSE_REGEX" = yes; then
3190 echo "$as_me:$LINENO: result: yes" >&5
3191echo "${ECHO_T}yes" >&6
3192 elif test "$wxUSE_REGEX" = no; then
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195 elif test "$wxUSE_REGEX" = sys; then
3196 echo "$as_me:$LINENO: result: system version" >&5
3197echo "${ECHO_T}system version" >&6
3198 elif test "$wxUSE_REGEX" = builtin; then
3199 echo "$as_me:$LINENO: result: builtin version" >&5
3200echo "${ECHO_T}builtin version" >&6
3201 else
3202 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3203echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3204 { (exit 1); exit 1; }; }
3205 fi
3206
3207
3208 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3209echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3210 no_cache=0
3211
3212# Check whether --with-zlib or --without-zlib was given.
3213if test "${with_zlib+set}" = set; then
3214 withval="$with_zlib"
3215
3216 if test "$withval" = yes; then
3217 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3218 elif test "$withval" = no; then
3219 ac_cv_use_zlib='wxUSE_ZLIB=no'
3220 elif test "$withval" = sys; then
3221 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3222 elif test "$withval" = builtin; then
3223 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3224 else
3225 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3226echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3227 { (exit 1); exit 1; }; }
3228 fi
3229
3230else
3231
3232 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3233 if test "x$LINE" != x ; then
3234 eval "DEFAULT_$LINE"
3235 else
3236 no_cache=1
3237 fi
3238
3239 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3240
3241fi;
3242
3243 eval "$ac_cv_use_zlib"
3244 if test "$no_cache" != 1; then
3245 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3246 fi
3247
3248 if test "$wxUSE_ZLIB" = yes; then
3249 echo "$as_me:$LINENO: result: yes" >&5
3250echo "${ECHO_T}yes" >&6
3251 elif test "$wxUSE_ZLIB" = no; then
3252 echo "$as_me:$LINENO: result: no" >&5
3253echo "${ECHO_T}no" >&6
3254 elif test "$wxUSE_ZLIB" = sys; then
3255 echo "$as_me:$LINENO: result: system version" >&5
3256echo "${ECHO_T}system version" >&6
3257 elif test "$wxUSE_ZLIB" = builtin; then
3258 echo "$as_me:$LINENO: result: builtin version" >&5
3259echo "${ECHO_T}builtin version" >&6
3260 else
3261 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3262echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3263 { (exit 1); exit 1; }; }
3264 fi
3265
3266
3267 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3268echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3269 no_cache=0
3270
3271# Check whether --with-odbc or --without-odbc was given.
3272if test "${with_odbc+set}" = set; then
3273 withval="$with_odbc"
3274
3275 if test "$withval" = yes; then
3276 ac_cv_use_odbc='wxUSE_ODBC=yes'
3277 elif test "$withval" = no; then
3278 ac_cv_use_odbc='wxUSE_ODBC=no'
3279 elif test "$withval" = sys; then
3280 ac_cv_use_odbc='wxUSE_ODBC=sys'
3281 elif test "$withval" = builtin; then
3282 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3283 else
3284 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3285echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3286 { (exit 1); exit 1; }; }
3287 fi
3288
3289else
3290
3291 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
3298 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3299
3300fi;
3301
3302 eval "$ac_cv_use_odbc"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_ODBC" = yes; then
3308 echo "$as_me:$LINENO: result: yes" >&5
3309echo "${ECHO_T}yes" >&6
3310 elif test "$wxUSE_ODBC" = no; then
3311 echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313 elif test "$wxUSE_ODBC" = sys; then
3314 echo "$as_me:$LINENO: result: system version" >&5
3315echo "${ECHO_T}system version" >&6
3316 elif test "$wxUSE_ODBC" = builtin; then
3317 echo "$as_me:$LINENO: result: builtin version" >&5
3318echo "${ECHO_T}builtin version" >&6
3319 else
3320 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3321echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3322 { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326 echo "$as_me:$LINENO: checking for --with-expat" >&5
3327echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3328 no_cache=0
3329
3330# Check whether --with-expat or --without-expat was given.
3331if test "${with_expat+set}" = set; then
3332 withval="$with_expat"
3333
3334 if test "$withval" = yes; then
3335 ac_cv_use_expat='wxUSE_EXPAT=yes'
3336 elif test "$withval" = no; then
3337 ac_cv_use_expat='wxUSE_EXPAT=no'
3338 elif test "$withval" = sys; then
3339 ac_cv_use_expat='wxUSE_EXPAT=sys'
3340 elif test "$withval" = builtin; then
3341 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3342 else
3343 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3344echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3345 { (exit 1); exit 1; }; }
3346 fi
3347
3348else
3349
3350 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3351 if test "x$LINE" != x ; then
3352 eval "DEFAULT_$LINE"
3353 else
3354 no_cache=1
3355 fi
3356
3357 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3358
3359fi;
3360
3361 eval "$ac_cv_use_expat"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_EXPAT" = yes; then
3367 echo "$as_me:$LINENO: result: yes" >&5
3368echo "${ECHO_T}yes" >&6
3369 elif test "$wxUSE_EXPAT" = no; then
3370 echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372 elif test "$wxUSE_EXPAT" = sys; then
3373 echo "$as_me:$LINENO: result: system version" >&5
3374echo "${ECHO_T}system version" >&6
3375 elif test "$wxUSE_EXPAT" = builtin; then
3376 echo "$as_me:$LINENO: result: builtin version" >&5
3377echo "${ECHO_T}builtin version" >&6
3378 else
3379 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3380echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3381 { (exit 1); exit 1; }; }
3382 fi
3383
3384
3385
3386
3387 enablestring=
3388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3389echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3390 no_cache=0
3391 # Check whether --enable-shared or --disable-shared was given.
3392if test "${enable_shared+set}" = set; then
3393 enableval="$enable_shared"
3394
3395 if test "$enableval" = yes; then
3396 ac_cv_use_shared='wxUSE_SHARED=yes'
3397 else
3398 ac_cv_use_shared='wxUSE_SHARED=no'
3399 fi
3400
3401else
3402
3403 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3404 if test "x$LINE" != x ; then
3405 eval "DEFAULT_$LINE"
3406 else
3407 no_cache=1
3408 fi
3409
3410 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3411
3412fi;
3413
3414 eval "$ac_cv_use_shared"
3415 if test "$no_cache" != 1; then
3416 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3417 fi
3418
3419 if test "$wxUSE_SHARED" = yes; then
3420 echo "$as_me:$LINENO: result: yes" >&5
3421echo "${ECHO_T}yes" >&6
3422 else
3423 echo "$as_me:$LINENO: result: no" >&5
3424echo "${ECHO_T}no" >&6
3425 fi
3426
3427
3428 enablestring=
3429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3430echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3431 no_cache=0
3432 # Check whether --enable-optimise or --disable-optimise was given.
3433if test "${enable_optimise+set}" = set; then
3434 enableval="$enable_optimise"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3438 else
3439 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3440 fi
3441
3442else
3443
3444 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3452
3453fi;
3454
3455 eval "$ac_cv_use_optimise"
3456 if test "$no_cache" != 1; then
3457 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3458 fi
3459
3460 if test "$wxUSE_OPTIMISE" = yes; then
3461 echo "$as_me:$LINENO: result: yes" >&5
3462echo "${ECHO_T}yes" >&6
3463 else
3464 echo "$as_me:$LINENO: result: no" >&5
3465echo "${ECHO_T}no" >&6
3466 fi
3467
3468
3469 enablestring=
3470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3471echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3472 no_cache=0
3473 # Check whether --enable-debug or --disable-debug was given.
3474if test "${enable_debug+set}" = set; then
3475 enableval="$enable_debug"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_debug='wxUSE_DEBUG=yes'
3479 else
3480 ac_cv_use_debug='wxUSE_DEBUG=no'
3481 fi
3482
3483else
3484
3485 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3493
3494fi;
3495
3496 eval "$ac_cv_use_debug"
3497 if test "$no_cache" != 1; then
3498 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3499 fi
3500
3501 if test "$wxUSE_DEBUG" = yes; then
3502 echo "$as_me:$LINENO: result: yes" >&5
3503echo "${ECHO_T}yes" >&6
3504 else
3505 echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
3507 fi
3508
3509
3510 enablestring=
3511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3512echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3513 no_cache=0
3514 # Check whether --enable-stl or --disable-stl was given.
3515if test "${enable_stl+set}" = set; then
3516 enableval="$enable_stl"
3517
3518 if test "$enableval" = yes; then
3519 ac_cv_use_stl='wxUSE_STL=yes'
3520 else
3521 ac_cv_use_stl='wxUSE_STL=no'
3522 fi
3523
3524else
3525
3526 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3534
3535fi;
3536
3537 eval "$ac_cv_use_stl"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_STL" = yes; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544echo "${ECHO_T}yes" >&6
3545 else
3546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
3548 fi
3549
3550if test "$USE_OS2" = "1"; then
3551
3552 enablestring=
3553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3554echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3555 no_cache=0
3556 # Check whether --enable-omf or --disable-omf was given.
3557if test "${enable_omf+set}" = set; then
3558 enableval="$enable_omf"
3559
3560 if test "$enableval" = yes; then
3561 ac_cv_use_omf='wxUSE_OMF=yes'
3562 else
3563 ac_cv_use_omf='wxUSE_OMF=no'
3564 fi
3565
3566else
3567
3568 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3569 if test "x$LINE" != x ; then
3570 eval "DEFAULT_$LINE"
3571 else
3572 no_cache=1
3573 fi
3574
3575 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3576
3577fi;
3578
3579 eval "$ac_cv_use_omf"
3580 if test "$no_cache" != 1; then
3581 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3582 fi
3583
3584 if test "$wxUSE_OMF" = yes; then
3585 echo "$as_me:$LINENO: result: yes" >&5
3586echo "${ECHO_T}yes" >&6
3587 else
3588 echo "$as_me:$LINENO: result: no" >&5
3589echo "${ECHO_T}no" >&6
3590 fi
3591
3592fi
3593
3594if test "$wxUSE_DEBUG" = "yes"; then
3595 DEFAULT_wxUSE_DEBUG_FLAG=yes
3596 DEFAULT_wxUSE_DEBUG_INFO=yes
3597 BUILD=debug
3598elif test "$wxUSE_DEBUG" = "no"; then
3599 DEFAULT_wxUSE_DEBUG_FLAG=no
3600 DEFAULT_wxUSE_DEBUG_INFO=no
3601 BUILD=release
3602fi
3603
3604
3605 enablestring=
3606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3607echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3608 no_cache=0
3609 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3610if test "${enable_debug_flag+set}" = set; then
3611 enableval="$enable_debug_flag"
3612
3613 if test "$enableval" = yes; then
3614 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3615 else
3616 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3617 fi
3618
3619else
3620
3621 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3622 if test "x$LINE" != x ; then
3623 eval "DEFAULT_$LINE"
3624 else
3625 no_cache=1
3626 fi
3627
3628 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3629
3630fi;
3631
3632 eval "$ac_cv_use_debug_flag"
3633 if test "$no_cache" != 1; then
3634 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3635 fi
3636
3637 if test "$wxUSE_DEBUG_FLAG" = yes; then
3638 echo "$as_me:$LINENO: result: yes" >&5
3639echo "${ECHO_T}yes" >&6
3640 else
3641 echo "$as_me:$LINENO: result: no" >&5
3642echo "${ECHO_T}no" >&6
3643 fi
3644
3645
3646 enablestring=
3647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3648echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3649 no_cache=0
3650 # Check whether --enable-debug_info or --disable-debug_info was given.
3651if test "${enable_debug_info+set}" = set; then
3652 enableval="$enable_debug_info"
3653
3654 if test "$enableval" = yes; then
3655 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3656 else
3657 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3658 fi
3659
3660else
3661
3662 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3663 if test "x$LINE" != x ; then
3664 eval "DEFAULT_$LINE"
3665 else
3666 no_cache=1
3667 fi
3668
3669 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3670
3671fi;
3672
3673 eval "$ac_cv_use_debug_info"
3674 if test "$no_cache" != 1; then
3675 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3676 fi
3677
3678 if test "$wxUSE_DEBUG_INFO" = yes; then
3679 echo "$as_me:$LINENO: result: yes" >&5
3680echo "${ECHO_T}yes" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
3684 fi
3685
3686
3687 enablestring=
3688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3689echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3690 no_cache=0
3691 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3692if test "${enable_debug_gdb+set}" = set; then
3693 enableval="$enable_debug_gdb"
3694
3695 if test "$enableval" = yes; then
3696 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3697 else
3698 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3699 fi
3700
3701else
3702
3703 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3704 if test "x$LINE" != x ; then
3705 eval "DEFAULT_$LINE"
3706 else
3707 no_cache=1
3708 fi
3709
3710 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3711
3712fi;
3713
3714 eval "$ac_cv_use_debug_gdb"
3715 if test "$no_cache" != 1; then
3716 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3717 fi
3718
3719 if test "$wxUSE_DEBUG_GDB" = yes; then
3720 echo "$as_me:$LINENO: result: yes" >&5
3721echo "${ECHO_T}yes" >&6
3722 else
3723 echo "$as_me:$LINENO: result: no" >&5
3724echo "${ECHO_T}no" >&6
3725 fi
3726
3727
3728 enablestring=
3729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3730echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3731 no_cache=0
3732 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3733if test "${enable_debug_cntxt+set}" = set; then
3734 enableval="$enable_debug_cntxt"
3735
3736 if test "$enableval" = yes; then
3737 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3738 else
3739 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3740 fi
3741
3742else
3743
3744 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3752
3753fi;
3754
3755 eval "$ac_cv_use_debug_cntxt"
3756 if test "$no_cache" != 1; then
3757 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3758 fi
3759
3760 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3761 echo "$as_me:$LINENO: result: yes" >&5
3762echo "${ECHO_T}yes" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766 fi
3767
3768
3769 enablestring=
3770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3771echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3772 no_cache=0
3773 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3774if test "${enable_mem_tracing+set}" = set; then
3775 enableval="$enable_mem_tracing"
3776
3777 if test "$enableval" = yes; then
3778 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3779 else
3780 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3781 fi
3782
3783else
3784
3785 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3786 if test "x$LINE" != x ; then
3787 eval "DEFAULT_$LINE"
3788 else
3789 no_cache=1
3790 fi
3791
3792 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3793
3794fi;
3795
3796 eval "$ac_cv_use_mem_tracing"
3797 if test "$no_cache" != 1; then
3798 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3799 fi
3800
3801 if test "$wxUSE_MEM_TRACING" = yes; then
3802 echo "$as_me:$LINENO: result: yes" >&5
3803echo "${ECHO_T}yes" >&6
3804 else
3805 echo "$as_me:$LINENO: result: no" >&5
3806echo "${ECHO_T}no" >&6
3807 fi
3808
3809
3810 enablestring=
3811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3812echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3813 no_cache=0
3814 # Check whether --enable-profile or --disable-profile was given.
3815if test "${enable_profile+set}" = set; then
3816 enableval="$enable_profile"
3817
3818 if test "$enableval" = yes; then
3819 ac_cv_use_profile='wxUSE_PROFILE=yes'
3820 else
3821 ac_cv_use_profile='wxUSE_PROFILE=no'
3822 fi
3823
3824else
3825
3826 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3827 if test "x$LINE" != x ; then
3828 eval "DEFAULT_$LINE"
3829 else
3830 no_cache=1
3831 fi
3832
3833 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3834
3835fi;
3836
3837 eval "$ac_cv_use_profile"
3838 if test "$no_cache" != 1; then
3839 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3840 fi
3841
3842 if test "$wxUSE_PROFILE" = yes; then
3843 echo "$as_me:$LINENO: result: yes" >&5
3844echo "${ECHO_T}yes" >&6
3845 else
3846 echo "$as_me:$LINENO: result: no" >&5
3847echo "${ECHO_T}no" >&6
3848 fi
3849
3850
3851 enablestring=
3852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3853echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3854 no_cache=0
3855 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3856if test "${enable_no_rtti+set}" = set; then
3857 enableval="$enable_no_rtti"
3858
3859 if test "$enableval" = yes; then
3860 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3861 else
3862 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3863 fi
3864
3865else
3866
3867 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3868 if test "x$LINE" != x ; then
3869 eval "DEFAULT_$LINE"
3870 else
3871 no_cache=1
3872 fi
3873
3874 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3875
3876fi;
3877
3878 eval "$ac_cv_use_no_rtti"
3879 if test "$no_cache" != 1; then
3880 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3881 fi
3882
3883 if test "$wxUSE_NO_RTTI" = yes; then
3884 echo "$as_me:$LINENO: result: yes" >&5
3885echo "${ECHO_T}yes" >&6
3886 else
3887 echo "$as_me:$LINENO: result: no" >&5
3888echo "${ECHO_T}no" >&6
3889 fi
3890
3891
3892 enablestring=
3893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3894echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3895 no_cache=0
3896 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3897if test "${enable_no_exceptions+set}" = set; then
3898 enableval="$enable_no_exceptions"
3899
3900 if test "$enableval" = yes; then
3901 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3902 else
3903 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3904 fi
3905
3906else
3907
3908 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3909 if test "x$LINE" != x ; then
3910 eval "DEFAULT_$LINE"
3911 else
3912 no_cache=1
3913 fi
3914
3915 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3916
3917fi;
3918
3919 eval "$ac_cv_use_no_exceptions"
3920 if test "$no_cache" != 1; then
3921 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3922 fi
3923
3924 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3925 echo "$as_me:$LINENO: result: yes" >&5
3926echo "${ECHO_T}yes" >&6
3927 else
3928 echo "$as_me:$LINENO: result: no" >&5
3929echo "${ECHO_T}no" >&6
3930 fi
3931
3932
3933 enablestring=
3934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3935echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3936 no_cache=0
3937 # Check whether --enable-permissive or --disable-permissive was given.
3938if test "${enable_permissive+set}" = set; then
3939 enableval="$enable_permissive"
3940
3941 if test "$enableval" = yes; then
3942 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3943 else
3944 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3945 fi
3946
3947else
3948
3949 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3950 if test "x$LINE" != x ; then
3951 eval "DEFAULT_$LINE"
3952 else
3953 no_cache=1
3954 fi
3955
3956 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3957
3958fi;
3959
3960 eval "$ac_cv_use_permissive"
3961 if test "$no_cache" != 1; then
3962 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3963 fi
3964
3965 if test "$wxUSE_PERMISSIVE" = yes; then
3966 echo "$as_me:$LINENO: result: yes" >&5
3967echo "${ECHO_T}yes" >&6
3968 else
3969 echo "$as_me:$LINENO: result: no" >&5
3970echo "${ECHO_T}no" >&6
3971 fi
3972
3973
3974 enablestring=
3975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3976echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3977 no_cache=0
3978 # Check whether --enable-no_deps or --disable-no_deps was given.
3979if test "${enable_no_deps+set}" = set; then
3980 enableval="$enable_no_deps"
3981
3982 if test "$enableval" = yes; then
3983 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3984 else
3985 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3986 fi
3987
3988else
3989
3990 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3991 if test "x$LINE" != x ; then
3992 eval "DEFAULT_$LINE"
3993 else
3994 no_cache=1
3995 fi
3996
3997 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3998
3999fi;
4000
4001 eval "$ac_cv_use_no_deps"
4002 if test "$no_cache" != 1; then
4003 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4004 fi
4005
4006 if test "$wxUSE_NO_DEPS" = yes; then
4007 echo "$as_me:$LINENO: result: yes" >&5
4008echo "${ECHO_T}yes" >&6
4009 else
4010 echo "$as_me:$LINENO: result: no" >&5
4011echo "${ECHO_T}no" >&6
4012 fi
4013
4014
4015
4016 enablestring=
4017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4018echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4019 no_cache=0
4020 # Check whether --enable-compat22 or --disable-compat22 was given.
4021if test "${enable_compat22+set}" = set; then
4022 enableval="$enable_compat22"
4023
4024 if test "$enableval" = yes; then
4025 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4026 else
4027 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4028 fi
4029
4030else
4031
4032 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4033 if test "x$LINE" != x ; then
4034 eval "DEFAULT_$LINE"
4035 else
4036 no_cache=1
4037 fi
4038
4039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4040
4041fi;
4042
4043 eval "$ac_cv_use_compat22"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4049 echo "$as_me:$LINENO: result: yes" >&5
4050echo "${ECHO_T}yes" >&6
4051 else
4052 echo "$as_me:$LINENO: result: no" >&5
4053echo "${ECHO_T}no" >&6
4054 fi
4055
4056
4057 enablestring=disable
4058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4059echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4060 no_cache=0
4061 # Check whether --enable-compat24 or --disable-compat24 was given.
4062if test "${enable_compat24+set}" = set; then
4063 enableval="$enable_compat24"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4067 else
4068 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4069 fi
4070
4071else
4072
4073 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4081
4082fi;
4083
4084 eval "$ac_cv_use_compat24"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4090 echo "$as_me:$LINENO: result: yes" >&5
4091echo "${ECHO_T}yes" >&6
4092 else
4093 echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6
4095 fi
4096
4097
4098# Check whether --enable-rpath or --disable-rpath was given.
4099if test "${enable_rpath+set}" = set; then
4100 enableval="$enable_rpath"
4101 wxRPATH_DIR="$enableval"
4102fi;
4103
ac1cb8d3 4104if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4105 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4106fi
4107
4108
4109
4110
4111 enablestring=
4112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4113echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4114 no_cache=0
4115 # Check whether --enable-intl or --disable-intl was given.
4116if test "${enable_intl+set}" = set; then
4117 enableval="$enable_intl"
4118
4119 if test "$enableval" = yes; then
4120 ac_cv_use_intl='wxUSE_INTL=yes'
4121 else
4122 ac_cv_use_intl='wxUSE_INTL=no'
4123 fi
4124
4125else
4126
4127 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4128 if test "x$LINE" != x ; then
4129 eval "DEFAULT_$LINE"
4130 else
4131 no_cache=1
4132 fi
4133
4134 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4135
4136fi;
4137
4138 eval "$ac_cv_use_intl"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_INTL" = yes; then
4144 echo "$as_me:$LINENO: result: yes" >&5
4145echo "${ECHO_T}yes" >&6
4146 else
4147 echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
4149 fi
4150
4151
4152 enablestring=
4153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4154echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4155 no_cache=0
4156 # Check whether --enable-config or --disable-config was given.
4157if test "${enable_config+set}" = set; then
4158 enableval="$enable_config"
4159
4160 if test "$enableval" = yes; then
4161 ac_cv_use_config='wxUSE_CONFIG=yes'
4162 else
4163 ac_cv_use_config='wxUSE_CONFIG=no'
4164 fi
4165
4166else
4167
4168 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4169 if test "x$LINE" != x ; then
4170 eval "DEFAULT_$LINE"
4171 else
4172 no_cache=1
4173 fi
4174
4175 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4176
4177fi;
4178
4179 eval "$ac_cv_use_config"
4180 if test "$no_cache" != 1; then
4181 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4182 fi
4183
4184 if test "$wxUSE_CONFIG" = yes; then
4185 echo "$as_me:$LINENO: result: yes" >&5
4186echo "${ECHO_T}yes" >&6
4187 else
4188 echo "$as_me:$LINENO: result: no" >&5
4189echo "${ECHO_T}no" >&6
4190 fi
4191
4192
4193
4194 enablestring=
4195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4196echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4197 no_cache=0
4198 # Check whether --enable-protocols or --disable-protocols was given.
4199if test "${enable_protocols+set}" = set; then
4200 enableval="$enable_protocols"
4201
4202 if test "$enableval" = yes; then
4203 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4204 else
4205 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4206 fi
4207
4208else
4209
4210 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4211 if test "x$LINE" != x ; then
4212 eval "DEFAULT_$LINE"
4213 else
4214 no_cache=1
4215 fi
4216
4217 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4218
4219fi;
4220
4221 eval "$ac_cv_use_protocols"
4222 if test "$no_cache" != 1; then
4223 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4224 fi
4225
4226 if test "$wxUSE_PROTOCOL" = yes; then
4227 echo "$as_me:$LINENO: result: yes" >&5
4228echo "${ECHO_T}yes" >&6
4229 else
4230 echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6
4232 fi
4233
4234
4235 enablestring=
4236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4237echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4238 no_cache=0
4239 # Check whether --enable-ftp or --disable-ftp was given.
4240if test "${enable_ftp+set}" = set; then
4241 enableval="$enable_ftp"
4242
4243 if test "$enableval" = yes; then
4244 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4245 else
4246 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4247 fi
4248
4249else
4250
4251 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4252 if test "x$LINE" != x ; then
4253 eval "DEFAULT_$LINE"
4254 else
4255 no_cache=1
4256 fi
4257
4258 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4259
4260fi;
4261
4262 eval "$ac_cv_use_ftp"
4263 if test "$no_cache" != 1; then
4264 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4265 fi
4266
4267 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4268 echo "$as_me:$LINENO: result: yes" >&5
4269echo "${ECHO_T}yes" >&6
4270 else
4271 echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
4273 fi
4274
4275
4276 enablestring=
4277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4278echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4279 no_cache=0
4280 # Check whether --enable-http or --disable-http was given.
4281if test "${enable_http+set}" = set; then
4282 enableval="$enable_http"
4283
4284 if test "$enableval" = yes; then
4285 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4286 else
4287 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4288 fi
4289
4290else
4291
4292 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4293 if test "x$LINE" != x ; then
4294 eval "DEFAULT_$LINE"
4295 else
4296 no_cache=1
4297 fi
4298
4299 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4300
4301fi;
4302
4303 eval "$ac_cv_use_http"
4304 if test "$no_cache" != 1; then
4305 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4306 fi
4307
4308 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4309 echo "$as_me:$LINENO: result: yes" >&5
4310echo "${ECHO_T}yes" >&6
4311 else
4312 echo "$as_me:$LINENO: result: no" >&5
4313echo "${ECHO_T}no" >&6
4314 fi
4315
4316
4317 enablestring=
4318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4319echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4320 no_cache=0
4321 # Check whether --enable-fileproto or --disable-fileproto was given.
4322if test "${enable_fileproto+set}" = set; then
4323 enableval="$enable_fileproto"
4324
4325 if test "$enableval" = yes; then
4326 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4327 else
4328 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4329 fi
4330
4331else
4332
4333 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4334 if test "x$LINE" != x ; then
4335 eval "DEFAULT_$LINE"
4336 else
4337 no_cache=1
4338 fi
4339
4340 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4341
4342fi;
4343
4344 eval "$ac_cv_use_fileproto"
4345 if test "$no_cache" != 1; then
4346 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4347 fi
4348
4349 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4350 echo "$as_me:$LINENO: result: yes" >&5
4351echo "${ECHO_T}yes" >&6
4352 else
4353 echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6
4355 fi
4356
4357
4358 enablestring=
4359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4360echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4361 no_cache=0
4362 # Check whether --enable-sockets or --disable-sockets was given.
4363if test "${enable_sockets+set}" = set; then
4364 enableval="$enable_sockets"
4365
4366 if test "$enableval" = yes; then
4367 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4368 else
4369 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4370 fi
4371
4372else
4373
4374 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4375 if test "x$LINE" != x ; then
4376 eval "DEFAULT_$LINE"
4377 else
4378 no_cache=1
4379 fi
4380
4381 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4382
4383fi;
4384
4385 eval "$ac_cv_use_sockets"
4386 if test "$no_cache" != 1; then
4387 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4388 fi
4389
4390 if test "$wxUSE_SOCKETS" = yes; then
4391 echo "$as_me:$LINENO: result: yes" >&5
4392echo "${ECHO_T}yes" >&6
4393 else
4394 echo "$as_me:$LINENO: result: no" >&5
4395echo "${ECHO_T}no" >&6
4396 fi
4397
4398
4399 enablestring=
4400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4401echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4402 no_cache=0
4403 # Check whether --enable-ole or --disable-ole was given.
4404if test "${enable_ole+set}" = set; then
4405 enableval="$enable_ole"
4406
4407 if test "$enableval" = yes; then
4408 ac_cv_use_ole='wxUSE_OLE=yes'
4409 else
4410 ac_cv_use_ole='wxUSE_OLE=no'
4411 fi
4412
4413else
4414
4415 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4416 if test "x$LINE" != x ; then
4417 eval "DEFAULT_$LINE"
4418 else
4419 no_cache=1
4420 fi
4421
4422 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4423
4424fi;
4425
4426 eval "$ac_cv_use_ole"
4427 if test "$no_cache" != 1; then
4428 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4429 fi
4430
4431 if test "$wxUSE_OLE" = yes; then
4432 echo "$as_me:$LINENO: result: yes" >&5
4433echo "${ECHO_T}yes" >&6
4434 else
4435 echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6
4437 fi
4438
4439
4440 enablestring=
4441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4442echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4443 no_cache=0
4444 # Check whether --enable-dataobj or --disable-dataobj was given.
4445if test "${enable_dataobj+set}" = set; then
4446 enableval="$enable_dataobj"
4447
4448 if test "$enableval" = yes; then
4449 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4450 else
4451 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4452 fi
4453
4454else
4455
4456 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4457 if test "x$LINE" != x ; then
4458 eval "DEFAULT_$LINE"
4459 else
4460 no_cache=1
4461 fi
4462
4463 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4464
4465fi;
4466
4467 eval "$ac_cv_use_dataobj"
4468 if test "$no_cache" != 1; then
4469 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4470 fi
4471
4472 if test "$wxUSE_DATAOBJ" = yes; then
4473 echo "$as_me:$LINENO: result: yes" >&5
4474echo "${ECHO_T}yes" >&6
4475 else
4476 echo "$as_me:$LINENO: result: no" >&5
4477echo "${ECHO_T}no" >&6
4478 fi
4479
4480
4481
4482 enablestring=
4483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4484echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4485 no_cache=0
4486 # Check whether --enable-ipc or --disable-ipc was given.
4487if test "${enable_ipc+set}" = set; then
4488 enableval="$enable_ipc"
4489
4490 if test "$enableval" = yes; then
4491 ac_cv_use_ipc='wxUSE_IPC=yes'
4492 else
4493 ac_cv_use_ipc='wxUSE_IPC=no'
4494 fi
4495
4496else
4497
4498 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4499 if test "x$LINE" != x ; then
4500 eval "DEFAULT_$LINE"
4501 else
4502 no_cache=1
4503 fi
4504
4505 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4506
4507fi;
4508
4509 eval "$ac_cv_use_ipc"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_IPC" = yes; then
4515 echo "$as_me:$LINENO: result: yes" >&5
4516echo "${ECHO_T}yes" >&6
4517 else
4518 echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
4520 fi
4521
4522
4523
4524 enablestring=
4525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4526echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4527 no_cache=0
4528 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4529if test "${enable_apple_ieee+set}" = set; then
4530 enableval="$enable_apple_ieee"
4531
4532 if test "$enableval" = yes; then
4533 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4534 else
4535 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4536 fi
4537
4538else
4539
4540 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4541 if test "x$LINE" != x ; then
4542 eval "DEFAULT_$LINE"
4543 else
4544 no_cache=1
4545 fi
4546
4547 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4548
4549fi;
4550
4551 eval "$ac_cv_use_apple_ieee"
4552 if test "$no_cache" != 1; then
4553 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4554 fi
4555
4556 if test "$wxUSE_APPLE_IEEE" = yes; then
4557 echo "$as_me:$LINENO: result: yes" >&5
4558echo "${ECHO_T}yes" >&6
4559 else
4560 echo "$as_me:$LINENO: result: no" >&5
4561echo "${ECHO_T}no" >&6
4562 fi
4563
4564
4565 enablestring=
4566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4567echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4568 no_cache=0
4569 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4570if test "${enable_catch_segvs+set}" = set; then
4571 enableval="$enable_catch_segvs"
4572
4573 if test "$enableval" = yes; then
4574 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4575 else
4576 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4577 fi
4578
4579else
4580
4581 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4582 if test "x$LINE" != x ; then
4583 eval "DEFAULT_$LINE"
4584 else
4585 no_cache=1
4586 fi
4587
4588 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4589
4590fi;
4591
4592 eval "$ac_cv_use_catch_segvs"
4593 if test "$no_cache" != 1; then
4594 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4595 fi
4596
4597 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4598 echo "$as_me:$LINENO: result: yes" >&5
4599echo "${ECHO_T}yes" >&6
4600 else
4601 echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6
4603 fi
4604
4605
4606 enablestring=
4607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4608echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4609 no_cache=0
4610 # Check whether --enable-cmdline or --disable-cmdline was given.
4611if test "${enable_cmdline+set}" = set; then
4612 enableval="$enable_cmdline"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4616 else
4617 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4618 fi
4619
4620else
4621
4622 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4630
4631fi;
4632
4633 eval "$ac_cv_use_cmdline"
4634 if test "$no_cache" != 1; then
4635 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4636 fi
4637
4638 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640echo "${ECHO_T}yes" >&6
4641 else
4642 echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6
4644 fi
4645
4646
4647 enablestring=
4648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4649echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4650 no_cache=0
4651 # Check whether --enable-datetime or --disable-datetime was given.
4652if test "${enable_datetime+set}" = set; then
4653 enableval="$enable_datetime"
4654
4655 if test "$enableval" = yes; then
4656 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4657 else
4658 ac_cv_use_datetime='wxUSE_DATETIME=no'
4659 fi
4660
4661else
4662
4663 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4664 if test "x$LINE" != x ; then
4665 eval "DEFAULT_$LINE"
4666 else
4667 no_cache=1
4668 fi
4669
4670 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4671
4672fi;
4673
4674 eval "$ac_cv_use_datetime"
4675 if test "$no_cache" != 1; then
4676 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4677 fi
4678
4679 if test "$wxUSE_DATETIME" = yes; then
4680 echo "$as_me:$LINENO: result: yes" >&5
4681echo "${ECHO_T}yes" >&6
4682 else
4683 echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6
4685 fi
4686
4687
4688 enablestring=
4689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4690echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4691 no_cache=0
4692 # Check whether --enable-dialupman or --disable-dialupman was given.
4693if test "${enable_dialupman+set}" = set; then
4694 enableval="$enable_dialupman"
4695
4696 if test "$enableval" = yes; then
4697 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4698 else
4699 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4700 fi
4701
4702else
4703
4704 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4705 if test "x$LINE" != x ; then
4706 eval "DEFAULT_$LINE"
4707 else
4708 no_cache=1
4709 fi
4710
4711 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4712
4713fi;
4714
4715 eval "$ac_cv_use_dialupman"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4721 echo "$as_me:$LINENO: result: yes" >&5
4722echo "${ECHO_T}yes" >&6
4723 else
4724 echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6
4726 fi
4727
4728
4729 enablestring=
4730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4731echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4732 no_cache=0
4733 # Check whether --enable-dynlib or --disable-dynlib was given.
4734if test "${enable_dynlib+set}" = set; then
4735 enableval="$enable_dynlib"
4736
4737 if test "$enableval" = yes; then
4738 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4739 else
4740 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4741 fi
4742
4743else
4744
4745 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4753
4754fi;
4755
4756 eval "$ac_cv_use_dynlib"
4757 if test "$no_cache" != 1; then
4758 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4759 fi
4760
4761 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4762 echo "$as_me:$LINENO: result: yes" >&5
4763echo "${ECHO_T}yes" >&6
4764 else
4765 echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6
4767 fi
4768
4769
4770 enablestring=
4771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4772echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4773 no_cache=0
4774 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4775if test "${enable_dynamicloader+set}" = set; then
4776 enableval="$enable_dynamicloader"
4777
4778 if test "$enableval" = yes; then
4779 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4780 else
4781 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4782 fi
4783
4784else
4785
4786 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4787 if test "x$LINE" != x ; then
4788 eval "DEFAULT_$LINE"
4789 else
4790 no_cache=1
4791 fi
4792
4793 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4794
4795fi;
4796
4797 eval "$ac_cv_use_dynamicloader"
4798 if test "$no_cache" != 1; then
4799 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4800 fi
4801
4802 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4803 echo "$as_me:$LINENO: result: yes" >&5
4804echo "${ECHO_T}yes" >&6
4805 else
4806 echo "$as_me:$LINENO: result: no" >&5
4807echo "${ECHO_T}no" >&6
4808 fi
4809
4810
4811 enablestring=
4812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4813echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4814 no_cache=0
4815 # Check whether --enable-exceptions or --disable-exceptions was given.
4816if test "${enable_exceptions+set}" = set; then
4817 enableval="$enable_exceptions"
4818
4819 if test "$enableval" = yes; then
4820 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4821 else
4822 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4823 fi
4824
4825else
4826
4827 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4828 if test "x$LINE" != x ; then
4829 eval "DEFAULT_$LINE"
4830 else
4831 no_cache=1
4832 fi
4833
4834 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4835
4836fi;
4837
4838 eval "$ac_cv_use_exceptions"
4839 if test "$no_cache" != 1; then
4840 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4841 fi
4842
4843 if test "$wxUSE_EXCEPTIONS" = yes; then
4844 echo "$as_me:$LINENO: result: yes" >&5
4845echo "${ECHO_T}yes" >&6
4846 else
4847 echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
4849 fi
4850
4851
4852 enablestring=
4853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4854echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4855 no_cache=0
4856 # Check whether --enable-ffile or --disable-ffile was given.
4857if test "${enable_ffile+set}" = set; then
4858 enableval="$enable_ffile"
4859
4860 if test "$enableval" = yes; then
4861 ac_cv_use_ffile='wxUSE_FFILE=yes'
4862 else
4863 ac_cv_use_ffile='wxUSE_FFILE=no'
4864 fi
4865
4866else
4867
4868 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4869 if test "x$LINE" != x ; then
4870 eval "DEFAULT_$LINE"
4871 else
4872 no_cache=1
4873 fi
4874
4875 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4876
4877fi;
4878
4879 eval "$ac_cv_use_ffile"
4880 if test "$no_cache" != 1; then
4881 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4882 fi
4883
4884 if test "$wxUSE_FFILE" = yes; then
4885 echo "$as_me:$LINENO: result: yes" >&5
4886echo "${ECHO_T}yes" >&6
4887 else
4888 echo "$as_me:$LINENO: result: no" >&5
4889echo "${ECHO_T}no" >&6
4890 fi
4891
4892
4893 enablestring=
4894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4895echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4896 no_cache=0
4897 # Check whether --enable-file or --disable-file was given.
4898if test "${enable_file+set}" = set; then
4899 enableval="$enable_file"
4900
4901 if test "$enableval" = yes; then
4902 ac_cv_use_file='wxUSE_FILE=yes'
4903 else
4904 ac_cv_use_file='wxUSE_FILE=no'
4905 fi
4906
4907else
4908
4909 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4910 if test "x$LINE" != x ; then
4911 eval "DEFAULT_$LINE"
4912 else
4913 no_cache=1
4914 fi
4915
4916 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4917
4918fi;
4919
4920 eval "$ac_cv_use_file"
4921 if test "$no_cache" != 1; then
4922 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4923 fi
4924
4925 if test "$wxUSE_FILE" = yes; then
4926 echo "$as_me:$LINENO: result: yes" >&5
4927echo "${ECHO_T}yes" >&6
4928 else
4929 echo "$as_me:$LINENO: result: no" >&5
4930echo "${ECHO_T}no" >&6
4931 fi
4932
4933
4934 enablestring=
4935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4936echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4937 no_cache=0
4938 # Check whether --enable-filesystem or --disable-filesystem was given.
4939if test "${enable_filesystem+set}" = set; then
4940 enableval="$enable_filesystem"
4941
4942 if test "$enableval" = yes; then
4943 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4944 else
4945 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4946 fi
4947
4948else
4949
4950 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4951 if test "x$LINE" != x ; then
4952 eval "DEFAULT_$LINE"
4953 else
4954 no_cache=1
4955 fi
4956
4957 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4958
4959fi;
4960
4961 eval "$ac_cv_use_filesystem"
4962 if test "$no_cache" != 1; then
4963 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4964 fi
4965
4966 if test "$wxUSE_FILESYSTEM" = yes; then
4967 echo "$as_me:$LINENO: result: yes" >&5
4968echo "${ECHO_T}yes" >&6
4969 else
4970 echo "$as_me:$LINENO: result: no" >&5
4971echo "${ECHO_T}no" >&6
4972 fi
4973
4974
4975 enablestring=
4976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4977echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4978 no_cache=0
4979 # Check whether --enable-fontmap or --disable-fontmap was given.
4980if test "${enable_fontmap+set}" = set; then
4981 enableval="$enable_fontmap"
4982
4983 if test "$enableval" = yes; then
4984 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4985 else
4986 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4987 fi
4988
4989else
4990
4991 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4992 if test "x$LINE" != x ; then
4993 eval "DEFAULT_$LINE"
4994 else
4995 no_cache=1
4996 fi
4997
4998 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4999
5000fi;
5001
5002 eval "$ac_cv_use_fontmap"
5003 if test "$no_cache" != 1; then
5004 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5005 fi
5006
5007 if test "$wxUSE_FONTMAP" = yes; then
5008 echo "$as_me:$LINENO: result: yes" >&5
5009echo "${ECHO_T}yes" >&6
5010 else
5011 echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6
5013 fi
5014
5015
5016 enablestring=
5017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5018echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5019 no_cache=0
5020 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5021if test "${enable_fs_inet+set}" = set; then
5022 enableval="$enable_fs_inet"
5023
5024 if test "$enableval" = yes; then
5025 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5026 else
5027 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5028 fi
5029
5030else
5031
5032 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5033 if test "x$LINE" != x ; then
5034 eval "DEFAULT_$LINE"
5035 else
5036 no_cache=1
5037 fi
5038
5039 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5040
5041fi;
5042
5043 eval "$ac_cv_use_fs_inet"
5044 if test "$no_cache" != 1; then
5045 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5046 fi
5047
5048 if test "$wxUSE_FS_INET" = yes; then
5049 echo "$as_me:$LINENO: result: yes" >&5
5050echo "${ECHO_T}yes" >&6
5051 else
5052 echo "$as_me:$LINENO: result: no" >&5
5053echo "${ECHO_T}no" >&6
5054 fi
5055
5056
5057 enablestring=
5058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5059echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5060 no_cache=0
5061 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5062if test "${enable_fs_zip+set}" = set; then
5063 enableval="$enable_fs_zip"
5064
5065 if test "$enableval" = yes; then
5066 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5067 else
5068 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5069 fi
5070
5071else
5072
5073 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5074 if test "x$LINE" != x ; then
5075 eval "DEFAULT_$LINE"
5076 else
5077 no_cache=1
5078 fi
5079
5080 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5081
5082fi;
5083
5084 eval "$ac_cv_use_fs_zip"
5085 if test "$no_cache" != 1; then
5086 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5087 fi
5088
5089 if test "$wxUSE_FS_ZIP" = yes; then
5090 echo "$as_me:$LINENO: result: yes" >&5
5091echo "${ECHO_T}yes" >&6
5092 else
5093 echo "$as_me:$LINENO: result: no" >&5
5094echo "${ECHO_T}no" >&6
5095 fi
5096
5097
5098 enablestring=
5099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5100echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5101 no_cache=0
5102 # Check whether --enable-geometry or --disable-geometry was given.
5103if test "${enable_geometry+set}" = set; then
5104 enableval="$enable_geometry"
5105
5106 if test "$enableval" = yes; then
5107 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5108 else
5109 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5110 fi
5111
5112else
5113
5114 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5115 if test "x$LINE" != x ; then
5116 eval "DEFAULT_$LINE"
5117 else
5118 no_cache=1
5119 fi
5120
5121 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5122
5123fi;
5124
5125 eval "$ac_cv_use_geometry"
5126 if test "$no_cache" != 1; then
5127 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5128 fi
5129
5130 if test "$wxUSE_GEOMETRY" = yes; then
5131 echo "$as_me:$LINENO: result: yes" >&5
5132echo "${ECHO_T}yes" >&6
5133 else
5134 echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136 fi
5137
5138
5139 enablestring=
5140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5141echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5142 no_cache=0
5143 # Check whether --enable-log or --disable-log was given.
5144if test "${enable_log+set}" = set; then
5145 enableval="$enable_log"
5146
5147 if test "$enableval" = yes; then
5148 ac_cv_use_log='wxUSE_LOG=yes'
5149 else
5150 ac_cv_use_log='wxUSE_LOG=no'
5151 fi
5152
5153else
5154
5155 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5156 if test "x$LINE" != x ; then
5157 eval "DEFAULT_$LINE"
5158 else
5159 no_cache=1
5160 fi
5161
5162 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5163
5164fi;
5165
5166 eval "$ac_cv_use_log"
5167 if test "$no_cache" != 1; then
5168 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5169 fi
5170
5171 if test "$wxUSE_LOG" = yes; then
5172 echo "$as_me:$LINENO: result: yes" >&5
5173echo "${ECHO_T}yes" >&6
5174 else
5175 echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177 fi
5178
5179
5180 enablestring=
5181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5182echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5183 no_cache=0
5184 # Check whether --enable-longlong or --disable-longlong was given.
5185if test "${enable_longlong+set}" = set; then
5186 enableval="$enable_longlong"
5187
5188 if test "$enableval" = yes; then
5189 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5190 else
5191 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5192 fi
5193
5194else
5195
5196 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5197 if test "x$LINE" != x ; then
5198 eval "DEFAULT_$LINE"
5199 else
5200 no_cache=1
5201 fi
5202
5203 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5204
5205fi;
5206
5207 eval "$ac_cv_use_longlong"
5208 if test "$no_cache" != 1; then
5209 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5210 fi
5211
5212 if test "$wxUSE_LONGLONG" = yes; then
5213 echo "$as_me:$LINENO: result: yes" >&5
5214echo "${ECHO_T}yes" >&6
5215 else
5216 echo "$as_me:$LINENO: result: no" >&5
5217echo "${ECHO_T}no" >&6
5218 fi
5219
5220
5221 enablestring=
5222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5223echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5224 no_cache=0
5225 # Check whether --enable-mimetype or --disable-mimetype was given.
5226if test "${enable_mimetype+set}" = set; then
5227 enableval="$enable_mimetype"
5228
5229 if test "$enableval" = yes; then
5230 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5231 else
5232 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5233 fi
5234
5235else
5236
5237 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5238 if test "x$LINE" != x ; then
5239 eval "DEFAULT_$LINE"
5240 else
5241 no_cache=1
5242 fi
5243
5244 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5245
5246fi;
5247
5248 eval "$ac_cv_use_mimetype"
5249 if test "$no_cache" != 1; then
5250 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5251 fi
5252
5253 if test "$wxUSE_MIMETYPE" = yes; then
5254 echo "$as_me:$LINENO: result: yes" >&5
5255echo "${ECHO_T}yes" >&6
5256 else
5257 echo "$as_me:$LINENO: result: no" >&5
5258echo "${ECHO_T}no" >&6
5259 fi
5260
5261
5262 enablestring=
5263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5264echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5265 no_cache=0
5266 # Check whether --enable-mslu or --disable-mslu was given.
5267if test "${enable_mslu+set}" = set; then
5268 enableval="$enable_mslu"
5269
5270 if test "$enableval" = yes; then
5271 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5272 else
5273 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5274 fi
5275
5276else
5277
5278 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5279 if test "x$LINE" != x ; then
5280 eval "DEFAULT_$LINE"
5281 else
5282 no_cache=1
5283 fi
5284
5285 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5286
5287fi;
5288
5289 eval "$ac_cv_use_mslu"
5290 if test "$no_cache" != 1; then
5291 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5292 fi
5293
5294 if test "$wxUSE_UNICODE_MSLU" = yes; then
5295 echo "$as_me:$LINENO: result: yes" >&5
5296echo "${ECHO_T}yes" >&6
5297 else
5298 echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6
5300 fi
5301
5302
5303 enablestring=
5304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5305echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5306 no_cache=0
5307 # Check whether --enable-snglinst or --disable-snglinst was given.
5308if test "${enable_snglinst+set}" = set; then
5309 enableval="$enable_snglinst"
5310
5311 if test "$enableval" = yes; then
5312 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5313 else
5314 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5315 fi
5316
5317else
5318
5319 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5320 if test "x$LINE" != x ; then
5321 eval "DEFAULT_$LINE"
5322 else
5323 no_cache=1
5324 fi
5325
5326 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5327
5328fi;
5329
5330 eval "$ac_cv_use_snglinst"
5331 if test "$no_cache" != 1; then
5332 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5333 fi
5334
5335 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5336 echo "$as_me:$LINENO: result: yes" >&5
5337echo "${ECHO_T}yes" >&6
5338 else
5339 echo "$as_me:$LINENO: result: no" >&5
5340echo "${ECHO_T}no" >&6
5341 fi
5342
5343
5344 enablestring=
5345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5346echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5347 no_cache=0
5348 # Check whether --enable-streams or --disable-streams was given.
5349if test "${enable_streams+set}" = set; then
5350 enableval="$enable_streams"
5351
5352 if test "$enableval" = yes; then
5353 ac_cv_use_streams='wxUSE_STREAMS=yes'
5354 else
5355 ac_cv_use_streams='wxUSE_STREAMS=no'
5356 fi
5357
5358else
5359
5360 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5361 if test "x$LINE" != x ; then
5362 eval "DEFAULT_$LINE"
5363 else
5364 no_cache=1
5365 fi
5366
5367 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5368
5369fi;
5370
5371 eval "$ac_cv_use_streams"
5372 if test "$no_cache" != 1; then
5373 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5374 fi
5375
5376 if test "$wxUSE_STREAMS" = yes; then
5377 echo "$as_me:$LINENO: result: yes" >&5
5378echo "${ECHO_T}yes" >&6
5379 else
5380 echo "$as_me:$LINENO: result: no" >&5
5381echo "${ECHO_T}no" >&6
5382 fi
5383
5384
5385 enablestring=
5386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5387echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5388 no_cache=0
5389 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5390if test "${enable_std_iostreams+set}" = set; then
5391 enableval="$enable_std_iostreams"
5392
5393 if test "$enableval" = yes; then
5394 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5395 else
5396 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5397 fi
5398
5399else
5400
5401 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5402 if test "x$LINE" != x ; then
5403 eval "DEFAULT_$LINE"
5404 else
5405 no_cache=1
5406 fi
5407
5408 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5409
5410fi;
5411
5412 eval "$ac_cv_use_std_iostreams"
5413 if test "$no_cache" != 1; then
5414 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5415 fi
5416
5417 if test "$wxUSE_STD_IOSTREAM" = yes; then
5418 echo "$as_me:$LINENO: result: yes" >&5
5419echo "${ECHO_T}yes" >&6
5420 else
5421 echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423 fi
5424
5425
5426 enablestring=
5427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5428echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5429 no_cache=0
5430 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5431if test "${enable_stopwatch+set}" = set; then
5432 enableval="$enable_stopwatch"
5433
5434 if test "$enableval" = yes; then
5435 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5436 else
5437 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5438 fi
5439
5440else
5441
5442 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5443 if test "x$LINE" != x ; then
5444 eval "DEFAULT_$LINE"
5445 else
5446 no_cache=1
5447 fi
5448
5449 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5450
5451fi;
5452
5453 eval "$ac_cv_use_stopwatch"
5454 if test "$no_cache" != 1; then
5455 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5456 fi
5457
5458 if test "$wxUSE_STOPWATCH" = yes; then
5459 echo "$as_me:$LINENO: result: yes" >&5
5460echo "${ECHO_T}yes" >&6
5461 else
5462 echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
5464 fi
5465
5466
5467 enablestring=
5468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5469echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5470 no_cache=0
5471 # Check whether --enable-system_options or --disable-system_options was given.
5472if test "${enable_system_options+set}" = set; then
5473 enableval="$enable_system_options"
5474
5475 if test "$enableval" = yes; then
5476 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5477 else
5478 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5479 fi
5480
5481else
5482
5483 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5484 if test "x$LINE" != x ; then
5485 eval "DEFAULT_$LINE"
5486 else
5487 no_cache=1
5488 fi
5489
5490 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5491
5492fi;
5493
5494 eval "$ac_cv_use_system_options"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5500 echo "$as_me:$LINENO: result: yes" >&5
5501echo "${ECHO_T}yes" >&6
5502 else
5503 echo "$as_me:$LINENO: result: no" >&5
5504echo "${ECHO_T}no" >&6
5505 fi
5506
5507
5508 enablestring=
5509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5510echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5511 no_cache=0
5512 # Check whether --enable-textbuf or --disable-textbuf was given.
5513if test "${enable_textbuf+set}" = set; then
5514 enableval="$enable_textbuf"
5515
5516 if test "$enableval" = yes; then
5517 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5518 else
5519 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5520 fi
5521
5522else
5523
5524 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5525 if test "x$LINE" != x ; then
5526 eval "DEFAULT_$LINE"
5527 else
5528 no_cache=1
5529 fi
5530
5531 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5532
5533fi;
5534
5535 eval "$ac_cv_use_textbuf"
5536 if test "$no_cache" != 1; then
5537 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5538 fi
5539
5540 if test "$wxUSE_TEXTBUFFER" = yes; then
5541 echo "$as_me:$LINENO: result: yes" >&5
5542echo "${ECHO_T}yes" >&6
5543 else
5544 echo "$as_me:$LINENO: result: no" >&5
5545echo "${ECHO_T}no" >&6
5546 fi
5547
5548
5549 enablestring=
5550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5551echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5552 no_cache=0
5553 # Check whether --enable-textfile or --disable-textfile was given.
5554if test "${enable_textfile+set}" = set; then
5555 enableval="$enable_textfile"
5556
5557 if test "$enableval" = yes; then
5558 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5559 else
5560 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5561 fi
5562
5563else
5564
5565 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5566 if test "x$LINE" != x ; then
5567 eval "DEFAULT_$LINE"
5568 else
5569 no_cache=1
5570 fi
5571
5572 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5573
5574fi;
5575
5576 eval "$ac_cv_use_textfile"
5577 if test "$no_cache" != 1; then
5578 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5579 fi
5580
5581 if test "$wxUSE_TEXTFILE" = yes; then
5582 echo "$as_me:$LINENO: result: yes" >&5
5583echo "${ECHO_T}yes" >&6
5584 else
5585 echo "$as_me:$LINENO: result: no" >&5
5586echo "${ECHO_T}no" >&6
5587 fi
5588
5589
5590 enablestring=
5591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5592echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5593 no_cache=0
5594 # Check whether --enable-timer or --disable-timer was given.
5595if test "${enable_timer+set}" = set; then
5596 enableval="$enable_timer"
5597
5598 if test "$enableval" = yes; then
5599 ac_cv_use_timer='wxUSE_TIMER=yes'
5600 else
5601 ac_cv_use_timer='wxUSE_TIMER=no'
5602 fi
5603
5604else
5605
5606 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5607 if test "x$LINE" != x ; then
5608 eval "DEFAULT_$LINE"
5609 else
5610 no_cache=1
5611 fi
5612
5613 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5614
5615fi;
5616
5617 eval "$ac_cv_use_timer"
5618 if test "$no_cache" != 1; then
5619 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5620 fi
5621
5622 if test "$wxUSE_TIMER" = yes; then
5623 echo "$as_me:$LINENO: result: yes" >&5
5624echo "${ECHO_T}yes" >&6
5625 else
5626 echo "$as_me:$LINENO: result: no" >&5
5627echo "${ECHO_T}no" >&6
5628 fi
5629
5630
5631 enablestring=
5632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5633echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5634 no_cache=0
5635 # Check whether --enable-unicode or --disable-unicode was given.
5636if test "${enable_unicode+set}" = set; then
5637 enableval="$enable_unicode"
5638
5639 if test "$enableval" = yes; then
5640 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5641 else
5642 ac_cv_use_unicode='wxUSE_UNICODE=no'
5643 fi
5644
5645else
5646
5647 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5655
5656fi;
5657
5658 eval "$ac_cv_use_unicode"
5659 if test "$no_cache" != 1; then
5660 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5661 fi
5662
5663 if test "$wxUSE_UNICODE" = yes; then
5664 echo "$as_me:$LINENO: result: yes" >&5
5665echo "${ECHO_T}yes" >&6
5666 else
5667 echo "$as_me:$LINENO: result: no" >&5
5668echo "${ECHO_T}no" >&6
5669 fi
5670
5671
5672 enablestring=
5673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5674echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5675 no_cache=0
5676 # Check whether --enable-sound or --disable-sound was given.
5677if test "${enable_sound+set}" = set; then
5678 enableval="$enable_sound"
5679
5680 if test "$enableval" = yes; then
5681 ac_cv_use_sound='wxUSE_SOUND=yes'
5682 else
5683 ac_cv_use_sound='wxUSE_SOUND=no'
5684 fi
5685
5686else
5687
5688 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5689 if test "x$LINE" != x ; then
5690 eval "DEFAULT_$LINE"
5691 else
5692 no_cache=1
5693 fi
5694
5695 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5696
5697fi;
5698
5699 eval "$ac_cv_use_sound"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_SOUND" = yes; then
5705 echo "$as_me:$LINENO: result: yes" >&5
5706echo "${ECHO_T}yes" >&6
5707 else
5708 echo "$as_me:$LINENO: result: no" >&5
5709echo "${ECHO_T}no" >&6
5710 fi
5711
5712
5713 enablestring=
5714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5715echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5716 no_cache=0
5717 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5718if test "${enable_wxprintfv+set}" = set; then
5719 enableval="$enable_wxprintfv"
5720
5721 if test "$enableval" = yes; then
5722 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5723 else
5724 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5725 fi
5726
5727else
5728
5729 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5730 if test "x$LINE" != x ; then
5731 eval "DEFAULT_$LINE"
5732 else
5733 no_cache=1
5734 fi
5735
5736 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5737
5738fi;
5739
5740 eval "$ac_cv_use_wxprintfv"
5741 if test "$no_cache" != 1; then
5742 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5743 fi
5744
5745 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5746 echo "$as_me:$LINENO: result: yes" >&5
5747echo "${ECHO_T}yes" >&6
5748 else
5749 echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6
5751 fi
5752
5753
5754 enablestring=
5755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5756echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5757 no_cache=0
5758 # Check whether --enable-zipstream or --disable-zipstream was given.
5759if test "${enable_zipstream+set}" = set; then
5760 enableval="$enable_zipstream"
5761
5762 if test "$enableval" = yes; then
5763 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5764 else
5765 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5766 fi
5767
5768else
5769
5770 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5771 if test "x$LINE" != x ; then
5772 eval "DEFAULT_$LINE"
5773 else
5774 no_cache=1
5775 fi
5776
5777 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5778
5779fi;
5780
5781 eval "$ac_cv_use_zipstream"
5782 if test "$no_cache" != 1; then
5783 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5784 fi
5785
5786 if test "$wxUSE_ZIPSTREAM" = yes; then
5787 echo "$as_me:$LINENO: result: yes" >&5
5788echo "${ECHO_T}yes" >&6
5789 else
5790 echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
5792 fi
5793
5794
a848cd7e
SC
5795
5796 enablestring=
5797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5798echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5799 no_cache=0
5800 # Check whether --enable-url or --disable-url was given.
5801if test "${enable_url+set}" = set; then
5802 enableval="$enable_url"
5803
5804 if test "$enableval" = yes; then
5805 ac_cv_use_url='wxUSE_URL=yes'
5806 else
5807 ac_cv_use_url='wxUSE_URL=no'
5808 fi
5809
5810else
5811
5812 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5813 if test "x$LINE" != x ; then
5814 eval "DEFAULT_$LINE"
5815 else
5816 no_cache=1
5817 fi
5818
5819 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5820
5821fi;
5822
5823 eval "$ac_cv_use_url"
5824 if test "$no_cache" != 1; then
5825 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5826 fi
5827
5828 if test "$wxUSE_URL" = yes; then
5829 echo "$as_me:$LINENO: result: yes" >&5
5830echo "${ECHO_T}yes" >&6
5831 else
5832 echo "$as_me:$LINENO: result: no" >&5
5833echo "${ECHO_T}no" >&6
5834 fi
5835
5836
5837 enablestring=
5838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5839echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5840 no_cache=0
5841 # Check whether --enable-protocol or --disable-protocol was given.
5842if test "${enable_protocol+set}" = set; then
5843 enableval="$enable_protocol"
5844
5845 if test "$enableval" = yes; then
5846 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5847 else
5848 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5849 fi
5850
5851else
5852
5853 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5854 if test "x$LINE" != x ; then
5855 eval "DEFAULT_$LINE"
5856 else
5857 no_cache=1
5858 fi
5859
5860 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5861
5862fi;
5863
5864 eval "$ac_cv_use_protocol"
5865 if test "$no_cache" != 1; then
5866 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5867 fi
5868
5869 if test "$wxUSE_PROTOCOL" = yes; then
5870 echo "$as_me:$LINENO: result: yes" >&5
5871echo "${ECHO_T}yes" >&6
5872 else
5873 echo "$as_me:$LINENO: result: no" >&5
5874echo "${ECHO_T}no" >&6
5875 fi
5876
5877
5878 enablestring=
5879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5880echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5881 no_cache=0
5882 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5883if test "${enable_protocol_http+set}" = set; then
5884 enableval="$enable_protocol_http"
5885
5886 if test "$enableval" = yes; then
5887 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5888 else
5889 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5890 fi
5891
5892else
5893
5894 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5895 if test "x$LINE" != x ; then
5896 eval "DEFAULT_$LINE"
5897 else
5898 no_cache=1
5899 fi
5900
5901 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5902
5903fi;
5904
5905 eval "$ac_cv_use_protocol_http"
5906 if test "$no_cache" != 1; then
5907 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5908 fi
5909
5910 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5911 echo "$as_me:$LINENO: result: yes" >&5
5912echo "${ECHO_T}yes" >&6
5913 else
5914 echo "$as_me:$LINENO: result: no" >&5
5915echo "${ECHO_T}no" >&6
5916 fi
5917
5918
5919 enablestring=
5920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5921echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5922 no_cache=0
5923 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5924if test "${enable_protocol_ftp+set}" = set; then
5925 enableval="$enable_protocol_ftp"
5926
5927 if test "$enableval" = yes; then
5928 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5929 else
5930 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5931 fi
5932
5933else
5934
5935 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5936 if test "x$LINE" != x ; then
5937 eval "DEFAULT_$LINE"
5938 else
5939 no_cache=1
5940 fi
5941
5942 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5943
5944fi;
5945
5946 eval "$ac_cv_use_protocol_ftp"
5947 if test "$no_cache" != 1; then
5948 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5949 fi
5950
5951 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5952 echo "$as_me:$LINENO: result: yes" >&5
5953echo "${ECHO_T}yes" >&6
5954 else
5955 echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6
5957 fi
5958
5959
5960 enablestring=
5961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5962echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5963 no_cache=0
5964 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5965if test "${enable_protocol_file+set}" = set; then
5966 enableval="$enable_protocol_file"
5967
5968 if test "$enableval" = yes; then
5969 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5970 else
5971 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5972 fi
5973
5974else
5975
5976 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5984
5985fi;
5986
5987 eval "$ac_cv_use_protocol_file"
5988 if test "$no_cache" != 1; then
5989 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5990 fi
5991
5992 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5993 echo "$as_me:$LINENO: result: yes" >&5
5994echo "${ECHO_T}yes" >&6
5995 else
5996 echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
5998 fi
5999
6000
6001
6002
6003
6004 enablestring=
6005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6006echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6007 no_cache=0
6008 # Check whether --enable-threads or --disable-threads was given.
6009if test "${enable_threads+set}" = set; then
6010 enableval="$enable_threads"
6011
6012 if test "$enableval" = yes; then
6013 ac_cv_use_threads='wxUSE_THREADS=yes'
6014 else
6015 ac_cv_use_threads='wxUSE_THREADS=no'
6016 fi
6017
6018else
6019
6020 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6021 if test "x$LINE" != x ; then
6022 eval "DEFAULT_$LINE"
6023 else
6024 no_cache=1
6025 fi
6026
6027 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6028
6029fi;
6030
6031 eval "$ac_cv_use_threads"
6032 if test "$no_cache" != 1; then
6033 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6034 fi
6035
6036 if test "$wxUSE_THREADS" = yes; then
6037 echo "$as_me:$LINENO: result: yes" >&5
6038echo "${ECHO_T}yes" >&6
6039 else
6040 echo "$as_me:$LINENO: result: no" >&5
6041echo "${ECHO_T}no" >&6
6042 fi
6043
6044
6045if test "$wxUSE_GUI" = "yes"; then
6046
6047
6048
6049 enablestring=
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6052 no_cache=0
6053 # Check whether --enable-docview or --disable-docview was given.
6054if test "${enable_docview+set}" = set; then
6055 enableval="$enable_docview"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6059 else
6060 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6073
6074fi;
6075
6076 eval "$ac_cv_use_docview"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-help or --disable-help was given.
6095if test "${enable_help+set}" = set; then
6096 enableval="$enable_help"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_help='wxUSE_HELP=yes'
6100 else
6101 ac_cv_use_help='wxUSE_HELP=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6114
6115fi;
6116
6117 eval "$ac_cv_use_help"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_HELP" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6136if test "${enable_mshtmlhelp+set}" = set; then
6137 enableval="$enable_mshtmlhelp"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6141 else
6142 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6155
6156fi;
6157
6158 eval "$ac_cv_use_mshtmlhelp"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_MS_HTML_HELP" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-html or --disable-html was given.
6177if test "${enable_html+set}" = set; then
6178 enableval="$enable_html"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_html='wxUSE_HTML=yes'
6182 else
6183 ac_cv_use_html='wxUSE_HTML=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6196
6197fi;
6198
6199 eval "$ac_cv_use_html"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_HTML" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6218if test "${enable_htmlhelp+set}" = set; then
6219 enableval="$enable_htmlhelp"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6223 else
6224 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6237
6238fi;
6239
6240 eval "$ac_cv_use_htmlhelp"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_WXHTML_HELP" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-constraints or --disable-constraints was given.
6259if test "${enable_constraints+set}" = set; then
6260 enableval="$enable_constraints"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6264 else
6265 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6278
6279fi;
6280
6281 eval "$ac_cv_use_constraints"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_CONSTRAINTS" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-printarch or --disable-printarch was given.
6300if test "${enable_printarch+set}" = set; then
6301 enableval="$enable_printarch"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6305 else
6306 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6319
6320fi;
6321
6322 eval "$ac_cv_use_printarch"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
6336 enablestring=
6337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6338echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6339 no_cache=0
6340 # Check whether --enable-mdi or --disable-mdi was given.
6341if test "${enable_mdi+set}" = set; then
6342 enableval="$enable_mdi"
6343
6344 if test "$enableval" = yes; then
8a7b1113 6345 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6346 else
8a7b1113 6347 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6348 fi
6349
6350else
6351
8a7b1113 6352 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6353 if test "x$LINE" != x ; then
6354 eval "DEFAULT_$LINE"
6355 else
6356 no_cache=1
6357 fi
6358
8a7b1113 6359 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6360
6361fi;
6362
6363 eval "$ac_cv_use_mdi"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6366 fi
6367
8a7b1113
VZ
6368 if test "$wxUSE_MDI" = yes; then
6369 echo "$as_me:$LINENO: result: yes" >&5
6370echo "${ECHO_T}yes" >&6
6371 else
6372 echo "$as_me:$LINENO: result: no" >&5
6373echo "${ECHO_T}no" >&6
6374 fi
6375
6376
6377 enablestring=
6378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6379echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6380 no_cache=0
6381 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6382if test "${enable_mdidoc+set}" = set; then
6383 enableval="$enable_mdidoc"
6384
6385 if test "$enableval" = yes; then
6386 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6387 else
6388 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6389 fi
6390
6391else
6392
6393 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6401
6402fi;
6403
6404 eval "$ac_cv_use_mdidoc"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6407 fi
6408
a848cd7e
SC
6409 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6410 echo "$as_me:$LINENO: result: yes" >&5
6411echo "${ECHO_T}yes" >&6
6412 else
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
6415 fi
6416
6417
6418 enablestring=
6419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6420echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6421 no_cache=0
6422 # Check whether --enable-loggui or --disable-loggui was given.
6423if test "${enable_loggui+set}" = set; then
6424 enableval="$enable_loggui"
6425
6426 if test "$enableval" = yes; then
6427 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6428 else
6429 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6430 fi
6431
6432else
6433
6434 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6435 if test "x$LINE" != x ; then
6436 eval "DEFAULT_$LINE"
6437 else
6438 no_cache=1
6439 fi
6440
6441 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6442
6443fi;
6444
6445 eval "$ac_cv_use_loggui"
6446 if test "$no_cache" != 1; then
6447 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6448 fi
6449
6450 if test "$wxUSE_LOGGUI" = yes; then
6451 echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6
6453 else
6454 echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6
6456 fi
6457
6458
6459 enablestring=
6460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6461echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6462 no_cache=0
6463 # Check whether --enable-logwin or --disable-logwin was given.
6464if test "${enable_logwin+set}" = set; then
6465 enableval="$enable_logwin"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6469 else
6470 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6471 fi
6472
6473else
6474
6475 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6483
6484fi;
6485
6486 eval "$ac_cv_use_logwin"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_LOGWINDOW" = yes; then
6492 echo "$as_me:$LINENO: result: yes" >&5
6493echo "${ECHO_T}yes" >&6
6494 else
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497 fi
6498
6499
6500 enablestring=
6501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6502echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6503 no_cache=0
6504 # Check whether --enable-logdialog or --disable-logdialog was given.
6505if test "${enable_logdialog+set}" = set; then
6506 enableval="$enable_logdialog"
6507
6508 if test "$enableval" = yes; then
6509 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6510 else
6511 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6512 fi
6513
6514else
6515
6516 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6517 if test "x$LINE" != x ; then
6518 eval "DEFAULT_$LINE"
6519 else
6520 no_cache=1
6521 fi
6522
6523 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6524
6525fi;
6526
6527 eval "$ac_cv_use_logdialog"
6528 if test "$no_cache" != 1; then
6529 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6530 fi
6531
6532 if test "$wxUSE_LOGDIALOG" = yes; then
6533 echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6
6535 else
6536 echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538 fi
6539
6540
646b6ec1
VS
6541 enablestring=
6542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6543echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6544 no_cache=0
6545 # Check whether --enable-webkit or --disable-webkit was given.
6546if test "${enable_webkit+set}" = set; then
6547 enableval="$enable_webkit"
6548
6549 if test "$enableval" = yes; then
6550 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6551 else
6552 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6553 fi
6554
6555else
6556
6557 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6558 if test "x$LINE" != x ; then
6559 eval "DEFAULT_$LINE"
6560 else
6561 no_cache=1
6562 fi
6563
6564 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6565
6566fi;
6567
6568 eval "$ac_cv_use_webkit"
6569 if test "$no_cache" != 1; then
6570 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6571 fi
6572
6573 if test "$wxUSE_WEBKIT" = yes; then
6574 echo "$as_me:$LINENO: result: yes" >&5
6575echo "${ECHO_T}yes" >&6
6576 else
6577 echo "$as_me:$LINENO: result: no" >&5
6578echo "${ECHO_T}no" >&6
6579 fi
6580
6581
a848cd7e
SC
6582
6583 enablestring=
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6585echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6586 no_cache=0
6587 # Check whether --enable-postscript or --disable-postscript was given.
6588if test "${enable_postscript+set}" = set; then
6589 enableval="$enable_postscript"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6593 else
6594 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6607
6608fi;
6609
6610 eval "$ac_cv_use_postscript"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_POSTSCRIPT" = yes; then
6616 echo "$as_me:$LINENO: result: yes" >&5
6617echo "${ECHO_T}yes" >&6
6618 else
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
6621 fi
6622
6623
6624
6625
6626
6627 enablestring=
6628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6629echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6630 no_cache=0
6631 # Check whether --enable-prologio or --disable-prologio was given.
6632if test "${enable_prologio+set}" = set; then
6633 enableval="$enable_prologio"
6634
6635 if test "$enableval" = yes; then
6636 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6637 else
6638 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6639 fi
6640
6641else
6642
6643 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6644 if test "x$LINE" != x ; then
6645 eval "DEFAULT_$LINE"
6646 else
6647 no_cache=1
6648 fi
6649
6650 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6651
6652fi;
6653
6654 eval "$ac_cv_use_prologio"
6655 if test "$no_cache" != 1; then
6656 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6657 fi
6658
6659 if test "$wxUSE_PROLOGIO" = yes; then
6660 echo "$as_me:$LINENO: result: yes" >&5
6661echo "${ECHO_T}yes" >&6
6662 else
6663 echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6
6665 fi
6666
6667
6668 enablestring=
6669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6670echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6671 no_cache=0
6672 # Check whether --enable-resources or --disable-resources was given.
6673if test "${enable_resources+set}" = set; then
6674 enableval="$enable_resources"
6675
6676 if test "$enableval" = yes; then
6677 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6678 else
6679 ac_cv_use_resources='wxUSE_RESOURCES=no'
6680 fi
6681
6682else
6683
6684 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6685 if test "x$LINE" != x ; then
6686 eval "DEFAULT_$LINE"
6687 else
6688 no_cache=1
6689 fi
6690
6691 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6692
6693fi;
6694
6695 eval "$ac_cv_use_resources"
6696 if test "$no_cache" != 1; then
6697 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6698 fi
6699
6700 if test "$wxUSE_RESOURCES" = yes; then
6701 echo "$as_me:$LINENO: result: yes" >&5
6702echo "${ECHO_T}yes" >&6
6703 else
6704 echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6
6706 fi
6707
6708
6709
6710
6711 enablestring=
6712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6713echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6714 no_cache=0
6715 # Check whether --enable-clipboard or --disable-clipboard was given.
6716if test "${enable_clipboard+set}" = set; then
6717 enableval="$enable_clipboard"
6718
6719 if test "$enableval" = yes; then
6720 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6721 else
6722 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6723 fi
6724
6725else
6726
6727 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6728 if test "x$LINE" != x ; then
6729 eval "DEFAULT_$LINE"
6730 else
6731 no_cache=1
6732 fi
6733
6734 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6735
6736fi;
6737
6738 eval "$ac_cv_use_clipboard"
6739 if test "$no_cache" != 1; then
6740 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6741 fi
6742
6743 if test "$wxUSE_CLIPBOARD" = yes; then
6744 echo "$as_me:$LINENO: result: yes" >&5
6745echo "${ECHO_T}yes" >&6
6746 else
6747 echo "$as_me:$LINENO: result: no" >&5
6748echo "${ECHO_T}no" >&6
6749 fi
6750
6751
6752 enablestring=
6753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6754echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6755 no_cache=0
6756 # Check whether --enable-dnd or --disable-dnd was given.
6757if test "${enable_dnd+set}" = set; then
6758 enableval="$enable_dnd"
6759
6760 if test "$enableval" = yes; then
6761 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6762 else
6763 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6764 fi
6765
6766else
6767
6768 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6769 if test "x$LINE" != x ; then
6770 eval "DEFAULT_$LINE"
6771 else
6772 no_cache=1
6773 fi
6774
6775 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6776
6777fi;
6778
6779 eval "$ac_cv_use_dnd"
6780 if test "$no_cache" != 1; then
6781 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6782 fi
6783
6784 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6785 echo "$as_me:$LINENO: result: yes" >&5
6786echo "${ECHO_T}yes" >&6
6787 else
6788 echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6
6790 fi
6791
6792
6793 enablestring=
6794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6795echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6796 no_cache=0
6797 # Check whether --enable-metafile or --disable-metafile was given.
6798if test "${enable_metafile+set}" = set; then
6799 enableval="$enable_metafile"
6800
6801 if test "$enableval" = yes; then
6802 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6803 else
6804 ac_cv_use_metafile='wxUSE_METAFILE=no'
6805 fi
6806
6807else
6808
6809 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6810 if test "x$LINE" != x ; then
6811 eval "DEFAULT_$LINE"
6812 else
6813 no_cache=1
6814 fi
6815
6816 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6817
6818fi;
6819
6820 eval "$ac_cv_use_metafile"
6821 if test "$no_cache" != 1; then
6822 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6823 fi
6824
6825 if test "$wxUSE_METAFILE" = yes; then
6826 echo "$as_me:$LINENO: result: yes" >&5
6827echo "${ECHO_T}yes" >&6
6828 else
6829 echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6
6831 fi
6832
6833
6834
6835
6836
6837 enablestring=
6838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6839echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6840 no_cache=0
6841 # Check whether --enable-controls or --disable-controls was given.
6842if test "${enable_controls+set}" = set; then
6843 enableval="$enable_controls"
6844
6845 if test "$enableval" = yes; then
6846 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6847 else
6848 ac_cv_use_controls='wxUSE_CONTROLS=no'
6849 fi
6850
6851else
6852
6853 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6854 if test "x$LINE" != x ; then
6855 eval "DEFAULT_$LINE"
6856 else
6857 no_cache=1
6858 fi
6859
6860 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6861
6862fi;
6863
6864 eval "$ac_cv_use_controls"
6865 if test "$no_cache" != 1; then
6866 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6867 fi
6868
6869 if test "$wxUSE_CONTROLS" = yes; then
6870 echo "$as_me:$LINENO: result: yes" >&5
6871echo "${ECHO_T}yes" >&6
6872 else
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
6875 fi
6876
6877
6878if test "$wxUSE_CONTROLS" = "yes"; then
6879 DEFAULT_wxUSE_ACCEL=yes
6880 DEFAULT_wxUSE_BMPBUTTON=yes
6881 DEFAULT_wxUSE_BUTTON=yes
6882 DEFAULT_wxUSE_CALCTRL=no
6883 DEFAULT_wxUSE_CARET=yes
6884 DEFAULT_wxUSE_COMBOBOX=yes
6885 DEFAULT_wxUSE_CHECKBOX=yes
6886 DEFAULT_wxUSE_CHECKLISTBOX=yes
6887 DEFAULT_wxUSE_CHOICE=yes
6888 DEFAULT_wxUSE_GAUGE=yes
6889 DEFAULT_wxUSE_GRID=yes
6890 DEFAULT_wxUSE_IMAGLIST=yes
6891 DEFAULT_wxUSE_LISTBOOK=yes
6892 DEFAULT_wxUSE_LISTBOX=yes
6893 DEFAULT_wxUSE_LISTCTRL=yes
6894 DEFAULT_wxUSE_NOTEBOOK=yes
6895 DEFAULT_wxUSE_RADIOBOX=yes
6896 DEFAULT_wxUSE_RADIOBTN=yes
6897 DEFAULT_wxUSE_SASH=yes
6898 DEFAULT_wxUSE_SCROLLBAR=yes
6899 DEFAULT_wxUSE_SLIDER=yes
6900 DEFAULT_wxUSE_SPINBTN=yes
6901 DEFAULT_wxUSE_SPINCTRL=yes
6902 DEFAULT_wxUSE_SPLITTER=yes
6903 DEFAULT_wxUSE_STATBMP=yes
6904 DEFAULT_wxUSE_STATBOX=yes
6905 DEFAULT_wxUSE_STATLINE=yes
6906 DEFAULT_wxUSE_STATUSBAR=yes
6907 DEFAULT_wxUSE_TAB_DIALOG=yes
6908 DEFAULT_wxUSE_TOGGLEBTN=yes
6909 DEFAULT_wxUSE_TOOLBAR=yes
6910 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6911 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6912 DEFAULT_wxUSE_TOOLTIPS=yes
6913 DEFAULT_wxUSE_TREECTRL=yes
6914 DEFAULT_wxUSE_POPUPWIN=yes
6915 DEFAULT_wxUSE_TIPWINDOW=yes
6916elif test "$wxUSE_CONTROLS" = "no"; then
6917 DEFAULT_wxUSE_ACCEL=no
6918 DEFAULT_wxUSE_BMPBUTTON=no
6919 DEFAULT_wxUSE_BUTTON=no
6920 DEFAULT_wxUSE_CALCTRL=no
6921 DEFAULT_wxUSE_CARET=no
6922 DEFAULT_wxUSE_COMBOBOX=no
6923 DEFAULT_wxUSE_CHECKBOX=no
6924 DEFAULT_wxUSE_CHECKLISTBOX=no
6925 DEFAULT_wxUSE_CHOICE=no
6926 DEFAULT_wxUSE_GAUGE=no
6927 DEFAULT_wxUSE_GRID=no
6928 DEFAULT_wxUSE_IMAGLIST=no
6929 DEFAULT_wxUSE_LISTBOOK=no
6930 DEFAULT_wxUSE_LISTBOX=no
6931 DEFAULT_wxUSE_LISTCTRL=no
6932 DEFAULT_wxUSE_NOTEBOOK=no
6933 DEFAULT_wxUSE_RADIOBOX=no
6934 DEFAULT_wxUSE_RADIOBTN=no
6935 DEFAULT_wxUSE_SASH=no
6936 DEFAULT_wxUSE_SCROLLBAR=no
6937 DEFAULT_wxUSE_SLIDER=no
6938 DEFAULT_wxUSE_SPINBTN=no
6939 DEFAULT_wxUSE_SPINCTRL=no
6940 DEFAULT_wxUSE_SPLITTER=no
6941 DEFAULT_wxUSE_STATBMP=no
6942 DEFAULT_wxUSE_STATBOX=no
6943 DEFAULT_wxUSE_STATLINE=no
6944 DEFAULT_wxUSE_STATUSBAR=no
6945 DEFAULT_wxUSE_TAB_DIALOG=no
6946 DEFAULT_wxUSE_TOGGLEBTN=no
6947 DEFAULT_wxUSE_TOOLBAR=no
6948 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6949 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6950 DEFAULT_wxUSE_TOOLTIPS=no
6951 DEFAULT_wxUSE_TREECTRL=no
6952 DEFAULT_wxUSE_POPUPWIN=no
6953 DEFAULT_wxUSE_TIPWINDOW=no
6954fi
6955
6956## FIXME: This is a blatant hack
6957if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6958 wxUSE_PRINTING_ARCHITECTURE=no
6959 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
6960 DEFAULT_wxUSE_TOOLTIPS=no
6961 DEFAULT_wxUSE_DRAGIMAGE=no
6962fi
6963
6964
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-accel or --disable-accel was given.
6970if test "${enable_accel+set}" = set; then
6971 enableval="$enable_accel"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_accel='wxUSE_ACCEL=yes'
6975 else
6976 ac_cv_use_accel='wxUSE_ACCEL=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6989
6990fi;
6991
6992 eval "$ac_cv_use_accel"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_ACCEL" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
7003 fi
7004
7005
7006 enablestring=
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7008echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7009 no_cache=0
7010 # Check whether --enable-button or --disable-button was given.
7011if test "${enable_button+set}" = set; then
7012 enableval="$enable_button"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_button='wxUSE_BUTTON=yes'
7016 else
7017 ac_cv_use_button='wxUSE_BUTTON=no'
7018 fi
7019
7020else
7021
7022 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7030
7031fi;
7032
7033 eval "$ac_cv_use_button"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_BUTTON" = yes; then
7039 echo "$as_me:$LINENO: result: yes" >&5
7040echo "${ECHO_T}yes" >&6
7041 else
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
7044 fi
7045
7046
7047 enablestring=
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7049echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7050 no_cache=0
7051 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7052if test "${enable_bmpbutton+set}" = set; then
7053 enableval="$enable_bmpbutton"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7057 else
7058 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7059 fi
7060
7061else
7062
7063 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7071
7072fi;
7073
7074 eval "$ac_cv_use_bmpbutton"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_BMPBUTTON" = yes; then
7080 echo "$as_me:$LINENO: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085 fi
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-calendar or --disable-calendar was given.
7093if test "${enable_calendar+set}" = set; then
7094 enableval="$enable_calendar"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7098 else
7099 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7112
7113fi;
7114
7115 eval "$ac_cv_use_calendar"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CALCTRL" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-caret or --disable-caret was given.
7134if test "${enable_caret+set}" = set; then
7135 enableval="$enable_caret"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_caret='wxUSE_CARET=yes'
7139 else
7140 ac_cv_use_caret='wxUSE_CARET=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7153
7154fi;
7155
7156 eval "$ac_cv_use_caret"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_CARET" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-checkbox or --disable-checkbox was given.
7175if test "${enable_checkbox+set}" = set; then
7176 enableval="$enable_checkbox"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7180 else
7181 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7194
7195fi;
7196
7197 eval "$ac_cv_use_checkbox"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_CHECKBOX" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211 enablestring=
7212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7213echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7214 no_cache=0
7215 # Check whether --enable-checklst or --disable-checklst was given.
7216if test "${enable_checklst+set}" = set; then
7217 enableval="$enable_checklst"
7218
7219 if test "$enableval" = yes; then
7220 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7221 else
7222 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7223 fi
7224
7225else
7226
7227 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7235
7236fi;
7237
7238 eval "$ac_cv_use_checklst"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_CHECKLST" = yes; then
7244 echo "$as_me:$LINENO: result: yes" >&5
7245echo "${ECHO_T}yes" >&6
7246 else
7247 echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6
7249 fi
7250
7251
7252 enablestring=
7253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7254echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7255 no_cache=0
7256 # Check whether --enable-choice or --disable-choice was given.
7257if test "${enable_choice+set}" = set; then
7258 enableval="$enable_choice"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_choice='wxUSE_CHOICE=yes'
7262 else
7263 ac_cv_use_choice='wxUSE_CHOICE=no'
7264 fi
7265
7266else
7267
7268 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7276
7277fi;
7278
7279 eval "$ac_cv_use_choice"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_CHOICE" = yes; then
7285 echo "$as_me:$LINENO: result: yes" >&5
7286echo "${ECHO_T}yes" >&6
7287 else
7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
7290 fi
7291
7292
7293 enablestring=
7294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7295echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7296 no_cache=0
7297 # Check whether --enable-combobox or --disable-combobox was given.
7298if test "${enable_combobox+set}" = set; then
7299 enableval="$enable_combobox"
7300
7301 if test "$enableval" = yes; then
7302 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7303 else
7304 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7305 fi
7306
7307else
7308
7309 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7317
7318fi;
7319
7320 eval "$ac_cv_use_combobox"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_COMBOBOX" = yes; then
7326 echo "$as_me:$LINENO: result: yes" >&5
7327echo "${ECHO_T}yes" >&6
7328 else
7329 echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6
7331 fi
7332
7333
7334 enablestring=
7335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7336echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7337 no_cache=0
7338 # Check whether --enable-display or --disable-display was given.
7339if test "${enable_display+set}" = set; then
7340 enableval="$enable_display"
7341
7342 if test "$enableval" = yes; then
7343 ac_cv_use_display='wxUSE_DISPLAY=yes'
7344 else
7345 ac_cv_use_display='wxUSE_DISPLAY=no'
7346 fi
7347
7348else
7349
7350 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7351 if test "x$LINE" != x ; then
7352 eval "DEFAULT_$LINE"
7353 else
7354 no_cache=1
7355 fi
7356
7357 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7358
7359fi;
7360
7361 eval "$ac_cv_use_display"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_DISPLAY" = yes; then
7367 echo "$as_me:$LINENO: result: yes" >&5
7368echo "${ECHO_T}yes" >&6
7369 else
7370 echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6
7372 fi
7373
7374
7375 enablestring=
7376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7377echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7378 no_cache=0
7379 # Check whether --enable-gauge or --disable-gauge was given.
7380if test "${enable_gauge+set}" = set; then
7381 enableval="$enable_gauge"
7382
7383 if test "$enableval" = yes; then
7384 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7385 else
7386 ac_cv_use_gauge='wxUSE_GAUGE=no'
7387 fi
7388
7389else
7390
7391 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7392 if test "x$LINE" != x ; then
7393 eval "DEFAULT_$LINE"
7394 else
7395 no_cache=1
7396 fi
7397
7398 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7399
7400fi;
7401
7402 eval "$ac_cv_use_gauge"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_GAUGE" = yes; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409echo "${ECHO_T}yes" >&6
7410 else
7411 echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6
7413 fi
7414
7415
7416 enablestring=
7417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7418echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7419 no_cache=0
7420 # Check whether --enable-grid or --disable-grid was given.
7421if test "${enable_grid+set}" = set; then
7422 enableval="$enable_grid"
7423
7424 if test "$enableval" = yes; then
7425 ac_cv_use_grid='wxUSE_GRID=yes'
7426 else
7427 ac_cv_use_grid='wxUSE_GRID=no'
7428 fi
7429
7430else
7431
7432 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7440
7441fi;
7442
7443 eval "$ac_cv_use_grid"
7444 if test "$no_cache" != 1; then
7445 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7446 fi
7447
7448 if test "$wxUSE_GRID" = yes; then
7449 echo "$as_me:$LINENO: result: yes" >&5
7450echo "${ECHO_T}yes" >&6
7451 else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454 fi
7455
7456
7457 enablestring=
7458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7459echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7460 no_cache=0
7461 # Check whether --enable-imaglist or --disable-imaglist was given.
7462if test "${enable_imaglist+set}" = set; then
7463 enableval="$enable_imaglist"
7464
7465 if test "$enableval" = yes; then
7466 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7467 else
7468 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7469 fi
7470
7471else
7472
7473 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7474 if test "x$LINE" != x ; then
7475 eval "DEFAULT_$LINE"
7476 else
7477 no_cache=1
7478 fi
7479
7480 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7481
7482fi;
7483
7484 eval "$ac_cv_use_imaglist"
7485 if test "$no_cache" != 1; then
7486 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7487 fi
7488
7489 if test "$wxUSE_IMAGLIST" = yes; then
7490 echo "$as_me:$LINENO: result: yes" >&5
7491echo "${ECHO_T}yes" >&6
7492 else
7493 echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6
7495 fi
7496
7497
7498 enablestring=
7499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7500echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7501 no_cache=0
7502 # Check whether --enable-listbook or --disable-listbook was given.
7503if test "${enable_listbook+set}" = set; then
7504 enableval="$enable_listbook"
7505
7506 if test "$enableval" = yes; then
7507 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7508 else
7509 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7510 fi
7511
7512else
7513
7514 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7515 if test "x$LINE" != x ; then
7516 eval "DEFAULT_$LINE"
7517 else
7518 no_cache=1
7519 fi
7520
7521 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7522
7523fi;
7524
7525 eval "$ac_cv_use_listbook"
7526 if test "$no_cache" != 1; then
7527 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7528 fi
7529
7530 if test "$wxUSE_LISTBOOK" = yes; then
7531 echo "$as_me:$LINENO: result: yes" >&5
7532echo "${ECHO_T}yes" >&6
7533 else
7534 echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6
7536 fi
7537
7538
7539 enablestring=
7540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7541echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7542 no_cache=0
7543 # Check whether --enable-listbox or --disable-listbox was given.
7544if test "${enable_listbox+set}" = set; then
7545 enableval="$enable_listbox"
7546
7547 if test "$enableval" = yes; then
7548 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7549 else
7550 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7551 fi
7552
7553else
7554
7555 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7556 if test "x$LINE" != x ; then
7557 eval "DEFAULT_$LINE"
7558 else
7559 no_cache=1
7560 fi
7561
7562 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7563
7564fi;
7565
7566 eval "$ac_cv_use_listbox"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_LISTBOX" = yes; then
7572 echo "$as_me:$LINENO: result: yes" >&5
7573echo "${ECHO_T}yes" >&6
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
7577 fi
7578
7579
7580 enablestring=
7581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7582echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7583 no_cache=0
7584 # Check whether --enable-listctrl or --disable-listctrl was given.
7585if test "${enable_listctrl+set}" = set; then
7586 enableval="$enable_listctrl"
7587
7588 if test "$enableval" = yes; then
7589 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7590 else
7591 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7592 fi
7593
7594else
7595
7596 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7597 if test "x$LINE" != x ; then
7598 eval "DEFAULT_$LINE"
7599 else
7600 no_cache=1
7601 fi
7602
7603 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7604
7605fi;
7606
7607 eval "$ac_cv_use_listctrl"
7608 if test "$no_cache" != 1; then
7609 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7610 fi
7611
7612 if test "$wxUSE_LISTCTRL" = yes; then
7613 echo "$as_me:$LINENO: result: yes" >&5
7614echo "${ECHO_T}yes" >&6
7615 else
7616 echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
7618 fi
7619
7620
7621 enablestring=
7622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7623echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7624 no_cache=0
7625 # Check whether --enable-notebook or --disable-notebook was given.
7626if test "${enable_notebook+set}" = set; then
7627 enableval="$enable_notebook"
7628
7629 if test "$enableval" = yes; then
7630 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7631 else
7632 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7633 fi
7634
7635else
7636
7637 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7638 if test "x$LINE" != x ; then
7639 eval "DEFAULT_$LINE"
7640 else
7641 no_cache=1
7642 fi
7643
7644 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7645
7646fi;
7647
7648 eval "$ac_cv_use_notebook"
7649 if test "$no_cache" != 1; then
7650 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7651 fi
7652
7653 if test "$wxUSE_NOTEBOOK" = yes; then
7654 echo "$as_me:$LINENO: result: yes" >&5
7655echo "${ECHO_T}yes" >&6
7656 else
7657 echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
7659 fi
7660
7661
7662 enablestring=
7663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7664echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7665 no_cache=0
7666 # Check whether --enable-radiobox or --disable-radiobox was given.
7667if test "${enable_radiobox+set}" = set; then
7668 enableval="$enable_radiobox"
7669
7670 if test "$enableval" = yes; then
7671 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7672 else
7673 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7674 fi
7675
7676else
7677
7678 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7679 if test "x$LINE" != x ; then
7680 eval "DEFAULT_$LINE"
7681 else
7682 no_cache=1
7683 fi
7684
7685 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7686
7687fi;
7688
7689 eval "$ac_cv_use_radiobox"
7690 if test "$no_cache" != 1; then
7691 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7692 fi
7693
7694 if test "$wxUSE_RADIOBOX" = yes; then
7695 echo "$as_me:$LINENO: result: yes" >&5
7696echo "${ECHO_T}yes" >&6
7697 else
7698 echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6
7700 fi
7701
7702
7703 enablestring=
7704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7705echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7706 no_cache=0
7707 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7708if test "${enable_radiobtn+set}" = set; then
7709 enableval="$enable_radiobtn"
7710
7711 if test "$enableval" = yes; then
7712 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7713 else
7714 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7715 fi
7716
7717else
7718
7719 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7727
7728fi;
7729
7730 eval "$ac_cv_use_radiobtn"
7731 if test "$no_cache" != 1; then
7732 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7733 fi
7734
7735 if test "$wxUSE_RADIOBTN" = yes; then
7736 echo "$as_me:$LINENO: result: yes" >&5
7737echo "${ECHO_T}yes" >&6
7738 else
7739 echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6
7741 fi
7742
7743
7744 enablestring=
7745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7746echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7747 no_cache=0
7748 # Check whether --enable-sash or --disable-sash was given.
7749if test "${enable_sash+set}" = set; then
7750 enableval="$enable_sash"
7751
7752 if test "$enableval" = yes; then
7753 ac_cv_use_sash='wxUSE_SASH=yes'
7754 else
7755 ac_cv_use_sash='wxUSE_SASH=no'
7756 fi
7757
7758else
7759
7760 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7761 if test "x$LINE" != x ; then
7762 eval "DEFAULT_$LINE"
7763 else
7764 no_cache=1
7765 fi
7766
7767 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7768
7769fi;
7770
7771 eval "$ac_cv_use_sash"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_SASH" = yes; then
7777 echo "$as_me:$LINENO: result: yes" >&5
7778echo "${ECHO_T}yes" >&6
7779 else
7780 echo "$as_me:$LINENO: result: no" >&5
7781echo "${ECHO_T}no" >&6
7782 fi
7783
7784
7785 enablestring=
7786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7787echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7788 no_cache=0
7789 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7790if test "${enable_scrollbar+set}" = set; then
7791 enableval="$enable_scrollbar"
7792
7793 if test "$enableval" = yes; then
7794 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7795 else
7796 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7797 fi
7798
7799else
7800
7801 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7802 if test "x$LINE" != x ; then
7803 eval "DEFAULT_$LINE"
7804 else
7805 no_cache=1
7806 fi
7807
7808 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7809
7810fi;
7811
7812 eval "$ac_cv_use_scrollbar"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_SCROLLBAR" = yes; then
7818 echo "$as_me:$LINENO: result: yes" >&5
7819echo "${ECHO_T}yes" >&6
7820 else
7821 echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
7823 fi
7824
7825
7826 enablestring=
7827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7828echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7829 no_cache=0
7830 # Check whether --enable-slider or --disable-slider was given.
7831if test "${enable_slider+set}" = set; then
7832 enableval="$enable_slider"
7833
7834 if test "$enableval" = yes; then
7835 ac_cv_use_slider='wxUSE_SLIDER=yes'
7836 else
7837 ac_cv_use_slider='wxUSE_SLIDER=no'
7838 fi
7839
7840else
7841
7842 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7843 if test "x$LINE" != x ; then
7844 eval "DEFAULT_$LINE"
7845 else
7846 no_cache=1
7847 fi
7848
7849 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7850
7851fi;
7852
7853 eval "$ac_cv_use_slider"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_SLIDER" = yes; then
7859 echo "$as_me:$LINENO: result: yes" >&5
7860echo "${ECHO_T}yes" >&6
7861 else
7862 echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6
7864 fi
7865
7866
7867 enablestring=
7868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7869echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7870 no_cache=0
7871 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7872if test "${enable_spinbtn+set}" = set; then
7873 enableval="$enable_spinbtn"
7874
7875 if test "$enableval" = yes; then
7876 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7877 else
7878 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7879 fi
7880
7881else
7882
7883 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7891
7892fi;
7893
7894 eval "$ac_cv_use_spinbtn"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_SPINBTN" = yes; then
7900 echo "$as_me:$LINENO: result: yes" >&5
7901echo "${ECHO_T}yes" >&6
7902 else
7903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
7905 fi
7906
7907
7908 enablestring=
7909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7910echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7911 no_cache=0
7912 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7913if test "${enable_spinctrl+set}" = set; then
7914 enableval="$enable_spinctrl"
7915
7916 if test "$enableval" = yes; then
7917 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7918 else
7919 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7920 fi
7921
7922else
7923
7924 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7925 if test "x$LINE" != x ; then
7926 eval "DEFAULT_$LINE"
7927 else
7928 no_cache=1
7929 fi
7930
7931 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7932
7933fi;
7934
7935 eval "$ac_cv_use_spinctrl"
7936 if test "$no_cache" != 1; then
7937 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7938 fi
7939
7940 if test "$wxUSE_SPINCTRL" = yes; then
7941 echo "$as_me:$LINENO: result: yes" >&5
7942echo "${ECHO_T}yes" >&6
7943 else
7944 echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
7946 fi
7947
7948
7949 enablestring=
7950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7951echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7952 no_cache=0
7953 # Check whether --enable-splitter or --disable-splitter was given.
7954if test "${enable_splitter+set}" = set; then
7955 enableval="$enable_splitter"
7956
7957 if test "$enableval" = yes; then
7958 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7959 else
7960 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7961 fi
7962
7963else
7964
7965 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7966 if test "x$LINE" != x ; then
7967 eval "DEFAULT_$LINE"
7968 else
7969 no_cache=1
7970 fi
7971
7972 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7973
7974fi;
7975
7976 eval "$ac_cv_use_splitter"
7977 if test "$no_cache" != 1; then
7978 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7979 fi
7980
7981 if test "$wxUSE_SPLITTER" = yes; then
7982 echo "$as_me:$LINENO: result: yes" >&5
7983echo "${ECHO_T}yes" >&6
7984 else
7985 echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6
7987 fi
7988
7989
7990 enablestring=
7991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7992echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7993 no_cache=0
7994 # Check whether --enable-statbmp or --disable-statbmp was given.
7995if test "${enable_statbmp+set}" = set; then
7996 enableval="$enable_statbmp"
7997
7998 if test "$enableval" = yes; then
7999 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8000 else
8001 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8002 fi
8003
8004else
8005
8006 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8007 if test "x$LINE" != x ; then
8008 eval "DEFAULT_$LINE"
8009 else
8010 no_cache=1
8011 fi
8012
8013 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8014
8015fi;
8016
8017 eval "$ac_cv_use_statbmp"
8018 if test "$no_cache" != 1; then
8019 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8020 fi
8021
8022 if test "$wxUSE_STATBMP" = yes; then
8023 echo "$as_me:$LINENO: result: yes" >&5
8024echo "${ECHO_T}yes" >&6
8025 else
8026 echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
8028 fi
8029
8030
8031 enablestring=
8032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8033echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8034 no_cache=0
8035 # Check whether --enable-statbox or --disable-statbox was given.
8036if test "${enable_statbox+set}" = set; then
8037 enableval="$enable_statbox"
8038
8039 if test "$enableval" = yes; then
8040 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8041 else
8042 ac_cv_use_statbox='wxUSE_STATBOX=no'
8043 fi
8044
8045else
8046
8047 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8055
8056fi;
8057
8058 eval "$ac_cv_use_statbox"
8059 if test "$no_cache" != 1; then
8060 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8061 fi
8062
8063 if test "$wxUSE_STATBOX" = yes; then
8064 echo "$as_me:$LINENO: result: yes" >&5
8065echo "${ECHO_T}yes" >&6
8066 else
8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
8069 fi
8070
8071
8072 enablestring=
8073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8074echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8075 no_cache=0
8076 # Check whether --enable-statline or --disable-statline was given.
8077if test "${enable_statline+set}" = set; then
8078 enableval="$enable_statline"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_statline='wxUSE_STATLINE=yes'
8082 else
8083 ac_cv_use_statline='wxUSE_STATLINE=no'
8084 fi
8085
8086else
8087
8088 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8096
8097fi;
8098
8099 eval "$ac_cv_use_statline"
8100 if test "$no_cache" != 1; then
8101 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8102 fi
8103
8104 if test "$wxUSE_STATLINE" = yes; then
8105 echo "$as_me:$LINENO: result: yes" >&5
8106echo "${ECHO_T}yes" >&6
8107 else
8108 echo "$as_me:$LINENO: result: no" >&5
8109echo "${ECHO_T}no" >&6
8110 fi
8111
8112
8113 enablestring=
8114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8115echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8116 no_cache=0
8117 # Check whether --enable-stattext or --disable-stattext was given.
8118if test "${enable_stattext+set}" = set; then
8119 enableval="$enable_stattext"
8120
8121 if test "$enableval" = yes; then
8122 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8123 else
8124 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8125 fi
8126
8127else
8128
8129 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8130 if test "x$LINE" != x ; then
8131 eval "DEFAULT_$LINE"
8132 else
8133 no_cache=1
8134 fi
8135
8136 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8137
8138fi;
8139
8140 eval "$ac_cv_use_stattext"
8141 if test "$no_cache" != 1; then
8142 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8143 fi
8144
8145 if test "$wxUSE_STATTEXT" = yes; then
8146 echo "$as_me:$LINENO: result: yes" >&5
8147echo "${ECHO_T}yes" >&6
8148 else
8149 echo "$as_me:$LINENO: result: no" >&5
8150echo "${ECHO_T}no" >&6
8151 fi
8152
8153
8154 enablestring=
8155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8156echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8157 no_cache=0
8158 # Check whether --enable-statusbar or --disable-statusbar was given.
8159if test "${enable_statusbar+set}" = set; then
8160 enableval="$enable_statusbar"
8161
8162 if test "$enableval" = yes; then
8163 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8164 else
8165 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8166 fi
8167
8168else
8169
8170 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8171 if test "x$LINE" != x ; then
8172 eval "DEFAULT_$LINE"
8173 else
8174 no_cache=1
8175 fi
8176
8177 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8178
8179fi;
8180
8181 eval "$ac_cv_use_statusbar"
8182 if test "$no_cache" != 1; then
8183 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8184 fi
8185
8186 if test "$wxUSE_STATUSBAR" = yes; then
8187 echo "$as_me:$LINENO: result: yes" >&5
8188echo "${ECHO_T}yes" >&6
8189 else
8190 echo "$as_me:$LINENO: result: no" >&5
8191echo "${ECHO_T}no" >&6
8192 fi
8193
8194
8195 enablestring=
8196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8197echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8198 no_cache=0
8199 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8200if test "${enable_tabdialog+set}" = set; then
8201 enableval="$enable_tabdialog"
8202
8203 if test "$enableval" = yes; then
8204 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8205 else
8206 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8207 fi
8208
8209else
8210
8211 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8219
8220fi;
8221
8222 eval "$ac_cv_use_tabdialog"
8223 if test "$no_cache" != 1; then
8224 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8225 fi
8226
8227 if test "$wxUSE_TABDIALOG" = yes; then
8228 echo "$as_me:$LINENO: result: yes" >&5
8229echo "${ECHO_T}yes" >&6
8230 else
8231 echo "$as_me:$LINENO: result: no" >&5
8232echo "${ECHO_T}no" >&6
8233 fi
8234
8235
8236 enablestring=
8237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8238echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8239 no_cache=0
8240 # Check whether --enable-textctrl or --disable-textctrl was given.
8241if test "${enable_textctrl+set}" = set; then
8242 enableval="$enable_textctrl"
8243
8244 if test "$enableval" = yes; then
8245 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8246 else
8247 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8248 fi
8249
8250else
8251
8252 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8253 if test "x$LINE" != x ; then
8254 eval "DEFAULT_$LINE"
8255 else
8256 no_cache=1
8257 fi
8258
8259 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8260
8261fi;
8262
8263 eval "$ac_cv_use_textctrl"
8264 if test "$no_cache" != 1; then
8265 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8266 fi
8267
8268 if test "$wxUSE_TEXTCTRL" = yes; then
8269 echo "$as_me:$LINENO: result: yes" >&5
8270echo "${ECHO_T}yes" >&6
8271 else
8272 echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6
8274 fi
8275
8276
8277 enablestring=
8278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8279echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8280 no_cache=0
8281 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8282if test "${enable_togglebtn+set}" = set; then
8283 enableval="$enable_togglebtn"
8284
8285 if test "$enableval" = yes; then
8286 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8287 else
8288 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8289 fi
8290
8291else
8292
8293 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8294 if test "x$LINE" != x ; then
8295 eval "DEFAULT_$LINE"
8296 else
8297 no_cache=1
8298 fi
8299
8300 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8301
8302fi;
8303
8304 eval "$ac_cv_use_togglebtn"
8305 if test "$no_cache" != 1; then
8306 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8307 fi
8308
8309 if test "$wxUSE_TOGGLEBTN" = yes; then
8310 echo "$as_me:$LINENO: result: yes" >&5
8311echo "${ECHO_T}yes" >&6
8312 else
8313 echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6
8315 fi
8316
8317
8318 enablestring=
8319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8320echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8321 no_cache=0
8322 # Check whether --enable-toolbar or --disable-toolbar was given.
8323if test "${enable_toolbar+set}" = set; then
8324 enableval="$enable_toolbar"
8325
8326 if test "$enableval" = yes; then
8327 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8328 else
8329 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8330 fi
8331
8332else
8333
8334 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8335 if test "x$LINE" != x ; then
8336 eval "DEFAULT_$LINE"
8337 else
8338 no_cache=1
8339 fi
8340
8341 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8342
8343fi;
8344
8345 eval "$ac_cv_use_toolbar"
8346 if test "$no_cache" != 1; then
8347 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8348 fi
8349
8350 if test "$wxUSE_TOOLBAR" = yes; then
8351 echo "$as_me:$LINENO: result: yes" >&5
8352echo "${ECHO_T}yes" >&6
8353 else
8354 echo "$as_me:$LINENO: result: no" >&5
8355echo "${ECHO_T}no" >&6
8356 fi
8357
8358
8359 enablestring=
8360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8361echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8362 no_cache=0
8363 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8364if test "${enable_tbarnative+set}" = set; then
8365 enableval="$enable_tbarnative"
8366
8367 if test "$enableval" = yes; then
8368 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8369 else
8370 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8371 fi
8372
8373else
8374
8375 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8376 if test "x$LINE" != x ; then
8377 eval "DEFAULT_$LINE"
8378 else
8379 no_cache=1
8380 fi
8381
8382 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8383
8384fi;
8385
8386 eval "$ac_cv_use_tbarnative"
8387 if test "$no_cache" != 1; then
8388 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8389 fi
8390
8391 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8392 echo "$as_me:$LINENO: result: yes" >&5
8393echo "${ECHO_T}yes" >&6
8394 else
8395 echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6
8397 fi
8398
8399
8400 enablestring=
8401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8402echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8403 no_cache=0
8404 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8405if test "${enable_tbarsmpl+set}" = set; then
8406 enableval="$enable_tbarsmpl"
8407
8408 if test "$enableval" = yes; then
8409 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8410 else
8411 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8412 fi
8413
8414else
8415
8416 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8417 if test "x$LINE" != x ; then
8418 eval "DEFAULT_$LINE"
8419 else
8420 no_cache=1
8421 fi
8422
8423 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8424
8425fi;
8426
8427 eval "$ac_cv_use_tbarsmpl"
8428 if test "$no_cache" != 1; then
8429 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8430 fi
8431
8432 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8433 echo "$as_me:$LINENO: result: yes" >&5
8434echo "${ECHO_T}yes" >&6
8435 else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438 fi
8439
8440
8441 enablestring=
8442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8443echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8444 no_cache=0
8445 # Check whether --enable-treectrl or --disable-treectrl was given.
8446if test "${enable_treectrl+set}" = set; then
8447 enableval="$enable_treectrl"
8448
8449 if test "$enableval" = yes; then
8450 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8451 else
8452 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8453 fi
8454
8455else
8456
8457 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8458 if test "x$LINE" != x ; then
8459 eval "DEFAULT_$LINE"
8460 else
8461 no_cache=1
8462 fi
8463
8464 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8465
8466fi;
8467
8468 eval "$ac_cv_use_treectrl"
8469 if test "$no_cache" != 1; then
8470 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8471 fi
8472
8473 if test "$wxUSE_TREECTRL" = yes; then
8474 echo "$as_me:$LINENO: result: yes" >&5
8475echo "${ECHO_T}yes" >&6
8476 else
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
8479 fi
8480
8481
8482 enablestring=
8483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8484echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8485 no_cache=0
8486 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8487if test "${enable_tipwindow+set}" = set; then
8488 enableval="$enable_tipwindow"
8489
8490 if test "$enableval" = yes; then
8491 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8492 else
8493 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8494 fi
8495
8496else
8497
8498 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8499 if test "x$LINE" != x ; then
8500 eval "DEFAULT_$LINE"
8501 else
8502 no_cache=1
8503 fi
8504
8505 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8506
8507fi;
8508
8509 eval "$ac_cv_use_tipwindow"
8510 if test "$no_cache" != 1; then
8511 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8512 fi
8513
8514 if test "$wxUSE_TIPWINDOW" = yes; then
8515 echo "$as_me:$LINENO: result: yes" >&5
8516echo "${ECHO_T}yes" >&6
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6
8520 fi
8521
8522
8523 enablestring=
8524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8525echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8526 no_cache=0
8527 # Check whether --enable-popupwin or --disable-popupwin was given.
8528if test "${enable_popupwin+set}" = set; then
8529 enableval="$enable_popupwin"
8530
8531 if test "$enableval" = yes; then
8532 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8533 else
8534 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8535 fi
8536
8537else
8538
8539 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8540 if test "x$LINE" != x ; then
8541 eval "DEFAULT_$LINE"
8542 else
8543 no_cache=1
8544 fi
8545
8546 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8547
8548fi;
8549
8550 eval "$ac_cv_use_popupwin"
8551 if test "$no_cache" != 1; then
8552 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8553 fi
8554
8555 if test "$wxUSE_POPUPWIN" = yes; then
8556 echo "$as_me:$LINENO: result: yes" >&5
8557echo "${ECHO_T}yes" >&6
8558 else
8559 echo "$as_me:$LINENO: result: no" >&5
8560echo "${ECHO_T}no" >&6
8561 fi
8562
8563
8564
8565
8566 enablestring=
8567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8568echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8569 no_cache=0
8570 # Check whether --enable-commondlg or --disable-commondlg was given.
8571if test "${enable_commondlg+set}" = set; then
8572 enableval="$enable_commondlg"
8573
8574 if test "$enableval" = yes; then
8575 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8576 else
8577 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8578 fi
8579
8580else
8581
8582 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8583 if test "x$LINE" != x ; then
8584 eval "DEFAULT_$LINE"
8585 else
8586 no_cache=1
8587 fi
8588
8589 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8590
8591fi;
8592
8593 eval "$ac_cv_use_commondlg"
8594 if test "$no_cache" != 1; then
8595 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8596 fi
8597
8598 if test "$wxUSE_COMMONDLGS" = yes; then
8599 echo "$as_me:$LINENO: result: yes" >&5
8600echo "${ECHO_T}yes" >&6
8601 else
8602 echo "$as_me:$LINENO: result: no" >&5
8603echo "${ECHO_T}no" >&6
8604 fi
8605
8606
8607 enablestring=
8608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8609echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8610 no_cache=0
8611 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8612if test "${enable_choicedlg+set}" = set; then
8613 enableval="$enable_choicedlg"
8614
8615 if test "$enableval" = yes; then
8616 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8617 else
8618 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8619 fi
8620
8621else
8622
8623 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8624 if test "x$LINE" != x ; then
8625 eval "DEFAULT_$LINE"
8626 else
8627 no_cache=1
8628 fi
8629
8630 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8631
8632fi;
8633
8634 eval "$ac_cv_use_choicedlg"
8635 if test "$no_cache" != 1; then
8636 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8637 fi
8638
8639 if test "$wxUSE_CHOICEDLG" = yes; then
8640 echo "$as_me:$LINENO: result: yes" >&5
8641echo "${ECHO_T}yes" >&6
8642 else
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
8645 fi
8646
8647
8648 enablestring=
8649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8650echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8651 no_cache=0
8652 # Check whether --enable-coldlg or --disable-coldlg was given.
8653if test "${enable_coldlg+set}" = set; then
8654 enableval="$enable_coldlg"
8655
8656 if test "$enableval" = yes; then
8657 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8658 else
8659 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8660 fi
8661
8662else
8663
8664 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8665 if test "x$LINE" != x ; then
8666 eval "DEFAULT_$LINE"
8667 else
8668 no_cache=1
8669 fi
8670
8671 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8672
8673fi;
8674
8675 eval "$ac_cv_use_coldlg"
8676 if test "$no_cache" != 1; then
8677 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8678 fi
8679
8680 if test "$wxUSE_COLOURDLG" = yes; then
8681 echo "$as_me:$LINENO: result: yes" >&5
8682echo "${ECHO_T}yes" >&6
8683 else
8684 echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6
8686 fi
8687
8688
8689 enablestring=
8690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8691echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8692 no_cache=0
8693 # Check whether --enable-filedlg or --disable-filedlg was given.
8694if test "${enable_filedlg+set}" = set; then
8695 enableval="$enable_filedlg"
8696
8697 if test "$enableval" = yes; then
8698 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8699 else
8700 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8701 fi
8702
8703else
8704
8705 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8706 if test "x$LINE" != x ; then
8707 eval "DEFAULT_$LINE"
8708 else
8709 no_cache=1
8710 fi
8711
8712 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8713
8714fi;
8715
8716 eval "$ac_cv_use_filedlg"
8717 if test "$no_cache" != 1; then
8718 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8719 fi
8720
8721 if test "$wxUSE_FILEDLG" = yes; then
8722 echo "$as_me:$LINENO: result: yes" >&5
8723echo "${ECHO_T}yes" >&6
8724 else
8725 echo "$as_me:$LINENO: result: no" >&5
8726echo "${ECHO_T}no" >&6
8727 fi
8728
8729
8730 enablestring=
8731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8732echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8733 no_cache=0
8734 # Check whether --enable-finddlg or --disable-finddlg was given.
8735if test "${enable_finddlg+set}" = set; then
8736 enableval="$enable_finddlg"
8737
8738 if test "$enableval" = yes; then
8739 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8740 else
8741 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8742 fi
8743
8744else
8745
8746 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8747 if test "x$LINE" != x ; then
8748 eval "DEFAULT_$LINE"
8749 else
8750 no_cache=1
8751 fi
8752
8753 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8754
8755fi;
8756
8757 eval "$ac_cv_use_finddlg"
8758 if test "$no_cache" != 1; then
8759 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8760 fi
8761
8762 if test "$wxUSE_FINDREPLDLG" = yes; then
8763 echo "$as_me:$LINENO: result: yes" >&5
8764echo "${ECHO_T}yes" >&6
8765 else
8766 echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
8768 fi
8769
8770
8771 enablestring=
8772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8773echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8774 no_cache=0
8775 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8776if test "${enable_fontdlg+set}" = set; then
8777 enableval="$enable_fontdlg"
8778
8779 if test "$enableval" = yes; then
8780 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8781 else
8782 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8783 fi
8784
8785else
8786
8787 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8788 if test "x$LINE" != x ; then
8789 eval "DEFAULT_$LINE"
8790 else
8791 no_cache=1
8792 fi
8793
8794 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8795
8796fi;
8797
8798 eval "$ac_cv_use_fontdlg"
8799 if test "$no_cache" != 1; then
8800 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8801 fi
8802
8803 if test "$wxUSE_FONTDLG" = yes; then
8804 echo "$as_me:$LINENO: result: yes" >&5
8805echo "${ECHO_T}yes" >&6
8806 else
8807 echo "$as_me:$LINENO: result: no" >&5
8808echo "${ECHO_T}no" >&6
8809 fi
8810
8811
8812 enablestring=
8813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8814echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8815 no_cache=0
8816 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8817if test "${enable_dirdlg+set}" = set; then
8818 enableval="$enable_dirdlg"
8819
8820 if test "$enableval" = yes; then
8821 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8822 else
8823 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8824 fi
8825
8826else
8827
8828 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8829 if test "x$LINE" != x ; then
8830 eval "DEFAULT_$LINE"
8831 else
8832 no_cache=1
8833 fi
8834
8835 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8836
8837fi;
8838
8839 eval "$ac_cv_use_dirdlg"
8840 if test "$no_cache" != 1; then
8841 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8842 fi
8843
8844 if test "$wxUSE_DIRDLG" = yes; then
8845 echo "$as_me:$LINENO: result: yes" >&5
8846echo "${ECHO_T}yes" >&6
8847 else
8848 echo "$as_me:$LINENO: result: no" >&5
8849echo "${ECHO_T}no" >&6
8850 fi
8851
8852
8853 enablestring=
8854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8855echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8856 no_cache=0
8857 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8858if test "${enable_msgdlg+set}" = set; then
8859 enableval="$enable_msgdlg"
8860
8861 if test "$enableval" = yes; then
8862 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8863 else
8864 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8865 fi
8866
8867else
8868
8869 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8870 if test "x$LINE" != x ; then
8871 eval "DEFAULT_$LINE"
8872 else
8873 no_cache=1
8874 fi
8875
8876 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8877
8878fi;
8879
8880 eval "$ac_cv_use_msgdlg"
8881 if test "$no_cache" != 1; then
8882 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8883 fi
8884
8885 if test "$wxUSE_MSGDLG" = yes; then
8886 echo "$as_me:$LINENO: result: yes" >&5
8887echo "${ECHO_T}yes" >&6
8888 else
8889 echo "$as_me:$LINENO: result: no" >&5
8890echo "${ECHO_T}no" >&6
8891 fi
8892
8893
8894 enablestring=
8895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8896echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8897 no_cache=0
8898 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8899if test "${enable_numberdlg+set}" = set; then
8900 enableval="$enable_numberdlg"
8901
8902 if test "$enableval" = yes; then
8903 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8904 else
8905 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8906 fi
8907
8908else
8909
8910 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8911 if test "x$LINE" != x ; then
8912 eval "DEFAULT_$LINE"
8913 else
8914 no_cache=1
8915 fi
8916
8917 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8918
8919fi;
8920
8921 eval "$ac_cv_use_numberdlg"
8922 if test "$no_cache" != 1; then
8923 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8924 fi
8925
8926 if test "$wxUSE_NUMBERDLG" = yes; then
8927 echo "$as_me:$LINENO: result: yes" >&5
8928echo "${ECHO_T}yes" >&6
8929 else
8930 echo "$as_me:$LINENO: result: no" >&5
8931echo "${ECHO_T}no" >&6
8932 fi
8933
8934
8935 enablestring=
8936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8937echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8938 no_cache=0
8939 # Check whether --enable-splash or --disable-splash was given.
8940if test "${enable_splash+set}" = set; then
8941 enableval="$enable_splash"
8942
8943 if test "$enableval" = yes; then
8944 ac_cv_use_splash='wxUSE_SPLASH=yes'
8945 else
8946 ac_cv_use_splash='wxUSE_SPLASH=no'
8947 fi
8948
8949else
8950
8951 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8952 if test "x$LINE" != x ; then
8953 eval "DEFAULT_$LINE"
8954 else
8955 no_cache=1
8956 fi
8957
8958 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8959
8960fi;
8961
8962 eval "$ac_cv_use_splash"
8963 if test "$no_cache" != 1; then
8964 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8965 fi
8966
8967 if test "$wxUSE_SPLASH" = yes; then
8968 echo "$as_me:$LINENO: result: yes" >&5
8969echo "${ECHO_T}yes" >&6
8970 else
8971 echo "$as_me:$LINENO: result: no" >&5
8972echo "${ECHO_T}no" >&6
8973 fi
8974
8975
8976 enablestring=
8977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8978echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8979 no_cache=0
8980 # Check whether --enable-textdlg or --disable-textdlg was given.
8981if test "${enable_textdlg+set}" = set; then
8982 enableval="$enable_textdlg"
8983
8984 if test "$enableval" = yes; then
8985 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8986 else
8987 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8988 fi
8989
8990else
8991
8992 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8993 if test "x$LINE" != x ; then
8994 eval "DEFAULT_$LINE"
8995 else
8996 no_cache=1
8997 fi
8998
8999 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9000
9001fi;
9002
9003 eval "$ac_cv_use_textdlg"
9004 if test "$no_cache" != 1; then
9005 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9006 fi
9007
9008 if test "$wxUSE_TEXTDLG" = yes; then
9009 echo "$as_me:$LINENO: result: yes" >&5
9010echo "${ECHO_T}yes" >&6
9011 else
9012 echo "$as_me:$LINENO: result: no" >&5
9013echo "${ECHO_T}no" >&6
9014 fi
9015
9016
9017 enablestring=
9018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9019echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9020 no_cache=0
9021 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9022if test "${enable_tipdlg+set}" = set; then
9023 enableval="$enable_tipdlg"
9024
9025 if test "$enableval" = yes; then
9026 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9027 else
9028 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9029 fi
9030
9031else
9032
9033 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9034 if test "x$LINE" != x ; then
9035 eval "DEFAULT_$LINE"
9036 else
9037 no_cache=1
9038 fi
9039
9040 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9041
9042fi;
9043
9044 eval "$ac_cv_use_tipdlg"
9045 if test "$no_cache" != 1; then
9046 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9047 fi
9048
9049 if test "$wxUSE_STARTUP_TIPS" = yes; then
9050 echo "$as_me:$LINENO: result: yes" >&5
9051echo "${ECHO_T}yes" >&6
9052 else
9053 echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
9055 fi
9056
9057
9058 enablestring=
9059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9060echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9061 no_cache=0
9062 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9063if test "${enable_progressdlg+set}" = set; then
9064 enableval="$enable_progressdlg"
9065
9066 if test "$enableval" = yes; then
9067 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9068 else
9069 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9070 fi
9071
9072else
9073
9074 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9075 if test "x$LINE" != x ; then
9076 eval "DEFAULT_$LINE"
9077 else
9078 no_cache=1
9079 fi
9080
9081 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9082
9083fi;
9084
9085 eval "$ac_cv_use_progressdlg"
9086 if test "$no_cache" != 1; then
9087 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9088 fi
9089
9090 if test "$wxUSE_PROGRESSDLG" = yes; then
9091 echo "$as_me:$LINENO: result: yes" >&5
9092echo "${ECHO_T}yes" >&6
9093 else
9094 echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6
9096 fi
9097
9098
9099 enablestring=
9100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9101echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9102 no_cache=0
9103 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9104if test "${enable_wizarddlg+set}" = set; then
9105 enableval="$enable_wizarddlg"
9106
9107 if test "$enableval" = yes; then
9108 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9109 else
9110 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9111 fi
9112
9113else
9114
9115 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9116 if test "x$LINE" != x ; then
9117 eval "DEFAULT_$LINE"
9118 else
9119 no_cache=1
9120 fi
9121
9122 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9123
9124fi;
9125
9126 eval "$ac_cv_use_wizarddlg"
9127 if test "$no_cache" != 1; then
9128 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9129 fi
9130
9131 if test "$wxUSE_WIZARDDLG" = yes; then
9132 echo "$as_me:$LINENO: result: yes" >&5
9133echo "${ECHO_T}yes" >&6
9134 else
9135 echo "$as_me:$LINENO: result: no" >&5
9136echo "${ECHO_T}no" >&6
9137 fi
9138
9139
9140
9141
9142 enablestring=
9143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9144echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9145 no_cache=0
9146 # Check whether --enable-menus or --disable-menus was given.
9147if test "${enable_menus+set}" = set; then
9148 enableval="$enable_menus"
9149
9150 if test "$enableval" = yes; then
9151 ac_cv_use_menus='wxUSE_MENUS=yes'
9152 else
9153 ac_cv_use_menus='wxUSE_MENUS=no'
9154 fi
9155
9156else
9157
9158 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9159 if test "x$LINE" != x ; then
9160 eval "DEFAULT_$LINE"
9161 else
9162 no_cache=1
9163 fi
9164
9165 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9166
9167fi;
9168
9169 eval "$ac_cv_use_menus"
9170 if test "$no_cache" != 1; then
9171 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9172 fi
9173
9174 if test "$wxUSE_MENUS" = yes; then
9175 echo "$as_me:$LINENO: result: yes" >&5
9176echo "${ECHO_T}yes" >&6
9177 else
9178 echo "$as_me:$LINENO: result: no" >&5
9179echo "${ECHO_T}no" >&6
9180 fi
9181
9182
9183 enablestring=
9184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9185echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9186 no_cache=0
9187 # Check whether --enable-miniframe or --disable-miniframe was given.
9188if test "${enable_miniframe+set}" = set; then
9189 enableval="$enable_miniframe"
9190
9191 if test "$enableval" = yes; then
9192 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9193 else
9194 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9195 fi
9196
9197else
9198
9199 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9200 if test "x$LINE" != x ; then
9201 eval "DEFAULT_$LINE"
9202 else
9203 no_cache=1
9204 fi
9205
9206 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9207
9208fi;
9209
9210 eval "$ac_cv_use_miniframe"
9211 if test "$no_cache" != 1; then
9212 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9213 fi
9214
9215 if test "$wxUSE_MINIFRAME" = yes; then
9216 echo "$as_me:$LINENO: result: yes" >&5
9217echo "${ECHO_T}yes" >&6
9218 else
9219 echo "$as_me:$LINENO: result: no" >&5
9220echo "${ECHO_T}no" >&6
9221 fi
9222
9223
9224 enablestring=
9225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9226echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9227 no_cache=0
9228 # Check whether --enable-tooltips or --disable-tooltips was given.
9229if test "${enable_tooltips+set}" = set; then
9230 enableval="$enable_tooltips"
9231
9232 if test "$enableval" = yes; then
9233 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9234 else
9235 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9236 fi
9237
9238else
9239
9240 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9241 if test "x$LINE" != x ; then
9242 eval "DEFAULT_$LINE"
9243 else
9244 no_cache=1
9245 fi
9246
9247 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9248
9249fi;
9250
9251 eval "$ac_cv_use_tooltips"
9252 if test "$no_cache" != 1; then
9253 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9254 fi
9255
9256 if test "$wxUSE_TOOLTIPS" = yes; then
9257 echo "$as_me:$LINENO: result: yes" >&5
9258echo "${ECHO_T}yes" >&6
9259 else
9260 echo "$as_me:$LINENO: result: no" >&5
9261echo "${ECHO_T}no" >&6
9262 fi
9263
9264
9265 enablestring=
9266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9267echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9268 no_cache=0
9269 # Check whether --enable-splines or --disable-splines was given.
9270if test "${enable_splines+set}" = set; then
9271 enableval="$enable_splines"
9272
9273 if test "$enableval" = yes; then
9274 ac_cv_use_splines='wxUSE_SPLINES=yes'
9275 else
9276 ac_cv_use_splines='wxUSE_SPLINES=no'
9277 fi
9278
9279else
9280
9281 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9282 if test "x$LINE" != x ; then
9283 eval "DEFAULT_$LINE"
9284 else
9285 no_cache=1
9286 fi
9287
9288 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9289
9290fi;
9291
9292 eval "$ac_cv_use_splines"
9293 if test "$no_cache" != 1; then
9294 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9295 fi
9296
9297 if test "$wxUSE_SPLINES" = yes; then
9298 echo "$as_me:$LINENO: result: yes" >&5
9299echo "${ECHO_T}yes" >&6
9300 else
9301 echo "$as_me:$LINENO: result: no" >&5
9302echo "${ECHO_T}no" >&6
9303 fi
9304
9305
9306 enablestring=
9307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9308echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9309 no_cache=0
9310 # Check whether --enable-validators or --disable-validators was given.
9311if test "${enable_validators+set}" = set; then
9312 enableval="$enable_validators"
9313
9314 if test "$enableval" = yes; then
9315 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9316 else
9317 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9318 fi
9319
9320else
9321
9322 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9323 if test "x$LINE" != x ; then
9324 eval "DEFAULT_$LINE"
9325 else
9326 no_cache=1
9327 fi
9328
9329 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9330
9331fi;
9332
9333 eval "$ac_cv_use_validators"
9334 if test "$no_cache" != 1; then
9335 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9336 fi
9337
9338 if test "$wxUSE_VALIDATORS" = yes; then
9339 echo "$as_me:$LINENO: result: yes" >&5
9340echo "${ECHO_T}yes" >&6
9341 else
9342 echo "$as_me:$LINENO: result: no" >&5
9343echo "${ECHO_T}no" >&6
9344 fi
9345
9346
9347 enablestring=
9348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9349echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9350 no_cache=0
9351 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9352if test "${enable_busyinfo+set}" = set; then
9353 enableval="$enable_busyinfo"
9354
9355 if test "$enableval" = yes; then
9356 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9357 else
9358 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9359 fi
9360
9361else
9362
9363 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9364 if test "x$LINE" != x ; then
9365 eval "DEFAULT_$LINE"
9366 else
9367 no_cache=1
9368 fi
9369
9370 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9371
9372fi;
9373
9374 eval "$ac_cv_use_busyinfo"
9375 if test "$no_cache" != 1; then
9376 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9377 fi
9378
9379 if test "$wxUSE_BUSYINFO" = yes; then
9380 echo "$as_me:$LINENO: result: yes" >&5
9381echo "${ECHO_T}yes" >&6
9382 else
9383 echo "$as_me:$LINENO: result: no" >&5
9384echo "${ECHO_T}no" >&6
9385 fi
9386
9387
9388 enablestring=
9389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9390echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9391 no_cache=0
9392 # Check whether --enable-joystick or --disable-joystick was given.
9393if test "${enable_joystick+set}" = set; then
9394 enableval="$enable_joystick"
9395
9396 if test "$enableval" = yes; then
9397 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9398 else
9399 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9400 fi
9401
9402else
9403
9404 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9405 if test "x$LINE" != x ; then
9406 eval "DEFAULT_$LINE"
9407 else
9408 no_cache=1
9409 fi
9410
9411 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9412
9413fi;
9414
9415 eval "$ac_cv_use_joystick"
9416 if test "$no_cache" != 1; then
9417 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9418 fi
9419
9420 if test "$wxUSE_JOYSTICK" = yes; then
9421 echo "$as_me:$LINENO: result: yes" >&5
9422echo "${ECHO_T}yes" >&6
9423 else
9424 echo "$as_me:$LINENO: result: no" >&5
9425echo "${ECHO_T}no" >&6
9426 fi
9427
9428
9429 enablestring=
9430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9431echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9432 no_cache=0
9433 # Check whether --enable-metafile or --disable-metafile was given.
9434if test "${enable_metafile+set}" = set; then
9435 enableval="$enable_metafile"
9436
9437 if test "$enableval" = yes; then
9438 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9439 else
9440 ac_cv_use_metafile='wxUSE_METAFILE=no'
9441 fi
9442
9443else
9444
9445 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9446 if test "x$LINE" != x ; then
9447 eval "DEFAULT_$LINE"
9448 else
9449 no_cache=1
9450 fi
9451
9452 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9453
9454fi;
9455
9456 eval "$ac_cv_use_metafile"
9457 if test "$no_cache" != 1; then
9458 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9459 fi
9460
9461 if test "$wxUSE_METAFILE" = yes; then
9462 echo "$as_me:$LINENO: result: yes" >&5
9463echo "${ECHO_T}yes" >&6
9464 else
9465 echo "$as_me:$LINENO: result: no" >&5
9466echo "${ECHO_T}no" >&6
9467 fi
9468
9469
9470 enablestring=
9471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9472echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9473 no_cache=0
9474 # Check whether --enable-dragimage or --disable-dragimage was given.
9475if test "${enable_dragimage+set}" = set; then
9476 enableval="$enable_dragimage"
9477
9478 if test "$enableval" = yes; then
9479 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9480 else
9481 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9482 fi
9483
9484else
9485
9486 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9487 if test "x$LINE" != x ; then
9488 eval "DEFAULT_$LINE"
9489 else
9490 no_cache=1
9491 fi
9492
9493 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9494
9495fi;
9496
9497 eval "$ac_cv_use_dragimage"
9498 if test "$no_cache" != 1; then
9499 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9500 fi
9501
9502 if test "$wxUSE_DRAGIMAGE" = yes; then
9503 echo "$as_me:$LINENO: result: yes" >&5
9504echo "${ECHO_T}yes" >&6
9505 else
9506 echo "$as_me:$LINENO: result: no" >&5
9507echo "${ECHO_T}no" >&6
9508 fi
9509
9510
9511 enablestring=
9512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9513echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9514 no_cache=0
9515 # Check whether --enable-accessibility or --disable-accessibility was given.
9516if test "${enable_accessibility+set}" = set; then
9517 enableval="$enable_accessibility"
9518
9519 if test "$enableval" = yes; then
9520 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9521 else
9522 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9523 fi
9524
9525else
9526
9527 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9528 if test "x$LINE" != x ; then
9529 eval "DEFAULT_$LINE"
9530 else
9531 no_cache=1
9532 fi
9533
9534 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9535
9536fi;
9537
9538 eval "$ac_cv_use_accessibility"
9539 if test "$no_cache" != 1; then
9540 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9541 fi
9542
9543 if test "$wxUSE_ACCESSIBILITY" = yes; then
9544 echo "$as_me:$LINENO: result: yes" >&5
9545echo "${ECHO_T}yes" >&6
9546 else
9547 echo "$as_me:$LINENO: result: no" >&5
9548echo "${ECHO_T}no" >&6
9549 fi
9550
9551
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-palette or --disable-palette was given.
9559if test "${enable_palette+set}" = set; then
9560 enableval="$enable_palette"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_palette='wxUSE_PALETTE=yes'
9564 else
9565 ac_cv_use_palette='wxUSE_PALETTE=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9578
9579fi;
9580
9581 eval "$ac_cv_use_palette"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_PALETTE" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595 enablestring=
9596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9597echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9598 no_cache=0
9599 # Check whether --enable-image or --disable-image was given.
9600if test "${enable_image+set}" = set; then
9601 enableval="$enable_image"
9602
9603 if test "$enableval" = yes; then
9604 ac_cv_use_image='wxUSE_IMAGE=yes'
9605 else
9606 ac_cv_use_image='wxUSE_IMAGE=no'
9607 fi
9608
9609else
9610
9611 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9612 if test "x$LINE" != x ; then
9613 eval "DEFAULT_$LINE"
9614 else
9615 no_cache=1
9616 fi
9617
9618 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9619
9620fi;
9621
9622 eval "$ac_cv_use_image"
9623 if test "$no_cache" != 1; then
9624 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9625 fi
9626
9627 if test "$wxUSE_IMAGE" = yes; then
9628 echo "$as_me:$LINENO: result: yes" >&5
9629echo "${ECHO_T}yes" >&6
9630 else
9631 echo "$as_me:$LINENO: result: no" >&5
9632echo "${ECHO_T}no" >&6
9633 fi
9634
9635
9636 enablestring=
9637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9638echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9639 no_cache=0
9640 # Check whether --enable-gif or --disable-gif was given.
9641if test "${enable_gif+set}" = set; then
9642 enableval="$enable_gif"
9643
9644 if test "$enableval" = yes; then
9645 ac_cv_use_gif='wxUSE_GIF=yes'
9646 else
9647 ac_cv_use_gif='wxUSE_GIF=no'
9648 fi
9649
9650else
9651
9652 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9653 if test "x$LINE" != x ; then
9654 eval "DEFAULT_$LINE"
9655 else
9656 no_cache=1
9657 fi
9658
9659 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9660
9661fi;
9662
9663 eval "$ac_cv_use_gif"
9664 if test "$no_cache" != 1; then
9665 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9666 fi
9667
9668 if test "$wxUSE_GIF" = yes; then
9669 echo "$as_me:$LINENO: result: yes" >&5
9670echo "${ECHO_T}yes" >&6
9671 else
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
9674 fi
9675
9676
9677 enablestring=
9678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9679echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9680 no_cache=0
9681 # Check whether --enable-pcx or --disable-pcx was given.
9682if test "${enable_pcx+set}" = set; then
9683 enableval="$enable_pcx"
9684
9685 if test "$enableval" = yes; then
9686 ac_cv_use_pcx='wxUSE_PCX=yes'
9687 else
9688 ac_cv_use_pcx='wxUSE_PCX=no'
9689 fi
9690
9691else
9692
9693 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9694 if test "x$LINE" != x ; then
9695 eval "DEFAULT_$LINE"
9696 else
9697 no_cache=1
9698 fi
9699
9700 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9701
9702fi;
9703
9704 eval "$ac_cv_use_pcx"
9705 if test "$no_cache" != 1; then
9706 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9707 fi
9708
9709 if test "$wxUSE_PCX" = yes; then
9710 echo "$as_me:$LINENO: result: yes" >&5
9711echo "${ECHO_T}yes" >&6
9712 else
9713 echo "$as_me:$LINENO: result: no" >&5
9714echo "${ECHO_T}no" >&6
9715 fi
9716
9717
9718 enablestring=
9719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9720echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9721 no_cache=0
9722 # Check whether --enable-iff or --disable-iff was given.
9723if test "${enable_iff+set}" = set; then
9724 enableval="$enable_iff"
9725
9726 if test "$enableval" = yes; then
9727 ac_cv_use_iff='wxUSE_IFF=yes'
9728 else
9729 ac_cv_use_iff='wxUSE_IFF=no'
9730 fi
9731
9732else
9733
9734 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9735 if test "x$LINE" != x ; then
9736 eval "DEFAULT_$LINE"
9737 else
9738 no_cache=1
9739 fi
9740
9741 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9742
9743fi;
9744
9745 eval "$ac_cv_use_iff"
9746 if test "$no_cache" != 1; then
9747 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9748 fi
9749
9750 if test "$wxUSE_IFF" = yes; then
9751 echo "$as_me:$LINENO: result: yes" >&5
9752echo "${ECHO_T}yes" >&6
9753 else
9754 echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
9756 fi
9757
9758
9759 enablestring=
9760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9761echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9762 no_cache=0
9763 # Check whether --enable-pnm or --disable-pnm was given.
9764if test "${enable_pnm+set}" = set; then
9765 enableval="$enable_pnm"
9766
9767 if test "$enableval" = yes; then
9768 ac_cv_use_pnm='wxUSE_PNM=yes'
9769 else
9770 ac_cv_use_pnm='wxUSE_PNM=no'
9771 fi
9772
9773else
9774
9775 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9776 if test "x$LINE" != x ; then
9777 eval "DEFAULT_$LINE"
9778 else
9779 no_cache=1
9780 fi
9781
9782 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9783
9784fi;
9785
9786 eval "$ac_cv_use_pnm"
9787 if test "$no_cache" != 1; then
9788 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9789 fi
9790
9791 if test "$wxUSE_PNM" = yes; then
9792 echo "$as_me:$LINENO: result: yes" >&5
9793echo "${ECHO_T}yes" >&6
9794 else
9795 echo "$as_me:$LINENO: result: no" >&5
9796echo "${ECHO_T}no" >&6
9797 fi
9798
9799
9800 enablestring=
9801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9802echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9803 no_cache=0
9804 # Check whether --enable-xpm or --disable-xpm was given.
9805if test "${enable_xpm+set}" = set; then
9806 enableval="$enable_xpm"
9807
9808 if test "$enableval" = yes; then
9809 ac_cv_use_xpm='wxUSE_XPM=yes'
9810 else
9811 ac_cv_use_xpm='wxUSE_XPM=no'
9812 fi
9813
9814else
9815
9816 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9817 if test "x$LINE" != x ; then
9818 eval "DEFAULT_$LINE"
9819 else
9820 no_cache=1
9821 fi
9822
9823 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9824
9825fi;
9826
9827 eval "$ac_cv_use_xpm"
9828 if test "$no_cache" != 1; then
9829 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9830 fi
9831
9832 if test "$wxUSE_XPM" = yes; then
9833 echo "$as_me:$LINENO: result: yes" >&5
9834echo "${ECHO_T}yes" >&6
9835 else
9836 echo "$as_me:$LINENO: result: no" >&5
9837echo "${ECHO_T}no" >&6
9838 fi
9839
9840
9841 enablestring=
9842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9843echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9844 no_cache=0
9845 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9846if test "${enable_ico_cur+set}" = set; then
9847 enableval="$enable_ico_cur"
9848
9849 if test "$enableval" = yes; then
9850 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9851 else
9852 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9853 fi
9854
9855else
9856
9857 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9858 if test "x$LINE" != x ; then
9859 eval "DEFAULT_$LINE"
9860 else
9861 no_cache=1
9862 fi
9863
9864 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9865
9866fi;
9867
9868 eval "$ac_cv_use_ico_cur"
9869 if test "$no_cache" != 1; then
9870 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9871 fi
9872
9873 if test "$wxUSE_ICO_CUR" = yes; then
9874 echo "$as_me:$LINENO: result: yes" >&5
9875echo "${ECHO_T}yes" >&6
9876 else
9877 echo "$as_me:$LINENO: result: no" >&5
9878echo "${ECHO_T}no" >&6
9879 fi
9880
9881
9882fi
9883
9884
9885
9886 enablestring=
9887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9888echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9889 no_cache=0
9890 # Check whether --enable-official_build or --disable-official_build was given.
9891if test "${enable_official_build+set}" = set; then
9892 enableval="$enable_official_build"
9893
9894 if test "$enableval" = yes; then
9895 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9896 else
9897 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9898 fi
9899
9900else
9901
9902 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9903 if test "x$LINE" != x ; then
9904 eval "DEFAULT_$LINE"
9905 else
9906 no_cache=1
9907 fi
9908
9909 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9910
9911fi;
9912
9913 eval "$ac_cv_use_official_build"
9914 if test "$no_cache" != 1; then
9915 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9916 fi
9917
9918 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9919 echo "$as_me:$LINENO: result: yes" >&5
9920echo "${ECHO_T}yes" >&6
9921 else
9922 echo "$as_me:$LINENO: result: no" >&5
9923echo "${ECHO_T}no" >&6
9924 fi
9925
9926# Check whether --enable-vendor or --disable-vendor was given.
9927if test "${enable_vendor+set}" = set; then
9928 enableval="$enable_vendor"
9929 VENDOR="$enableval"
9930fi;
9931if test "x$VENDOR" = "x"; then
9932 VENDOR="custom"
9933fi
9934
9935case "${host}" in
9936 *-pc-os2_emx | *-pc-os2-emx )
9937 PATH_IFS=';'
a848cd7e
SC
9938 ;;
9939 *)
9940 PATH_IFS=':'
9941 ;;
9942esac
9943
9944
9945
9946 echo "saving argument cache $wx_arg_cache_file"
9947 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9948
9949
9950
9951echo "$as_me:$LINENO: checking for toolkit" >&5
9952echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9953
9954# In Wine, we need to default to MSW, not GTK or MOTIF
9955if test "$wxUSE_WINE" = "yes"; then
9956 DEFAULT_DEFAULT_wxUSE_GTK=0
9957 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9958 DEFAULT_DEFAULT_wxUSE_MSW=1
9959 wxUSE_SHARED=no
9960fi
9961
9962if test "$wxUSE_GUI" = "yes"; then
9963
9964 if test "$USE_BEOS" = 1; then
9965 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9966echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9967 { (exit 1); exit 1; }; }
9968 fi
9969
9970 if test "$TOOLKIT_GIVEN" = 1; then
9971 for toolkit in `echo $ALL_TOOLKITS`; do
9972 var=wxUSE_$toolkit
9973 eval "value=\$${var}"
9974 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9975 done
9976 else
9977 for toolkit in `echo $ALL_TOOLKITS`; do
9978 if test "$has_toolkit_in_cache" != 1; then
9979 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9980 else
9981 var=DEFAULT_wxUSE_$toolkit
9982 fi
9983 eval "wxUSE_$toolkit=\$${var}"
9984 done
9985 fi
9986
9987 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9988 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9989 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9990
9991 case "${host}" in
9992 *-pc-os2_emx | *-pc-os2-emx )
9993 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9994 esac
9995
9996 case "$NUM_TOOLKITS" in
9997 1)
9998 ;;
9999 0)
10000 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10001echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10002 { (exit 1); exit 1; }; }
10003 ;;
10004 *)
10005 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10006echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10007 { (exit 1); exit 1; }; }
10008 esac
10009
10010 for toolkit in `echo $ALL_TOOLKITS`; do
10011 var=wxUSE_$toolkit
10012 eval "value=\$${var}"
10013 if test "x$value" != x; then
10014 cache_var=CACHE_$toolkit
10015 eval "cache=\$${cache_var}"
10016 if test "$cache" = 1; then
10017 echo "$var=$value" >> ${wx_arg_cache_file}
10018 fi
10019 if test "$value" = 1; then
10020 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10021 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10022echo "${ECHO_T}$toolkit_echo" >&6
10023 fi
10024 fi
10025 done
10026else
10027 if test "x$host_alias" != "x"; then
10028 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10029echo "${ECHO_T}base ($host_alias hosted) only" >&6
10030 else
10031 echo "$as_me:$LINENO: result: base only" >&5
10032echo "${ECHO_T}base only" >&6
10033 fi
10034fi
10035
10036wants_win32=0
10037doesnt_want_win32=0
10038case "${host}" in
10039 *-*-cygwin*)
10040 if test "$wxUSE_MSW" = 1 ; then
10041 wants_win32=1
10042 else
10043 doesnt_want_win32=1
10044 fi
10045 ;;
10046 *-*-mingw*)
10047 wants_win32=1
10048 ;;
10049esac
10050
10051if test "$wxUSE_WINE" = "yes"; then
10052 wants_win32=1
10053 CC=winegcc
10054 CXX=wineg++
10055 RESCOMP=wrc
10056 LDFLAGS_GUI="-mwindows"
10057fi
10058
10059if test "$wants_win32" = 1 ; then
10060 USE_UNIX=0
10061 USE_WIN32=1
10062 cat >>confdefs.h <<\_ACEOF
10063#define __WIN32__ 1
10064_ACEOF
10065
10066 cat >>confdefs.h <<\_ACEOF
10067#define __WIN95__ 1
10068_ACEOF
10069
10070 cat >>confdefs.h <<\_ACEOF
10071#define __WINDOWS__ 1
10072_ACEOF
10073
10074 cat >>confdefs.h <<\_ACEOF
10075#define __GNUWIN32__ 1
10076_ACEOF
10077
10078 cat >>confdefs.h <<\_ACEOF
10079#define STRICT 1
10080_ACEOF
10081
10082 cat >>confdefs.h <<\_ACEOF
10083#define WINVER 0x0400
10084_ACEOF
10085
10086fi
10087if test "$doesnt_want_win32" = 1 ; then
10088 USE_UNIX=1
10089 USE_WIN32=0
10090fi
10091
10092if test "$USE_UNIX" = 1 ; then
10093 wxUSE_UNIX=yes
10094 cat >>confdefs.h <<\_ACEOF
10095#define __UNIX__ 1
10096_ACEOF
10097
10098fi
10099
10100
10101cat >confcache <<\_ACEOF
10102# This file is a shell script that caches the results of configure
10103# tests run on this system so they can be shared between configure
10104# scripts and configure runs, see configure's option --config-cache.
10105# It is not useful on other systems. If it contains results you don't
10106# want to keep, you may remove or edit it.
10107#
10108# config.status only pays attention to the cache file if you give it
10109# the --recheck option to rerun configure.
10110#
10111# `ac_cv_env_foo' variables (set or unset) will be overridden when
10112# loading this file, other *unset* `ac_cv_foo' will be assigned the
10113# following values.
10114
10115_ACEOF
10116
10117# The following way of writing the cache mishandles newlines in values,
10118# but we know of no workaround that is simple, portable, and efficient.
10119# So, don't put newlines in cache variables' values.
10120# Ultrix sh set writes to stderr and can't be redirected directly,
10121# and sets the high bit in the cache file unless we assign to the vars.
10122{
10123 (set) 2>&1 |
10124 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10125 *ac_space=\ *)
10126 # `set' does not quote correctly, so add quotes (double-quote
10127 # substitution turns \\\\ into \\, and sed turns \\ into \).
10128 sed -n \
ac1cb8d3
VS
10129 "s/'/'\\\\''/g;
10130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10131 ;;
10132 *)
10133 # `set' quotes correctly as required by POSIX, so do not add quotes.
10134 sed -n \
ac1cb8d3 10135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10136 ;;
10137 esac;
10138} |
10139 sed '
10140 t clear
10141 : clear
10142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10143 t end
10144 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10145 : end' >>confcache
10146if diff $cache_file confcache >/dev/null 2>&1; then :; else
10147 if test -w $cache_file; then
10148 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10149 cat confcache >$cache_file
10150 else
10151 echo "not updating unwritable cache $cache_file"
10152 fi
10153fi
10154rm -f confcache
10155
10156if test "$build" != "$host" ; then
10157 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10158 CC=$host_alias-gcc
10159 CXX=$host_alias-c++
10160 AR=$host_alias-ar
10161 RANLIB=$host_alias-ranlib
10162 DLLTOOL=$host_alias-dlltool
10163 RESCOMP=$host_alias-windres
10164 LD=$host_alias-ld
10165 NM=$host_alias-nm
10166 STRIP=$host_alias-strip
10167 else
10168 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10169echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10170 { (exit 1); exit 1; }; }
10171 fi
10172fi
10173
10174CFLAGS=${CFLAGS:=}
10175ac_ext=c
10176ac_cpp='$CPP $CPPFLAGS'
10177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10179ac_compiler_gnu=$ac_cv_c_compiler_gnu
10180if test -n "$ac_tool_prefix"; then
10181 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10182set dummy ${ac_tool_prefix}gcc; ac_word=$2
10183echo "$as_me:$LINENO: checking for $ac_word" >&5
10184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10185if test "${ac_cv_prog_CC+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187else
10188 if test -n "$CC"; then
10189 ac_cv_prog_CC="$CC" # Let the user override the test.
10190else
10191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192for as_dir in $PATH
10193do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10198 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10200 break 2
10201 fi
10202done
10203done
10204
10205fi
10206fi
10207CC=$ac_cv_prog_CC
10208if test -n "$CC"; then
10209 echo "$as_me:$LINENO: result: $CC" >&5
10210echo "${ECHO_T}$CC" >&6
10211else
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214fi
10215
10216fi
10217if test -z "$ac_cv_prog_CC"; then
10218 ac_ct_CC=$CC
10219 # Extract the first word of "gcc", so it can be a program name with args.
10220set dummy gcc; ac_word=$2
10221echo "$as_me:$LINENO: checking for $ac_word" >&5
10222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 if test -n "$ac_ct_CC"; then
10227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10228else
10229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230for as_dir in $PATH
10231do
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_prog_ac_ct_CC="gcc"
10237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10239 fi
10240done
10241done
10242
10243fi
10244fi
10245ac_ct_CC=$ac_cv_prog_ac_ct_CC
10246if test -n "$ac_ct_CC"; then
10247 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10248echo "${ECHO_T}$ac_ct_CC" >&6
10249else
10250 echo "$as_me:$LINENO: result: no" >&5
10251echo "${ECHO_T}no" >&6
10252fi
10253
10254 CC=$ac_ct_CC
10255else
10256 CC="$ac_cv_prog_CC"
10257fi
10258
10259if test -z "$CC"; then
10260 if test -n "$ac_tool_prefix"; then
10261 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10262set dummy ${ac_tool_prefix}cc; ac_word=$2
10263echo "$as_me:$LINENO: checking for $ac_word" >&5
10264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10265if test "${ac_cv_prog_CC+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268 if test -n "$CC"; then
10269 ac_cv_prog_CC="$CC" # Let the user override the test.
10270else
10271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272for as_dir in $PATH
10273do
10274 IFS=$as_save_IFS
10275 test -z "$as_dir" && as_dir=.
10276 for ac_exec_ext in '' $ac_executable_extensions; do
10277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10278 ac_cv_prog_CC="${ac_tool_prefix}cc"
10279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 break 2
10281 fi
10282done
10283done
10284
10285fi
10286fi
10287CC=$ac_cv_prog_CC
10288if test -n "$CC"; then
10289 echo "$as_me:$LINENO: result: $CC" >&5
10290echo "${ECHO_T}$CC" >&6
10291else
10292 echo "$as_me:$LINENO: result: no" >&5
10293echo "${ECHO_T}no" >&6
10294fi
10295
10296fi
10297if test -z "$ac_cv_prog_CC"; then
10298 ac_ct_CC=$CC
10299 # Extract the first word of "cc", so it can be a program name with args.
10300set dummy cc; ac_word=$2
10301echo "$as_me:$LINENO: checking for $ac_word" >&5
10302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10303if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306 if test -n "$ac_ct_CC"; then
10307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10308else
10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310for as_dir in $PATH
10311do
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316 ac_cv_prog_ac_ct_CC="cc"
10317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 break 2
10319 fi
10320done
10321done
10322
10323fi
10324fi
10325ac_ct_CC=$ac_cv_prog_ac_ct_CC
10326if test -n "$ac_ct_CC"; then
10327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10328echo "${ECHO_T}$ac_ct_CC" >&6
10329else
10330 echo "$as_me:$LINENO: result: no" >&5
10331echo "${ECHO_T}no" >&6
10332fi
10333
10334 CC=$ac_ct_CC
10335else
10336 CC="$ac_cv_prog_CC"
10337fi
10338
10339fi
10340if test -z "$CC"; then
10341 # Extract the first word of "cc", so it can be a program name with args.
10342set dummy cc; ac_word=$2
10343echo "$as_me:$LINENO: checking for $ac_word" >&5
10344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10345if test "${ac_cv_prog_CC+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347else
10348 if test -n "$CC"; then
10349 ac_cv_prog_CC="$CC" # Let the user override the test.
10350else
10351 ac_prog_rejected=no
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10360 ac_prog_rejected=yes
10361 continue
10362 fi
10363 ac_cv_prog_CC="cc"
10364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10366 fi
10367done
10368done
10369
10370if test $ac_prog_rejected = yes; then
10371 # We found a bogon in the path, so make sure we never use it.
10372 set dummy $ac_cv_prog_CC
10373 shift
10374 if test $# != 0; then
10375 # We chose a different compiler from the bogus one.
10376 # However, it has the same basename, so the bogon will be chosen
10377 # first if we set CC to just the basename; use the full file name.
10378 shift
10379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10380 fi
10381fi
10382fi
10383fi
10384CC=$ac_cv_prog_CC
10385if test -n "$CC"; then
10386 echo "$as_me:$LINENO: result: $CC" >&5
10387echo "${ECHO_T}$CC" >&6
10388else
10389 echo "$as_me:$LINENO: result: no" >&5
10390echo "${ECHO_T}no" >&6
10391fi
10392
10393fi
10394if test -z "$CC"; then
10395 if test -n "$ac_tool_prefix"; then
10396 for ac_prog in cl
10397 do
10398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10400echo "$as_me:$LINENO: checking for $ac_word" >&5
10401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10402if test "${ac_cv_prog_CC+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404else
10405 if test -n "$CC"; then
10406 ac_cv_prog_CC="$CC" # Let the user override the test.
10407else
10408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10418 fi
10419done
10420done
10421
10422fi
10423fi
10424CC=$ac_cv_prog_CC
10425if test -n "$CC"; then
10426 echo "$as_me:$LINENO: result: $CC" >&5
10427echo "${ECHO_T}$CC" >&6
10428else
10429 echo "$as_me:$LINENO: result: no" >&5
10430echo "${ECHO_T}no" >&6
10431fi
10432
10433 test -n "$CC" && break
10434 done
10435fi
10436if test -z "$CC"; then
10437 ac_ct_CC=$CC
10438 for ac_prog in cl
10439do
10440 # Extract the first word of "$ac_prog", so it can be a program name with args.
10441set dummy $ac_prog; ac_word=$2
10442echo "$as_me:$LINENO: checking for $ac_word" >&5
10443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10444if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10446else
10447 if test -n "$ac_ct_CC"; then
10448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10449else
10450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451for as_dir in $PATH
10452do
10453 IFS=$as_save_IFS
10454 test -z "$as_dir" && as_dir=.
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10457 ac_cv_prog_ac_ct_CC="$ac_prog"
10458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10459 break 2
10460 fi
10461done
10462done
10463
10464fi
10465fi
10466ac_ct_CC=$ac_cv_prog_ac_ct_CC
10467if test -n "$ac_ct_CC"; then
10468 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10469echo "${ECHO_T}$ac_ct_CC" >&6
10470else
10471 echo "$as_me:$LINENO: result: no" >&5
10472echo "${ECHO_T}no" >&6
10473fi
10474
10475 test -n "$ac_ct_CC" && break
10476done
10477
10478 CC=$ac_ct_CC
10479fi
10480
10481fi
10482
10483
10484test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10485See \`config.log' for more details." >&5
10486echo "$as_me: error: no acceptable C compiler found in \$PATH
10487See \`config.log' for more details." >&2;}
10488 { (exit 1); exit 1; }; }
10489
10490# Provide some information about the compiler.
10491echo "$as_me:$LINENO:" \
10492 "checking for C compiler version" >&5
10493ac_compiler=`set X $ac_compile; echo $2`
10494{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10495 (eval $ac_compiler --version </dev/null >&5) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }
10499{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10500 (eval $ac_compiler -v </dev/null >&5) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }
10504{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10505 (eval $ac_compiler -V </dev/null >&5) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }
10509
10510cat >conftest.$ac_ext <<_ACEOF
10511/* confdefs.h. */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
10515/* end confdefs.h. */
10516
10517int
10518main ()
10519{
10520
10521 ;
10522 return 0;
10523}
10524_ACEOF
10525ac_clean_files_save=$ac_clean_files
10526ac_clean_files="$ac_clean_files a.out a.exe b.out"
10527# Try to create an executable without -o first, disregard a.out.
10528# It will help us diagnose broken compilers, and finding out an intuition
10529# of exeext.
ac1cb8d3
VS
10530echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10531echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10532ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10533if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10534 (eval $ac_link_default) 2>&5
10535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; then
10538 # Find the output, starting from the most likely. This scheme is
10539# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10540# resort.
10541
10542# Be careful to initialize this variable, since it used to be cached.
10543# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10544ac_cv_exeext=
10545# b.out is created by i960 compilers.
10546for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10547do
10548 test -f "$ac_file" || continue
10549 case $ac_file in
10550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10551 ;;
a848cd7e 10552 conftest.$ac_ext )
ac1cb8d3
VS
10553 # This is the source file.
10554 ;;
a848cd7e 10555 [ab].out )
ac1cb8d3
VS
10556 # We found the default executable, but exeext='' is most
10557 # certainly right.
10558 break;;
a848cd7e 10559 *.* )
ac1cb8d3
VS
10560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10561 # FIXME: I believe we export ac_cv_exeext for Libtool,
10562 # but it would be cool to find out if it's true. Does anybody
10563 # maintain Libtool? --akim.
10564 export ac_cv_exeext
10565 break;;
a848cd7e 10566 * )
ac1cb8d3 10567 break;;
a848cd7e
SC
10568 esac
10569done
10570else
10571 echo "$as_me: failed program was:" >&5
10572sed 's/^/| /' conftest.$ac_ext >&5
10573
10574{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10575See \`config.log' for more details." >&5
10576echo "$as_me: error: C compiler cannot create executables
10577See \`config.log' for more details." >&2;}
10578 { (exit 77); exit 77; }; }
10579fi
10580
10581ac_exeext=$ac_cv_exeext
10582echo "$as_me:$LINENO: result: $ac_file" >&5
10583echo "${ECHO_T}$ac_file" >&6
10584
10585# Check the compiler produces executables we can run. If not, either
10586# the compiler is broken, or we cross compile.
10587echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10588echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10589# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10590# If not cross compiling, check that we can run a simple program.
10591if test "$cross_compiling" != yes; then
10592 if { ac_try='./$ac_file'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 cross_compiling=no
10599 else
10600 if test "$cross_compiling" = maybe; then
10601 cross_compiling=yes
10602 else
10603 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10604If you meant to cross compile, use \`--host'.
10605See \`config.log' for more details." >&5
10606echo "$as_me: error: cannot run C compiled programs.
10607If you meant to cross compile, use \`--host'.
10608See \`config.log' for more details." >&2;}
10609 { (exit 1); exit 1; }; }
10610 fi
10611 fi
10612fi
10613echo "$as_me:$LINENO: result: yes" >&5
10614echo "${ECHO_T}yes" >&6
10615
10616rm -f a.out a.exe conftest$ac_cv_exeext b.out
10617ac_clean_files=$ac_clean_files_save
10618# Check the compiler produces executables we can run. If not, either
10619# the compiler is broken, or we cross compile.
10620echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10621echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10622echo "$as_me:$LINENO: result: $cross_compiling" >&5
10623echo "${ECHO_T}$cross_compiling" >&6
10624
10625echo "$as_me:$LINENO: checking for suffix of executables" >&5
10626echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628 (eval $ac_link) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; then
10632 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10633# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10634# work properly (i.e., refer to `conftest.exe'), while it won't with
10635# `rm'.
10636for ac_file in conftest.exe conftest conftest.*; do
10637 test -f "$ac_file" || continue
10638 case $ac_file in
10639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10640 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10641 export ac_cv_exeext
10642 break;;
a848cd7e
SC
10643 * ) break;;
10644 esac
10645done
10646else
10647 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10648See \`config.log' for more details." >&5
10649echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10650See \`config.log' for more details." >&2;}
10651 { (exit 1); exit 1; }; }
10652fi
10653
10654rm -f conftest$ac_cv_exeext
10655echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10656echo "${ECHO_T}$ac_cv_exeext" >&6
10657
10658rm -f conftest.$ac_ext
10659EXEEXT=$ac_cv_exeext
10660ac_exeext=$EXEEXT
10661echo "$as_me:$LINENO: checking for suffix of object files" >&5
10662echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10663if test "${ac_cv_objext+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665else
10666 cat >conftest.$ac_ext <<_ACEOF
10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h. */
10672
10673int
10674main ()
10675{
10676
10677 ;
10678 return 0;
10679}
10680_ACEOF
10681rm -f conftest.o conftest.obj
10682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; then
10687 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10688 case $ac_file in
10689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10690 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10691 break;;
10692 esac
10693done
10694else
10695 echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10699See \`config.log' for more details." >&5
10700echo "$as_me: error: cannot compute suffix of object files: cannot compile
10701See \`config.log' for more details." >&2;}
10702 { (exit 1); exit 1; }; }
10703fi
10704
10705rm -f conftest.$ac_cv_objext conftest.$ac_ext
10706fi
10707echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10708echo "${ECHO_T}$ac_cv_objext" >&6
10709OBJEXT=$ac_cv_objext
10710ac_objext=$OBJEXT
10711echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10712echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10713if test "${ac_cv_c_compiler_gnu+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716 cat >conftest.$ac_ext <<_ACEOF
10717/* confdefs.h. */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h. */
10722
10723int
10724main ()
10725{
10726#ifndef __GNUC__
10727 choke me
10728#endif
10729
10730 ;
10731 return 0;
10732}
10733_ACEOF
10734rm -f conftest.$ac_objext
10735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10736 (eval $ac_compile) 2>conftest.er1
a848cd7e 10737 ac_status=$?
ac1cb8d3
VS
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
a848cd7e
SC
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
ac1cb8d3
VS
10743 { ac_try='test -z "$ac_c_werror_flag"
10744 || test ! -s conftest.err'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; } &&
10750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_compiler_gnu=yes
10757else
10758 echo "$as_me: failed program was:" >&5
10759sed 's/^/| /' conftest.$ac_ext >&5
10760
10761ac_compiler_gnu=no
10762fi
ac1cb8d3 10763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10764ac_cv_c_compiler_gnu=$ac_compiler_gnu
10765
10766fi
10767echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10768echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10769GCC=`test $ac_compiler_gnu = yes && echo yes`
10770ac_test_CFLAGS=${CFLAGS+set}
10771ac_save_CFLAGS=$CFLAGS
10772CFLAGS="-g"
10773echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10774echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10775if test "${ac_cv_prog_cc_g+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h. */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h. */
10784
10785int
10786main ()
10787{
10788
10789 ;
10790 return 0;
10791}
10792_ACEOF
10793rm -f conftest.$ac_objext
10794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10795 (eval $ac_compile) 2>conftest.er1
a848cd7e 10796 ac_status=$?
ac1cb8d3
VS
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
a848cd7e
SC
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
ac1cb8d3
VS
10802 { ac_try='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_prog_cc_g=yes
10816else
10817 echo "$as_me: failed program was:" >&5
10818sed 's/^/| /' conftest.$ac_ext >&5
10819
10820ac_cv_prog_cc_g=no
10821fi
ac1cb8d3 10822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10823fi
10824echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10825echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10826if test "$ac_test_CFLAGS" = set; then
10827 CFLAGS=$ac_save_CFLAGS
10828elif test $ac_cv_prog_cc_g = yes; then
10829 if test "$GCC" = yes; then
10830 CFLAGS="-g -O2"
10831 else
10832 CFLAGS="-g"
10833 fi
10834else
10835 if test "$GCC" = yes; then
10836 CFLAGS="-O2"
10837 else
10838 CFLAGS=
10839 fi
10840fi
10841echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10842echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10843if test "${ac_cv_prog_cc_stdc+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846 ac_cv_prog_cc_stdc=no
10847ac_save_CC=$CC
10848cat >conftest.$ac_ext <<_ACEOF
10849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
10853/* end confdefs.h. */
10854#include <stdarg.h>
10855#include <stdio.h>
10856#include <sys/types.h>
10857#include <sys/stat.h>
10858/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10859struct buf { int x; };
10860FILE * (*rcsopen) (struct buf *, struct stat *, int);
10861static char *e (p, i)
10862 char **p;
10863 int i;
10864{
10865 return p[i];
10866}
10867static char *f (char * (*g) (char **, int), char **p, ...)
10868{
10869 char *s;
10870 va_list v;
10871 va_start (v,p);
10872 s = g (p, va_arg (v,int));
10873 va_end (v);
10874 return s;
10875}
ac1cb8d3
VS
10876
10877/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10878 function prototypes and stuff, but not '\xHH' hex character constants.
10879 These don't provoke an error unfortunately, instead are silently treated
10880 as 'x'. The following induces an error, until -std1 is added to get
10881 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10882 array size at least. It's necessary to write '\x00'==0 to get something
10883 that's true only with -std1. */
10884int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10885
a848cd7e
SC
10886int test (int i, double x);
10887struct s1 {int (*f) (int a);};
10888struct s2 {int (*f) (double a);};
10889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10890int argc;
10891char **argv;
10892int
10893main ()
10894{
10895return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10896 ;
10897 return 0;
10898}
10899_ACEOF
10900# Don't try gcc -ansi; that turns off useful extensions and
10901# breaks some systems' header files.
10902# AIX -qlanglvl=ansi
10903# Ultrix and OSF/1 -std1
10904# HP-UX 10.20 and later -Ae
10905# HP-UX older versions -Aa -D_HPUX_SOURCE
10906# SVR4 -Xc -D__EXTENSIONS__
10907for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10908do
10909 CC="$ac_save_CC $ac_arg"
10910 rm -f conftest.$ac_objext
10911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10912 (eval $ac_compile) 2>conftest.er1
a848cd7e 10913 ac_status=$?
ac1cb8d3
VS
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
a848cd7e
SC
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
ac1cb8d3
VS
10919 { ac_try='test -z "$ac_c_werror_flag"
10920 || test ! -s conftest.err'
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); } &&
ac1cb8d3
VS
10974 { ac_try='test -z "$ac_c_werror_flag"
10975 || test ! -s conftest.err'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 for ac_declaration in \
ac1cb8d3 10988 '' \
a848cd7e
SC
10989 'extern "C" void std::exit (int) throw (); using std::exit;' \
10990 'extern "C" void std::exit (int); using std::exit;' \
10991 'extern "C" void exit (int) throw ();' \
10992 'extern "C" void exit (int);' \
10993 'void exit (int);'
10994do
10995 cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h. */
de59c161 11001$ac_declaration
ac1cb8d3 11002#include <stdlib.h>
a848cd7e
SC
11003int
11004main ()
11005{
11006exit (42);
11007 ;
11008 return 0;
11009}
11010_ACEOF
11011rm -f conftest.$ac_objext
11012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11013 (eval $ac_compile) 2>conftest.er1
a848cd7e 11014 ac_status=$?
ac1cb8d3
VS
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
a848cd7e
SC
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
ac1cb8d3
VS
11020 { ac_try='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 :
11034else
11035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038continue
11039fi
ac1cb8d3 11040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11041 cat >conftest.$ac_ext <<_ACEOF
11042/* confdefs.h. */
11043_ACEOF
11044cat confdefs.h >>conftest.$ac_ext
11045cat >>conftest.$ac_ext <<_ACEOF
11046/* end confdefs.h. */
11047$ac_declaration
11048int
11049main ()
11050{
11051exit (42);
11052 ;
11053 return 0;
11054}
11055_ACEOF
11056rm -f conftest.$ac_objext
11057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11058 (eval $ac_compile) 2>conftest.er1
a848cd7e 11059 ac_status=$?
ac1cb8d3
VS
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
a848cd7e
SC
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
ac1cb8d3
VS
11065 { ac_try='test -z "$ac_c_werror_flag"
11066 || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 break
11079else
11080 echo "$as_me: failed program was:" >&5
11081sed 's/^/| /' conftest.$ac_ext >&5
11082
11083fi
ac1cb8d3 11084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11085done
11086rm -f conftest*
11087if test -n "$ac_declaration"; then
11088 echo '#ifdef __cplusplus' >>confdefs.h
11089 echo $ac_declaration >>confdefs.h
11090 echo '#endif' >>confdefs.h
11091fi
11092
11093else
11094 echo "$as_me: failed program was:" >&5
11095sed 's/^/| /' conftest.$ac_ext >&5
11096
11097fi
ac1cb8d3 11098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11099ac_ext=c
11100ac_cpp='$CPP $CPPFLAGS'
11101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11103ac_compiler_gnu=$ac_cv_c_compiler_gnu
11104
11105
11106
11107ac_ext=c
11108ac_cpp='$CPP $CPPFLAGS'
11109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11111ac_compiler_gnu=$ac_cv_c_compiler_gnu
11112echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11113echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11114# On Suns, sometimes $CPP names a directory.
11115if test -n "$CPP" && test -d "$CPP"; then
11116 CPP=
11117fi
11118if test -z "$CPP"; then
11119 if test "${ac_cv_prog_CPP+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121else
11122 # Double quotes because CPP needs to be expanded
11123 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11124 do
11125 ac_preproc_ok=false
11126for ac_c_preproc_warn_flag in '' yes
11127do
11128 # Use a header file that comes with gcc, so configuring glibc
11129 # with a fresh cross-compiler works.
11130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11131 # <limits.h> exists even on freestanding compilers.
11132 # On the NeXT, cc -E runs the code through the compiler's parser,
11133 # not just through cpp. "Syntax error" is here to catch this case.
11134 cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h. */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h. */
11140#ifdef __STDC__
11141# include <limits.h>
11142#else
11143# include <assert.h>
11144#endif
ac1cb8d3 11145 Syntax error
a848cd7e
SC
11146_ACEOF
11147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11149 ac_status=$?
11150 grep -v '^ *+' conftest.er1 >conftest.err
11151 rm -f conftest.er1
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } >/dev/null; then
11155 if test -s conftest.err; then
11156 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11158 else
11159 ac_cpp_err=
11160 fi
11161else
11162 ac_cpp_err=yes
11163fi
11164if test -z "$ac_cpp_err"; then
11165 :
11166else
11167 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 # Broken: fails on valid input.
11171continue
11172fi
11173rm -f conftest.err conftest.$ac_ext
11174
11175 # OK, works on sane cases. Now check whether non-existent headers
11176 # can be detected and how.
11177 cat >conftest.$ac_ext <<_ACEOF
11178/* confdefs.h. */
11179_ACEOF
11180cat confdefs.h >>conftest.$ac_ext
11181cat >>conftest.$ac_ext <<_ACEOF
11182/* end confdefs.h. */
11183#include <ac_nonexistent.h>
11184_ACEOF
11185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11187 ac_status=$?
11188 grep -v '^ *+' conftest.er1 >conftest.err
11189 rm -f conftest.er1
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } >/dev/null; then
11193 if test -s conftest.err; then
11194 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11196 else
11197 ac_cpp_err=
11198 fi
11199else
11200 ac_cpp_err=yes
11201fi
11202if test -z "$ac_cpp_err"; then
11203 # Broken: success on invalid input.
11204continue
11205else
11206 echo "$as_me: failed program was:" >&5
11207sed 's/^/| /' conftest.$ac_ext >&5
11208
11209 # Passes both tests.
11210ac_preproc_ok=:
11211break
11212fi
11213rm -f conftest.err conftest.$ac_ext
11214
11215done
11216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11217rm -f conftest.err conftest.$ac_ext
11218if $ac_preproc_ok; then
11219 break
11220fi
11221
11222 done
11223 ac_cv_prog_CPP=$CPP
11224
11225fi
11226 CPP=$ac_cv_prog_CPP
11227else
11228 ac_cv_prog_CPP=$CPP
11229fi
11230echo "$as_me:$LINENO: result: $CPP" >&5
11231echo "${ECHO_T}$CPP" >&6
11232ac_preproc_ok=false
11233for ac_c_preproc_warn_flag in '' yes
11234do
11235 # Use a header file that comes with gcc, so configuring glibc
11236 # with a fresh cross-compiler works.
11237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11238 # <limits.h> exists even on freestanding compilers.
11239 # On the NeXT, cc -E runs the code through the compiler's parser,
11240 # not just through cpp. "Syntax error" is here to catch this case.
11241 cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
11247#ifdef __STDC__
11248# include <limits.h>
11249#else
11250# include <assert.h>
11251#endif
ac1cb8d3 11252 Syntax error
a848cd7e
SC
11253_ACEOF
11254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } >/dev/null; then
11262 if test -s conftest.err; then
11263 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11265 else
11266 ac_cpp_err=
11267 fi
11268else
11269 ac_cpp_err=yes
11270fi
11271if test -z "$ac_cpp_err"; then
11272 :
11273else
11274 echo "$as_me: failed program was:" >&5
11275sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 # Broken: fails on valid input.
11278continue
11279fi
11280rm -f conftest.err conftest.$ac_ext
11281
11282 # OK, works on sane cases. Now check whether non-existent headers
11283 # can be detected and how.
11284 cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290#include <ac_nonexistent.h>
11291_ACEOF
11292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } >/dev/null; then
11300 if test -s conftest.err; then
11301 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11303 else
11304 ac_cpp_err=
11305 fi
11306else
11307 ac_cpp_err=yes
11308fi
11309if test -z "$ac_cpp_err"; then
11310 # Broken: success on invalid input.
11311continue
11312else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 # Passes both tests.
11317ac_preproc_ok=:
11318break
11319fi
11320rm -f conftest.err conftest.$ac_ext
11321
11322done
11323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11324rm -f conftest.err conftest.$ac_ext
11325if $ac_preproc_ok; then
11326 :
11327else
11328 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11329See \`config.log' for more details." >&5
11330echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11331See \`config.log' for more details." >&2;}
11332 { (exit 1); exit 1; }; }
11333fi
11334
11335ac_ext=c
11336ac_cpp='$CPP $CPPFLAGS'
11337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11339ac_compiler_gnu=$ac_cv_c_compiler_gnu
11340
11341
11342echo "$as_me:$LINENO: checking for egrep" >&5
11343echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11344if test "${ac_cv_prog_egrep+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346else
11347 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11348 then ac_cv_prog_egrep='grep -E'
11349 else ac_cv_prog_egrep='egrep'
11350 fi
11351fi
11352echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11353echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11354 EGREP=$ac_cv_prog_egrep
11355
11356
11357if test $ac_cv_c_compiler_gnu = yes; then
11358 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11359echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11360if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11362else
11363 ac_pattern="Autoconf.*'x'"
11364 cat >conftest.$ac_ext <<_ACEOF
11365/* confdefs.h. */
11366_ACEOF
11367cat confdefs.h >>conftest.$ac_ext
11368cat >>conftest.$ac_ext <<_ACEOF
11369/* end confdefs.h. */
11370#include <sgtty.h>
11371Autoconf TIOCGETP
11372_ACEOF
11373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11374 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11375 ac_cv_prog_gcc_traditional=yes
11376else
11377 ac_cv_prog_gcc_traditional=no
11378fi
11379rm -f conftest*
11380
11381
11382 if test $ac_cv_prog_gcc_traditional = no; then
11383 cat >conftest.$ac_ext <<_ACEOF
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
11389#include <termio.h>
11390Autoconf TCGETA
11391_ACEOF
11392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11393 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11394 ac_cv_prog_gcc_traditional=yes
11395fi
11396rm -f conftest*
11397
11398 fi
11399fi
11400echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11401echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11402 if test $ac_cv_prog_gcc_traditional = yes; then
11403 CC="$CC -traditional"
11404 fi
11405fi
11406
11407
11408
11409
11410ac_ext=cc
11411ac_cpp='$CXXCPP $CPPFLAGS'
11412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11415
11416
11417CXXFLAGS=${CXXFLAGS:=}
11418ac_ext=cc
11419ac_cpp='$CXXCPP $CPPFLAGS'
11420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11423if test -n "$ac_tool_prefix"; then
11424 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11425 do
11426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11427set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11428echo "$as_me:$LINENO: checking for $ac_word" >&5
11429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11430if test "${ac_cv_prog_CXX+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432else
11433 if test -n "$CXX"; then
11434 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11435else
11436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437for as_dir in $PATH
11438do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11443 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 break 2
11446 fi
11447done
11448done
11449
11450fi
11451fi
11452CXX=$ac_cv_prog_CXX
11453if test -n "$CXX"; then
11454 echo "$as_me:$LINENO: result: $CXX" >&5
11455echo "${ECHO_T}$CXX" >&6
11456else
11457 echo "$as_me:$LINENO: result: no" >&5
11458echo "${ECHO_T}no" >&6
11459fi
11460
11461 test -n "$CXX" && break
11462 done
11463fi
11464if test -z "$CXX"; then
11465 ac_ct_CXX=$CXX
11466 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11467do
11468 # Extract the first word of "$ac_prog", so it can be a program name with args.
11469set dummy $ac_prog; ac_word=$2
11470echo "$as_me:$LINENO: checking for $ac_word" >&5
11471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11472if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474else
11475 if test -n "$ac_ct_CXX"; then
11476 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11477else
11478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11485 ac_cv_prog_ac_ct_CXX="$ac_prog"
11486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11488 fi
11489done
11490done
11491
11492fi
11493fi
11494ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11495if test -n "$ac_ct_CXX"; then
11496 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11497echo "${ECHO_T}$ac_ct_CXX" >&6
11498else
11499 echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6
11501fi
11502
11503 test -n "$ac_ct_CXX" && break
11504done
11505test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11506
11507 CXX=$ac_ct_CXX
11508fi
11509
11510
11511# Provide some information about the compiler.
11512echo "$as_me:$LINENO:" \
11513 "checking for C++ compiler version" >&5
11514ac_compiler=`set X $ac_compile; echo $2`
11515{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11516 (eval $ac_compiler --version </dev/null >&5) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }
11520{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11521 (eval $ac_compiler -v </dev/null >&5) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }
11525{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11526 (eval $ac_compiler -V </dev/null >&5) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }
11530
11531echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11532echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11533if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535else
11536 cat >conftest.$ac_ext <<_ACEOF
11537/* confdefs.h. */
11538_ACEOF
11539cat confdefs.h >>conftest.$ac_ext
11540cat >>conftest.$ac_ext <<_ACEOF
11541/* end confdefs.h. */
11542
11543int
11544main ()
11545{
11546#ifndef __GNUC__
11547 choke me
11548#endif
11549
11550 ;
11551 return 0;
11552}
11553_ACEOF
11554rm -f conftest.$ac_objext
11555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11556 (eval $ac_compile) 2>conftest.er1
a848cd7e 11557 ac_status=$?
ac1cb8d3
VS
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
a848cd7e
SC
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
ac1cb8d3
VS
11563 { ac_try='test -z "$ac_cxx_werror_flag"
11564 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_compiler_gnu=yes
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
11581ac_compiler_gnu=no
11582fi
ac1cb8d3 11583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11584ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11585
11586fi
11587echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11588echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11589GXX=`test $ac_compiler_gnu = yes && echo yes`
11590ac_test_CXXFLAGS=${CXXFLAGS+set}
11591ac_save_CXXFLAGS=$CXXFLAGS
11592CXXFLAGS="-g"
11593echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11594echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11595if test "${ac_cv_prog_cxx_g+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597else
11598 cat >conftest.$ac_ext <<_ACEOF
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
11604
11605int
11606main ()
11607{
11608
11609 ;
11610 return 0;
11611}
11612_ACEOF
11613rm -f conftest.$ac_objext
11614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11615 (eval $ac_compile) 2>conftest.er1
a848cd7e 11616 ac_status=$?
ac1cb8d3
VS
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
a848cd7e
SC
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
ac1cb8d3
VS
11622 { ac_try='test -z "$ac_cxx_werror_flag"
11623 || test ! -s conftest.err'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_cv_prog_cxx_g=yes
11636else
11637 echo "$as_me: failed program was:" >&5
11638sed 's/^/| /' conftest.$ac_ext >&5
11639
11640ac_cv_prog_cxx_g=no
11641fi
ac1cb8d3 11642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11643fi
11644echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11645echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11646if test "$ac_test_CXXFLAGS" = set; then
11647 CXXFLAGS=$ac_save_CXXFLAGS
11648elif test $ac_cv_prog_cxx_g = yes; then
11649 if test "$GXX" = yes; then
11650 CXXFLAGS="-g -O2"
11651 else
11652 CXXFLAGS="-g"
11653 fi
11654else
11655 if test "$GXX" = yes; then
11656 CXXFLAGS="-O2"
11657 else
11658 CXXFLAGS=
11659 fi
11660fi
11661for ac_declaration in \
ac1cb8d3 11662 '' \
a848cd7e
SC
11663 'extern "C" void std::exit (int) throw (); using std::exit;' \
11664 'extern "C" void std::exit (int); using std::exit;' \
11665 'extern "C" void exit (int) throw ();' \
11666 'extern "C" void exit (int);' \
11667 'void exit (int);'
11668do
11669 cat >conftest.$ac_ext <<_ACEOF
11670/* confdefs.h. */
11671_ACEOF
11672cat confdefs.h >>conftest.$ac_ext
11673cat >>conftest.$ac_ext <<_ACEOF
11674/* end confdefs.h. */
de59c161 11675$ac_declaration
ac1cb8d3 11676#include <stdlib.h>
a848cd7e
SC
11677int
11678main ()
11679{
11680exit (42);
11681 ;
11682 return 0;
11683}
11684_ACEOF
11685rm -f conftest.$ac_objext
11686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11687 (eval $ac_compile) 2>conftest.er1
a848cd7e 11688 ac_status=$?
ac1cb8d3
VS
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
a848cd7e
SC
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
ac1cb8d3
VS
11694 { ac_try='test -z "$ac_cxx_werror_flag"
11695 || test ! -s conftest.err'
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); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 :
11708else
11709 echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712continue
11713fi
ac1cb8d3 11714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11715 cat >conftest.$ac_ext <<_ACEOF
11716/* confdefs.h. */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h. */
11721$ac_declaration
11722int
11723main ()
11724{
11725exit (42);
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext
11731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11732 (eval $ac_compile) 2>conftest.er1
a848cd7e 11733 ac_status=$?
ac1cb8d3
VS
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
a848cd7e
SC
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
ac1cb8d3
VS
11739 { ac_try='test -z "$ac_cxx_werror_flag"
11740 || test ! -s conftest.err'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 break
11753else
11754 echo "$as_me: failed program was:" >&5
11755sed 's/^/| /' conftest.$ac_ext >&5
11756
11757fi
ac1cb8d3 11758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11759done
11760rm -f conftest*
11761if test -n "$ac_declaration"; then
11762 echo '#ifdef __cplusplus' >>confdefs.h
11763 echo $ac_declaration >>confdefs.h
11764 echo '#endif' >>confdefs.h
11765fi
11766
11767ac_ext=cc
11768ac_cpp='$CXXCPP $CPPFLAGS'
11769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11772
11773
11774ac_ext=c
11775ac_cpp='$CPP $CPPFLAGS'
11776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11778ac_compiler_gnu=$ac_cv_c_compiler_gnu
11779
11780
11781echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11782echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11783GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11784if test "$GCC" = "yes" ; then
11785 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11786 sed -n '1,/End of search list\./p' | \
11787 grep '^ */usr/local/include$' 2>&1 /dev/null \
11788 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11789fi
11790echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11791echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11792
11793if test -n "$ac_tool_prefix"; then
11794 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11795set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11796echo "$as_me:$LINENO: checking for $ac_word" >&5
11797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11798if test "${ac_cv_prog_RANLIB+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 if test -n "$RANLIB"; then
11802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11803else
11804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805for as_dir in $PATH
11806do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11814 fi
11815done
11816done
11817
11818fi
11819fi
11820RANLIB=$ac_cv_prog_RANLIB
11821if test -n "$RANLIB"; then
11822 echo "$as_me:$LINENO: result: $RANLIB" >&5
11823echo "${ECHO_T}$RANLIB" >&6
11824else
11825 echo "$as_me:$LINENO: result: no" >&5
11826echo "${ECHO_T}no" >&6
11827fi
11828
11829fi
11830if test -z "$ac_cv_prog_RANLIB"; then
11831 ac_ct_RANLIB=$RANLIB
11832 # Extract the first word of "ranlib", so it can be a program name with args.
11833set dummy ranlib; ac_word=$2
11834echo "$as_me:$LINENO: checking for $ac_word" >&5
11835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11836if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839 if test -n "$ac_ct_RANLIB"; then
11840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11841else
11842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843for as_dir in $PATH
11844do
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11849 ac_cv_prog_ac_ct_RANLIB="ranlib"
11850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11851 break 2
11852 fi
11853done
11854done
11855
11856 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11857fi
11858fi
11859ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11860if test -n "$ac_ct_RANLIB"; then
11861 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11862echo "${ECHO_T}$ac_ct_RANLIB" >&6
11863else
11864 echo "$as_me:$LINENO: result: no" >&5
11865echo "${ECHO_T}no" >&6
11866fi
11867
11868 RANLIB=$ac_ct_RANLIB
11869else
11870 RANLIB="$ac_cv_prog_RANLIB"
11871fi
11872
11873
11874# Extract the first word of "ar", so it can be a program name with args.
11875set dummy ar; ac_word=$2
11876echo "$as_me:$LINENO: checking for $ac_word" >&5
11877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11878if test "${ac_cv_prog_AR+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 if test -n "$AR"; then
11882 ac_cv_prog_AR="$AR" # Let the user override the test.
11883else
11884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885for as_dir in $PATH
11886do
11887 IFS=$as_save_IFS
11888 test -z "$as_dir" && as_dir=.
11889 for ac_exec_ext in '' $ac_executable_extensions; do
11890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11891 ac_cv_prog_AR="ar"
11892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11893 break 2
11894 fi
11895done
11896done
11897
11898fi
11899fi
11900AR=$ac_cv_prog_AR
11901if test -n "$AR"; then
11902 echo "$as_me:$LINENO: result: $AR" >&5
11903echo "${ECHO_T}$AR" >&6
11904else
11905 echo "$as_me:$LINENO: result: no" >&5
11906echo "${ECHO_T}no" >&6
11907fi
11908
11909if test "x$AR" = "x" ; then
77ffb593
JS
11910 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11911echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11912 { (exit 1); exit 1; }; }
11913fi
11914
11915# Find a good install program. We prefer a C program (faster),
11916# so one script is as good as another. But avoid the broken or
11917# incompatible versions:
11918# SysV /etc/install, /usr/sbin/install
11919# SunOS /usr/etc/install
11920# IRIX /sbin/install
11921# AIX /bin/install
11922# AmigaOS /C/install, which installs bootblocks on floppy discs
11923# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11924# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11925# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11926# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11927# ./install, which can be erroneously created by make from ./install.sh.
11928echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11929echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11930if test -z "$INSTALL"; then
11931if test "${ac_cv_path_install+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933else
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935for as_dir in $PATH
11936do
11937 IFS=$as_save_IFS
11938 test -z "$as_dir" && as_dir=.
11939 # Account for people who put trailing slashes in PATH elements.
11940case $as_dir/ in
11941 ./ | .// | /cC/* | \
11942 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11943 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11944 /usr/ucb/* ) ;;
11945 *)
11946 # OSF1 and SCO ODT 3.0 have their own names for install.
11947 # Don't use installbsd from OSF since it installs stuff as root
11948 # by default.
11949 for ac_prog in ginstall scoinst install; do
11950 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11951 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11952 if test $ac_prog = install &&
11953 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11954 # AIX install. It has an incompatible calling convention.
11955 :
11956 elif test $ac_prog = install &&
11957 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11958 # program-specific install script used by HP pwplus--don't use.
11959 :
11960 else
11961 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11962 break 3
11963 fi
11964 fi
a848cd7e
SC
11965 done
11966 done
11967 ;;
11968esac
11969done
11970
11971
11972fi
11973 if test "${ac_cv_path_install+set}" = set; then
11974 INSTALL=$ac_cv_path_install
11975 else
11976 # As a last resort, use the slow shell script. We don't cache a
11977 # path for INSTALL within a source directory, because that will
11978 # break other packages using the cache if that directory is
11979 # removed, or if the path is relative.
11980 INSTALL=$ac_install_sh
11981 fi
11982fi
11983echo "$as_me:$LINENO: result: $INSTALL" >&5
11984echo "${ECHO_T}$INSTALL" >&6
11985
11986# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11987# It thinks the first close brace ends the variable substitution.
11988test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11989
11990test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11991
11992test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11993
11994
11995case ${INSTALL} in
11996 /* ) # Absolute
11997 ;;
11998 ?:* ) # Drive letter, considered as absolute.
11999 ;;
12000 *)
12001 INSTALL=`pwd`/${INSTALL} ;;
12002esac
12003
12004case ${host} in
12005 *-hp-hpux* )
12006 INSTALL_DIR="mkdir"
12007 ;;
12008
12009 *) INSTALL_DIR="$INSTALL -d"
12010 ;;
12011esac
12012
12013
12014case "${host}" in
12015
12016 powerpc-*-darwin* )
12017 INSTALL_PROGRAM="cp -fp"
12018 INSTALL_DATA="cp -fp"
12019 ;;
12020 *)
12021 ;;
12022esac
12023
12024# Extract the first word of "strip", so it can be a program name with args.
12025set dummy strip; ac_word=$2
12026echo "$as_me:$LINENO: checking for $ac_word" >&5
12027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12028if test "${ac_cv_prog_STRIP+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030else
12031 if test -n "$STRIP"; then
12032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12033else
12034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035for as_dir in $PATH
12036do
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041 ac_cv_prog_STRIP="strip"
12042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12044 fi
12045done
12046done
12047
12048 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12049fi
12050fi
12051STRIP=$ac_cv_prog_STRIP
12052if test -n "$STRIP"; then
12053 echo "$as_me:$LINENO: result: $STRIP" >&5
12054echo "${ECHO_T}$STRIP" >&6
12055else
12056 echo "$as_me:$LINENO: result: no" >&5
12057echo "${ECHO_T}no" >&6
12058fi
12059
12060
12061echo "$as_me:$LINENO: checking if make is GNU make" >&5
12062echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12063if test "${wx_cv_prog_makeisgnu+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065else
12066
12067 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12068 egrep -s GNU > /dev/null); then
12069 wx_cv_prog_makeisgnu="yes"
12070 else
12071 wx_cv_prog_makeisgnu="no"
12072 fi
12073
12074fi
12075echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12076echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12077
12078if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12079 IF_GNU_MAKE=""
12080else
12081 IF_GNU_MAKE="#"
12082fi
12083
12084
12085
12086if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12087echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12088echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12089if test "${wx_cv_prog_makevpath+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091else
12092
12093cat - << EOF > confMake
12094check : file
12095 cp \$? \$@
12096 cp \$? final_file
12097EOF
12098
12099if test ! -d sub ; then
12100 mkdir sub
12101fi
12102echo dummy > sub/file
12103${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12104RESULT=$?
12105rm -f sub/file check final_file confMake
12106rmdir sub
12107if test "$RESULT" = 0; then
12108 wx_cv_prog_makevpath="yes"
12109else
12110 wx_cv_prog_makevpath="no"
12111fi
12112
12113fi
12114echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12115echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12116
12117if test "x$wx_cv_prog_makevpath" != "xyes"; then
12118{ { echo "$as_me:$LINENO: error:
12119You need a make-utility that is able to use the variable
12120VPATH correctly.
12121If your version of make does not support VPATH correctly,
12122please install GNU-make (possibly as gmake), and start
12123configure with the following command:
12124export MAKE=gmake; ./configure for sh-type shells
12125setenv MAKE gmake; ./configure for csh-type shells
12126Also please do remember to use gmake in this case every time
12127you are trying to compile.
12128" >&5
12129echo "$as_me: error:
12130You need a make-utility that is able to use the variable
12131VPATH correctly.
12132If your version of make does not support VPATH correctly,
12133please install GNU-make (possibly as gmake), and start
12134configure with the following command:
12135export MAKE=gmake; ./configure for sh-type shells
12136setenv MAKE gmake; ./configure for csh-type shells
12137Also please do remember to use gmake in this case every time
12138you are trying to compile.
12139" >&2;}
12140 { (exit 1); exit 1; }; }
12141fi fi
12142echo "$as_me:$LINENO: checking whether ln -s works" >&5
12143echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12144LN_S=$as_ln_s
12145if test "$LN_S" = "ln -s"; then
12146 echo "$as_me:$LINENO: result: yes" >&5
12147echo "${ECHO_T}yes" >&6
12148else
12149 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12150echo "${ECHO_T}no, using $LN_S" >&6
12151fi
12152
12153
12154
12155case "${host}" in
12156 *-pc-os2_emx | *-pc-os2-emx )
12157 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12158 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12159echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12160if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162else
12163 ac_check_lib_save_LIBS=$LIBS
12164LIBS="-lcExt $LIBS"
12165cat >conftest.$ac_ext <<_ACEOF
12166/* confdefs.h. */
12167_ACEOF
12168cat confdefs.h >>conftest.$ac_ext
12169cat >>conftest.$ac_ext <<_ACEOF
12170/* end confdefs.h. */
12171
12172/* Override any gcc2 internal prototype to avoid an error. */
12173#ifdef __cplusplus
12174extern "C"
12175#endif
12176/* We use char because int might match the return type of a gcc2
12177 builtin and then its argument prototype would still apply. */
12178char drand48 ();
12179int
12180main ()
12181{
12182drand48 ();
12183 ;
12184 return 0;
12185}
12186_ACEOF
12187rm -f conftest.$ac_objext conftest$ac_exeext
12188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12189 (eval $ac_link) 2>conftest.er1
a848cd7e 12190 ac_status=$?
ac1cb8d3
VS
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
a848cd7e
SC
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
ac1cb8d3
VS
12196 { ac_try='test -z "$ac_c_werror_flag"
12197 || test ! -s conftest.err'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 ac_cv_lib_cExt_drand48=yes
12210else
12211 echo "$as_me: failed program was:" >&5
12212sed 's/^/| /' conftest.$ac_ext >&5
12213
12214ac_cv_lib_cExt_drand48=no
12215fi
ac1cb8d3
VS
12216rm -f conftest.err conftest.$ac_objext \
12217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12218LIBS=$ac_check_lib_save_LIBS
12219fi
12220echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12221echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12222if test $ac_cv_lib_cExt_drand48 = yes; then
12223 LIBS="$LIBS -lcExt"
12224fi
12225
12226 else
12227 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12228 fi
12229 echo "$as_me:$LINENO: checking for gcc version" >&5
12230echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12231if test "${wx_cv_gccversion+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233else
12234
12235 cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241
12242int
12243main ()
12244{
12245
12246 #if (__GNUC__ < 3)
12247 #error old gcc
12248 #endif
12249
12250 ;
12251 return 0;
12252}
12253_ACEOF
12254rm -f conftest.$ac_objext
12255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12256 (eval $ac_compile) 2>conftest.er1
a848cd7e 12257 ac_status=$?
ac1cb8d3
VS
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
a848cd7e
SC
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
ac1cb8d3
VS
12263 { ac_try='test -z "$ac_c_werror_flag"
12264 || test ! -s conftest.err'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; } &&
12270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276
12277 cat >conftest.$ac_ext <<_ACEOF
12278/* confdefs.h. */
12279_ACEOF
12280cat confdefs.h >>conftest.$ac_ext
12281cat >>conftest.$ac_ext <<_ACEOF
12282/* end confdefs.h. */
12283
12284int
12285main ()
12286{
12287
12288 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12289 #error intermediate gcc
12290 #endif
12291
12292 ;
12293 return 0;
12294}
12295_ACEOF
12296rm -f conftest.$ac_objext
12297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12298 (eval $ac_compile) 2>conftest.er1
a848cd7e 12299 ac_status=$?
ac1cb8d3
VS
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
a848cd7e
SC
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
ac1cb8d3
VS
12305 { ac_try='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318
12319 wx_cv_gccversion=Innotek
12320
12321else
12322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325
12326 wx_cv_gccversion=3
12327
12328
12329fi
ac1cb8d3 12330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12331
12332else
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336
12337 wx_cv_gccversion=2
12338
12339
12340fi
ac1cb8d3 12341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12342
12343fi
12344echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12345echo "${ECHO_T}$wx_cv_gccversion" >&6
12346 if test "$wx_cv_gccversion" = "2"; then
12347 LIBS="$LIBS -lstdcpp"
12348 LDFLAGS="$LDFLAGS -Zsysv-signals"
12349 else
12350 if test "$wx_cv_gccversion" = "3"; then
12351 LIBS="$LIBS -lstdcxx"
12352 LDFLAGS="$LDFLAGS -Zsysv-signals"
12353 else
12354 LIBS="$LIBS -lstdc++"
12355 fi
12356 fi
12357 if test "$wxUSE_OMF" = "yes"; then
de59c161 12358 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12359 fi
12360 ;;
12361 *)
12362
12363
12364
12365 ac_ext=cc
12366ac_cpp='$CXXCPP $CPPFLAGS'
12367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12370
12371
12372
12373echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12374echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12375if test "${ac_cv_string_strcasecmp+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
12378
12379 cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h. */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h. */
12385
12386 #include <string.h>
12387
12388int
12389main ()
12390{
12391
12392 strcasecmp("foo", "bar");
12393
12394 ;
12395 return 0;
12396}
12397_ACEOF
12398rm -f conftest.$ac_objext conftest$ac_exeext
12399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12400 (eval $ac_link) 2>conftest.er1
a848cd7e 12401 ac_status=$?
ac1cb8d3
VS
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
a848cd7e
SC
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
ac1cb8d3
VS
12407 { ac_try='test -z "$ac_cxx_werror_flag"
12408 || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_cv_string_strcasecmp=yes
12421else
12422 echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
12425ac_cv_string_strcasecmp=no
12426
12427fi
ac1cb8d3
VS
12428rm -f conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12430
12431fi
12432echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12433echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12434
12435 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12436 cat >>confdefs.h <<\_ACEOF
12437#define HAVE_STRCASECMP_IN_STRING_H 1
12438_ACEOF
12439
12440 else
12441 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12442echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12443if test "${ac_cv_strings_strcasecmp+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446
12447 cat >conftest.$ac_ext <<_ACEOF
12448/* confdefs.h. */
12449_ACEOF
12450cat confdefs.h >>conftest.$ac_ext
12451cat >>conftest.$ac_ext <<_ACEOF
12452/* end confdefs.h. */
12453
12454 #include <strings.h>
12455
12456int
12457main ()
12458{
12459
12460 strcasecmp("foo", "bar");
12461
12462 ;
12463 return 0;
12464}
12465_ACEOF
12466rm -f conftest.$ac_objext conftest$ac_exeext
12467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12468 (eval $ac_link) 2>conftest.er1
a848cd7e 12469 ac_status=$?
ac1cb8d3
VS
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
a848cd7e
SC
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
ac1cb8d3
VS
12475 { ac_try='test -z "$ac_cxx_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_strings_strcasecmp=yes
12489else
12490 echo "$as_me: failed program was:" >&5
12491sed 's/^/| /' conftest.$ac_ext >&5
12492
12493ac_cv_strings_strcasecmp=no
12494
12495fi
ac1cb8d3
VS
12496rm -f conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12498
12499fi
12500echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12501echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12502
12503 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12504 cat >>confdefs.h <<\_ACEOF
12505#define HAVE_STRCASECMP_IN_STRINGS_H 1
12506_ACEOF
12507
12508 else
12509 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12510echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12511 { (exit 1); exit 1; }; }
12512 fi
12513 fi
12514
12515 ac_ext=c
12516ac_cpp='$CPP $CPPFLAGS'
12517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12519ac_compiler_gnu=$ac_cv_c_compiler_gnu
12520
12521 ;;
12522esac
12523
12524
12525echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12526echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12527if test "${ac_cv_header_stdc+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529else
12530 cat >conftest.$ac_ext <<_ACEOF
12531/* confdefs.h. */
12532_ACEOF
12533cat confdefs.h >>conftest.$ac_ext
12534cat >>conftest.$ac_ext <<_ACEOF
12535/* end confdefs.h. */
12536#include <stdlib.h>
12537#include <stdarg.h>
12538#include <string.h>
12539#include <float.h>
12540
12541int
12542main ()
12543{
12544
12545 ;
12546 return 0;
12547}
12548_ACEOF
12549rm -f conftest.$ac_objext
12550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12551 (eval $ac_compile) 2>conftest.er1
a848cd7e 12552 ac_status=$?
ac1cb8d3
VS
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
a848cd7e
SC
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
ac1cb8d3
VS
12558 { ac_try='test -z "$ac_c_werror_flag"
12559 || test ! -s conftest.err'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 ac_cv_header_stdc=yes
12572else
12573 echo "$as_me: failed program was:" >&5
12574sed 's/^/| /' conftest.$ac_ext >&5
12575
12576ac_cv_header_stdc=no
12577fi
ac1cb8d3 12578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12579
12580if test $ac_cv_header_stdc = yes; then
12581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12582 cat >conftest.$ac_ext <<_ACEOF
12583/* confdefs.h. */
12584_ACEOF
12585cat confdefs.h >>conftest.$ac_ext
12586cat >>conftest.$ac_ext <<_ACEOF
12587/* end confdefs.h. */
12588#include <string.h>
12589
12590_ACEOF
12591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12592 $EGREP "memchr" >/dev/null 2>&1; then
12593 :
12594else
12595 ac_cv_header_stdc=no
12596fi
12597rm -f conftest*
12598
12599fi
12600
12601if test $ac_cv_header_stdc = yes; then
12602 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12603 cat >conftest.$ac_ext <<_ACEOF
12604/* confdefs.h. */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
12608/* end confdefs.h. */
12609#include <stdlib.h>
12610
12611_ACEOF
12612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12613 $EGREP "free" >/dev/null 2>&1; then
12614 :
12615else
12616 ac_cv_header_stdc=no
12617fi
12618rm -f conftest*
12619
12620fi
12621
12622if test $ac_cv_header_stdc = yes; then
12623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12624 if test "$cross_compiling" = yes; then
12625 :
12626else
12627 cat >conftest.$ac_ext <<_ACEOF
12628/* confdefs.h. */
12629_ACEOF
12630cat confdefs.h >>conftest.$ac_ext
12631cat >>conftest.$ac_ext <<_ACEOF
12632/* end confdefs.h. */
12633#include <ctype.h>
12634#if ((' ' & 0x0FF) == 0x020)
12635# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12636# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12637#else
12638# define ISLOWER(c) \
ac1cb8d3
VS
12639 (('a' <= (c) && (c) <= 'i') \
12640 || ('j' <= (c) && (c) <= 'r') \
12641 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12642# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12643#endif
12644
12645#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12646int
12647main ()
12648{
12649 int i;
12650 for (i = 0; i < 256; i++)
12651 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12652 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12653 exit(2);
12654 exit (0);
12655}
12656_ACEOF
12657rm -f conftest$ac_exeext
12658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 :
12669else
12670 echo "$as_me: program exited with status $ac_status" >&5
12671echo "$as_me: failed program was:" >&5
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
12674( exit $ac_status )
12675ac_cv_header_stdc=no
12676fi
ac1cb8d3 12677rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12678fi
12679fi
12680fi
12681echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12682echo "${ECHO_T}$ac_cv_header_stdc" >&6
12683if test $ac_cv_header_stdc = yes; then
12684
12685cat >>confdefs.h <<\_ACEOF
12686#define STDC_HEADERS 1
12687_ACEOF
12688
12689fi
12690
12691# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12702 inttypes.h stdint.h unistd.h
a848cd7e
SC
12703do
12704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12705echo "$as_me:$LINENO: checking for $ac_header" >&5
12706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12707if eval "test \"\${$as_ac_Header+set}\" = set"; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709else
12710 cat >conftest.$ac_ext <<_ACEOF
12711/* confdefs.h. */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h. */
12716$ac_includes_default
12717
12718#include <$ac_header>
12719_ACEOF
12720rm -f conftest.$ac_objext
12721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12722 (eval $ac_compile) 2>conftest.er1
a848cd7e 12723 ac_status=$?
ac1cb8d3
VS
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
a848cd7e
SC
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
ac1cb8d3
VS
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 eval "$as_ac_Header=yes"
12743else
12744 echo "$as_me: failed program was:" >&5
12745sed 's/^/| /' conftest.$ac_ext >&5
12746
12747eval "$as_ac_Header=no"
12748fi
ac1cb8d3 12749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12750fi
12751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12753if test `eval echo '${'$as_ac_Header'}'` = yes; then
12754 cat >>confdefs.h <<_ACEOF
12755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12756_ACEOF
12757
12758fi
12759
12760done
12761
12762
12763
12764for ac_header in stdlib.h
12765do
12766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12767if eval "test \"\${$as_ac_Header+set}\" = set"; then
12768 echo "$as_me:$LINENO: checking for $ac_header" >&5
12769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12770if eval "test \"\${$as_ac_Header+set}\" = set"; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772fi
12773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12775else
12776 # Is the header compilable?
12777echo "$as_me:$LINENO: checking $ac_header usability" >&5
12778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12779cat >conftest.$ac_ext <<_ACEOF
12780/* confdefs.h. */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h. */
12785$ac_includes_default
12786#include <$ac_header>
12787_ACEOF
12788rm -f conftest.$ac_objext
12789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12790 (eval $ac_compile) 2>conftest.er1
a848cd7e 12791 ac_status=$?
ac1cb8d3
VS
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
a848cd7e
SC
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
ac1cb8d3
VS
12797 { ac_try='test -z "$ac_c_werror_flag"
12798 || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_header_compiler=yes
12811else
12812 echo "$as_me: failed program was:" >&5
12813sed 's/^/| /' conftest.$ac_ext >&5
12814
12815ac_header_compiler=no
12816fi
ac1cb8d3 12817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12819echo "${ECHO_T}$ac_header_compiler" >&6
12820
12821# Is the header present?
12822echo "$as_me:$LINENO: checking $ac_header presence" >&5
12823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12824cat >conftest.$ac_ext <<_ACEOF
12825/* confdefs.h. */
12826_ACEOF
12827cat confdefs.h >>conftest.$ac_ext
12828cat >>conftest.$ac_ext <<_ACEOF
12829/* end confdefs.h. */
12830#include <$ac_header>
12831_ACEOF
12832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } >/dev/null; then
12840 if test -s conftest.err; then
12841 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12843 else
12844 ac_cpp_err=
12845 fi
12846else
12847 ac_cpp_err=yes
12848fi
12849if test -z "$ac_cpp_err"; then
12850 ac_header_preproc=yes
12851else
12852 echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
12855 ac_header_preproc=no
12856fi
12857rm -f conftest.err conftest.$ac_ext
12858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12859echo "${ECHO_T}$ac_header_preproc" >&6
12860
12861# So? What about this header?
ac1cb8d3
VS
12862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12863 yes:no: )
a848cd7e
SC
12864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12868 ac_header_preproc=yes
a848cd7e 12869 ;;
ac1cb8d3 12870 no:yes:* )
a848cd7e
SC
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12883 (
12884 cat <<\_ASBOX
ac1cb8d3
VS
12885## ----------------------------------------- ##
12886## Report this to wx-dev@lists.wxwidgets.org ##
12887## ----------------------------------------- ##
a848cd7e
SC
12888_ASBOX
12889 ) |
12890 sed "s/^/$as_me: WARNING: /" >&2
12891 ;;
12892esac
12893echo "$as_me:$LINENO: checking for $ac_header" >&5
12894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12895if eval "test \"\${$as_ac_Header+set}\" = set"; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
ac1cb8d3 12898 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12899fi
12900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12902
12903fi
12904if test `eval echo '${'$as_ac_Header'}'` = yes; then
12905 cat >>confdefs.h <<_ACEOF
12906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12907_ACEOF
12908
12909fi
12910
12911done
12912
12913
12914for ac_header in malloc.h
12915do
12916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12917if eval "test \"\${$as_ac_Header+set}\" = set"; then
12918 echo "$as_me:$LINENO: checking for $ac_header" >&5
12919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12920if eval "test \"\${$as_ac_Header+set}\" = set"; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922fi
12923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12925else
12926 # Is the header compilable?
12927echo "$as_me:$LINENO: checking $ac_header usability" >&5
12928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12929cat >conftest.$ac_ext <<_ACEOF
12930/* confdefs.h. */
12931_ACEOF
12932cat confdefs.h >>conftest.$ac_ext
12933cat >>conftest.$ac_ext <<_ACEOF
12934/* end confdefs.h. */
12935$ac_includes_default
12936#include <$ac_header>
12937_ACEOF
12938rm -f conftest.$ac_objext
12939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12940 (eval $ac_compile) 2>conftest.er1
a848cd7e 12941 ac_status=$?
ac1cb8d3
VS
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
a848cd7e
SC
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
ac1cb8d3
VS
12947 { ac_try='test -z "$ac_c_werror_flag"
12948 || test ! -s conftest.err'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; } &&
12954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; }; then
12960 ac_header_compiler=yes
12961else
12962 echo "$as_me: failed program was:" >&5
12963sed 's/^/| /' conftest.$ac_ext >&5
12964
12965ac_header_compiler=no
12966fi
ac1cb8d3 12967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12969echo "${ECHO_T}$ac_header_compiler" >&6
12970
12971# Is the header present?
12972echo "$as_me:$LINENO: checking $ac_header presence" >&5
12973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12974cat >conftest.$ac_ext <<_ACEOF
12975/* confdefs.h. */
12976_ACEOF
12977cat confdefs.h >>conftest.$ac_ext
12978cat >>conftest.$ac_ext <<_ACEOF
12979/* end confdefs.h. */
12980#include <$ac_header>
12981_ACEOF
12982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12984 ac_status=$?
12985 grep -v '^ *+' conftest.er1 >conftest.err
12986 rm -f conftest.er1
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } >/dev/null; then
12990 if test -s conftest.err; then
12991 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12993 else
12994 ac_cpp_err=
12995 fi
12996else
12997 ac_cpp_err=yes
12998fi
12999if test -z "$ac_cpp_err"; then
13000 ac_header_preproc=yes
13001else
13002 echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
13005 ac_header_preproc=no
13006fi
13007rm -f conftest.err conftest.$ac_ext
13008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13009echo "${ECHO_T}$ac_header_preproc" >&6
13010
13011# So? What about this header?
ac1cb8d3
VS
13012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13013 yes:no: )
a848cd7e
SC
13014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13018 ac_header_preproc=yes
a848cd7e 13019 ;;
ac1cb8d3 13020 no:yes:* )
a848cd7e
SC
13021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13033 (
13034 cat <<\_ASBOX
ac1cb8d3
VS
13035## ----------------------------------------- ##
13036## Report this to wx-dev@lists.wxwidgets.org ##
13037## ----------------------------------------- ##
a848cd7e
SC
13038_ASBOX
13039 ) |
13040 sed "s/^/$as_me: WARNING: /" >&2
13041 ;;
13042esac
13043echo "$as_me:$LINENO: checking for $ac_header" >&5
13044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13045if eval "test \"\${$as_ac_Header+set}\" = set"; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047else
ac1cb8d3 13048 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13049fi
13050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13052
13053fi
13054if test `eval echo '${'$as_ac_Header'}'` = yes; then
13055 cat >>confdefs.h <<_ACEOF
13056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13057_ACEOF
13058
13059fi
13060
13061done
13062
13063
13064for ac_header in unistd.h
13065do
13066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13067if eval "test \"\${$as_ac_Header+set}\" = set"; then
13068 echo "$as_me:$LINENO: checking for $ac_header" >&5
13069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13070if eval "test \"\${$as_ac_Header+set}\" = set"; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072fi
13073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13075else
13076 # Is the header compilable?
13077echo "$as_me:$LINENO: checking $ac_header usability" >&5
13078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13079cat >conftest.$ac_ext <<_ACEOF
13080/* confdefs.h. */
13081_ACEOF
13082cat confdefs.h >>conftest.$ac_ext
13083cat >>conftest.$ac_ext <<_ACEOF
13084/* end confdefs.h. */
13085$ac_includes_default
13086#include <$ac_header>
13087_ACEOF
13088rm -f conftest.$ac_objext
13089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13090 (eval $ac_compile) 2>conftest.er1
a848cd7e 13091 ac_status=$?
ac1cb8d3
VS
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
a848cd7e
SC
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
ac1cb8d3
VS
13097 { ac_try='test -z "$ac_c_werror_flag"
13098 || test ! -s conftest.err'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } &&
13104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 ac_header_compiler=yes
13111else
13112 echo "$as_me: failed program was:" >&5
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
13115ac_header_compiler=no
13116fi
ac1cb8d3 13117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13119echo "${ECHO_T}$ac_header_compiler" >&6
13120
13121# Is the header present?
13122echo "$as_me:$LINENO: checking $ac_header presence" >&5
13123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13124cat >conftest.$ac_ext <<_ACEOF
13125/* confdefs.h. */
13126_ACEOF
13127cat confdefs.h >>conftest.$ac_ext
13128cat >>conftest.$ac_ext <<_ACEOF
13129/* end confdefs.h. */
13130#include <$ac_header>
13131_ACEOF
13132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } >/dev/null; then
13140 if test -s conftest.err; then
13141 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13143 else
13144 ac_cpp_err=
13145 fi
13146else
13147 ac_cpp_err=yes
13148fi
13149if test -z "$ac_cpp_err"; then
13150 ac_header_preproc=yes
13151else
13152 echo "$as_me: failed program was:" >&5
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
13155 ac_header_preproc=no
13156fi
13157rm -f conftest.err conftest.$ac_ext
13158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13159echo "${ECHO_T}$ac_header_preproc" >&6
13160
13161# So? What about this header?
ac1cb8d3
VS
13162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13163 yes:no: )
a848cd7e
SC
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13168 ac_header_preproc=yes
a848cd7e 13169 ;;
ac1cb8d3 13170 no:yes:* )
a848cd7e
SC
13171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13183 (
13184 cat <<\_ASBOX
ac1cb8d3
VS
13185## ----------------------------------------- ##
13186## Report this to wx-dev@lists.wxwidgets.org ##
13187## ----------------------------------------- ##
a848cd7e
SC
13188_ASBOX
13189 ) |
13190 sed "s/^/$as_me: WARNING: /" >&2
13191 ;;
13192esac
13193echo "$as_me:$LINENO: checking for $ac_header" >&5
13194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13195if eval "test \"\${$as_ac_Header+set}\" = set"; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13197else
ac1cb8d3 13198 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13199fi
13200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13202
13203fi
13204if test `eval echo '${'$as_ac_Header'}'` = yes; then
13205 cat >>confdefs.h <<_ACEOF
13206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13207_ACEOF
13208
13209fi
13210
13211done
13212
13213
13214for ac_header in wchar.h
13215do
13216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13217if eval "test \"\${$as_ac_Header+set}\" = set"; then
13218 echo "$as_me:$LINENO: checking for $ac_header" >&5
13219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13220if eval "test \"\${$as_ac_Header+set}\" = set"; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222fi
13223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13225else
13226 # Is the header compilable?
13227echo "$as_me:$LINENO: checking $ac_header usability" >&5
13228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13229cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235$ac_includes_default
13236#include <$ac_header>
13237_ACEOF
13238rm -f conftest.$ac_objext
13239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13240 (eval $ac_compile) 2>conftest.er1
a848cd7e 13241 ac_status=$?
ac1cb8d3
VS
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
a848cd7e
SC
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
ac1cb8d3
VS
13247 { ac_try='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_header_compiler=yes
13261else
13262 echo "$as_me: failed program was:" >&5
13263sed 's/^/| /' conftest.$ac_ext >&5
13264
13265ac_header_compiler=no
13266fi
ac1cb8d3 13267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13269echo "${ECHO_T}$ac_header_compiler" >&6
13270
13271# Is the header present?
13272echo "$as_me:$LINENO: checking $ac_header presence" >&5
13273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13274cat >conftest.$ac_ext <<_ACEOF
13275/* confdefs.h. */
13276_ACEOF
13277cat confdefs.h >>conftest.$ac_ext
13278cat >>conftest.$ac_ext <<_ACEOF
13279/* end confdefs.h. */
13280#include <$ac_header>
13281_ACEOF
13282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13284 ac_status=$?
13285 grep -v '^ *+' conftest.er1 >conftest.err
13286 rm -f conftest.er1
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } >/dev/null; then
13290 if test -s conftest.err; then
13291 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13293 else
13294 ac_cpp_err=
13295 fi
13296else
13297 ac_cpp_err=yes
13298fi
13299if test -z "$ac_cpp_err"; then
13300 ac_header_preproc=yes
13301else
13302 echo "$as_me: failed program was:" >&5
13303sed 's/^/| /' conftest.$ac_ext >&5
13304
13305 ac_header_preproc=no
13306fi
13307rm -f conftest.err conftest.$ac_ext
13308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13309echo "${ECHO_T}$ac_header_preproc" >&6
13310
13311# So? What about this header?
ac1cb8d3
VS
13312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13313 yes:no: )
a848cd7e
SC
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13318 ac_header_preproc=yes
a848cd7e 13319 ;;
ac1cb8d3 13320 no:yes:* )
a848cd7e
SC
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13324echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13328echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13333 (
13334 cat <<\_ASBOX
ac1cb8d3
VS
13335## ----------------------------------------- ##
13336## Report this to wx-dev@lists.wxwidgets.org ##
13337## ----------------------------------------- ##
a848cd7e
SC
13338_ASBOX
13339 ) |
13340 sed "s/^/$as_me: WARNING: /" >&2
13341 ;;
13342esac
13343echo "$as_me:$LINENO: checking for $ac_header" >&5
13344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13345if eval "test \"\${$as_ac_Header+set}\" = set"; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347else
ac1cb8d3 13348 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13349fi
13350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13352
13353fi
13354if test `eval echo '${'$as_ac_Header'}'` = yes; then
13355 cat >>confdefs.h <<_ACEOF
13356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13357_ACEOF
13358
13359fi
13360
13361done
13362
13363
13364if test "$ac_cv_header_wchar_h" != "yes"; then
13365
13366for ac_header in wcstr.h
13367do
13368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13369if eval "test \"\${$as_ac_Header+set}\" = set"; then
13370 echo "$as_me:$LINENO: checking for $ac_header" >&5
13371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13372if eval "test \"\${$as_ac_Header+set}\" = set"; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374fi
13375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13377else
13378 # Is the header compilable?
13379echo "$as_me:$LINENO: checking $ac_header usability" >&5
13380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13381cat >conftest.$ac_ext <<_ACEOF
13382/* confdefs.h. */
13383_ACEOF
13384cat confdefs.h >>conftest.$ac_ext
13385cat >>conftest.$ac_ext <<_ACEOF
13386/* end confdefs.h. */
13387$ac_includes_default
13388#include <$ac_header>
13389_ACEOF
13390rm -f conftest.$ac_objext
13391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13392 (eval $ac_compile) 2>conftest.er1
a848cd7e 13393 ac_status=$?
ac1cb8d3
VS
13394 grep -v '^ *+' conftest.er1 >conftest.err
13395 rm -f conftest.er1
13396 cat conftest.err >&5
a848cd7e
SC
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
ac1cb8d3
VS
13399 { ac_try='test -z "$ac_c_werror_flag"
13400 || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_header_compiler=yes
13413else
13414 echo "$as_me: failed program was:" >&5
13415sed 's/^/| /' conftest.$ac_ext >&5
13416
13417ac_header_compiler=no
13418fi
ac1cb8d3 13419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13421echo "${ECHO_T}$ac_header_compiler" >&6
13422
13423# Is the header present?
13424echo "$as_me:$LINENO: checking $ac_header presence" >&5
13425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13426cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432#include <$ac_header>
13433_ACEOF
13434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13436 ac_status=$?
13437 grep -v '^ *+' conftest.er1 >conftest.err
13438 rm -f conftest.er1
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } >/dev/null; then
13442 if test -s conftest.err; then
13443 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13445 else
13446 ac_cpp_err=
13447 fi
13448else
13449 ac_cpp_err=yes
13450fi
13451if test -z "$ac_cpp_err"; then
13452 ac_header_preproc=yes
13453else
13454 echo "$as_me: failed program was:" >&5
13455sed 's/^/| /' conftest.$ac_ext >&5
13456
13457 ac_header_preproc=no
13458fi
13459rm -f conftest.err conftest.$ac_ext
13460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13461echo "${ECHO_T}$ac_header_preproc" >&6
13462
13463# So? What about this header?
ac1cb8d3
VS
13464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13465 yes:no: )
a848cd7e
SC
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13470 ac_header_preproc=yes
a848cd7e 13471 ;;
ac1cb8d3 13472 no:yes:* )
a848cd7e
SC
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13485 (
13486 cat <<\_ASBOX
ac1cb8d3
VS
13487## ----------------------------------------- ##
13488## Report this to wx-dev@lists.wxwidgets.org ##
13489## ----------------------------------------- ##
a848cd7e
SC
13490_ASBOX
13491 ) |
13492 sed "s/^/$as_me: WARNING: /" >&2
13493 ;;
13494esac
13495echo "$as_me:$LINENO: checking for $ac_header" >&5
13496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13497if eval "test \"\${$as_ac_Header+set}\" = set"; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499else
ac1cb8d3 13500 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13501fi
13502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13504
13505fi
13506if test `eval echo '${'$as_ac_Header'}'` = yes; then
13507 cat >>confdefs.h <<_ACEOF
13508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13509_ACEOF
13510
13511fi
13512
13513done
13514
13515fi
13516
13517
13518for ac_header in fnmatch.h
13519do
13520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13521if eval "test \"\${$as_ac_Header+set}\" = set"; then
13522 echo "$as_me:$LINENO: checking for $ac_header" >&5
13523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13524if eval "test \"\${$as_ac_Header+set}\" = set"; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526fi
13527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13529else
13530 # Is the header compilable?
13531echo "$as_me:$LINENO: checking $ac_header usability" >&5
13532echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13533cat >conftest.$ac_ext <<_ACEOF
13534/* confdefs.h. */
13535_ACEOF
13536cat confdefs.h >>conftest.$ac_ext
13537cat >>conftest.$ac_ext <<_ACEOF
13538/* end confdefs.h. */
13539$ac_includes_default
13540#include <$ac_header>
13541_ACEOF
13542rm -f conftest.$ac_objext
13543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13544 (eval $ac_compile) 2>conftest.er1
a848cd7e 13545 ac_status=$?
ac1cb8d3
VS
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
a848cd7e
SC
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
ac1cb8d3
VS
13551 { ac_try='test -z "$ac_c_werror_flag"
13552 || test ! -s conftest.err'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; } &&
13558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13564 ac_header_compiler=yes
13565else
13566 echo "$as_me: failed program was:" >&5
13567sed 's/^/| /' conftest.$ac_ext >&5
13568
13569ac_header_compiler=no
13570fi
ac1cb8d3 13571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13573echo "${ECHO_T}$ac_header_compiler" >&6
13574
13575# Is the header present?
13576echo "$as_me:$LINENO: checking $ac_header presence" >&5
13577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13578cat >conftest.$ac_ext <<_ACEOF
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
13583/* end confdefs.h. */
13584#include <$ac_header>
13585_ACEOF
13586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } >/dev/null; then
13594 if test -s conftest.err; then
13595 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13597 else
13598 ac_cpp_err=
13599 fi
13600else
13601 ac_cpp_err=yes
13602fi
13603if test -z "$ac_cpp_err"; then
13604 ac_header_preproc=yes
13605else
13606 echo "$as_me: failed program was:" >&5
13607sed 's/^/| /' conftest.$ac_ext >&5
13608
13609 ac_header_preproc=no
13610fi
13611rm -f conftest.err conftest.$ac_ext
13612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13613echo "${ECHO_T}$ac_header_preproc" >&6
13614
13615# So? What about this header?
ac1cb8d3
VS
13616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13617 yes:no: )
a848cd7e
SC
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13622 ac_header_preproc=yes
a848cd7e 13623 ;;
ac1cb8d3 13624 no:yes:* )
a848cd7e
SC
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13632echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13637 (
13638 cat <<\_ASBOX
ac1cb8d3
VS
13639## ----------------------------------------- ##
13640## Report this to wx-dev@lists.wxwidgets.org ##
13641## ----------------------------------------- ##
a848cd7e
SC
13642_ASBOX
13643 ) |
13644 sed "s/^/$as_me: WARNING: /" >&2
13645 ;;
13646esac
13647echo "$as_me:$LINENO: checking for $ac_header" >&5
13648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13649if eval "test \"\${$as_ac_Header+set}\" = set"; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651else
ac1cb8d3 13652 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13653fi
13654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13656
13657fi
13658if test `eval echo '${'$as_ac_Header'}'` = yes; then
13659 cat >>confdefs.h <<_ACEOF
13660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13661_ACEOF
13662
13663fi
13664
13665done
13666
13667
13668if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13669
13670for ac_func in fnmatch
13671do
13672as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13673echo "$as_me:$LINENO: checking for $ac_func" >&5
13674echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13675if eval "test \"\${$as_ac_var+set}\" = set"; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677else
13678 cat >conftest.$ac_ext <<_ACEOF
13679/* confdefs.h. */
13680_ACEOF
13681cat confdefs.h >>conftest.$ac_ext
13682cat >>conftest.$ac_ext <<_ACEOF
13683/* end confdefs.h. */
ac1cb8d3
VS
13684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13686#define $ac_func innocuous_$ac_func
13687
a848cd7e
SC
13688/* System header to define __stub macros and hopefully few prototypes,
13689 which can conflict with char $ac_func (); below.
13690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13691 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13692
a848cd7e
SC
13693#ifdef __STDC__
13694# include <limits.h>
13695#else
13696# include <assert.h>
13697#endif
ac1cb8d3
VS
13698
13699#undef $ac_func
13700
a848cd7e
SC
13701/* Override any gcc2 internal prototype to avoid an error. */
13702#ifdef __cplusplus
13703extern "C"
13704{
13705#endif
13706/* We use char because int might match the return type of a gcc2
13707 builtin and then its argument prototype would still apply. */
13708char $ac_func ();
13709/* The GNU C library defines this for functions which it implements
13710 to always fail with ENOSYS. Some functions are actually named
13711 something starting with __ and the normal name is an alias. */
13712#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13713choke me
13714#else
13715char (*f) () = $ac_func;
13716#endif
13717#ifdef __cplusplus
13718}
13719#endif
13720
13721int
13722main ()
13723{
13724return f != $ac_func;
13725 ;
13726 return 0;
13727}
13728_ACEOF
13729rm -f conftest.$ac_objext conftest$ac_exeext
13730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13731 (eval $ac_link) 2>conftest.er1
a848cd7e 13732 ac_status=$?
ac1cb8d3
VS
13733 grep -v '^ *+' conftest.er1 >conftest.err
13734 rm -f conftest.er1
13735 cat conftest.err >&5
a848cd7e
SC
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
ac1cb8d3
VS
13738 { ac_try='test -z "$ac_c_werror_flag"
13739 || test ! -s conftest.err'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 eval "$as_ac_var=yes"
13752else
13753 echo "$as_me: failed program was:" >&5
13754sed 's/^/| /' conftest.$ac_ext >&5
13755
13756eval "$as_ac_var=no"
13757fi
ac1cb8d3
VS
13758rm -f conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13760fi
13761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13763if test `eval echo '${'$as_ac_var'}'` = yes; then
13764 cat >>confdefs.h <<_ACEOF
13765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13766_ACEOF
13767
13768fi
13769done
13770
13771fi
13772
13773
13774for ac_header in langinfo.h
13775do
13776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13777if eval "test \"\${$as_ac_Header+set}\" = set"; then
13778 echo "$as_me:$LINENO: checking for $ac_header" >&5
13779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13780if eval "test \"\${$as_ac_Header+set}\" = set"; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782fi
13783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13785else
13786 # Is the header compilable?
13787echo "$as_me:$LINENO: checking $ac_header usability" >&5
13788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13789cat >conftest.$ac_ext <<_ACEOF
13790/* confdefs.h. */
13791_ACEOF
13792cat confdefs.h >>conftest.$ac_ext
13793cat >>conftest.$ac_ext <<_ACEOF
13794/* end confdefs.h. */
13795$ac_includes_default
13796#include <$ac_header>
13797_ACEOF
13798rm -f conftest.$ac_objext
13799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13800 (eval $ac_compile) 2>conftest.er1
a848cd7e 13801 ac_status=$?
ac1cb8d3
VS
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
a848cd7e
SC
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
ac1cb8d3
VS
13807 { ac_try='test -z "$ac_c_werror_flag"
13808 || test ! -s conftest.err'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 ac_header_compiler=yes
13821else
13822 echo "$as_me: failed program was:" >&5
13823sed 's/^/| /' conftest.$ac_ext >&5
13824
13825ac_header_compiler=no
13826fi
ac1cb8d3 13827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13828echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13829echo "${ECHO_T}$ac_header_compiler" >&6
13830
13831# Is the header present?
13832echo "$as_me:$LINENO: checking $ac_header presence" >&5
13833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13834cat >conftest.$ac_ext <<_ACEOF
13835/* confdefs.h. */
13836_ACEOF
13837cat confdefs.h >>conftest.$ac_ext
13838cat >>conftest.$ac_ext <<_ACEOF
13839/* end confdefs.h. */
13840#include <$ac_header>
13841_ACEOF
13842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } >/dev/null; then
13850 if test -s conftest.err; then
13851 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13853 else
13854 ac_cpp_err=
13855 fi
13856else
13857 ac_cpp_err=yes
13858fi
13859if test -z "$ac_cpp_err"; then
13860 ac_header_preproc=yes
13861else
13862 echo "$as_me: failed program was:" >&5
13863sed 's/^/| /' conftest.$ac_ext >&5
13864
13865 ac_header_preproc=no
13866fi
13867rm -f conftest.err conftest.$ac_ext
13868echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13869echo "${ECHO_T}$ac_header_preproc" >&6
13870
13871# So? What about this header?
ac1cb8d3
VS
13872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13873 yes:no: )
a848cd7e
SC
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13875echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13877echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13878 ac_header_preproc=yes
a848cd7e 13879 ;;
ac1cb8d3 13880 no:yes:* )
a848cd7e
SC
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13886echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13888echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13892echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13893 (
13894 cat <<\_ASBOX
ac1cb8d3
VS
13895## ----------------------------------------- ##
13896## Report this to wx-dev@lists.wxwidgets.org ##
13897## ----------------------------------------- ##
a848cd7e
SC
13898_ASBOX
13899 ) |
13900 sed "s/^/$as_me: WARNING: /" >&2
13901 ;;
13902esac
13903echo "$as_me:$LINENO: checking for $ac_header" >&5
13904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13905if eval "test \"\${$as_ac_Header+set}\" = set"; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13907else
ac1cb8d3 13908 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13909fi
13910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13912
13913fi
13914if test `eval echo '${'$as_ac_Header'}'` = yes; then
13915 cat >>confdefs.h <<_ACEOF
13916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13917_ACEOF
13918
13919fi
13920
13921done
13922
13923
13924case "${host}" in
13925 *-pc-os2_emx | *-pc-os2-emx )
13926 if test $ac_cv_header_langinfo_h = "yes"; then
13927 LIBS="$LIBS -lintl"
13928 fi
13929 ;;
13930esac
13931
13932if test "$wxUSE_GUI" = "yes"; then
13933 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13934
13935for ac_header in X11/Xlib.h
13936do
13937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13938if eval "test \"\${$as_ac_Header+set}\" = set"; then
13939 echo "$as_me:$LINENO: checking for $ac_header" >&5
13940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13941if eval "test \"\${$as_ac_Header+set}\" = set"; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943fi
13944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13946else
13947 # Is the header compilable?
13948echo "$as_me:$LINENO: checking $ac_header usability" >&5
13949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13950cat >conftest.$ac_ext <<_ACEOF
13951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
13955/* end confdefs.h. */
13956$ac_includes_default
13957#include <$ac_header>
13958_ACEOF
13959rm -f conftest.$ac_objext
13960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13961 (eval $ac_compile) 2>conftest.er1
a848cd7e 13962 ac_status=$?
ac1cb8d3
VS
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
a848cd7e
SC
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
ac1cb8d3
VS
13968 { ac_try='test -z "$ac_c_werror_flag"
13969 || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 ac_header_compiler=yes
13982else
13983 echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5
13985
13986ac_header_compiler=no
13987fi
ac1cb8d3 13988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990echo "${ECHO_T}$ac_header_compiler" >&6
13991
13992# Is the header present?
13993echo "$as_me:$LINENO: checking $ac_header presence" >&5
13994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13995cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001#include <$ac_header>
14002_ACEOF
14003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14005 ac_status=$?
14006 grep -v '^ *+' conftest.er1 >conftest.err
14007 rm -f conftest.er1
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } >/dev/null; then
14011 if test -s conftest.err; then
14012 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14014 else
14015 ac_cpp_err=
14016 fi
14017else
14018 ac_cpp_err=yes
14019fi
14020if test -z "$ac_cpp_err"; then
14021 ac_header_preproc=yes
14022else
14023 echo "$as_me: failed program was:" >&5
14024sed 's/^/| /' conftest.$ac_ext >&5
14025
14026 ac_header_preproc=no
14027fi
14028rm -f conftest.err conftest.$ac_ext
14029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14030echo "${ECHO_T}$ac_header_preproc" >&6
14031
14032# So? What about this header?
ac1cb8d3
VS
14033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14034 yes:no: )
a848cd7e
SC
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14039 ac_header_preproc=yes
a848cd7e 14040 ;;
ac1cb8d3 14041 no:yes:* )
a848cd7e
SC
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14054 (
14055 cat <<\_ASBOX
ac1cb8d3
VS
14056## ----------------------------------------- ##
14057## Report this to wx-dev@lists.wxwidgets.org ##
14058## ----------------------------------------- ##
a848cd7e
SC
14059_ASBOX
14060 ) |
14061 sed "s/^/$as_me: WARNING: /" >&2
14062 ;;
14063esac
14064echo "$as_me:$LINENO: checking for $ac_header" >&5
14065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14066if eval "test \"\${$as_ac_Header+set}\" = set"; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068else
ac1cb8d3 14069 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14070fi
14071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14073
14074fi
14075if test `eval echo '${'$as_ac_Header'}'` = yes; then
14076 cat >>confdefs.h <<_ACEOF
14077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14078_ACEOF
14079
14080fi
14081
14082done
14083
14084
14085for ac_header in X11/XKBlib.h
14086do
14087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14088echo "$as_me:$LINENO: checking for $ac_header" >&5
14089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14090if eval "test \"\${$as_ac_Header+set}\" = set"; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092else
14093 cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
14099
14100 #if HAVE_X11_XLIB_H
14101 #include <X11/Xlib.h>
14102 #endif
14103
14104
14105#include <$ac_header>
14106_ACEOF
14107rm -f conftest.$ac_objext
14108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14109 (eval $ac_compile) 2>conftest.er1
a848cd7e 14110 ac_status=$?
ac1cb8d3
VS
14111 grep -v '^ *+' conftest.er1 >conftest.err
14112 rm -f conftest.er1
14113 cat conftest.err >&5
a848cd7e
SC
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
ac1cb8d3
VS
14116 { ac_try='test -z "$ac_c_werror_flag"
14117 || test ! -s conftest.err'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 eval "$as_ac_Header=yes"
14130else
14131 echo "$as_me: failed program was:" >&5
14132sed 's/^/| /' conftest.$ac_ext >&5
14133
14134eval "$as_ac_Header=no"
14135fi
ac1cb8d3 14136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14137fi
14138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14140if test `eval echo '${'$as_ac_Header'}'` = yes; then
14141 cat >>confdefs.h <<_ACEOF
14142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14143_ACEOF
14144
14145fi
14146
14147done
14148
14149 fi
14150fi
14151
14152
14153echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14154echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14155if test "${ac_cv_c_const+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157else
14158 cat >conftest.$ac_ext <<_ACEOF
14159/* confdefs.h. */
14160_ACEOF
14161cat confdefs.h >>conftest.$ac_ext
14162cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h. */
14164
14165int
14166main ()
14167{
14168/* FIXME: Include the comments suggested by Paul. */
14169#ifndef __cplusplus
14170 /* Ultrix mips cc rejects this. */
14171 typedef int charset[2];
14172 const charset x;
14173 /* SunOS 4.1.1 cc rejects this. */
14174 char const *const *ccp;
14175 char **p;
14176 /* NEC SVR4.0.2 mips cc rejects this. */
14177 struct point {int x, y;};
14178 static struct point const zero = {0,0};
14179 /* AIX XL C 1.02.0.0 rejects this.
14180 It does not let you subtract one const X* pointer from another in
14181 an arm of an if-expression whose if-part is not a constant
14182 expression */
14183 const char *g = "string";
14184 ccp = &g + (g ? g-g : 0);
14185 /* HPUX 7.0 cc rejects these. */
14186 ++ccp;
14187 p = (char**) ccp;
14188 ccp = (char const *const *) p;
14189 { /* SCO 3.2v4 cc rejects this. */
14190 char *t;
14191 char const *s = 0 ? (char *) 0 : (char const *) 0;
14192
14193 *t++ = 0;
14194 }
14195 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14196 int x[] = {25, 17};
14197 const int *foo = &x[0];
14198 ++foo;
14199 }
14200 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14201 typedef const int *iptr;
14202 iptr p = 0;
14203 ++p;
14204 }
14205 { /* AIX XL C 1.02.0.0 rejects this saying
14206 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14207 struct s { int j; const int *ap[3]; };
14208 struct s *b; b->j = 5;
14209 }
14210 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14211 const int foo = 10;
14212 }
14213#endif
14214
14215 ;
14216 return 0;
14217}
14218_ACEOF
14219rm -f conftest.$ac_objext
14220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14221 (eval $ac_compile) 2>conftest.er1
a848cd7e 14222 ac_status=$?
ac1cb8d3
VS
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
a848cd7e
SC
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
ac1cb8d3
VS
14228 { ac_try='test -z "$ac_c_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_c_const=yes
14242else
14243 echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246ac_cv_c_const=no
14247fi
ac1cb8d3 14248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14249fi
14250echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14251echo "${ECHO_T}$ac_cv_c_const" >&6
14252if test $ac_cv_c_const = no; then
14253
14254cat >>confdefs.h <<\_ACEOF
14255#define const
14256_ACEOF
14257
14258fi
14259
14260echo "$as_me:$LINENO: checking for inline" >&5
14261echo $ECHO_N "checking for inline... $ECHO_C" >&6
14262if test "${ac_cv_c_inline+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14264else
14265 ac_cv_c_inline=no
14266for ac_kw in inline __inline__ __inline; do
14267 cat >conftest.$ac_ext <<_ACEOF
14268/* confdefs.h. */
14269_ACEOF
14270cat confdefs.h >>conftest.$ac_ext
14271cat >>conftest.$ac_ext <<_ACEOF
14272/* end confdefs.h. */
14273#ifndef __cplusplus
14274typedef int foo_t;
14275static $ac_kw foo_t static_foo () {return 0; }
14276$ac_kw foo_t foo () {return 0; }
14277#endif
14278
14279_ACEOF
14280rm -f conftest.$ac_objext
14281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14282 (eval $ac_compile) 2>conftest.er1
a848cd7e 14283 ac_status=$?
ac1cb8d3
VS
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
a848cd7e
SC
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
ac1cb8d3
VS
14289 { ac_try='test -z "$ac_c_werror_flag"
14290 || test ! -s conftest.err'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; } &&
14296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 ac_cv_c_inline=$ac_kw; break
14303else
14304 echo "$as_me: failed program was:" >&5
14305sed 's/^/| /' conftest.$ac_ext >&5
14306
14307fi
ac1cb8d3 14308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14309done
14310
14311fi
14312echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14313echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14314
14315
a848cd7e
SC
14316case $ac_cv_c_inline in
14317 inline | yes) ;;
ac1cb8d3
VS
14318 *)
14319 case $ac_cv_c_inline in
14320 no) ac_val=;;
14321 *) ac_val=$ac_cv_c_inline;;
14322 esac
14323 cat >>confdefs.h <<_ACEOF
14324#ifndef __cplusplus
14325#define inline $ac_val
14326#endif
de59c161 14327_ACEOF
ac1cb8d3 14328 ;;
a848cd7e
SC
14329esac
14330
14331
14332echo "$as_me:$LINENO: checking for char" >&5
14333echo $ECHO_N "checking for char... $ECHO_C" >&6
14334if test "${ac_cv_type_char+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336else
14337 cat >conftest.$ac_ext <<_ACEOF
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
14342/* end confdefs.h. */
14343$ac_includes_default
14344int
14345main ()
14346{
14347if ((char *) 0)
14348 return 0;
14349if (sizeof (char))
14350 return 0;
14351 ;
14352 return 0;
14353}
14354_ACEOF
14355rm -f conftest.$ac_objext
14356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14357 (eval $ac_compile) 2>conftest.er1
a848cd7e 14358 ac_status=$?
ac1cb8d3
VS
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
a848cd7e
SC
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
ac1cb8d3
VS
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_type_char=yes
14378else
14379 echo "$as_me: failed program was:" >&5
14380sed 's/^/| /' conftest.$ac_ext >&5
14381
14382ac_cv_type_char=no
14383fi
ac1cb8d3 14384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14385fi
14386echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14387echo "${ECHO_T}$ac_cv_type_char" >&6
14388
14389echo "$as_me:$LINENO: checking size of char" >&5
14390echo $ECHO_N "checking size of char... $ECHO_C" >&6
14391if test "${ac_cv_sizeof_char+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393else
14394 if test "$ac_cv_type_char" = yes; then
14395 # The cast to unsigned long works around a bug in the HP C Compiler
14396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14398 # This bug is HP SR number 8606223364.
14399 if test "$cross_compiling" = yes; then
14400 # Depending upon the size, compute the lo and hi bounds.
14401cat >conftest.$ac_ext <<_ACEOF
14402/* confdefs.h. */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h. */
14407$ac_includes_default
14408int
14409main ()
14410{
14411static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14412test_array [0] = 0
14413
14414 ;
14415 return 0;
14416}
14417_ACEOF
14418rm -f conftest.$ac_objext
14419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14420 (eval $ac_compile) 2>conftest.er1
a848cd7e 14421 ac_status=$?
ac1cb8d3
VS
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
a848cd7e
SC
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
ac1cb8d3
VS
14427 { ac_try='test -z "$ac_c_werror_flag"
14428 || test ! -s conftest.err'
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_lo=0 ac_mid=0
14441 while :; do
14442 cat >conftest.$ac_ext <<_ACEOF
14443/* confdefs.h. */
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
14447/* end confdefs.h. */
14448$ac_includes_default
14449int
14450main ()
14451{
14452static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14453test_array [0] = 0
14454
14455 ;
14456 return 0;
14457}
14458_ACEOF
14459rm -f conftest.$ac_objext
14460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14461 (eval $ac_compile) 2>conftest.er1
a848cd7e 14462 ac_status=$?
ac1cb8d3
VS
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
a848cd7e
SC
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
ac1cb8d3
VS
14468 { ac_try='test -z "$ac_c_werror_flag"
14469 || test ! -s conftest.err'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_hi=$ac_mid; break
14482else
14483 echo "$as_me: failed program was:" >&5
14484sed 's/^/| /' conftest.$ac_ext >&5
14485
14486ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14487 if test $ac_lo -le $ac_mid; then
14488 ac_lo= ac_hi=
14489 break
14490 fi
14491 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14492fi
ac1cb8d3 14493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14494 done
14495else
14496 echo "$as_me: failed program was:" >&5
14497sed 's/^/| /' conftest.$ac_ext >&5
14498
14499cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505$ac_includes_default
14506int
14507main ()
14508{
14509static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14510test_array [0] = 0
14511
14512 ;
14513 return 0;
14514}
14515_ACEOF
14516rm -f conftest.$ac_objext
14517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14518 (eval $ac_compile) 2>conftest.er1
a848cd7e 14519 ac_status=$?
ac1cb8d3
VS
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
a848cd7e
SC
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
ac1cb8d3
VS
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_hi=-1 ac_mid=-1
14539 while :; do
14540 cat >conftest.$ac_ext <<_ACEOF
14541/* confdefs.h. */
14542_ACEOF
14543cat confdefs.h >>conftest.$ac_ext
14544cat >>conftest.$ac_ext <<_ACEOF
14545/* end confdefs.h. */
14546$ac_includes_default
14547int
14548main ()
14549{
14550static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14551test_array [0] = 0
14552
14553 ;
14554 return 0;
14555}
14556_ACEOF
14557rm -f conftest.$ac_objext
14558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14559 (eval $ac_compile) 2>conftest.er1
a848cd7e 14560 ac_status=$?
ac1cb8d3
VS
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
a848cd7e
SC
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
ac1cb8d3
VS
14566 { ac_try='test -z "$ac_c_werror_flag"
14567 || test ! -s conftest.err'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_lo=$ac_mid; break
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14585 if test $ac_mid -le $ac_hi; then
14586 ac_lo= ac_hi=
14587 break
14588 fi
14589 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14590fi
ac1cb8d3 14591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14592 done
14593else
14594 echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
14597ac_lo= ac_hi=
14598fi
ac1cb8d3 14599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14600fi
ac1cb8d3 14601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14602# Binary search between lo and hi bounds.
14603while test "x$ac_lo" != "x$ac_hi"; do
14604 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14605 cat >conftest.$ac_ext <<_ACEOF
14606/* confdefs.h. */
14607_ACEOF
14608cat confdefs.h >>conftest.$ac_ext
14609cat >>conftest.$ac_ext <<_ACEOF
14610/* end confdefs.h. */
14611$ac_includes_default
14612int
14613main ()
14614{
14615static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14616test_array [0] = 0
14617
14618 ;
14619 return 0;
14620}
14621_ACEOF
14622rm -f conftest.$ac_objext
14623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14624 (eval $ac_compile) 2>conftest.er1
a848cd7e 14625 ac_status=$?
ac1cb8d3
VS
14626 grep -v '^ *+' conftest.er1 >conftest.err
14627 rm -f conftest.er1
14628 cat conftest.err >&5
a848cd7e
SC
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
ac1cb8d3
VS
14631 { ac_try='test -z "$ac_c_werror_flag"
14632 || test ! -s conftest.err'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_hi=$ac_mid
14645else
14646 echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649ac_lo=`expr '(' $ac_mid ')' + 1`
14650fi
ac1cb8d3 14651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14652done
14653case $ac_lo in
14654?*) ac_cv_sizeof_char=$ac_lo;;
14655'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14656See \`config.log' for more details." >&5
14657echo "$as_me: error: cannot compute sizeof (char), 77
14658See \`config.log' for more details." >&2;}
14659 { (exit 1); exit 1; }; } ;;
14660esac
14661else
14662 if test "$cross_compiling" = yes; then
14663 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14664See \`config.log' for more details." >&5
14665echo "$as_me: error: cannot run test program while cross compiling
14666See \`config.log' for more details." >&2;}
14667 { (exit 1); exit 1; }; }
14668else
14669 cat >conftest.$ac_ext <<_ACEOF
14670/* confdefs.h. */
14671_ACEOF
14672cat confdefs.h >>conftest.$ac_ext
14673cat >>conftest.$ac_ext <<_ACEOF
14674/* end confdefs.h. */
14675$ac_includes_default
14676long longval () { return (long) (sizeof (char)); }
14677unsigned long ulongval () { return (long) (sizeof (char)); }
14678#include <stdio.h>
14679#include <stdlib.h>
14680int
14681main ()
14682{
14683
14684 FILE *f = fopen ("conftest.val", "w");
14685 if (! f)
14686 exit (1);
14687 if (((long) (sizeof (char))) < 0)
14688 {
14689 long i = longval ();
14690 if (i != ((long) (sizeof (char))))
14691 exit (1);
14692 fprintf (f, "%ld\n", i);
14693 }
14694 else
14695 {
14696 unsigned long i = ulongval ();
14697 if (i != ((long) (sizeof (char))))
14698 exit (1);
14699 fprintf (f, "%lu\n", i);
14700 }
14701 exit (ferror (f) || fclose (f) != 0);
14702
14703 ;
14704 return 0;
14705}
14706_ACEOF
14707rm -f conftest$ac_exeext
14708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14709 (eval $ac_link) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_sizeof_char=`cat conftest.val`
14719else
14720 echo "$as_me: program exited with status $ac_status" >&5
14721echo "$as_me: failed program was:" >&5
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
14724( exit $ac_status )
14725{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14726See \`config.log' for more details." >&5
14727echo "$as_me: error: cannot compute sizeof (char), 77
14728See \`config.log' for more details." >&2;}
14729 { (exit 1); exit 1; }; }
14730fi
ac1cb8d3 14731rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14732fi
14733fi
14734rm -f conftest.val
14735else
14736 ac_cv_sizeof_char=0
14737fi
14738fi
14739echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14740echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14741cat >>confdefs.h <<_ACEOF
14742#define SIZEOF_CHAR $ac_cv_sizeof_char
14743_ACEOF
14744
14745
14746echo "$as_me:$LINENO: checking for short" >&5
14747echo $ECHO_N "checking for short... $ECHO_C" >&6
14748if test "${ac_cv_type_short+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750else
14751 cat >conftest.$ac_ext <<_ACEOF
14752/* confdefs.h. */
14753_ACEOF
14754cat confdefs.h >>conftest.$ac_ext
14755cat >>conftest.$ac_ext <<_ACEOF
14756/* end confdefs.h. */
14757$ac_includes_default
14758int
14759main ()
14760{
14761if ((short *) 0)
14762 return 0;
14763if (sizeof (short))
14764 return 0;
14765 ;
14766 return 0;
14767}
14768_ACEOF
14769rm -f conftest.$ac_objext
14770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14771 (eval $ac_compile) 2>conftest.er1
a848cd7e 14772 ac_status=$?
ac1cb8d3
VS
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
a848cd7e
SC
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
ac1cb8d3
VS
14778 { ac_try='test -z "$ac_c_werror_flag"
14779 || test ! -s conftest.err'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; } &&
14785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791 ac_cv_type_short=yes
14792else
14793 echo "$as_me: failed program was:" >&5
14794sed 's/^/| /' conftest.$ac_ext >&5
14795
14796ac_cv_type_short=no
14797fi
ac1cb8d3 14798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14799fi
14800echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14801echo "${ECHO_T}$ac_cv_type_short" >&6
14802
14803echo "$as_me:$LINENO: checking size of short" >&5
14804echo $ECHO_N "checking size of short... $ECHO_C" >&6
14805if test "${ac_cv_sizeof_short+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807else
14808 if test "$ac_cv_type_short" = yes; then
14809 # The cast to unsigned long works around a bug in the HP C Compiler
14810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14812 # This bug is HP SR number 8606223364.
14813 if test "$cross_compiling" = yes; then
14814 # Depending upon the size, compute the lo and hi bounds.
14815cat >conftest.$ac_ext <<_ACEOF
14816/* confdefs.h. */
14817_ACEOF
14818cat confdefs.h >>conftest.$ac_ext
14819cat >>conftest.$ac_ext <<_ACEOF
14820/* end confdefs.h. */
14821$ac_includes_default
14822int
14823main ()
14824{
14825static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14826test_array [0] = 0
14827
14828 ;
14829 return 0;
14830}
14831_ACEOF
14832rm -f conftest.$ac_objext
14833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14834 (eval $ac_compile) 2>conftest.er1
a848cd7e 14835 ac_status=$?
ac1cb8d3
VS
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
a848cd7e
SC
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
ac1cb8d3
VS
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_lo=0 ac_mid=0
14855 while :; do
14856 cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h. */
14862$ac_includes_default
14863int
14864main ()
14865{
14866static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14867test_array [0] = 0
14868
14869 ;
14870 return 0;
14871}
14872_ACEOF
14873rm -f conftest.$ac_objext
14874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14875 (eval $ac_compile) 2>conftest.er1
a848cd7e 14876 ac_status=$?
ac1cb8d3
VS
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
a848cd7e
SC
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
ac1cb8d3
VS
14882 { ac_try='test -z "$ac_c_werror_flag"
14883 || test ! -s conftest.err'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ac_hi=$ac_mid; break
14896else
14897 echo "$as_me: failed program was:" >&5
14898sed 's/^/| /' conftest.$ac_ext >&5
14899
14900ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14901 if test $ac_lo -le $ac_mid; then
14902 ac_lo= ac_hi=
14903 break
14904 fi
14905 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14906fi
ac1cb8d3 14907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14908 done
14909else
14910 echo "$as_me: failed program was:" >&5
14911sed 's/^/| /' conftest.$ac_ext >&5
14912
14913cat >conftest.$ac_ext <<_ACEOF
14914/* confdefs.h. */
14915_ACEOF
14916cat confdefs.h >>conftest.$ac_ext
14917cat >>conftest.$ac_ext <<_ACEOF
14918/* end confdefs.h. */
14919$ac_includes_default
14920int
14921main ()
14922{
14923static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14924test_array [0] = 0
14925
14926 ;
14927 return 0;
14928}
14929_ACEOF
14930rm -f conftest.$ac_objext
14931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14932 (eval $ac_compile) 2>conftest.er1
a848cd7e 14933 ac_status=$?
ac1cb8d3
VS
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
a848cd7e
SC
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
ac1cb8d3
VS
14939 { ac_try='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_hi=-1 ac_mid=-1
14953 while :; do
14954 cat >conftest.$ac_ext <<_ACEOF
14955/* confdefs.h. */
14956_ACEOF
14957cat confdefs.h >>conftest.$ac_ext
14958cat >>conftest.$ac_ext <<_ACEOF
14959/* end confdefs.h. */
14960$ac_includes_default
14961int
14962main ()
14963{
14964static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14965test_array [0] = 0
14966
14967 ;
14968 return 0;
14969}
14970_ACEOF
14971rm -f conftest.$ac_objext
14972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14973 (eval $ac_compile) 2>conftest.er1
a848cd7e 14974 ac_status=$?
ac1cb8d3
VS
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
a848cd7e
SC
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
ac1cb8d3
VS
14980 { ac_try='test -z "$ac_c_werror_flag"
14981 || test ! -s conftest.err'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; } &&
14987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 ac_lo=$ac_mid; break
14994else
14995 echo "$as_me: failed program was:" >&5
14996sed 's/^/| /' conftest.$ac_ext >&5
14997
14998ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14999 if test $ac_mid -le $ac_hi; then
15000 ac_lo= ac_hi=
15001 break
15002 fi
15003 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15004fi
ac1cb8d3 15005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15006 done
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011ac_lo= ac_hi=
15012fi
ac1cb8d3 15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15014fi
ac1cb8d3 15015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15016# Binary search between lo and hi bounds.
15017while test "x$ac_lo" != "x$ac_hi"; do
15018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15019 cat >conftest.$ac_ext <<_ACEOF
15020/* confdefs.h. */
15021_ACEOF
15022cat confdefs.h >>conftest.$ac_ext
15023cat >>conftest.$ac_ext <<_ACEOF
15024/* end confdefs.h. */
15025$ac_includes_default
15026int
15027main ()
15028{
15029static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15030test_array [0] = 0
15031
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036rm -f conftest.$ac_objext
15037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15038 (eval $ac_compile) 2>conftest.er1
a848cd7e 15039 ac_status=$?
ac1cb8d3
VS
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
a848cd7e
SC
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
ac1cb8d3
VS
15045 { ac_try='test -z "$ac_c_werror_flag"
15046 || test ! -s conftest.err'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; } &&
15052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 ac_hi=$ac_mid
15059else
15060 echo "$as_me: failed program was:" >&5
15061sed 's/^/| /' conftest.$ac_ext >&5
15062
15063ac_lo=`expr '(' $ac_mid ')' + 1`
15064fi
ac1cb8d3 15065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15066done
15067case $ac_lo in
15068?*) ac_cv_sizeof_short=$ac_lo;;
15069'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15070See \`config.log' for more details." >&5
15071echo "$as_me: error: cannot compute sizeof (short), 77
15072See \`config.log' for more details." >&2;}
15073 { (exit 1); exit 1; }; } ;;
15074esac
15075else
15076 if test "$cross_compiling" = yes; then
15077 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15078See \`config.log' for more details." >&5
15079echo "$as_me: error: cannot run test program while cross compiling
15080See \`config.log' for more details." >&2;}
15081 { (exit 1); exit 1; }; }
15082else
15083 cat >conftest.$ac_ext <<_ACEOF
15084/* confdefs.h. */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
15089$ac_includes_default
15090long longval () { return (long) (sizeof (short)); }
15091unsigned long ulongval () { return (long) (sizeof (short)); }
15092#include <stdio.h>
15093#include <stdlib.h>
15094int
15095main ()
15096{
15097
15098 FILE *f = fopen ("conftest.val", "w");
15099 if (! f)
15100 exit (1);
15101 if (((long) (sizeof (short))) < 0)
15102 {
15103 long i = longval ();
15104 if (i != ((long) (sizeof (short))))
15105 exit (1);
15106 fprintf (f, "%ld\n", i);
15107 }
15108 else
15109 {
15110 unsigned long i = ulongval ();
15111 if (i != ((long) (sizeof (short))))
15112 exit (1);
15113 fprintf (f, "%lu\n", i);
15114 }
15115 exit (ferror (f) || fclose (f) != 0);
15116
15117 ;
15118 return 0;
15119}
15120_ACEOF
15121rm -f conftest$ac_exeext
15122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15123 (eval $ac_link) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 ac_cv_sizeof_short=`cat conftest.val`
15133else
15134 echo "$as_me: program exited with status $ac_status" >&5
15135echo "$as_me: failed program was:" >&5
15136sed 's/^/| /' conftest.$ac_ext >&5
15137
15138( exit $ac_status )
15139{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15140See \`config.log' for more details." >&5
15141echo "$as_me: error: cannot compute sizeof (short), 77
15142See \`config.log' for more details." >&2;}
15143 { (exit 1); exit 1; }; }
15144fi
ac1cb8d3 15145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15146fi
15147fi
15148rm -f conftest.val
15149else
15150 ac_cv_sizeof_short=0
15151fi
15152fi
15153echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15154echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15155cat >>confdefs.h <<_ACEOF
15156#define SIZEOF_SHORT $ac_cv_sizeof_short
15157_ACEOF
15158
15159
15160echo "$as_me:$LINENO: checking for void *" >&5
15161echo $ECHO_N "checking for void *... $ECHO_C" >&6
15162if test "${ac_cv_type_void_p+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15164else
15165 cat >conftest.$ac_ext <<_ACEOF
15166/* confdefs.h. */
15167_ACEOF
15168cat confdefs.h >>conftest.$ac_ext
15169cat >>conftest.$ac_ext <<_ACEOF
15170/* end confdefs.h. */
15171$ac_includes_default
15172int
15173main ()
15174{
15175if ((void * *) 0)
15176 return 0;
15177if (sizeof (void *))
15178 return 0;
15179 ;
15180 return 0;
15181}
15182_ACEOF
15183rm -f conftest.$ac_objext
15184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15185 (eval $ac_compile) 2>conftest.er1
a848cd7e 15186 ac_status=$?
ac1cb8d3
VS
15187 grep -v '^ *+' conftest.er1 >conftest.err
15188 rm -f conftest.er1
15189 cat conftest.err >&5
a848cd7e
SC
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } &&
ac1cb8d3
VS
15192 { ac_try='test -z "$ac_c_werror_flag"
15193 || test ! -s conftest.err'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; } &&
15199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_cv_type_void_p=yes
15206else
15207 echo "$as_me: failed program was:" >&5
15208sed 's/^/| /' conftest.$ac_ext >&5
15209
15210ac_cv_type_void_p=no
15211fi
ac1cb8d3 15212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15213fi
15214echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15215echo "${ECHO_T}$ac_cv_type_void_p" >&6
15216
15217echo "$as_me:$LINENO: checking size of void *" >&5
15218echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15219if test "${ac_cv_sizeof_void_p+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221else
15222 if test "$ac_cv_type_void_p" = yes; then
15223 # The cast to unsigned long works around a bug in the HP C Compiler
15224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15226 # This bug is HP SR number 8606223364.
15227 if test "$cross_compiling" = yes; then
15228 # Depending upon the size, compute the lo and hi bounds.
15229cat >conftest.$ac_ext <<_ACEOF
15230/* confdefs.h. */
15231_ACEOF
15232cat confdefs.h >>conftest.$ac_ext
15233cat >>conftest.$ac_ext <<_ACEOF
15234/* end confdefs.h. */
15235$ac_includes_default
15236int
15237main ()
15238{
15239static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15240test_array [0] = 0
15241
15242 ;
15243 return 0;
15244}
15245_ACEOF
15246rm -f conftest.$ac_objext
15247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15248 (eval $ac_compile) 2>conftest.er1
a848cd7e 15249 ac_status=$?
ac1cb8d3
VS
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
a848cd7e
SC
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
ac1cb8d3
VS
15255 { ac_try='test -z "$ac_c_werror_flag"
15256 || test ! -s conftest.err'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_lo=0 ac_mid=0
15269 while :; do
15270 cat >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 *))) <= $ac_mid)];
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); } &&
ac1cb8d3
VS
15296 { ac_try='test -z "$ac_c_werror_flag"
15297 || test ! -s conftest.err'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
15309 ac_hi=$ac_mid; break
15310else
15311 echo "$as_me: failed program was:" >&5
15312sed 's/^/| /' conftest.$ac_ext >&5
15313
15314ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15315 if test $ac_lo -le $ac_mid; then
15316 ac_lo= ac_hi=
15317 break
15318 fi
15319 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15320fi
ac1cb8d3 15321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15322 done
15323else
15324 echo "$as_me: failed program was:" >&5
15325sed 's/^/| /' conftest.$ac_ext >&5
15326
15327cat >conftest.$ac_ext <<_ACEOF
15328/* confdefs.h. */
15329_ACEOF
15330cat confdefs.h >>conftest.$ac_ext
15331cat >>conftest.$ac_ext <<_ACEOF
15332/* end confdefs.h. */
15333$ac_includes_default
15334int
15335main ()
15336{
15337static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15338test_array [0] = 0
15339
15340 ;
15341 return 0;
15342}
15343_ACEOF
15344rm -f conftest.$ac_objext
15345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15346 (eval $ac_compile) 2>conftest.er1
a848cd7e 15347 ac_status=$?
ac1cb8d3
VS
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
a848cd7e
SC
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
ac1cb8d3
VS
15353 { ac_try='test -z "$ac_c_werror_flag"
15354 || test ! -s conftest.err'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; } &&
15360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_hi=-1 ac_mid=-1
15367 while :; do
15368 cat >conftest.$ac_ext <<_ACEOF
15369/* confdefs.h. */
15370_ACEOF
15371cat confdefs.h >>conftest.$ac_ext
15372cat >>conftest.$ac_ext <<_ACEOF
15373/* end confdefs.h. */
15374$ac_includes_default
15375int
15376main ()
15377{
15378static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15379test_array [0] = 0
15380
15381 ;
15382 return 0;
15383}
15384_ACEOF
15385rm -f conftest.$ac_objext
15386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15387 (eval $ac_compile) 2>conftest.er1
a848cd7e 15388 ac_status=$?
ac1cb8d3
VS
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
a848cd7e
SC
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
ac1cb8d3
VS
15394 { ac_try='test -z "$ac_c_werror_flag"
15395 || test ! -s conftest.err'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; } &&
15401 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_lo=$ac_mid; break
15408else
15409 echo "$as_me: failed program was:" >&5
15410sed 's/^/| /' conftest.$ac_ext >&5
15411
15412ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15413 if test $ac_mid -le $ac_hi; then
15414 ac_lo= ac_hi=
15415 break
15416 fi
15417 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15418fi
ac1cb8d3 15419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15420 done
15421else
15422 echo "$as_me: failed program was:" >&5
15423sed 's/^/| /' conftest.$ac_ext >&5
15424
15425ac_lo= ac_hi=
15426fi
ac1cb8d3 15427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15428fi
ac1cb8d3 15429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15430# Binary search between lo and hi bounds.
15431while test "x$ac_lo" != "x$ac_hi"; do
15432 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15433 cat >conftest.$ac_ext <<_ACEOF
15434/* confdefs.h. */
15435_ACEOF
15436cat confdefs.h >>conftest.$ac_ext
15437cat >>conftest.$ac_ext <<_ACEOF
15438/* end confdefs.h. */
15439$ac_includes_default
15440int
15441main ()
15442{
15443static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15444test_array [0] = 0
15445
15446 ;
15447 return 0;
15448}
15449_ACEOF
15450rm -f conftest.$ac_objext
15451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15452 (eval $ac_compile) 2>conftest.er1
a848cd7e 15453 ac_status=$?
ac1cb8d3
VS
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
a848cd7e
SC
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
ac1cb8d3
VS
15459 { ac_try='test -z "$ac_c_werror_flag"
15460 || test ! -s conftest.err'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_hi=$ac_mid
15473else
15474 echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477ac_lo=`expr '(' $ac_mid ')' + 1`
15478fi
ac1cb8d3 15479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15480done
15481case $ac_lo in
15482?*) ac_cv_sizeof_void_p=$ac_lo;;
15483'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15484See \`config.log' for more details." >&5
15485echo "$as_me: error: cannot compute sizeof (void *), 77
15486See \`config.log' for more details." >&2;}
15487 { (exit 1); exit 1; }; } ;;
15488esac
15489else
15490 if test "$cross_compiling" = yes; then
15491 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15492See \`config.log' for more details." >&5
15493echo "$as_me: error: cannot run test program while cross compiling
15494See \`config.log' for more details." >&2;}
15495 { (exit 1); exit 1; }; }
15496else
15497 cat >conftest.$ac_ext <<_ACEOF
15498/* confdefs.h. */
15499_ACEOF
15500cat confdefs.h >>conftest.$ac_ext
15501cat >>conftest.$ac_ext <<_ACEOF
15502/* end confdefs.h. */
15503$ac_includes_default
15504long longval () { return (long) (sizeof (void *)); }
15505unsigned long ulongval () { return (long) (sizeof (void *)); }
15506#include <stdio.h>
15507#include <stdlib.h>
15508int
15509main ()
15510{
15511
15512 FILE *f = fopen ("conftest.val", "w");
15513 if (! f)
15514 exit (1);
15515 if (((long) (sizeof (void *))) < 0)
15516 {
15517 long i = longval ();
15518 if (i != ((long) (sizeof (void *))))
15519 exit (1);
15520 fprintf (f, "%ld\n", i);
15521 }
15522 else
15523 {
15524 unsigned long i = ulongval ();
15525 if (i != ((long) (sizeof (void *))))
15526 exit (1);
15527 fprintf (f, "%lu\n", i);
15528 }
15529 exit (ferror (f) || fclose (f) != 0);
15530
15531 ;
15532 return 0;
15533}
15534_ACEOF
15535rm -f conftest$ac_exeext
15536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15537 (eval $ac_link) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_cv_sizeof_void_p=`cat conftest.val`
15547else
15548 echo "$as_me: program exited with status $ac_status" >&5
15549echo "$as_me: failed program was:" >&5
15550sed 's/^/| /' conftest.$ac_ext >&5
15551
15552( exit $ac_status )
15553{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15554See \`config.log' for more details." >&5
15555echo "$as_me: error: cannot compute sizeof (void *), 77
15556See \`config.log' for more details." >&2;}
15557 { (exit 1); exit 1; }; }
15558fi
ac1cb8d3 15559rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15560fi
15561fi
15562rm -f conftest.val
15563else
15564 ac_cv_sizeof_void_p=0
15565fi
15566fi
15567echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15568echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15569cat >>confdefs.h <<_ACEOF
15570#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15571_ACEOF
15572
15573
15574echo "$as_me:$LINENO: checking for int" >&5
15575echo $ECHO_N "checking for int... $ECHO_C" >&6
15576if test "${ac_cv_type_int+set}" = set; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578else
15579 cat >conftest.$ac_ext <<_ACEOF
15580/* confdefs.h. */
15581_ACEOF
15582cat confdefs.h >>conftest.$ac_ext
15583cat >>conftest.$ac_ext <<_ACEOF
15584/* end confdefs.h. */
15585$ac_includes_default
15586int
15587main ()
15588{
15589if ((int *) 0)
15590 return 0;
15591if (sizeof (int))
15592 return 0;
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); } &&
ac1cb8d3
VS
15606 { ac_try='test -z "$ac_c_werror_flag"
15607 || test ! -s conftest.err'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; } &&
15613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 ac_cv_type_int=yes
15620else
15621 echo "$as_me: failed program was:" >&5
15622sed 's/^/| /' conftest.$ac_ext >&5
15623
15624ac_cv_type_int=no
15625fi
ac1cb8d3 15626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15627fi
15628echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15629echo "${ECHO_T}$ac_cv_type_int" >&6
15630
15631echo "$as_me:$LINENO: checking size of int" >&5
15632echo $ECHO_N "checking size of int... $ECHO_C" >&6
15633if test "${ac_cv_sizeof_int+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635else
15636 if test "$ac_cv_type_int" = yes; then
15637 # The cast to unsigned long works around a bug in the HP C Compiler
15638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15640 # This bug is HP SR number 8606223364.
15641 if test "$cross_compiling" = yes; then
15642 # Depending upon the size, compute the lo and hi bounds.
15643cat >conftest.$ac_ext <<_ACEOF
15644/* confdefs.h. */
15645_ACEOF
15646cat confdefs.h >>conftest.$ac_ext
15647cat >>conftest.$ac_ext <<_ACEOF
15648/* end confdefs.h. */
15649$ac_includes_default
15650int
15651main ()
15652{
15653static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15654test_array [0] = 0
15655
15656 ;
15657 return 0;
15658}
15659_ACEOF
15660rm -f conftest.$ac_objext
15661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15662 (eval $ac_compile) 2>conftest.er1
a848cd7e 15663 ac_status=$?
ac1cb8d3
VS
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
a848cd7e
SC
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
ac1cb8d3
VS
15669 { ac_try='test -z "$ac_c_werror_flag"
15670 || test ! -s conftest.err'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_lo=0 ac_mid=0
15683 while :; do
15684 cat >conftest.$ac_ext <<_ACEOF
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690$ac_includes_default
15691int
15692main ()
15693{
15694static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15695test_array [0] = 0
15696
15697 ;
15698 return 0;
15699}
15700_ACEOF
15701rm -f conftest.$ac_objext
15702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15703 (eval $ac_compile) 2>conftest.er1
a848cd7e 15704 ac_status=$?
ac1cb8d3
VS
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
a848cd7e
SC
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
ac1cb8d3
VS
15710 { ac_try='test -z "$ac_c_werror_flag"
15711 || test ! -s conftest.err'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; } &&
15717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
15723 ac_hi=$ac_mid; break
15724else
15725 echo "$as_me: failed program was:" >&5
15726sed 's/^/| /' conftest.$ac_ext >&5
15727
15728ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15729 if test $ac_lo -le $ac_mid; then
15730 ac_lo= ac_hi=
15731 break
15732 fi
15733 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15734fi
ac1cb8d3 15735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15736 done
15737else
15738 echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741cat >conftest.$ac_ext <<_ACEOF
15742/* confdefs.h. */
15743_ACEOF
15744cat confdefs.h >>conftest.$ac_ext
15745cat >>conftest.$ac_ext <<_ACEOF
15746/* end confdefs.h. */
15747$ac_includes_default
15748int
15749main ()
15750{
15751static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15752test_array [0] = 0
15753
15754 ;
15755 return 0;
15756}
15757_ACEOF
15758rm -f conftest.$ac_objext
15759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15760 (eval $ac_compile) 2>conftest.er1
a848cd7e 15761 ac_status=$?
ac1cb8d3
VS
15762 grep -v '^ *+' conftest.er1 >conftest.err
15763 rm -f conftest.er1
15764 cat conftest.err >&5
a848cd7e
SC
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
ac1cb8d3
VS
15767 { ac_try='test -z "$ac_c_werror_flag"
15768 || test ! -s conftest.err'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; } &&
15774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_hi=-1 ac_mid=-1
15781 while :; do
15782 cat >conftest.$ac_ext <<_ACEOF
15783/* confdefs.h. */
15784_ACEOF
15785cat confdefs.h >>conftest.$ac_ext
15786cat >>conftest.$ac_ext <<_ACEOF
15787/* end confdefs.h. */
15788$ac_includes_default
15789int
15790main ()
15791{
15792static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15793test_array [0] = 0
15794
15795 ;
15796 return 0;
15797}
15798_ACEOF
15799rm -f conftest.$ac_objext
15800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15801 (eval $ac_compile) 2>conftest.er1
a848cd7e 15802 ac_status=$?
ac1cb8d3
VS
15803 grep -v '^ *+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
a848cd7e
SC
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
ac1cb8d3
VS
15808 { ac_try='test -z "$ac_c_werror_flag"
15809 || test ! -s conftest.err'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; } &&
15815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15821 ac_lo=$ac_mid; break
15822else
15823 echo "$as_me: failed program was:" >&5
15824sed 's/^/| /' conftest.$ac_ext >&5
15825
15826ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15827 if test $ac_mid -le $ac_hi; then
15828 ac_lo= ac_hi=
15829 break
15830 fi
15831 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15832fi
ac1cb8d3 15833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15834 done
15835else
15836 echo "$as_me: failed program was:" >&5
15837sed 's/^/| /' conftest.$ac_ext >&5
15838
15839ac_lo= ac_hi=
15840fi
ac1cb8d3 15841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15842fi
ac1cb8d3 15843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15844# Binary search between lo and hi bounds.
15845while test "x$ac_lo" != "x$ac_hi"; do
15846 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15847 cat >conftest.$ac_ext <<_ACEOF
15848/* confdefs.h. */
15849_ACEOF
15850cat confdefs.h >>conftest.$ac_ext
15851cat >>conftest.$ac_ext <<_ACEOF
15852/* end confdefs.h. */
15853$ac_includes_default
15854int
15855main ()
15856{
15857static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15858test_array [0] = 0
15859
15860 ;
15861 return 0;
15862}
15863_ACEOF
15864rm -f conftest.$ac_objext
15865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15866 (eval $ac_compile) 2>conftest.er1
a848cd7e 15867 ac_status=$?
ac1cb8d3
VS
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
a848cd7e
SC
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
ac1cb8d3
VS
15873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 ac_hi=$ac_mid
15887else
15888 echo "$as_me: failed program was:" >&5
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
15891ac_lo=`expr '(' $ac_mid ')' + 1`
15892fi
ac1cb8d3 15893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15894done
15895case $ac_lo in
15896?*) ac_cv_sizeof_int=$ac_lo;;
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; }; } ;;
15902esac
15903else
15904 if test "$cross_compiling" = yes; then
15905 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15906See \`config.log' for more details." >&5
15907echo "$as_me: error: cannot run test program while cross compiling
15908See \`config.log' for more details." >&2;}
15909 { (exit 1); exit 1; }; }
15910else
15911 cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917$ac_includes_default
15918long longval () { return (long) (sizeof (int)); }
15919unsigned long ulongval () { return (long) (sizeof (int)); }
15920#include <stdio.h>
15921#include <stdlib.h>
15922int
15923main ()
15924{
15925
15926 FILE *f = fopen ("conftest.val", "w");
15927 if (! f)
15928 exit (1);
15929 if (((long) (sizeof (int))) < 0)
15930 {
15931 long i = longval ();
15932 if (i != ((long) (sizeof (int))))
15933 exit (1);
15934 fprintf (f, "%ld\n", i);
15935 }
15936 else
15937 {
15938 unsigned long i = ulongval ();
15939 if (i != ((long) (sizeof (int))))
15940 exit (1);
15941 fprintf (f, "%lu\n", i);
15942 }
15943 exit (ferror (f) || fclose (f) != 0);
15944
15945 ;
15946 return 0;
15947}
15948_ACEOF
15949rm -f conftest$ac_exeext
15950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_cv_sizeof_int=`cat conftest.val`
15961else
15962 echo "$as_me: program exited with status $ac_status" >&5
15963echo "$as_me: failed program was:" >&5
15964sed 's/^/| /' conftest.$ac_ext >&5
15965
15966( exit $ac_status )
15967{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15968See \`config.log' for more details." >&5
15969echo "$as_me: error: cannot compute sizeof (int), 77
15970See \`config.log' for more details." >&2;}
15971 { (exit 1); exit 1; }; }
15972fi
ac1cb8d3 15973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15974fi
15975fi
15976rm -f conftest.val
15977else
15978 ac_cv_sizeof_int=0
15979fi
15980fi
15981echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15982echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15983cat >>confdefs.h <<_ACEOF
15984#define SIZEOF_INT $ac_cv_sizeof_int
15985_ACEOF
15986
15987
15988echo "$as_me:$LINENO: checking for long" >&5
15989echo $ECHO_N "checking for long... $ECHO_C" >&6
15990if test "${ac_cv_type_long+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992else
15993 cat >conftest.$ac_ext <<_ACEOF
15994/* confdefs.h. */
15995_ACEOF
15996cat confdefs.h >>conftest.$ac_ext
15997cat >>conftest.$ac_ext <<_ACEOF
15998/* end confdefs.h. */
15999$ac_includes_default
16000int
16001main ()
16002{
16003if ((long *) 0)
16004 return 0;
16005if (sizeof (long))
16006 return 0;
16007 ;
16008 return 0;
16009}
16010_ACEOF
16011rm -f conftest.$ac_objext
16012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16013 (eval $ac_compile) 2>conftest.er1
a848cd7e 16014 ac_status=$?
ac1cb8d3
VS
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
a848cd7e
SC
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
ac1cb8d3
VS
16020 { ac_try='test -z "$ac_c_werror_flag"
16021 || test ! -s conftest.err'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_cv_type_long=yes
16034else
16035 echo "$as_me: failed program was:" >&5
16036sed 's/^/| /' conftest.$ac_ext >&5
16037
16038ac_cv_type_long=no
16039fi
ac1cb8d3 16040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16041fi
16042echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16043echo "${ECHO_T}$ac_cv_type_long" >&6
16044
16045echo "$as_me:$LINENO: checking size of long" >&5
16046echo $ECHO_N "checking size of long... $ECHO_C" >&6
16047if test "${ac_cv_sizeof_long+set}" = set; then
16048 echo $ECHO_N "(cached) $ECHO_C" >&6
16049else
16050 if test "$ac_cv_type_long" = yes; then
16051 # The cast to unsigned long works around a bug in the HP C Compiler
16052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16054 # This bug is HP SR number 8606223364.
16055 if test "$cross_compiling" = yes; then
16056 # Depending upon the size, compute the lo and hi bounds.
16057cat >conftest.$ac_ext <<_ACEOF
16058/* confdefs.h. */
16059_ACEOF
16060cat confdefs.h >>conftest.$ac_ext
16061cat >>conftest.$ac_ext <<_ACEOF
16062/* end confdefs.h. */
16063$ac_includes_default
16064int
16065main ()
16066{
16067static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16068test_array [0] = 0
16069
16070 ;
16071 return 0;
16072}
16073_ACEOF
16074rm -f conftest.$ac_objext
16075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16076 (eval $ac_compile) 2>conftest.er1
a848cd7e 16077 ac_status=$?
ac1cb8d3
VS
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
a848cd7e
SC
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
ac1cb8d3
VS
16083 { ac_try='test -z "$ac_c_werror_flag"
16084 || test ! -s conftest.err'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_lo=0 ac_mid=0
16097 while :; do
16098 cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105int
16106main ()
16107{
16108static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16109test_array [0] = 0
16110
16111 ;
16112 return 0;
16113}
16114_ACEOF
16115rm -f conftest.$ac_objext
16116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16117 (eval $ac_compile) 2>conftest.er1
a848cd7e 16118 ac_status=$?
ac1cb8d3
VS
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
a848cd7e
SC
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
ac1cb8d3
VS
16124 { ac_try='test -z "$ac_c_werror_flag"
16125 || test ! -s conftest.err'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_hi=$ac_mid; break
16138else
16139 echo "$as_me: failed program was:" >&5
16140sed 's/^/| /' conftest.$ac_ext >&5
16141
16142ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16143 if test $ac_lo -le $ac_mid; then
16144 ac_lo= ac_hi=
16145 break
16146 fi
16147 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16148fi
ac1cb8d3 16149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16150 done
16151else
16152 echo "$as_me: failed program was:" >&5
16153sed 's/^/| /' conftest.$ac_ext >&5
16154
16155cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
16160/* end confdefs.h. */
16161$ac_includes_default
16162int
16163main ()
16164{
16165static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16166test_array [0] = 0
16167
16168 ;
16169 return 0;
16170}
16171_ACEOF
16172rm -f conftest.$ac_objext
16173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16174 (eval $ac_compile) 2>conftest.er1
a848cd7e 16175 ac_status=$?
ac1cb8d3
VS
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
a848cd7e
SC
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
ac1cb8d3
VS
16181 { ac_try='test -z "$ac_c_werror_flag"
16182 || test ! -s conftest.err'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_hi=-1 ac_mid=-1
16195 while :; do
16196 cat >conftest.$ac_ext <<_ACEOF
16197/* confdefs.h. */
16198_ACEOF
16199cat confdefs.h >>conftest.$ac_ext
16200cat >>conftest.$ac_ext <<_ACEOF
16201/* end confdefs.h. */
16202$ac_includes_default
16203int
16204main ()
16205{
16206static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16207test_array [0] = 0
16208
16209 ;
16210 return 0;
16211}
16212_ACEOF
16213rm -f conftest.$ac_objext
16214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16215 (eval $ac_compile) 2>conftest.er1
a848cd7e 16216 ac_status=$?
ac1cb8d3
VS
16217 grep -v '^ *+' conftest.er1 >conftest.err
16218 rm -f conftest.er1
16219 cat conftest.err >&5
a848cd7e
SC
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } &&
ac1cb8d3
VS
16222 { ac_try='test -z "$ac_c_werror_flag"
16223 || test ! -s conftest.err'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; } &&
16229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; }; then
16235 ac_lo=$ac_mid; break
16236else
16237 echo "$as_me: failed program was:" >&5
16238sed 's/^/| /' conftest.$ac_ext >&5
16239
16240ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16241 if test $ac_mid -le $ac_hi; then
16242 ac_lo= ac_hi=
16243 break
16244 fi
16245 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16246fi
ac1cb8d3 16247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16248 done
16249else
16250 echo "$as_me: failed program was:" >&5
16251sed 's/^/| /' conftest.$ac_ext >&5
16252
16253ac_lo= ac_hi=
16254fi
ac1cb8d3 16255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16256fi
ac1cb8d3 16257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16258# Binary search between lo and hi bounds.
16259while test "x$ac_lo" != "x$ac_hi"; do
16260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16261 cat >conftest.$ac_ext <<_ACEOF
16262/* confdefs.h. */
16263_ACEOF
16264cat confdefs.h >>conftest.$ac_ext
16265cat >>conftest.$ac_ext <<_ACEOF
16266/* end confdefs.h. */
16267$ac_includes_default
16268int
16269main ()
16270{
16271static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16272test_array [0] = 0
16273
16274 ;
16275 return 0;
16276}
16277_ACEOF
16278rm -f conftest.$ac_objext
16279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16280 (eval $ac_compile) 2>conftest.er1
a848cd7e 16281 ac_status=$?
ac1cb8d3
VS
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
a848cd7e
SC
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } &&
ac1cb8d3
VS
16287 { ac_try='test -z "$ac_c_werror_flag"
16288 || test ! -s conftest.err'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ac_hi=$ac_mid
16301else
16302 echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305ac_lo=`expr '(' $ac_mid ')' + 1`
16306fi
ac1cb8d3 16307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16308done
16309case $ac_lo in
16310?*) ac_cv_sizeof_long=$ac_lo;;
16311'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16312See \`config.log' for more details." >&5
16313echo "$as_me: error: cannot compute sizeof (long), 77
16314See \`config.log' for more details." >&2;}
16315 { (exit 1); exit 1; }; } ;;
16316esac
16317else
16318 if test "$cross_compiling" = yes; then
16319 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16320See \`config.log' for more details." >&5
16321echo "$as_me: error: cannot run test program while cross compiling
16322See \`config.log' for more details." >&2;}
16323 { (exit 1); exit 1; }; }
16324else
16325 cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331$ac_includes_default
16332long longval () { return (long) (sizeof (long)); }
16333unsigned long ulongval () { return (long) (sizeof (long)); }
16334#include <stdio.h>
16335#include <stdlib.h>
16336int
16337main ()
16338{
16339
16340 FILE *f = fopen ("conftest.val", "w");
16341 if (! f)
16342 exit (1);
16343 if (((long) (sizeof (long))) < 0)
16344 {
16345 long i = longval ();
16346 if (i != ((long) (sizeof (long))))
16347 exit (1);
16348 fprintf (f, "%ld\n", i);
16349 }
16350 else
16351 {
16352 unsigned long i = ulongval ();
16353 if (i != ((long) (sizeof (long))))
16354 exit (1);
16355 fprintf (f, "%lu\n", i);
16356 }
16357 exit (ferror (f) || fclose (f) != 0);
16358
16359 ;
16360 return 0;
16361}
16362_ACEOF
16363rm -f conftest$ac_exeext
16364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16365 (eval $ac_link) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374 ac_cv_sizeof_long=`cat conftest.val`
16375else
16376 echo "$as_me: program exited with status $ac_status" >&5
16377echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380( exit $ac_status )
16381{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16382See \`config.log' for more details." >&5
16383echo "$as_me: error: cannot compute sizeof (long), 77
16384See \`config.log' for more details." >&2;}
16385 { (exit 1); exit 1; }; }
16386fi
ac1cb8d3 16387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16388fi
16389fi
16390rm -f conftest.val
16391else
16392 ac_cv_sizeof_long=0
16393fi
16394fi
16395echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16396echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16397cat >>confdefs.h <<_ACEOF
16398#define SIZEOF_LONG $ac_cv_sizeof_long
16399_ACEOF
16400
16401
16402echo "$as_me:$LINENO: checking for size_t" >&5
16403echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16404if test "${ac_cv_type_size_t+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16406else
16407 cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414int
16415main ()
16416{
16417if ((size_t *) 0)
16418 return 0;
16419if (sizeof (size_t))
16420 return 0;
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16427 (eval $ac_compile) 2>conftest.er1
a848cd7e 16428 ac_status=$?
ac1cb8d3
VS
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
a848cd7e
SC
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
ac1cb8d3
VS
16434 { ac_try='test -z "$ac_c_werror_flag"
16435 || test ! -s conftest.err'
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; } &&
16441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_cv_type_size_t=yes
16448else
16449 echo "$as_me: failed program was:" >&5
16450sed 's/^/| /' conftest.$ac_ext >&5
16451
16452ac_cv_type_size_t=no
16453fi
ac1cb8d3 16454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16455fi
16456echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16457echo "${ECHO_T}$ac_cv_type_size_t" >&6
16458
16459echo "$as_me:$LINENO: checking size of size_t" >&5
16460echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16461if test "${ac_cv_sizeof_size_t+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16463else
16464 if test "$ac_cv_type_size_t" = yes; then
16465 # The cast to unsigned long works around a bug in the HP C Compiler
16466 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16467 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16468 # This bug is HP SR number 8606223364.
16469 if test "$cross_compiling" = yes; then
16470 # Depending upon the size, compute the lo and hi bounds.
16471cat >conftest.$ac_ext <<_ACEOF
16472/* confdefs.h. */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h. */
16477$ac_includes_default
16478int
16479main ()
16480{
16481static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16482test_array [0] = 0
16483
16484 ;
16485 return 0;
16486}
16487_ACEOF
16488rm -f conftest.$ac_objext
16489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16490 (eval $ac_compile) 2>conftest.er1
a848cd7e 16491 ac_status=$?
ac1cb8d3
VS
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
a848cd7e
SC
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
ac1cb8d3
VS
16497 { ac_try='test -z "$ac_c_werror_flag"
16498 || test ! -s conftest.err'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; } &&
16504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; }; then
16510 ac_lo=0 ac_mid=0
16511 while :; do
16512 cat >conftest.$ac_ext <<_ACEOF
16513/* confdefs.h. */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h. */
16518$ac_includes_default
16519int
16520main ()
16521{
16522static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16523test_array [0] = 0
16524
16525 ;
16526 return 0;
16527}
16528_ACEOF
16529rm -f conftest.$ac_objext
16530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16531 (eval $ac_compile) 2>conftest.er1
a848cd7e 16532 ac_status=$?
ac1cb8d3
VS
16533 grep -v '^ *+' conftest.er1 >conftest.err
16534 rm -f conftest.er1
16535 cat conftest.err >&5
a848cd7e
SC
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
ac1cb8d3
VS
16538 { ac_try='test -z "$ac_c_werror_flag"
16539 || test ! -s conftest.err'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 ac_hi=$ac_mid; break
16552else
16553 echo "$as_me: failed program was:" >&5
16554sed 's/^/| /' conftest.$ac_ext >&5
16555
16556ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16557 if test $ac_lo -le $ac_mid; then
16558 ac_lo= ac_hi=
16559 break
16560 fi
16561 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16562fi
ac1cb8d3 16563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16564 done
16565else
16566 echo "$as_me: failed program was:" >&5
16567sed 's/^/| /' conftest.$ac_ext >&5
16568
16569cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
16575$ac_includes_default
16576int
16577main ()
16578{
16579static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16580test_array [0] = 0
16581
16582 ;
16583 return 0;
16584}
16585_ACEOF
16586rm -f conftest.$ac_objext
16587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16588 (eval $ac_compile) 2>conftest.er1
a848cd7e 16589 ac_status=$?
ac1cb8d3
VS
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
a848cd7e
SC
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
ac1cb8d3
VS
16595 { ac_try='test -z "$ac_c_werror_flag"
16596 || test ! -s conftest.err'
16597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_hi=-1 ac_mid=-1
16609 while :; do
16610 cat >conftest.$ac_ext <<_ACEOF
16611/* confdefs.h. */
16612_ACEOF
16613cat confdefs.h >>conftest.$ac_ext
16614cat >>conftest.$ac_ext <<_ACEOF
16615/* end confdefs.h. */
16616$ac_includes_default
16617int
16618main ()
16619{
16620static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16621test_array [0] = 0
16622
16623 ;
16624 return 0;
16625}
16626_ACEOF
16627rm -f conftest.$ac_objext
16628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16629 (eval $ac_compile) 2>conftest.er1
a848cd7e 16630 ac_status=$?
ac1cb8d3
VS
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
a848cd7e
SC
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
ac1cb8d3
VS
16636 { ac_try='test -z "$ac_c_werror_flag"
16637 || test ! -s conftest.err'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 ac_lo=$ac_mid; break
16650else
16651 echo "$as_me: failed program was:" >&5
16652sed 's/^/| /' conftest.$ac_ext >&5
16653
16654ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16655 if test $ac_mid -le $ac_hi; then
16656 ac_lo= ac_hi=
16657 break
16658 fi
16659 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16660fi
ac1cb8d3 16661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16662 done
16663else
16664 echo "$as_me: failed program was:" >&5
16665sed 's/^/| /' conftest.$ac_ext >&5
16666
16667ac_lo= ac_hi=
16668fi
ac1cb8d3 16669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16670fi
ac1cb8d3 16671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16672# Binary search between lo and hi bounds.
16673while test "x$ac_lo" != "x$ac_hi"; do
16674 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16675 cat >conftest.$ac_ext <<_ACEOF
16676/* confdefs.h. */
16677_ACEOF
16678cat confdefs.h >>conftest.$ac_ext
16679cat >>conftest.$ac_ext <<_ACEOF
16680/* end confdefs.h. */
16681$ac_includes_default
16682int
16683main ()
16684{
16685static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16686test_array [0] = 0
16687
16688 ;
16689 return 0;
16690}
16691_ACEOF
16692rm -f conftest.$ac_objext
16693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16694 (eval $ac_compile) 2>conftest.er1
a848cd7e 16695 ac_status=$?
ac1cb8d3
VS
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
a848cd7e
SC
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
ac1cb8d3
VS
16701 { ac_try='test -z "$ac_c_werror_flag"
16702 || test ! -s conftest.err'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; } &&
16708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 ac_hi=$ac_mid
16715else
16716 echo "$as_me: failed program was:" >&5
16717sed 's/^/| /' conftest.$ac_ext >&5
16718
16719ac_lo=`expr '(' $ac_mid ')' + 1`
16720fi
ac1cb8d3 16721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16722done
16723case $ac_lo in
16724?*) ac_cv_sizeof_size_t=$ac_lo;;
16725'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16726See \`config.log' for more details." >&5
16727echo "$as_me: error: cannot compute sizeof (size_t), 77
16728See \`config.log' for more details." >&2;}
16729 { (exit 1); exit 1; }; } ;;
16730esac
16731else
16732 if test "$cross_compiling" = yes; then
16733 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16734See \`config.log' for more details." >&5
16735echo "$as_me: error: cannot run test program while cross compiling
16736See \`config.log' for more details." >&2;}
16737 { (exit 1); exit 1; }; }
16738else
16739 cat >conftest.$ac_ext <<_ACEOF
16740/* confdefs.h. */
16741_ACEOF
16742cat confdefs.h >>conftest.$ac_ext
16743cat >>conftest.$ac_ext <<_ACEOF
16744/* end confdefs.h. */
16745$ac_includes_default
16746long longval () { return (long) (sizeof (size_t)); }
16747unsigned long ulongval () { return (long) (sizeof (size_t)); }
16748#include <stdio.h>
16749#include <stdlib.h>
16750int
16751main ()
16752{
16753
16754 FILE *f = fopen ("conftest.val", "w");
16755 if (! f)
16756 exit (1);
16757 if (((long) (sizeof (size_t))) < 0)
16758 {
16759 long i = longval ();
16760 if (i != ((long) (sizeof (size_t))))
16761 exit (1);
16762 fprintf (f, "%ld\n", i);
16763 }
16764 else
16765 {
16766 unsigned long i = ulongval ();
16767 if (i != ((long) (sizeof (size_t))))
16768 exit (1);
16769 fprintf (f, "%lu\n", i);
16770 }
16771 exit (ferror (f) || fclose (f) != 0);
16772
16773 ;
16774 return 0;
16775}
16776_ACEOF
16777rm -f conftest$ac_exeext
16778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16779 (eval $ac_link) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 ac_cv_sizeof_size_t=`cat conftest.val`
16789else
16790 echo "$as_me: program exited with status $ac_status" >&5
16791echo "$as_me: failed program was:" >&5
16792sed 's/^/| /' conftest.$ac_ext >&5
16793
16794( exit $ac_status )
16795{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16796See \`config.log' for more details." >&5
16797echo "$as_me: error: cannot compute sizeof (size_t), 77
16798See \`config.log' for more details." >&2;}
16799 { (exit 1); exit 1; }; }
16800fi
ac1cb8d3 16801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16802fi
16803fi
16804rm -f conftest.val
16805else
16806 ac_cv_sizeof_size_t=0
16807fi
16808fi
16809echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16810echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16811cat >>confdefs.h <<_ACEOF
16812#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16813_ACEOF
16814
16815
16816
16817case "${host}" in
16818 arm-*-linux* )
16819 echo "$as_me:$LINENO: checking for long long" >&5
16820echo $ECHO_N "checking for long long... $ECHO_C" >&6
16821if test "${ac_cv_type_long_long+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823else
16824 cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
16830$ac_includes_default
16831int
16832main ()
16833{
16834if ((long long *) 0)
16835 return 0;
16836if (sizeof (long long))
16837 return 0;
16838 ;
16839 return 0;
16840}
16841_ACEOF
16842rm -f conftest.$ac_objext
16843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16844 (eval $ac_compile) 2>conftest.er1
a848cd7e 16845 ac_status=$?
ac1cb8d3
VS
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
a848cd7e
SC
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
ac1cb8d3
VS
16851 { ac_try='test -z "$ac_c_werror_flag"
16852 || test ! -s conftest.err'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_type_long_long=yes
16865else
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869ac_cv_type_long_long=no
16870fi
ac1cb8d3 16871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16872fi
16873echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16874echo "${ECHO_T}$ac_cv_type_long_long" >&6
16875
16876echo "$as_me:$LINENO: checking size of long long" >&5
16877echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16878if test "${ac_cv_sizeof_long_long+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880else
16881 if test "$ac_cv_type_long_long" = yes; then
16882 # The cast to unsigned long works around a bug in the HP C Compiler
16883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16885 # This bug is HP SR number 8606223364.
16886 if test "$cross_compiling" = yes; then
16887 # Depending upon the size, compute the lo and hi bounds.
16888cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895int
16896main ()
16897{
16898static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16899test_array [0] = 0
16900
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16907 (eval $ac_compile) 2>conftest.er1
a848cd7e 16908 ac_status=$?
ac1cb8d3
VS
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
a848cd7e
SC
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
ac1cb8d3
VS
16914 { ac_try='test -z "$ac_c_werror_flag"
16915 || test ! -s conftest.err'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_lo=0 ac_mid=0
16928 while :; do
16929 cat >conftest.$ac_ext <<_ACEOF
16930/* confdefs.h. */
16931_ACEOF
16932cat confdefs.h >>conftest.$ac_ext
16933cat >>conftest.$ac_ext <<_ACEOF
16934/* end confdefs.h. */
16935$ac_includes_default
16936int
16937main ()
16938{
16939static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16940test_array [0] = 0
16941
16942 ;
16943 return 0;
16944}
16945_ACEOF
16946rm -f conftest.$ac_objext
16947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16948 (eval $ac_compile) 2>conftest.er1
a848cd7e 16949 ac_status=$?
ac1cb8d3
VS
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
a848cd7e
SC
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
ac1cb8d3
VS
16955 { ac_try='test -z "$ac_c_werror_flag"
16956 || test ! -s conftest.err'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; } &&
16962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_hi=$ac_mid; break
16969else
16970 echo "$as_me: failed program was:" >&5
16971sed 's/^/| /' conftest.$ac_ext >&5
16972
16973ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16974 if test $ac_lo -le $ac_mid; then
16975 ac_lo= ac_hi=
16976 break
16977 fi
16978 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16979fi
ac1cb8d3 16980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16981 done
16982else
16983 echo "$as_me: failed program was:" >&5
16984sed 's/^/| /' conftest.$ac_ext >&5
16985
16986cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h. */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h. */
16992$ac_includes_default
16993int
16994main ()
16995{
16996static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16997test_array [0] = 0
16998
16999 ;
17000 return 0;
17001}
17002_ACEOF
17003rm -f conftest.$ac_objext
17004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17005 (eval $ac_compile) 2>conftest.er1
a848cd7e 17006 ac_status=$?
ac1cb8d3
VS
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
a848cd7e
SC
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
ac1cb8d3
VS
17012 { ac_try='test -z "$ac_c_werror_flag"
17013 || test ! -s conftest.err'
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; } &&
17019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_hi=-1 ac_mid=-1
17026 while :; do
17027 cat >conftest.$ac_ext <<_ACEOF
17028/* confdefs.h. */
17029_ACEOF
17030cat confdefs.h >>conftest.$ac_ext
17031cat >>conftest.$ac_ext <<_ACEOF
17032/* end confdefs.h. */
17033$ac_includes_default
17034int
17035main ()
17036{
17037static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17038test_array [0] = 0
17039
17040 ;
17041 return 0;
17042}
17043_ACEOF
17044rm -f conftest.$ac_objext
17045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17046 (eval $ac_compile) 2>conftest.er1
a848cd7e 17047 ac_status=$?
ac1cb8d3
VS
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
a848cd7e
SC
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
ac1cb8d3
VS
17053 { ac_try='test -z "$ac_c_werror_flag"
17054 || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_lo=$ac_mid; break
17067else
17068 echo "$as_me: failed program was:" >&5
17069sed 's/^/| /' conftest.$ac_ext >&5
17070
17071ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17072 if test $ac_mid -le $ac_hi; then
17073 ac_lo= ac_hi=
17074 break
17075 fi
17076 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17077fi
ac1cb8d3 17078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17079 done
17080else
17081 echo "$as_me: failed program was:" >&5
17082sed 's/^/| /' conftest.$ac_ext >&5
17083
17084ac_lo= ac_hi=
17085fi
ac1cb8d3 17086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17087fi
ac1cb8d3 17088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17089# Binary search between lo and hi bounds.
17090while test "x$ac_lo" != "x$ac_hi"; do
17091 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17092 cat >conftest.$ac_ext <<_ACEOF
17093/* confdefs.h. */
17094_ACEOF
17095cat confdefs.h >>conftest.$ac_ext
17096cat >>conftest.$ac_ext <<_ACEOF
17097/* end confdefs.h. */
17098$ac_includes_default
17099int
17100main ()
17101{
17102static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17103test_array [0] = 0
17104
17105 ;
17106 return 0;
17107}
17108_ACEOF
17109rm -f conftest.$ac_objext
17110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17111 (eval $ac_compile) 2>conftest.er1
a848cd7e 17112 ac_status=$?
ac1cb8d3
VS
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
a848cd7e
SC
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
ac1cb8d3
VS
17118 { ac_try='test -z "$ac_c_werror_flag"
17119 || test ! -s conftest.err'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 ac_hi=$ac_mid
17132else
17133 echo "$as_me: failed program was:" >&5
17134sed 's/^/| /' conftest.$ac_ext >&5
17135
17136ac_lo=`expr '(' $ac_mid ')' + 1`
17137fi
ac1cb8d3 17138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17139done
17140case $ac_lo in
17141?*) ac_cv_sizeof_long_long=$ac_lo;;
17142'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17143See \`config.log' for more details." >&5
17144echo "$as_me: error: cannot compute sizeof (long long), 77
17145See \`config.log' for more details." >&2;}
17146 { (exit 1); exit 1; }; } ;;
17147esac
17148else
17149 if test "$cross_compiling" = yes; then
17150 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17151See \`config.log' for more details." >&5
17152echo "$as_me: error: cannot run test program while cross compiling
17153See \`config.log' for more details." >&2;}
17154 { (exit 1); exit 1; }; }
17155else
17156 cat >conftest.$ac_ext <<_ACEOF
17157/* confdefs.h. */
17158_ACEOF
17159cat confdefs.h >>conftest.$ac_ext
17160cat >>conftest.$ac_ext <<_ACEOF
17161/* end confdefs.h. */
17162$ac_includes_default
17163long longval () { return (long) (sizeof (long long)); }
17164unsigned long ulongval () { return (long) (sizeof (long long)); }
17165#include <stdio.h>
17166#include <stdlib.h>
17167int
17168main ()
17169{
17170
17171 FILE *f = fopen ("conftest.val", "w");
17172 if (! f)
17173 exit (1);
17174 if (((long) (sizeof (long long))) < 0)
17175 {
17176 long i = longval ();
17177 if (i != ((long) (sizeof (long long))))
17178 exit (1);
17179 fprintf (f, "%ld\n", i);
17180 }
17181 else
17182 {
17183 unsigned long i = ulongval ();
17184 if (i != ((long) (sizeof (long long))))
17185 exit (1);
17186 fprintf (f, "%lu\n", i);
17187 }
17188 exit (ferror (f) || fclose (f) != 0);
17189
17190 ;
17191 return 0;
17192}
17193_ACEOF
17194rm -f conftest$ac_exeext
17195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17196 (eval $ac_link) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_sizeof_long_long=`cat conftest.val`
17206else
17207 echo "$as_me: program exited with status $ac_status" >&5
17208echo "$as_me: failed program was:" >&5
17209sed 's/^/| /' conftest.$ac_ext >&5
17210
17211( exit $ac_status )
17212{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17213See \`config.log' for more details." >&5
17214echo "$as_me: error: cannot compute sizeof (long long), 77
17215See \`config.log' for more details." >&2;}
17216 { (exit 1); exit 1; }; }
17217fi
ac1cb8d3 17218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17219fi
17220fi
17221rm -f conftest.val
17222else
17223 ac_cv_sizeof_long_long=0
17224fi
17225fi
17226echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17227echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17228cat >>confdefs.h <<_ACEOF
17229#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17230_ACEOF
17231
17232
17233 ;;
17234 *-hp-hpux* )
17235 echo "$as_me:$LINENO: checking for long long" >&5
17236echo $ECHO_N "checking for long long... $ECHO_C" >&6
17237if test "${ac_cv_type_long_long+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239else
17240 cat >conftest.$ac_ext <<_ACEOF
17241/* confdefs.h. */
17242_ACEOF
17243cat confdefs.h >>conftest.$ac_ext
17244cat >>conftest.$ac_ext <<_ACEOF
17245/* end confdefs.h. */
17246$ac_includes_default
17247int
17248main ()
17249{
17250if ((long long *) 0)
17251 return 0;
17252if (sizeof (long long))
17253 return 0;
17254 ;
17255 return 0;
17256}
17257_ACEOF
17258rm -f conftest.$ac_objext
17259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17260 (eval $ac_compile) 2>conftest.er1
a848cd7e 17261 ac_status=$?
ac1cb8d3
VS
17262 grep -v '^ *+' conftest.er1 >conftest.err
17263 rm -f conftest.er1
17264 cat conftest.err >&5
a848cd7e
SC
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
ac1cb8d3
VS
17267 { ac_try='test -z "$ac_c_werror_flag"
17268 || test ! -s conftest.err'
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; } &&
17274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; }; then
17280 ac_cv_type_long_long=yes
17281else
17282 echo "$as_me: failed program was:" >&5
17283sed 's/^/| /' conftest.$ac_ext >&5
17284
17285ac_cv_type_long_long=no
17286fi
ac1cb8d3 17287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17288fi
17289echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17290echo "${ECHO_T}$ac_cv_type_long_long" >&6
17291
17292echo "$as_me:$LINENO: checking size of long long" >&5
17293echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17294if test "${ac_cv_sizeof_long_long+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296else
17297 if test "$ac_cv_type_long_long" = yes; then
17298 # The cast to unsigned long works around a bug in the HP C Compiler
17299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17301 # This bug is HP SR number 8606223364.
17302 if test "$cross_compiling" = yes; then
17303 # Depending upon the size, compute the lo and hi bounds.
17304cat >conftest.$ac_ext <<_ACEOF
17305/* confdefs.h. */
17306_ACEOF
17307cat confdefs.h >>conftest.$ac_ext
17308cat >>conftest.$ac_ext <<_ACEOF
17309/* end confdefs.h. */
17310$ac_includes_default
17311int
17312main ()
17313{
17314static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17315test_array [0] = 0
17316
17317 ;
17318 return 0;
17319}
17320_ACEOF
17321rm -f conftest.$ac_objext
17322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17323 (eval $ac_compile) 2>conftest.er1
a848cd7e 17324 ac_status=$?
ac1cb8d3
VS
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
a848cd7e
SC
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
ac1cb8d3
VS
17330 { ac_try='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
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_lo=0 ac_mid=0
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); } &&
ac1cb8d3
VS
17371 { ac_try='test -z "$ac_c_werror_flag"
17372 || test ! -s conftest.err'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 ac_hi=$ac_mid; break
17385else
17386 echo "$as_me: failed program was:" >&5
17387sed 's/^/| /' conftest.$ac_ext >&5
17388
17389ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17390 if test $ac_lo -le $ac_mid; then
17391 ac_lo= ac_hi=
17392 break
17393 fi
17394 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17395fi
ac1cb8d3 17396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17397 done
17398else
17399 echo "$as_me: failed program was:" >&5
17400sed 's/^/| /' conftest.$ac_ext >&5
17401
17402cat >conftest.$ac_ext <<_ACEOF
17403/* confdefs.h. */
17404_ACEOF
17405cat confdefs.h >>conftest.$ac_ext
17406cat >>conftest.$ac_ext <<_ACEOF
17407/* end confdefs.h. */
17408$ac_includes_default
17409int
17410main ()
17411{
17412static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17413test_array [0] = 0
17414
17415 ;
17416 return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext
17420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17421 (eval $ac_compile) 2>conftest.er1
a848cd7e 17422 ac_status=$?
ac1cb8d3
VS
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
a848cd7e
SC
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
ac1cb8d3
VS
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17441 ac_hi=-1 ac_mid=-1
17442 while :; do
17443 cat >conftest.$ac_ext <<_ACEOF
17444/* confdefs.h. */
17445_ACEOF
17446cat confdefs.h >>conftest.$ac_ext
17447cat >>conftest.$ac_ext <<_ACEOF
17448/* end confdefs.h. */
17449$ac_includes_default
17450int
17451main ()
17452{
17453static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17454test_array [0] = 0
17455
17456 ;
17457 return 0;
17458}
17459_ACEOF
17460rm -f conftest.$ac_objext
17461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17462 (eval $ac_compile) 2>conftest.er1
a848cd7e 17463 ac_status=$?
ac1cb8d3
VS
17464 grep -v '^ *+' conftest.er1 >conftest.err
17465 rm -f conftest.er1
17466 cat conftest.err >&5
a848cd7e
SC
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
ac1cb8d3
VS
17469 { ac_try='test -z "$ac_c_werror_flag"
17470 || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 ac_lo=$ac_mid; break
17483else
17484 echo "$as_me: failed program was:" >&5
17485sed 's/^/| /' conftest.$ac_ext >&5
17486
17487ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17488 if test $ac_mid -le $ac_hi; then
17489 ac_lo= ac_hi=
17490 break
17491 fi
17492 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17493fi
ac1cb8d3 17494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17495 done
17496else
17497 echo "$as_me: failed program was:" >&5
17498sed 's/^/| /' conftest.$ac_ext >&5
17499
17500ac_lo= ac_hi=
17501fi
ac1cb8d3 17502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17503fi
ac1cb8d3 17504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17505# Binary search between lo and hi bounds.
17506while test "x$ac_lo" != "x$ac_hi"; do
17507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17508 cat >conftest.$ac_ext <<_ACEOF
17509/* confdefs.h. */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h. */
17514$ac_includes_default
17515int
17516main ()
17517{
17518static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17519test_array [0] = 0
17520
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext
17526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17527 (eval $ac_compile) 2>conftest.er1
a848cd7e 17528 ac_status=$?
ac1cb8d3
VS
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
a848cd7e
SC
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
ac1cb8d3
VS
17534 { ac_try='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_hi=$ac_mid
17548else
17549 echo "$as_me: failed program was:" >&5
17550sed 's/^/| /' conftest.$ac_ext >&5
17551
17552ac_lo=`expr '(' $ac_mid ')' + 1`
17553fi
ac1cb8d3 17554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17555done
17556case $ac_lo in
17557?*) ac_cv_sizeof_long_long=$ac_lo;;
17558'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17559See \`config.log' for more details." >&5
17560echo "$as_me: error: cannot compute sizeof (long long), 77
17561See \`config.log' for more details." >&2;}
17562 { (exit 1); exit 1; }; } ;;
17563esac
17564else
17565 if test "$cross_compiling" = yes; then
17566 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17567See \`config.log' for more details." >&5
17568echo "$as_me: error: cannot run test program while cross compiling
17569See \`config.log' for more details." >&2;}
17570 { (exit 1); exit 1; }; }
17571else
17572 cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
17578$ac_includes_default
17579long longval () { return (long) (sizeof (long long)); }
17580unsigned long ulongval () { return (long) (sizeof (long long)); }
17581#include <stdio.h>
17582#include <stdlib.h>
17583int
17584main ()
17585{
17586
17587 FILE *f = fopen ("conftest.val", "w");
17588 if (! f)
17589 exit (1);
17590 if (((long) (sizeof (long long))) < 0)
17591 {
17592 long i = longval ();
17593 if (i != ((long) (sizeof (long long))))
17594 exit (1);
17595 fprintf (f, "%ld\n", i);
17596 }
17597 else
17598 {
17599 unsigned long i = ulongval ();
17600 if (i != ((long) (sizeof (long long))))
17601 exit (1);
17602 fprintf (f, "%lu\n", i);
17603 }
17604 exit (ferror (f) || fclose (f) != 0);
17605
17606 ;
17607 return 0;
17608}
17609_ACEOF
17610rm -f conftest$ac_exeext
17611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612 (eval $ac_link) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; }; then
17621 ac_cv_sizeof_long_long=`cat conftest.val`
17622else
17623 echo "$as_me: program exited with status $ac_status" >&5
17624echo "$as_me: failed program was:" >&5
17625sed 's/^/| /' conftest.$ac_ext >&5
17626
17627( exit $ac_status )
17628{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17629See \`config.log' for more details." >&5
17630echo "$as_me: error: cannot compute sizeof (long long), 77
17631See \`config.log' for more details." >&2;}
17632 { (exit 1); exit 1; }; }
17633fi
ac1cb8d3 17634rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17635fi
17636fi
17637rm -f conftest.val
17638else
17639 ac_cv_sizeof_long_long=0
17640fi
17641fi
17642echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17643echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17644cat >>confdefs.h <<_ACEOF
17645#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17646_ACEOF
17647
17648
17649 if test "$ac_cv_sizeof_long_long" != "0"; then
17650 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17651 fi
17652 ;;
17653 * )
17654 echo "$as_me:$LINENO: checking for long long" >&5
17655echo $ECHO_N "checking for long long... $ECHO_C" >&6
17656if test "${ac_cv_type_long_long+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658else
17659 cat >conftest.$ac_ext <<_ACEOF
17660/* confdefs.h. */
17661_ACEOF
17662cat confdefs.h >>conftest.$ac_ext
17663cat >>conftest.$ac_ext <<_ACEOF
17664/* end confdefs.h. */
17665$ac_includes_default
17666int
17667main ()
17668{
17669if ((long long *) 0)
17670 return 0;
17671if (sizeof (long long))
17672 return 0;
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); } &&
ac1cb8d3
VS
17686 { ac_try='test -z "$ac_c_werror_flag"
17687 || test ! -s conftest.err'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; } &&
17693 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
17699 ac_cv_type_long_long=yes
17700else
17701 echo "$as_me: failed program was:" >&5
17702sed 's/^/| /' conftest.$ac_ext >&5
17703
17704ac_cv_type_long_long=no
17705fi
ac1cb8d3 17706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17707fi
17708echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17709echo "${ECHO_T}$ac_cv_type_long_long" >&6
17710
17711echo "$as_me:$LINENO: checking size of long long" >&5
17712echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17713if test "${ac_cv_sizeof_long_long+set}" = set; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17715else
17716 if test "$ac_cv_type_long_long" = yes; then
17717 # The cast to unsigned long works around a bug in the HP C Compiler
17718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17720 # This bug is HP SR number 8606223364.
17721 if test "$cross_compiling" = yes; then
17722 # Depending upon the size, compute the lo and hi bounds.
17723cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729$ac_includes_default
17730int
17731main ()
17732{
17733static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17734test_array [0] = 0
17735
17736 ;
17737 return 0;
17738}
17739_ACEOF
17740rm -f conftest.$ac_objext
17741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17742 (eval $ac_compile) 2>conftest.er1
a848cd7e 17743 ac_status=$?
ac1cb8d3
VS
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
a848cd7e
SC
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
ac1cb8d3
VS
17749 { ac_try='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_lo=0 ac_mid=0
17763 while :; do
17764 cat >conftest.$ac_ext <<_ACEOF
17765/* confdefs.h. */
17766_ACEOF
17767cat confdefs.h >>conftest.$ac_ext
17768cat >>conftest.$ac_ext <<_ACEOF
17769/* end confdefs.h. */
17770$ac_includes_default
17771int
17772main ()
17773{
17774static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17775test_array [0] = 0
17776
17777 ;
17778 return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext
17782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17783 (eval $ac_compile) 2>conftest.er1
a848cd7e 17784 ac_status=$?
ac1cb8d3
VS
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
a848cd7e
SC
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
ac1cb8d3
VS
17790 { ac_try='test -z "$ac_c_werror_flag"
17791 || test ! -s conftest.err'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 ac_hi=$ac_mid; break
17804else
17805 echo "$as_me: failed program was:" >&5
17806sed 's/^/| /' conftest.$ac_ext >&5
17807
17808ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17809 if test $ac_lo -le $ac_mid; then
17810 ac_lo= ac_hi=
17811 break
17812 fi
17813 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17814fi
ac1cb8d3 17815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17816 done
17817else
17818 echo "$as_me: failed program was:" >&5
17819sed 's/^/| /' conftest.$ac_ext >&5
17820
17821cat >conftest.$ac_ext <<_ACEOF
17822/* confdefs.h. */
17823_ACEOF
17824cat confdefs.h >>conftest.$ac_ext
17825cat >>conftest.$ac_ext <<_ACEOF
17826/* end confdefs.h. */
17827$ac_includes_default
17828int
17829main ()
17830{
17831static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17832test_array [0] = 0
17833
17834 ;
17835 return 0;
17836}
17837_ACEOF
17838rm -f conftest.$ac_objext
17839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17840 (eval $ac_compile) 2>conftest.er1
a848cd7e 17841 ac_status=$?
ac1cb8d3
VS
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
a848cd7e
SC
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
ac1cb8d3
VS
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_hi=-1 ac_mid=-1
17861 while :; do
17862 cat >conftest.$ac_ext <<_ACEOF
17863/* confdefs.h. */
17864_ACEOF
17865cat confdefs.h >>conftest.$ac_ext
17866cat >>conftest.$ac_ext <<_ACEOF
17867/* end confdefs.h. */
17868$ac_includes_default
17869int
17870main ()
17871{
17872static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17873test_array [0] = 0
17874
17875 ;
17876 return 0;
17877}
17878_ACEOF
17879rm -f conftest.$ac_objext
17880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17881 (eval $ac_compile) 2>conftest.er1
a848cd7e 17882 ac_status=$?
ac1cb8d3
VS
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
a848cd7e
SC
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
ac1cb8d3
VS
17888 { ac_try='test -z "$ac_c_werror_flag"
17889 || test ! -s conftest.err'
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17898 ac_status=$?
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_lo=$ac_mid; break
17902else
17903 echo "$as_me: failed program was:" >&5
17904sed 's/^/| /' conftest.$ac_ext >&5
17905
17906ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17907 if test $ac_mid -le $ac_hi; then
17908 ac_lo= ac_hi=
17909 break
17910 fi
17911 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17912fi
ac1cb8d3 17913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17914 done
17915else
17916 echo "$as_me: failed program was:" >&5
17917sed 's/^/| /' conftest.$ac_ext >&5
17918
17919ac_lo= ac_hi=
17920fi
ac1cb8d3 17921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17922fi
ac1cb8d3 17923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17924# Binary search between lo and hi bounds.
17925while test "x$ac_lo" != "x$ac_hi"; do
17926 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17927 cat >conftest.$ac_ext <<_ACEOF
17928/* confdefs.h. */
17929_ACEOF
17930cat confdefs.h >>conftest.$ac_ext
17931cat >>conftest.$ac_ext <<_ACEOF
17932/* end confdefs.h. */
17933$ac_includes_default
17934int
17935main ()
17936{
17937static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17938test_array [0] = 0
17939
17940 ;
17941 return 0;
17942}
17943_ACEOF
17944rm -f conftest.$ac_objext
17945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17946 (eval $ac_compile) 2>conftest.er1
a848cd7e 17947 ac_status=$?
ac1cb8d3
VS
17948 grep -v '^ *+' conftest.er1 >conftest.err
17949 rm -f conftest.er1
17950 cat conftest.err >&5
a848cd7e
SC
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
ac1cb8d3
VS
17953 { ac_try='test -z "$ac_c_werror_flag"
17954 || test ! -s conftest.err'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 ac_hi=$ac_mid
17967else
17968 echo "$as_me: failed program was:" >&5
17969sed 's/^/| /' conftest.$ac_ext >&5
17970
17971ac_lo=`expr '(' $ac_mid ')' + 1`
17972fi
ac1cb8d3 17973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17974done
17975case $ac_lo in
17976?*) ac_cv_sizeof_long_long=$ac_lo;;
17977'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17978See \`config.log' for more details." >&5
17979echo "$as_me: error: cannot compute sizeof (long long), 77
17980See \`config.log' for more details." >&2;}
17981 { (exit 1); exit 1; }; } ;;
17982esac
17983else
17984 if test "$cross_compiling" = yes; then
17985 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17986See \`config.log' for more details." >&5
17987echo "$as_me: error: cannot run test program while cross compiling
17988See \`config.log' for more details." >&2;}
17989 { (exit 1); exit 1; }; }
17990else
17991 cat >conftest.$ac_ext <<_ACEOF
17992/* confdefs.h. */
17993_ACEOF
17994cat confdefs.h >>conftest.$ac_ext
17995cat >>conftest.$ac_ext <<_ACEOF
17996/* end confdefs.h. */
17997$ac_includes_default
17998long longval () { return (long) (sizeof (long long)); }
17999unsigned long ulongval () { return (long) (sizeof (long long)); }
18000#include <stdio.h>
18001#include <stdlib.h>
18002int
18003main ()
18004{
18005
18006 FILE *f = fopen ("conftest.val", "w");
18007 if (! f)
18008 exit (1);
18009 if (((long) (sizeof (long long))) < 0)
18010 {
18011 long i = longval ();
18012 if (i != ((long) (sizeof (long long))))
18013 exit (1);
18014 fprintf (f, "%ld\n", i);
18015 }
18016 else
18017 {
18018 unsigned long i = ulongval ();
18019 if (i != ((long) (sizeof (long long))))
18020 exit (1);
18021 fprintf (f, "%lu\n", i);
18022 }
18023 exit (ferror (f) || fclose (f) != 0);
18024
18025 ;
18026 return 0;
18027}
18028_ACEOF
18029rm -f conftest$ac_exeext
18030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18031 (eval $ac_link) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_sizeof_long_long=`cat conftest.val`
18041else
18042 echo "$as_me: program exited with status $ac_status" >&5
18043echo "$as_me: failed program was:" >&5
18044sed 's/^/| /' conftest.$ac_ext >&5
18045
18046( exit $ac_status )
18047{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18048See \`config.log' for more details." >&5
18049echo "$as_me: error: cannot compute sizeof (long long), 77
18050See \`config.log' for more details." >&2;}
18051 { (exit 1); exit 1; }; }
18052fi
ac1cb8d3 18053rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18054fi
18055fi
18056rm -f conftest.val
18057else
18058 ac_cv_sizeof_long_long=0
18059fi
18060fi
18061echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18062echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18063cat >>confdefs.h <<_ACEOF
18064#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18065_ACEOF
18066
18067
18068esac
18069
18070echo "$as_me:$LINENO: checking size of wchar_t" >&5
18071echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18072if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18074else
18075
18076 if test "$cross_compiling" = yes; then
18077
18078 case "${host}" in
18079 *-pc-msdosdjgpp )
18080 wx_cv_sizeof_wchar_t=0
18081 ;;
18082 * )
18083 wx_cv_sizeof_wchar_t=4
18084 ;;
18085 esac
18086
18087
18088else
18089 cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h. */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
18094/* end confdefs.h. */
18095
18096 /* DJGPP only has fake wchar_t: */
18097 #ifdef __DJGPP__
18098 # error "fake wchar_t"
18099 #endif
18100 #ifdef HAVE_WCHAR_H
18101 # ifdef __CYGWIN__
18102 # include <stddef.h>
18103 # endif
18104 # include <wchar.h>
18105 #endif
18106 #ifdef HAVE_STDLIB_H
18107 # include <stdlib.h>
18108 #endif
18109 #include <stdio.h>
18110 int main()
18111 {
18112 FILE *f=fopen("conftestval", "w");
18113 if (!f) exit(1);
18114 fprintf(f, "%i", sizeof(wchar_t));
18115 exit(0);
18116 }
18117
18118_ACEOF
18119rm -f conftest$ac_exeext
18120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18121 (eval $ac_link) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 wx_cv_sizeof_wchar_t=`cat conftestval`
18131else
18132 echo "$as_me: program exited with status $ac_status" >&5
18133echo "$as_me: failed program was:" >&5
18134sed 's/^/| /' conftest.$ac_ext >&5
18135
18136( exit $ac_status )
18137wx_cv_sizeof_wchar_t=0
18138fi
ac1cb8d3 18139rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18140fi
18141
18142fi
18143echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18144echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18145
18146cat >>confdefs.h <<_ACEOF
18147#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18148_ACEOF
18149
18150
18151# Check whether --enable-largefile or --disable-largefile was given.
18152if test "${enable_largefile+set}" = set; then
18153 enableval="$enable_largefile"
18154
18155fi;
18156if test "$enable_largefile" != no; then
18157 wx_largefile=no
18158
18159 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18160echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18161if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18163else
18164
18165 cat >conftest.$ac_ext <<_ACEOF
18166/* confdefs.h. */
18167_ACEOF
18168cat confdefs.h >>conftest.$ac_ext
18169cat >>conftest.$ac_ext <<_ACEOF
18170/* end confdefs.h. */
18171#define _FILE_OFFSET_BITS 64
18172 #include <sys/types.h>
18173int
18174main ()
18175{
18176typedef struct {
18177 unsigned int field: sizeof(off_t) == 8;
18178} wxlf;
18179
18180 ;
18181 return 0;
18182}
18183_ACEOF
18184rm -f conftest.$ac_objext
18185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18186 (eval $ac_compile) 2>conftest.er1
a848cd7e 18187 ac_status=$?
ac1cb8d3
VS
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
a848cd7e
SC
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
ac1cb8d3
VS
18193 { ac_try='test -z "$ac_c_werror_flag"
18194 || test ! -s conftest.err'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 ac_cv_sys_file_offset_bits=64
18207else
18208 echo "$as_me: failed program was:" >&5
18209sed 's/^/| /' conftest.$ac_ext >&5
18210
18211ac_cv_sys_file_offset_bits=no
18212fi
ac1cb8d3 18213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18214
18215
18216fi
18217echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18218echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18219
18220 if test "$ac_cv_sys_file_offset_bits" != no; then
18221 wx_largefile=yes
18222 cat >>confdefs.h <<_ACEOF
18223#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18224_ACEOF
18225
18226 fi
18227
18228 if test "x$wx_largefile" != "xyes"; then
18229
18230 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18231echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18232if test "${ac_cv_sys_large_files+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234else
18235
18236 cat >conftest.$ac_ext <<_ACEOF
18237/* confdefs.h. */
18238_ACEOF
18239cat confdefs.h >>conftest.$ac_ext
18240cat >>conftest.$ac_ext <<_ACEOF
18241/* end confdefs.h. */
18242#define _LARGE_FILES 1
18243 #include <sys/types.h>
18244int
18245main ()
18246{
18247typedef struct {
18248 unsigned int field: sizeof(off_t) == 8;
18249} wxlf;
18250
18251 ;
18252 return 0;
18253}
18254_ACEOF
18255rm -f conftest.$ac_objext
18256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18257 (eval $ac_compile) 2>conftest.er1
a848cd7e 18258 ac_status=$?
ac1cb8d3
VS
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
a848cd7e
SC
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
ac1cb8d3
VS
18264 { ac_try='test -z "$ac_c_werror_flag"
18265 || test ! -s conftest.err'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_sys_large_files=1
18278else
18279 echo "$as_me: failed program was:" >&5
18280sed 's/^/| /' conftest.$ac_ext >&5
18281
18282ac_cv_sys_large_files=no
18283fi
ac1cb8d3 18284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18285
18286
18287fi
18288echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18289echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18290
18291 if test "$ac_cv_sys_large_files" != no; then
18292 wx_largefile=yes
18293 cat >>confdefs.h <<_ACEOF
18294#define _LARGE_FILES $ac_cv_sys_large_files
18295_ACEOF
18296
18297 fi
18298
18299 fi
18300
18301 echo "$as_me:$LINENO: checking if large file support is available" >&5
18302echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18303 if test "x$wx_largefile" = "xyes"; then
18304 cat >>confdefs.h <<\_ACEOF
18305#define HAVE_LARGEFILE_SUPPORT 1
18306_ACEOF
18307
18308 fi
18309 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18310echo "${ECHO_T}$wx_largefile" >&6
18311fi
18312
18313
18314if test "x$wx_largefile" = "xyes"; then
18315 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18316 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18317 else
18318 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18319 fi
18320 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18321fi
18322
18323echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18324echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18325if test "${ac_cv_c_bigendian+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18327else
18328 ac_cv_c_bigendian=unknown
18329# See if sys/param.h defines the BYTE_ORDER macro.
18330cat >conftest.$ac_ext <<_ACEOF
18331/* confdefs.h. */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h. */
18336#include <sys/types.h>
18337#include <sys/param.h>
18338int
18339main ()
18340{
18341
18342#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18343 bogus endian macros
18344#endif
18345 ;
18346 return 0;
18347}
18348_ACEOF
18349rm -f conftest.$ac_objext
18350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18351 (eval $ac_compile) 2>conftest.er1
a848cd7e 18352 ac_status=$?
ac1cb8d3
VS
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
a848cd7e
SC
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
ac1cb8d3
VS
18358 { ac_try='test -z "$ac_c_werror_flag"
18359 || test ! -s conftest.err'
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; } &&
18365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 # It does; now see whether it defined to BIG_ENDIAN or not.
18372cat >conftest.$ac_ext <<_ACEOF
18373/* confdefs.h. */
18374_ACEOF
18375cat confdefs.h >>conftest.$ac_ext
18376cat >>conftest.$ac_ext <<_ACEOF
18377/* end confdefs.h. */
18378#include <sys/types.h>
18379#include <sys/param.h>
18380int
18381main ()
18382{
18383
18384#if BYTE_ORDER != BIG_ENDIAN
18385 not big endian
18386#endif
18387 ;
18388 return 0;
18389}
18390_ACEOF
18391rm -f conftest.$ac_objext
18392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18393 (eval $ac_compile) 2>conftest.er1
a848cd7e 18394 ac_status=$?
ac1cb8d3
VS
18395 grep -v '^ *+' conftest.er1 >conftest.err
18396 rm -f conftest.er1
18397 cat conftest.err >&5
a848cd7e
SC
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
ac1cb8d3
VS
18400 { ac_try='test -z "$ac_c_werror_flag"
18401 || test ! -s conftest.err'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; } &&
18407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409 (eval $ac_try) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; }; then
18413 ac_cv_c_bigendian=yes
18414else
18415 echo "$as_me: failed program was:" >&5
18416sed 's/^/| /' conftest.$ac_ext >&5
18417
18418ac_cv_c_bigendian=no
18419fi
ac1cb8d3 18420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18421else
18422 echo "$as_me: failed program was:" >&5
18423sed 's/^/| /' conftest.$ac_ext >&5
18424
18425fi
ac1cb8d3 18426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18427if test $ac_cv_c_bigendian = unknown; then
18428if test "$cross_compiling" = yes; then
18429 ac_cv_c_bigendian=unknown
18430else
18431 cat >conftest.$ac_ext <<_ACEOF
18432/* confdefs.h. */
18433_ACEOF
18434cat confdefs.h >>conftest.$ac_ext
18435cat >>conftest.$ac_ext <<_ACEOF
18436/* end confdefs.h. */
18437main () {
18438 /* Are we little or big endian? From Harbison&Steele. */
18439 union
18440 {
18441 long l;
18442 char c[sizeof (long)];
18443 } u;
18444 u.l = 1;
18445 exit (u.c[sizeof (long) - 1] == 1);
18446}
18447_ACEOF
18448rm -f conftest$ac_exeext
18449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18450 (eval $ac_link) 2>&5
18451 ac_status=$?
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_cv_c_bigendian=no
18460else
18461 echo "$as_me: program exited with status $ac_status" >&5
18462echo "$as_me: failed program was:" >&5
18463sed 's/^/| /' conftest.$ac_ext >&5
18464
18465( exit $ac_status )
18466ac_cv_c_bigendian=yes
18467fi
ac1cb8d3 18468rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18469fi
18470fi
18471fi
18472echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18473echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18474if test $ac_cv_c_bigendian = unknown; then
18475 { 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
18476echo "$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;}
18477fi
18478if test $ac_cv_c_bigendian = yes; then
18479 cat >>confdefs.h <<\_ACEOF
18480#define WORDS_BIGENDIAN 1
18481_ACEOF
18482
18483fi
18484
18485
18486ac_ext=cc
18487ac_cpp='$CXXCPP $CPPFLAGS'
18488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18491echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18492echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18493if test -z "$CXXCPP"; then
18494 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18496else
18497 # Double quotes because CXXCPP needs to be expanded
18498 for CXXCPP in "$CXX -E" "/lib/cpp"
18499 do
18500 ac_preproc_ok=false
18501for ac_cxx_preproc_warn_flag in '' yes
18502do
18503 # Use a header file that comes with gcc, so configuring glibc
18504 # with a fresh cross-compiler works.
18505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18506 # <limits.h> exists even on freestanding compilers.
18507 # On the NeXT, cc -E runs the code through the compiler's parser,
18508 # not just through cpp. "Syntax error" is here to catch this case.
18509 cat >conftest.$ac_ext <<_ACEOF
18510/* confdefs.h. */
18511_ACEOF
18512cat confdefs.h >>conftest.$ac_ext
18513cat >>conftest.$ac_ext <<_ACEOF
18514/* end confdefs.h. */
18515#ifdef __STDC__
18516# include <limits.h>
18517#else
18518# include <assert.h>
18519#endif
ac1cb8d3 18520 Syntax error
a848cd7e
SC
18521_ACEOF
18522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } >/dev/null; then
18530 if test -s conftest.err; then
18531 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18532 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18533 else
18534 ac_cpp_err=
18535 fi
18536else
18537 ac_cpp_err=yes
18538fi
18539if test -z "$ac_cpp_err"; then
18540 :
18541else
18542 echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545 # Broken: fails on valid input.
18546continue
18547fi
18548rm -f conftest.err conftest.$ac_ext
18549
18550 # OK, works on sane cases. Now check whether non-existent headers
18551 # can be detected and how.
18552 cat >conftest.$ac_ext <<_ACEOF
18553/* confdefs.h. */
18554_ACEOF
18555cat confdefs.h >>conftest.$ac_ext
18556cat >>conftest.$ac_ext <<_ACEOF
18557/* end confdefs.h. */
18558#include <ac_nonexistent.h>
18559_ACEOF
18560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } >/dev/null; then
18568 if test -s conftest.err; then
18569 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18570 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18571 else
18572 ac_cpp_err=
18573 fi
18574else
18575 ac_cpp_err=yes
18576fi
18577if test -z "$ac_cpp_err"; then
18578 # Broken: success on invalid input.
18579continue
18580else
18581 echo "$as_me: failed program was:" >&5
18582sed 's/^/| /' conftest.$ac_ext >&5
18583
18584 # Passes both tests.
18585ac_preproc_ok=:
18586break
18587fi
18588rm -f conftest.err conftest.$ac_ext
18589
18590done
18591# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18592rm -f conftest.err conftest.$ac_ext
18593if $ac_preproc_ok; then
18594 break
18595fi
18596
18597 done
18598 ac_cv_prog_CXXCPP=$CXXCPP
18599
18600fi
18601 CXXCPP=$ac_cv_prog_CXXCPP
18602else
18603 ac_cv_prog_CXXCPP=$CXXCPP
18604fi
18605echo "$as_me:$LINENO: result: $CXXCPP" >&5
18606echo "${ECHO_T}$CXXCPP" >&6
18607ac_preproc_ok=false
18608for ac_cxx_preproc_warn_flag in '' yes
18609do
18610 # Use a header file that comes with gcc, so configuring glibc
18611 # with a fresh cross-compiler works.
18612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18613 # <limits.h> exists even on freestanding compilers.
18614 # On the NeXT, cc -E runs the code through the compiler's parser,
18615 # not just through cpp. "Syntax error" is here to catch this case.
18616 cat >conftest.$ac_ext <<_ACEOF
18617/* confdefs.h. */
18618_ACEOF
18619cat confdefs.h >>conftest.$ac_ext
18620cat >>conftest.$ac_ext <<_ACEOF
18621/* end confdefs.h. */
18622#ifdef __STDC__
18623# include <limits.h>
18624#else
18625# include <assert.h>
18626#endif
ac1cb8d3 18627 Syntax error
a848cd7e
SC
18628_ACEOF
18629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } >/dev/null; then
18637 if test -s conftest.err; then
18638 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18639 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18640 else
18641 ac_cpp_err=
18642 fi
18643else
18644 ac_cpp_err=yes
18645fi
18646if test -z "$ac_cpp_err"; then
18647 :
18648else
18649 echo "$as_me: failed program was:" >&5
18650sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 # Broken: fails on valid input.
18653continue
18654fi
18655rm -f conftest.err conftest.$ac_ext
18656
18657 # OK, works on sane cases. Now check whether non-existent headers
18658 # can be detected and how.
18659 cat >conftest.$ac_ext <<_ACEOF
18660/* confdefs.h. */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h. */
18665#include <ac_nonexistent.h>
18666_ACEOF
18667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18669 ac_status=$?
18670 grep -v '^ *+' conftest.er1 >conftest.err
18671 rm -f conftest.er1
18672 cat conftest.err >&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } >/dev/null; then
18675 if test -s conftest.err; then
18676 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18677 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18678 else
18679 ac_cpp_err=
18680 fi
18681else
18682 ac_cpp_err=yes
18683fi
18684if test -z "$ac_cpp_err"; then
18685 # Broken: success on invalid input.
18686continue
18687else
18688 echo "$as_me: failed program was:" >&5
18689sed 's/^/| /' conftest.$ac_ext >&5
18690
18691 # Passes both tests.
18692ac_preproc_ok=:
18693break
18694fi
18695rm -f conftest.err conftest.$ac_ext
18696
18697done
18698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18699rm -f conftest.err conftest.$ac_ext
18700if $ac_preproc_ok; then
18701 :
18702else
18703 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18704See \`config.log' for more details." >&5
18705echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18706See \`config.log' for more details." >&2;}
18707 { (exit 1); exit 1; }; }
18708fi
18709
18710ac_ext=cc
18711ac_cpp='$CXXCPP $CPPFLAGS'
18712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18715
18716
18717
18718
18719
18720 ac_ext=cc
18721ac_cpp='$CXXCPP $CPPFLAGS'
18722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18725
18726
18727
18728for ac_header in iostream
18729do
18730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18731if eval "test \"\${$as_ac_Header+set}\" = set"; then
18732 echo "$as_me:$LINENO: checking for $ac_header" >&5
18733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18734if eval "test \"\${$as_ac_Header+set}\" = set"; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18736fi
18737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18739else
18740 # Is the header compilable?
18741echo "$as_me:$LINENO: checking $ac_header usability" >&5
18742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18743cat >conftest.$ac_ext <<_ACEOF
18744/* confdefs.h. */
18745_ACEOF
18746cat confdefs.h >>conftest.$ac_ext
18747cat >>conftest.$ac_ext <<_ACEOF
18748/* end confdefs.h. */
18749$ac_includes_default
18750#include <$ac_header>
18751_ACEOF
18752rm -f conftest.$ac_objext
18753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18754 (eval $ac_compile) 2>conftest.er1
a848cd7e 18755 ac_status=$?
ac1cb8d3
VS
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
a848cd7e
SC
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
ac1cb8d3
VS
18761 { ac_try='test -z "$ac_cxx_werror_flag"
18762 || test ! -s conftest.err'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
18774 ac_header_compiler=yes
18775else
18776 echo "$as_me: failed program was:" >&5
18777sed 's/^/| /' conftest.$ac_ext >&5
18778
18779ac_header_compiler=no
18780fi
ac1cb8d3 18781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18783echo "${ECHO_T}$ac_header_compiler" >&6
18784
18785# Is the header present?
18786echo "$as_me:$LINENO: checking $ac_header presence" >&5
18787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18788cat >conftest.$ac_ext <<_ACEOF
18789/* confdefs.h. */
18790_ACEOF
18791cat confdefs.h >>conftest.$ac_ext
18792cat >>conftest.$ac_ext <<_ACEOF
18793/* end confdefs.h. */
18794#include <$ac_header>
18795_ACEOF
18796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18798 ac_status=$?
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } >/dev/null; then
18804 if test -s conftest.err; then
18805 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18806 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18807 else
18808 ac_cpp_err=
18809 fi
18810else
18811 ac_cpp_err=yes
18812fi
18813if test -z "$ac_cpp_err"; then
18814 ac_header_preproc=yes
18815else
18816 echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819 ac_header_preproc=no
18820fi
18821rm -f conftest.err conftest.$ac_ext
18822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18823echo "${ECHO_T}$ac_header_preproc" >&6
18824
18825# So? What about this header?
ac1cb8d3
VS
18826case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18827 yes:no: )
a848cd7e
SC
18828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18832 ac_header_preproc=yes
a848cd7e 18833 ;;
ac1cb8d3 18834 no:yes:* )
a848cd7e
SC
18835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18847 (
18848 cat <<\_ASBOX
ac1cb8d3
VS
18849## ----------------------------------------- ##
18850## Report this to wx-dev@lists.wxwidgets.org ##
18851## ----------------------------------------- ##
a848cd7e
SC
18852_ASBOX
18853 ) |
18854 sed "s/^/$as_me: WARNING: /" >&2
18855 ;;
18856esac
18857echo "$as_me:$LINENO: checking for $ac_header" >&5
18858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18859if eval "test \"\${$as_ac_Header+set}\" = set"; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18861else
ac1cb8d3 18862 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18863fi
18864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18866
18867fi
18868if test `eval echo '${'$as_ac_Header'}'` = yes; then
18869 cat >>confdefs.h <<_ACEOF
18870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18871_ACEOF
18872
18873fi
18874
18875done
18876
18877
18878 if test "$ac_cv_header_iostream" = "yes" ; then
18879 :
18880 else
18881 cat >>confdefs.h <<\_ACEOF
18882#define wxUSE_IOSTREAMH 1
18883_ACEOF
18884
18885 fi
18886
18887 ac_ext=c
18888ac_cpp='$CPP $CPPFLAGS'
18889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892
18893
18894
18895
18896 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18897echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18898if test "${wx_cv_cpp_bool+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900else
18901
18902
18903
18904 ac_ext=cc
18905ac_cpp='$CXXCPP $CPPFLAGS'
18906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18909
18910
18911 cat >conftest.$ac_ext <<_ACEOF
18912/* confdefs.h. */
18913_ACEOF
18914cat confdefs.h >>conftest.$ac_ext
18915cat >>conftest.$ac_ext <<_ACEOF
18916/* end confdefs.h. */
18917
18918
18919int
18920main ()
18921{
18922
18923 bool b = true;
18924
18925 return 0;
18926
18927 ;
18928 return 0;
18929}
18930_ACEOF
18931rm -f conftest.$ac_objext
18932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18933 (eval $ac_compile) 2>conftest.er1
a848cd7e 18934 ac_status=$?
ac1cb8d3
VS
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
a848cd7e
SC
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
ac1cb8d3
VS
18940 { ac_try='test -z "$ac_cxx_werror_flag"
18941 || test ! -s conftest.err'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953
18954 wx_cv_cpp_bool=yes
18955
18956else
18957 echo "$as_me: failed program was:" >&5
18958sed 's/^/| /' conftest.$ac_ext >&5
18959
18960
18961 wx_cv_cpp_bool=no
18962
18963
18964fi
ac1cb8d3 18965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18966
18967 ac_ext=c
18968ac_cpp='$CPP $CPPFLAGS'
18969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18971ac_compiler_gnu=$ac_cv_c_compiler_gnu
18972
18973
18974fi
18975echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18976echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18977
18978 if test "$wx_cv_cpp_bool" = "yes"; then
18979 cat >>confdefs.h <<\_ACEOF
18980#define HAVE_BOOL 1
18981_ACEOF
18982
18983 fi
18984
18985
18986
18987 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18988echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18989if test "${wx_cv_explicit+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18991else
18992
18993
18994
18995 ac_ext=cc
18996ac_cpp='$CXXCPP $CPPFLAGS'
18997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19000
19001
19002 cat >conftest.$ac_ext <<_ACEOF
19003/* confdefs.h. */
19004_ACEOF
19005cat confdefs.h >>conftest.$ac_ext
19006cat >>conftest.$ac_ext <<_ACEOF
19007/* end confdefs.h. */
19008
19009 class Foo { public: explicit Foo(int) {} };
19010
19011int
19012main ()
19013{
19014
19015 return 0;
19016
19017 ;
19018 return 0;
19019}
19020_ACEOF
19021rm -f conftest.$ac_objext
19022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19023 (eval $ac_compile) 2>conftest.er1
a848cd7e 19024 ac_status=$?
ac1cb8d3
VS
19025 grep -v '^ *+' conftest.er1 >conftest.err
19026 rm -f conftest.er1
19027 cat conftest.err >&5
a848cd7e
SC
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
ac1cb8d3
VS
19030 { ac_try='test -z "$ac_cxx_werror_flag"
19031 || test ! -s conftest.err'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043
19044 cat >conftest.$ac_ext <<_ACEOF
19045/* confdefs.h. */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h. */
19050
19051 class Foo { public: explicit Foo(int) {} };
19052 static void TakeFoo(const Foo& foo) { }
19053
19054int
19055main ()
19056{
19057
19058 TakeFoo(17);
19059 return 0;
19060
19061 ;
19062 return 0;
19063}
19064_ACEOF
19065rm -f conftest.$ac_objext
19066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19067 (eval $ac_compile) 2>conftest.er1
a848cd7e 19068 ac_status=$?
ac1cb8d3
VS
19069 grep -v '^ *+' conftest.er1 >conftest.err
19070 rm -f conftest.er1
19071 cat conftest.err >&5
a848cd7e
SC
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
ac1cb8d3
VS
19074 { ac_try='test -z "$ac_cxx_werror_flag"
19075 || test ! -s conftest.err'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; } &&
19081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 wx_cv_explicit=no
19088else
19089 echo "$as_me: failed program was:" >&5
19090sed 's/^/| /' conftest.$ac_ext >&5
19091
19092wx_cv_explicit=yes
19093
19094fi
ac1cb8d3 19095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19096
19097else
19098 echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
19101wx_cv_explicit=no
19102
19103fi
ac1cb8d3 19104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19105
19106 ac_ext=c
19107ac_cpp='$CPP $CPPFLAGS'
19108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19110ac_compiler_gnu=$ac_cv_c_compiler_gnu
19111
19112
19113fi
19114echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19115echo "${ECHO_T}$wx_cv_explicit" >&6
19116
19117 if test "$wx_cv_explicit" = "yes"; then
19118 cat >>confdefs.h <<\_ACEOF
19119#define HAVE_EXPLICIT 1
19120_ACEOF
19121
19122 fi
19123
19124
19125echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19126echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19127if test "${ac_cv_cxx_const_cast+set}" = set; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19129else
19130
19131
19132 ac_ext=cc
19133ac_cpp='$CXXCPP $CPPFLAGS'
19134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19137
19138 cat >conftest.$ac_ext <<_ACEOF
19139/* confdefs.h. */
19140_ACEOF
19141cat confdefs.h >>conftest.$ac_ext
19142cat >>conftest.$ac_ext <<_ACEOF
19143/* end confdefs.h. */
19144
19145int
19146main ()
19147{
19148int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19149 ;
19150 return 0;
19151}
19152_ACEOF
19153rm -f conftest.$ac_objext
19154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19155 (eval $ac_compile) 2>conftest.er1
a848cd7e 19156 ac_status=$?
ac1cb8d3
VS
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
a848cd7e
SC
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
ac1cb8d3
VS
19162 { ac_try='test -z "$ac_cxx_werror_flag"
19163 || test ! -s conftest.err'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_cxx_const_cast=yes
19176else
19177 echo "$as_me: failed program was:" >&5
19178sed 's/^/| /' conftest.$ac_ext >&5
19179
19180ac_cv_cxx_const_cast=no
19181fi
ac1cb8d3 19182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19183 ac_ext=c
19184ac_cpp='$CPP $CPPFLAGS'
19185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188
19189
19190fi
19191echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19192echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19193if test "$ac_cv_cxx_const_cast" = yes; then
19194
19195cat >>confdefs.h <<\_ACEOF
19196#define HAVE_CONST_CAST
19197_ACEOF
19198
19199fi
19200
19201echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19202echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19203if test "${ac_cv_cxx_static_cast+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19205else
19206
19207
19208 ac_ext=cc
19209ac_cpp='$CXXCPP $CPPFLAGS'
19210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19213
19214 cat >conftest.$ac_ext <<_ACEOF
19215/* confdefs.h. */
19216_ACEOF
19217cat confdefs.h >>conftest.$ac_ext
19218cat >>conftest.$ac_ext <<_ACEOF
19219/* end confdefs.h. */
19220#include <typeinfo>
19221class Base { public : Base () {} virtual void f () = 0; };
19222class Derived : public Base { public : Derived () {} virtual void f () {} };
19223int g (Derived&) { return 0; }
19224int
19225main ()
19226{
19227
19228Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19229 ;
19230 return 0;
19231}
19232_ACEOF
19233rm -f conftest.$ac_objext
19234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19235 (eval $ac_compile) 2>conftest.er1
a848cd7e 19236 ac_status=$?
ac1cb8d3
VS
19237 grep -v '^ *+' conftest.er1 >conftest.err
19238 rm -f conftest.er1
19239 cat conftest.err >&5
a848cd7e
SC
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } &&
ac1cb8d3
VS
19242 { ac_try='test -z "$ac_cxx_werror_flag"
19243 || test ! -s conftest.err'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; } &&
19249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
19255 ac_cv_cxx_static_cast=yes
19256else
19257 echo "$as_me: failed program was:" >&5
19258sed 's/^/| /' conftest.$ac_ext >&5
19259
19260ac_cv_cxx_static_cast=no
19261fi
ac1cb8d3 19262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19263 ac_ext=c
19264ac_cpp='$CPP $CPPFLAGS'
19265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267ac_compiler_gnu=$ac_cv_c_compiler_gnu
19268
19269
19270fi
19271echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19272echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19273if test "$ac_cv_cxx_static_cast" = yes; then
19274
19275cat >>confdefs.h <<\_ACEOF
19276#define HAVE_STATIC_CAST
19277_ACEOF
19278
19279fi
19280
19281
19282if test "$wxUSE_STL" = "yes"; then
19283 ac_ext=cc
19284ac_cpp='$CXXCPP $CPPFLAGS'
19285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19288
19289
19290 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19291echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19292 cat >conftest.$ac_ext <<_ACEOF
19293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
19297/* end confdefs.h. */
19298#include <string>
19299 #include <functional>
19300 #include <algorithm>
19301 #include <vector>
19302 #include <list>
19303int
19304main ()
19305{
19306std::vector<int> moo;
19307 std::list<int> foo;
19308 std::vector<int>::iterator it =
19309 std::find_if(moo.begin(), moo.end(),
19310 std::bind2nd(std::less<int>(), 3));
19311 ;
19312 return 0;
19313}
19314_ACEOF
19315rm -f conftest.$ac_objext
19316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19317 (eval $ac_compile) 2>conftest.er1
a848cd7e 19318 ac_status=$?
ac1cb8d3
VS
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
a848cd7e
SC
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
ac1cb8d3
VS
19324 { ac_try='test -z "$ac_cxx_werror_flag"
19325 || test ! -s conftest.err'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; } &&
19331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19337 echo "$as_me:$LINENO: result: yes" >&5
19338echo "${ECHO_T}yes" >&6
19339else
19340 echo "$as_me: failed program was:" >&5
19341sed 's/^/| /' conftest.$ac_ext >&5
19342
19343echo "$as_me:$LINENO: result: no" >&5
19344echo "${ECHO_T}no" >&6
19345 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19346echo "$as_me: error: Basic STL functionality missing" >&2;}
19347 { (exit 1); exit 1; }; }
19348fi
ac1cb8d3 19349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19350
19351 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19352echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19353 cat >conftest.$ac_ext <<_ACEOF
19354/* confdefs.h. */
19355_ACEOF
19356cat confdefs.h >>conftest.$ac_ext
19357cat >>conftest.$ac_ext <<_ACEOF
19358/* end confdefs.h. */
19359#include <string>
19360int
19361main ()
19362{
19363std::wstring foo;
19364 ;
19365 return 0;
19366}
19367_ACEOF
19368rm -f conftest.$ac_objext
19369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19370 (eval $ac_compile) 2>conftest.er1
a848cd7e 19371 ac_status=$?
ac1cb8d3
VS
19372 grep -v '^ *+' conftest.er1 >conftest.err
19373 rm -f conftest.er1
19374 cat conftest.err >&5
a848cd7e
SC
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
ac1cb8d3
VS
19377 { ac_try='test -z "$ac_cxx_werror_flag"
19378 || test ! -s conftest.err'
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); }; } &&
19384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 echo "$as_me:$LINENO: result: yes" >&5
19391echo "${ECHO_T}yes" >&6
19392 cat >>confdefs.h <<\_ACEOF
19393#define HAVE_STD_WSTRING 1
19394_ACEOF
19395
19396else
19397 echo "$as_me: failed program was:" >&5
19398sed 's/^/| /' conftest.$ac_ext >&5
19399
19400echo "$as_me:$LINENO: result: no" >&5
19401echo "${ECHO_T}no" >&6
19402fi
ac1cb8d3 19403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19404
19405 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19406echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19407 cat >conftest.$ac_ext <<_ACEOF
19408/* confdefs.h. */
19409_ACEOF
19410cat confdefs.h >>conftest.$ac_ext
19411cat >>conftest.$ac_ext <<_ACEOF
19412/* end confdefs.h. */
19413#include <string>
19414int
19415main ()
19416{
19417std::string foo, bar;
19418 foo.compare(bar);
19419 foo.compare(1, 1, bar);
19420 foo.compare(1, 1, bar, 1, 1);
19421 foo.compare("");
19422 foo.compare(1, 1, "");
19423 foo.compare(1, 1, "", 2);
19424 ;
19425 return 0;
19426}
19427_ACEOF
19428rm -f conftest.$ac_objext
19429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19430 (eval $ac_compile) 2>conftest.er1
a848cd7e 19431 ac_status=$?
ac1cb8d3
VS
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
a848cd7e
SC
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
ac1cb8d3
VS
19437 { ac_try='test -z "$ac_cxx_werror_flag"
19438 || test ! -s conftest.err'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; } &&
19444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19450 echo "$as_me:$LINENO: result: yes" >&5
19451echo "${ECHO_T}yes" >&6
19452 cat >>confdefs.h <<\_ACEOF
19453#define HAVE_STD_STRING_COMPARE 1
19454_ACEOF
19455
19456else
19457 echo "$as_me: failed program was:" >&5
19458sed 's/^/| /' conftest.$ac_ext >&5
19459
19460echo "$as_me:$LINENO: result: no" >&5
19461echo "${ECHO_T}no" >&6
19462fi
ac1cb8d3 19463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19464
19465 if test "${ac_cv_header_hash_map+set}" = set; then
19466 echo "$as_me:$LINENO: checking for hash_map" >&5
19467echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19468if test "${ac_cv_header_hash_map+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470fi
19471echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19472echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19473else
19474 # Is the header compilable?
19475echo "$as_me:$LINENO: checking hash_map usability" >&5
19476echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19477cat >conftest.$ac_ext <<_ACEOF
19478/* confdefs.h. */
19479_ACEOF
19480cat confdefs.h >>conftest.$ac_ext
19481cat >>conftest.$ac_ext <<_ACEOF
19482/* end confdefs.h. */
19483$ac_includes_default
19484#include <hash_map>
19485_ACEOF
19486rm -f conftest.$ac_objext
19487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19488 (eval $ac_compile) 2>conftest.er1
bdcade0a 19489 ac_status=$?
ac1cb8d3
VS
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
bdcade0a
MB
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
ac1cb8d3
VS
19495 { ac_try='test -z "$ac_cxx_werror_flag"
19496 || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_header_compiler=yes
19509else
19510 echo "$as_me: failed program was:" >&5
19511sed 's/^/| /' conftest.$ac_ext >&5
19512
19513ac_header_compiler=no
19514fi
ac1cb8d3 19515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19517echo "${ECHO_T}$ac_header_compiler" >&6
19518
19519# Is the header present?
19520echo "$as_me:$LINENO: checking hash_map presence" >&5
19521echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19522cat >conftest.$ac_ext <<_ACEOF
19523/* confdefs.h. */
19524_ACEOF
19525cat confdefs.h >>conftest.$ac_ext
19526cat >>conftest.$ac_ext <<_ACEOF
19527/* end confdefs.h. */
19528#include <hash_map>
19529_ACEOF
19530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19532 ac_status=$?
19533 grep -v '^ *+' conftest.er1 >conftest.err
19534 rm -f conftest.er1
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } >/dev/null; then
19538 if test -s conftest.err; then
19539 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19540 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19541 else
19542 ac_cpp_err=
19543 fi
19544else
19545 ac_cpp_err=yes
19546fi
19547if test -z "$ac_cpp_err"; then
19548 ac_header_preproc=yes
19549else
19550 echo "$as_me: failed program was:" >&5
19551sed 's/^/| /' conftest.$ac_ext >&5
19552
19553 ac_header_preproc=no
19554fi
19555rm -f conftest.err conftest.$ac_ext
19556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19557echo "${ECHO_T}$ac_header_preproc" >&6
19558
19559# So? What about this header?
ac1cb8d3
VS
19560case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19561 yes:no: )
bdcade0a
MB
19562 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19563echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19564 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19565echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19566 ac_header_preproc=yes
bdcade0a 19567 ;;
ac1cb8d3 19568 no:yes:* )
bdcade0a
MB
19569 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19570echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19571 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19572echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19573 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19574echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19575 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19576echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19577 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19578echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19579 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19580echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19581 (
19582 cat <<\_ASBOX
ac1cb8d3
VS
19583## ----------------------------------------- ##
19584## Report this to wx-dev@lists.wxwidgets.org ##
19585## ----------------------------------------- ##
bdcade0a
MB
19586_ASBOX
19587 ) |
19588 sed "s/^/$as_me: WARNING: /" >&2
19589 ;;
19590esac
19591echo "$as_me:$LINENO: checking for hash_map" >&5
19592echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19593if test "${ac_cv_header_hash_map+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19595else
19596 ac_cv_header_hash_map=$ac_header_preproc
19597fi
19598echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19599echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19600
19601fi
19602if test $ac_cv_header_hash_map = yes; then
19603 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19604echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19605 cat >conftest.$ac_ext <<_ACEOF
19606/* confdefs.h. */
19607_ACEOF
19608cat confdefs.h >>conftest.$ac_ext
19609cat >>conftest.$ac_ext <<_ACEOF
19610/* end confdefs.h. */
19611#include <hash_map>
19612 #include <hash_set>
19613int
19614main ()
19615{
19616std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19617 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19618 ;
19619 return 0;
19620}
19621_ACEOF
19622rm -f conftest.$ac_objext
19623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19624 (eval $ac_compile) 2>conftest.er1
bdcade0a 19625 ac_status=$?
ac1cb8d3
VS
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
bdcade0a
MB
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
ac1cb8d3
VS
19631 { ac_try='test -z "$ac_cxx_werror_flag"
19632 || test ! -s conftest.err'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 echo "$as_me:$LINENO: result: yes" >&5
19645echo "${ECHO_T}yes" >&6
19646 cat >>confdefs.h <<\_ACEOF
19647#define HAVE_HASH_MAP 1
19648_ACEOF
19649
19650 cat >>confdefs.h <<\_ACEOF
19651#define HAVE_STD_HASH_MAP 1
19652_ACEOF
19653
19654else
19655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658echo "$as_me:$LINENO: result: no" >&5
19659echo "${ECHO_T}no" >&6
19660fi
ac1cb8d3 19661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19662
19663fi
19664
19665
19666
19667 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19668 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19669echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19670if test "${ac_cv_header_ext_hash_map+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19672fi
19673echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19674echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19675else
19676 # Is the header compilable?
19677echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19678echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19679cat >conftest.$ac_ext <<_ACEOF
19680/* confdefs.h. */
19681_ACEOF
19682cat confdefs.h >>conftest.$ac_ext
19683cat >>conftest.$ac_ext <<_ACEOF
19684/* end confdefs.h. */
19685$ac_includes_default
19686#include <ext/hash_map>
19687_ACEOF
19688rm -f conftest.$ac_objext
19689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19690 (eval $ac_compile) 2>conftest.er1
bdcade0a 19691 ac_status=$?
ac1cb8d3
VS
19692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -f conftest.er1
19694 cat conftest.err >&5
bdcade0a
MB
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
ac1cb8d3
VS
19697 { ac_try='test -z "$ac_cxx_werror_flag"
19698 || test ! -s conftest.err'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 ac_header_compiler=yes
19711else
19712 echo "$as_me: failed program was:" >&5
19713sed 's/^/| /' conftest.$ac_ext >&5
19714
19715ac_header_compiler=no
19716fi
ac1cb8d3 19717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19719echo "${ECHO_T}$ac_header_compiler" >&6
19720
19721# Is the header present?
19722echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19723echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19724cat >conftest.$ac_ext <<_ACEOF
19725/* confdefs.h. */
19726_ACEOF
19727cat confdefs.h >>conftest.$ac_ext
19728cat >>conftest.$ac_ext <<_ACEOF
19729/* end confdefs.h. */
19730#include <ext/hash_map>
19731_ACEOF
19732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } >/dev/null; then
19740 if test -s conftest.err; then
19741 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19743 else
19744 ac_cpp_err=
19745 fi
19746else
19747 ac_cpp_err=yes
19748fi
19749if test -z "$ac_cpp_err"; then
19750 ac_header_preproc=yes
19751else
19752 echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 ac_header_preproc=no
19756fi
19757rm -f conftest.err conftest.$ac_ext
19758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19759echo "${ECHO_T}$ac_header_preproc" >&6
19760
19761# So? What about this header?
ac1cb8d3
VS
19762case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19763 yes:no: )
bdcade0a
MB
19764 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19765echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19766 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19767echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19768 ac_header_preproc=yes
bdcade0a 19769 ;;
ac1cb8d3 19770 no:yes:* )
bdcade0a
MB
19771 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19772echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19773 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19774echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19776echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19778echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19779 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19780echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19781 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19782echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19783 (
19784 cat <<\_ASBOX
ac1cb8d3
VS
19785## ----------------------------------------- ##
19786## Report this to wx-dev@lists.wxwidgets.org ##
19787## ----------------------------------------- ##
bdcade0a
MB
19788_ASBOX
19789 ) |
19790 sed "s/^/$as_me: WARNING: /" >&2
19791 ;;
19792esac
19793echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19794echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19795if test "${ac_cv_header_ext_hash_map+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19797else
19798 ac_cv_header_ext_hash_map=$ac_header_preproc
19799fi
19800echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19801echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19802
19803fi
19804if test $ac_cv_header_ext_hash_map = yes; then
19805 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19806echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19807 cat >conftest.$ac_ext <<_ACEOF
19808/* confdefs.h. */
19809_ACEOF
19810cat confdefs.h >>conftest.$ac_ext
19811cat >>conftest.$ac_ext <<_ACEOF
19812/* end confdefs.h. */
19813#include <ext/hash_map>
19814 #include <ext/hash_set>
19815int
19816main ()
19817{
19818__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19819 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19820 ;
19821 return 0;
19822}
19823_ACEOF
19824rm -f conftest.$ac_objext
19825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19826 (eval $ac_compile) 2>conftest.er1
bdcade0a 19827 ac_status=$?
ac1cb8d3
VS
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
bdcade0a
MB
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
ac1cb8d3
VS
19833 { ac_try='test -z "$ac_cxx_werror_flag"
19834 || test ! -s conftest.err'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19837 ac_status=$?
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; } &&
19840 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19843 ac_status=$?
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19846 echo "$as_me:$LINENO: result: yes" >&5
19847echo "${ECHO_T}yes" >&6
19848 cat >>confdefs.h <<\_ACEOF
19849#define HAVE_EXT_HASH_MAP 1
19850_ACEOF
19851
19852 cat >>confdefs.h <<\_ACEOF
19853#define HAVE_GNU_CXX_HASH_MAP 1
19854_ACEOF
19855
19856else
19857 echo "$as_me: failed program was:" >&5
19858sed 's/^/| /' conftest.$ac_ext >&5
19859
19860echo "$as_me:$LINENO: result: no" >&5
19861echo "${ECHO_T}no" >&6
19862fi
ac1cb8d3 19863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19864
19865fi
19866
19867
a848cd7e
SC
19868
19869 ac_ext=c
19870ac_cpp='$CPP $CPPFLAGS'
19871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19873ac_compiler_gnu=$ac_cv_c_compiler_gnu
19874
19875fi
19876
19877
19878SEARCH_INCLUDE="\
19879 /usr/local/include \
19880 \
19881 /usr/Motif-2.1/include \
19882 /usr/Motif-1.2/include \
19883 /usr/include/Motif1.2 \
19884 /opt/xpm/include/X11 \
19885 /opt/GBxpm/include/ \
19886 /opt/GBxpm/X11/include/ \
19887 \
19888 /usr/dt/include \
19889 /usr/openwin/include \
19890 \
19891 /usr/include/Xm \
19892 \
19893 /usr/X11R6/include \
19894 /usr/X11R6.4/include \
19895 /usr/X11R5/include \
19896 /usr/X11R4/include \
19897 \
19898 /usr/include/X11R6 \
19899 /usr/include/X11R5 \
19900 /usr/include/X11R4 \
19901 \
19902 /usr/local/X11R6/include \
19903 /usr/local/X11R5/include \
19904 /usr/local/X11R4/include \
19905 \
19906 /usr/local/include/X11R6 \
19907 /usr/local/include/X11R5 \
19908 /usr/local/include/X11R4 \
19909 \
19910 /usr/X11/include \
19911 /usr/include/X11 \
19912 /usr/local/X11/include \
19913 /usr/local/include/X11 \
19914 \
19915 /usr/X386/include \
19916 /usr/x386/include \
19917 /usr/XFree86/include/X11 \
19918 \
19919 X:/XFree86/include \
19920 X:/XFree86/include/X11 \
19921 \
19922 /usr/include/gtk \
19923 /usr/local/include/gtk \
19924 /usr/include/glib \
19925 /usr/local/include/glib \
19926 \
19927 /usr/include/qt \
19928 /usr/local/include/qt \
19929 \
19930 /usr/local/arm/3.3.2/include \
19931 \
19932 /usr/include/windows \
19933 /usr/include/wine \
19934 /usr/local/include/wine \
19935 \
19936 /usr/unsupported/include \
19937 /usr/athena/include \
19938 /usr/local/x11r5/include \
19939 /usr/lpp/Xamples/include \
19940 \
19941 /usr/openwin/share/include"
19942
19943SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19944
19945
19946cat >confcache <<\_ACEOF
19947# This file is a shell script that caches the results of configure
19948# tests run on this system so they can be shared between configure
19949# scripts and configure runs, see configure's option --config-cache.
19950# It is not useful on other systems. If it contains results you don't
19951# want to keep, you may remove or edit it.
19952#
19953# config.status only pays attention to the cache file if you give it
19954# the --recheck option to rerun configure.
19955#
19956# `ac_cv_env_foo' variables (set or unset) will be overridden when
19957# loading this file, other *unset* `ac_cv_foo' will be assigned the
19958# following values.
19959
19960_ACEOF
19961
19962# The following way of writing the cache mishandles newlines in values,
19963# but we know of no workaround that is simple, portable, and efficient.
19964# So, don't put newlines in cache variables' values.
19965# Ultrix sh set writes to stderr and can't be redirected directly,
19966# and sets the high bit in the cache file unless we assign to the vars.
19967{
19968 (set) 2>&1 |
19969 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19970 *ac_space=\ *)
19971 # `set' does not quote correctly, so add quotes (double-quote
19972 # substitution turns \\\\ into \\, and sed turns \\ into \).
19973 sed -n \
ac1cb8d3
VS
19974 "s/'/'\\\\''/g;
19975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19976 ;;
19977 *)
19978 # `set' quotes correctly as required by POSIX, so do not add quotes.
19979 sed -n \
ac1cb8d3 19980 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19981 ;;
19982 esac;
19983} |
19984 sed '
19985 t clear
19986 : clear
19987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19988 t end
19989 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19990 : end' >>confcache
19991if diff $cache_file confcache >/dev/null 2>&1; then :; else
19992 if test -w $cache_file; then
19993 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19994 cat confcache >$cache_file
19995 else
19996 echo "not updating unwritable cache $cache_file"
19997 fi
19998fi
19999rm -f confcache
20000
20001if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20002 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20003echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20004if test "${wx_cv_lib_glibc21+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006else
20007
20008 cat >conftest.$ac_ext <<_ACEOF
20009/* confdefs.h. */
20010_ACEOF
20011cat confdefs.h >>conftest.$ac_ext
20012cat >>conftest.$ac_ext <<_ACEOF
20013/* end confdefs.h. */
20014#include <features.h>
20015int
20016main ()
20017{
20018
20019 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20020 #error not glibc2.1
20021 #endif
20022
20023 ;
20024 return 0;
20025}
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20029 (eval $ac_compile) 2>conftest.er1
a848cd7e 20030 ac_status=$?
ac1cb8d3
VS
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
a848cd7e
SC
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
ac1cb8d3
VS
20036 { ac_try='test -z "$ac_c_werror_flag"
20037 || test ! -s conftest.err'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049
20050 wx_cv_lib_glibc21=yes
20051
20052else
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
20056
20057 wx_cv_lib_glibc21=no
20058
20059
20060fi
ac1cb8d3 20061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20062
20063fi
20064echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20065echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20066 if test "$wx_cv_lib_glibc21" = "yes"; then
20067 cat >>confdefs.h <<\_ACEOF
20068#define wxHAVE_GLIBC2 1
20069_ACEOF
20070
20071 fi
20072fi
20073
20074if test "x$wx_cv_lib_glibc21" = "xyes"; then
20075 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20076 cat >>confdefs.h <<\_ACEOF
20077#define _GNU_SOURCE 1
20078_ACEOF
20079
20080 fi
20081fi
20082
20083
20084
20085if test "$wxUSE_REGEX" != "no"; then
20086 cat >>confdefs.h <<\_ACEOF
20087#define wxUSE_REGEX 1
20088_ACEOF
20089
20090
20091 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20092 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20093echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20094 wxUSE_REGEX=builtin
20095 fi
20096
20097 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20098 if test "${ac_cv_header_regex_h+set}" = set; then
20099 echo "$as_me:$LINENO: checking for regex.h" >&5
20100echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20101if test "${ac_cv_header_regex_h+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103fi
20104echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20105echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20106else
20107 # Is the header compilable?
20108echo "$as_me:$LINENO: checking regex.h usability" >&5
20109echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20110cat >conftest.$ac_ext <<_ACEOF
20111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */
20116$ac_includes_default
20117#include <regex.h>
20118_ACEOF
20119rm -f conftest.$ac_objext
20120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20121 (eval $ac_compile) 2>conftest.er1
a848cd7e 20122 ac_status=$?
ac1cb8d3
VS
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
a848cd7e
SC
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
ac1cb8d3
VS
20128 { ac_try='test -z "$ac_c_werror_flag"
20129 || test ! -s conftest.err'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
20141 ac_header_compiler=yes
20142else
20143 echo "$as_me: failed program was:" >&5
20144sed 's/^/| /' conftest.$ac_ext >&5
20145
20146ac_header_compiler=no
20147fi
ac1cb8d3 20148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20150echo "${ECHO_T}$ac_header_compiler" >&6
20151
20152# Is the header present?
20153echo "$as_me:$LINENO: checking regex.h presence" >&5
20154echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20155cat >conftest.$ac_ext <<_ACEOF
20156/* confdefs.h. */
20157_ACEOF
20158cat confdefs.h >>conftest.$ac_ext
20159cat >>conftest.$ac_ext <<_ACEOF
20160/* end confdefs.h. */
20161#include <regex.h>
20162_ACEOF
20163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20165 ac_status=$?
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } >/dev/null; then
20171 if test -s conftest.err; then
20172 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20174 else
20175 ac_cpp_err=
20176 fi
20177else
20178 ac_cpp_err=yes
20179fi
20180if test -z "$ac_cpp_err"; then
20181 ac_header_preproc=yes
20182else
20183 echo "$as_me: failed program was:" >&5
20184sed 's/^/| /' conftest.$ac_ext >&5
20185
20186 ac_header_preproc=no
20187fi
20188rm -f conftest.err conftest.$ac_ext
20189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20190echo "${ECHO_T}$ac_header_preproc" >&6
20191
20192# So? What about this header?
ac1cb8d3
VS
20193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20194 yes:no: )
a848cd7e
SC
20195 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20196echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20197 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20198echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20199 ac_header_preproc=yes
a848cd7e 20200 ;;
ac1cb8d3 20201 no:yes:* )
a848cd7e
SC
20202 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20203echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20204 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20205echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20206 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20207echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20208 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20209echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20210 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20211echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20212 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20213echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20214 (
20215 cat <<\_ASBOX
ac1cb8d3
VS
20216## ----------------------------------------- ##
20217## Report this to wx-dev@lists.wxwidgets.org ##
20218## ----------------------------------------- ##
a848cd7e
SC
20219_ASBOX
20220 ) |
20221 sed "s/^/$as_me: WARNING: /" >&2
20222 ;;
20223esac
20224echo "$as_me:$LINENO: checking for regex.h" >&5
20225echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20226if test "${ac_cv_header_regex_h+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228else
20229 ac_cv_header_regex_h=$ac_header_preproc
20230fi
20231echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20232echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20233
20234fi
20235if test $ac_cv_header_regex_h = yes; then
20236
20237for ac_func in regcomp
20238do
20239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20240echo "$as_me:$LINENO: checking for $ac_func" >&5
20241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20242if eval "test \"\${$as_ac_var+set}\" = set"; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20244else
20245 cat >conftest.$ac_ext <<_ACEOF
20246/* confdefs.h. */
20247_ACEOF
20248cat confdefs.h >>conftest.$ac_ext
20249cat >>conftest.$ac_ext <<_ACEOF
20250/* end confdefs.h. */
ac1cb8d3
VS
20251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20253#define $ac_func innocuous_$ac_func
20254
a848cd7e
SC
20255/* System header to define __stub macros and hopefully few prototypes,
20256 which can conflict with char $ac_func (); below.
20257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20258 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20259
a848cd7e
SC
20260#ifdef __STDC__
20261# include <limits.h>
20262#else
20263# include <assert.h>
20264#endif
ac1cb8d3
VS
20265
20266#undef $ac_func
20267
a848cd7e
SC
20268/* Override any gcc2 internal prototype to avoid an error. */
20269#ifdef __cplusplus
20270extern "C"
20271{
20272#endif
20273/* We use char because int might match the return type of a gcc2
20274 builtin and then its argument prototype would still apply. */
20275char $ac_func ();
20276/* The GNU C library defines this for functions which it implements
20277 to always fail with ENOSYS. Some functions are actually named
20278 something starting with __ and the normal name is an alias. */
20279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20280choke me
20281#else
20282char (*f) () = $ac_func;
20283#endif
20284#ifdef __cplusplus
20285}
20286#endif
20287
20288int
20289main ()
20290{
20291return f != $ac_func;
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext conftest$ac_exeext
20297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20298 (eval $ac_link) 2>conftest.er1
a848cd7e 20299 ac_status=$?
ac1cb8d3
VS
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
a848cd7e
SC
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
ac1cb8d3
VS
20305 { ac_try='test -z "$ac_c_werror_flag"
20306 || test ! -s conftest.err'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 eval "$as_ac_var=yes"
20319else
20320 echo "$as_me: failed program was:" >&5
20321sed 's/^/| /' conftest.$ac_ext >&5
20322
20323eval "$as_ac_var=no"
20324fi
ac1cb8d3
VS
20325rm -f conftest.err conftest.$ac_objext \
20326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20327fi
20328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20330if test `eval echo '${'$as_ac_var'}'` = yes; then
20331 cat >>confdefs.h <<_ACEOF
20332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20333_ACEOF
20334
20335fi
20336done
20337
20338fi
20339
20340
20341
20342 if test "x$ac_cv_func_regcomp" != "xyes"; then
20343 if test "$wxUSE_REGEX" = "sys" ; then
20344 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20345echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20346 { (exit 1); exit 1; }; }
20347 else
20348 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20349echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20350 wxUSE_REGEX=builtin
20351 fi
20352 else
20353 wxUSE_REGEX=sys
20354 cat >>confdefs.h <<\_ACEOF
20355#define WX_NO_REGEX_ADVANCED 1
20356_ACEOF
20357
20358 fi
20359 fi
20360fi
20361
20362
20363ZLIB_LINK=
20364if test "$wxUSE_ZLIB" != "no" ; then
20365 cat >>confdefs.h <<\_ACEOF
20366#define wxUSE_ZLIB 1
20367_ACEOF
20368
20369
20370 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20371 if test "$USE_DARWIN" = 1; then
20372 system_zlib_h_ok="yes"
20373 else
20374 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20375echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20376if test "${ac_cv_header_zlib_h+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20378else
20379 if test "$cross_compiling" = yes; then
20380 unset ac_cv_header_zlib_h
20381
20382else
20383 cat >conftest.$ac_ext <<_ACEOF
20384/* confdefs.h. */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h. */
20389
20390 #include <zlib.h>
20391 #include <stdio.h>
20392
20393 int main()
20394 {
20395 FILE *f=fopen("conftestval", "w");
20396 if (!f) exit(1);
20397 fprintf(f, "%s",
20398 ZLIB_VERSION[0] == '1' &&
20399 (ZLIB_VERSION[2] > '1' ||
20400 (ZLIB_VERSION[2] == '1' &&
20401 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20402 exit(0);
20403 }
20404
20405_ACEOF
20406rm -f conftest$ac_exeext
20407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20408 (eval $ac_link) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20414 ac_status=$?
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_header_zlib_h=`cat conftestval`
20418else
20419 echo "$as_me: program exited with status $ac_status" >&5
20420echo "$as_me: failed program was:" >&5
20421sed 's/^/| /' conftest.$ac_ext >&5
20422
20423( exit $ac_status )
20424ac_cv_header_zlib_h=no
20425fi
ac1cb8d3 20426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20427fi
20428
20429fi
20430echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20431echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20432 if test "${ac_cv_header_zlib_h+set}" = set; then
20433 echo "$as_me:$LINENO: checking for zlib.h" >&5
20434echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20435if test "${ac_cv_header_zlib_h+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437fi
20438echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20439echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20440else
20441 # Is the header compilable?
20442echo "$as_me:$LINENO: checking zlib.h usability" >&5
20443echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20444cat >conftest.$ac_ext <<_ACEOF
20445/* confdefs.h. */
20446_ACEOF
20447cat confdefs.h >>conftest.$ac_ext
20448cat >>conftest.$ac_ext <<_ACEOF
20449/* end confdefs.h. */
20450$ac_includes_default
20451#include <zlib.h>
20452_ACEOF
20453rm -f conftest.$ac_objext
20454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20455 (eval $ac_compile) 2>conftest.er1
a848cd7e 20456 ac_status=$?
ac1cb8d3
VS
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
a848cd7e
SC
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } &&
ac1cb8d3
VS
20462 { ac_try='test -z "$ac_c_werror_flag"
20463 || test ! -s conftest.err'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_header_compiler=yes
20476else
20477 echo "$as_me: failed program was:" >&5
20478sed 's/^/| /' conftest.$ac_ext >&5
20479
20480ac_header_compiler=no
20481fi
ac1cb8d3 20482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20484echo "${ECHO_T}$ac_header_compiler" >&6
20485
20486# Is the header present?
20487echo "$as_me:$LINENO: checking zlib.h presence" >&5
20488echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20489cat >conftest.$ac_ext <<_ACEOF
20490/* confdefs.h. */
20491_ACEOF
20492cat confdefs.h >>conftest.$ac_ext
20493cat >>conftest.$ac_ext <<_ACEOF
20494/* end confdefs.h. */
20495#include <zlib.h>
20496_ACEOF
20497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } >/dev/null; then
20505 if test -s conftest.err; then
20506 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20508 else
20509 ac_cpp_err=
20510 fi
20511else
20512 ac_cpp_err=yes
20513fi
20514if test -z "$ac_cpp_err"; then
20515 ac_header_preproc=yes
20516else
20517 echo "$as_me: failed program was:" >&5
20518sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 ac_header_preproc=no
20521fi
20522rm -f conftest.err conftest.$ac_ext
20523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20524echo "${ECHO_T}$ac_header_preproc" >&6
20525
20526# So? What about this header?
ac1cb8d3
VS
20527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20528 yes:no: )
a848cd7e
SC
20529 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20530echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20531 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20532echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20533 ac_header_preproc=yes
a848cd7e 20534 ;;
ac1cb8d3 20535 no:yes:* )
a848cd7e
SC
20536 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20537echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20538 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20539echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20541echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20543echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20544 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20545echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20546 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20547echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20548 (
20549 cat <<\_ASBOX
ac1cb8d3
VS
20550## ----------------------------------------- ##
20551## Report this to wx-dev@lists.wxwidgets.org ##
20552## ----------------------------------------- ##
a848cd7e
SC
20553_ASBOX
20554 ) |
20555 sed "s/^/$as_me: WARNING: /" >&2
20556 ;;
20557esac
20558echo "$as_me:$LINENO: checking for zlib.h" >&5
20559echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20560if test "${ac_cv_header_zlib_h+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562else
20563 ac_cv_header_zlib_h=$ac_header_preproc
20564fi
20565echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20566echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20567
20568fi
20569
20570
20571
20572 system_zlib_h_ok=$ac_cv_header_zlib_h
20573 fi
20574
20575 if test "$system_zlib_h_ok" = "yes"; then
20576 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20577echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20578if test "${ac_cv_lib_z_deflate+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580else
20581 ac_check_lib_save_LIBS=$LIBS
20582LIBS="-lz $LIBS"
20583cat >conftest.$ac_ext <<_ACEOF
20584/* confdefs.h. */
20585_ACEOF
20586cat confdefs.h >>conftest.$ac_ext
20587cat >>conftest.$ac_ext <<_ACEOF
20588/* end confdefs.h. */
20589
20590/* Override any gcc2 internal prototype to avoid an error. */
20591#ifdef __cplusplus
20592extern "C"
20593#endif
20594/* We use char because int might match the return type of a gcc2
20595 builtin and then its argument prototype would still apply. */
20596char deflate ();
20597int
20598main ()
20599{
20600deflate ();
20601 ;
20602 return 0;
20603}
20604_ACEOF
20605rm -f conftest.$ac_objext conftest$ac_exeext
20606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20607 (eval $ac_link) 2>conftest.er1
a848cd7e 20608 ac_status=$?
ac1cb8d3
VS
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
a848cd7e
SC
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
ac1cb8d3
VS
20614 { ac_try='test -z "$ac_c_werror_flag"
20615 || test ! -s conftest.err'
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; } &&
20621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
20627 ac_cv_lib_z_deflate=yes
20628else
20629 echo "$as_me: failed program was:" >&5
20630sed 's/^/| /' conftest.$ac_ext >&5
20631
20632ac_cv_lib_z_deflate=no
20633fi
ac1cb8d3
VS
20634rm -f conftest.err conftest.$ac_objext \
20635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20636LIBS=$ac_check_lib_save_LIBS
20637fi
20638echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20639echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20640if test $ac_cv_lib_z_deflate = yes; then
20641 ZLIB_LINK=" -lz"
20642fi
20643
20644 fi
20645
20646 if test "x$ZLIB_LINK" = "x" ; then
20647 if test "$wxUSE_ZLIB" = "sys" ; then
20648 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20649echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20650 { (exit 1); exit 1; }; }
20651 else
20652 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20653echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20654 wxUSE_ZLIB=builtin
20655 fi
20656 else
20657 wxUSE_ZLIB=sys
20658 fi
20659 fi
20660fi
20661
20662
20663PNG_LINK=
20664if test "$wxUSE_LIBPNG" != "no" ; then
20665 cat >>confdefs.h <<\_ACEOF
20666#define wxUSE_LIBPNG 1
20667_ACEOF
20668
20669
20670 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20671 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20672echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20673 wxUSE_LIBPNG=sys
20674 fi
20675
20676 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20677 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20678echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20679 wxUSE_LIBPNG=builtin
20680 fi
20681
20682 if test "$wxUSE_MGL" != 1 ; then
20683 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20684 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20685echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20686if test "${ac_cv_header_png_h+set}" = set; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20688else
20689 if test "$cross_compiling" = yes; then
20690 unset ac_cv_header_png_h
20691
20692else
20693 cat >conftest.$ac_ext <<_ACEOF
20694/* confdefs.h. */
20695_ACEOF
20696cat confdefs.h >>conftest.$ac_ext
20697cat >>conftest.$ac_ext <<_ACEOF
20698/* end confdefs.h. */
20699
20700 #include <png.h>
20701 #include <stdio.h>
20702
20703 int main()
20704 {
20705 FILE *f=fopen("conftestval", "w");
20706 if (!f) exit(1);
20707 fprintf(f, "%s",
20708 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20709 exit(0);
20710 }
20711
20712_ACEOF
20713rm -f conftest$ac_exeext
20714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20715 (eval $ac_link) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_header_png_h=`cat conftestval`
20725else
20726 echo "$as_me: program exited with status $ac_status" >&5
20727echo "$as_me: failed program was:" >&5
20728sed 's/^/| /' conftest.$ac_ext >&5
20729
20730( exit $ac_status )
20731ac_cv_header_png_h=no
20732fi
ac1cb8d3 20733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20734fi
20735
20736fi
20737echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20738echo "${ECHO_T}$ac_cv_header_png_h" >&6
20739 if test "${ac_cv_header_png_h+set}" = set; then
20740 echo "$as_me:$LINENO: checking for png.h" >&5
20741echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20742if test "${ac_cv_header_png_h+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744fi
20745echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20746echo "${ECHO_T}$ac_cv_header_png_h" >&6
20747else
20748 # Is the header compilable?
20749echo "$as_me:$LINENO: checking png.h usability" >&5
20750echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20751cat >conftest.$ac_ext <<_ACEOF
20752/* confdefs.h. */
20753_ACEOF
20754cat confdefs.h >>conftest.$ac_ext
20755cat >>conftest.$ac_ext <<_ACEOF
20756/* end confdefs.h. */
20757$ac_includes_default
20758#include <png.h>
20759_ACEOF
20760rm -f conftest.$ac_objext
20761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20762 (eval $ac_compile) 2>conftest.er1
a848cd7e 20763 ac_status=$?
ac1cb8d3
VS
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
a848cd7e
SC
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
ac1cb8d3
VS
20769 { ac_try='test -z "$ac_c_werror_flag"
20770 || test ! -s conftest.err'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_header_compiler=yes
20783else
20784 echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787ac_header_compiler=no
20788fi
ac1cb8d3 20789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20791echo "${ECHO_T}$ac_header_compiler" >&6
20792
20793# Is the header present?
20794echo "$as_me:$LINENO: checking png.h presence" >&5
20795echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20796cat >conftest.$ac_ext <<_ACEOF
20797/* confdefs.h. */
20798_ACEOF
20799cat confdefs.h >>conftest.$ac_ext
20800cat >>conftest.$ac_ext <<_ACEOF
20801/* end confdefs.h. */
20802#include <png.h>
20803_ACEOF
20804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20806 ac_status=$?
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } >/dev/null; then
20812 if test -s conftest.err; then
20813 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20815 else
20816 ac_cpp_err=
20817 fi
20818else
20819 ac_cpp_err=yes
20820fi
20821if test -z "$ac_cpp_err"; then
20822 ac_header_preproc=yes
20823else
20824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 ac_header_preproc=no
20828fi
20829rm -f conftest.err conftest.$ac_ext
20830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20831echo "${ECHO_T}$ac_header_preproc" >&6
20832
20833# So? What about this header?
ac1cb8d3
VS
20834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20835 yes:no: )
a848cd7e
SC
20836 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20837echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20838 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20839echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20840 ac_header_preproc=yes
a848cd7e 20841 ;;
ac1cb8d3 20842 no:yes:* )
a848cd7e
SC
20843 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20844echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20845 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20846echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20847 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20848echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20849 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20850echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20851 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20852echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20853 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20854echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20855 (
20856 cat <<\_ASBOX
ac1cb8d3
VS
20857## ----------------------------------------- ##
20858## Report this to wx-dev@lists.wxwidgets.org ##
20859## ----------------------------------------- ##
a848cd7e
SC
20860_ASBOX
20861 ) |
20862 sed "s/^/$as_me: WARNING: /" >&2
20863 ;;
20864esac
20865echo "$as_me:$LINENO: checking for png.h" >&5
20866echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20867if test "${ac_cv_header_png_h+set}" = set; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20869else
20870 ac_cv_header_png_h=$ac_header_preproc
20871fi
20872echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20873echo "${ECHO_T}$ac_cv_header_png_h" >&6
20874
20875fi
20876
20877
20878
20879 if test "$ac_cv_header_png_h" = "yes"; then
20880 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20881echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20882if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20884else
20885 ac_check_lib_save_LIBS=$LIBS
20886LIBS="-lpng -lz -lm $LIBS"
20887cat >conftest.$ac_ext <<_ACEOF
20888/* confdefs.h. */
20889_ACEOF
20890cat confdefs.h >>conftest.$ac_ext
20891cat >>conftest.$ac_ext <<_ACEOF
20892/* end confdefs.h. */
20893
20894/* Override any gcc2 internal prototype to avoid an error. */
20895#ifdef __cplusplus
20896extern "C"
20897#endif
20898/* We use char because int might match the return type of a gcc2
20899 builtin and then its argument prototype would still apply. */
20900char png_check_sig ();
20901int
20902main ()
20903{
20904png_check_sig ();
20905 ;
20906 return 0;
20907}
20908_ACEOF
20909rm -f conftest.$ac_objext conftest$ac_exeext
20910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20911 (eval $ac_link) 2>conftest.er1
a848cd7e 20912 ac_status=$?
ac1cb8d3
VS
20913 grep -v '^ *+' conftest.er1 >conftest.err
20914 rm -f conftest.er1
20915 cat conftest.err >&5
a848cd7e
SC
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
ac1cb8d3
VS
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 ac_cv_lib_png_png_check_sig=yes
20932else
20933 echo "$as_me: failed program was:" >&5
20934sed 's/^/| /' conftest.$ac_ext >&5
20935
20936ac_cv_lib_png_png_check_sig=no
20937fi
ac1cb8d3
VS
20938rm -f conftest.err conftest.$ac_objext \
20939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20940LIBS=$ac_check_lib_save_LIBS
20941fi
20942echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20943echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20944if test $ac_cv_lib_png_png_check_sig = yes; then
20945 PNG_LINK=" -lpng -lz"
20946fi
20947
20948 fi
20949
20950 if test "x$PNG_LINK" = "x" ; then
20951 if test "$wxUSE_LIBPNG" = "sys" ; then
20952 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20953echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20954 { (exit 1); exit 1; }; }
20955 else
20956 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20957echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20958 wxUSE_LIBPNG=builtin
20959 fi
20960 else
20961 wxUSE_LIBPNG=sys
20962 fi
20963 fi
20964 fi
20965
20966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20967fi
20968
20969
20970JPEG_LINK=
20971if test "$wxUSE_LIBJPEG" != "no" ; then
20972 cat >>confdefs.h <<\_ACEOF
20973#define wxUSE_LIBJPEG 1
20974_ACEOF
20975
20976
20977 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20978 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20979echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20980 wxUSE_LIBJPEG=sys
20981 fi
20982
20983 if test "$wxUSE_MGL" != 1 ; then
20984 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20985 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20986echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20987 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20989else
20990 cat >conftest.$ac_ext <<_ACEOF
20991/* confdefs.h. */
20992_ACEOF
20993cat confdefs.h >>conftest.$ac_ext
20994cat >>conftest.$ac_ext <<_ACEOF
20995/* end confdefs.h. */
20996
20997 #undef HAVE_STDLIB_H
20998 #include <stdio.h>
20999 #include <jpeglib.h>
21000
21001int
21002main ()
21003{
21004
21005
21006 ;
21007 return 0;
21008}
21009_ACEOF
21010rm -f conftest.$ac_objext
21011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21012 (eval $ac_compile) 2>conftest.er1
a848cd7e 21013 ac_status=$?
ac1cb8d3
VS
21014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
a848cd7e
SC
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
ac1cb8d3
VS
21019 { ac_try='test -z "$ac_c_werror_flag"
21020 || test ! -s conftest.err'
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21023 ac_status=$?
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; } &&
21026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21028 (eval $ac_try) 2>&5
21029 ac_status=$?
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; }; then
21032 ac_cv_header_jpeglib_h=yes
21033else
21034 echo "$as_me: failed program was:" >&5
21035sed 's/^/| /' conftest.$ac_ext >&5
21036
21037ac_cv_header_jpeglib_h=no
21038
21039fi
ac1cb8d3 21040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21041
21042fi
21043
21044 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21045echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21046
21047 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21048 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21049echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21050if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21052else
21053 ac_check_lib_save_LIBS=$LIBS
21054LIBS="-ljpeg $LIBS"
21055cat >conftest.$ac_ext <<_ACEOF
21056/* confdefs.h. */
21057_ACEOF
21058cat confdefs.h >>conftest.$ac_ext
21059cat >>conftest.$ac_ext <<_ACEOF
21060/* end confdefs.h. */
21061
21062/* Override any gcc2 internal prototype to avoid an error. */
21063#ifdef __cplusplus
21064extern "C"
21065#endif
21066/* We use char because int might match the return type of a gcc2
21067 builtin and then its argument prototype would still apply. */
21068char jpeg_read_header ();
21069int
21070main ()
21071{
21072jpeg_read_header ();
21073 ;
21074 return 0;
21075}
21076_ACEOF
21077rm -f conftest.$ac_objext conftest$ac_exeext
21078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21079 (eval $ac_link) 2>conftest.er1
a848cd7e 21080 ac_status=$?
ac1cb8d3
VS
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
a848cd7e
SC
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } &&
ac1cb8d3
VS
21086 { ac_try='test -z "$ac_c_werror_flag"
21087 || test ! -s conftest.err'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; } &&
21093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
21099 ac_cv_lib_jpeg_jpeg_read_header=yes
21100else
21101 echo "$as_me: failed program was:" >&5
21102sed 's/^/| /' conftest.$ac_ext >&5
21103
21104ac_cv_lib_jpeg_jpeg_read_header=no
21105fi
ac1cb8d3
VS
21106rm -f conftest.err conftest.$ac_objext \
21107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21108LIBS=$ac_check_lib_save_LIBS
21109fi
21110echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21111echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21112if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21113 JPEG_LINK=" -ljpeg"
21114fi
21115
21116 fi
21117
21118 if test "x$JPEG_LINK" = "x" ; then
21119 if test "$wxUSE_LIBJPEG" = "sys" ; then
21120 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21121echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21122 { (exit 1); exit 1; }; }
21123 else
21124 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21125echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21126 wxUSE_LIBJPEG=builtin
21127 fi
21128 else
21129 wxUSE_LIBJPEG=sys
21130 fi
21131 fi
21132 fi
21133fi
21134
21135
21136TIFF_LINK=
21137TIFF_PREREQ_LINKS=-lm
21138if test "$wxUSE_LIBTIFF" != "no" ; then
21139 cat >>confdefs.h <<\_ACEOF
21140#define wxUSE_LIBTIFF 1
21141_ACEOF
21142
21143
21144 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21145 if test "$wxUSE_LIBJPEG" = "sys"; then
21146 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21147 fi
21148 if test "$wxUSE_ZLIB" = "sys"; then
21149 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21150 fi
21151 if test "${ac_cv_header_tiffio_h+set}" = set; then
21152 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21153echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21154if test "${ac_cv_header_tiffio_h+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21156fi
21157echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21158echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21159else
21160 # Is the header compilable?
21161echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21162echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21163cat >conftest.$ac_ext <<_ACEOF
21164/* confdefs.h. */
21165_ACEOF
21166cat confdefs.h >>conftest.$ac_ext
21167cat >>conftest.$ac_ext <<_ACEOF
21168/* end confdefs.h. */
21169$ac_includes_default
21170#include <tiffio.h>
21171_ACEOF
21172rm -f conftest.$ac_objext
21173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21174 (eval $ac_compile) 2>conftest.er1
a848cd7e 21175 ac_status=$?
ac1cb8d3
VS
21176 grep -v '^ *+' conftest.er1 >conftest.err
21177 rm -f conftest.er1
21178 cat conftest.err >&5
a848cd7e
SC
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } &&
ac1cb8d3
VS
21181 { ac_try='test -z "$ac_c_werror_flag"
21182 || test ! -s conftest.err'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } &&
21188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21194 ac_header_compiler=yes
21195else
21196 echo "$as_me: failed program was:" >&5
21197sed 's/^/| /' conftest.$ac_ext >&5
21198
21199ac_header_compiler=no
21200fi
ac1cb8d3 21201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21202echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21203echo "${ECHO_T}$ac_header_compiler" >&6
21204
21205# Is the header present?
21206echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21207echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21208cat >conftest.$ac_ext <<_ACEOF
21209/* confdefs.h. */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
21213/* end confdefs.h. */
21214#include <tiffio.h>
21215_ACEOF
21216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21218 ac_status=$?
21219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } >/dev/null; then
21224 if test -s conftest.err; then
21225 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21227 else
21228 ac_cpp_err=
21229 fi
21230else
21231 ac_cpp_err=yes
21232fi
21233if test -z "$ac_cpp_err"; then
21234 ac_header_preproc=yes
21235else
21236 echo "$as_me: failed program was:" >&5
21237sed 's/^/| /' conftest.$ac_ext >&5
21238
21239 ac_header_preproc=no
21240fi
21241rm -f conftest.err conftest.$ac_ext
21242echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21243echo "${ECHO_T}$ac_header_preproc" >&6
21244
21245# So? What about this header?
ac1cb8d3
VS
21246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21247 yes:no: )
a848cd7e
SC
21248 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21249echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21250 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21251echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21252 ac_header_preproc=yes
a848cd7e 21253 ;;
ac1cb8d3 21254 no:yes:* )
a848cd7e
SC
21255 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21256echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21257 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21258echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21259 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21260echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21261 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21262echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21263 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21264echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21265 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21266echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21267 (
21268 cat <<\_ASBOX
ac1cb8d3
VS
21269## ----------------------------------------- ##
21270## Report this to wx-dev@lists.wxwidgets.org ##
21271## ----------------------------------------- ##
a848cd7e
SC
21272_ASBOX
21273 ) |
21274 sed "s/^/$as_me: WARNING: /" >&2
21275 ;;
21276esac
21277echo "$as_me:$LINENO: checking for tiffio.h" >&5
21278echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21279if test "${ac_cv_header_tiffio_h+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21281else
21282 ac_cv_header_tiffio_h=$ac_header_preproc
21283fi
21284echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21285echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21286
21287fi
21288if test $ac_cv_header_tiffio_h = yes; then
21289
21290 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21291echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21292if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
21294else
21295 ac_check_lib_save_LIBS=$LIBS
21296LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21297cat >conftest.$ac_ext <<_ACEOF
21298/* confdefs.h. */
21299_ACEOF
21300cat confdefs.h >>conftest.$ac_ext
21301cat >>conftest.$ac_ext <<_ACEOF
21302/* end confdefs.h. */
21303
21304/* Override any gcc2 internal prototype to avoid an error. */
21305#ifdef __cplusplus
21306extern "C"
21307#endif
21308/* We use char because int might match the return type of a gcc2
21309 builtin and then its argument prototype would still apply. */
21310char TIFFError ();
21311int
21312main ()
21313{
21314TIFFError ();
21315 ;
21316 return 0;
21317}
21318_ACEOF
21319rm -f conftest.$ac_objext conftest$ac_exeext
21320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21321 (eval $ac_link) 2>conftest.er1
a848cd7e 21322 ac_status=$?
ac1cb8d3
VS
21323 grep -v '^ *+' conftest.er1 >conftest.err
21324 rm -f conftest.er1
21325 cat conftest.err >&5
a848cd7e
SC
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } &&
ac1cb8d3
VS
21328 { ac_try='test -z "$ac_c_werror_flag"
21329 || test ! -s conftest.err'
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; } &&
21335 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; }; then
21341 ac_cv_lib_tiff_TIFFError=yes
21342else
21343 echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
21346ac_cv_lib_tiff_TIFFError=no
21347fi
ac1cb8d3
VS
21348rm -f conftest.err conftest.$ac_objext \
21349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21350LIBS=$ac_check_lib_save_LIBS
21351fi
21352echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21353echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21354if test $ac_cv_lib_tiff_TIFFError = yes; then
21355 TIFF_LINK=" -ltiff"
21356fi
21357
21358
21359
21360fi
21361
21362
21363
21364 if test "x$TIFF_LINK" = "x" ; then
21365 if test "$wxUSE_LIBTIFF" = "sys" ; then
21366 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21367echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21368 { (exit 1); exit 1; }; }
21369 else
21370 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21371echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21372 wxUSE_LIBTIFF=builtin
21373 fi
21374 else
21375 wxUSE_LIBTIFF=sys
21376 fi
21377 fi
21378fi
21379
21380
21381if test "$wxUSE_EXPAT" != "no"; then
21382 wxUSE_XML=yes
21383 cat >>confdefs.h <<\_ACEOF
21384#define wxUSE_EXPAT 1
21385_ACEOF
21386
21387 cat >>confdefs.h <<\_ACEOF
21388#define wxUSE_XML 1
21389_ACEOF
21390
21391
21392 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21393 if test "${ac_cv_header_expat_h+set}" = set; then
21394 echo "$as_me:$LINENO: checking for expat.h" >&5
21395echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21396if test "${ac_cv_header_expat_h+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21398fi
21399echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21400echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21401else
21402 # Is the header compilable?
21403echo "$as_me:$LINENO: checking expat.h usability" >&5
21404echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21405cat >conftest.$ac_ext <<_ACEOF
21406/* confdefs.h. */
21407_ACEOF
21408cat confdefs.h >>conftest.$ac_ext
21409cat >>conftest.$ac_ext <<_ACEOF
21410/* end confdefs.h. */
21411$ac_includes_default
21412#include <expat.h>
21413_ACEOF
21414rm -f conftest.$ac_objext
21415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21416 (eval $ac_compile) 2>conftest.er1
a848cd7e 21417 ac_status=$?
ac1cb8d3
VS
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
a848cd7e
SC
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
ac1cb8d3
VS
21423 { ac_try='test -z "$ac_c_werror_flag"
21424 || test ! -s conftest.err'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_header_compiler=yes
21437else
21438 echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441ac_header_compiler=no
21442fi
ac1cb8d3 21443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21445echo "${ECHO_T}$ac_header_compiler" >&6
21446
21447# Is the header present?
21448echo "$as_me:$LINENO: checking expat.h presence" >&5
21449echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21450cat >conftest.$ac_ext <<_ACEOF
21451/* confdefs.h. */
21452_ACEOF
21453cat confdefs.h >>conftest.$ac_ext
21454cat >>conftest.$ac_ext <<_ACEOF
21455/* end confdefs.h. */
21456#include <expat.h>
21457_ACEOF
21458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21460 ac_status=$?
21461 grep -v '^ *+' conftest.er1 >conftest.err
21462 rm -f conftest.er1
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } >/dev/null; then
21466 if test -s conftest.err; then
21467 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21469 else
21470 ac_cpp_err=
21471 fi
21472else
21473 ac_cpp_err=yes
21474fi
21475if test -z "$ac_cpp_err"; then
21476 ac_header_preproc=yes
21477else
21478 echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
21480
21481 ac_header_preproc=no
21482fi
21483rm -f conftest.err conftest.$ac_ext
21484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21485echo "${ECHO_T}$ac_header_preproc" >&6
21486
21487# So? What about this header?
ac1cb8d3
VS
21488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21489 yes:no: )
a848cd7e
SC
21490 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21491echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21492 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21493echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21494 ac_header_preproc=yes
a848cd7e 21495 ;;
ac1cb8d3 21496 no:yes:* )
a848cd7e
SC
21497 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21498echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21499 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21500echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21502echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21504echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21505 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21506echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21507 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21508echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21509 (
21510 cat <<\_ASBOX
ac1cb8d3
VS
21511## ----------------------------------------- ##
21512## Report this to wx-dev@lists.wxwidgets.org ##
21513## ----------------------------------------- ##
a848cd7e
SC
21514_ASBOX
21515 ) |
21516 sed "s/^/$as_me: WARNING: /" >&2
21517 ;;
21518esac
21519echo "$as_me:$LINENO: checking for expat.h" >&5
21520echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21521if test "${ac_cv_header_expat_h+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523else
21524 ac_cv_header_expat_h=$ac_header_preproc
21525fi
21526echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21527echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21528
21529fi
21530if test $ac_cv_header_expat_h = yes; then
21531 found_expat_h=1
21532fi
21533
21534
21535 if test "x$found_expat_h" = "x1"; then
21536 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21537echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21538if test "${wx_cv_expat_is_not_broken+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540else
21541
21542
21543
21544 ac_ext=cc
21545ac_cpp='$CXXCPP $CPPFLAGS'
21546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21549
21550 cat >conftest.$ac_ext <<_ACEOF
21551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
21556#include <expat.h>
21557int
21558main ()
21559{
21560
21561 ;
21562 return 0;
21563}
21564_ACEOF
21565rm -f conftest.$ac_objext
21566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21567 (eval $ac_compile) 2>conftest.er1
a848cd7e 21568 ac_status=$?
ac1cb8d3
VS
21569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
a848cd7e
SC
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
ac1cb8d3
VS
21574 { ac_try='test -z "$ac_cxx_werror_flag"
21575 || test ! -s conftest.err'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 wx_cv_expat_is_not_broken=yes
21588else
21589 echo "$as_me: failed program was:" >&5
21590sed 's/^/| /' conftest.$ac_ext >&5
21591
21592wx_cv_expat_is_not_broken=no
21593
21594fi
ac1cb8d3 21595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21596 ac_ext=c
21597ac_cpp='$CPP $CPPFLAGS'
21598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21600ac_compiler_gnu=$ac_cv_c_compiler_gnu
21601
21602
21603
21604fi
21605echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21606echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21607 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21608 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21609echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21610if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21612else
21613 ac_check_lib_save_LIBS=$LIBS
21614LIBS="-lexpat $LIBS"
21615cat >conftest.$ac_ext <<_ACEOF
21616/* confdefs.h. */
21617_ACEOF
21618cat confdefs.h >>conftest.$ac_ext
21619cat >>conftest.$ac_ext <<_ACEOF
21620/* end confdefs.h. */
21621
21622/* Override any gcc2 internal prototype to avoid an error. */
21623#ifdef __cplusplus
21624extern "C"
21625#endif
21626/* We use char because int might match the return type of a gcc2
21627 builtin and then its argument prototype would still apply. */
21628char XML_ParserCreate ();
21629int
21630main ()
21631{
21632XML_ParserCreate ();
21633 ;
21634 return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext conftest$ac_exeext
21638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21639 (eval $ac_link) 2>conftest.er1
a848cd7e 21640 ac_status=$?
ac1cb8d3
VS
21641 grep -v '^ *+' conftest.er1 >conftest.err
21642 rm -f conftest.er1
21643 cat conftest.err >&5
a848cd7e
SC
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
ac1cb8d3
VS
21646 { ac_try='test -z "$ac_c_werror_flag"
21647 || test ! -s conftest.err'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; } &&
21653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; }; then
21659 ac_cv_lib_expat_XML_ParserCreate=yes
21660else
21661 echo "$as_me: failed program was:" >&5
21662sed 's/^/| /' conftest.$ac_ext >&5
21663
21664ac_cv_lib_expat_XML_ParserCreate=no
21665fi
ac1cb8d3
VS
21666rm -f conftest.err conftest.$ac_objext \
21667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21668LIBS=$ac_check_lib_save_LIBS
21669fi
21670echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21671echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21672if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21673 EXPAT_LINK=" -lexpat"
21674fi
21675
21676 fi
21677 fi
21678 if test "x$EXPAT_LINK" = "x" ; then
21679 if test "$wxUSE_EXPAT" = "sys" ; then
21680 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21681echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21682 { (exit 1); exit 1; }; }
21683 else
21684 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21685echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21686 wxUSE_EXPAT=builtin
21687 fi
21688 else
21689 wxUSE_EXPAT=sys
21690 fi
21691 fi
21692 if test "$wxUSE_EXPAT" = "builtin" ; then
21693
21694
21695subdirs="$subdirs src/expat"
21696
21697 fi
21698fi
21699
21700
21701
21702if test "$wxUSE_LIBMSPACK" != "no"; then
21703
21704 if test "${ac_cv_header_mspack_h+set}" = set; then
21705 echo "$as_me:$LINENO: checking for mspack.h" >&5
21706echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21707if test "${ac_cv_header_mspack_h+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21709fi
21710echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21711echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21712else
21713 # Is the header compilable?
21714echo "$as_me:$LINENO: checking mspack.h usability" >&5
21715echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21716cat >conftest.$ac_ext <<_ACEOF
21717/* confdefs.h. */
21718_ACEOF
21719cat confdefs.h >>conftest.$ac_ext
21720cat >>conftest.$ac_ext <<_ACEOF
21721/* end confdefs.h. */
21722$ac_includes_default
21723#include <mspack.h>
21724_ACEOF
21725rm -f conftest.$ac_objext
21726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21727 (eval $ac_compile) 2>conftest.er1
a848cd7e 21728 ac_status=$?
ac1cb8d3
VS
21729 grep -v '^ *+' conftest.er1 >conftest.err
21730 rm -f conftest.er1
21731 cat conftest.err >&5
a848cd7e
SC
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } &&
ac1cb8d3
VS
21734 { ac_try='test -z "$ac_c_werror_flag"
21735 || test ! -s conftest.err'
21736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737 (eval $ac_try) 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; } &&
21741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21744 ac_status=$?
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21747 ac_header_compiler=yes
21748else
21749 echo "$as_me: failed program was:" >&5
21750sed 's/^/| /' conftest.$ac_ext >&5
21751
21752ac_header_compiler=no
21753fi
ac1cb8d3 21754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21755echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21756echo "${ECHO_T}$ac_header_compiler" >&6
21757
21758# Is the header present?
21759echo "$as_me:$LINENO: checking mspack.h presence" >&5
21760echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21761cat >conftest.$ac_ext <<_ACEOF
21762/* confdefs.h. */
21763_ACEOF
21764cat confdefs.h >>conftest.$ac_ext
21765cat >>conftest.$ac_ext <<_ACEOF
21766/* end confdefs.h. */
21767#include <mspack.h>
21768_ACEOF
21769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21771 ac_status=$?
21772 grep -v '^ *+' conftest.er1 >conftest.err
21773 rm -f conftest.er1
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } >/dev/null; then
21777 if test -s conftest.err; then
21778 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21780 else
21781 ac_cpp_err=
21782 fi
21783else
21784 ac_cpp_err=yes
21785fi
21786if test -z "$ac_cpp_err"; then
21787 ac_header_preproc=yes
21788else
21789 echo "$as_me: failed program was:" >&5
21790sed 's/^/| /' conftest.$ac_ext >&5
21791
21792 ac_header_preproc=no
21793fi
21794rm -f conftest.err conftest.$ac_ext
21795echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21796echo "${ECHO_T}$ac_header_preproc" >&6
21797
21798# So? What about this header?
ac1cb8d3
VS
21799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21800 yes:no: )
a848cd7e
SC
21801 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21802echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21803 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21804echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21805 ac_header_preproc=yes
a848cd7e 21806 ;;
ac1cb8d3 21807 no:yes:* )
a848cd7e
SC
21808 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21809echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21810 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21811echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21813echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21815echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21816 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21817echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21818 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21819echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21820 (
21821 cat <<\_ASBOX
ac1cb8d3
VS
21822## ----------------------------------------- ##
21823## Report this to wx-dev@lists.wxwidgets.org ##
21824## ----------------------------------------- ##
a848cd7e
SC
21825_ASBOX
21826 ) |
21827 sed "s/^/$as_me: WARNING: /" >&2
21828 ;;
21829esac
21830echo "$as_me:$LINENO: checking for mspack.h" >&5
21831echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21832if test "${ac_cv_header_mspack_h+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834else
21835 ac_cv_header_mspack_h=$ac_header_preproc
21836fi
21837echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21838echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21839
21840fi
21841if test $ac_cv_header_mspack_h = yes; then
21842 found_mspack_h=1
21843fi
21844
21845
21846 if test "x$found_mspack_h" = "x1"; then
21847 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21848echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21849if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21850 echo $ECHO_N "(cached) $ECHO_C" >&6
21851else
21852 ac_check_lib_save_LIBS=$LIBS
21853LIBS="-lmspack $LIBS"
21854cat >conftest.$ac_ext <<_ACEOF
21855/* confdefs.h. */
21856_ACEOF
21857cat confdefs.h >>conftest.$ac_ext
21858cat >>conftest.$ac_ext <<_ACEOF
21859/* end confdefs.h. */
21860
21861/* Override any gcc2 internal prototype to avoid an error. */
21862#ifdef __cplusplus
21863extern "C"
21864#endif
21865/* We use char because int might match the return type of a gcc2
21866 builtin and then its argument prototype would still apply. */
21867char mspack_create_chm_decompressor ();
21868int
21869main ()
21870{
21871mspack_create_chm_decompressor ();
21872 ;
21873 return 0;
21874}
21875_ACEOF
21876rm -f conftest.$ac_objext conftest$ac_exeext
21877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21878 (eval $ac_link) 2>conftest.er1
a848cd7e 21879 ac_status=$?
ac1cb8d3
VS
21880 grep -v '^ *+' conftest.er1 >conftest.err
21881 rm -f conftest.er1
21882 cat conftest.err >&5
a848cd7e
SC
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } &&
ac1cb8d3
VS
21885 { ac_try='test -z "$ac_c_werror_flag"
21886 || test ! -s conftest.err'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21889 ac_status=$?
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; } &&
21892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21895 ac_status=$?
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }; then
21898 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21899else
21900 echo "$as_me: failed program was:" >&5
21901sed 's/^/| /' conftest.$ac_ext >&5
21902
21903ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21904fi
ac1cb8d3
VS
21905rm -f conftest.err conftest.$ac_objext \
21906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21907LIBS=$ac_check_lib_save_LIBS
21908fi
21909echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21910echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21911if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21912 MSPACK_LINK=" -lmspack"
21913fi
21914
21915 fi
21916 if test "x$MSPACK_LINK" = "x" ; then
21917 wxUSE_LIBMSPACK=no
21918 else
21919 cat >>confdefs.h <<\_ACEOF
21920#define wxUSE_LIBMSPACK 1
21921_ACEOF
21922
21923 fi
21924fi
21925
21926
21927
21928AFMINSTALL=
21929WIN32INSTALL=
21930
21931TOOLKIT=
21932TOOLKIT_INCLUDE=
21933WIDGET_SET=
21934
21935if test "$USE_WIN32" = 1 ; then
21936
21937for ac_header in w32api.h
21938do
21939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21940if eval "test \"\${$as_ac_Header+set}\" = set"; then
21941 echo "$as_me:$LINENO: checking for $ac_header" >&5
21942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21943if eval "test \"\${$as_ac_Header+set}\" = set"; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21945fi
21946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21948else
21949 # Is the header compilable?
21950echo "$as_me:$LINENO: checking $ac_header usability" >&5
21951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21952cat >conftest.$ac_ext <<_ACEOF
21953/* confdefs.h. */
21954_ACEOF
21955cat confdefs.h >>conftest.$ac_ext
21956cat >>conftest.$ac_ext <<_ACEOF
21957/* end confdefs.h. */
21958$ac_includes_default
21959#include <$ac_header>
21960_ACEOF
21961rm -f conftest.$ac_objext
21962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21963 (eval $ac_compile) 2>conftest.er1
a848cd7e 21964 ac_status=$?
ac1cb8d3
VS
21965 grep -v '^ *+' conftest.er1 >conftest.err
21966 rm -f conftest.er1
21967 cat conftest.err >&5
a848cd7e
SC
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } &&
ac1cb8d3
VS
21970 { ac_try='test -z "$ac_c_werror_flag"
21971 || test ! -s conftest.err'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } &&
21977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 ac_header_compiler=yes
21984else
21985 echo "$as_me: failed program was:" >&5
21986sed 's/^/| /' conftest.$ac_ext >&5
21987
21988ac_header_compiler=no
21989fi
ac1cb8d3 21990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21992echo "${ECHO_T}$ac_header_compiler" >&6
21993
21994# Is the header present?
21995echo "$as_me:$LINENO: checking $ac_header presence" >&5
21996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21997cat >conftest.$ac_ext <<_ACEOF
21998/* confdefs.h. */
21999_ACEOF
22000cat confdefs.h >>conftest.$ac_ext
22001cat >>conftest.$ac_ext <<_ACEOF
22002/* end confdefs.h. */
22003#include <$ac_header>
22004_ACEOF
22005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22007 ac_status=$?
22008 grep -v '^ *+' conftest.er1 >conftest.err
22009 rm -f conftest.er1
22010 cat conftest.err >&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } >/dev/null; then
22013 if test -s conftest.err; then
22014 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22016 else
22017 ac_cpp_err=
22018 fi
22019else
22020 ac_cpp_err=yes
22021fi
22022if test -z "$ac_cpp_err"; then
22023 ac_header_preproc=yes
22024else
22025 echo "$as_me: failed program was:" >&5
22026sed 's/^/| /' conftest.$ac_ext >&5
22027
22028 ac_header_preproc=no
22029fi
22030rm -f conftest.err conftest.$ac_ext
22031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22032echo "${ECHO_T}$ac_header_preproc" >&6
22033
22034# So? What about this header?
ac1cb8d3
VS
22035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22036 yes:no: )
a848cd7e
SC
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22041 ac_header_preproc=yes
a848cd7e 22042 ;;
ac1cb8d3 22043 no:yes:* )
a848cd7e
SC
22044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22056 (
22057 cat <<\_ASBOX
ac1cb8d3
VS
22058## ----------------------------------------- ##
22059## Report this to wx-dev@lists.wxwidgets.org ##
22060## ----------------------------------------- ##
a848cd7e
SC
22061_ASBOX
22062 ) |
22063 sed "s/^/$as_me: WARNING: /" >&2
22064 ;;
22065esac
22066echo "$as_me:$LINENO: checking for $ac_header" >&5
22067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22068if eval "test \"\${$as_ac_Header+set}\" = set"; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070else
ac1cb8d3 22071 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22072fi
22073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22075
22076fi
22077if test `eval echo '${'$as_ac_Header'}'` = yes; then
22078 cat >>confdefs.h <<_ACEOF
22079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22080_ACEOF
22081
22082fi
22083
22084done
22085
22086 if test "${ac_cv_header_windows_h+set}" = set; then
22087 echo "$as_me:$LINENO: checking for windows.h" >&5
22088echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22089if test "${ac_cv_header_windows_h+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22091fi
22092echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22093echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22094else
22095 # Is the header compilable?
22096echo "$as_me:$LINENO: checking windows.h usability" >&5
22097echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22098cat >conftest.$ac_ext <<_ACEOF
22099/* confdefs.h. */
22100_ACEOF
22101cat confdefs.h >>conftest.$ac_ext
22102cat >>conftest.$ac_ext <<_ACEOF
22103/* end confdefs.h. */
22104$ac_includes_default
22105#include <windows.h>
22106_ACEOF
22107rm -f conftest.$ac_objext
22108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22109 (eval $ac_compile) 2>conftest.er1
a848cd7e 22110 ac_status=$?
ac1cb8d3
VS
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
a848cd7e
SC
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
ac1cb8d3
VS
22116 { ac_try='test -z "$ac_c_werror_flag"
22117 || test ! -s conftest.err'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; } &&
22123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 ac_header_compiler=yes
22130else
22131 echo "$as_me: failed program was:" >&5
22132sed 's/^/| /' conftest.$ac_ext >&5
22133
22134ac_header_compiler=no
22135fi
ac1cb8d3 22136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22138echo "${ECHO_T}$ac_header_compiler" >&6
22139
22140# Is the header present?
22141echo "$as_me:$LINENO: checking windows.h presence" >&5
22142echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22143cat >conftest.$ac_ext <<_ACEOF
22144/* confdefs.h. */
22145_ACEOF
22146cat confdefs.h >>conftest.$ac_ext
22147cat >>conftest.$ac_ext <<_ACEOF
22148/* end confdefs.h. */
22149#include <windows.h>
22150_ACEOF
22151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22153 ac_status=$?
22154 grep -v '^ *+' conftest.er1 >conftest.err
22155 rm -f conftest.er1
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } >/dev/null; then
22159 if test -s conftest.err; then
22160 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22162 else
22163 ac_cpp_err=
22164 fi
22165else
22166 ac_cpp_err=yes
22167fi
22168if test -z "$ac_cpp_err"; then
22169 ac_header_preproc=yes
22170else
22171 echo "$as_me: failed program was:" >&5
22172sed 's/^/| /' conftest.$ac_ext >&5
22173
22174 ac_header_preproc=no
22175fi
22176rm -f conftest.err conftest.$ac_ext
22177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22178echo "${ECHO_T}$ac_header_preproc" >&6
22179
22180# So? What about this header?
ac1cb8d3
VS
22181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22182 yes:no: )
a848cd7e
SC
22183 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22184echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22185 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22186echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22187 ac_header_preproc=yes
a848cd7e 22188 ;;
ac1cb8d3 22189 no:yes:* )
a848cd7e
SC
22190 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22191echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22192 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22193echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22195echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22196 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22197echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22198 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22199echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22200 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22201echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22202 (
22203 cat <<\_ASBOX
ac1cb8d3
VS
22204## ----------------------------------------- ##
22205## Report this to wx-dev@lists.wxwidgets.org ##
22206## ----------------------------------------- ##
a848cd7e
SC
22207_ASBOX
22208 ) |
22209 sed "s/^/$as_me: WARNING: /" >&2
22210 ;;
22211esac
22212echo "$as_me:$LINENO: checking for windows.h" >&5
22213echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22214if test "${ac_cv_header_windows_h+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22216else
22217 ac_cv_header_windows_h=$ac_header_preproc
22218fi
22219echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22220echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22221
22222fi
22223if test $ac_cv_header_windows_h = yes; then
22224 :
22225else
22226
22227 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22228echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22229 { (exit 1); exit 1; }; }
22230
22231fi
22232
22233
22234
22235 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22236
22237 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22238 LIBS="$LIBS -loleacc"
22239 fi
22240
22241 case "${host}" in
22242 *-*-cygwin* )
22243 LIBS="$LIBS -lkernel32 -luser32"
22244 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22245 esac
22246
22247 if test "$wxUSE_ODBC" = "sys" ; then
22248 wxUSE_ODBC = "yes"
22249 fi
22250 if test "$wxUSE_ODBC" = "yes" ; then
22251 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22252 cat >>confdefs.h <<\_ACEOF
22253#define wxUSE_ODBC 1
22254_ACEOF
22255
22256 fi
22257
22258 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22259 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22260
22261 WIN32INSTALL=win32install
22262fi
22263
22264if test "$wxUSE_GUI" = "yes"; then
22265 USE_GUI=1
22266
22267 GUI_TK_LIBRARY=
22268
22269 WXGTK12=
22270 WXGTK127=
22271 WXGTK20=
22272 WXGPE=
22273
22274 if test "$wxUSE_MSW" = 1 ; then
22275 TOOLKIT=MSW
22276 GUIDIST=MSW_DIST
22277
22278 case "${host}" in
22279 *-*-mingw32* )
22280 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22281 esac
22282 fi
22283
22284 if test "$wxUSE_GTK" = 1; then
22285 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22286echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22287
22288 gtk_version_cached=1
22289 if test "${wx_cv_lib_gtk+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22291else
22292
22293 gtk_version_cached=0
22294 echo "$as_me:$LINENO: result: " >&5
22295echo "${ECHO_T}" >&6
22296
22297 GTK_MODULES=
22298 if test "$wxUSE_THREADS" = "yes"; then
22299 GTK_MODULES=gthread
22300 fi
22301
22302 wx_cv_lib_gtk=
22303 if test "x$wxUSE_GTK2" = "xyes"; then
22304 # Check whether --enable-gtktest or --disable-gtktest was given.
22305if test "${enable_gtktest+set}" = set; then
22306 enableval="$enable_gtktest"
22307
22308else
22309 enable_gtktest=yes
22310fi;
22311
22312 pkg_config_args=gtk+-2.0
22313 for module in . $GTK_MODULES
22314 do
22315 case "$module" in
22316 gthread)
22317 pkg_config_args="$pkg_config_args gthread-2.0"
22318 ;;
22319 esac
22320 done
22321
22322 no_gtk=""
22323
22324 # Extract the first word of "pkg-config", so it can be a program name with args.
22325set dummy pkg-config; ac_word=$2
22326echo "$as_me:$LINENO: checking for $ac_word" >&5
22327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22328if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22330else
22331 case $PKG_CONFIG in
22332 [\\/]* | ?:[\\/]*)
22333 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22334 ;;
22335 *)
22336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22337for as_dir in $PATH
22338do
22339 IFS=$as_save_IFS
22340 test -z "$as_dir" && as_dir=.
22341 for ac_exec_ext in '' $ac_executable_extensions; do
22342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22343 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22345 break 2
22346 fi
22347done
22348done
22349
22350 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22351 ;;
22352esac
22353fi
22354PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22355
22356if test -n "$PKG_CONFIG"; then
22357 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22358echo "${ECHO_T}$PKG_CONFIG" >&6
22359else
22360 echo "$as_me:$LINENO: result: no" >&5
22361echo "${ECHO_T}no" >&6
22362fi
22363
22364
22365 if test x$PKG_CONFIG != xno ; then
22366 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22367 :
22368 else
c2218763 22369 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22370 no_gtk=yes
22371 PKG_CONFIG=no
22372 fi
22373 else
22374 no_gtk=yes
22375 fi
22376
22377 min_gtk_version=2.0.0
22378 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22379echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22380
22381 if test x$PKG_CONFIG != xno ; then
22382 ## don't try to run the test against uninstalled libtool libs
22383 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22384 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22385 enable_gtktest=no
22386 fi
22387
22388 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22389 :
22390 else
22391 no_gtk=yes
22392 fi
22393 fi
22394
22395 if test x"$no_gtk" = x ; then
22396 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22397 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22398 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22399 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22400 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22401 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22402 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22403 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22404 if test "x$enable_gtktest" = "xyes" ; then
22405 ac_save_CFLAGS="$CFLAGS"
22406 ac_save_LIBS="$LIBS"
22407 CFLAGS="$CFLAGS $GTK_CFLAGS"
22408 LIBS="$GTK_LIBS $LIBS"
22409 rm -f conf.gtktest
22410 if test "$cross_compiling" = yes; then
22411 echo $ac_n "cross compiling; assumed OK... $ac_c"
22412else
22413 cat >conftest.$ac_ext <<_ACEOF
22414/* confdefs.h. */
22415_ACEOF
22416cat confdefs.h >>conftest.$ac_ext
22417cat >>conftest.$ac_ext <<_ACEOF
22418/* end confdefs.h. */
22419
22420#include <gtk/gtk.h>
22421#include <stdio.h>
22422#include <stdlib.h>
22423
22424int
22425main ()
22426{
22427 int major, minor, micro;
22428 char *tmp_version;
22429
22430 system ("touch conf.gtktest");
22431
22432 /* HP/UX 9 (%@#!) writes to sscanf strings */
22433 tmp_version = g_strdup("$min_gtk_version");
22434 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22435 printf("%s, bad version string\n", "$min_gtk_version");
22436 exit(1);
22437 }
22438
22439 if ((gtk_major_version != $gtk_config_major_version) ||
22440 (gtk_minor_version != $gtk_config_minor_version) ||
22441 (gtk_micro_version != $gtk_config_micro_version))
22442 {
22443 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22444 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22445 gtk_major_version, gtk_minor_version, gtk_micro_version);
22446 printf ("*** was found! If pkg-config was correct, then it is best\n");
22447 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22448 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22449 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22450 printf("*** required on your system.\n");
22451 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22452 printf("*** to point to the correct configuration files\n");
22453 }
22454 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22455 (gtk_minor_version != GTK_MINOR_VERSION) ||
22456 (gtk_micro_version != GTK_MICRO_VERSION))
22457 {
22458 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22459 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22460 printf("*** library (version %d.%d.%d)\n",
22461 gtk_major_version, gtk_minor_version, gtk_micro_version);
22462 }
22463 else
22464 {
22465 if ((gtk_major_version > major) ||
22466 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22467 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22468 {
22469 return 0;
22470 }
22471 else
22472 {
22473 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22474 gtk_major_version, gtk_minor_version, gtk_micro_version);
22475 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22476 major, minor, micro);
22477 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22478 printf("***\n");
22479 printf("*** If you have already installed a sufficiently new version, this error\n");
22480 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22481 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22482 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22483 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22484 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22485 printf("*** so that the correct libraries are found at run-time))\n");
22486 }
22487 }
22488 return 1;
22489}
22490
22491_ACEOF
22492rm -f conftest$ac_exeext
22493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22494 (eval $ac_link) 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499 (eval $ac_try) 2>&5
22500 ac_status=$?
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
22503 :
22504else
22505 echo "$as_me: program exited with status $ac_status" >&5
22506echo "$as_me: failed program was:" >&5
22507sed 's/^/| /' conftest.$ac_ext >&5
22508
22509( exit $ac_status )
22510no_gtk=yes
22511fi
ac1cb8d3 22512rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22513fi
22514 CFLAGS="$ac_save_CFLAGS"
22515 LIBS="$ac_save_LIBS"
22516 fi
22517 fi
22518 if test "x$no_gtk" = x ; then
22519 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22520echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22521 wx_cv_lib_gtk=2.0
22522 else
22523 echo "$as_me:$LINENO: result: no" >&5
22524echo "${ECHO_T}no" >&6
22525 if test "$PKG_CONFIG" = "no" ; then
22526 echo "*** A new enough version of pkg-config was not found."
22527 echo "*** See http://pkgconfig.sourceforge.net"
22528 else
22529 if test -f conf.gtktest ; then
22530 :
22531 else
22532 echo "*** Could not run GTK+ test program, checking why..."
22533 ac_save_CFLAGS="$CFLAGS"
22534 ac_save_LIBS="$LIBS"
22535 CFLAGS="$CFLAGS $GTK_CFLAGS"
22536 LIBS="$LIBS $GTK_LIBS"
22537 cat >conftest.$ac_ext <<_ACEOF
22538/* confdefs.h. */
22539_ACEOF
22540cat confdefs.h >>conftest.$ac_ext
22541cat >>conftest.$ac_ext <<_ACEOF
22542/* end confdefs.h. */
22543
22544#include <gtk/gtk.h>
22545#include <stdio.h>
22546
22547int
22548main ()
22549{
22550 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22551 ;
22552 return 0;
22553}
22554_ACEOF
22555rm -f conftest.$ac_objext conftest$ac_exeext
22556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22557 (eval $ac_link) 2>conftest.er1
a848cd7e 22558 ac_status=$?
ac1cb8d3
VS
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
a848cd7e
SC
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
ac1cb8d3
VS
22564 { ac_try='test -z "$ac_c_werror_flag"
22565 || test ! -s conftest.err'
22566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22567 (eval $ac_try) 2>&5
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); }; } &&
22571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); }; }; then
22577 echo "*** The test program compiled, but did not run. This usually means"
22578 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22579 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22580 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22581 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22582 echo "*** is required on your system"
22583 echo "***"
22584 echo "*** If you have an old version installed, it is best to remove it, although"
22585 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22586else
22587 echo "$as_me: failed program was:" >&5
22588sed 's/^/| /' conftest.$ac_ext >&5
22589
22590 echo "*** The test program failed to compile or link. See the file config.log for the"
22591 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22592fi
ac1cb8d3
VS
22593rm -f conftest.err conftest.$ac_objext \
22594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22595 CFLAGS="$ac_save_CFLAGS"
22596 LIBS="$ac_save_LIBS"
22597 fi
22598 fi
22599 GTK_CFLAGS=""
22600 GTK_LIBS=""
22601 :
22602 fi
22603
22604
22605 rm -f conf.gtktest
22606
22607 else
22608
22609# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22610if test "${with_gtk_prefix+set}" = set; then
22611 withval="$with_gtk_prefix"
22612 gtk_config_prefix="$withval"
22613else
22614 gtk_config_prefix=""
22615fi;
22616
22617# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22618if test "${with_gtk_exec_prefix+set}" = set; then
22619 withval="$with_gtk_exec_prefix"
22620 gtk_config_exec_prefix="$withval"
22621else
22622 gtk_config_exec_prefix=""
22623fi;
22624# Check whether --enable-gtktest or --disable-gtktest was given.
22625if test "${enable_gtktest+set}" = set; then
22626 enableval="$enable_gtktest"
22627
22628else
22629 enable_gtktest=yes
22630fi;
22631
22632 for module in . $GTK_MODULES
22633 do
22634 case "$module" in
22635 gthread)
22636 gtk_config_args="$gtk_config_args gthread"
22637 ;;
22638 esac
22639 done
22640
22641 if test x$gtk_config_exec_prefix != x ; then
22642 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22643 if test x${GTK_CONFIG+set} != xset ; then
22644 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22645 fi
22646 fi
22647 if test x$gtk_config_prefix != x ; then
22648 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22649 if test x${GTK_CONFIG+set} != xset ; then
22650 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22651 fi
22652 fi
22653
22654 # Extract the first word of "gtk-config", so it can be a program name with args.
22655set dummy gtk-config; ac_word=$2
22656echo "$as_me:$LINENO: checking for $ac_word" >&5
22657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22658if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22660else
22661 case $GTK_CONFIG in
22662 [\\/]* | ?:[\\/]*)
22663 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22664 ;;
22665 *)
22666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22667for as_dir in $PATH
22668do
22669 IFS=$as_save_IFS
22670 test -z "$as_dir" && as_dir=.
22671 for ac_exec_ext in '' $ac_executable_extensions; do
22672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22673 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22675 break 2
22676 fi
22677done
22678done
22679
22680 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22681 ;;
22682esac
22683fi
22684GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22685
22686if test -n "$GTK_CONFIG"; then
22687 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22688echo "${ECHO_T}$GTK_CONFIG" >&6
22689else
22690 echo "$as_me:$LINENO: result: no" >&5
22691echo "${ECHO_T}no" >&6
22692fi
22693
22694 min_gtk_version=1.2.7
22695 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22696echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22697 no_gtk=""
22698 if test "$GTK_CONFIG" = "no" ; then
22699 no_gtk=yes
22700 else
22701 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22702 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22703 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22705 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22706 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22707 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22708 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22709 if test "x$enable_gtktest" = "xyes" ; then
22710 ac_save_CFLAGS="$CFLAGS"
22711 ac_save_LIBS="$LIBS"
22712 CFLAGS="$CFLAGS $GTK_CFLAGS"
22713 LIBS="$GTK_LIBS $LIBS"
22714 rm -f conf.gtktest
22715 if test "$cross_compiling" = yes; then
22716 echo $ac_n "cross compiling; assumed OK... $ac_c"
22717else
22718 cat >conftest.$ac_ext <<_ACEOF
22719/* confdefs.h. */
22720_ACEOF
22721cat confdefs.h >>conftest.$ac_ext
22722cat >>conftest.$ac_ext <<_ACEOF
22723/* end confdefs.h. */
22724
22725#include <gtk/gtk.h>
22726#include <stdio.h>
22727#include <stdlib.h>
22728
22729int
22730main ()
22731{
22732 int major, minor, micro;
22733 char *tmp_version;
22734
22735 system ("touch conf.gtktest");
22736
22737 /* HP/UX 9 (%@#!) writes to sscanf strings */
22738 tmp_version = g_strdup("$min_gtk_version");
22739 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22740 printf("%s, bad version string\n", "$min_gtk_version");
22741 exit(1);
22742 }
22743
22744 if ((gtk_major_version != $gtk_config_major_version) ||
22745 (gtk_minor_version != $gtk_config_minor_version) ||
22746 (gtk_micro_version != $gtk_config_micro_version))
22747 {
22748 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22749 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22750 gtk_major_version, gtk_minor_version, gtk_micro_version);
22751 printf ("*** was found! If gtk-config was correct, then it is best\n");
22752 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22753 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22754 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22755 printf("*** required on your system.\n");
22756 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22757 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22758 printf("*** before re-running configure\n");
22759 }
22760#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22761 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22762 (gtk_minor_version != GTK_MINOR_VERSION) ||
22763 (gtk_micro_version != GTK_MICRO_VERSION))
22764 {
22765 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22766 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22767 printf("*** library (version %d.%d.%d)\n",
22768 gtk_major_version, gtk_minor_version, gtk_micro_version);
22769 }
22770#endif /* defined (GTK_MAJOR_VERSION) ... */
22771 else
22772 {
22773 if ((gtk_major_version > major) ||
22774 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22775 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22776 {
22777 return 0;
22778 }
22779 else
22780 {
22781 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22782 gtk_major_version, gtk_minor_version, gtk_micro_version);
22783 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22784 major, minor, micro);
22785 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22786 printf("***\n");
22787 printf("*** If you have already installed a sufficiently new version, this error\n");
22788 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22789 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22790 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22791 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22792 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22793 printf("*** so that the correct libraries are found at run-time))\n");
22794 }
22795 }
22796 return 1;
22797}
22798
22799_ACEOF
22800rm -f conftest$ac_exeext
22801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22802 (eval $ac_link) 2>&5
22803 ac_status=$?
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811 :
22812else
22813 echo "$as_me: program exited with status $ac_status" >&5
22814echo "$as_me: failed program was:" >&5
22815sed 's/^/| /' conftest.$ac_ext >&5
22816
22817( exit $ac_status )
22818no_gtk=yes
22819fi
ac1cb8d3 22820rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22821fi
22822 CFLAGS="$ac_save_CFLAGS"
22823 LIBS="$ac_save_LIBS"
22824 fi
22825 fi
22826 if test "x$no_gtk" = x ; then
22827 echo "$as_me:$LINENO: result: yes" >&5
22828echo "${ECHO_T}yes" >&6
22829 wx_cv_lib_gtk=1.2.7
22830 else
22831 echo "$as_me:$LINENO: result: no" >&5
22832echo "${ECHO_T}no" >&6
22833 if test "$GTK_CONFIG" = "no" ; then
22834 echo "*** The gtk-config script installed by GTK could not be found"
22835 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22836 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22837 echo "*** full path to gtk-config."
22838 else
22839 if test -f conf.gtktest ; then
22840 :
22841 else
22842 echo "*** Could not run GTK test program, checking why..."
22843 CFLAGS="$CFLAGS $GTK_CFLAGS"
22844 LIBS="$LIBS $GTK_LIBS"
22845 cat >conftest.$ac_ext <<_ACEOF
22846/* confdefs.h. */
22847_ACEOF
22848cat confdefs.h >>conftest.$ac_ext
22849cat >>conftest.$ac_ext <<_ACEOF
22850/* end confdefs.h. */
22851
22852#include <gtk/gtk.h>
22853#include <stdio.h>
22854
22855int
22856main ()
22857{
22858 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22859 ;
22860 return 0;
22861}
22862_ACEOF
22863rm -f conftest.$ac_objext conftest$ac_exeext
22864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22865 (eval $ac_link) 2>conftest.er1
a848cd7e 22866 ac_status=$?
ac1cb8d3
VS
22867 grep -v '^ *+' conftest.er1 >conftest.err
22868 rm -f conftest.er1
22869 cat conftest.err >&5
a848cd7e
SC
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } &&
ac1cb8d3
VS
22872 { ac_try='test -z "$ac_c_werror_flag"
22873 || test ! -s conftest.err'
22874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875 (eval $ac_try) 2>&5
22876 ac_status=$?
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; } &&
22879 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22882 ac_status=$?
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; }; then
22885 echo "*** The test program compiled, but did not run. This usually means"
22886 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22887 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22888 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22889 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22890 echo "*** is required on your system"
22891 echo "***"
22892 echo "*** If you have an old version installed, it is best to remove it, although"
22893 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22894 echo "***"
22895 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22896 echo "*** came with the system with the command"
22897 echo "***"
22898 echo "*** rpm --erase --nodeps gtk gtk-devel"
22899else
22900 echo "$as_me: failed program was:" >&5
22901sed 's/^/| /' conftest.$ac_ext >&5
22902
22903 echo "*** The test program failed to compile or link. See the file config.log for the"
22904 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22905 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22906 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22907fi
ac1cb8d3
VS
22908rm -f conftest.err conftest.$ac_objext \
22909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22910 CFLAGS="$ac_save_CFLAGS"
22911 LIBS="$ac_save_LIBS"
22912 fi
22913 fi
22914 GTK_CFLAGS=""
22915 GTK_LIBS=""
22916 :
22917 fi
22918
22919
22920 rm -f conf.gtktest
22921
22922
22923 if test -z "$wx_cv_lib_gtk"; then
22924
22925# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22926if test "${with_gtk_prefix+set}" = set; then
22927 withval="$with_gtk_prefix"
22928 gtk_config_prefix="$withval"
22929else
22930 gtk_config_prefix=""
22931fi;
22932
22933# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22934if test "${with_gtk_exec_prefix+set}" = set; then
22935 withval="$with_gtk_exec_prefix"
22936 gtk_config_exec_prefix="$withval"
22937else
22938 gtk_config_exec_prefix=""
22939fi;
22940# Check whether --enable-gtktest or --disable-gtktest was given.
22941if test "${enable_gtktest+set}" = set; then
22942 enableval="$enable_gtktest"
22943
22944else
22945 enable_gtktest=yes
22946fi;
22947
22948 for module in . $GTK_MODULES
22949 do
22950 case "$module" in
22951 gthread)
22952 gtk_config_args="$gtk_config_args gthread"
22953 ;;
22954 esac
22955 done
22956
22957 if test x$gtk_config_exec_prefix != x ; then
22958 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22959 if test x${GTK_CONFIG+set} != xset ; then
22960 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22961 fi
22962 fi
22963 if test x$gtk_config_prefix != x ; then
22964 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22965 if test x${GTK_CONFIG+set} != xset ; then
22966 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22967 fi
22968 fi
22969
22970 # Extract the first word of "gtk-config", so it can be a program name with args.
22971set dummy gtk-config; ac_word=$2
22972echo "$as_me:$LINENO: checking for $ac_word" >&5
22973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22974if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22975 echo $ECHO_N "(cached) $ECHO_C" >&6
22976else
22977 case $GTK_CONFIG in
22978 [\\/]* | ?:[\\/]*)
22979 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22980 ;;
22981 *)
22982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22983for as_dir in $PATH
22984do
22985 IFS=$as_save_IFS
22986 test -z "$as_dir" && as_dir=.
22987 for ac_exec_ext in '' $ac_executable_extensions; do
22988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22989 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22991 break 2
22992 fi
22993done
22994done
22995
22996 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22997 ;;
22998esac
22999fi
23000GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23001
23002if test -n "$GTK_CONFIG"; then
23003 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23004echo "${ECHO_T}$GTK_CONFIG" >&6
23005else
23006 echo "$as_me:$LINENO: result: no" >&5
23007echo "${ECHO_T}no" >&6
23008fi
23009
23010 min_gtk_version=1.2.3
23011 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23012echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23013 no_gtk=""
23014 if test "$GTK_CONFIG" = "no" ; then
23015 no_gtk=yes
23016 else
23017 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23018 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23019 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23020 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23021 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23023 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23024 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23025 if test "x$enable_gtktest" = "xyes" ; then
23026 ac_save_CFLAGS="$CFLAGS"
23027 ac_save_LIBS="$LIBS"
23028 CFLAGS="$CFLAGS $GTK_CFLAGS"
23029 LIBS="$GTK_LIBS $LIBS"
23030 rm -f conf.gtktest
23031 if test "$cross_compiling" = yes; then
23032 echo $ac_n "cross compiling; assumed OK... $ac_c"
23033else
23034 cat >conftest.$ac_ext <<_ACEOF
23035/* confdefs.h. */
23036_ACEOF
23037cat confdefs.h >>conftest.$ac_ext
23038cat >>conftest.$ac_ext <<_ACEOF
23039/* end confdefs.h. */
23040
23041#include <gtk/gtk.h>
23042#include <stdio.h>
23043#include <stdlib.h>
23044
23045int
23046main ()
23047{
23048 int major, minor, micro;
23049 char *tmp_version;
23050
23051 system ("touch conf.gtktest");
23052
23053 /* HP/UX 9 (%@#!) writes to sscanf strings */
23054 tmp_version = g_strdup("$min_gtk_version");
23055 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23056 printf("%s, bad version string\n", "$min_gtk_version");
23057 exit(1);
23058 }
23059
23060 if ((gtk_major_version != $gtk_config_major_version) ||
23061 (gtk_minor_version != $gtk_config_minor_version) ||
23062 (gtk_micro_version != $gtk_config_micro_version))
23063 {
23064 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23065 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23066 gtk_major_version, gtk_minor_version, gtk_micro_version);
23067 printf ("*** was found! If gtk-config was correct, then it is best\n");
23068 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23069 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23070 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23071 printf("*** required on your system.\n");
23072 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23073 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23074 printf("*** before re-running configure\n");
23075 }
23076#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23077 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23078 (gtk_minor_version != GTK_MINOR_VERSION) ||
23079 (gtk_micro_version != GTK_MICRO_VERSION))
23080 {
23081 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23082 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23083 printf("*** library (version %d.%d.%d)\n",
23084 gtk_major_version, gtk_minor_version, gtk_micro_version);
23085 }
23086#endif /* defined (GTK_MAJOR_VERSION) ... */
23087 else
23088 {
23089 if ((gtk_major_version > major) ||
23090 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23091 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23092 {
23093 return 0;
23094 }
23095 else
23096 {
23097 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23098 gtk_major_version, gtk_minor_version, gtk_micro_version);
23099 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23100 major, minor, micro);
23101 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23102 printf("***\n");
23103 printf("*** If you have already installed a sufficiently new version, this error\n");
23104 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23105 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23106 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23107 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23108 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23109 printf("*** so that the correct libraries are found at run-time))\n");
23110 }
23111 }
23112 return 1;
23113}
23114
23115_ACEOF
23116rm -f conftest$ac_exeext
23117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23118 (eval $ac_link) 2>&5
23119 ac_status=$?
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; }; then
23127 :
23128else
23129 echo "$as_me: program exited with status $ac_status" >&5
23130echo "$as_me: failed program was:" >&5
23131sed 's/^/| /' conftest.$ac_ext >&5
23132
23133( exit $ac_status )
23134no_gtk=yes
23135fi
ac1cb8d3 23136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23137fi
23138 CFLAGS="$ac_save_CFLAGS"
23139 LIBS="$ac_save_LIBS"
23140 fi
23141 fi
23142 if test "x$no_gtk" = x ; then
23143 echo "$as_me:$LINENO: result: yes" >&5
23144echo "${ECHO_T}yes" >&6
23145 wx_cv_lib_gtk=1.2.3
23146 else
23147 echo "$as_me:$LINENO: result: no" >&5
23148echo "${ECHO_T}no" >&6
23149 if test "$GTK_CONFIG" = "no" ; then
23150 echo "*** The gtk-config script installed by GTK could not be found"
23151 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23152 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23153 echo "*** full path to gtk-config."
23154 else
23155 if test -f conf.gtktest ; then
23156 :
23157 else
23158 echo "*** Could not run GTK test program, checking why..."
23159 CFLAGS="$CFLAGS $GTK_CFLAGS"
23160 LIBS="$LIBS $GTK_LIBS"
23161 cat >conftest.$ac_ext <<_ACEOF
23162/* confdefs.h. */
23163_ACEOF
23164cat confdefs.h >>conftest.$ac_ext
23165cat >>conftest.$ac_ext <<_ACEOF
23166/* end confdefs.h. */
23167
23168#include <gtk/gtk.h>
23169#include <stdio.h>
23170
23171int
23172main ()
23173{
23174 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23175 ;
23176 return 0;
23177}
23178_ACEOF
23179rm -f conftest.$ac_objext conftest$ac_exeext
23180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23181 (eval $ac_link) 2>conftest.er1
a848cd7e 23182 ac_status=$?
ac1cb8d3
VS
23183 grep -v '^ *+' conftest.er1 >conftest.err
23184 rm -f conftest.er1
23185 cat conftest.err >&5
a848cd7e
SC
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } &&
ac1cb8d3
VS
23188 { ac_try='test -z "$ac_c_werror_flag"
23189 || test ! -s conftest.err'
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; } &&
23195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 echo "*** The test program compiled, but did not run. This usually means"
23202 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23203 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23204 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23205 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23206 echo "*** is required on your system"
23207 echo "***"
23208 echo "*** If you have an old version installed, it is best to remove it, although"
23209 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23210 echo "***"
23211 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23212 echo "*** came with the system with the command"
23213 echo "***"
23214 echo "*** rpm --erase --nodeps gtk gtk-devel"
23215else
23216 echo "$as_me: failed program was:" >&5
23217sed 's/^/| /' conftest.$ac_ext >&5
23218
23219 echo "*** The test program failed to compile or link. See the file config.log for the"
23220 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23221 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23222 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23223fi
ac1cb8d3
VS
23224rm -f conftest.err conftest.$ac_objext \
23225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23226 CFLAGS="$ac_save_CFLAGS"
23227 LIBS="$ac_save_LIBS"
23228 fi
23229 fi
23230 GTK_CFLAGS=""
23231 GTK_LIBS=""
23232 :
23233 fi
23234
23235
23236 rm -f conf.gtktest
23237
23238 fi
23239 fi
23240
23241 if test -z "$wx_cv_lib_gtk"; then
23242 wx_cv_lib_gtk=none
23243 else
23244 wx_cv_cflags_gtk=$GTK_CFLAGS
23245 wx_cv_libs_gtk=$GTK_LIBS
23246 fi
23247
23248
23249fi
23250
23251
23252 if test "$gtk_version_cached" = 1; then
23253 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23254echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23255 fi
23256
23257 case "$wx_cv_lib_gtk" in
23258 2.0) WXGTK20=1
23259 TOOLKIT_VERSION=2
23260 ;;
23261 1.2.7) WXGTK127=1
23262 WXGTK12=1
23263 ;;
23264 1.2.3) WXGTK12=1
23265 ;;
23266 *) { { echo "$as_me:$LINENO: error:
23267Please check that gtk-config is in path, the directory
23268where GTK+ libraries are installed (returned by
23269'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23270equivalent variable and GTK+ is version 1.2.3 or above.
23271 " >&5
23272echo "$as_me: error:
23273Please check that gtk-config is in path, the directory
23274where GTK+ libraries are installed (returned by
23275'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23276equivalent variable and GTK+ is version 1.2.3 or above.
23277 " >&2;}
23278 { (exit 1); exit 1; }; }
23279 ;;
23280 esac
23281
23282 if test "$WXGTK20" = 1; then
23283 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23284
23285 succeeded=no
23286
23287 if test -z "$PKG_CONFIG"; then
23288 # Extract the first word of "pkg-config", so it can be a program name with args.
23289set dummy pkg-config; ac_word=$2
23290echo "$as_me:$LINENO: checking for $ac_word" >&5
23291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23292if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23293 echo $ECHO_N "(cached) $ECHO_C" >&6
23294else
23295 case $PKG_CONFIG in
23296 [\\/]* | ?:[\\/]*)
23297 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23298 ;;
23299 *)
23300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23301for as_dir in $PATH
23302do
23303 IFS=$as_save_IFS
23304 test -z "$as_dir" && as_dir=.
23305 for ac_exec_ext in '' $ac_executable_extensions; do
23306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23307 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23309 break 2
23310 fi
23311done
23312done
23313
23314 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23315 ;;
23316esac
23317fi
23318PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23319
23320if test -n "$PKG_CONFIG"; then
23321 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23322echo "${ECHO_T}$PKG_CONFIG" >&6
23323else
23324 echo "$as_me:$LINENO: result: no" >&5
23325echo "${ECHO_T}no" >&6
23326fi
23327
23328 fi
23329
23330 if test "$PKG_CONFIG" = "no" ; then
23331 echo "*** The pkg-config script could not be found. Make sure it is"
23332 echo "*** in your path, or set the PKG_CONFIG environment variable"
23333 echo "*** to the full path to pkg-config."
23334 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23335 else
23336 PKG_CONFIG_MIN_VERSION=0.9.0
23337 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23338 echo "$as_me:$LINENO: checking for pangoft2" >&5
23339echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23340
23341 if $PKG_CONFIG --exists "pangoft2" ; then
23342 echo "$as_me:$LINENO: result: yes" >&5
23343echo "${ECHO_T}yes" >&6
23344 succeeded=yes
23345
23346 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23347echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23348 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23349 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23350echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23351
23352 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23353echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23354 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23355 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23356echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23357 else
23358 PANGOFT2_CFLAGS=""
23359 PANGOFT2_LIBS=""
23360 ## If we have a custom action on failure, don't print errors, but
23361 ## do set a variable so people can do so.
23362 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23363
23364 fi
23365
23366
23367
23368 else
23369 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23370 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23371 fi
23372 fi
23373
23374 if test $succeeded = yes; then
23375
23376 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23377 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23378
23379 else
23380
23381 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23382echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23383 wxUSE_PRINTING_ARCHITECTURE="no"
23384
23385
23386 fi
23387
23388 fi
304205f1
VS
23389
23390 save_CFLAGS="$CFLAGS"
23391 save_LIBS="$LIBS"
23392 CFLAGS="$CFLAGS $GTK_CFLAGS"
23393 LIBS="$LIBS $GTK_LIBS"
23394
23395for ac_func in pango_font_family_is_monospace
23396do
23397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23398echo "$as_me:$LINENO: checking for $ac_func" >&5
23399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23400if eval "test \"\${$as_ac_var+set}\" = set"; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23402else
23403 cat >conftest.$ac_ext <<_ACEOF
23404/* confdefs.h. */
23405_ACEOF
23406cat confdefs.h >>conftest.$ac_ext
23407cat >>conftest.$ac_ext <<_ACEOF
23408/* end confdefs.h. */
23409/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23411#define $ac_func innocuous_$ac_func
23412
23413/* System header to define __stub macros and hopefully few prototypes,
23414 which can conflict with char $ac_func (); below.
23415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23416 <limits.h> exists even on freestanding compilers. */
23417
23418#ifdef __STDC__
23419# include <limits.h>
23420#else
23421# include <assert.h>
23422#endif
23423
23424#undef $ac_func
23425
23426/* Override any gcc2 internal prototype to avoid an error. */
23427#ifdef __cplusplus
23428extern "C"
23429{
23430#endif
23431/* We use char because int might match the return type of a gcc2
23432 builtin and then its argument prototype would still apply. */
23433char $ac_func ();
23434/* The GNU C library defines this for functions which it implements
23435 to always fail with ENOSYS. Some functions are actually named
23436 something starting with __ and the normal name is an alias. */
23437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23438choke me
23439#else
23440char (*f) () = $ac_func;
23441#endif
23442#ifdef __cplusplus
23443}
23444#endif
23445
23446int
23447main ()
23448{
23449return f != $ac_func;
23450 ;
23451 return 0;
23452}
23453_ACEOF
23454rm -f conftest.$ac_objext conftest$ac_exeext
23455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23456 (eval $ac_link) 2>conftest.er1
23457 ac_status=$?
23458 grep -v '^ *+' conftest.er1 >conftest.err
23459 rm -f conftest.er1
23460 cat conftest.err >&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } &&
23463 { ac_try='test -z "$ac_c_werror_flag"
23464 || test ! -s conftest.err'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23467 ac_status=$?
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; } &&
23470 { ac_try='test -s conftest$ac_exeext'
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23473 ac_status=$?
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; }; then
23476 eval "$as_ac_var=yes"
23477else
23478 echo "$as_me: failed program was:" >&5
23479sed 's/^/| /' conftest.$ac_ext >&5
23480
23481eval "$as_ac_var=no"
23482fi
23483rm -f conftest.err conftest.$ac_objext \
23484 conftest$ac_exeext conftest.$ac_ext
23485fi
23486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23487echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23488if test `eval echo '${'$as_ac_var'}'` = yes; then
23489 cat >>confdefs.h <<_ACEOF
23490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23491_ACEOF
23492
23493fi
23494done
23495
23496 CFLAGS="$save_CFLAGS"
23497 LIBS="$save_LIBS"
a848cd7e
SC
23498 else
23499 if test "$wxUSE_UNICODE" = "yes"; then
23500 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23501echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23502 wxUSE_UNICODE=no
23503 fi
23504 fi
23505
23506 if test "$USE_DARWIN" != 1; then
23507
23508for ac_func in poll
23509do
23510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23511echo "$as_me:$LINENO: checking for $ac_func" >&5
23512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23513if eval "test \"\${$as_ac_var+set}\" = set"; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23515else
23516 cat >conftest.$ac_ext <<_ACEOF
23517/* confdefs.h. */
23518_ACEOF
23519cat confdefs.h >>conftest.$ac_ext
23520cat >>conftest.$ac_ext <<_ACEOF
23521/* end confdefs.h. */
ac1cb8d3
VS
23522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23524#define $ac_func innocuous_$ac_func
23525
a848cd7e
SC
23526/* System header to define __stub macros and hopefully few prototypes,
23527 which can conflict with char $ac_func (); below.
23528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23529 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23530
a848cd7e
SC
23531#ifdef __STDC__
23532# include <limits.h>
23533#else
23534# include <assert.h>
23535#endif
ac1cb8d3
VS
23536
23537#undef $ac_func
23538
a848cd7e
SC
23539/* Override any gcc2 internal prototype to avoid an error. */
23540#ifdef __cplusplus
23541extern "C"
23542{
23543#endif
23544/* We use char because int might match the return type of a gcc2
23545 builtin and then its argument prototype would still apply. */
23546char $ac_func ();
23547/* The GNU C library defines this for functions which it implements
23548 to always fail with ENOSYS. Some functions are actually named
23549 something starting with __ and the normal name is an alias. */
23550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23551choke me
23552#else
23553char (*f) () = $ac_func;
23554#endif
23555#ifdef __cplusplus
23556}
23557#endif
23558
23559int
23560main ()
23561{
23562return f != $ac_func;
23563 ;
23564 return 0;
23565}
23566_ACEOF
23567rm -f conftest.$ac_objext conftest$ac_exeext
23568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23569 (eval $ac_link) 2>conftest.er1
a848cd7e 23570 ac_status=$?
ac1cb8d3
VS
23571 grep -v '^ *+' conftest.er1 >conftest.err
23572 rm -f conftest.er1
23573 cat conftest.err >&5
a848cd7e
SC
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } &&
ac1cb8d3
VS
23576 { ac_try='test -z "$ac_c_werror_flag"
23577 || test ! -s conftest.err'
23578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23579 (eval $ac_try) 2>&5
23580 ac_status=$?
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); }; } &&
23583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23585 (eval $ac_try) 2>&5
23586 ac_status=$?
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; }; then
23589 eval "$as_ac_var=yes"
23590else
23591 echo "$as_me: failed program was:" >&5
23592sed 's/^/| /' conftest.$ac_ext >&5
23593
23594eval "$as_ac_var=no"
23595fi
ac1cb8d3
VS
23596rm -f conftest.err conftest.$ac_objext \
23597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23598fi
23599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23600echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23601if test `eval echo '${'$as_ac_var'}'` = yes; then
23602 cat >>confdefs.h <<_ACEOF
23603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23604_ACEOF
23605
23606fi
23607done
23608
23609 fi
23610
23611 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23612 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23613
23614 AFMINSTALL=afminstall
23615 TOOLKIT=GTK
23616 GUIDIST=GTK_DIST
23617
23618 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23619echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23620if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23621 echo $ECHO_N "(cached) $ECHO_C" >&6
23622else
23623 ac_check_lib_save_LIBS=$LIBS
23624LIBS="-lgdk $LIBS"
23625cat >conftest.$ac_ext <<_ACEOF
23626/* confdefs.h. */
23627_ACEOF
23628cat confdefs.h >>conftest.$ac_ext
23629cat >>conftest.$ac_ext <<_ACEOF
23630/* end confdefs.h. */
23631
23632/* Override any gcc2 internal prototype to avoid an error. */
23633#ifdef __cplusplus
23634extern "C"
23635#endif
23636/* We use char because int might match the return type of a gcc2
23637 builtin and then its argument prototype would still apply. */
23638char gdk_im_open ();
23639int
23640main ()
23641{
23642gdk_im_open ();
23643 ;
23644 return 0;
23645}
23646_ACEOF
23647rm -f conftest.$ac_objext conftest$ac_exeext
23648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23649 (eval $ac_link) 2>conftest.er1
a848cd7e 23650 ac_status=$?
ac1cb8d3
VS
23651 grep -v '^ *+' conftest.er1 >conftest.err
23652 rm -f conftest.er1
23653 cat conftest.err >&5
a848cd7e
SC
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
ac1cb8d3
VS
23656 { ac_try='test -z "$ac_c_werror_flag"
23657 || test ! -s conftest.err'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; } &&
23663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; }; then
23669 ac_cv_lib_gdk_gdk_im_open=yes
23670else
23671 echo "$as_me: failed program was:" >&5
23672sed 's/^/| /' conftest.$ac_ext >&5
23673
23674ac_cv_lib_gdk_gdk_im_open=no
23675fi
ac1cb8d3
VS
23676rm -f conftest.err conftest.$ac_objext \
23677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23678LIBS=$ac_check_lib_save_LIBS
23679fi
23680echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23681echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23682if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23683 cat >>confdefs.h <<\_ACEOF
23684#define HAVE_XIM 1
23685_ACEOF
23686
23687fi
23688
23689
23690
23691 if test "$wxUSE_GPE" = "yes"; then
23692 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23693echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23694
23695ac_find_libraries=
23696for ac_dir in $SEARCH_LIB /usr/lib;
23697 do
23698 for ac_extension in a so sl dylib; do
23699 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23700 ac_find_libraries=$ac_dir
23701 break 2
23702 fi
23703 done
23704 done
23705
23706 if test "$ac_find_libraries" != "" ; then
23707
23708 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23709 result=$?
23710 if test $result = 0; then
23711 ac_path_to_link=""
23712 else
23713 ac_path_to_link=" -L$ac_find_libraries"
23714 fi
23715
23716 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23717 WXGPE=1
23718 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23719echo "${ECHO_T}found at $ac_find_libraries" >&6
23720 else
23721 echo "$as_me:$LINENO: result: not found" >&5
23722echo "${ECHO_T}not found" >&6
23723 fi
23724
23725 fi
23726 fi
23727
23728 if test "$wxUSE_MGL" = 1; then
23729 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23730echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23731 if test "x$MGL_ROOT" = x ; then
23732 echo "$as_me:$LINENO: result: not found" >&5
23733echo "${ECHO_T}not found" >&6
23734 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23735echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23736 { (exit 1); exit 1; }; }
23737 else
23738 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23739echo "${ECHO_T}$MGL_ROOT" >&6
23740 fi
23741
23742 echo "$as_me:$LINENO: checking for libmgl location" >&5
23743echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23744 case "${host}" in
23745 *-*-linux* )
23746 if test "x$wxUSE_SHARED" = xyes ; then
23747 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23748 else
23749 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23750 fi
23751 ;;
23752 *-pc-msdosdjgpp )
23753 mgl_os_candidates="dos32/dj2"
23754 ;;
23755 *)
23756 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23757echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23758 { (exit 1); exit 1; }; }
23759 esac
23760
23761 mgl_lib_type=""
23762 mgl_os=""
23763
23764 for mgl_os_i in $mgl_os_candidates ; do
23765 if test "x$mgl_os" = x ; then
23766 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23767 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23768 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23769 mgl_lib_type=debug
23770 mgl_os=$mgl_os_i
23771 fi
23772 fi
23773 if test "x$mgl_lib_type" = x ; then
23774 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23775 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23776 mgl_lib_type=release
23777 mgl_os=$mgl_os_i
23778 fi
23779 fi
23780 fi
23781 done
23782
23783 if test "x$mgl_os" = x ; then
23784 echo "$as_me:$LINENO: result: not found" >&5
23785echo "${ECHO_T}not found" >&6
23786 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23787echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23788 { (exit 1); exit 1; }; }
23789 fi
23790 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23791echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23792
23793 wxUSE_UNIVERSAL="yes"
23794
23795 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23796 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23797
23798 AFMINSTALL=afminstall
23799 TOOLKIT=MGL
23800 GUIDIST=MGL_DIST
23801 fi
23802
23803 if test "$wxUSE_MICROWIN" = 1; then
23804 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23805echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23806 if test "x$MICROWINDOWS" = x ; then
23807 echo "$as_me:$LINENO: result: not found" >&5
23808echo "${ECHO_T}not found" >&6
23809 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23810echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23811 { (exit 1); exit 1; }; }
23812 else
23813 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23814echo "${ECHO_T}$MICROWINDOWS" >&6
23815 fi
23816
23817 if test -f $MICROWINDOWS/lib/libmwin.a; then
23818 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23819echo "${ECHO_T}MicroWindows' libraries found." >&6
23820 else
23821 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23822echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23823 { (exit 1); exit 1; }; }
23824 fi
23825
23826 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23827 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23828
23829 wxUSE_UNIVERSAL="yes"
23830
23831 AFMINSTALL=afminstall
23832 TOOLKIT=MICROWIN
23833 GUIDIST=MICROWIN_DIST
23834
23835 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23836 fi
23837
74b84332
VS
23838 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
23839 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23840echo $ECHO_N "checking for X... $ECHO_C" >&6
23841
23842
23843# Check whether --with-x or --without-x was given.
23844if test "${with_x+set}" = set; then
23845 withval="$with_x"
23846
23847fi;
23848# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23849if test "x$with_x" = xno; then
23850 # The user explicitly disabled X.
23851 have_x=disabled
23852else
23853 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23854 # Both variables are already set.
23855 have_x=yes
23856 else
23857 if test "${ac_cv_have_x+set}" = set; then
23858 echo $ECHO_N "(cached) $ECHO_C" >&6
23859else
23860 # One or both of the vars are not set, and there is no cached value.
23861ac_x_includes=no ac_x_libraries=no
23862rm -fr conftest.dir
23863if mkdir conftest.dir; then
23864 cd conftest.dir
23865 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23866 cat >Imakefile <<'_ACEOF'
23867acfindx:
23868 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23869_ACEOF
23870 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23872 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23873 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23874 for ac_extension in a so sl; do
23875 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23876 test -f $ac_im_libdir/libX11.$ac_extension; then
23877 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23878 fi
23879 done
23880 # Screen out bogus values from the imake configuration. They are
23881 # bogus both because they are the default anyway, and because
23882 # using them would break gcc on systems where it needs fixed includes.
23883 case $ac_im_incroot in
23884 /usr/include) ;;
23885 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23886 esac
23887 case $ac_im_usrlibdir in
23888 /usr/lib | /lib) ;;
23889 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23890 esac
23891 fi
23892 cd ..
23893 rm -fr conftest.dir
23894fi
23895
23896# Standard set of common directories for X headers.
23897# Check X11 before X11Rn because it is often a symlink to the current release.
23898ac_x_header_dirs='
23899/usr/X11/include
23900/usr/X11R6/include
23901/usr/X11R5/include
23902/usr/X11R4/include
23903
23904/usr/include/X11
23905/usr/include/X11R6
23906/usr/include/X11R5
23907/usr/include/X11R4
23908
23909/usr/local/X11/include
23910/usr/local/X11R6/include
23911/usr/local/X11R5/include
23912/usr/local/X11R4/include
23913
23914/usr/local/include/X11
23915/usr/local/include/X11R6
23916/usr/local/include/X11R5
23917/usr/local/include/X11R4
23918
23919/usr/X386/include
23920/usr/x386/include
23921/usr/XFree86/include/X11
23922
23923/usr/include
23924/usr/local/include
23925/usr/unsupported/include
23926/usr/athena/include
23927/usr/local/x11r5/include
23928/usr/lpp/Xamples/include
23929
23930/usr/openwin/include
23931/usr/openwin/share/include'
23932
23933if test "$ac_x_includes" = no; then
23934 # Guess where to find include files, by looking for Intrinsic.h.
23935 # First, try using that file with no special directory specified.
23936 cat >conftest.$ac_ext <<_ACEOF
23937/* confdefs.h. */
23938_ACEOF
23939cat confdefs.h >>conftest.$ac_ext
23940cat >>conftest.$ac_ext <<_ACEOF
23941/* end confdefs.h. */
23942#include <X11/Intrinsic.h>
23943_ACEOF
23944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23946 ac_status=$?
23947 grep -v '^ *+' conftest.er1 >conftest.err
23948 rm -f conftest.er1
23949 cat conftest.err >&5
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } >/dev/null; then
23952 if test -s conftest.err; then
23953 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23955 else
23956 ac_cpp_err=
23957 fi
23958else
23959 ac_cpp_err=yes
23960fi
23961if test -z "$ac_cpp_err"; then
23962 # We can compile using X headers with no special include directory.
23963ac_x_includes=
23964else
23965 echo "$as_me: failed program was:" >&5
23966sed 's/^/| /' conftest.$ac_ext >&5
23967
23968 for ac_dir in $ac_x_header_dirs; do
23969 if test -r "$ac_dir/X11/Intrinsic.h"; then
23970 ac_x_includes=$ac_dir
23971 break
23972 fi
23973done
23974fi
23975rm -f conftest.err conftest.$ac_ext
23976fi # $ac_x_includes = no
23977
23978if test "$ac_x_libraries" = no; then
23979 # Check for the libraries.
23980 # See if we find them without any special options.
23981 # Don't add to $LIBS permanently.
23982 ac_save_LIBS=$LIBS
23983 LIBS="-lXt $LIBS"
23984 cat >conftest.$ac_ext <<_ACEOF
23985/* confdefs.h. */
23986_ACEOF
23987cat confdefs.h >>conftest.$ac_ext
23988cat >>conftest.$ac_ext <<_ACEOF
23989/* end confdefs.h. */
23990#include <X11/Intrinsic.h>
23991int
23992main ()
23993{
23994XtMalloc (0)
23995 ;
23996 return 0;
23997}
23998_ACEOF
23999rm -f conftest.$ac_objext conftest$ac_exeext
24000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24001 (eval $ac_link) 2>conftest.er1
a848cd7e 24002 ac_status=$?
ac1cb8d3
VS
24003 grep -v '^ *+' conftest.er1 >conftest.err
24004 rm -f conftest.er1
24005 cat conftest.err >&5
a848cd7e
SC
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); } &&
ac1cb8d3
VS
24008 { ac_try='test -z "$ac_c_werror_flag"
24009 || test ! -s conftest.err'
24010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24011 (eval $ac_try) 2>&5
24012 ac_status=$?
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); }; } &&
24015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 LIBS=$ac_save_LIBS
24022# We can link X programs with no special library path.
24023ac_x_libraries=
24024else
24025 echo "$as_me: failed program was:" >&5
24026sed 's/^/| /' conftest.$ac_ext >&5
24027
24028LIBS=$ac_save_LIBS
24029for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24030do
24031 # Don't even attempt the hair of trying to link an X program!
24032 for ac_extension in a so sl; do
24033 if test -r $ac_dir/libXt.$ac_extension; then
24034 ac_x_libraries=$ac_dir
24035 break 2
24036 fi
24037 done
24038done
24039fi
ac1cb8d3
VS
24040rm -f conftest.err conftest.$ac_objext \
24041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24042fi # $ac_x_libraries = no
24043
24044if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24045 # Didn't find X anywhere. Cache the known absence of X.
24046 ac_cv_have_x="have_x=no"
24047else
24048 # Record where we found X for the cache.
24049 ac_cv_have_x="have_x=yes \
ac1cb8d3 24050 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24051fi
24052fi
24053
24054 fi
24055 eval "$ac_cv_have_x"
24056fi # $with_x != no
24057
24058if test "$have_x" != yes; then
24059 echo "$as_me:$LINENO: result: $have_x" >&5
24060echo "${ECHO_T}$have_x" >&6
24061 no_x=yes
24062else
24063 # If each of the values was on the command line, it overrides each guess.
24064 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24065 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24066 # Update the cache value to reflect the command line values.
24067 ac_cv_have_x="have_x=yes \
24068 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24069 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24070echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
24071fi
24072
24073if test "$no_x" = yes; then
24074 # Not all programs may use this symbol, but it does not hurt to define it.
24075
24076cat >>confdefs.h <<\_ACEOF
24077#define X_DISPLAY_MISSING 1
24078_ACEOF
24079
24080 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24081else
24082 if test -n "$x_includes"; then
24083 X_CFLAGS="$X_CFLAGS -I$x_includes"
24084 fi
24085
24086 # It would also be nice to do this for all -L options, not just this one.
24087 if test -n "$x_libraries"; then
24088 X_LIBS="$X_LIBS -L$x_libraries"
24089 # For Solaris; some versions of Sun CC require a space after -R and
24090 # others require no space. Words are not sufficient . . . .
24091 case `(uname -sr) 2>/dev/null` in
24092 "SunOS 5"*)
24093 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24094echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24095 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24096 cat >conftest.$ac_ext <<_ACEOF
24097/* confdefs.h. */
24098_ACEOF
24099cat confdefs.h >>conftest.$ac_ext
24100cat >>conftest.$ac_ext <<_ACEOF
24101/* end confdefs.h. */
24102
24103int
24104main ()
24105{
24106
24107 ;
24108 return 0;
24109}
24110_ACEOF
24111rm -f conftest.$ac_objext conftest$ac_exeext
24112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24113 (eval $ac_link) 2>conftest.er1
a848cd7e 24114 ac_status=$?
ac1cb8d3
VS
24115 grep -v '^ *+' conftest.er1 >conftest.err
24116 rm -f conftest.er1
24117 cat conftest.err >&5
a848cd7e
SC
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); } &&
ac1cb8d3
VS
24120 { ac_try='test -z "$ac_c_werror_flag"
24121 || test ! -s conftest.err'
24122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; } &&
24127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); }; }; then
24133 ac_R_nospace=yes
24134else
24135 echo "$as_me: failed program was:" >&5
24136sed 's/^/| /' conftest.$ac_ext >&5
24137
24138ac_R_nospace=no
24139fi
ac1cb8d3
VS
24140rm -f conftest.err conftest.$ac_objext \
24141 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24142 if test $ac_R_nospace = yes; then
24143 echo "$as_me:$LINENO: result: no" >&5
24144echo "${ECHO_T}no" >&6
24145 X_LIBS="$X_LIBS -R$x_libraries"
24146 else
24147 LIBS="$ac_xsave_LIBS -R $x_libraries"
24148 cat >conftest.$ac_ext <<_ACEOF
24149/* confdefs.h. */
24150_ACEOF
24151cat confdefs.h >>conftest.$ac_ext
24152cat >>conftest.$ac_ext <<_ACEOF
24153/* end confdefs.h. */
24154
24155int
24156main ()
24157{
24158
24159 ;
24160 return 0;
24161}
24162_ACEOF
24163rm -f conftest.$ac_objext conftest$ac_exeext
24164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24165 (eval $ac_link) 2>conftest.er1
a848cd7e 24166 ac_status=$?
ac1cb8d3
VS
24167 grep -v '^ *+' conftest.er1 >conftest.err
24168 rm -f conftest.er1
24169 cat conftest.err >&5
a848cd7e
SC
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); } &&
ac1cb8d3
VS
24172 { ac_try='test -z "$ac_c_werror_flag"
24173 || test ! -s conftest.err'
24174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24175 (eval $ac_try) 2>&5
24176 ac_status=$?
24177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); }; } &&
24179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24181 (eval $ac_try) 2>&5
24182 ac_status=$?
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); }; }; then
24185 ac_R_space=yes
24186else
24187 echo "$as_me: failed program was:" >&5
24188sed 's/^/| /' conftest.$ac_ext >&5
24189
24190ac_R_space=no
24191fi
ac1cb8d3
VS
24192rm -f conftest.err conftest.$ac_objext \
24193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24194 if test $ac_R_space = yes; then
24195 echo "$as_me:$LINENO: result: yes" >&5
24196echo "${ECHO_T}yes" >&6
24197 X_LIBS="$X_LIBS -R $x_libraries"
24198 else
24199 echo "$as_me:$LINENO: result: neither works" >&5
24200echo "${ECHO_T}neither works" >&6
24201 fi
24202 fi
24203 LIBS=$ac_xsave_LIBS
24204 esac
24205 fi
24206
24207 # Check for system-dependent libraries X programs must link with.
24208 # Do this before checking for the system-independent R6 libraries
24209 # (-lICE), since we may need -lsocket or whatever for X linking.
24210
24211 if test "$ISC" = yes; then
24212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24213 else
24214 # Martyn Johnson says this is needed for Ultrix, if the X
24215 # libraries were built with DECnet support. And Karl Berry says
24216 # the Alpha needs dnet_stub (dnet does not exist).
24217 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24218 cat >conftest.$ac_ext <<_ACEOF
24219/* confdefs.h. */
24220_ACEOF
24221cat confdefs.h >>conftest.$ac_ext
24222cat >>conftest.$ac_ext <<_ACEOF
24223/* end confdefs.h. */
24224
24225/* Override any gcc2 internal prototype to avoid an error. */
24226#ifdef __cplusplus
24227extern "C"
24228#endif
24229/* We use char because int might match the return type of a gcc2
24230 builtin and then its argument prototype would still apply. */
24231char XOpenDisplay ();
24232int
24233main ()
24234{
24235XOpenDisplay ();
24236 ;
24237 return 0;
24238}
24239_ACEOF
24240rm -f conftest.$ac_objext conftest$ac_exeext
24241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24242 (eval $ac_link) 2>conftest.er1
a848cd7e 24243 ac_status=$?
ac1cb8d3
VS
24244 grep -v '^ *+' conftest.er1 >conftest.err
24245 rm -f conftest.er1
24246 cat conftest.err >&5
a848cd7e
SC
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } &&
ac1cb8d3
VS
24249 { ac_try='test -z "$ac_c_werror_flag"
24250 || test ! -s conftest.err'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24253 ac_status=$?
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; } &&
24256 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24259 ac_status=$?
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; }; then
24262 :
24263else
24264 echo "$as_me: failed program was:" >&5
24265sed 's/^/| /' conftest.$ac_ext >&5
24266
24267echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24268echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24269if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24270 echo $ECHO_N "(cached) $ECHO_C" >&6
24271else
24272 ac_check_lib_save_LIBS=$LIBS
24273LIBS="-ldnet $LIBS"
24274cat >conftest.$ac_ext <<_ACEOF
24275/* confdefs.h. */
24276_ACEOF
24277cat confdefs.h >>conftest.$ac_ext
24278cat >>conftest.$ac_ext <<_ACEOF
24279/* end confdefs.h. */
24280
24281/* Override any gcc2 internal prototype to avoid an error. */
24282#ifdef __cplusplus
24283extern "C"
24284#endif
24285/* We use char because int might match the return type of a gcc2
24286 builtin and then its argument prototype would still apply. */
24287char dnet_ntoa ();
24288int
24289main ()
24290{
24291dnet_ntoa ();
24292 ;
24293 return 0;
24294}
24295_ACEOF
24296rm -f conftest.$ac_objext conftest$ac_exeext
24297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24298 (eval $ac_link) 2>conftest.er1
a848cd7e 24299 ac_status=$?
ac1cb8d3
VS
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
a848cd7e
SC
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } &&
ac1cb8d3
VS
24305 { ac_try='test -z "$ac_c_werror_flag"
24306 || test ! -s conftest.err'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; } &&
24312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24314 (eval $ac_try) 2>&5
24315 ac_status=$?
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }; }; then
24318 ac_cv_lib_dnet_dnet_ntoa=yes
24319else
24320 echo "$as_me: failed program was:" >&5
24321sed 's/^/| /' conftest.$ac_ext >&5
24322
24323ac_cv_lib_dnet_dnet_ntoa=no
24324fi
ac1cb8d3
VS
24325rm -f conftest.err conftest.$ac_objext \
24326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24327LIBS=$ac_check_lib_save_LIBS
24328fi
24329echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24330echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24331if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24332 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24333fi
24334
24335 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24336 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24337echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24338if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24339 echo $ECHO_N "(cached) $ECHO_C" >&6
24340else
24341 ac_check_lib_save_LIBS=$LIBS
24342LIBS="-ldnet_stub $LIBS"
24343cat >conftest.$ac_ext <<_ACEOF
24344/* confdefs.h. */
24345_ACEOF
24346cat confdefs.h >>conftest.$ac_ext
24347cat >>conftest.$ac_ext <<_ACEOF
24348/* end confdefs.h. */
24349
24350/* Override any gcc2 internal prototype to avoid an error. */
24351#ifdef __cplusplus
24352extern "C"
24353#endif
24354/* We use char because int might match the return type of a gcc2
24355 builtin and then its argument prototype would still apply. */
24356char dnet_ntoa ();
24357int
24358main ()
24359{
24360dnet_ntoa ();
24361 ;
24362 return 0;
24363}
24364_ACEOF
24365rm -f conftest.$ac_objext conftest$ac_exeext
24366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24367 (eval $ac_link) 2>conftest.er1
a848cd7e 24368 ac_status=$?
ac1cb8d3
VS
24369 grep -v '^ *+' conftest.er1 >conftest.err
24370 rm -f conftest.er1
24371 cat conftest.err >&5
a848cd7e
SC
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } &&
ac1cb8d3
VS
24374 { ac_try='test -z "$ac_c_werror_flag"
24375 || test ! -s conftest.err'
24376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377 (eval $ac_try) 2>&5
24378 ac_status=$?
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); }; } &&
24381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383 (eval $ac_try) 2>&5
24384 ac_status=$?
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; }; then
24387 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24388else
24389 echo "$as_me: failed program was:" >&5
24390sed 's/^/| /' conftest.$ac_ext >&5
24391
24392ac_cv_lib_dnet_stub_dnet_ntoa=no
24393fi
ac1cb8d3
VS
24394rm -f conftest.err conftest.$ac_objext \
24395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24396LIBS=$ac_check_lib_save_LIBS
24397fi
24398echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24399echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24400if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24401 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24402fi
24403
24404 fi
24405fi
ac1cb8d3
VS
24406rm -f conftest.err conftest.$ac_objext \
24407 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24408 LIBS="$ac_xsave_LIBS"
24409
24410 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24411 # to get the SysV transport functions.
24412 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24413 # needs -lnsl.
24414 # The nsl library prevents programs from opening the X display
24415 # on Irix 5.2, according to T.E. Dickey.
24416 # The functions gethostbyname, getservbyname, and inet_addr are
24417 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24418 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24419echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24420if test "${ac_cv_func_gethostbyname+set}" = set; then
24421 echo $ECHO_N "(cached) $ECHO_C" >&6
24422else
24423 cat >conftest.$ac_ext <<_ACEOF
24424/* confdefs.h. */
24425_ACEOF
24426cat confdefs.h >>conftest.$ac_ext
24427cat >>conftest.$ac_ext <<_ACEOF
24428/* end confdefs.h. */
ac1cb8d3
VS
24429/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24431#define gethostbyname innocuous_gethostbyname
24432
a848cd7e
SC
24433/* System header to define __stub macros and hopefully few prototypes,
24434 which can conflict with char gethostbyname (); below.
24435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24436 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24437
a848cd7e
SC
24438#ifdef __STDC__
24439# include <limits.h>
24440#else
24441# include <assert.h>
24442#endif
ac1cb8d3
VS
24443
24444#undef gethostbyname
24445
a848cd7e
SC
24446/* Override any gcc2 internal prototype to avoid an error. */
24447#ifdef __cplusplus
24448extern "C"
24449{
24450#endif
24451/* We use char because int might match the return type of a gcc2
24452 builtin and then its argument prototype would still apply. */
24453char gethostbyname ();
24454/* The GNU C library defines this for functions which it implements
24455 to always fail with ENOSYS. Some functions are actually named
24456 something starting with __ and the normal name is an alias. */
24457#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24458choke me
24459#else
24460char (*f) () = gethostbyname;
24461#endif
24462#ifdef __cplusplus
24463}
24464#endif
24465
24466int
24467main ()
24468{
24469return f != gethostbyname;
24470 ;
24471 return 0;
24472}
24473_ACEOF
24474rm -f conftest.$ac_objext conftest$ac_exeext
24475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24476 (eval $ac_link) 2>conftest.er1
a848cd7e 24477 ac_status=$?
ac1cb8d3
VS
24478 grep -v '^ *+' conftest.er1 >conftest.err
24479 rm -f conftest.er1
24480 cat conftest.err >&5
a848cd7e
SC
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); } &&
ac1cb8d3
VS
24483 { ac_try='test -z "$ac_c_werror_flag"
24484 || test ! -s conftest.err'
24485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486 (eval $ac_try) 2>&5
24487 ac_status=$?
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; } &&
24490 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24492 (eval $ac_try) 2>&5
24493 ac_status=$?
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); }; }; then
24496 ac_cv_func_gethostbyname=yes
24497else
24498 echo "$as_me: failed program was:" >&5
24499sed 's/^/| /' conftest.$ac_ext >&5
24500
24501ac_cv_func_gethostbyname=no
24502fi
ac1cb8d3
VS
24503rm -f conftest.err conftest.$ac_objext \
24504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24505fi
24506echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24507echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24508
24509 if test $ac_cv_func_gethostbyname = no; then
24510 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24511echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24512if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24513 echo $ECHO_N "(cached) $ECHO_C" >&6
24514else
24515 ac_check_lib_save_LIBS=$LIBS
24516LIBS="-lnsl $LIBS"
24517cat >conftest.$ac_ext <<_ACEOF
24518/* confdefs.h. */
24519_ACEOF
24520cat confdefs.h >>conftest.$ac_ext
24521cat >>conftest.$ac_ext <<_ACEOF
24522/* end confdefs.h. */
24523
24524/* Override any gcc2 internal prototype to avoid an error. */
24525#ifdef __cplusplus
24526extern "C"
24527#endif
24528/* We use char because int might match the return type of a gcc2
24529 builtin and then its argument prototype would still apply. */
24530char gethostbyname ();
24531int
24532main ()
24533{
24534gethostbyname ();
24535 ;
24536 return 0;
24537}
24538_ACEOF
24539rm -f conftest.$ac_objext conftest$ac_exeext
24540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24541 (eval $ac_link) 2>conftest.er1
24542 ac_status=$?
24543 grep -v '^ *+' conftest.er1 >conftest.err
24544 rm -f conftest.er1
24545 cat conftest.err >&5
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); } &&
24548 { ac_try='test -z "$ac_c_werror_flag"
24549 || test ! -s conftest.err'
24550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24551 (eval $ac_try) 2>&5
24552 ac_status=$?
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); }; } &&
24555 { ac_try='test -s conftest$ac_exeext'
24556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24557 (eval $ac_try) 2>&5
24558 ac_status=$?
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; }; then
24561 ac_cv_lib_nsl_gethostbyname=yes
24562else
24563 echo "$as_me: failed program was:" >&5
24564sed 's/^/| /' conftest.$ac_ext >&5
24565
24566ac_cv_lib_nsl_gethostbyname=no
24567fi
24568rm -f conftest.err conftest.$ac_objext \
24569 conftest$ac_exeext conftest.$ac_ext
24570LIBS=$ac_check_lib_save_LIBS
24571fi
24572echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24573echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24574if test $ac_cv_lib_nsl_gethostbyname = yes; then
24575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24576fi
24577
24578 if test $ac_cv_lib_nsl_gethostbyname = no; then
24579 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24580echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24581if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24582 echo $ECHO_N "(cached) $ECHO_C" >&6
24583else
24584 ac_check_lib_save_LIBS=$LIBS
24585LIBS="-lbsd $LIBS"
24586cat >conftest.$ac_ext <<_ACEOF
24587/* confdefs.h. */
24588_ACEOF
24589cat confdefs.h >>conftest.$ac_ext
24590cat >>conftest.$ac_ext <<_ACEOF
24591/* end confdefs.h. */
24592
24593/* Override any gcc2 internal prototype to avoid an error. */
24594#ifdef __cplusplus
24595extern "C"
24596#endif
24597/* We use char because int might match the return type of a gcc2
24598 builtin and then its argument prototype would still apply. */
24599char gethostbyname ();
24600int
24601main ()
24602{
24603gethostbyname ();
24604 ;
24605 return 0;
24606}
24607_ACEOF
24608rm -f conftest.$ac_objext conftest$ac_exeext
24609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24610 (eval $ac_link) 2>conftest.er1
a848cd7e 24611 ac_status=$?
ac1cb8d3
VS
24612 grep -v '^ *+' conftest.er1 >conftest.err
24613 rm -f conftest.er1
24614 cat conftest.err >&5
a848cd7e
SC
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } &&
ac1cb8d3
VS
24617 { ac_try='test -z "$ac_c_werror_flag"
24618 || test ! -s conftest.err'
a848cd7e
SC
24619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620 (eval $ac_try) 2>&5
24621 ac_status=$?
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24623 (exit $ac_status); }; } &&
24624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626 (eval $ac_try) 2>&5
24627 ac_status=$?
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; }; then
24630 ac_cv_lib_bsd_gethostbyname=yes
24631else
24632 echo "$as_me: failed program was:" >&5
24633sed 's/^/| /' conftest.$ac_ext >&5
24634
24635ac_cv_lib_bsd_gethostbyname=no
24636fi
ac1cb8d3
VS
24637rm -f conftest.err conftest.$ac_objext \
24638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24639LIBS=$ac_check_lib_save_LIBS
24640fi
24641echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24642echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24643if test $ac_cv_lib_bsd_gethostbyname = yes; then
24644 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24645fi
24646
24647 fi
24648 fi
24649
24650 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24651 # socket/setsockopt and other routines are undefined under SCO ODT
24652 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24653 # on later versions), says Simon Leinen: it contains gethostby*
24654 # variants that don't use the name server (or something). -lsocket
24655 # must be given before -lnsl if both are needed. We assume that
24656 # if connect needs -lnsl, so does gethostbyname.
24657 echo "$as_me:$LINENO: checking for connect" >&5
24658echo $ECHO_N "checking for connect... $ECHO_C" >&6
24659if test "${ac_cv_func_connect+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24661else
24662 cat >conftest.$ac_ext <<_ACEOF
24663/* confdefs.h. */
24664_ACEOF
24665cat confdefs.h >>conftest.$ac_ext
24666cat >>conftest.$ac_ext <<_ACEOF
24667/* end confdefs.h. */
ac1cb8d3
VS
24668/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24670#define connect innocuous_connect
24671
a848cd7e
SC
24672/* System header to define __stub macros and hopefully few prototypes,
24673 which can conflict with char connect (); below.
24674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24675 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24676
a848cd7e
SC
24677#ifdef __STDC__
24678# include <limits.h>
24679#else
24680# include <assert.h>
24681#endif
ac1cb8d3
VS
24682
24683#undef connect
24684
a848cd7e
SC
24685/* Override any gcc2 internal prototype to avoid an error. */
24686#ifdef __cplusplus
24687extern "C"
24688{
24689#endif
24690/* We use char because int might match the return type of a gcc2
24691 builtin and then its argument prototype would still apply. */
24692char connect ();
24693/* The GNU C library defines this for functions which it implements
24694 to always fail with ENOSYS. Some functions are actually named
24695 something starting with __ and the normal name is an alias. */
24696#if defined (__stub_connect) || defined (__stub___connect)
24697choke me
24698#else
24699char (*f) () = connect;
24700#endif
24701#ifdef __cplusplus
24702}
24703#endif
24704
24705int
24706main ()
24707{
24708return f != connect;
24709 ;
24710 return 0;
24711}
24712_ACEOF
24713rm -f conftest.$ac_objext conftest$ac_exeext
24714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24715 (eval $ac_link) 2>conftest.er1
a848cd7e 24716 ac_status=$?
ac1cb8d3
VS
24717 grep -v '^ *+' conftest.er1 >conftest.err
24718 rm -f conftest.er1
24719 cat conftest.err >&5
a848cd7e
SC
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } &&
ac1cb8d3
VS
24722 { ac_try='test -z "$ac_c_werror_flag"
24723 || test ! -s conftest.err'
24724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725 (eval $ac_try) 2>&5
24726 ac_status=$?
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); }; } &&
24729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; }; then
24735 ac_cv_func_connect=yes
24736else
24737 echo "$as_me: failed program was:" >&5
24738sed 's/^/| /' conftest.$ac_ext >&5
24739
24740ac_cv_func_connect=no
24741fi
ac1cb8d3
VS
24742rm -f conftest.err conftest.$ac_objext \
24743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24744fi
24745echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24746echo "${ECHO_T}$ac_cv_func_connect" >&6
24747
24748 if test $ac_cv_func_connect = no; then
24749 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24750echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24751if test "${ac_cv_lib_socket_connect+set}" = set; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24753else
24754 ac_check_lib_save_LIBS=$LIBS
24755LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24756cat >conftest.$ac_ext <<_ACEOF
24757/* confdefs.h. */
24758_ACEOF
24759cat confdefs.h >>conftest.$ac_ext
24760cat >>conftest.$ac_ext <<_ACEOF
24761/* end confdefs.h. */
24762
24763/* Override any gcc2 internal prototype to avoid an error. */
24764#ifdef __cplusplus
24765extern "C"
24766#endif
24767/* We use char because int might match the return type of a gcc2
24768 builtin and then its argument prototype would still apply. */
24769char connect ();
24770int
24771main ()
24772{
24773connect ();
24774 ;
24775 return 0;
24776}
24777_ACEOF
24778rm -f conftest.$ac_objext conftest$ac_exeext
24779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24780 (eval $ac_link) 2>conftest.er1
a848cd7e 24781 ac_status=$?
ac1cb8d3
VS
24782 grep -v '^ *+' conftest.er1 >conftest.err
24783 rm -f conftest.er1
24784 cat conftest.err >&5
a848cd7e
SC
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } &&
ac1cb8d3
VS
24787 { ac_try='test -z "$ac_c_werror_flag"
24788 || test ! -s conftest.err'
24789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); }; } &&
24794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24796 (eval $ac_try) 2>&5
24797 ac_status=$?
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); }; }; then
24800 ac_cv_lib_socket_connect=yes
24801else
24802 echo "$as_me: failed program was:" >&5
24803sed 's/^/| /' conftest.$ac_ext >&5
24804
24805ac_cv_lib_socket_connect=no
24806fi
ac1cb8d3
VS
24807rm -f conftest.err conftest.$ac_objext \
24808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24809LIBS=$ac_check_lib_save_LIBS
24810fi
24811echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24812echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24813if test $ac_cv_lib_socket_connect = yes; then
24814 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24815fi
24816
24817 fi
24818
24819 # Guillermo Gomez says -lposix is necessary on A/UX.
24820 echo "$as_me:$LINENO: checking for remove" >&5
24821echo $ECHO_N "checking for remove... $ECHO_C" >&6
24822if test "${ac_cv_func_remove+set}" = set; then
24823 echo $ECHO_N "(cached) $ECHO_C" >&6
24824else
24825 cat >conftest.$ac_ext <<_ACEOF
24826/* confdefs.h. */
24827_ACEOF
24828cat confdefs.h >>conftest.$ac_ext
24829cat >>conftest.$ac_ext <<_ACEOF
24830/* end confdefs.h. */
ac1cb8d3
VS
24831/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24833#define remove innocuous_remove
24834
a848cd7e
SC
24835/* System header to define __stub macros and hopefully few prototypes,
24836 which can conflict with char remove (); below.
24837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24839
a848cd7e
SC
24840#ifdef __STDC__
24841# include <limits.h>
24842#else
24843# include <assert.h>
24844#endif
ac1cb8d3
VS
24845
24846#undef remove
24847
a848cd7e
SC
24848/* Override any gcc2 internal prototype to avoid an error. */
24849#ifdef __cplusplus
24850extern "C"
24851{
24852#endif
24853/* We use char because int might match the return type of a gcc2
24854 builtin and then its argument prototype would still apply. */
24855char remove ();
24856/* The GNU C library defines this for functions which it implements
24857 to always fail with ENOSYS. Some functions are actually named
24858 something starting with __ and the normal name is an alias. */
24859#if defined (__stub_remove) || defined (__stub___remove)
24860choke me
24861#else
24862char (*f) () = remove;
24863#endif
24864#ifdef __cplusplus
24865}
24866#endif
24867
24868int
24869main ()
24870{
24871return f != remove;
24872 ;
24873 return 0;
24874}
24875_ACEOF
24876rm -f conftest.$ac_objext conftest$ac_exeext
24877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24878 (eval $ac_link) 2>conftest.er1
a848cd7e 24879 ac_status=$?
ac1cb8d3
VS
24880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
a848cd7e
SC
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } &&
ac1cb8d3
VS
24885 { ac_try='test -z "$ac_c_werror_flag"
24886 || test ! -s conftest.err'
24887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); }; } &&
24892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
24898 ac_cv_func_remove=yes
24899else
24900 echo "$as_me: failed program was:" >&5
24901sed 's/^/| /' conftest.$ac_ext >&5
24902
24903ac_cv_func_remove=no
24904fi
ac1cb8d3
VS
24905rm -f conftest.err conftest.$ac_objext \
24906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24907fi
24908echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24909echo "${ECHO_T}$ac_cv_func_remove" >&6
24910
24911 if test $ac_cv_func_remove = no; then
24912 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24913echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24914if test "${ac_cv_lib_posix_remove+set}" = set; then
24915 echo $ECHO_N "(cached) $ECHO_C" >&6
24916else
24917 ac_check_lib_save_LIBS=$LIBS
24918LIBS="-lposix $LIBS"
24919cat >conftest.$ac_ext <<_ACEOF
24920/* confdefs.h. */
24921_ACEOF
24922cat confdefs.h >>conftest.$ac_ext
24923cat >>conftest.$ac_ext <<_ACEOF
24924/* end confdefs.h. */
24925
24926/* Override any gcc2 internal prototype to avoid an error. */
24927#ifdef __cplusplus
24928extern "C"
24929#endif
24930/* We use char because int might match the return type of a gcc2
24931 builtin and then its argument prototype would still apply. */
24932char remove ();
24933int
24934main ()
24935{
24936remove ();
24937 ;
24938 return 0;
24939}
24940_ACEOF
24941rm -f conftest.$ac_objext conftest$ac_exeext
24942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24943 (eval $ac_link) 2>conftest.er1
a848cd7e 24944 ac_status=$?
ac1cb8d3
VS
24945 grep -v '^ *+' conftest.er1 >conftest.err
24946 rm -f conftest.er1
24947 cat conftest.err >&5
a848cd7e
SC
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } &&
ac1cb8d3
VS
24950 { ac_try='test -z "$ac_c_werror_flag"
24951 || test ! -s conftest.err'
24952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24953 (eval $ac_try) 2>&5
24954 ac_status=$?
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); }; } &&
24957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959 (eval $ac_try) 2>&5
24960 ac_status=$?
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); }; }; then
24963 ac_cv_lib_posix_remove=yes
24964else
24965 echo "$as_me: failed program was:" >&5
24966sed 's/^/| /' conftest.$ac_ext >&5
24967
24968ac_cv_lib_posix_remove=no
24969fi
ac1cb8d3
VS
24970rm -f conftest.err conftest.$ac_objext \
24971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24972LIBS=$ac_check_lib_save_LIBS
24973fi
24974echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24975echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24976if test $ac_cv_lib_posix_remove = yes; then
24977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24978fi
24979
24980 fi
24981
24982 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24983 echo "$as_me:$LINENO: checking for shmat" >&5
24984echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24985if test "${ac_cv_func_shmat+set}" = set; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24987else
24988 cat >conftest.$ac_ext <<_ACEOF
24989/* confdefs.h. */
24990_ACEOF
24991cat confdefs.h >>conftest.$ac_ext
24992cat >>conftest.$ac_ext <<_ACEOF
24993/* end confdefs.h. */
ac1cb8d3
VS
24994/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24996#define shmat innocuous_shmat
24997
a848cd7e
SC
24998/* System header to define __stub macros and hopefully few prototypes,
24999 which can conflict with char shmat (); below.
25000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25001 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25002
a848cd7e
SC
25003#ifdef __STDC__
25004# include <limits.h>
25005#else
25006# include <assert.h>
25007#endif
ac1cb8d3
VS
25008
25009#undef shmat
25010
a848cd7e
SC
25011/* Override any gcc2 internal prototype to avoid an error. */
25012#ifdef __cplusplus
25013extern "C"
25014{
25015#endif
25016/* We use char because int might match the return type of a gcc2
25017 builtin and then its argument prototype would still apply. */
25018char shmat ();
25019/* The GNU C library defines this for functions which it implements
25020 to always fail with ENOSYS. Some functions are actually named
25021 something starting with __ and the normal name is an alias. */
25022#if defined (__stub_shmat) || defined (__stub___shmat)
25023choke me
25024#else
25025char (*f) () = shmat;
25026#endif
25027#ifdef __cplusplus
25028}
25029#endif
25030
25031int
25032main ()
25033{
25034return f != shmat;
25035 ;
25036 return 0;
25037}
25038_ACEOF
25039rm -f conftest.$ac_objext conftest$ac_exeext
25040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25041 (eval $ac_link) 2>conftest.er1
a848cd7e 25042 ac_status=$?
ac1cb8d3
VS
25043 grep -v '^ *+' conftest.er1 >conftest.err
25044 rm -f conftest.er1
25045 cat conftest.err >&5
a848cd7e
SC
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } &&
ac1cb8d3
VS
25048 { ac_try='test -z "$ac_c_werror_flag"
25049 || test ! -s conftest.err'
25050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; } &&
25055 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25057 (eval $ac_try) 2>&5
25058 ac_status=$?
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); }; }; then
25061 ac_cv_func_shmat=yes
25062else
25063 echo "$as_me: failed program was:" >&5
25064sed 's/^/| /' conftest.$ac_ext >&5
25065
25066ac_cv_func_shmat=no
25067fi
ac1cb8d3
VS
25068rm -f conftest.err conftest.$ac_objext \
25069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25070fi
25071echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25072echo "${ECHO_T}$ac_cv_func_shmat" >&6
25073
25074 if test $ac_cv_func_shmat = no; then
25075 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25076echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25077if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
25079else
25080 ac_check_lib_save_LIBS=$LIBS
25081LIBS="-lipc $LIBS"
25082cat >conftest.$ac_ext <<_ACEOF
25083/* confdefs.h. */
25084_ACEOF
25085cat confdefs.h >>conftest.$ac_ext
25086cat >>conftest.$ac_ext <<_ACEOF
25087/* end confdefs.h. */
25088
25089/* Override any gcc2 internal prototype to avoid an error. */
25090#ifdef __cplusplus
25091extern "C"
25092#endif
25093/* We use char because int might match the return type of a gcc2
25094 builtin and then its argument prototype would still apply. */
25095char shmat ();
25096int
25097main ()
25098{
25099shmat ();
25100 ;
25101 return 0;
25102}
25103_ACEOF
25104rm -f conftest.$ac_objext conftest$ac_exeext
25105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25106 (eval $ac_link) 2>conftest.er1
a848cd7e 25107 ac_status=$?
ac1cb8d3
VS
25108 grep -v '^ *+' conftest.er1 >conftest.err
25109 rm -f conftest.er1
25110 cat conftest.err >&5
a848cd7e
SC
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } &&
ac1cb8d3
VS
25113 { ac_try='test -z "$ac_c_werror_flag"
25114 || test ! -s conftest.err'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; } &&
25120 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
25126 ac_cv_lib_ipc_shmat=yes
25127else
25128 echo "$as_me: failed program was:" >&5
25129sed 's/^/| /' conftest.$ac_ext >&5
25130
25131ac_cv_lib_ipc_shmat=no
25132fi
ac1cb8d3
VS
25133rm -f conftest.err conftest.$ac_objext \
25134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25135LIBS=$ac_check_lib_save_LIBS
25136fi
25137echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25138echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25139if test $ac_cv_lib_ipc_shmat = yes; then
25140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25141fi
25142
25143 fi
25144 fi
25145
25146 # Check for libraries that X11R6 Xt/Xaw programs need.
25147 ac_save_LDFLAGS=$LDFLAGS
25148 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25149 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25150 # check for ICE first), but we must link in the order -lSM -lICE or
25151 # we get undefined symbols. So assume we have SM if we have ICE.
25152 # These have to be linked with before -lX11, unlike the other
25153 # libraries we check for below, so use a different variable.
25154 # John Interrante, Karl Berry
25155 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25156echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25157if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25159else
25160 ac_check_lib_save_LIBS=$LIBS
25161LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25162cat >conftest.$ac_ext <<_ACEOF
25163/* confdefs.h. */
25164_ACEOF
25165cat confdefs.h >>conftest.$ac_ext
25166cat >>conftest.$ac_ext <<_ACEOF
25167/* end confdefs.h. */
25168
25169/* Override any gcc2 internal prototype to avoid an error. */
25170#ifdef __cplusplus
25171extern "C"
25172#endif
25173/* We use char because int might match the return type of a gcc2
25174 builtin and then its argument prototype would still apply. */
25175char IceConnectionNumber ();
25176int
25177main ()
25178{
25179IceConnectionNumber ();
25180 ;
25181 return 0;
25182}
25183_ACEOF
25184rm -f conftest.$ac_objext conftest$ac_exeext
25185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25186 (eval $ac_link) 2>conftest.er1
a848cd7e 25187 ac_status=$?
ac1cb8d3
VS
25188 grep -v '^ *+' conftest.er1 >conftest.err
25189 rm -f conftest.er1
25190 cat conftest.err >&5
a848cd7e
SC
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } &&
ac1cb8d3
VS
25193 { ac_try='test -z "$ac_c_werror_flag"
25194 || test ! -s conftest.err'
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25197 ac_status=$?
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; } &&
25200 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25203 ac_status=$?
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; }; then
25206 ac_cv_lib_ICE_IceConnectionNumber=yes
25207else
25208 echo "$as_me: failed program was:" >&5
25209sed 's/^/| /' conftest.$ac_ext >&5
25210
25211ac_cv_lib_ICE_IceConnectionNumber=no
25212fi
ac1cb8d3
VS
25213rm -f conftest.err conftest.$ac_objext \
25214 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25215LIBS=$ac_check_lib_save_LIBS
25216fi
25217echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25218echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25219if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25220 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25221fi
25222
25223 LDFLAGS=$ac_save_LDFLAGS
25224
25225fi
25226
25227
25228 if test "$no_x" = "yes"; then
25229 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25230echo "$as_me: error: X11 not found" >&2;}
25231 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25232 fi
25233
74b84332
VS
25234 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25235 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25236 AFMINSTALL=afminstall
25237 COMPILED_X_PROGRAM=0
25238
74b84332
VS
25239 fi
25240
25241 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25242 if test "$wxUSE_NANOX" = "yes"; then
25243 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25244echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25245 if test "x$MICROWIN" = x ; then
25246 echo "$as_me:$LINENO: result: not found" >&5
25247echo "${ECHO_T}not found" >&6
25248 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25249echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25250 { (exit 1); exit 1; }; }
25251 else
25252 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25253echo "${ECHO_T}$MICROWIN" >&6
25254 cat >>confdefs.h <<\_ACEOF
25255#define wxUSE_NANOX 1
25256_ACEOF
25257
25258 fi
25259 fi
25260
25261 if test "$wxUSE_UNICODE" = "yes"; then
25262
25263 succeeded=no
25264
25265 if test -z "$PKG_CONFIG"; then
25266 # Extract the first word of "pkg-config", so it can be a program name with args.
25267set dummy pkg-config; ac_word=$2
25268echo "$as_me:$LINENO: checking for $ac_word" >&5
25269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25270if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
25272else
25273 case $PKG_CONFIG in
25274 [\\/]* | ?:[\\/]*)
25275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25276 ;;
25277 *)
25278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25279for as_dir in $PATH
25280do
25281 IFS=$as_save_IFS
25282 test -z "$as_dir" && as_dir=.
25283 for ac_exec_ext in '' $ac_executable_extensions; do
25284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25285 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25287 break 2
25288 fi
25289done
25290done
25291
25292 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25293 ;;
25294esac
25295fi
25296PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25297
25298if test -n "$PKG_CONFIG"; then
25299 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25300echo "${ECHO_T}$PKG_CONFIG" >&6
25301else
25302 echo "$as_me:$LINENO: result: no" >&5
25303echo "${ECHO_T}no" >&6
25304fi
25305
25306 fi
25307
25308 if test "$PKG_CONFIG" = "no" ; then
25309 echo "*** The pkg-config script could not be found. Make sure it is"
25310 echo "*** in your path, or set the PKG_CONFIG environment variable"
25311 echo "*** to the full path to pkg-config."
25312 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25313 else
25314 PKG_CONFIG_MIN_VERSION=0.9.0
25315 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25316 echo "$as_me:$LINENO: checking for pangox" >&5
25317echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25318
25319 if $PKG_CONFIG --exists "pangox" ; then
25320 echo "$as_me:$LINENO: result: yes" >&5
25321echo "${ECHO_T}yes" >&6
25322 succeeded=yes
25323
25324 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25325echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25326 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25327 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25328echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25329
25330 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25331echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25332 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25333 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25334echo "${ECHO_T}$PANGOX_LIBS" >&6
25335 else
25336 PANGOX_CFLAGS=""
25337 PANGOX_LIBS=""
25338 ## If we have a custom action on failure, don't print errors, but
25339 ## do set a variable so people can do so.
25340 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25341
25342 fi
25343
25344
25345
25346 else
25347 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25348 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25349 fi
25350 fi
25351
25352 if test $succeeded = yes; then
25353
25354 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25355 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25356
25357 else
25358
25359 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25360echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25361 { (exit 1); exit 1; }; }
25362
25363
25364 fi
25365
25366
25367 succeeded=no
25368
25369 if test -z "$PKG_CONFIG"; then
25370 # Extract the first word of "pkg-config", so it can be a program name with args.
25371set dummy pkg-config; ac_word=$2
25372echo "$as_me:$LINENO: checking for $ac_word" >&5
25373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25374if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25375 echo $ECHO_N "(cached) $ECHO_C" >&6
25376else
25377 case $PKG_CONFIG in
25378 [\\/]* | ?:[\\/]*)
25379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25380 ;;
25381 *)
25382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25383for as_dir in $PATH
25384do
25385 IFS=$as_save_IFS
25386 test -z "$as_dir" && as_dir=.
25387 for ac_exec_ext in '' $ac_executable_extensions; do
25388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25391 break 2
25392 fi
25393done
25394done
25395
25396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25397 ;;
25398esac
25399fi
25400PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25401
25402if test -n "$PKG_CONFIG"; then
25403 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25404echo "${ECHO_T}$PKG_CONFIG" >&6
25405else
25406 echo "$as_me:$LINENO: result: no" >&5
25407echo "${ECHO_T}no" >&6
25408fi
25409
25410 fi
25411
25412 if test "$PKG_CONFIG" = "no" ; then
25413 echo "*** The pkg-config script could not be found. Make sure it is"
25414 echo "*** in your path, or set the PKG_CONFIG environment variable"
25415 echo "*** to the full path to pkg-config."
25416 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25417 else
25418 PKG_CONFIG_MIN_VERSION=0.9.0
25419 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25420 echo "$as_me:$LINENO: checking for pangoft2" >&5
25421echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25422
25423 if $PKG_CONFIG --exists "pangoft2" ; then
25424 echo "$as_me:$LINENO: result: yes" >&5
25425echo "${ECHO_T}yes" >&6
25426 succeeded=yes
25427
25428 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25429echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25430 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25431 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25432echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25433
25434 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25435echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25436 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25437 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25438echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25439 else
25440 PANGOFT2_CFLAGS=""
25441 PANGOFT2_LIBS=""
25442 ## If we have a custom action on failure, don't print errors, but
25443 ## do set a variable so people can do so.
25444 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25445
25446 fi
25447
25448
25449
25450 else
25451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25453 fi
25454 fi
25455
25456 if test $succeeded = yes; then
25457
25458 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25459 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25460
25461 else
25462
25463 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25464echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25465 wxUSE_PRINTING_ARCHITECTURE="no"
25466
25467
25468 fi
25469
25470
25471 succeeded=no
25472
25473 if test -z "$PKG_CONFIG"; then
25474 # Extract the first word of "pkg-config", so it can be a program name with args.
25475set dummy pkg-config; ac_word=$2
25476echo "$as_me:$LINENO: checking for $ac_word" >&5
25477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25478if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25479 echo $ECHO_N "(cached) $ECHO_C" >&6
25480else
25481 case $PKG_CONFIG in
25482 [\\/]* | ?:[\\/]*)
25483 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25484 ;;
25485 *)
25486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25487for as_dir in $PATH
25488do
25489 IFS=$as_save_IFS
25490 test -z "$as_dir" && as_dir=.
25491 for ac_exec_ext in '' $ac_executable_extensions; do
25492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25493 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25495 break 2
25496 fi
25497done
25498done
25499
25500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25501 ;;
25502esac
25503fi
25504PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25505
25506if test -n "$PKG_CONFIG"; then
25507 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25508echo "${ECHO_T}$PKG_CONFIG" >&6
25509else
25510 echo "$as_me:$LINENO: result: no" >&5
25511echo "${ECHO_T}no" >&6
25512fi
25513
25514 fi
25515
25516 if test "$PKG_CONFIG" = "no" ; then
25517 echo "*** The pkg-config script could not be found. Make sure it is"
25518 echo "*** in your path, or set the PKG_CONFIG environment variable"
25519 echo "*** to the full path to pkg-config."
25520 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25521 else
25522 PKG_CONFIG_MIN_VERSION=0.9.0
25523 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25524 echo "$as_me:$LINENO: checking for pangoxft" >&5
25525echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25526
25527 if $PKG_CONFIG --exists "pangoxft" ; then
25528 echo "$as_me:$LINENO: result: yes" >&5
25529echo "${ECHO_T}yes" >&6
25530 succeeded=yes
25531
25532 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25533echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25534 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25535 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25536echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25537
25538 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25539echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25540 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25541 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25542echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25543 else
25544 PANGOXFT_CFLAGS=""
25545 PANGOXFT_LIBS=""
25546 ## If we have a custom action on failure, don't print errors, but
25547 ## do set a variable so people can do so.
25548 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25549
25550 fi
25551
25552
25553
25554 else
25555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25557 fi
25558 fi
25559
25560 if test $succeeded = yes; then
25561
25562 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25563 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25564
25565 else
25566
25567 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25568echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25569
25570
25571 fi
25572
304205f1
VS
25573 save_CFLAGS="$CFLAGS"
25574 save_LIBS="$LIBS"
25575 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25576 LIBS="$LIBS $PANGOX_LIBS"
25577
25578for ac_func in pango_font_family_is_monospace
25579do
25580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25581echo "$as_me:$LINENO: checking for $ac_func" >&5
25582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25583if eval "test \"\${$as_ac_var+set}\" = set"; then
25584 echo $ECHO_N "(cached) $ECHO_C" >&6
25585else
25586 cat >conftest.$ac_ext <<_ACEOF
25587/* confdefs.h. */
25588_ACEOF
25589cat confdefs.h >>conftest.$ac_ext
25590cat >>conftest.$ac_ext <<_ACEOF
25591/* end confdefs.h. */
25592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25594#define $ac_func innocuous_$ac_func
25595
25596/* System header to define __stub macros and hopefully few prototypes,
25597 which can conflict with char $ac_func (); below.
25598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25599 <limits.h> exists even on freestanding compilers. */
25600
25601#ifdef __STDC__
25602# include <limits.h>
25603#else
25604# include <assert.h>
25605#endif
25606
25607#undef $ac_func
25608
25609/* Override any gcc2 internal prototype to avoid an error. */
25610#ifdef __cplusplus
25611extern "C"
25612{
25613#endif
25614/* We use char because int might match the return type of a gcc2
25615 builtin and then its argument prototype would still apply. */
25616char $ac_func ();
25617/* The GNU C library defines this for functions which it implements
25618 to always fail with ENOSYS. Some functions are actually named
25619 something starting with __ and the normal name is an alias. */
25620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25621choke me
25622#else
25623char (*f) () = $ac_func;
25624#endif
25625#ifdef __cplusplus
25626}
25627#endif
25628
25629int
25630main ()
25631{
25632return f != $ac_func;
25633 ;
25634 return 0;
25635}
25636_ACEOF
25637rm -f conftest.$ac_objext conftest$ac_exeext
25638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25639 (eval $ac_link) 2>conftest.er1
25640 ac_status=$?
25641 grep -v '^ *+' conftest.er1 >conftest.err
25642 rm -f conftest.er1
25643 cat conftest.err >&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } &&
25646 { ac_try='test -z "$ac_c_werror_flag"
25647 || test ! -s conftest.err'
25648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); }; } &&
25653 { ac_try='test -s conftest$ac_exeext'
25654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25655 (eval $ac_try) 2>&5
25656 ac_status=$?
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); }; }; then
25659 eval "$as_ac_var=yes"
25660else
25661 echo "$as_me: failed program was:" >&5
25662sed 's/^/| /' conftest.$ac_ext >&5
25663
25664eval "$as_ac_var=no"
25665fi
25666rm -f conftest.err conftest.$ac_objext \
25667 conftest$ac_exeext conftest.$ac_ext
25668fi
25669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25670echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25671if test `eval echo '${'$as_ac_var'}'` = yes; then
25672 cat >>confdefs.h <<_ACEOF
25673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25674_ACEOF
25675
25676fi
25677done
25678
25679 CFLAGS="$save_CFLAGS"
25680 LIBS="$save_LIBS"
a848cd7e
SC
25681 fi
25682
25683 wxUSE_UNIVERSAL="yes"
25684
25685 if test "$wxUSE_NANOX" = "yes"; then
25686 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25687 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"
25688 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25689 else
25690 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25691 fi
25692
25693 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25694 TOOLKIT=X11
25695 GUIDIST=X11_DIST
25696 fi
25697
25698 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25699 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25700echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25701
74b84332
VS
25702ac_find_includes=
25703for ac_dir in $SEARCH_INCLUDE /usr/include;
25704 do
25705 if test -f "$ac_dir/Xm/Xm.h"; then
25706 ac_find_includes=$ac_dir
25707 break
25708 fi
25709 done
a848cd7e 25710
74b84332
VS
25711 if test "$ac_find_includes" != "" ; then
25712 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25713echo "${ECHO_T}found in $ac_find_includes" >&6
25714
25715 if test "x$ac_find_includes" = "x/usr/include"; then
25716 ac_path_to_include=""
25717 else
25718 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25719 result=$?
25720 if test $result = 0; then
25721 ac_path_to_include=""
25722 else
25723 ac_path_to_include=" -I$ac_find_includes"
25724 fi
a848cd7e
SC
25725 fi
25726
74b84332
VS
25727 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25728 else
25729 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25730/* confdefs.h. */
25731_ACEOF
25732cat confdefs.h >>conftest.$ac_ext
25733cat >>conftest.$ac_ext <<_ACEOF
25734/* end confdefs.h. */
25735
74b84332
VS
25736 #include <Xm/Xm.h>
25737
a848cd7e
SC
25738int
25739main ()
25740{
25741
74b84332
VS
25742 int version;
25743 version = xmUseVersion;
25744
a848cd7e
SC
25745 ;
25746 return 0;
25747}
25748_ACEOF
74b84332
VS
25749rm -f conftest.$ac_objext
25750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25751 (eval $ac_compile) 2>conftest.er1
a848cd7e 25752 ac_status=$?
ac1cb8d3
VS
25753 grep -v '^ *+' conftest.er1 >conftest.err
25754 rm -f conftest.er1
25755 cat conftest.err >&5
a848cd7e
SC
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } &&
ac1cb8d3
VS
25758 { ac_try='test -z "$ac_c_werror_flag"
25759 || test ! -s conftest.err'
25760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); }; } &&
74b84332 25765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25767 (eval $ac_try) 2>&5
25768 ac_status=$?
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); }; }; then
74b84332
VS
25771
25772 echo "$as_me:$LINENO: result: found in default search path" >&5
25773echo "${ECHO_T}found in default search path" >&6
25774 COMPILED_X_PROGRAM=1
25775
a848cd7e
SC
25776else
25777 echo "$as_me: failed program was:" >&5
25778sed 's/^/| /' conftest.$ac_ext >&5
25779
a848cd7e 25780
74b84332
VS
25781 echo "$as_me:$LINENO: result: no" >&5
25782echo "${ECHO_T}no" >&6
25783 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25784echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25785 { (exit 1); exit 1; }; }
a848cd7e 25786
a848cd7e 25787
a848cd7e 25788fi
74b84332
VS
25789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25790 fi
25791
25792 if test "$COMPILED_X_PROGRAM" = 0; then
25793 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25794echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25795
25796ac_find_libraries=
25797for ac_dir in $SEARCH_LIB /usr/lib;
25798 do
25799 for ac_extension in a so sl dylib; do
25800 if test -f "$ac_dir/libXm.$ac_extension"; then
25801 ac_find_libraries=$ac_dir
25802 break 2
a848cd7e 25803 fi
74b84332
VS
25804 done
25805 done
a848cd7e 25806
74b84332
VS
25807 if test "$ac_find_libraries" != "" ; then
25808 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25809echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25810
74b84332
VS
25811
25812 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25813 result=$?
25814 if test $result = 0; then
25815 ac_path_to_link=""
a848cd7e 25816 else
74b84332
VS
25817 ac_path_to_link=" -L$ac_find_libraries"
25818 fi
25819
25820 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25821 else
25822 save_CFLAGS=$CFLAGS
25823 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25824
25825 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25826/* confdefs.h. */
25827_ACEOF
25828cat confdefs.h >>conftest.$ac_ext
25829cat >>conftest.$ac_ext <<_ACEOF
25830/* end confdefs.h. */
25831
74b84332
VS
25832 #include <Xm/Xm.h>
25833
a848cd7e
SC
25834int
25835main ()
25836{
74b84332
VS
25837
25838 int version;
25839 version = xmUseVersion;
25840
a848cd7e
SC
25841 ;
25842 return 0;
25843}
25844_ACEOF
74b84332
VS
25845rm -f conftest.$ac_objext
25846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25847 (eval $ac_compile) 2>conftest.er1
a848cd7e 25848 ac_status=$?
ac1cb8d3
VS
25849 grep -v '^ *+' conftest.er1 >conftest.err
25850 rm -f conftest.er1
25851 cat conftest.err >&5
a848cd7e
SC
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); } &&
ac1cb8d3
VS
25854 { ac_try='test -z "$ac_c_werror_flag"
25855 || test ! -s conftest.err'
25856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25857 (eval $ac_try) 2>&5
25858 ac_status=$?
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); }; } &&
74b84332 25861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863 (eval $ac_try) 2>&5
25864 ac_status=$?
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; }; then
74b84332
VS
25867
25868 echo "$as_me:$LINENO: result: found in default search path" >&5
25869echo "${ECHO_T}found in default search path" >&6
25870 COMPILED_X_PROGRAM=1
25871
a848cd7e
SC
25872else
25873 echo "$as_me: failed program was:" >&5
25874sed 's/^/| /' conftest.$ac_ext >&5
25875
74b84332
VS
25876
25877 echo "$as_me:$LINENO: result: no" >&5
25878echo "${ECHO_T}no" >&6
25879 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25880echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25881 { (exit 1); exit 1; }; }
25882
25883
25884fi
25885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25886
25887 CFLAGS=$save_CFLAGS
25888 fi
25889 fi
25890
25891 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25892echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25893 libp_link=""
25894 libsm_ice_link=""
25895 libs_found=0
25896 for libp in "" " -lXp"; do
25897 if test "$libs_found" = "0"; then
25898 for libsm_ice in "" " -lSM -lICE"; do
25899 if test "$libs_found" = "0"; then
25900 save_LIBS="$LIBS"
25901 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25902 save_CFLAGS=$CFLAGS
25903 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25904
25905 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25906/* confdefs.h. */
25907_ACEOF
25908cat confdefs.h >>conftest.$ac_ext
25909cat >>conftest.$ac_ext <<_ACEOF
25910/* end confdefs.h. */
25911
74b84332
VS
25912 #include <Xm/Xm.h>
25913 #include <Xm/List.h>
25914
a848cd7e
SC
25915int
25916main ()
25917{
74b84332
VS
25918
25919 XmString string = NULL;
25920 Widget w = NULL;
25921 int position = 0;
25922 XmListAddItem(w, string, position);
25923
a848cd7e
SC
25924 ;
25925 return 0;
25926}
25927_ACEOF
25928rm -f conftest.$ac_objext conftest$ac_exeext
25929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25930 (eval $ac_link) 2>conftest.er1
a848cd7e 25931 ac_status=$?
ac1cb8d3
VS
25932 grep -v '^ *+' conftest.er1 >conftest.err
25933 rm -f conftest.er1
25934 cat conftest.err >&5
a848cd7e
SC
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } &&
ac1cb8d3
VS
25937 { ac_try='test -z "$ac_c_werror_flag"
25938 || test ! -s conftest.err'
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; } &&
25944 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; }; then
25950
25951 libp_link="$libp"
25952 libsm_ice_link="$libsm_ice"
25953 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25954echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25955 libs_found=1
25956
25957else
25958 echo "$as_me: failed program was:" >&5
25959sed 's/^/| /' conftest.$ac_ext >&5
25960
25961
25962
25963fi
ac1cb8d3
VS
25964rm -f conftest.err conftest.$ac_objext \
25965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25966
25967 LIBS="$save_LIBS"
25968 CFLAGS=$save_CFLAGS
25969 fi
25970 done
25971 fi
25972 done
25973
25974 if test "$libs_found" = "0"; then
25975 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25976echo "${ECHO_T}can't find the right libraries" >&6
25977 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25978echo "$as_me: error: can't link a simple motif program" >&2;}
25979 { (exit 1); exit 1; }; }
25980 fi
25981
25982 save_CFLAGS=$CFLAGS
25983 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25984 echo "$as_me:$LINENO: checking for Motif 2" >&5
25985echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25986 cat >conftest.$ac_ext <<_ACEOF
25987/* confdefs.h. */
25988_ACEOF
25989cat confdefs.h >>conftest.$ac_ext
25990cat >>conftest.$ac_ext <<_ACEOF
25991/* end confdefs.h. */
25992
25993 #include <Xm/Xm.h>
25994
25995int
25996main ()
25997{
25998
25999 #if XmVersion < 2000
26000 #error "Not Motif 2"
26001 #endif
26002
26003 ;
26004 return 0;
26005}
26006_ACEOF
26007rm -f conftest.$ac_objext
26008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26009 (eval $ac_compile) 2>conftest.er1
a848cd7e 26010 ac_status=$?
ac1cb8d3
VS
26011 grep -v '^ *+' conftest.er1 >conftest.err
26012 rm -f conftest.er1
26013 cat conftest.err >&5
a848cd7e
SC
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } &&
ac1cb8d3
VS
26016 { ac_try='test -z "$ac_c_werror_flag"
26017 || test ! -s conftest.err'
26018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26019 (eval $ac_try) 2>&5
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; } &&
26023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); }; }; then
26029
26030 cat >>confdefs.h <<\_ACEOF
26031#define __WXMOTIF20__ 1
26032_ACEOF
26033
26034 echo "$as_me:$LINENO: result: found" >&5
26035echo "${ECHO_T}found" >&6
26036
26037else
26038 echo "$as_me: failed program was:" >&5
26039sed 's/^/| /' conftest.$ac_ext >&5
26040
26041
26042 cat >>confdefs.h <<\_ACEOF
26043#define __WXMOTIF20__ 0
26044_ACEOF
26045
26046 echo "$as_me:$LINENO: result: not found" >&5
26047echo "${ECHO_T}not found" >&6
26048
26049fi
ac1cb8d3 26050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26051 CFLAGS=$save_CFLAGS
26052
26053 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26054 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26055 TOOLKIT=MOTIF
26056 GUIDIST=MOTIF_DIST
26057 fi
26058
74b84332 26059 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26060 if test "$wxUSE_LIBXPM" = "sys"; then
26061 echo "$as_me:$LINENO: checking for Xpm library" >&5
26062echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26063
26064ac_find_libraries=
26065for ac_dir in $SEARCH_LIB /usr/lib;
26066 do
26067 for ac_extension in a so sl dylib; do
26068 if test -f "$ac_dir/libXpm.$ac_extension"; then
26069 ac_find_libraries=$ac_dir
26070 break 2
26071 fi
26072 done
26073 done
26074
26075 if test "$ac_find_libraries" != "" ; then
26076
26077 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26078 result=$?
26079 if test $result = 0; then
26080 ac_path_to_link=""
26081 else
26082 ac_path_to_link=" -L$ac_find_libraries"
26083 fi
26084
26085 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26086 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26087echo "${ECHO_T}found at $ac_find_libraries" >&6
26088
26089 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26090echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26091if test "${wx_cv_x11_xpm_h+set}" = set; then
26092 echo $ECHO_N "(cached) $ECHO_C" >&6
26093else
26094
26095 save_CFLAGS=$CFLAGS
26096 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26097
26098 cat >conftest.$ac_ext <<_ACEOF
26099/* confdefs.h. */
26100_ACEOF
26101cat confdefs.h >>conftest.$ac_ext
26102cat >>conftest.$ac_ext <<_ACEOF
26103/* end confdefs.h. */
26104
26105 #include <X11/xpm.h>
26106
26107int
26108main ()
26109{
26110
26111 int version;
26112 version = XpmLibraryVersion();
26113
26114 ;
26115 return 0;
26116}
26117_ACEOF
26118rm -f conftest.$ac_objext
26119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26120 (eval $ac_compile) 2>conftest.er1
a848cd7e 26121 ac_status=$?
ac1cb8d3
VS
26122 grep -v '^ *+' conftest.er1 >conftest.err
26123 rm -f conftest.er1
26124 cat conftest.err >&5
a848cd7e
SC
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); } &&
ac1cb8d3
VS
26127 { ac_try='test -z "$ac_c_werror_flag"
26128 || test ! -s conftest.err'
26129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26130 (eval $ac_try) 2>&5
26131 ac_status=$?
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); }; } &&
26134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26136 (eval $ac_try) 2>&5
26137 ac_status=$?
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); }; }; then
26140 wx_cv_x11_xpm_h=yes
26141else
26142 echo "$as_me: failed program was:" >&5
26143sed 's/^/| /' conftest.$ac_ext >&5
26144
26145wx_cv_x11_xpm_h=no
26146
26147fi
ac1cb8d3 26148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26149
26150 CFLAGS=$save_CFLAGS
26151
26152
26153fi
26154echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26155echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26156
26157 if test $wx_cv_x11_xpm_h = "yes"; then
26158 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26159 cat >>confdefs.h <<\_ACEOF
26160#define wxHAVE_LIB_XPM 1
26161_ACEOF
26162
26163 else
26164 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26165echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26166 fi
26167 fi
26168
26169 fi
26170
26171 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26172echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26173if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26174 echo $ECHO_N "(cached) $ECHO_C" >&6
26175else
26176 ac_check_lib_save_LIBS=$LIBS
26177LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26178cat >conftest.$ac_ext <<_ACEOF
26179/* confdefs.h. */
26180_ACEOF
26181cat confdefs.h >>conftest.$ac_ext
26182cat >>conftest.$ac_ext <<_ACEOF
26183/* end confdefs.h. */
26184
26185/* Override any gcc2 internal prototype to avoid an error. */
26186#ifdef __cplusplus
26187extern "C"
26188#endif
26189/* We use char because int might match the return type of a gcc2
26190 builtin and then its argument prototype would still apply. */
26191char XShapeQueryExtension ();
26192int
26193main ()
26194{
26195XShapeQueryExtension ();
26196 ;
26197 return 0;
26198}
26199_ACEOF
26200rm -f conftest.$ac_objext conftest$ac_exeext
26201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26202 (eval $ac_link) 2>conftest.er1
a848cd7e 26203 ac_status=$?
ac1cb8d3
VS
26204 grep -v '^ *+' conftest.er1 >conftest.err
26205 rm -f conftest.er1
26206 cat conftest.err >&5
a848cd7e
SC
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } &&
ac1cb8d3
VS
26209 { ac_try='test -z "$ac_c_werror_flag"
26210 || test ! -s conftest.err'
26211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26212 (eval $ac_try) 2>&5
26213 ac_status=$?
26214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); }; } &&
26216 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26218 (eval $ac_try) 2>&5
26219 ac_status=$?
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); }; }; then
26222 ac_cv_lib_Xext_XShapeQueryExtension=yes
26223else
26224 echo "$as_me: failed program was:" >&5
26225sed 's/^/| /' conftest.$ac_ext >&5
26226
26227ac_cv_lib_Xext_XShapeQueryExtension=no
26228fi
ac1cb8d3
VS
26229rm -f conftest.err conftest.$ac_objext \
26230 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26231LIBS=$ac_check_lib_save_LIBS
26232fi
26233echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26234echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26235if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26236
26237 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26238 wxHAVE_XEXT_LIB=1
26239
26240fi
26241
26242
26243 if test "$wxHAVE_XEXT_LIB" = 1; then
26244 save_CFLAGS="$CFLAGS"
26245 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26246
26247 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26248echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26249 cat >conftest.$ac_ext <<_ACEOF
26250/* confdefs.h. */
26251_ACEOF
26252cat confdefs.h >>conftest.$ac_ext
26253cat >>conftest.$ac_ext <<_ACEOF
26254/* end confdefs.h. */
26255
26256 #include <X11/Xlib.h>
26257 #include <X11/extensions/shape.h>
26258
26259int
26260main ()
26261{
26262
26263 int dummy1, dummy2;
26264 XShapeQueryExtension((Display*)NULL,
26265 (int*)NULL, (int*)NULL);
26266
26267 ;
26268 return 0;
26269}
26270_ACEOF
26271rm -f conftest.$ac_objext
26272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26273 (eval $ac_compile) 2>conftest.er1
a848cd7e 26274 ac_status=$?
ac1cb8d3
VS
26275 grep -v '^ *+' conftest.er1 >conftest.err
26276 rm -f conftest.er1
26277 cat conftest.err >&5
a848cd7e
SC
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } &&
ac1cb8d3
VS
26280 { ac_try='test -z "$ac_c_werror_flag"
26281 || test ! -s conftest.err'
26282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26283 (eval $ac_try) 2>&5
26284 ac_status=$?
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); }; } &&
26287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289 (eval $ac_try) 2>&5
26290 ac_status=$?
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); }; }; then
26293
26294 cat >>confdefs.h <<\_ACEOF
26295#define HAVE_XSHAPE 1
26296_ACEOF
26297
26298 echo "$as_me:$LINENO: result: found" >&5
26299echo "${ECHO_T}found" >&6
26300
26301else
26302 echo "$as_me: failed program was:" >&5
26303sed 's/^/| /' conftest.$ac_ext >&5
26304
26305
26306 echo "$as_me:$LINENO: result: not found" >&5
26307echo "${ECHO_T}not found" >&6
26308
26309fi
ac1cb8d3 26310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26311 CFLAGS="$save_CFLAGS"
26312
26313 fi
26314 fi
26315
26316 if test "$wxUSE_MAC" = 1; then
26317 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26318echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26319 if test "$GCC" = yes; then
26320 echo "$as_me:$LINENO: result: gcc" >&5
26321echo "${ECHO_T}gcc" >&6
26322 CPPFLAGS_PASCAL="-fpascal-strings"
26323 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26324 echo "$as_me:$LINENO: result: xlc" >&5
26325echo "${ECHO_T}xlc" >&6
26326 CPPFLAGS_PASCAL="-qmacpstr"
26327 else
26328 echo "$as_me:$LINENO: result: none" >&5
26329echo "${ECHO_T}none" >&6
26330 fi
26331
26332 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26333
26334 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26335 TOOLKIT=MAC
26336 GUIDIST=MACX_DIST
26337 WXBASEPORT="_carbon"
26338 fi
26339
26340 if test "$wxUSE_COCOA" = 1; then
26341 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26342 TOOLKIT=COCOA
26343 GUIDIST=COCOA_DIST
26344 fi
26345
26346 if test "$wxUSE_PM" = 1; then
26347 TOOLKIT=PM
de59c161
RD
26348 GUIDIST=PM_DIST
26349 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26350echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26351if test "${wx_cv_spbcdata+set}" = set; then
26352 echo $ECHO_N "(cached) $ECHO_C" >&6
26353else
26354
26355 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26356/* confdefs.h. */
26357_ACEOF
26358cat confdefs.h >>conftest.$ac_ext
26359cat >>conftest.$ac_ext <<_ACEOF
26360/* end confdefs.h. */
26361
26362 #define INCL_PM
26363 #include <os2.h>
26364
26365int
26366main ()
26367{
26368
26369 SPBCDATA test;
26370
26371 ;
26372 return 0;
26373}
26374_ACEOF
26375rm -f conftest.$ac_objext
26376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26377 (eval $ac_compile) 2>conftest.er1
de59c161 26378 ac_status=$?
ac1cb8d3
VS
26379 grep -v '^ *+' conftest.er1 >conftest.err
26380 rm -f conftest.er1
26381 cat conftest.err >&5
de59c161
RD
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } &&
ac1cb8d3
VS
26384 { ac_try='test -z "$ac_c_werror_flag"
26385 || test ! -s conftest.err'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; } &&
26391 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
26397 wx_cv_spbcdata=yes
26398else
26399 echo "$as_me: failed program was:" >&5
26400sed 's/^/| /' conftest.$ac_ext >&5
26401
26402wx_cv_spbcdata=no
26403
26404fi
ac1cb8d3 26405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26406
26407
26408fi
26409echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26410echo "${ECHO_T}$wx_cv_spbcdata" >&6
26411
26412 if test $wx_cv_spbcdata = "yes"; then
26413 cat >>confdefs.h <<\_ACEOF
26414#define HAVE_SPBCDATA 1
26415_ACEOF
26416
26417 fi
a848cd7e
SC
26418 fi
26419
26420 if test "$TOOLKIT" = "PM" ; then
26421 TOOLKIT_DIR="os2"
26422 else
26423 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26424 fi
26425
26426 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26427
26428 if test "$wxUSE_UNIVERSAL" = "yes"; then
26429 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26430
26431 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26432 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26433
26434 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26435 if test "$wxUSE_X11" = 1; then
26436 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26437 else
26438 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26439 fi
26440 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26441 WIDGET_SET=univ
26442 else
26443 ALL_OBJECTS="\$(GUIOBJS)"
26444 ALL_SOURCES="\$(ALL_SOURCES)"
26445 ALL_HEADERS="\$(ALL_HEADERS)"
26446 fi
26447
26448 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26449
26450 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26451 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26452 fi
26453
26454 if test "$wxUSE_HTML" = "yes"; then
26455 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26456 fi
26457
26458 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26459 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26460 fi
26461 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26462 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26463 fi
26464 if test "$wxUSE_LIBPNG" = "builtin" ; then
26465 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26466 fi
26467
26468 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26469 DISTDIR="wx\$(TOOLKIT)"
26470else
26471 USE_GUI=0
26472
26473 TOOLKIT_DIR="base"
26474
26475 if test "$USE_WIN32" = 1 ; then
26476 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26477 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26478
26479 TOOLKIT="MSW"
26480 else
26481 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26482 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26483 fi
26484
26485 ALL_SOURCES="\$(ALL_SOURCES)"
26486 ALL_HEADERS="\$(ALL_HEADERS)"
26487
26488 PORT_FILES="\${top_srcdir}/src/files.lst"
26489
26490 GUIDIST="BASE_DIST"
26491 DISTDIR="wxBase"
26492fi
26493
26494
26495
26496
26497IODBC_C_SRC=""
26498
26499
26500if test "$TOOLKIT" != "MSW" ; then
26501
26502 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26503
26504 if test "${ac_cv_header_sql_h+set}" = set; then
26505 echo "$as_me:$LINENO: checking for sql.h" >&5
26506echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26507if test "${ac_cv_header_sql_h+set}" = set; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
26509fi
26510echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26511echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26512else
26513 # Is the header compilable?
26514echo "$as_me:$LINENO: checking sql.h usability" >&5
26515echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26516cat >conftest.$ac_ext <<_ACEOF
26517/* confdefs.h. */
26518_ACEOF
26519cat confdefs.h >>conftest.$ac_ext
26520cat >>conftest.$ac_ext <<_ACEOF
26521/* end confdefs.h. */
26522$ac_includes_default
26523#include <sql.h>
26524_ACEOF
26525rm -f conftest.$ac_objext
26526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26527 (eval $ac_compile) 2>conftest.er1
a848cd7e 26528 ac_status=$?
ac1cb8d3
VS
26529 grep -v '^ *+' conftest.er1 >conftest.err
26530 rm -f conftest.er1
26531 cat conftest.err >&5
a848cd7e
SC
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } &&
ac1cb8d3
VS
26534 { ac_try='test -z "$ac_c_werror_flag"
26535 || test ! -s conftest.err'
26536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537 (eval $ac_try) 2>&5
26538 ac_status=$?
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; } &&
26541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26544 ac_status=$?
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; }; then
26547 ac_header_compiler=yes
26548else
26549 echo "$as_me: failed program was:" >&5
26550sed 's/^/| /' conftest.$ac_ext >&5
26551
26552ac_header_compiler=no
26553fi
ac1cb8d3 26554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26556echo "${ECHO_T}$ac_header_compiler" >&6
26557
26558# Is the header present?
26559echo "$as_me:$LINENO: checking sql.h presence" >&5
26560echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26561cat >conftest.$ac_ext <<_ACEOF
26562/* confdefs.h. */
26563_ACEOF
26564cat confdefs.h >>conftest.$ac_ext
26565cat >>conftest.$ac_ext <<_ACEOF
26566/* end confdefs.h. */
26567#include <sql.h>
26568_ACEOF
26569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26571 ac_status=$?
26572 grep -v '^ *+' conftest.er1 >conftest.err
26573 rm -f conftest.er1
26574 cat conftest.err >&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } >/dev/null; then
26577 if test -s conftest.err; then
26578 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26580 else
26581 ac_cpp_err=
26582 fi
26583else
26584 ac_cpp_err=yes
26585fi
26586if test -z "$ac_cpp_err"; then
26587 ac_header_preproc=yes
26588else
26589 echo "$as_me: failed program was:" >&5
26590sed 's/^/| /' conftest.$ac_ext >&5
26591
26592 ac_header_preproc=no
26593fi
26594rm -f conftest.err conftest.$ac_ext
26595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26596echo "${ECHO_T}$ac_header_preproc" >&6
26597
26598# So? What about this header?
ac1cb8d3
VS
26599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26600 yes:no: )
a848cd7e
SC
26601 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26602echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26603 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26604echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26605 ac_header_preproc=yes
a848cd7e 26606 ;;
ac1cb8d3 26607 no:yes:* )
a848cd7e
SC
26608 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26609echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26610 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26611echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26612 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26613echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26614 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26615echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26616 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26617echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26618 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26619echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26620 (
26621 cat <<\_ASBOX
ac1cb8d3
VS
26622## ----------------------------------------- ##
26623## Report this to wx-dev@lists.wxwidgets.org ##
26624## ----------------------------------------- ##
a848cd7e
SC
26625_ASBOX
26626 ) |
26627 sed "s/^/$as_me: WARNING: /" >&2
26628 ;;
26629esac
26630echo "$as_me:$LINENO: checking for sql.h" >&5
26631echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26632if test "${ac_cv_header_sql_h+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634else
26635 ac_cv_header_sql_h=$ac_header_preproc
26636fi
26637echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26638echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26639
26640fi
26641if test $ac_cv_header_sql_h = yes; then
26642 found_sql_h=1
26643fi
26644
26645
26646 if test "x$found_sql_h" = "x1" ; then
26647 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26648echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26649if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26650 echo $ECHO_N "(cached) $ECHO_C" >&6
26651else
26652 ac_check_lib_save_LIBS=$LIBS
26653LIBS="-liodbc $LIBS"
26654cat >conftest.$ac_ext <<_ACEOF
26655/* confdefs.h. */
26656_ACEOF
26657cat confdefs.h >>conftest.$ac_ext
26658cat >>conftest.$ac_ext <<_ACEOF
26659/* end confdefs.h. */
26660
26661/* Override any gcc2 internal prototype to avoid an error. */
26662#ifdef __cplusplus
26663extern "C"
26664#endif
26665/* We use char because int might match the return type of a gcc2
26666 builtin and then its argument prototype would still apply. */
26667char SQLAllocEnv ();
26668int
26669main ()
26670{
26671SQLAllocEnv ();
26672 ;
26673 return 0;
26674}
26675_ACEOF
26676rm -f conftest.$ac_objext conftest$ac_exeext
26677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26678 (eval $ac_link) 2>conftest.er1
a848cd7e 26679 ac_status=$?
ac1cb8d3
VS
26680 grep -v '^ *+' conftest.er1 >conftest.err
26681 rm -f conftest.er1
26682 cat conftest.err >&5
a848cd7e
SC
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); } &&
ac1cb8d3
VS
26685 { ac_try='test -z "$ac_c_werror_flag"
26686 || test ! -s conftest.err'
26687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688 (eval $ac_try) 2>&5
26689 ac_status=$?
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; } &&
26692 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26695 ac_status=$?
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; }; then
26698 ac_cv_lib_iodbc_SQLAllocEnv=yes
26699else
26700 echo "$as_me: failed program was:" >&5
26701sed 's/^/| /' conftest.$ac_ext >&5
26702
26703ac_cv_lib_iodbc_SQLAllocEnv=no
26704fi
ac1cb8d3
VS
26705rm -f conftest.err conftest.$ac_objext \
26706 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26707LIBS=$ac_check_lib_save_LIBS
26708fi
26709echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26710echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26711if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26712 ODBC_LINK=" -liodbc"
26713else
26714
26715 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26716echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26717if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26718 echo $ECHO_N "(cached) $ECHO_C" >&6
26719else
26720 ac_check_lib_save_LIBS=$LIBS
26721LIBS="-lunixodbc $LIBS"
26722cat >conftest.$ac_ext <<_ACEOF
26723/* confdefs.h. */
26724_ACEOF
26725cat confdefs.h >>conftest.$ac_ext
26726cat >>conftest.$ac_ext <<_ACEOF
26727/* end confdefs.h. */
26728
26729/* Override any gcc2 internal prototype to avoid an error. */
26730#ifdef __cplusplus
26731extern "C"
26732#endif
26733/* We use char because int might match the return type of a gcc2
26734 builtin and then its argument prototype would still apply. */
26735char SQLAllocEnv ();
26736int
26737main ()
26738{
26739SQLAllocEnv ();
26740 ;
26741 return 0;
26742}
26743_ACEOF
26744rm -f conftest.$ac_objext conftest$ac_exeext
26745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26746 (eval $ac_link) 2>conftest.er1
a848cd7e 26747 ac_status=$?
ac1cb8d3
VS
26748 grep -v '^ *+' conftest.er1 >conftest.err
26749 rm -f conftest.er1
26750 cat conftest.err >&5
a848cd7e
SC
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); } &&
ac1cb8d3
VS
26753 { ac_try='test -z "$ac_c_werror_flag"
26754 || test ! -s conftest.err'
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26757 ac_status=$?
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; } &&
26760 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26762 (eval $ac_try) 2>&5
26763 ac_status=$?
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); }; }; then
26766 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26767else
26768 echo "$as_me: failed program was:" >&5
26769sed 's/^/| /' conftest.$ac_ext >&5
26770
26771ac_cv_lib_unixodbc_SQLAllocEnv=no
26772fi
ac1cb8d3
VS
26773rm -f conftest.err conftest.$ac_objext \
26774 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26775LIBS=$ac_check_lib_save_LIBS
26776fi
26777echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26778echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26779if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26780 ODBC_LINK=" -lunixodbc"
26781else
26782
26783 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26784echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26785if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26787else
26788 ac_check_lib_save_LIBS=$LIBS
26789LIBS="-lodbc $LIBS"
26790cat >conftest.$ac_ext <<_ACEOF
26791/* confdefs.h. */
26792_ACEOF
26793cat confdefs.h >>conftest.$ac_ext
26794cat >>conftest.$ac_ext <<_ACEOF
26795/* end confdefs.h. */
26796
26797/* Override any gcc2 internal prototype to avoid an error. */
26798#ifdef __cplusplus
26799extern "C"
26800#endif
26801/* We use char because int might match the return type of a gcc2
26802 builtin and then its argument prototype would still apply. */
26803char SQLAllocEnv ();
26804int
26805main ()
26806{
26807SQLAllocEnv ();
26808 ;
26809 return 0;
26810}
26811_ACEOF
26812rm -f conftest.$ac_objext conftest$ac_exeext
26813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26814 (eval $ac_link) 2>conftest.er1
a848cd7e 26815 ac_status=$?
ac1cb8d3
VS
26816 grep -v '^ *+' conftest.er1 >conftest.err
26817 rm -f conftest.er1
26818 cat conftest.err >&5
a848cd7e
SC
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } &&
ac1cb8d3
VS
26821 { ac_try='test -z "$ac_c_werror_flag"
26822 || test ! -s conftest.err'
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; } &&
26828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834 ac_cv_lib_odbc_SQLAllocEnv=yes
26835else
26836 echo "$as_me: failed program was:" >&5
26837sed 's/^/| /' conftest.$ac_ext >&5
26838
26839ac_cv_lib_odbc_SQLAllocEnv=no
26840fi
ac1cb8d3
VS
26841rm -f conftest.err conftest.$ac_objext \
26842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26843LIBS=$ac_check_lib_save_LIBS
26844fi
26845echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26846echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26847if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26848 ODBC_LINK=" -lodbc"
26849fi
26850
26851
26852fi
26853
26854
26855fi
26856
26857 fi
26858 if test "x$ODBC_LINK" = "x" ; then
26859 if test "$wxUSE_ODBC" = "sys" ; then
26860 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26861echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26862 { (exit 1); exit 1; }; }
26863 else
26864 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26865echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26866 wxUSE_ODBC=builtin
26867 fi
26868 else
26869 wxUSE_ODBC=sys
26870 fi
26871 fi
26872 if test "$wxUSE_ODBC" != "no" ; then
26873 cat >>confdefs.h <<\_ACEOF
26874#define wxUSE_ODBC 1
26875_ACEOF
26876
26877 if test "$wxUSE_ODBC" = "builtin" ; then
26878 cat >>confdefs.h <<\_ACEOF
26879#define wxUSE_BUILTIN_IODBC 1
26880_ACEOF
26881
26882 fi
26883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26884
26885 WXODBCFLAG="-D_IODBC_"
26886 fi
26887fi
26888
26889if test "$wxUSE_REGEX" = "builtin" ; then
26890 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26891fi
26892if test "$wxUSE_ZLIB" = "builtin" ; then
26893 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26894fi
26895
01cb68df 26896
a848cd7e 26897if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26898 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26899 echo "$as_me:$LINENO: checking for Xinerama" >&5
26900echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26901
26902ac_find_libraries=
26903for ac_dir in $SEARCH_LIB /usr/lib;
26904 do
26905 for ac_extension in a so sl dylib; do
26906 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26907 ac_find_libraries=$ac_dir
26908 break 2
26909 fi
26910 done
26911 done
26912
26913 if test "$ac_find_libraries" != "" ; then
26914
26915 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26916 result=$?
26917 if test $result = 0; then
26918 ac_path_to_link=""
26919 else
26920 ac_path_to_link=" -L$ac_find_libraries"
26921 fi
26922
26923 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26924 LDFLAGS="$LDFLAGS $ac_path_to_link"
26925 fi
26926 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26927 echo "$as_me:$LINENO: result: yes" >&5
26928echo "${ECHO_T}yes" >&6
26929
26930 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26931echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26932
26933ac_find_libraries=
26934for ac_dir in $SEARCH_LIB /usr/lib;
26935 do
26936 for ac_extension in a so sl dylib; do
26937 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26938 ac_find_libraries=$ac_dir
26939 break 2
26940 fi
26941 done
26942 done
26943
26944 if test "$ac_find_libraries" != "" ; then
26945 echo "$as_me:$LINENO: result: yes" >&5
26946echo "${ECHO_T}yes" >&6
26947
26948for ac_header in X11/extensions/xf86vmode.h
26949do
26950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26951echo "$as_me:$LINENO: checking for $ac_header" >&5
26952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26953if eval "test \"\${$as_ac_Header+set}\" = set"; then
26954 echo $ECHO_N "(cached) $ECHO_C" >&6
26955else
26956 cat >conftest.$ac_ext <<_ACEOF
26957/* confdefs.h. */
26958_ACEOF
26959cat confdefs.h >>conftest.$ac_ext
26960cat >>conftest.$ac_ext <<_ACEOF
26961/* end confdefs.h. */
26962
26963 #if HAVE_X11_XLIB_H
26964 #include <X11/Xlib.h>
26965 #endif
26966
26967
26968#include <$ac_header>
26969_ACEOF
26970rm -f conftest.$ac_objext
26971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26972 (eval $ac_compile) 2>conftest.er1
a848cd7e 26973 ac_status=$?
ac1cb8d3
VS
26974 grep -v '^ *+' conftest.er1 >conftest.err
26975 rm -f conftest.er1
26976 cat conftest.err >&5
a848cd7e
SC
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); } &&
ac1cb8d3
VS
26979 { ac_try='test -z "$ac_c_werror_flag"
26980 || test ! -s conftest.err'
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5
26983 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; } &&
26986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26989 ac_status=$?
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; }; then
26992 eval "$as_ac_Header=yes"
26993else
26994 echo "$as_me: failed program was:" >&5
26995sed 's/^/| /' conftest.$ac_ext >&5
26996
26997eval "$as_ac_Header=no"
26998fi
ac1cb8d3 26999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27000fi
27001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27003if test `eval echo '${'$as_ac_Header'}'` = yes; then
27004 cat >>confdefs.h <<_ACEOF
27005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27006_ACEOF
27007
27008 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27009
27010fi
27011
27012done
27013
27014 else
27015 echo "$as_me:$LINENO: result: no" >&5
27016echo "${ECHO_T}no" >&6
27017 fi
27018
27019 else
27020 echo "$as_me:$LINENO: result: no" >&5
27021echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27022 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27023echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27024 wxUSE_DISPLAY="no"
27025 fi
01cb68df
RG
27026 elif test "$wxUSE_MSW" = 1; then
27027
27028
27029for ac_header in multimon.h ddraw.h
27030do
27031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27032if eval "test \"\${$as_ac_Header+set}\" = set"; then
27033 echo "$as_me:$LINENO: checking for $ac_header" >&5
27034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27035if eval "test \"\${$as_ac_Header+set}\" = set"; then
27036 echo $ECHO_N "(cached) $ECHO_C" >&6
27037fi
27038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27040else
27041 # Is the header compilable?
27042echo "$as_me:$LINENO: checking $ac_header usability" >&5
27043echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27044cat >conftest.$ac_ext <<_ACEOF
27045/* confdefs.h. */
27046_ACEOF
27047cat confdefs.h >>conftest.$ac_ext
27048cat >>conftest.$ac_ext <<_ACEOF
27049/* end confdefs.h. */
27050$ac_includes_default
27051#include <$ac_header>
27052_ACEOF
27053rm -f conftest.$ac_objext
27054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27055 (eval $ac_compile) 2>conftest.er1
01cb68df 27056 ac_status=$?
ac1cb8d3
VS
27057 grep -v '^ *+' conftest.er1 >conftest.err
27058 rm -f conftest.er1
27059 cat conftest.err >&5
01cb68df
RG
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); } &&
ac1cb8d3
VS
27062 { ac_try='test -z "$ac_c_werror_flag"
27063 || test ! -s conftest.err'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; } &&
27069 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071 (eval $ac_try) 2>&5
27072 ac_status=$?
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; }; then
27075 ac_header_compiler=yes
27076else
27077 echo "$as_me: failed program was:" >&5
27078sed 's/^/| /' conftest.$ac_ext >&5
27079
27080ac_header_compiler=no
27081fi
ac1cb8d3 27082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27083echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27084echo "${ECHO_T}$ac_header_compiler" >&6
27085
27086# Is the header present?
27087echo "$as_me:$LINENO: checking $ac_header presence" >&5
27088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27089cat >conftest.$ac_ext <<_ACEOF
27090/* confdefs.h. */
27091_ACEOF
27092cat confdefs.h >>conftest.$ac_ext
27093cat >>conftest.$ac_ext <<_ACEOF
27094/* end confdefs.h. */
27095#include <$ac_header>
27096_ACEOF
27097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27099 ac_status=$?
27100 grep -v '^ *+' conftest.er1 >conftest.err
27101 rm -f conftest.er1
27102 cat conftest.err >&5
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); } >/dev/null; then
27105 if test -s conftest.err; then
27106 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27108 else
27109 ac_cpp_err=
27110 fi
27111else
27112 ac_cpp_err=yes
27113fi
27114if test -z "$ac_cpp_err"; then
27115 ac_header_preproc=yes
27116else
27117 echo "$as_me: failed program was:" >&5
27118sed 's/^/| /' conftest.$ac_ext >&5
27119
27120 ac_header_preproc=no
27121fi
27122rm -f conftest.err conftest.$ac_ext
27123echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27124echo "${ECHO_T}$ac_header_preproc" >&6
27125
27126# So? What about this header?
ac1cb8d3
VS
27127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27128 yes:no: )
01cb68df
RG
27129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27133 ac_header_preproc=yes
01cb68df 27134 ;;
ac1cb8d3 27135 no:yes:* )
01cb68df
RG
27136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27148 (
27149 cat <<\_ASBOX
ac1cb8d3
VS
27150## ----------------------------------------- ##
27151## Report this to wx-dev@lists.wxwidgets.org ##
27152## ----------------------------------------- ##
01cb68df
RG
27153_ASBOX
27154 ) |
27155 sed "s/^/$as_me: WARNING: /" >&2
27156 ;;
27157esac
27158echo "$as_me:$LINENO: checking for $ac_header" >&5
27159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27160if eval "test \"\${$as_ac_Header+set}\" = set"; then
27161 echo $ECHO_N "(cached) $ECHO_C" >&6
27162else
ac1cb8d3 27163 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27164fi
27165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27167
27168fi
27169if test `eval echo '${'$as_ac_Header'}'` = yes; then
27170 cat >>confdefs.h <<_ACEOF
27171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27172_ACEOF
27173
27174else
27175
27176 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27177 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27178echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27179
27180fi
27181
27182done
27183
a848cd7e
SC
27184 fi
27185fi
27186
27187
27188USE_OPENGL=0
27189if test "$wxUSE_OPENGL" = "yes"; then
27190 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27191 OPENGL_LIBS="-framework OpenGL -framework AGL"
27192 elif test "$wxUSE_MSW" = 1; then
27193 OPENGL_LIBS="-lopengl32 -lglu32"
27194 else
27195
27196
27197ac_find_includes=
27198for ac_dir in $SEARCH_INCLUDE /usr/include;
27199 do
27200 if test -f "$ac_dir/GL/gl.h"; then
27201 ac_find_includes=$ac_dir
27202 break
27203 fi
27204 done
27205
27206 if test "$ac_find_includes" != "" ; then
27207 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27208echo "${ECHO_T}found in $ac_find_includes" >&6
27209
27210 if test "x$ac_find_includes" = "x/usr/include"; then
27211 ac_path_to_include=""
27212 else
27213 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27214 result=$?
27215 if test $result = 0; then
27216 ac_path_to_include=""
27217 else
27218 ac_path_to_include=" -I$ac_find_includes"
27219 fi
27220 fi
27221
27222 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27223 fi
27224
27225 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27226 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27227echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27228if test "${ac_cv_header_GL_gl_h+set}" = set; then
27229 echo $ECHO_N "(cached) $ECHO_C" >&6
27230fi
27231echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27232echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27233else
27234 # Is the header compilable?
27235echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27236echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27237cat >conftest.$ac_ext <<_ACEOF
27238/* confdefs.h. */
27239_ACEOF
27240cat confdefs.h >>conftest.$ac_ext
27241cat >>conftest.$ac_ext <<_ACEOF
27242/* end confdefs.h. */
27243$ac_includes_default
27244#include <GL/gl.h>
27245_ACEOF
27246rm -f conftest.$ac_objext
27247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27248 (eval $ac_compile) 2>conftest.er1
a848cd7e 27249 ac_status=$?
ac1cb8d3
VS
27250 grep -v '^ *+' conftest.er1 >conftest.err
27251 rm -f conftest.er1
27252 cat conftest.err >&5
a848cd7e
SC
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } &&
ac1cb8d3
VS
27255 { ac_try='test -z "$ac_c_werror_flag"
27256 || test ! -s conftest.err'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; } &&
27262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27265 ac_status=$?
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; }; then
27268 ac_header_compiler=yes
27269else
27270 echo "$as_me: failed program was:" >&5
27271sed 's/^/| /' conftest.$ac_ext >&5
27272
27273ac_header_compiler=no
27274fi
ac1cb8d3 27275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27276echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27277echo "${ECHO_T}$ac_header_compiler" >&6
27278
27279# Is the header present?
27280echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27281echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27282cat >conftest.$ac_ext <<_ACEOF
27283/* confdefs.h. */
27284_ACEOF
27285cat confdefs.h >>conftest.$ac_ext
27286cat >>conftest.$ac_ext <<_ACEOF
27287/* end confdefs.h. */
27288#include <GL/gl.h>
27289_ACEOF
27290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27292 ac_status=$?
27293 grep -v '^ *+' conftest.er1 >conftest.err
27294 rm -f conftest.er1
27295 cat conftest.err >&5
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); } >/dev/null; then
27298 if test -s conftest.err; then
27299 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27301 else
27302 ac_cpp_err=
27303 fi
27304else
27305 ac_cpp_err=yes
27306fi
27307if test -z "$ac_cpp_err"; then
27308 ac_header_preproc=yes
27309else
27310 echo "$as_me: failed program was:" >&5
27311sed 's/^/| /' conftest.$ac_ext >&5
27312
27313 ac_header_preproc=no
27314fi
27315rm -f conftest.err conftest.$ac_ext
27316echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27317echo "${ECHO_T}$ac_header_preproc" >&6
27318
27319# So? What about this header?
ac1cb8d3
VS
27320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27321 yes:no: )
a848cd7e
SC
27322 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27323echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27324 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27325echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27326 ac_header_preproc=yes
a848cd7e 27327 ;;
ac1cb8d3 27328 no:yes:* )
a848cd7e
SC
27329 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27330echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27331 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27332echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27333 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27334echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27335 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27336echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27337 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27338echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27339 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27340echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27341 (
27342 cat <<\_ASBOX
ac1cb8d3
VS
27343## ----------------------------------------- ##
27344## Report this to wx-dev@lists.wxwidgets.org ##
27345## ----------------------------------------- ##
a848cd7e
SC
27346_ASBOX
27347 ) |
27348 sed "s/^/$as_me: WARNING: /" >&2
27349 ;;
27350esac
27351echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27352echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27353if test "${ac_cv_header_GL_gl_h+set}" = set; then
27354 echo $ECHO_N "(cached) $ECHO_C" >&6
27355else
27356 ac_cv_header_GL_gl_h=$ac_header_preproc
27357fi
27358echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27359echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27360
27361fi
27362if test $ac_cv_header_GL_gl_h = yes; then
27363
27364 found_gl=0
27365
27366 echo "$as_me:$LINENO: checking for -lGL" >&5
27367echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27368
27369ac_find_libraries=
27370for ac_dir in $SEARCH_LIB /usr/lib;
27371 do
27372 for ac_extension in a so sl dylib; do
27373 if test -f "$ac_dir/libGL.$ac_extension"; then
27374 ac_find_libraries=$ac_dir
27375 break 2
27376 fi
27377 done
27378 done
27379
27380 if test "$ac_find_libraries" != "" ; then
27381
27382 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27383 result=$?
27384 if test $result = 0; then
27385 ac_path_to_link=""
27386 else
27387 ac_path_to_link=" -L$ac_find_libraries"
27388 fi
27389
27390 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27391 LDFLAGS_GL="$ac_path_to_link"
27392 fi
27393
27394
27395ac_find_libraries=
27396for ac_dir in $SEARCH_LIB /usr/lib;
27397 do
27398 for ac_extension in a so sl dylib; do
27399 if test -f "$ac_dir/libGLU.$ac_extension"; then
27400 ac_find_libraries=$ac_dir
27401 break 2
27402 fi
27403 done
27404 done
27405
27406 if test "$ac_find_libraries" != "" ; then
27407
27408 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27409 result=$?
27410 if test $result = 0; then
27411 ac_path_to_link=""
27412 else
27413 ac_path_to_link=" -L$ac_find_libraries"
27414 fi
27415
27416 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27417 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27418 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27419 fi
27420
27421 found_gl=1
27422 OPENGL_LIBS="-lGL -lGLU"
27423 echo "$as_me:$LINENO: result: yes" >&5
27424echo "${ECHO_T}yes" >&6
27425 fi
27426 fi
27427
27428 if test "$found_gl" != 1; then
27429 echo "$as_me:$LINENO: result: no" >&5
27430echo "${ECHO_T}no" >&6
27431 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27432echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27433
27434ac_find_libraries=
27435for ac_dir in $SEARCH_LIB /usr/lib;
27436 do
27437 for ac_extension in a so sl dylib; do
27438 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27439 ac_find_libraries=$ac_dir
27440 break 2
27441 fi
27442 done
27443 done
27444
27445 if test "$ac_find_libraries" != "" ; then
27446
27447 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27448 result=$?
27449 if test $result = 0; then
27450 ac_path_to_link=""
27451 else
27452 ac_path_to_link=" -L$ac_find_libraries"
27453 fi
27454
27455 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27456 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27457 echo "$as_me:$LINENO: result: yes" >&5
27458echo "${ECHO_T}yes" >&6
27459 else
27460 echo "$as_me:$LINENO: result: no" >&5
27461echo "${ECHO_T}no" >&6
27462 fi
27463 fi
27464
27465fi
27466
27467
27468
27469 if test "x$OPENGL_LIBS" = "x"; then
27470 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27471echo "$as_me: error: OpenGL libraries not available" >&2;}
27472 { (exit 1); exit 1; }; }
27473 fi
27474 fi
27475
27476 if test "$wxUSE_OPENGL" = "yes"; then
27477 USE_OPENGL=1
27478 cat >>confdefs.h <<\_ACEOF
27479#define wxUSE_OPENGL 1
27480_ACEOF
27481
27482 cat >>confdefs.h <<\_ACEOF
27483#define wxUSE_GLCANVAS 1
27484_ACEOF
27485
27486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27487 fi
27488fi
27489
27490if test -z "$TOOLKIT_VPATH" ; then
27491 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27492fi
27493
27494if test -n "$TOOLKIT" ; then
27495 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27496fi
27497
27498UNICODE=0
27499lib_unicode_suffix=
27500if test "$wxUSE_UNICODE" = "yes"; then
27501 lib_unicode_suffix=u
27502 UNICODE=1
27503fi
27504
27505lib_debug_suffix=
27506DEBUG_FLAG=0
27507if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27508 lib_debug_suffix=d
27509 DEBUG_FLAG=1
27510fi
27511
27512DEBUG_INFO=0
27513if test "$wxUSE_DEBUG_INFO" = "yes"; then
27514 DEBUG_INFO=1
27515fi
27516
27517WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27518
27519TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27520TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27521
27522if test "$cross_compiling" = "yes"; then
27523 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27524 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27525 HOST_SUFFIX="-${host_alias}"
27526fi
27527
27528WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27529WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27530WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27531WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27532
27533WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27534WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27535
27536WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27537WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27538WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27539WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27540
27541case "${host}" in
27542 *-*-cygwin* | *-*-mingw32* )
27543 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27544 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27545 ;;
27546
27547 *-*-darwin* )
27548
27549 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27550 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27551
27552 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27553 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27554 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27555 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27556
27557 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27558 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27559 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27560 fi
27561 ;;
27562esac
27563
27564WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27565WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27566
27567WXCONFIG_LIBS="-l${WX_LIBRARY}"
27568WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27569
27570if test "$wxUSE_OPENGL" = "yes"; then
27571 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27572 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27573fi
27574
27575
27576
27577if test "$wxUSE_SHARED" = "yes"; then
27578 case "${host}" in
27579 *-pc-msdosdjgpp )
27580 wxUSE_SHARED=no
27581 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27582echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27583 ;;
27584 esac
27585fi
27586
27587SHARED=0
27588if test "$wxUSE_SHARED" = "yes"; then
27589 SHARED=1
27590
27591
27592 found_versioning=no
27593
27594
27595 if test $found_versioning = no ; then
27596 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27597echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27598if test "${wx_cv_version_script+set}" = set; then
27599 echo $ECHO_N "(cached) $ECHO_C" >&6
27600else
27601
27602 echo "VER_1 { *; };" >conftest.sym
27603 echo "int main() { return 0; }" >conftest.cpp
27604
27605 if { ac_try='
27606 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27607 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27609 (eval $ac_try) 2>&5
27610 ac_status=$?
27611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); }; } ; then
27613 if test -s conftest.stderr ; then
27614 wx_cv_version_script=no
27615 else
27616 wx_cv_version_script=yes
27617 fi
27618 else
27619 wx_cv_version_script=no
27620 fi
27621 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27622
27623fi
27624echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27625echo "${ECHO_T}$wx_cv_version_script" >&6
27626 if test $wx_cv_version_script = yes ; then
27627 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27628 fi
27629 fi
27630
27631
27632 case "${host}" in
27633 *-*-linux* | *-*-gnu* )
27634 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27635 ;;
27636
27637 *-*-solaris2* )
27638 if test "$GCC" = yes ; then
27639 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27640
27641 saveLdflags="$LDFLAGS"
27642 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27643 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27644echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27645 cat >conftest.$ac_ext <<_ACEOF
27646/* confdefs.h. */
27647_ACEOF
27648cat confdefs.h >>conftest.$ac_ext
27649cat >>conftest.$ac_ext <<_ACEOF
27650/* end confdefs.h. */
27651
27652int
27653main ()
27654{
27655
27656 ;
27657 return 0;
27658}
27659_ACEOF
27660rm -f conftest.$ac_objext conftest$ac_exeext
27661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27662 (eval $ac_link) 2>conftest.er1
a848cd7e 27663 ac_status=$?
ac1cb8d3
VS
27664 grep -v '^ *+' conftest.er1 >conftest.err
27665 rm -f conftest.er1
27666 cat conftest.err >&5
a848cd7e
SC
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } &&
ac1cb8d3
VS
27669 { ac_try='test -z "$ac_c_werror_flag"
27670 || test ! -s conftest.err'
27671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27672 (eval $ac_try) 2>&5
27673 ac_status=$?
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; } &&
27676 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678 (eval $ac_try) 2>&5
27679 ac_status=$?
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); }; }; then
27682
27683 echo "$as_me:$LINENO: result: yes" >&5
27684echo "${ECHO_T}yes" >&6
27685 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27686
27687else
27688 echo "$as_me: failed program was:" >&5
27689sed 's/^/| /' conftest.$ac_ext >&5
27690
27691
27692 echo "$as_me:$LINENO: result: no" >&5
27693echo "${ECHO_T}no" >&6
27694 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27695echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27696 LDFLAGS="$saveLdflags -Wl,-R,/"
27697 cat >conftest.$ac_ext <<_ACEOF
27698/* confdefs.h. */
27699_ACEOF
27700cat confdefs.h >>conftest.$ac_ext
27701cat >>conftest.$ac_ext <<_ACEOF
27702/* end confdefs.h. */
27703
27704int
27705main ()
27706{
27707
27708 ;
27709 return 0;
27710}
27711_ACEOF
27712rm -f conftest.$ac_objext conftest$ac_exeext
27713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27714 (eval $ac_link) 2>conftest.er1
a848cd7e 27715 ac_status=$?
ac1cb8d3
VS
27716 grep -v '^ *+' conftest.er1 >conftest.err
27717 rm -f conftest.er1
27718 cat conftest.err >&5
a848cd7e
SC
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); } &&
ac1cb8d3
VS
27721 { ac_try='test -z "$ac_c_werror_flag"
27722 || test ! -s conftest.err'
27723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724 (eval $ac_try) 2>&5
27725 ac_status=$?
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; } &&
27728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730 (eval $ac_try) 2>&5
27731 ac_status=$?
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); }; }; then
27734
27735 echo "$as_me:$LINENO: result: yes" >&5
27736echo "${ECHO_T}yes" >&6
27737 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27738else
27739 echo "$as_me: failed program was:" >&5
27740sed 's/^/| /' conftest.$ac_ext >&5
27741
27742
27743 echo "$as_me:$LINENO: result: no" >&5
27744echo "${ECHO_T}no" >&6
27745
27746fi
ac1cb8d3
VS
27747rm -f conftest.err conftest.$ac_objext \
27748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27749
27750fi
ac1cb8d3
VS
27751rm -f conftest.err conftest.$ac_objext \
27752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27753 LDFLAGS="$saveLdflags"
27754 else
27755 SHARED_LD="${CXX} -G -o"
27756 PIC_FLAG="-KPIC"
27757 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27758 fi
27759 ;;
27760
27761 powerpc-*-darwin* )
27762 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27763 cat <<EOF >change-install-names
27764#!/bin/sh
27765libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27766inst_cmd="install_name_tool "
27767for i in \${libnames} ; do
27768 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27769done
27770\${inst_cmd} \${3}
27771EOF
27772 chmod +x change-install-names
27773 ;;
27774
27775 *-*-cygwin* | *-*-mingw32* )
27776 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27777 ;;
27778
27779 esac
27780
27781 if test "x$WX_TARGET_LIBRARY" = "x"; then
27782 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27783 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27784 fi
27785
27786 WX_TARGET_LIBRARY_TYPE="so"
27787 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27788fi
27789
27790if test "$wxUSE_SHARED" = "no"; then
27791
27792 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27793 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27794 fi
27795
27796 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27797 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27798 fi
27799
27800 if test "$wxUSE_OPENGL" = "yes"; then
27801 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27802 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27803 else
27804 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27805 fi
27806
27807 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27808 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27809
27810 WX_TARGET_LIBRARY_TYPE="a"
27811 INSTALL_LIBRARY='$(INSTALL_DATA)'
27812
27813 STATIC_FLAG="yes"
27814else
27815 STATIC_FLAG="no"
27816fi
27817
27818if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27819 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27820 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27821 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27822
27823 # Extract the first word of "Rez", so it can be a program name with args.
27824set dummy Rez; ac_word=$2
27825echo "$as_me:$LINENO: checking for $ac_word" >&5
27826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27827if test "${ac_cv_prog_RESCOMP+set}" = set; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27829else
27830 if test -n "$RESCOMP"; then
27831 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27832else
27833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27834for as_dir in $PATH
27835do
27836 IFS=$as_save_IFS
27837 test -z "$as_dir" && as_dir=.
27838 for ac_exec_ext in '' $ac_executable_extensions; do
27839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27840 ac_cv_prog_RESCOMP="Rez"
27841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27842 break 2
27843 fi
27844done
27845done
27846
27847 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27848fi
27849fi
27850RESCOMP=$ac_cv_prog_RESCOMP
27851if test -n "$RESCOMP"; then
27852 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27853echo "${ECHO_T}$RESCOMP" >&6
27854else
27855 echo "$as_me:$LINENO: result: no" >&5
27856echo "${ECHO_T}no" >&6
27857fi
27858
27859 # Extract the first word of "DeRez", so it can be a program name with args.
27860set dummy DeRez; ac_word=$2
27861echo "$as_me:$LINENO: checking for $ac_word" >&5
27862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27863if test "${ac_cv_prog_DEREZ+set}" = set; then
27864 echo $ECHO_N "(cached) $ECHO_C" >&6
27865else
27866 if test -n "$DEREZ"; then
27867 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27868else
27869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27870for as_dir in $PATH
27871do
27872 IFS=$as_save_IFS
27873 test -z "$as_dir" && as_dir=.
27874 for ac_exec_ext in '' $ac_executable_extensions; do
27875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27876 ac_cv_prog_DEREZ="DeRez"
27877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27878 break 2
27879 fi
27880done
27881done
27882
27883 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27884fi
27885fi
27886DEREZ=$ac_cv_prog_DEREZ
27887if test -n "$DEREZ"; then
27888 echo "$as_me:$LINENO: result: $DEREZ" >&5
27889echo "${ECHO_T}$DEREZ" >&6
27890else
27891 echo "$as_me:$LINENO: result: no" >&5
27892echo "${ECHO_T}no" >&6
27893fi
27894
27895 # Extract the first word of "SetFile", so it can be a program name with args.
27896set dummy SetFile; ac_word=$2
27897echo "$as_me:$LINENO: checking for $ac_word" >&5
27898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27899if test "${ac_cv_prog_SETFILE+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27901else
27902 if test -n "$SETFILE"; then
27903 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27904else
27905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27906for as_dir in $PATH
27907do
27908 IFS=$as_save_IFS
27909 test -z "$as_dir" && as_dir=.
27910 for ac_exec_ext in '' $ac_executable_extensions; do
27911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27912 ac_cv_prog_SETFILE="SetFile"
27913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27914 break 2
27915 fi
27916done
27917done
27918
27919 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27920fi
27921fi
27922SETFILE=$ac_cv_prog_SETFILE
27923if test -n "$SETFILE"; then
27924 echo "$as_me:$LINENO: result: $SETFILE" >&5
27925echo "${ECHO_T}$SETFILE" >&6
27926else
27927 echo "$as_me:$LINENO: result: no" >&5
27928echo "${ECHO_T}no" >&6
27929fi
27930
27931
27932 MACSETFILE="\$(SETFILE)"
27933
27934 if test "$wxUSE_MAC" = 1; then
27935 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27936
27937 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27938 else
27939 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27940 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27941 fi
27942else
27943 MACSETFILE="@#"
27944 MACRESWXCONFIG="#"
27945
27946 if test "$wxUSE_PM" = 1; then
27947 MACRESCOMP="emxbind -ep"
27948 else
27949 MACRESCOMP="@#"
27950 fi
27951fi
27952
27953
27954
27955echo "$as_me:$LINENO: checking for mode_t" >&5
27956echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27957if test "${ac_cv_type_mode_t+set}" = set; then
27958 echo $ECHO_N "(cached) $ECHO_C" >&6
27959else
27960 cat >conftest.$ac_ext <<_ACEOF
27961/* confdefs.h. */
27962_ACEOF
27963cat confdefs.h >>conftest.$ac_ext
27964cat >>conftest.$ac_ext <<_ACEOF
27965/* end confdefs.h. */
27966$ac_includes_default
27967int
27968main ()
27969{
27970if ((mode_t *) 0)
27971 return 0;
27972if (sizeof (mode_t))
27973 return 0;
27974 ;
27975 return 0;
27976}
27977_ACEOF
27978rm -f conftest.$ac_objext
27979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27980 (eval $ac_compile) 2>conftest.er1
a848cd7e 27981 ac_status=$?
ac1cb8d3
VS
27982 grep -v '^ *+' conftest.er1 >conftest.err
27983 rm -f conftest.er1
27984 cat conftest.err >&5
a848cd7e
SC
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
ac1cb8d3
VS
27987 { ac_try='test -z "$ac_c_werror_flag"
27988 || test ! -s conftest.err'
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27991 ac_status=$?
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; } &&
27994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996 (eval $ac_try) 2>&5
27997 ac_status=$?
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28000 ac_cv_type_mode_t=yes
28001else
28002 echo "$as_me: failed program was:" >&5
28003sed 's/^/| /' conftest.$ac_ext >&5
28004
28005ac_cv_type_mode_t=no
28006fi
ac1cb8d3 28007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28008fi
28009echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28010echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28011if test $ac_cv_type_mode_t = yes; then
28012 :
28013else
28014
28015cat >>confdefs.h <<_ACEOF
28016#define mode_t int
28017_ACEOF
28018
28019fi
28020
28021echo "$as_me:$LINENO: checking for off_t" >&5
28022echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28023if test "${ac_cv_type_off_t+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28025else
28026 cat >conftest.$ac_ext <<_ACEOF
28027/* confdefs.h. */
28028_ACEOF
28029cat confdefs.h >>conftest.$ac_ext
28030cat >>conftest.$ac_ext <<_ACEOF
28031/* end confdefs.h. */
28032$ac_includes_default
28033int
28034main ()
28035{
28036if ((off_t *) 0)
28037 return 0;
28038if (sizeof (off_t))
28039 return 0;
28040 ;
28041 return 0;
28042}
28043_ACEOF
28044rm -f conftest.$ac_objext
28045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28046 (eval $ac_compile) 2>conftest.er1
a848cd7e 28047 ac_status=$?
ac1cb8d3
VS
28048 grep -v '^ *+' conftest.er1 >conftest.err
28049 rm -f conftest.er1
28050 cat conftest.err >&5
a848cd7e
SC
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); } &&
ac1cb8d3
VS
28053 { ac_try='test -z "$ac_c_werror_flag"
28054 || test ! -s conftest.err'
28055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056 (eval $ac_try) 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; } &&
28060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062 (eval $ac_try) 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; }; then
28066 ac_cv_type_off_t=yes
28067else
28068 echo "$as_me: failed program was:" >&5
28069sed 's/^/| /' conftest.$ac_ext >&5
28070
28071ac_cv_type_off_t=no
28072fi
ac1cb8d3 28073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28074fi
28075echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28076echo "${ECHO_T}$ac_cv_type_off_t" >&6
28077if test $ac_cv_type_off_t = yes; then
28078 :
28079else
28080
28081cat >>confdefs.h <<_ACEOF
28082#define off_t long
28083_ACEOF
28084
28085fi
28086
28087echo "$as_me:$LINENO: checking for pid_t" >&5
28088echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28089if test "${ac_cv_type_pid_t+set}" = set; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28091else
28092 cat >conftest.$ac_ext <<_ACEOF
28093/* confdefs.h. */
28094_ACEOF
28095cat confdefs.h >>conftest.$ac_ext
28096cat >>conftest.$ac_ext <<_ACEOF
28097/* end confdefs.h. */
28098$ac_includes_default
28099int
28100main ()
28101{
28102if ((pid_t *) 0)
28103 return 0;
28104if (sizeof (pid_t))
28105 return 0;
28106 ;
28107 return 0;
28108}
28109_ACEOF
28110rm -f conftest.$ac_objext
28111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28112 (eval $ac_compile) 2>conftest.er1
a848cd7e 28113 ac_status=$?
ac1cb8d3
VS
28114 grep -v '^ *+' conftest.er1 >conftest.err
28115 rm -f conftest.er1
28116 cat conftest.err >&5
a848cd7e
SC
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); } &&
ac1cb8d3
VS
28119 { ac_try='test -z "$ac_c_werror_flag"
28120 || test ! -s conftest.err'
28121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122 (eval $ac_try) 2>&5
28123 ac_status=$?
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; } &&
28126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128 (eval $ac_try) 2>&5
28129 ac_status=$?
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); }; }; then
28132 ac_cv_type_pid_t=yes
28133else
28134 echo "$as_me: failed program was:" >&5
28135sed 's/^/| /' conftest.$ac_ext >&5
28136
28137ac_cv_type_pid_t=no
28138fi
ac1cb8d3 28139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28140fi
28141echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28142echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28143if test $ac_cv_type_pid_t = yes; then
28144 :
28145else
28146
28147cat >>confdefs.h <<_ACEOF
28148#define pid_t int
28149_ACEOF
28150
28151fi
28152
28153echo "$as_me:$LINENO: checking for size_t" >&5
28154echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28155if test "${ac_cv_type_size_t+set}" = set; then
28156 echo $ECHO_N "(cached) $ECHO_C" >&6
28157else
28158 cat >conftest.$ac_ext <<_ACEOF
28159/* confdefs.h. */
28160_ACEOF
28161cat confdefs.h >>conftest.$ac_ext
28162cat >>conftest.$ac_ext <<_ACEOF
28163/* end confdefs.h. */
28164$ac_includes_default
28165int
28166main ()
28167{
28168if ((size_t *) 0)
28169 return 0;
28170if (sizeof (size_t))
28171 return 0;
28172 ;
28173 return 0;
28174}
28175_ACEOF
28176rm -f conftest.$ac_objext
28177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28178 (eval $ac_compile) 2>conftest.er1
a848cd7e 28179 ac_status=$?
ac1cb8d3
VS
28180 grep -v '^ *+' conftest.er1 >conftest.err
28181 rm -f conftest.er1
28182 cat conftest.err >&5
a848cd7e
SC
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); } &&
ac1cb8d3
VS
28185 { ac_try='test -z "$ac_c_werror_flag"
28186 || test ! -s conftest.err'
28187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28188 (eval $ac_try) 2>&5
28189 ac_status=$?
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; } &&
28192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194 (eval $ac_try) 2>&5
28195 ac_status=$?
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; }; then
28198 ac_cv_type_size_t=yes
28199else
28200 echo "$as_me: failed program was:" >&5
28201sed 's/^/| /' conftest.$ac_ext >&5
28202
28203ac_cv_type_size_t=no
28204fi
ac1cb8d3 28205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28206fi
28207echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28208echo "${ECHO_T}$ac_cv_type_size_t" >&6
28209if test $ac_cv_type_size_t = yes; then
28210 :
28211else
28212
28213cat >>confdefs.h <<_ACEOF
28214#define size_t unsigned
28215_ACEOF
28216
28217fi
28218
28219echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28220echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28221if test "${ac_cv_type_uid_t+set}" = set; then
28222 echo $ECHO_N "(cached) $ECHO_C" >&6
28223else
28224 cat >conftest.$ac_ext <<_ACEOF
28225/* confdefs.h. */
28226_ACEOF
28227cat confdefs.h >>conftest.$ac_ext
28228cat >>conftest.$ac_ext <<_ACEOF
28229/* end confdefs.h. */
28230#include <sys/types.h>
28231
28232_ACEOF
28233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28234 $EGREP "uid_t" >/dev/null 2>&1; then
28235 ac_cv_type_uid_t=yes
28236else
28237 ac_cv_type_uid_t=no
28238fi
28239rm -f conftest*
28240
28241fi
28242echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28243echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28244if test $ac_cv_type_uid_t = no; then
28245
28246cat >>confdefs.h <<\_ACEOF
28247#define uid_t int
28248_ACEOF
28249
28250
28251cat >>confdefs.h <<\_ACEOF
28252#define gid_t int
28253_ACEOF
28254
28255fi
28256
28257
28258
28259
28260ac_ext=cc
28261ac_cpp='$CXXCPP $CPPFLAGS'
28262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28265
28266echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28267echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28268if test "${wx_cv_size_t_is_uint+set}" = set; then
28269 echo $ECHO_N "(cached) $ECHO_C" >&6
28270else
28271
28272 cat >conftest.$ac_ext <<_ACEOF
28273/* confdefs.h. */
28274_ACEOF
28275cat confdefs.h >>conftest.$ac_ext
28276cat >>conftest.$ac_ext <<_ACEOF
28277/* end confdefs.h. */
28278#include <stddef.h>
28279int
28280main ()
28281{
28282
28283 return 0; }
28284
28285 struct Foo { void foo(size_t); void foo(unsigned int); };
28286
28287 int bar() {
28288
28289 ;
28290 return 0;
28291}
28292_ACEOF
28293rm -f conftest.$ac_objext
28294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28295 (eval $ac_compile) 2>conftest.er1
a848cd7e 28296 ac_status=$?
ac1cb8d3
VS
28297 grep -v '^ *+' conftest.er1 >conftest.err
28298 rm -f conftest.er1
28299 cat conftest.err >&5
a848cd7e
SC
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } &&
ac1cb8d3
VS
28302 { ac_try='test -z "$ac_cxx_werror_flag"
28303 || test ! -s conftest.err'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28306 ac_status=$?
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; } &&
28309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28312 ac_status=$?
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; }; then
28315 wx_cv_size_t_is_uint=no
28316else
28317 echo "$as_me: failed program was:" >&5
28318sed 's/^/| /' conftest.$ac_ext >&5
28319
28320wx_cv_size_t_is_uint=yes
28321
28322fi
ac1cb8d3 28323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28324
28325
28326fi
28327echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28328echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28329
28330if test "$wx_cv_size_t_is_uint" = "yes"; then
28331 cat >>confdefs.h <<\_ACEOF
28332#define wxSIZE_T_IS_UINT 1
28333_ACEOF
28334
28335else
28336 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28337echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28338if test "${wx_cv_size_t_is_ulong+set}" = set; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28340else
28341 cat >conftest.$ac_ext <<_ACEOF
28342/* confdefs.h. */
28343_ACEOF
28344cat confdefs.h >>conftest.$ac_ext
28345cat >>conftest.$ac_ext <<_ACEOF
28346/* end confdefs.h. */
28347#include <stddef.h>
28348int
28349main ()
28350{
28351
28352 return 0; }
28353
28354 struct Foo { void foo(size_t); void foo(unsigned long); };
28355
28356 int bar() {
28357
28358 ;
28359 return 0;
28360}
28361_ACEOF
28362rm -f conftest.$ac_objext
28363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28364 (eval $ac_compile) 2>conftest.er1
a848cd7e 28365 ac_status=$?
ac1cb8d3
VS
28366 grep -v '^ *+' conftest.er1 >conftest.err
28367 rm -f conftest.er1
28368 cat conftest.err >&5
a848cd7e
SC
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } &&
ac1cb8d3
VS
28371 { ac_try='test -z "$ac_cxx_werror_flag"
28372 || test ! -s conftest.err'
28373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374 (eval $ac_try) 2>&5
28375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; } &&
28378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28380 (eval $ac_try) 2>&5
28381 ac_status=$?
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; }; then
28384 wx_cv_size_t_is_ulong=no
28385else
28386 echo "$as_me: failed program was:" >&5
28387sed 's/^/| /' conftest.$ac_ext >&5
28388
28389wx_cv_size_t_is_ulong=yes
28390
28391fi
ac1cb8d3 28392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28393
28394fi
28395echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28396echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28397
28398 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28399 cat >>confdefs.h <<\_ACEOF
28400#define wxSIZE_T_IS_ULONG 1
28401_ACEOF
28402
28403 fi
28404fi
28405
28406ac_ext=c
28407ac_cpp='$CPP $CPPFLAGS'
28408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28410ac_compiler_gnu=$ac_cv_c_compiler_gnu
28411
28412
28413
28414echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28415echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28416if test "${wx_cv_struct_pw_gecos+set}" = set; then
28417 echo $ECHO_N "(cached) $ECHO_C" >&6
28418else
28419
28420 cat >conftest.$ac_ext <<_ACEOF
28421/* confdefs.h. */
28422_ACEOF
28423cat confdefs.h >>conftest.$ac_ext
28424cat >>conftest.$ac_ext <<_ACEOF
28425/* end confdefs.h. */
28426#include <pwd.h>
28427int
28428main ()
28429{
28430
28431 char *p;
28432 struct passwd *pw;
28433 p = pw->pw_gecos;
28434
28435 ;
28436 return 0;
28437}
28438_ACEOF
28439rm -f conftest.$ac_objext
28440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28441 (eval $ac_compile) 2>conftest.er1
a848cd7e 28442 ac_status=$?
ac1cb8d3
VS
28443 grep -v '^ *+' conftest.er1 >conftest.err
28444 rm -f conftest.er1
28445 cat conftest.err >&5
a848cd7e
SC
28446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); } &&
ac1cb8d3
VS
28448 { ac_try='test -z "$ac_c_werror_flag"
28449 || test ! -s conftest.err'
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; } &&
28455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457 (eval $ac_try) 2>&5
28458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; }; then
28461
28462 wx_cv_struct_pw_gecos=yes
28463
28464else
28465 echo "$as_me: failed program was:" >&5
28466sed 's/^/| /' conftest.$ac_ext >&5
28467
28468
28469 wx_cv_struct_pw_gecos=no
28470
28471
28472fi
ac1cb8d3 28473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28474
28475
28476fi
28477echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28478echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28479
28480if test "$wx_cv_struct_pw_gecos" = "yes"; then
28481 cat >>confdefs.h <<\_ACEOF
28482#define HAVE_PW_GECOS 1
28483_ACEOF
28484
28485fi
28486
28487
28488if test "$wx_cv_sizeof_wchar_t" != "0"; then
28489 cat >>confdefs.h <<\_ACEOF
28490#define wxUSE_WCHAR_T 1
28491_ACEOF
28492
28493
28494 WCSLEN_FOUND=0
28495 WCHAR_LINK=
28496
28497for ac_func in wcslen
28498do
28499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28500echo "$as_me:$LINENO: checking for $ac_func" >&5
28501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28502if eval "test \"\${$as_ac_var+set}\" = set"; then
28503 echo $ECHO_N "(cached) $ECHO_C" >&6
28504else
28505 cat >conftest.$ac_ext <<_ACEOF
28506/* confdefs.h. */
28507_ACEOF
28508cat confdefs.h >>conftest.$ac_ext
28509cat >>conftest.$ac_ext <<_ACEOF
28510/* end confdefs.h. */
ac1cb8d3
VS
28511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28513#define $ac_func innocuous_$ac_func
28514
a848cd7e
SC
28515/* System header to define __stub macros and hopefully few prototypes,
28516 which can conflict with char $ac_func (); below.
28517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28518 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28519
a848cd7e
SC
28520#ifdef __STDC__
28521# include <limits.h>
28522#else
28523# include <assert.h>
28524#endif
ac1cb8d3
VS
28525
28526#undef $ac_func
28527
a848cd7e
SC
28528/* Override any gcc2 internal prototype to avoid an error. */
28529#ifdef __cplusplus
28530extern "C"
28531{
28532#endif
28533/* We use char because int might match the return type of a gcc2
28534 builtin and then its argument prototype would still apply. */
28535char $ac_func ();
28536/* The GNU C library defines this for functions which it implements
28537 to always fail with ENOSYS. Some functions are actually named
28538 something starting with __ and the normal name is an alias. */
28539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28540choke me
28541#else
28542char (*f) () = $ac_func;
28543#endif
28544#ifdef __cplusplus
28545}
28546#endif
28547
28548int
28549main ()
28550{
28551return f != $ac_func;
28552 ;
28553 return 0;
28554}
28555_ACEOF
28556rm -f conftest.$ac_objext conftest$ac_exeext
28557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28558 (eval $ac_link) 2>conftest.er1
a848cd7e 28559 ac_status=$?
ac1cb8d3
VS
28560 grep -v '^ *+' conftest.er1 >conftest.err
28561 rm -f conftest.er1
28562 cat conftest.err >&5
a848cd7e
SC
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); } &&
ac1cb8d3
VS
28565 { ac_try='test -z "$ac_c_werror_flag"
28566 || test ! -s conftest.err'
28567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568 (eval $ac_try) 2>&5
28569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; } &&
28572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28574 (eval $ac_try) 2>&5
28575 ac_status=$?
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); }; }; then
28578 eval "$as_ac_var=yes"
28579else
28580 echo "$as_me: failed program was:" >&5
28581sed 's/^/| /' conftest.$ac_ext >&5
28582
28583eval "$as_ac_var=no"
28584fi
ac1cb8d3
VS
28585rm -f conftest.err conftest.$ac_objext \
28586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28587fi
28588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28589echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28590if test `eval echo '${'$as_ac_var'}'` = yes; then
28591 cat >>confdefs.h <<_ACEOF
28592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28593_ACEOF
28594 WCSLEN_FOUND=1
28595fi
28596done
28597
28598
28599 if test "$WCSLEN_FOUND" = 0; then
28600 if test "$TOOLKIT" = "MSW"; then
28601 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28602echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28603if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28604 echo $ECHO_N "(cached) $ECHO_C" >&6
28605else
28606 ac_check_lib_save_LIBS=$LIBS
28607LIBS="-lmsvcrt $LIBS"
28608cat >conftest.$ac_ext <<_ACEOF
28609/* confdefs.h. */
28610_ACEOF
28611cat confdefs.h >>conftest.$ac_ext
28612cat >>conftest.$ac_ext <<_ACEOF
28613/* end confdefs.h. */
28614
28615/* Override any gcc2 internal prototype to avoid an error. */
28616#ifdef __cplusplus
28617extern "C"
28618#endif
28619/* We use char because int might match the return type of a gcc2
28620 builtin and then its argument prototype would still apply. */
28621char wcslen ();
28622int
28623main ()
28624{
28625wcslen ();
28626 ;
28627 return 0;
28628}
28629_ACEOF
28630rm -f conftest.$ac_objext conftest$ac_exeext
28631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28632 (eval $ac_link) 2>conftest.er1
a848cd7e 28633 ac_status=$?
ac1cb8d3
VS
28634 grep -v '^ *+' conftest.er1 >conftest.err
28635 rm -f conftest.er1
28636 cat conftest.err >&5
a848cd7e
SC
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); } &&
ac1cb8d3
VS
28639 { ac_try='test -z "$ac_c_werror_flag"
28640 || test ! -s conftest.err'
28641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642 (eval $ac_try) 2>&5
28643 ac_status=$?
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); }; } &&
28646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28648 (eval $ac_try) 2>&5
28649 ac_status=$?
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); }; }; then
28652 ac_cv_lib_msvcrt_wcslen=yes
28653else
28654 echo "$as_me: failed program was:" >&5
28655sed 's/^/| /' conftest.$ac_ext >&5
28656
28657ac_cv_lib_msvcrt_wcslen=no
28658fi
ac1cb8d3
VS
28659rm -f conftest.err conftest.$ac_objext \
28660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28661LIBS=$ac_check_lib_save_LIBS
28662fi
28663echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28664echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28665if test $ac_cv_lib_msvcrt_wcslen = yes; then
28666 WCHAR_OK=1
28667fi
28668
28669 else
28670 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28671echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28672if test "${ac_cv_lib_w_wcslen+set}" = set; then
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28674else
28675 ac_check_lib_save_LIBS=$LIBS
28676LIBS="-lw $LIBS"
28677cat >conftest.$ac_ext <<_ACEOF
28678/* confdefs.h. */
28679_ACEOF
28680cat confdefs.h >>conftest.$ac_ext
28681cat >>conftest.$ac_ext <<_ACEOF
28682/* end confdefs.h. */
28683
28684/* Override any gcc2 internal prototype to avoid an error. */
28685#ifdef __cplusplus
28686extern "C"
28687#endif
28688/* We use char because int might match the return type of a gcc2
28689 builtin and then its argument prototype would still apply. */
28690char wcslen ();
28691int
28692main ()
28693{
28694wcslen ();
28695 ;
28696 return 0;
28697}
28698_ACEOF
28699rm -f conftest.$ac_objext conftest$ac_exeext
28700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28701 (eval $ac_link) 2>conftest.er1
a848cd7e 28702 ac_status=$?
ac1cb8d3
VS
28703 grep -v '^ *+' conftest.er1 >conftest.err
28704 rm -f conftest.er1
28705 cat conftest.err >&5
a848cd7e
SC
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } &&
ac1cb8d3
VS
28708 { ac_try='test -z "$ac_c_werror_flag"
28709 || test ! -s conftest.err'
28710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28711 (eval $ac_try) 2>&5
28712 ac_status=$?
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; } &&
28715 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717 (eval $ac_try) 2>&5
28718 ac_status=$?
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); }; }; then
28721 ac_cv_lib_w_wcslen=yes
28722else
28723 echo "$as_me: failed program was:" >&5
28724sed 's/^/| /' conftest.$ac_ext >&5
28725
28726ac_cv_lib_w_wcslen=no
28727fi
ac1cb8d3
VS
28728rm -f conftest.err conftest.$ac_objext \
28729 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28730LIBS=$ac_check_lib_save_LIBS
28731fi
28732echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28733echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28734if test $ac_cv_lib_w_wcslen = yes; then
28735
28736 WCHAR_LINK=" -lw"
28737 WCSLEN_FOUND=1
28738
28739fi
28740
28741 fi
28742 fi
28743
28744 if test "$WCSLEN_FOUND" = 1; then
28745 cat >>confdefs.h <<\_ACEOF
28746#define HAVE_WCSLEN 1
28747_ACEOF
28748
28749 fi
28750
473276a9
VS
28751 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28752 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28753 fi
28754
a848cd7e
SC
28755
28756for ac_func in wcsrtombs
28757do
28758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28759echo "$as_me:$LINENO: checking for $ac_func" >&5
28760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28761if eval "test \"\${$as_ac_var+set}\" = set"; then
28762 echo $ECHO_N "(cached) $ECHO_C" >&6
28763else
28764 cat >conftest.$ac_ext <<_ACEOF
28765/* confdefs.h. */
28766_ACEOF
28767cat confdefs.h >>conftest.$ac_ext
28768cat >>conftest.$ac_ext <<_ACEOF
28769/* end confdefs.h. */
ac1cb8d3
VS
28770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28772#define $ac_func innocuous_$ac_func
28773
a848cd7e
SC
28774/* System header to define __stub macros and hopefully few prototypes,
28775 which can conflict with char $ac_func (); below.
28776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28777 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28778
a848cd7e
SC
28779#ifdef __STDC__
28780# include <limits.h>
28781#else
28782# include <assert.h>
28783#endif
ac1cb8d3
VS
28784
28785#undef $ac_func
28786
a848cd7e
SC
28787/* Override any gcc2 internal prototype to avoid an error. */
28788#ifdef __cplusplus
28789extern "C"
28790{
28791#endif
28792/* We use char because int might match the return type of a gcc2
28793 builtin and then its argument prototype would still apply. */
28794char $ac_func ();
28795/* The GNU C library defines this for functions which it implements
28796 to always fail with ENOSYS. Some functions are actually named
28797 something starting with __ and the normal name is an alias. */
28798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28799choke me
28800#else
28801char (*f) () = $ac_func;
28802#endif
28803#ifdef __cplusplus
28804}
28805#endif
28806
28807int
28808main ()
28809{
28810return f != $ac_func;
28811 ;
28812 return 0;
28813}
28814_ACEOF
28815rm -f conftest.$ac_objext conftest$ac_exeext
28816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28817 (eval $ac_link) 2>conftest.er1
a848cd7e 28818 ac_status=$?
ac1cb8d3
VS
28819 grep -v '^ *+' conftest.er1 >conftest.err
28820 rm -f conftest.er1
28821 cat conftest.err >&5
a848cd7e
SC
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); } &&
ac1cb8d3
VS
28824 { ac_try='test -z "$ac_c_werror_flag"
28825 || test ! -s conftest.err'
28826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28827 (eval $ac_try) 2>&5
28828 ac_status=$?
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; } &&
28831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; }; then
28837 eval "$as_ac_var=yes"
28838else
28839 echo "$as_me: failed program was:" >&5
28840sed 's/^/| /' conftest.$ac_ext >&5
28841
28842eval "$as_ac_var=no"
28843fi
ac1cb8d3
VS
28844rm -f conftest.err conftest.$ac_objext \
28845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28846fi
28847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28849if test `eval echo '${'$as_ac_var'}'` = yes; then
28850 cat >>confdefs.h <<_ACEOF
28851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28852_ACEOF
28853
28854fi
28855done
28856
28857else
28858 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28859echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28860fi
28861
28862
28863
28864ac_ext=cc
28865ac_cpp='$CXXCPP $CPPFLAGS'
28866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28869
28870
28871
28872for ac_func in vsnprintf
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); } &&
ac1cb8d3
VS
28940 { ac_try='test -z "$ac_cxx_werror_flag"
28941 || test ! -s conftest.err'
28942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943 (eval $ac_try) 2>&5
28944 ac_status=$?
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; } &&
28947 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
28953 eval "$as_ac_var=yes"
28954else
28955 echo "$as_me: failed program was:" >&5
28956sed 's/^/| /' conftest.$ac_ext >&5
28957
28958eval "$as_ac_var=no"
28959fi
ac1cb8d3
VS
28960rm -f conftest.err conftest.$ac_objext \
28961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28962fi
28963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28965if test `eval echo '${'$as_ac_var'}'` = yes; then
28966 cat >>confdefs.h <<_ACEOF
28967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28968_ACEOF
28969
28970fi
28971done
28972
28973
28974if test "$ac_cv_func_vsnprintf" = "yes"; then
28975 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28976echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28977if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28978 echo $ECHO_N "(cached) $ECHO_C" >&6
28979else
28980
28981 cat >conftest.$ac_ext <<_ACEOF
28982/* confdefs.h. */
28983_ACEOF
28984cat confdefs.h >>conftest.$ac_ext
28985cat >>conftest.$ac_ext <<_ACEOF
28986/* end confdefs.h. */
28987
28988 #include <stdio.h>
28989 #include <stdarg.h>
28990
28991int
28992main ()
28993{
28994
28995 char *buf;
28996 va_list ap;
28997 vsnprintf(buf, 10u, "%s", ap);
28998
28999 ;
29000 return 0;
29001}
29002_ACEOF
29003rm -f conftest.$ac_objext
29004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29005 (eval $ac_compile) 2>conftest.er1
a848cd7e 29006 ac_status=$?
ac1cb8d3
VS
29007 grep -v '^ *+' conftest.er1 >conftest.err
29008 rm -f conftest.er1
29009 cat conftest.err >&5
a848cd7e
SC
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } &&
ac1cb8d3
VS
29012 { ac_try='test -z "$ac_cxx_werror_flag"
29013 || test ! -s conftest.err'
29014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29015 (eval $ac_try) 2>&5
29016 ac_status=$?
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; } &&
29019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; }; then
29025 wx_cv_func_vsnprintf_decl=yes
29026else
29027 echo "$as_me: failed program was:" >&5
29028sed 's/^/| /' conftest.$ac_ext >&5
29029
29030wx_cv_func_vsnprintf_decl=no
29031
29032fi
ac1cb8d3 29033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29034
29035
29036fi
29037echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29038echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29039
29040 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29041 cat >>confdefs.h <<\_ACEOF
29042#define HAVE_VSNPRINTF_DECL 1
29043_ACEOF
29044
29045 fi
29046fi
29047
29048if test "$wxUSE_UNICODE" = yes; then
29049
29050
29051
fbe47c7b
VS
29052
29053
29054
29055for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29056do
29057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29058echo "$as_me:$LINENO: checking for $ac_func" >&5
29059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29060if eval "test \"\${$as_ac_var+set}\" = set"; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062else
29063 cat >conftest.$ac_ext <<_ACEOF
29064/* confdefs.h. */
29065_ACEOF
29066cat confdefs.h >>conftest.$ac_ext
29067cat >>conftest.$ac_ext <<_ACEOF
29068/* end confdefs.h. */
ac1cb8d3
VS
29069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29071#define $ac_func innocuous_$ac_func
29072
a848cd7e
SC
29073/* System header to define __stub macros and hopefully few prototypes,
29074 which can conflict with char $ac_func (); below.
29075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29076 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29077
a848cd7e
SC
29078#ifdef __STDC__
29079# include <limits.h>
29080#else
29081# include <assert.h>
29082#endif
ac1cb8d3
VS
29083
29084#undef $ac_func
29085
a848cd7e
SC
29086/* Override any gcc2 internal prototype to avoid an error. */
29087#ifdef __cplusplus
29088extern "C"
29089{
29090#endif
29091/* We use char because int might match the return type of a gcc2
29092 builtin and then its argument prototype would still apply. */
29093char $ac_func ();
29094/* The GNU C library defines this for functions which it implements
29095 to always fail with ENOSYS. Some functions are actually named
29096 something starting with __ and the normal name is an alias. */
29097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29098choke me
29099#else
29100char (*f) () = $ac_func;
29101#endif
29102#ifdef __cplusplus
29103}
29104#endif
29105
29106int
29107main ()
29108{
29109return f != $ac_func;
29110 ;
29111 return 0;
29112}
29113_ACEOF
29114rm -f conftest.$ac_objext conftest$ac_exeext
29115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29116 (eval $ac_link) 2>conftest.er1
a848cd7e 29117 ac_status=$?
ac1cb8d3
VS
29118 grep -v '^ *+' conftest.er1 >conftest.err
29119 rm -f conftest.er1
29120 cat conftest.err >&5
a848cd7e
SC
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); } &&
ac1cb8d3
VS
29123 { ac_try='test -z "$ac_cxx_werror_flag"
29124 || test ! -s conftest.err'
29125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29126 (eval $ac_try) 2>&5
29127 ac_status=$?
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); }; } &&
29130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29132 (eval $ac_try) 2>&5
29133 ac_status=$?
29134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135 (exit $ac_status); }; }; then
29136 eval "$as_ac_var=yes"
29137else
29138 echo "$as_me: failed program was:" >&5
29139sed 's/^/| /' conftest.$ac_ext >&5
29140
29141eval "$as_ac_var=no"
29142fi
ac1cb8d3
VS
29143rm -f conftest.err conftest.$ac_objext \
29144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29145fi
29146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29147echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29148if test `eval echo '${'$as_ac_var'}'` = yes; then
29149 cat >>confdefs.h <<_ACEOF
29150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29151_ACEOF
29152
29153fi
29154done
29155
29156
29157 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29158echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29159 cat >conftest.$ac_ext <<_ACEOF
29160/* confdefs.h. */
29161_ACEOF
29162cat confdefs.h >>conftest.$ac_ext
29163cat >>conftest.$ac_ext <<_ACEOF
29164/* end confdefs.h. */
29165#include <wchar.h>
29166int
29167main ()
29168{
29169&_vsnwprintf;
29170 ;
29171 return 0;
29172}
29173_ACEOF
29174rm -f conftest.$ac_objext
29175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29176 (eval $ac_compile) 2>conftest.er1
a848cd7e 29177 ac_status=$?
ac1cb8d3
VS
29178 grep -v '^ *+' conftest.er1 >conftest.err
29179 rm -f conftest.er1
29180 cat conftest.err >&5
a848cd7e
SC
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); } &&
ac1cb8d3
VS
29183 { ac_try='test -z "$ac_cxx_werror_flag"
29184 || test ! -s conftest.err'
29185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186 (eval $ac_try) 2>&5
29187 ac_status=$?
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; } &&
29190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29193 ac_status=$?
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; }; then
29196 echo "$as_me:$LINENO: result: yes" >&5
29197echo "${ECHO_T}yes" >&6
29198 cat >>confdefs.h <<\_ACEOF
29199#define HAVE__VSNWPRINTF 1
29200_ACEOF
29201
29202else
29203 echo "$as_me: failed program was:" >&5
29204sed 's/^/| /' conftest.$ac_ext >&5
29205
29206echo "$as_me:$LINENO: result: no" >&5
29207echo "${ECHO_T}no" >&6
29208fi
ac1cb8d3 29209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29210fi
29211
29212ac_ext=c
29213ac_cpp='$CPP $CPPFLAGS'
29214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29216ac_compiler_gnu=$ac_cv_c_compiler_gnu
29217
29218
29219
29220
29221if test "$TOOLKIT" != "MSW"; then
29222
29223
29224
29225
29226ac_ext=cc
29227ac_cpp='$CXXCPP $CPPFLAGS'
29228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29231
29232
29233
29234
29235# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29236if test "${with_libiconv_prefix+set}" = set; then
29237 withval="$with_libiconv_prefix"
29238
29239 for dir in `echo "$withval" | tr : ' '`; do
29240 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29241 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29242 done
29243
29244fi;
29245
29246 echo "$as_me:$LINENO: checking for iconv" >&5
29247echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29248if test "${am_cv_func_iconv+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29250else
29251
29252 am_cv_func_iconv="no, consider installing GNU libiconv"
29253 am_cv_lib_iconv=no
29254 cat >conftest.$ac_ext <<_ACEOF
29255/* confdefs.h. */
29256_ACEOF
29257cat confdefs.h >>conftest.$ac_ext
29258cat >>conftest.$ac_ext <<_ACEOF
29259/* end confdefs.h. */
29260#include <stdlib.h>
29261#include <iconv.h>
29262int
29263main ()
29264{
29265iconv_t cd = iconv_open("","");
29266 iconv(cd,NULL,NULL,NULL,NULL);
29267 iconv_close(cd);
29268 ;
29269 return 0;
29270}
29271_ACEOF
29272rm -f conftest.$ac_objext conftest$ac_exeext
29273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29274 (eval $ac_link) 2>conftest.er1
a848cd7e 29275 ac_status=$?
ac1cb8d3
VS
29276 grep -v '^ *+' conftest.er1 >conftest.err
29277 rm -f conftest.er1
29278 cat conftest.err >&5
a848cd7e
SC
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); } &&
ac1cb8d3
VS
29281 { ac_try='test -z "$ac_cxx_werror_flag"
29282 || test ! -s conftest.err'
29283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284 (eval $ac_try) 2>&5
29285 ac_status=$?
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; } &&
29288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29290 (eval $ac_try) 2>&5
29291 ac_status=$?
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); }; }; then
29294 am_cv_func_iconv=yes
29295else
29296 echo "$as_me: failed program was:" >&5
29297sed 's/^/| /' conftest.$ac_ext >&5
29298
29299fi
ac1cb8d3
VS
29300rm -f conftest.err conftest.$ac_objext \
29301 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29302 if test "$am_cv_func_iconv" != yes; then
29303 am_save_LIBS="$LIBS"
29304 LIBS="$LIBS -liconv"
29305 cat >conftest.$ac_ext <<_ACEOF
29306/* confdefs.h. */
29307_ACEOF
29308cat confdefs.h >>conftest.$ac_ext
29309cat >>conftest.$ac_ext <<_ACEOF
29310/* end confdefs.h. */
29311#include <stdlib.h>
29312#include <iconv.h>
29313int
29314main ()
29315{
29316iconv_t cd = iconv_open("","");
29317 iconv(cd,NULL,NULL,NULL,NULL);
29318 iconv_close(cd);
29319 ;
29320 return 0;
29321}
29322_ACEOF
29323rm -f conftest.$ac_objext conftest$ac_exeext
29324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29325 (eval $ac_link) 2>conftest.er1
a848cd7e 29326 ac_status=$?
ac1cb8d3
VS
29327 grep -v '^ *+' conftest.er1 >conftest.err
29328 rm -f conftest.er1
29329 cat conftest.err >&5
a848cd7e
SC
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } &&
ac1cb8d3
VS
29332 { ac_try='test -z "$ac_cxx_werror_flag"
29333 || test ! -s conftest.err'
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; } &&
29339 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29341 (eval $ac_try) 2>&5
29342 ac_status=$?
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); }; }; then
29345 am_cv_lib_iconv=yes
29346 am_cv_func_iconv=yes
29347else
29348 echo "$as_me: failed program was:" >&5
29349sed 's/^/| /' conftest.$ac_ext >&5
29350
29351fi
ac1cb8d3
VS
29352rm -f conftest.err conftest.$ac_objext \
29353 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29354 LIBS="$am_save_LIBS"
29355 fi
29356
29357fi
29358echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29359echo "${ECHO_T}$am_cv_func_iconv" >&6
29360 if test "$am_cv_func_iconv" = yes; then
29361
29362cat >>confdefs.h <<\_ACEOF
29363#define HAVE_ICONV 1
29364_ACEOF
29365
29366 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29367echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29368if test "${wx_cv_func_iconv_const+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29370else
29371 cat >conftest.$ac_ext <<_ACEOF
29372/* confdefs.h. */
29373_ACEOF
29374cat confdefs.h >>conftest.$ac_ext
29375cat >>conftest.$ac_ext <<_ACEOF
29376/* end confdefs.h. */
29377
29378#include <stdlib.h>
29379#include <iconv.h>
29380extern
29381#ifdef __cplusplus
29382"C"
29383#endif
29384#if defined(__STDC__) || defined(__cplusplus)
29385size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29386#else
29387size_t iconv();
29388#endif
29389
29390int
29391main ()
29392{
29393
29394 ;
29395 return 0;
29396}
29397_ACEOF
29398rm -f conftest.$ac_objext
29399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29400 (eval $ac_compile) 2>conftest.er1
a848cd7e 29401 ac_status=$?
ac1cb8d3
VS
29402 grep -v '^ *+' conftest.er1 >conftest.err
29403 rm -f conftest.er1
29404 cat conftest.err >&5
a848cd7e
SC
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } &&
ac1cb8d3
VS
29407 { ac_try='test -z "$ac_cxx_werror_flag"
29408 || test ! -s conftest.err'
29409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410 (eval $ac_try) 2>&5
29411 ac_status=$?
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; } &&
29414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29416 (eval $ac_try) 2>&5
29417 ac_status=$?
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; }; then
29420 wx_cv_func_iconv_const="no"
29421else
29422 echo "$as_me: failed program was:" >&5
29423sed 's/^/| /' conftest.$ac_ext >&5
29424
29425wx_cv_func_iconv_const="yes"
29426
29427fi
ac1cb8d3 29428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29429
29430fi
29431echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29432echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29433
29434 iconv_const=
29435 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29436 iconv_const="const"
29437 fi
29438
29439
29440cat >>confdefs.h <<_ACEOF
29441#define ICONV_CONST $iconv_const
29442_ACEOF
29443
29444 fi
29445 LIBICONV=
29446 if test "$am_cv_lib_iconv" = yes; then
29447 LIBICONV="-liconv"
29448 fi
29449
29450
29451LIBS="$LIBICONV $LIBS"
29452ac_ext=c
29453ac_cpp='$CPP $CPPFLAGS'
29454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29456ac_compiler_gnu=$ac_cv_c_compiler_gnu
29457
29458
29459if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29460
29461for ac_func in sigaction
29462do
29463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29464echo "$as_me:$LINENO: checking for $ac_func" >&5
29465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29466if eval "test \"\${$as_ac_var+set}\" = set"; then
29467 echo $ECHO_N "(cached) $ECHO_C" >&6
29468else
29469 cat >conftest.$ac_ext <<_ACEOF
29470/* confdefs.h. */
29471_ACEOF
29472cat confdefs.h >>conftest.$ac_ext
29473cat >>conftest.$ac_ext <<_ACEOF
29474/* end confdefs.h. */
ac1cb8d3
VS
29475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29477#define $ac_func innocuous_$ac_func
29478
a848cd7e
SC
29479/* System header to define __stub macros and hopefully few prototypes,
29480 which can conflict with char $ac_func (); below.
29481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29482 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29483
a848cd7e
SC
29484#ifdef __STDC__
29485# include <limits.h>
29486#else
29487# include <assert.h>
29488#endif
ac1cb8d3
VS
29489
29490#undef $ac_func
29491
a848cd7e
SC
29492/* Override any gcc2 internal prototype to avoid an error. */
29493#ifdef __cplusplus
29494extern "C"
29495{
29496#endif
29497/* We use char because int might match the return type of a gcc2
29498 builtin and then its argument prototype would still apply. */
29499char $ac_func ();
29500/* The GNU C library defines this for functions which it implements
29501 to always fail with ENOSYS. Some functions are actually named
29502 something starting with __ and the normal name is an alias. */
29503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29504choke me
29505#else
29506char (*f) () = $ac_func;
29507#endif
29508#ifdef __cplusplus
29509}
29510#endif
29511
29512int
29513main ()
29514{
29515return f != $ac_func;
29516 ;
29517 return 0;
29518}
29519_ACEOF
29520rm -f conftest.$ac_objext conftest$ac_exeext
29521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29522 (eval $ac_link) 2>conftest.er1
a848cd7e 29523 ac_status=$?
ac1cb8d3
VS
29524 grep -v '^ *+' conftest.er1 >conftest.err
29525 rm -f conftest.er1
29526 cat conftest.err >&5
a848cd7e
SC
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } &&
ac1cb8d3
VS
29529 { ac_try='test -z "$ac_c_werror_flag"
29530 || test ! -s conftest.err'
29531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532 (eval $ac_try) 2>&5
29533 ac_status=$?
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; } &&
29536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; }; then
29542 eval "$as_ac_var=yes"
29543else
29544 echo "$as_me: failed program was:" >&5
29545sed 's/^/| /' conftest.$ac_ext >&5
29546
29547eval "$as_ac_var=no"
29548fi
ac1cb8d3
VS
29549rm -f conftest.err conftest.$ac_objext \
29550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29551fi
29552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29553echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29554if test `eval echo '${'$as_ac_var'}'` = yes; then
29555 cat >>confdefs.h <<_ACEOF
29556#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29557_ACEOF
29558
29559fi
29560done
29561
29562
29563 if test "$ac_cv_func_sigaction" = "no"; then
29564 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29565echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29566 wxUSE_ON_FATAL_EXCEPTION=no
29567 fi
29568
29569 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29570
29571
29572 ac_ext=cc
29573ac_cpp='$CXXCPP $CPPFLAGS'
29574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29577
29578
29579 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29580echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29581if test "${wx_cv_type_sa_handler+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29583else
29584
29585 cat >conftest.$ac_ext <<_ACEOF
29586/* confdefs.h. */
29587_ACEOF
29588cat confdefs.h >>conftest.$ac_ext
29589cat >>conftest.$ac_ext <<_ACEOF
29590/* end confdefs.h. */
29591#include <signal.h>
29592int
29593main ()
29594{
29595
29596 extern void testSigHandler(int);
29597
29598 struct sigaction sa;
29599 sa.sa_handler = testSigHandler;
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); } &&
ac1cb8d3
VS
29614 { ac_try='test -z "$ac_cxx_werror_flag"
29615 || test ! -s conftest.err'
29616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29617 (eval $ac_try) 2>&5
29618 ac_status=$?
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); }; } &&
29621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623 (eval $ac_try) 2>&5
29624 ac_status=$?
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); }; }; then
29627
29628 wx_cv_type_sa_handler=int
29629
29630else
29631 echo "$as_me: failed program was:" >&5
29632sed 's/^/| /' conftest.$ac_ext >&5
29633
29634
29635 wx_cv_type_sa_handler=void
29636
29637fi
ac1cb8d3 29638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29639
29640fi
29641echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29642echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29643
29644 ac_ext=c
29645ac_cpp='$CPP $CPPFLAGS'
29646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29648ac_compiler_gnu=$ac_cv_c_compiler_gnu
29649
29650
29651 cat >>confdefs.h <<_ACEOF
29652#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29653_ACEOF
29654
29655 fi
29656fi
29657
29658
29659
29660for ac_func in mkstemp mktemp
29661do
29662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29663echo "$as_me:$LINENO: checking for $ac_func" >&5
29664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29665if eval "test \"\${$as_ac_var+set}\" = set"; then
29666 echo $ECHO_N "(cached) $ECHO_C" >&6
29667else
29668 cat >conftest.$ac_ext <<_ACEOF
29669/* confdefs.h. */
29670_ACEOF
29671cat confdefs.h >>conftest.$ac_ext
29672cat >>conftest.$ac_ext <<_ACEOF
29673/* end confdefs.h. */
ac1cb8d3
VS
29674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29676#define $ac_func innocuous_$ac_func
29677
a848cd7e
SC
29678/* System header to define __stub macros and hopefully few prototypes,
29679 which can conflict with char $ac_func (); below.
29680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29682
a848cd7e
SC
29683#ifdef __STDC__
29684# include <limits.h>
29685#else
29686# include <assert.h>
29687#endif
ac1cb8d3
VS
29688
29689#undef $ac_func
29690
a848cd7e
SC
29691/* Override any gcc2 internal prototype to avoid an error. */
29692#ifdef __cplusplus
29693extern "C"
29694{
29695#endif
29696/* We use char because int might match the return type of a gcc2
29697 builtin and then its argument prototype would still apply. */
29698char $ac_func ();
29699/* The GNU C library defines this for functions which it implements
29700 to always fail with ENOSYS. Some functions are actually named
29701 something starting with __ and the normal name is an alias. */
29702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29703choke me
29704#else
29705char (*f) () = $ac_func;
29706#endif
29707#ifdef __cplusplus
29708}
29709#endif
29710
29711int
29712main ()
29713{
29714return f != $ac_func;
29715 ;
29716 return 0;
29717}
29718_ACEOF
29719rm -f conftest.$ac_objext conftest$ac_exeext
29720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29721 (eval $ac_link) 2>conftest.er1
a848cd7e 29722 ac_status=$?
ac1cb8d3
VS
29723 grep -v '^ *+' conftest.er1 >conftest.err
29724 rm -f conftest.er1
29725 cat conftest.err >&5
a848cd7e
SC
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); } &&
ac1cb8d3
VS
29728 { ac_try='test -z "$ac_c_werror_flag"
29729 || test ! -s conftest.err'
29730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29731 (eval $ac_try) 2>&5
29732 ac_status=$?
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; } &&
29735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29737 (eval $ac_try) 2>&5
29738 ac_status=$?
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); }; }; then
29741 eval "$as_ac_var=yes"
29742else
29743 echo "$as_me: failed program was:" >&5
29744sed 's/^/| /' conftest.$ac_ext >&5
29745
29746eval "$as_ac_var=no"
29747fi
ac1cb8d3
VS
29748rm -f conftest.err conftest.$ac_objext \
29749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29750fi
29751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29753if test `eval echo '${'$as_ac_var'}'` = yes; then
29754 cat >>confdefs.h <<_ACEOF
29755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29756_ACEOF
29757 break
29758fi
29759done
29760
29761
29762echo "$as_me:$LINENO: checking for statfs" >&5
29763echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29764if test "${wx_cv_func_statfs+set}" = set; then
29765 echo $ECHO_N "(cached) $ECHO_C" >&6
29766else
29767 cat >conftest.$ac_ext <<_ACEOF
29768/* confdefs.h. */
29769_ACEOF
29770cat confdefs.h >>conftest.$ac_ext
29771cat >>conftest.$ac_ext <<_ACEOF
29772/* end confdefs.h. */
29773
29774 #if defined(__BSD__)
29775 #include <sys/param.h>
29776 #include <sys/mount.h>
29777 #else
29778 #include <sys/vfs.h>
29779 #endif
29780
29781int
29782main ()
29783{
29784
29785 long l;
29786 struct statfs fs;
29787 statfs("/", &fs);
29788 l = fs.f_bsize;
29789 l += fs.f_blocks;
29790 l += fs.f_bavail;
29791
29792 ;
29793 return 0;
29794}
29795_ACEOF
29796rm -f conftest.$ac_objext
29797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29798 (eval $ac_compile) 2>conftest.er1
a848cd7e 29799 ac_status=$?
ac1cb8d3
VS
29800 grep -v '^ *+' conftest.er1 >conftest.err
29801 rm -f conftest.er1
29802 cat conftest.err >&5
a848cd7e
SC
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); } &&
ac1cb8d3
VS
29805 { ac_try='test -z "$ac_c_werror_flag"
29806 || test ! -s conftest.err'
29807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29808 (eval $ac_try) 2>&5
29809 ac_status=$?
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; } &&
29812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29814 (eval $ac_try) 2>&5
29815 ac_status=$?
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); }; }; then
29818
29819 wx_cv_func_statfs=yes
29820
29821else
29822 echo "$as_me: failed program was:" >&5
29823sed 's/^/| /' conftest.$ac_ext >&5
29824
29825
29826 wx_cv_func_statfs=no
29827
29828
29829fi
ac1cb8d3 29830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29831
29832fi
29833echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29834echo "${ECHO_T}$wx_cv_func_statfs" >&6
29835
29836if test "$wx_cv_func_statfs" = "yes"; then
29837 wx_cv_type_statvfs_t="struct statfs"
29838 cat >>confdefs.h <<\_ACEOF
29839#define HAVE_STATFS 1
29840_ACEOF
29841
29842else
29843 echo "$as_me:$LINENO: checking for statvfs" >&5
29844echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29845if test "${wx_cv_func_statvfs+set}" = set; then
29846 echo $ECHO_N "(cached) $ECHO_C" >&6
29847else
29848 cat >conftest.$ac_ext <<_ACEOF
29849/* confdefs.h. */
29850_ACEOF
29851cat confdefs.h >>conftest.$ac_ext
29852cat >>conftest.$ac_ext <<_ACEOF
29853/* end confdefs.h. */
29854
29855 #include <stddef.h>
29856 #include <sys/statvfs.h>
29857
29858int
29859main ()
29860{
29861
29862 statvfs("/", NULL);
29863
29864 ;
29865 return 0;
29866}
29867_ACEOF
29868rm -f conftest.$ac_objext
29869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29870 (eval $ac_compile) 2>conftest.er1
a848cd7e 29871 ac_status=$?
ac1cb8d3
VS
29872 grep -v '^ *+' conftest.er1 >conftest.err
29873 rm -f conftest.er1
29874 cat conftest.err >&5
a848cd7e
SC
29875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 (exit $ac_status); } &&
ac1cb8d3
VS
29877 { ac_try='test -z "$ac_c_werror_flag"
29878 || test ! -s conftest.err'
29879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880 (eval $ac_try) 2>&5
29881 ac_status=$?
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; } &&
29884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29886 (eval $ac_try) 2>&5
29887 ac_status=$?
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 wx_cv_func_statvfs=yes
29891else
29892 echo "$as_me: failed program was:" >&5
29893sed 's/^/| /' conftest.$ac_ext >&5
29894
29895wx_cv_func_statvfs=no
29896
29897fi
ac1cb8d3 29898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29899
29900fi
29901echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29902echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29903
29904 if test "$wx_cv_func_statvfs" = "yes"; then
29905
29906
29907 ac_ext=cc
29908ac_cpp='$CXXCPP $CPPFLAGS'
29909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29912
29913
29914 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29915echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29916if test "${wx_cv_type_statvfs_t+set}" = set; then
29917 echo $ECHO_N "(cached) $ECHO_C" >&6
29918else
29919 cat >conftest.$ac_ext <<_ACEOF
29920/* confdefs.h. */
29921_ACEOF
29922cat confdefs.h >>conftest.$ac_ext
29923cat >>conftest.$ac_ext <<_ACEOF
29924/* end confdefs.h. */
29925
29926 #include <sys/statvfs.h>
29927
29928int
29929main ()
29930{
29931
29932 long l;
29933 statvfs_t fs;
29934 statvfs("/", &fs);
29935 l = fs.f_bsize;
29936 l += fs.f_blocks;
29937 l += fs.f_bavail;
29938
29939 ;
29940 return 0;
29941}
29942_ACEOF
29943rm -f conftest.$ac_objext
29944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29945 (eval $ac_compile) 2>conftest.er1
a848cd7e 29946 ac_status=$?
ac1cb8d3
VS
29947 grep -v '^ *+' conftest.er1 >conftest.err
29948 rm -f conftest.er1
29949 cat conftest.err >&5
a848cd7e
SC
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); } &&
ac1cb8d3
VS
29952 { ac_try='test -z "$ac_cxx_werror_flag"
29953 || test ! -s conftest.err'
29954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29955 (eval $ac_try) 2>&5
29956 ac_status=$?
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); }; } &&
29959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; }; then
29965 wx_cv_type_statvfs_t=statvfs_t
29966else
29967 echo "$as_me: failed program was:" >&5
29968sed 's/^/| /' conftest.$ac_ext >&5
29969
29970
29971 cat >conftest.$ac_ext <<_ACEOF
29972/* confdefs.h. */
29973_ACEOF
29974cat confdefs.h >>conftest.$ac_ext
29975cat >>conftest.$ac_ext <<_ACEOF
29976/* end confdefs.h. */
29977
29978 #include <sys/statvfs.h>
29979
29980int
29981main ()
29982{
29983
29984 long l;
29985 struct statvfs fs;
29986 statvfs("/", &fs);
29987 l = fs.f_bsize;
29988 l += fs.f_blocks;
29989 l += fs.f_bavail;
29990
29991 ;
29992 return 0;
29993}
29994_ACEOF
29995rm -f conftest.$ac_objext
29996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29997 (eval $ac_compile) 2>conftest.er1
a848cd7e 29998 ac_status=$?
ac1cb8d3
VS
29999 grep -v '^ *+' conftest.er1 >conftest.err
30000 rm -f conftest.er1
30001 cat conftest.err >&5
a848cd7e
SC
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } &&
ac1cb8d3
VS
30004 { ac_try='test -z "$ac_cxx_werror_flag"
30005 || test ! -s conftest.err'
30006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30007 (eval $ac_try) 2>&5
30008 ac_status=$?
30009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010 (exit $ac_status); }; } &&
30011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013 (eval $ac_try) 2>&5
30014 ac_status=$?
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); }; }; then
30017 wx_cv_type_statvfs_t="struct statvfs"
30018else
30019 echo "$as_me: failed program was:" >&5
30020sed 's/^/| /' conftest.$ac_ext >&5
30021
30022wx_cv_type_statvfs_t="unknown"
30023
30024fi
ac1cb8d3 30025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30026
30027
30028fi
ac1cb8d3 30029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30030
30031fi
30032echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30033echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30034
30035 ac_ext=c
30036ac_cpp='$CPP $CPPFLAGS'
30037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30039ac_compiler_gnu=$ac_cv_c_compiler_gnu
30040
30041
30042 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30043 cat >>confdefs.h <<\_ACEOF
30044#define HAVE_STATVFS 1
30045_ACEOF
30046
30047 fi
30048 else
30049 wx_cv_type_statvfs_t="unknown"
30050 fi
30051fi
30052
30053if test "$wx_cv_type_statvfs_t" != "unknown"; then
30054 cat >>confdefs.h <<_ACEOF
30055#define WX_STATFS_T $wx_cv_type_statvfs_t
30056_ACEOF
30057
30058else
30059 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30060echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30061fi
30062
30063if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30064
30065
30066for ac_func in fcntl flock
30067do
30068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30069echo "$as_me:$LINENO: checking for $ac_func" >&5
30070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30071if eval "test \"\${$as_ac_var+set}\" = set"; then
30072 echo $ECHO_N "(cached) $ECHO_C" >&6
30073else
30074 cat >conftest.$ac_ext <<_ACEOF
30075/* confdefs.h. */
30076_ACEOF
30077cat confdefs.h >>conftest.$ac_ext
30078cat >>conftest.$ac_ext <<_ACEOF
30079/* end confdefs.h. */
ac1cb8d3
VS
30080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30082#define $ac_func innocuous_$ac_func
30083
a848cd7e
SC
30084/* System header to define __stub macros and hopefully few prototypes,
30085 which can conflict with char $ac_func (); below.
30086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30087 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30088
a848cd7e
SC
30089#ifdef __STDC__
30090# include <limits.h>
30091#else
30092# include <assert.h>
30093#endif
ac1cb8d3
VS
30094
30095#undef $ac_func
30096
a848cd7e
SC
30097/* Override any gcc2 internal prototype to avoid an error. */
30098#ifdef __cplusplus
30099extern "C"
30100{
30101#endif
30102/* We use char because int might match the return type of a gcc2
30103 builtin and then its argument prototype would still apply. */
30104char $ac_func ();
30105/* The GNU C library defines this for functions which it implements
30106 to always fail with ENOSYS. Some functions are actually named
30107 something starting with __ and the normal name is an alias. */
30108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30109choke me
30110#else
30111char (*f) () = $ac_func;
30112#endif
30113#ifdef __cplusplus
30114}
30115#endif
30116
30117int
30118main ()
30119{
30120return f != $ac_func;
30121 ;
30122 return 0;
30123}
30124_ACEOF
30125rm -f conftest.$ac_objext conftest$ac_exeext
30126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30127 (eval $ac_link) 2>conftest.er1
a848cd7e 30128 ac_status=$?
ac1cb8d3
VS
30129 grep -v '^ *+' conftest.er1 >conftest.err
30130 rm -f conftest.er1
30131 cat conftest.err >&5
a848cd7e
SC
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); } &&
ac1cb8d3
VS
30134 { ac_try='test -z "$ac_c_werror_flag"
30135 || test ! -s conftest.err'
30136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30137 (eval $ac_try) 2>&5
30138 ac_status=$?
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; } &&
30141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30143 (eval $ac_try) 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; }; then
30147 eval "$as_ac_var=yes"
30148else
30149 echo "$as_me: failed program was:" >&5
30150sed 's/^/| /' conftest.$ac_ext >&5
30151
30152eval "$as_ac_var=no"
30153fi
ac1cb8d3
VS
30154rm -f conftest.err conftest.$ac_objext \
30155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30156fi
30157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30159if test `eval echo '${'$as_ac_var'}'` = yes; then
30160 cat >>confdefs.h <<_ACEOF
30161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30162_ACEOF
30163 break
30164fi
30165done
30166
30167
30168 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30169 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30170echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30171 wxUSE_SNGLINST_CHECKER=no
30172 fi
30173fi
30174
30175
30176for ac_func in timegm
30177do
30178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30179echo "$as_me:$LINENO: checking for $ac_func" >&5
30180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30181if eval "test \"\${$as_ac_var+set}\" = set"; then
30182 echo $ECHO_N "(cached) $ECHO_C" >&6
30183else
30184 cat >conftest.$ac_ext <<_ACEOF
30185/* confdefs.h. */
30186_ACEOF
30187cat confdefs.h >>conftest.$ac_ext
30188cat >>conftest.$ac_ext <<_ACEOF
30189/* end confdefs.h. */
ac1cb8d3
VS
30190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30192#define $ac_func innocuous_$ac_func
30193
a848cd7e
SC
30194/* System header to define __stub macros and hopefully few prototypes,
30195 which can conflict with char $ac_func (); below.
30196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30197 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30198
a848cd7e
SC
30199#ifdef __STDC__
30200# include <limits.h>
30201#else
30202# include <assert.h>
30203#endif
ac1cb8d3
VS
30204
30205#undef $ac_func
30206
a848cd7e
SC
30207/* Override any gcc2 internal prototype to avoid an error. */
30208#ifdef __cplusplus
30209extern "C"
30210{
30211#endif
30212/* We use char because int might match the return type of a gcc2
30213 builtin and then its argument prototype would still apply. */
30214char $ac_func ();
30215/* The GNU C library defines this for functions which it implements
30216 to always fail with ENOSYS. Some functions are actually named
30217 something starting with __ and the normal name is an alias. */
30218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30219choke me
30220#else
30221char (*f) () = $ac_func;
30222#endif
30223#ifdef __cplusplus
30224}
30225#endif
30226
30227int
30228main ()
30229{
30230return f != $ac_func;
30231 ;
30232 return 0;
30233}
30234_ACEOF
30235rm -f conftest.$ac_objext conftest$ac_exeext
30236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30237 (eval $ac_link) 2>conftest.er1
a848cd7e 30238 ac_status=$?
ac1cb8d3
VS
30239 grep -v '^ *+' conftest.er1 >conftest.err
30240 rm -f conftest.er1
30241 cat conftest.err >&5
a848cd7e
SC
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } &&
ac1cb8d3
VS
30244 { ac_try='test -z "$ac_c_werror_flag"
30245 || test ! -s conftest.err'
30246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30247 (eval $ac_try) 2>&5
30248 ac_status=$?
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
30254 ac_status=$?
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; }; then
30257 eval "$as_ac_var=yes"
30258else
30259 echo "$as_me: failed program was:" >&5
30260sed 's/^/| /' conftest.$ac_ext >&5
30261
30262eval "$as_ac_var=no"
30263fi
ac1cb8d3
VS
30264rm -f conftest.err conftest.$ac_objext \
30265 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30266fi
30267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30268echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30269if test `eval echo '${'$as_ac_var'}'` = yes; then
30270 cat >>confdefs.h <<_ACEOF
30271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30272_ACEOF
30273
30274fi
30275done
30276
30277
30278
30279
30280for ac_func in putenv setenv
30281do
30282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30283echo "$as_me:$LINENO: checking for $ac_func" >&5
30284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30285if eval "test \"\${$as_ac_var+set}\" = set"; then
30286 echo $ECHO_N "(cached) $ECHO_C" >&6
30287else
30288 cat >conftest.$ac_ext <<_ACEOF
30289/* confdefs.h. */
30290_ACEOF
30291cat confdefs.h >>conftest.$ac_ext
30292cat >>conftest.$ac_ext <<_ACEOF
30293/* end confdefs.h. */
ac1cb8d3
VS
30294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30296#define $ac_func innocuous_$ac_func
30297
a848cd7e
SC
30298/* System header to define __stub macros and hopefully few prototypes,
30299 which can conflict with char $ac_func (); below.
30300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30301 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30302
a848cd7e
SC
30303#ifdef __STDC__
30304# include <limits.h>
30305#else
30306# include <assert.h>
30307#endif
ac1cb8d3
VS
30308
30309#undef $ac_func
30310
a848cd7e
SC
30311/* Override any gcc2 internal prototype to avoid an error. */
30312#ifdef __cplusplus
30313extern "C"
30314{
30315#endif
30316/* We use char because int might match the return type of a gcc2
30317 builtin and then its argument prototype would still apply. */
30318char $ac_func ();
30319/* The GNU C library defines this for functions which it implements
30320 to always fail with ENOSYS. Some functions are actually named
30321 something starting with __ and the normal name is an alias. */
30322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30323choke me
30324#else
30325char (*f) () = $ac_func;
30326#endif
30327#ifdef __cplusplus
30328}
30329#endif
30330
30331int
30332main ()
30333{
30334return f != $ac_func;
30335 ;
30336 return 0;
30337}
30338_ACEOF
30339rm -f conftest.$ac_objext conftest$ac_exeext
30340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30341 (eval $ac_link) 2>conftest.er1
a848cd7e 30342 ac_status=$?
ac1cb8d3
VS
30343 grep -v '^ *+' conftest.er1 >conftest.err
30344 rm -f conftest.er1
30345 cat conftest.err >&5
a848cd7e
SC
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
ac1cb8d3
VS
30348 { ac_try='test -z "$ac_c_werror_flag"
30349 || test ! -s conftest.err'
30350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351 (eval $ac_try) 2>&5
30352 ac_status=$?
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); }; } &&
30355 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357 (eval $ac_try) 2>&5
30358 ac_status=$?
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); }; }; then
30361 eval "$as_ac_var=yes"
30362else
30363 echo "$as_me: failed program was:" >&5
30364sed 's/^/| /' conftest.$ac_ext >&5
30365
30366eval "$as_ac_var=no"
30367fi
ac1cb8d3
VS
30368rm -f conftest.err conftest.$ac_objext \
30369 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30370fi
30371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30372echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30373if test `eval echo '${'$as_ac_var'}'` = yes; then
30374 cat >>confdefs.h <<_ACEOF
30375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30376_ACEOF
30377 break
30378fi
30379done
30380
30381
30382HAVE_SOME_SLEEP_FUNC=0
30383if test "$USE_BEOS" = 1; then
30384 cat >>confdefs.h <<\_ACEOF
30385#define HAVE_SLEEP 1
30386_ACEOF
30387
30388 HAVE_SOME_SLEEP_FUNC=1
30389fi
30390
30391if test "$USE_DARWIN" = 1; then
30392 cat >>confdefs.h <<\_ACEOF
30393#define HAVE_USLEEP 1
30394_ACEOF
30395
30396 HAVE_SOME_SLEEP_FUNC=1
30397fi
30398
30399if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30400 POSIX4_LINK=
30401
30402for ac_func in nanosleep
30403do
30404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30405echo "$as_me:$LINENO: checking for $ac_func" >&5
30406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30407if eval "test \"\${$as_ac_var+set}\" = set"; then
30408 echo $ECHO_N "(cached) $ECHO_C" >&6
30409else
30410 cat >conftest.$ac_ext <<_ACEOF
30411/* confdefs.h. */
30412_ACEOF
30413cat confdefs.h >>conftest.$ac_ext
30414cat >>conftest.$ac_ext <<_ACEOF
30415/* end confdefs.h. */
ac1cb8d3
VS
30416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30418#define $ac_func innocuous_$ac_func
30419
a848cd7e
SC
30420/* System header to define __stub macros and hopefully few prototypes,
30421 which can conflict with char $ac_func (); below.
30422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30424
a848cd7e
SC
30425#ifdef __STDC__
30426# include <limits.h>
30427#else
30428# include <assert.h>
30429#endif
ac1cb8d3
VS
30430
30431#undef $ac_func
30432
a848cd7e
SC
30433/* Override any gcc2 internal prototype to avoid an error. */
30434#ifdef __cplusplus
30435extern "C"
30436{
30437#endif
30438/* We use char because int might match the return type of a gcc2
30439 builtin and then its argument prototype would still apply. */
30440char $ac_func ();
30441/* The GNU C library defines this for functions which it implements
30442 to always fail with ENOSYS. Some functions are actually named
30443 something starting with __ and the normal name is an alias. */
30444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30445choke me
30446#else
30447char (*f) () = $ac_func;
30448#endif
30449#ifdef __cplusplus
30450}
30451#endif
30452
30453int
30454main ()
30455{
30456return f != $ac_func;
30457 ;
30458 return 0;
30459}
30460_ACEOF
30461rm -f conftest.$ac_objext conftest$ac_exeext
30462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30463 (eval $ac_link) 2>conftest.er1
a848cd7e 30464 ac_status=$?
ac1cb8d3
VS
30465 grep -v '^ *+' conftest.er1 >conftest.err
30466 rm -f conftest.er1
30467 cat conftest.err >&5
a848cd7e
SC
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } &&
ac1cb8d3
VS
30470 { ac_try='test -z "$ac_c_werror_flag"
30471 || test ! -s conftest.err'
30472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473 (eval $ac_try) 2>&5
30474 ac_status=$?
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; } &&
30477 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479 (eval $ac_try) 2>&5
30480 ac_status=$?
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; }; then
30483 eval "$as_ac_var=yes"
30484else
30485 echo "$as_me: failed program was:" >&5
30486sed 's/^/| /' conftest.$ac_ext >&5
30487
30488eval "$as_ac_var=no"
30489fi
ac1cb8d3
VS
30490rm -f conftest.err conftest.$ac_objext \
30491 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30492fi
30493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30495if test `eval echo '${'$as_ac_var'}'` = yes; then
30496 cat >>confdefs.h <<_ACEOF
30497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30498_ACEOF
30499 cat >>confdefs.h <<\_ACEOF
30500#define HAVE_NANOSLEEP 1
30501_ACEOF
30502
30503else
30504
30505 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30506echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30507if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30508 echo $ECHO_N "(cached) $ECHO_C" >&6
30509else
30510 ac_check_lib_save_LIBS=$LIBS
30511LIBS="-lposix4 $LIBS"
30512cat >conftest.$ac_ext <<_ACEOF
30513/* confdefs.h. */
30514_ACEOF
30515cat confdefs.h >>conftest.$ac_ext
30516cat >>conftest.$ac_ext <<_ACEOF
30517/* end confdefs.h. */
30518
30519/* Override any gcc2 internal prototype to avoid an error. */
30520#ifdef __cplusplus
30521extern "C"
30522#endif
30523/* We use char because int might match the return type of a gcc2
30524 builtin and then its argument prototype would still apply. */
30525char nanosleep ();
30526int
30527main ()
30528{
30529nanosleep ();
30530 ;
30531 return 0;
30532}
30533_ACEOF
30534rm -f conftest.$ac_objext conftest$ac_exeext
30535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30536 (eval $ac_link) 2>conftest.er1
a848cd7e 30537 ac_status=$?
ac1cb8d3
VS
30538 grep -v '^ *+' conftest.er1 >conftest.err
30539 rm -f conftest.er1
30540 cat conftest.err >&5
a848cd7e
SC
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); } &&
ac1cb8d3
VS
30543 { ac_try='test -z "$ac_c_werror_flag"
30544 || test ! -s conftest.err'
30545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30546 (eval $ac_try) 2>&5
30547 ac_status=$?
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; } &&
30550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30552 (eval $ac_try) 2>&5
30553 ac_status=$?
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; }; then
30556 ac_cv_lib_posix4_nanosleep=yes
30557else
30558 echo "$as_me: failed program was:" >&5
30559sed 's/^/| /' conftest.$ac_ext >&5
30560
30561ac_cv_lib_posix4_nanosleep=no
30562fi
ac1cb8d3
VS
30563rm -f conftest.err conftest.$ac_objext \
30564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30565LIBS=$ac_check_lib_save_LIBS
30566fi
30567echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30568echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30569if test $ac_cv_lib_posix4_nanosleep = yes; then
30570
30571 cat >>confdefs.h <<\_ACEOF
30572#define HAVE_NANOSLEEP 1
30573_ACEOF
30574
30575 POSIX4_LINK=" -lposix4"
30576
30577else
30578
30579
30580for ac_func in usleep
30581do
30582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30583echo "$as_me:$LINENO: checking for $ac_func" >&5
30584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30585if eval "test \"\${$as_ac_var+set}\" = set"; then
30586 echo $ECHO_N "(cached) $ECHO_C" >&6
30587else
30588 cat >conftest.$ac_ext <<_ACEOF
30589/* confdefs.h. */
30590_ACEOF
30591cat confdefs.h >>conftest.$ac_ext
30592cat >>conftest.$ac_ext <<_ACEOF
30593/* end confdefs.h. */
ac1cb8d3
VS
30594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30596#define $ac_func innocuous_$ac_func
30597
a848cd7e
SC
30598/* System header to define __stub macros and hopefully few prototypes,
30599 which can conflict with char $ac_func (); below.
30600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30602
a848cd7e
SC
30603#ifdef __STDC__
30604# include <limits.h>
30605#else
30606# include <assert.h>
30607#endif
ac1cb8d3
VS
30608
30609#undef $ac_func
30610
a848cd7e
SC
30611/* Override any gcc2 internal prototype to avoid an error. */
30612#ifdef __cplusplus
30613extern "C"
30614{
30615#endif
30616/* We use char because int might match the return type of a gcc2
30617 builtin and then its argument prototype would still apply. */
30618char $ac_func ();
30619/* The GNU C library defines this for functions which it implements
30620 to always fail with ENOSYS. Some functions are actually named
30621 something starting with __ and the normal name is an alias. */
30622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30623choke me
30624#else
30625char (*f) () = $ac_func;
30626#endif
30627#ifdef __cplusplus
30628}
30629#endif
30630
30631int
30632main ()
30633{
30634return f != $ac_func;
30635 ;
30636 return 0;
30637}
30638_ACEOF
30639rm -f conftest.$ac_objext conftest$ac_exeext
30640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30641 (eval $ac_link) 2>conftest.er1
a848cd7e 30642 ac_status=$?
ac1cb8d3
VS
30643 grep -v '^ *+' conftest.er1 >conftest.err
30644 rm -f conftest.er1
30645 cat conftest.err >&5
a848cd7e
SC
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } &&
ac1cb8d3
VS
30648 { ac_try='test -z "$ac_c_werror_flag"
30649 || test ! -s conftest.err'
30650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651 (eval $ac_try) 2>&5
30652 ac_status=$?
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; } &&
30655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; }; then
30661 eval "$as_ac_var=yes"
30662else
30663 echo "$as_me: failed program was:" >&5
30664sed 's/^/| /' conftest.$ac_ext >&5
30665
30666eval "$as_ac_var=no"
30667fi
ac1cb8d3
VS
30668rm -f conftest.err conftest.$ac_objext \
30669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30670fi
30671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30673if test `eval echo '${'$as_ac_var'}'` = yes; then
30674 cat >>confdefs.h <<_ACEOF
30675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30676_ACEOF
30677 cat >>confdefs.h <<\_ACEOF
30678#define HAVE_USLEEP 1
30679_ACEOF
30680
30681else
30682 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30683echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30684
30685fi
30686done
30687
30688
30689
30690fi
30691
30692
30693
30694fi
30695done
30696
30697fi
30698
30699
30700
30701for ac_func in uname gethostname
30702do
30703as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30704echo "$as_me:$LINENO: checking for $ac_func" >&5
30705echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30706if eval "test \"\${$as_ac_var+set}\" = set"; then
30707 echo $ECHO_N "(cached) $ECHO_C" >&6
30708else
30709 cat >conftest.$ac_ext <<_ACEOF
30710/* confdefs.h. */
30711_ACEOF
30712cat confdefs.h >>conftest.$ac_ext
30713cat >>conftest.$ac_ext <<_ACEOF
30714/* end confdefs.h. */
ac1cb8d3
VS
30715/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30717#define $ac_func innocuous_$ac_func
30718
a848cd7e
SC
30719/* System header to define __stub macros and hopefully few prototypes,
30720 which can conflict with char $ac_func (); below.
30721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30722 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30723
a848cd7e
SC
30724#ifdef __STDC__
30725# include <limits.h>
30726#else
30727# include <assert.h>
30728#endif
ac1cb8d3
VS
30729
30730#undef $ac_func
30731
a848cd7e
SC
30732/* Override any gcc2 internal prototype to avoid an error. */
30733#ifdef __cplusplus
30734extern "C"
30735{
30736#endif
30737/* We use char because int might match the return type of a gcc2
30738 builtin and then its argument prototype would still apply. */
30739char $ac_func ();
30740/* The GNU C library defines this for functions which it implements
30741 to always fail with ENOSYS. Some functions are actually named
30742 something starting with __ and the normal name is an alias. */
30743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30744choke me
30745#else
30746char (*f) () = $ac_func;
30747#endif
30748#ifdef __cplusplus
30749}
30750#endif
30751
30752int
30753main ()
30754{
30755return f != $ac_func;
30756 ;
30757 return 0;
30758}
30759_ACEOF
30760rm -f conftest.$ac_objext conftest$ac_exeext
30761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30762 (eval $ac_link) 2>conftest.er1
a848cd7e 30763 ac_status=$?
ac1cb8d3
VS
30764 grep -v '^ *+' conftest.er1 >conftest.err
30765 rm -f conftest.er1
30766 cat conftest.err >&5
a848cd7e
SC
30767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768 (exit $ac_status); } &&
ac1cb8d3
VS
30769 { ac_try='test -z "$ac_c_werror_flag"
30770 || test ! -s conftest.err'
30771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30772 (eval $ac_try) 2>&5
30773 ac_status=$?
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); }; } &&
30776 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30778 (eval $ac_try) 2>&5
30779 ac_status=$?
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; }; then
30782 eval "$as_ac_var=yes"
30783else
30784 echo "$as_me: failed program was:" >&5
30785sed 's/^/| /' conftest.$ac_ext >&5
30786
30787eval "$as_ac_var=no"
30788fi
ac1cb8d3
VS
30789rm -f conftest.err conftest.$ac_objext \
30790 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30791fi
30792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30794if test `eval echo '${'$as_ac_var'}'` = yes; then
30795 cat >>confdefs.h <<_ACEOF
30796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30797_ACEOF
30798 break
30799fi
30800done
30801
30802
30803
30804
30805ac_ext=cc
30806ac_cpp='$CXXCPP $CPPFLAGS'
30807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30810
30811
30812
30813for ac_func in strtok_r
30814do
30815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30816echo "$as_me:$LINENO: checking for $ac_func" >&5
30817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30818if eval "test \"\${$as_ac_var+set}\" = set"; then
30819 echo $ECHO_N "(cached) $ECHO_C" >&6
30820else
30821 cat >conftest.$ac_ext <<_ACEOF
30822/* confdefs.h. */
30823_ACEOF
30824cat confdefs.h >>conftest.$ac_ext
30825cat >>conftest.$ac_ext <<_ACEOF
30826/* end confdefs.h. */
ac1cb8d3
VS
30827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30829#define $ac_func innocuous_$ac_func
30830
a848cd7e
SC
30831/* System header to define __stub macros and hopefully few prototypes,
30832 which can conflict with char $ac_func (); below.
30833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30834 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30835
a848cd7e
SC
30836#ifdef __STDC__
30837# include <limits.h>
30838#else
30839# include <assert.h>
30840#endif
ac1cb8d3
VS
30841
30842#undef $ac_func
30843
a848cd7e
SC
30844/* Override any gcc2 internal prototype to avoid an error. */
30845#ifdef __cplusplus
30846extern "C"
30847{
30848#endif
30849/* We use char because int might match the return type of a gcc2
30850 builtin and then its argument prototype would still apply. */
30851char $ac_func ();
30852/* The GNU C library defines this for functions which it implements
30853 to always fail with ENOSYS. Some functions are actually named
30854 something starting with __ and the normal name is an alias. */
30855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30856choke me
30857#else
30858char (*f) () = $ac_func;
30859#endif
30860#ifdef __cplusplus
30861}
30862#endif
30863
30864int
30865main ()
30866{
30867return f != $ac_func;
30868 ;
30869 return 0;
30870}
30871_ACEOF
30872rm -f conftest.$ac_objext conftest$ac_exeext
30873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30874 (eval $ac_link) 2>conftest.er1
a848cd7e 30875 ac_status=$?
ac1cb8d3
VS
30876 grep -v '^ *+' conftest.er1 >conftest.err
30877 rm -f conftest.er1
30878 cat conftest.err >&5
a848cd7e
SC
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } &&
ac1cb8d3
VS
30881 { ac_try='test -z "$ac_cxx_werror_flag"
30882 || test ! -s conftest.err'
30883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30884 (eval $ac_try) 2>&5
30885 ac_status=$?
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; } &&
30888 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890 (eval $ac_try) 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
30894 eval "$as_ac_var=yes"
30895else
30896 echo "$as_me: failed program was:" >&5
30897sed 's/^/| /' conftest.$ac_ext >&5
30898
30899eval "$as_ac_var=no"
30900fi
ac1cb8d3
VS
30901rm -f conftest.err conftest.$ac_objext \
30902 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30903fi
30904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30906if test `eval echo '${'$as_ac_var'}'` = yes; then
30907 cat >>confdefs.h <<_ACEOF
30908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30909_ACEOF
30910
30911fi
30912done
30913
30914
30915ac_ext=c
30916ac_cpp='$CPP $CPPFLAGS'
30917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30919ac_compiler_gnu=$ac_cv_c_compiler_gnu
30920
30921
30922INET_LINK=
30923
30924for ac_func in inet_addr
30925do
30926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30927echo "$as_me:$LINENO: checking for $ac_func" >&5
30928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30929if eval "test \"\${$as_ac_var+set}\" = set"; then
30930 echo $ECHO_N "(cached) $ECHO_C" >&6
30931else
30932 cat >conftest.$ac_ext <<_ACEOF
30933/* confdefs.h. */
30934_ACEOF
30935cat confdefs.h >>conftest.$ac_ext
30936cat >>conftest.$ac_ext <<_ACEOF
30937/* end confdefs.h. */
ac1cb8d3
VS
30938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30940#define $ac_func innocuous_$ac_func
30941
a848cd7e
SC
30942/* System header to define __stub macros and hopefully few prototypes,
30943 which can conflict with char $ac_func (); below.
30944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30945 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30946
a848cd7e
SC
30947#ifdef __STDC__
30948# include <limits.h>
30949#else
30950# include <assert.h>
30951#endif
ac1cb8d3
VS
30952
30953#undef $ac_func
30954
a848cd7e
SC
30955/* Override any gcc2 internal prototype to avoid an error. */
30956#ifdef __cplusplus
30957extern "C"
30958{
30959#endif
30960/* We use char because int might match the return type of a gcc2
30961 builtin and then its argument prototype would still apply. */
30962char $ac_func ();
30963/* The GNU C library defines this for functions which it implements
30964 to always fail with ENOSYS. Some functions are actually named
30965 something starting with __ and the normal name is an alias. */
30966#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30967choke me
30968#else
30969char (*f) () = $ac_func;
30970#endif
30971#ifdef __cplusplus
30972}
30973#endif
30974
30975int
30976main ()
30977{
30978return f != $ac_func;
30979 ;
30980 return 0;
30981}
30982_ACEOF
30983rm -f conftest.$ac_objext conftest$ac_exeext
30984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30985 (eval $ac_link) 2>conftest.er1
a848cd7e 30986 ac_status=$?
ac1cb8d3
VS
30987 grep -v '^ *+' conftest.er1 >conftest.err
30988 rm -f conftest.er1
30989 cat conftest.err >&5
a848cd7e
SC
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); } &&
ac1cb8d3
VS
30992 { ac_try='test -z "$ac_c_werror_flag"
30993 || test ! -s conftest.err'
30994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30995 (eval $ac_try) 2>&5
30996 ac_status=$?
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); }; } &&
30999 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31001 (eval $ac_try) 2>&5
31002 ac_status=$?
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); }; }; then
31005 eval "$as_ac_var=yes"
31006else
31007 echo "$as_me: failed program was:" >&5
31008sed 's/^/| /' conftest.$ac_ext >&5
31009
31010eval "$as_ac_var=no"
31011fi
ac1cb8d3
VS
31012rm -f conftest.err conftest.$ac_objext \
31013 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31014fi
31015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31016echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31017if test `eval echo '${'$as_ac_var'}'` = yes; then
31018 cat >>confdefs.h <<_ACEOF
31019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31020_ACEOF
31021 cat >>confdefs.h <<\_ACEOF
31022#define HAVE_INET_ADDR 1
31023_ACEOF
31024
31025else
31026
31027 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31028echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31029if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31030 echo $ECHO_N "(cached) $ECHO_C" >&6
31031else
31032 ac_check_lib_save_LIBS=$LIBS
31033LIBS="-lnsl $LIBS"
31034cat >conftest.$ac_ext <<_ACEOF
31035/* confdefs.h. */
31036_ACEOF
31037cat confdefs.h >>conftest.$ac_ext
31038cat >>conftest.$ac_ext <<_ACEOF
31039/* end confdefs.h. */
31040
31041/* Override any gcc2 internal prototype to avoid an error. */
31042#ifdef __cplusplus
31043extern "C"
31044#endif
31045/* We use char because int might match the return type of a gcc2
31046 builtin and then its argument prototype would still apply. */
31047char inet_addr ();
31048int
31049main ()
31050{
31051inet_addr ();
31052 ;
31053 return 0;
31054}
31055_ACEOF
31056rm -f conftest.$ac_objext conftest$ac_exeext
31057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31058 (eval $ac_link) 2>conftest.er1
a848cd7e 31059 ac_status=$?
ac1cb8d3
VS
31060 grep -v '^ *+' conftest.er1 >conftest.err
31061 rm -f conftest.er1
31062 cat conftest.err >&5
a848cd7e
SC
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } &&
ac1cb8d3
VS
31065 { ac_try='test -z "$ac_c_werror_flag"
31066 || test ! -s conftest.err'
31067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31068 (eval $ac_try) 2>&5
31069 ac_status=$?
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); }; } &&
31072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31074 (eval $ac_try) 2>&5
31075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; }; then
31078 ac_cv_lib_nsl_inet_addr=yes
31079else
31080 echo "$as_me: failed program was:" >&5
31081sed 's/^/| /' conftest.$ac_ext >&5
31082
31083ac_cv_lib_nsl_inet_addr=no
31084fi
ac1cb8d3
VS
31085rm -f conftest.err conftest.$ac_objext \
31086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31087LIBS=$ac_check_lib_save_LIBS
31088fi
31089echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31090echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31091if test $ac_cv_lib_nsl_inet_addr = yes; then
31092 INET_LINK="nsl"
31093else
31094
31095 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31096echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31097if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31098 echo $ECHO_N "(cached) $ECHO_C" >&6
31099else
31100 ac_check_lib_save_LIBS=$LIBS
31101LIBS="-lresolv $LIBS"
31102cat >conftest.$ac_ext <<_ACEOF
31103/* confdefs.h. */
31104_ACEOF
31105cat confdefs.h >>conftest.$ac_ext
31106cat >>conftest.$ac_ext <<_ACEOF
31107/* end confdefs.h. */
31108
31109/* Override any gcc2 internal prototype to avoid an error. */
31110#ifdef __cplusplus
31111extern "C"
31112#endif
31113/* We use char because int might match the return type of a gcc2
31114 builtin and then its argument prototype would still apply. */
31115char inet_addr ();
31116int
31117main ()
31118{
31119inet_addr ();
31120 ;
31121 return 0;
31122}
31123_ACEOF
31124rm -f conftest.$ac_objext conftest$ac_exeext
31125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31126 (eval $ac_link) 2>conftest.er1
a848cd7e 31127 ac_status=$?
ac1cb8d3
VS
31128 grep -v '^ *+' conftest.er1 >conftest.err
31129 rm -f conftest.er1
31130 cat conftest.err >&5
a848cd7e
SC
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); } &&
ac1cb8d3
VS
31133 { ac_try='test -z "$ac_c_werror_flag"
31134 || test ! -s conftest.err'
31135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31136 (eval $ac_try) 2>&5
31137 ac_status=$?
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); }; } &&
31140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142 (eval $ac_try) 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
31146 ac_cv_lib_resolv_inet_addr=yes
31147else
31148 echo "$as_me: failed program was:" >&5
31149sed 's/^/| /' conftest.$ac_ext >&5
31150
31151ac_cv_lib_resolv_inet_addr=no
31152fi
ac1cb8d3
VS
31153rm -f conftest.err conftest.$ac_objext \
31154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31155LIBS=$ac_check_lib_save_LIBS
31156fi
31157echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31158echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31159if test $ac_cv_lib_resolv_inet_addr = yes; then
31160 INET_LINK="resolv"
31161else
31162
31163 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31164echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31165if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31166 echo $ECHO_N "(cached) $ECHO_C" >&6
31167else
31168 ac_check_lib_save_LIBS=$LIBS
31169LIBS="-lsocket $LIBS"
31170cat >conftest.$ac_ext <<_ACEOF
31171/* confdefs.h. */
31172_ACEOF
31173cat confdefs.h >>conftest.$ac_ext
31174cat >>conftest.$ac_ext <<_ACEOF
31175/* end confdefs.h. */
31176
31177/* Override any gcc2 internal prototype to avoid an error. */
31178#ifdef __cplusplus
31179extern "C"
31180#endif
31181/* We use char because int might match the return type of a gcc2
31182 builtin and then its argument prototype would still apply. */
31183char inet_addr ();
31184int
31185main ()
31186{
31187inet_addr ();
31188 ;
31189 return 0;
31190}
31191_ACEOF
31192rm -f conftest.$ac_objext conftest$ac_exeext
31193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31194 (eval $ac_link) 2>conftest.er1
a848cd7e 31195 ac_status=$?
ac1cb8d3
VS
31196 grep -v '^ *+' conftest.er1 >conftest.err
31197 rm -f conftest.er1
31198 cat conftest.err >&5
a848cd7e
SC
31199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200 (exit $ac_status); } &&
ac1cb8d3
VS
31201 { ac_try='test -z "$ac_c_werror_flag"
31202 || test ! -s conftest.err'
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; } &&
31208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210 (eval $ac_try) 2>&5
31211 ac_status=$?
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; }; then
31214 ac_cv_lib_socket_inet_addr=yes
31215else
31216 echo "$as_me: failed program was:" >&5
31217sed 's/^/| /' conftest.$ac_ext >&5
31218
31219ac_cv_lib_socket_inet_addr=no
31220fi
ac1cb8d3
VS
31221rm -f conftest.err conftest.$ac_objext \
31222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31223LIBS=$ac_check_lib_save_LIBS
31224fi
31225echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31226echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31227if test $ac_cv_lib_socket_inet_addr = yes; then
31228 INET_LINK="socket"
31229
31230fi
31231
31232
31233
31234fi
31235
31236
31237
31238fi
31239
31240
31241
31242fi
31243done
31244
31245
31246
31247for ac_func in inet_aton
31248do
31249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31250echo "$as_me:$LINENO: checking for $ac_func" >&5
31251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31252if eval "test \"\${$as_ac_var+set}\" = set"; then
31253 echo $ECHO_N "(cached) $ECHO_C" >&6
31254else
31255 cat >conftest.$ac_ext <<_ACEOF
31256/* confdefs.h. */
31257_ACEOF
31258cat confdefs.h >>conftest.$ac_ext
31259cat >>conftest.$ac_ext <<_ACEOF
31260/* end confdefs.h. */
ac1cb8d3
VS
31261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31263#define $ac_func innocuous_$ac_func
31264
a848cd7e
SC
31265/* System header to define __stub macros and hopefully few prototypes,
31266 which can conflict with char $ac_func (); below.
31267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31268 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31269
a848cd7e
SC
31270#ifdef __STDC__
31271# include <limits.h>
31272#else
31273# include <assert.h>
31274#endif
ac1cb8d3
VS
31275
31276#undef $ac_func
31277
a848cd7e
SC
31278/* Override any gcc2 internal prototype to avoid an error. */
31279#ifdef __cplusplus
31280extern "C"
31281{
31282#endif
31283/* We use char because int might match the return type of a gcc2
31284 builtin and then its argument prototype would still apply. */
31285char $ac_func ();
31286/* The GNU C library defines this for functions which it implements
31287 to always fail with ENOSYS. Some functions are actually named
31288 something starting with __ and the normal name is an alias. */
31289#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31290choke me
31291#else
31292char (*f) () = $ac_func;
31293#endif
31294#ifdef __cplusplus
31295}
31296#endif
31297
31298int
31299main ()
31300{
31301return f != $ac_func;
31302 ;
31303 return 0;
31304}
31305_ACEOF
31306rm -f conftest.$ac_objext conftest$ac_exeext
31307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31308 (eval $ac_link) 2>conftest.er1
a848cd7e 31309 ac_status=$?
ac1cb8d3
VS
31310 grep -v '^ *+' conftest.er1 >conftest.err
31311 rm -f conftest.er1
31312 cat conftest.err >&5
a848cd7e
SC
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); } &&
ac1cb8d3
VS
31315 { ac_try='test -z "$ac_c_werror_flag"
31316 || test ! -s conftest.err'
31317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31318 (eval $ac_try) 2>&5
31319 ac_status=$?
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; } &&
31322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31324 (eval $ac_try) 2>&5
31325 ac_status=$?
31326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); }; }; then
31328 eval "$as_ac_var=yes"
31329else
31330 echo "$as_me: failed program was:" >&5
31331sed 's/^/| /' conftest.$ac_ext >&5
31332
31333eval "$as_ac_var=no"
31334fi
ac1cb8d3
VS
31335rm -f conftest.err conftest.$ac_objext \
31336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31337fi
31338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31339echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31340if test `eval echo '${'$as_ac_var'}'` = yes; then
31341 cat >>confdefs.h <<_ACEOF
31342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31343_ACEOF
31344 cat >>confdefs.h <<\_ACEOF
31345#define HAVE_INET_ATON 1
31346_ACEOF
31347
31348else
31349
31350 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31351echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31352echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31353if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31355else
31356 ac_check_lib_save_LIBS=$LIBS
31357LIBS="-l$INET_LINK $LIBS"
31358cat >conftest.$ac_ext <<_ACEOF
31359/* confdefs.h. */
31360_ACEOF
31361cat confdefs.h >>conftest.$ac_ext
31362cat >>conftest.$ac_ext <<_ACEOF
31363/* end confdefs.h. */
31364
31365/* Override any gcc2 internal prototype to avoid an error. */
31366#ifdef __cplusplus
31367extern "C"
31368#endif
31369/* We use char because int might match the return type of a gcc2
31370 builtin and then its argument prototype would still apply. */
31371char inet_aton ();
31372int
31373main ()
31374{
31375inet_aton ();
31376 ;
31377 return 0;
31378}
31379_ACEOF
31380rm -f conftest.$ac_objext conftest$ac_exeext
31381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31382 (eval $ac_link) 2>conftest.er1
a848cd7e 31383 ac_status=$?
ac1cb8d3
VS
31384 grep -v '^ *+' conftest.er1 >conftest.err
31385 rm -f conftest.er1
31386 cat conftest.err >&5
a848cd7e
SC
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } &&
ac1cb8d3
VS
31389 { ac_try='test -z "$ac_c_werror_flag"
31390 || test ! -s conftest.err'
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; } &&
31396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31399 ac_status=$?
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402 eval "$as_ac_Lib=yes"
31403else
31404 echo "$as_me: failed program was:" >&5
31405sed 's/^/| /' conftest.$ac_ext >&5
31406
31407eval "$as_ac_Lib=no"
31408fi
ac1cb8d3
VS
31409rm -f conftest.err conftest.$ac_objext \
31410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31411LIBS=$ac_check_lib_save_LIBS
31412fi
31413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31414echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31415if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31416 cat >>confdefs.h <<\_ACEOF
31417#define HAVE_INET_ATON 1
31418_ACEOF
31419
31420fi
31421
31422
31423fi
31424done
31425
31426
31427if test "x$INET_LINK" != "x"; then
31428 cat >>confdefs.h <<\_ACEOF
31429#define HAVE_INET_ADDR 1
31430_ACEOF
31431
31432 INET_LINK=" -l$INET_LINK"
31433fi
31434
31435fi
31436
31437
31438
31439EXTRALIBS_ESD=
31440echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31441echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31442if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31443 echo $ECHO_N "(cached) $ECHO_C" >&6
31444else
31445 ac_check_lib_save_LIBS=$LIBS
31446LIBS="-lesd $LIBS"
31447cat >conftest.$ac_ext <<_ACEOF
31448/* confdefs.h. */
31449_ACEOF
31450cat confdefs.h >>conftest.$ac_ext
31451cat >>conftest.$ac_ext <<_ACEOF
31452/* end confdefs.h. */
31453
31454/* Override any gcc2 internal prototype to avoid an error. */
31455#ifdef __cplusplus
31456extern "C"
31457#endif
31458/* We use char because int might match the return type of a gcc2
31459 builtin and then its argument prototype would still apply. */
31460char esd_close ();
31461int
31462main ()
31463{
31464esd_close ();
31465 ;
31466 return 0;
31467}
31468_ACEOF
31469rm -f conftest.$ac_objext conftest$ac_exeext
31470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31471 (eval $ac_link) 2>conftest.er1
a848cd7e 31472 ac_status=$?
ac1cb8d3
VS
31473 grep -v '^ *+' conftest.er1 >conftest.err
31474 rm -f conftest.er1
31475 cat conftest.err >&5
a848cd7e
SC
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); } &&
ac1cb8d3
VS
31478 { ac_try='test -z "$ac_c_werror_flag"
31479 || test ! -s conftest.err'
31480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31481 (eval $ac_try) 2>&5
31482 ac_status=$?
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); }; } &&
31485 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31487 (eval $ac_try) 2>&5
31488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; }; then
31491 ac_cv_lib_esd_esd_close=yes
31492else
31493 echo "$as_me: failed program was:" >&5
31494sed 's/^/| /' conftest.$ac_ext >&5
31495
31496ac_cv_lib_esd_esd_close=no
31497fi
ac1cb8d3
VS
31498rm -f conftest.err conftest.$ac_objext \
31499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31500LIBS=$ac_check_lib_save_LIBS
31501fi
31502echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31503echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31504if test $ac_cv_lib_esd_esd_close = yes; then
31505
31506
31507for ac_header in esd.h
31508do
31509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31510if eval "test \"\${$as_ac_Header+set}\" = set"; then
31511 echo "$as_me:$LINENO: checking for $ac_header" >&5
31512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31513if eval "test \"\${$as_ac_Header+set}\" = set"; then
31514 echo $ECHO_N "(cached) $ECHO_C" >&6
31515fi
31516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31518else
31519 # Is the header compilable?
31520echo "$as_me:$LINENO: checking $ac_header usability" >&5
31521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31522cat >conftest.$ac_ext <<_ACEOF
31523/* confdefs.h. */
31524_ACEOF
31525cat confdefs.h >>conftest.$ac_ext
31526cat >>conftest.$ac_ext <<_ACEOF
31527/* end confdefs.h. */
31528$ac_includes_default
31529#include <$ac_header>
31530_ACEOF
31531rm -f conftest.$ac_objext
31532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31533 (eval $ac_compile) 2>conftest.er1
a848cd7e 31534 ac_status=$?
ac1cb8d3
VS
31535 grep -v '^ *+' conftest.er1 >conftest.err
31536 rm -f conftest.er1
31537 cat conftest.err >&5
a848cd7e
SC
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); } &&
ac1cb8d3
VS
31540 { ac_try='test -z "$ac_c_werror_flag"
31541 || test ! -s conftest.err'
31542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31543 (eval $ac_try) 2>&5
31544 ac_status=$?
31545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); }; } &&
31547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31549 (eval $ac_try) 2>&5
31550 ac_status=$?
31551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31552 (exit $ac_status); }; }; then
31553 ac_header_compiler=yes
31554else
31555 echo "$as_me: failed program was:" >&5
31556sed 's/^/| /' conftest.$ac_ext >&5
31557
31558ac_header_compiler=no
31559fi
ac1cb8d3 31560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31561echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31562echo "${ECHO_T}$ac_header_compiler" >&6
31563
31564# Is the header present?
31565echo "$as_me:$LINENO: checking $ac_header presence" >&5
31566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31567cat >conftest.$ac_ext <<_ACEOF
31568/* confdefs.h. */
31569_ACEOF
31570cat confdefs.h >>conftest.$ac_ext
31571cat >>conftest.$ac_ext <<_ACEOF
31572/* end confdefs.h. */
31573#include <$ac_header>
31574_ACEOF
31575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31577 ac_status=$?
31578 grep -v '^ *+' conftest.er1 >conftest.err
31579 rm -f conftest.er1
31580 cat conftest.err >&5
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); } >/dev/null; then
31583 if test -s conftest.err; then
31584 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31586 else
31587 ac_cpp_err=
31588 fi
31589else
31590 ac_cpp_err=yes
31591fi
31592if test -z "$ac_cpp_err"; then
31593 ac_header_preproc=yes
31594else
31595 echo "$as_me: failed program was:" >&5
31596sed 's/^/| /' conftest.$ac_ext >&5
31597
31598 ac_header_preproc=no
31599fi
31600rm -f conftest.err conftest.$ac_ext
31601echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31602echo "${ECHO_T}$ac_header_preproc" >&6
31603
31604# So? What about this header?
ac1cb8d3
VS
31605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31606 yes:no: )
a848cd7e
SC
31607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31611 ac_header_preproc=yes
a848cd7e 31612 ;;
ac1cb8d3 31613 no:yes:* )
a848cd7e
SC
31614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31626 (
31627 cat <<\_ASBOX
ac1cb8d3
VS
31628## ----------------------------------------- ##
31629## Report this to wx-dev@lists.wxwidgets.org ##
31630## ----------------------------------------- ##
a848cd7e
SC
31631_ASBOX
31632 ) |
31633 sed "s/^/$as_me: WARNING: /" >&2
31634 ;;
31635esac
31636echo "$as_me:$LINENO: checking for $ac_header" >&5
31637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31638if eval "test \"\${$as_ac_Header+set}\" = set"; then
31639 echo $ECHO_N "(cached) $ECHO_C" >&6
31640else
ac1cb8d3 31641 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31642fi
31643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31645
31646fi
31647if test `eval echo '${'$as_ac_Header'}'` = yes; then
31648 cat >>confdefs.h <<_ACEOF
31649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31650_ACEOF
31651
31652 EXTRALIBS_ESD="-lesd"
31653
31654fi
31655
31656done
31657
31658
31659fi
31660
31661
31662
31663echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31664echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31665cat >conftest.$ac_ext <<_ACEOF
31666/* confdefs.h. */
31667_ACEOF
31668cat confdefs.h >>conftest.$ac_ext
31669cat >>conftest.$ac_ext <<_ACEOF
31670/* end confdefs.h. */
31671#ifdef __linux__
31672 #include <linux/cdrom.h>
31673 #else
31674 /* For Solaris */
31675 #include <sys/cdio.h>
31676 #endif
31677
31678int
31679main ()
31680{
31681struct cdrom_tocentry entry, old_entry;
31682 ;
31683 return 0;
31684}
31685_ACEOF
31686rm -f conftest.$ac_objext
31687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31688 (eval $ac_compile) 2>conftest.er1
a848cd7e 31689 ac_status=$?
ac1cb8d3
VS
31690 grep -v '^ *+' conftest.er1 >conftest.err
31691 rm -f conftest.er1
31692 cat conftest.err >&5
a848cd7e
SC
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); } &&
ac1cb8d3
VS
31695 { ac_try='test -z "$ac_c_werror_flag"
31696 || test ! -s conftest.err'
31697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31698 (eval $ac_try) 2>&5
31699 ac_status=$?
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); }; } &&
31702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31704 (eval $ac_try) 2>&5
31705 ac_status=$?
31706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707 (exit $ac_status); }; }; then
31708 echo "$as_me:$LINENO: result: yes" >&5
31709echo "${ECHO_T}yes" >&6
31710 cat >>confdefs.h <<\_ACEOF
31711#define HAVE_KNOWN_CDROM_INTERFACE 1
31712_ACEOF
31713
31714else
31715 echo "$as_me: failed program was:" >&5
31716sed 's/^/| /' conftest.$ac_ext >&5
31717
31718echo "$as_me:$LINENO: result: no" >&5
31719echo "${ECHO_T}no" >&6
31720fi
ac1cb8d3 31721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31722
31723
31724cat >confcache <<\_ACEOF
31725# This file is a shell script that caches the results of configure
31726# tests run on this system so they can be shared between configure
31727# scripts and configure runs, see configure's option --config-cache.
31728# It is not useful on other systems. If it contains results you don't
31729# want to keep, you may remove or edit it.
31730#
31731# config.status only pays attention to the cache file if you give it
31732# the --recheck option to rerun configure.
31733#
31734# `ac_cv_env_foo' variables (set or unset) will be overridden when
31735# loading this file, other *unset* `ac_cv_foo' will be assigned the
31736# following values.
31737
31738_ACEOF
31739
31740# The following way of writing the cache mishandles newlines in values,
31741# but we know of no workaround that is simple, portable, and efficient.
31742# So, don't put newlines in cache variables' values.
31743# Ultrix sh set writes to stderr and can't be redirected directly,
31744# and sets the high bit in the cache file unless we assign to the vars.
31745{
31746 (set) 2>&1 |
31747 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31748 *ac_space=\ *)
31749 # `set' does not quote correctly, so add quotes (double-quote
31750 # substitution turns \\\\ into \\, and sed turns \\ into \).
31751 sed -n \
ac1cb8d3
VS
31752 "s/'/'\\\\''/g;
31753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31754 ;;
31755 *)
31756 # `set' quotes correctly as required by POSIX, so do not add quotes.
31757 sed -n \
ac1cb8d3 31758 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31759 ;;
31760 esac;
31761} |
31762 sed '
31763 t clear
31764 : clear
31765 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31766 t end
31767 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31768 : end' >>confcache
31769if diff $cache_file confcache >/dev/null 2>&1; then :; else
31770 if test -w $cache_file; then
31771 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31772 cat confcache >$cache_file
31773 else
31774 echo "not updating unwritable cache $cache_file"
31775 fi
31776fi
31777rm -f confcache
31778
31779
31780CPP_MT_FLAG=
31781if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31782
31783
31784 THREADS_LINK=
31785 THREADS_CFLAGS=
31786
31787 if test "$wxUSE_THREADS" = "yes" ; then
31788 if test "$USE_BEOS" = 1; then
31789 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31790echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31791 wxUSE_THREADS="no"
31792 fi
31793 fi
31794
31795 if test "$wxUSE_THREADS" = "yes" ; then
31796
31797
31798 THREAD_OPTS="-pthread"
31799 case "${host}" in
31800 *-*-solaris2* | *-*-sunos4* )
31801 if test "x$GCC" = "xyes"; then
31802 THREAD_OPTS="-pthreads $THREAD_OPTS"
31803 else
31804 THREAD_OPTS="-mt $THREAD_OPTS"
31805 fi
31806 ;;
31807 *-*-freebsd*)
31808 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31809 ;;
31810 *-*-darwin* | *-*-cygwin* )
31811 THREAD_OPTS=""
31812 ;;
31813 *-*-aix*)
31814 THREAD_OPTS="pthreads"
31815 ;;
31816 *-hp-hpux* )
31817 if test "x$GCC" != "xyes"; then
31818 THREAD_OPTS=""
31819 fi
31820 ;;
31821
31822 *-*-irix* )
31823 if test "x$GCC" = "xyes"; then
31824 THREAD_OPTS=""
31825 fi
31826 ;;
31827
31828 *-*-*UnixWare*)
31829 if test "x$GCC" != "xyes"; then
31830 THREAD_OPTS="-Ethread"
31831 fi
31832 ;;
31833 esac
31834
31835 THREAD_OPTS="$THREAD_OPTS pthread none"
31836
31837 THREADS_OK=no
31838 for flag in $THREAD_OPTS; do
31839 case $flag in
31840 none)
31841 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31842echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31843 ;;
31844
31845 -*)
31846 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31847echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31848 THREADS_CFLAGS="$flag"
31849 ;;
31850
31851 *)
31852 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31853echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31854 THREADS_LINK="-l$flag"
31855 ;;
31856 esac
31857
31858 save_LIBS="$LIBS"
31859 save_CFLAGS="$CFLAGS"
31860 LIBS="$THREADS_LINK $LIBS"
31861 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31862
31863 cat >conftest.$ac_ext <<_ACEOF
31864/* confdefs.h. */
31865_ACEOF
31866cat confdefs.h >>conftest.$ac_ext
31867cat >>conftest.$ac_ext <<_ACEOF
31868/* end confdefs.h. */
31869#include <pthread.h>
31870int
31871main ()
31872{
31873pthread_create(0,0,0,0);
31874 ;
31875 return 0;
31876}
31877_ACEOF
31878rm -f conftest.$ac_objext conftest$ac_exeext
31879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31880 (eval $ac_link) 2>conftest.er1
a848cd7e 31881 ac_status=$?
ac1cb8d3
VS
31882 grep -v '^ *+' conftest.er1 >conftest.err
31883 rm -f conftest.er1
31884 cat conftest.err >&5
a848cd7e
SC
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); } &&
ac1cb8d3
VS
31887 { ac_try='test -z "$ac_c_werror_flag"
31888 || test ! -s conftest.err'
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31891 ac_status=$?
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; } &&
31894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31896 (eval $ac_try) 2>&5
31897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); }; }; then
31900 THREADS_OK=yes
31901else
31902 echo "$as_me: failed program was:" >&5
31903sed 's/^/| /' conftest.$ac_ext >&5
31904
31905fi
ac1cb8d3
VS
31906rm -f conftest.err conftest.$ac_objext \
31907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31908
31909 LIBS="$save_LIBS"
31910 CFLAGS="$save_CFLAGS"
31911
31912 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31913echo "${ECHO_T}$THREADS_OK" >&6
31914 if test "x$THREADS_OK" = "xyes"; then
31915 break;
31916 fi
31917
31918 THREADS_LINK=""
31919 THREADS_CFLAGS=""
31920 done
31921
31922 if test "x$THREADS_OK" != "xyes"; then
31923 wxUSE_THREADS=no
31924 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31925echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31926 else
31927 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31928 LIBS="$THREADS_LINK $LIBS"
31929
31930 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31931echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31932 flag=no
31933 case "${host}" in
31934 *-aix*)
31935 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31936 flag="-D_THREAD_SAFE"
31937 ;;
31938 *-freebsd*)
31939 flag="-D_THREAD_SAFE"
31940 ;;
31941 *-hp-hpux* )
31942 flag="-D_REENTRANT"
31943 if test "x$GCC" != "xyes"; then
31944 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31945
31946 LIBS="$LIBS -lcma"
a848cd7e
SC
31947 fi
31948 ;;
31949 *solaris* | alpha*-osf*)
31950 flag="-D_REENTRANT"
31951 ;;
31952 esac
31953 echo "$as_me:$LINENO: result: ${flag}" >&5
31954echo "${ECHO_T}${flag}" >&6
31955 if test "x$flag" != xno; then
31956 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31957 fi
31958
31959 if test "x$THREADS_CFLAGS" != "x"; then
31960 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31961 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31962 fi
31963 fi
31964 fi
31965
31966 if test "$wxUSE_THREADS" = "yes" ; then
31967
31968for ac_func in thr_setconcurrency
31969do
31970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31971echo "$as_me:$LINENO: checking for $ac_func" >&5
31972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31973if eval "test \"\${$as_ac_var+set}\" = set"; then
31974 echo $ECHO_N "(cached) $ECHO_C" >&6
31975else
31976 cat >conftest.$ac_ext <<_ACEOF
31977/* confdefs.h. */
31978_ACEOF
31979cat confdefs.h >>conftest.$ac_ext
31980cat >>conftest.$ac_ext <<_ACEOF
31981/* end confdefs.h. */
ac1cb8d3
VS
31982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31984#define $ac_func innocuous_$ac_func
31985
a848cd7e
SC
31986/* System header to define __stub macros and hopefully few prototypes,
31987 which can conflict with char $ac_func (); below.
31988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31989 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31990
a848cd7e
SC
31991#ifdef __STDC__
31992# include <limits.h>
31993#else
31994# include <assert.h>
31995#endif
ac1cb8d3
VS
31996
31997#undef $ac_func
31998
a848cd7e
SC
31999/* Override any gcc2 internal prototype to avoid an error. */
32000#ifdef __cplusplus
32001extern "C"
32002{
32003#endif
32004/* We use char because int might match the return type of a gcc2
32005 builtin and then its argument prototype would still apply. */
32006char $ac_func ();
32007/* The GNU C library defines this for functions which it implements
32008 to always fail with ENOSYS. Some functions are actually named
32009 something starting with __ and the normal name is an alias. */
32010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32011choke me
32012#else
32013char (*f) () = $ac_func;
32014#endif
32015#ifdef __cplusplus
32016}
32017#endif
32018
32019int
32020main ()
32021{
32022return f != $ac_func;
32023 ;
32024 return 0;
32025}
32026_ACEOF
32027rm -f conftest.$ac_objext conftest$ac_exeext
32028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32029 (eval $ac_link) 2>conftest.er1
a848cd7e 32030 ac_status=$?
ac1cb8d3
VS
32031 grep -v '^ *+' conftest.er1 >conftest.err
32032 rm -f conftest.er1
32033 cat conftest.err >&5
a848cd7e
SC
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); } &&
ac1cb8d3
VS
32036 { ac_try='test -z "$ac_c_werror_flag"
32037 || test ! -s conftest.err'
32038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32039 (eval $ac_try) 2>&5
32040 ac_status=$?
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; } &&
32043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32045 (eval $ac_try) 2>&5
32046 ac_status=$?
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); }; }; then
32049 eval "$as_ac_var=yes"
32050else
32051 echo "$as_me: failed program was:" >&5
32052sed 's/^/| /' conftest.$ac_ext >&5
32053
32054eval "$as_ac_var=no"
32055fi
ac1cb8d3
VS
32056rm -f conftest.err conftest.$ac_objext \
32057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32058fi
32059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32061if test `eval echo '${'$as_ac_var'}'` = yes; then
32062 cat >>confdefs.h <<_ACEOF
32063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32064_ACEOF
32065
32066fi
32067done
32068
32069
32070
32071for ac_header in sched.h
32072do
32073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32074if eval "test \"\${$as_ac_Header+set}\" = set"; then
32075 echo "$as_me:$LINENO: checking for $ac_header" >&5
32076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32077if eval "test \"\${$as_ac_Header+set}\" = set"; then
32078 echo $ECHO_N "(cached) $ECHO_C" >&6
32079fi
32080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32082else
32083 # Is the header compilable?
32084echo "$as_me:$LINENO: checking $ac_header usability" >&5
32085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32086cat >conftest.$ac_ext <<_ACEOF
32087/* confdefs.h. */
32088_ACEOF
32089cat confdefs.h >>conftest.$ac_ext
32090cat >>conftest.$ac_ext <<_ACEOF
32091/* end confdefs.h. */
32092$ac_includes_default
32093#include <$ac_header>
32094_ACEOF
32095rm -f conftest.$ac_objext
32096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32097 (eval $ac_compile) 2>conftest.er1
a848cd7e 32098 ac_status=$?
ac1cb8d3
VS
32099 grep -v '^ *+' conftest.er1 >conftest.err
32100 rm -f conftest.er1
32101 cat conftest.err >&5
a848cd7e
SC
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); } &&
ac1cb8d3
VS
32104 { ac_try='test -z "$ac_c_werror_flag"
32105 || test ! -s conftest.err'
32106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32107 (eval $ac_try) 2>&5
32108 ac_status=$?
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); }; } &&
32111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32113 (eval $ac_try) 2>&5
32114 ac_status=$?
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); }; }; then
32117 ac_header_compiler=yes
32118else
32119 echo "$as_me: failed program was:" >&5
32120sed 's/^/| /' conftest.$ac_ext >&5
32121
32122ac_header_compiler=no
32123fi
ac1cb8d3 32124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32125echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32126echo "${ECHO_T}$ac_header_compiler" >&6
32127
32128# Is the header present?
32129echo "$as_me:$LINENO: checking $ac_header presence" >&5
32130echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32131cat >conftest.$ac_ext <<_ACEOF
32132/* confdefs.h. */
32133_ACEOF
32134cat confdefs.h >>conftest.$ac_ext
32135cat >>conftest.$ac_ext <<_ACEOF
32136/* end confdefs.h. */
32137#include <$ac_header>
32138_ACEOF
32139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32141 ac_status=$?
32142 grep -v '^ *+' conftest.er1 >conftest.err
32143 rm -f conftest.er1
32144 cat conftest.err >&5
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); } >/dev/null; then
32147 if test -s conftest.err; then
32148 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32150 else
32151 ac_cpp_err=
32152 fi
32153else
32154 ac_cpp_err=yes
32155fi
32156if test -z "$ac_cpp_err"; then
32157 ac_header_preproc=yes
32158else
32159 echo "$as_me: failed program was:" >&5
32160sed 's/^/| /' conftest.$ac_ext >&5
32161
32162 ac_header_preproc=no
32163fi
32164rm -f conftest.err conftest.$ac_ext
32165echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32166echo "${ECHO_T}$ac_header_preproc" >&6
32167
32168# So? What about this header?
ac1cb8d3
VS
32169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32170 yes:no: )
a848cd7e
SC
32171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32175 ac_header_preproc=yes
a848cd7e 32176 ;;
ac1cb8d3 32177 no:yes:* )
a848cd7e
SC
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32185echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32190 (
32191 cat <<\_ASBOX
ac1cb8d3
VS
32192## ----------------------------------------- ##
32193## Report this to wx-dev@lists.wxwidgets.org ##
32194## ----------------------------------------- ##
a848cd7e
SC
32195_ASBOX
32196 ) |
32197 sed "s/^/$as_me: WARNING: /" >&2
32198 ;;
32199esac
32200echo "$as_me:$LINENO: checking for $ac_header" >&5
32201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32202if eval "test \"\${$as_ac_Header+set}\" = set"; then
32203 echo $ECHO_N "(cached) $ECHO_C" >&6
32204else
ac1cb8d3 32205 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32206fi
32207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32209
32210fi
32211if test `eval echo '${'$as_ac_Header'}'` = yes; then
32212 cat >>confdefs.h <<_ACEOF
32213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32214_ACEOF
32215
32216fi
32217
32218done
32219
32220 if test "$ac_cv_header_sched_h" = "yes"; then
32221 echo "$as_me:$LINENO: checking for sched_yield" >&5
32222echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32223if test "${ac_cv_func_sched_yield+set}" = set; then
32224 echo $ECHO_N "(cached) $ECHO_C" >&6
32225else
32226 cat >conftest.$ac_ext <<_ACEOF
32227/* confdefs.h. */
32228_ACEOF
32229cat confdefs.h >>conftest.$ac_ext
32230cat >>conftest.$ac_ext <<_ACEOF
32231/* end confdefs.h. */
ac1cb8d3
VS
32232/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32234#define sched_yield innocuous_sched_yield
32235
a848cd7e
SC
32236/* System header to define __stub macros and hopefully few prototypes,
32237 which can conflict with char sched_yield (); below.
32238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32239 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32240
a848cd7e
SC
32241#ifdef __STDC__
32242# include <limits.h>
32243#else
32244# include <assert.h>
32245#endif
ac1cb8d3
VS
32246
32247#undef sched_yield
32248
a848cd7e
SC
32249/* Override any gcc2 internal prototype to avoid an error. */
32250#ifdef __cplusplus
32251extern "C"
32252{
32253#endif
32254/* We use char because int might match the return type of a gcc2
32255 builtin and then its argument prototype would still apply. */
32256char sched_yield ();
32257/* The GNU C library defines this for functions which it implements
32258 to always fail with ENOSYS. Some functions are actually named
32259 something starting with __ and the normal name is an alias. */
32260#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32261choke me
32262#else
32263char (*f) () = sched_yield;
32264#endif
32265#ifdef __cplusplus
32266}
32267#endif
32268
32269int
32270main ()
32271{
32272return f != sched_yield;
32273 ;
32274 return 0;
32275}
32276_ACEOF
32277rm -f conftest.$ac_objext conftest$ac_exeext
32278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32279 (eval $ac_link) 2>conftest.er1
a848cd7e 32280 ac_status=$?
ac1cb8d3
VS
32281 grep -v '^ *+' conftest.er1 >conftest.err
32282 rm -f conftest.er1
32283 cat conftest.err >&5
a848cd7e
SC
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); } &&
ac1cb8d3
VS
32286 { ac_try='test -z "$ac_c_werror_flag"
32287 || test ! -s conftest.err'
32288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32289 (eval $ac_try) 2>&5
32290 ac_status=$?
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); }; } &&
32293 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295 (eval $ac_try) 2>&5
32296 ac_status=$?
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); }; }; then
32299 ac_cv_func_sched_yield=yes
32300else
32301 echo "$as_me: failed program was:" >&5
32302sed 's/^/| /' conftest.$ac_ext >&5
32303
32304ac_cv_func_sched_yield=no
32305fi
ac1cb8d3
VS
32306rm -f conftest.err conftest.$ac_objext \
32307 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32308fi
32309echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32310echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32311if test $ac_cv_func_sched_yield = yes; then
32312 cat >>confdefs.h <<\_ACEOF
32313#define HAVE_SCHED_YIELD 1
32314_ACEOF
32315
32316else
32317
32318 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32319echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32320if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32321 echo $ECHO_N "(cached) $ECHO_C" >&6
32322else
32323 ac_check_lib_save_LIBS=$LIBS
32324LIBS="-lposix4 $LIBS"
32325cat >conftest.$ac_ext <<_ACEOF
32326/* confdefs.h. */
32327_ACEOF
32328cat confdefs.h >>conftest.$ac_ext
32329cat >>conftest.$ac_ext <<_ACEOF
32330/* end confdefs.h. */
32331
32332/* Override any gcc2 internal prototype to avoid an error. */
32333#ifdef __cplusplus
32334extern "C"
32335#endif
32336/* We use char because int might match the return type of a gcc2
32337 builtin and then its argument prototype would still apply. */
32338char sched_yield ();
32339int
32340main ()
32341{
32342sched_yield ();
32343 ;
32344 return 0;
32345}
32346_ACEOF
32347rm -f conftest.$ac_objext conftest$ac_exeext
32348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32349 (eval $ac_link) 2>conftest.er1
a848cd7e 32350 ac_status=$?
ac1cb8d3
VS
32351 grep -v '^ *+' conftest.er1 >conftest.err
32352 rm -f conftest.er1
32353 cat conftest.err >&5
a848cd7e
SC
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } &&
ac1cb8d3
VS
32356 { ac_try='test -z "$ac_c_werror_flag"
32357 || test ! -s conftest.err'
32358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359 (eval $ac_try) 2>&5
32360 ac_status=$?
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; } &&
32363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32365 (eval $ac_try) 2>&5
32366 ac_status=$?
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; }; then
32369 ac_cv_lib_posix4_sched_yield=yes
32370else
32371 echo "$as_me: failed program was:" >&5
32372sed 's/^/| /' conftest.$ac_ext >&5
32373
32374ac_cv_lib_posix4_sched_yield=no
32375fi
ac1cb8d3
VS
32376rm -f conftest.err conftest.$ac_objext \
32377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32378LIBS=$ac_check_lib_save_LIBS
32379fi
32380echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32381echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32382if test $ac_cv_lib_posix4_sched_yield = yes; then
32383 cat >>confdefs.h <<\_ACEOF
32384#define HAVE_SCHED_YIELD 1
32385_ACEOF
32386 POSIX4_LINK=" -lposix4"
32387else
32388 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32389echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32390
32391fi
32392
32393
32394
32395fi
32396
32397 fi
32398
32399 HAVE_PRIOR_FUNCS=0
32400 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32401echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32402if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32403 echo $ECHO_N "(cached) $ECHO_C" >&6
32404else
32405 cat >conftest.$ac_ext <<_ACEOF
32406/* confdefs.h. */
32407_ACEOF
32408cat confdefs.h >>conftest.$ac_ext
32409cat >>conftest.$ac_ext <<_ACEOF
32410/* end confdefs.h. */
ac1cb8d3
VS
32411/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32413#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32414
a848cd7e
SC
32415/* System header to define __stub macros and hopefully few prototypes,
32416 which can conflict with char pthread_attr_getschedpolicy (); below.
32417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32418 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32419
a848cd7e
SC
32420#ifdef __STDC__
32421# include <limits.h>
32422#else
32423# include <assert.h>
32424#endif
ac1cb8d3
VS
32425
32426#undef pthread_attr_getschedpolicy
32427
a848cd7e
SC
32428/* Override any gcc2 internal prototype to avoid an error. */
32429#ifdef __cplusplus
32430extern "C"
32431{
32432#endif
32433/* We use char because int might match the return type of a gcc2
32434 builtin and then its argument prototype would still apply. */
32435char pthread_attr_getschedpolicy ();
32436/* The GNU C library defines this for functions which it implements
32437 to always fail with ENOSYS. Some functions are actually named
32438 something starting with __ and the normal name is an alias. */
32439#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32440choke me
32441#else
32442char (*f) () = pthread_attr_getschedpolicy;
32443#endif
32444#ifdef __cplusplus
32445}
32446#endif
32447
32448int
32449main ()
32450{
32451return f != pthread_attr_getschedpolicy;
32452 ;
32453 return 0;
32454}
32455_ACEOF
32456rm -f conftest.$ac_objext conftest$ac_exeext
32457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32458 (eval $ac_link) 2>conftest.er1
a848cd7e 32459 ac_status=$?
ac1cb8d3
VS
32460 grep -v '^ *+' conftest.er1 >conftest.err
32461 rm -f conftest.er1
32462 cat conftest.err >&5
a848cd7e
SC
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } &&
ac1cb8d3
VS
32465 { ac_try='test -z "$ac_c_werror_flag"
32466 || test ! -s conftest.err'
32467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 (eval $ac_try) 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; } &&
32472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32474 (eval $ac_try) 2>&5
32475 ac_status=$?
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); }; }; then
32478 ac_cv_func_pthread_attr_getschedpolicy=yes
32479else
32480 echo "$as_me: failed program was:" >&5
32481sed 's/^/| /' conftest.$ac_ext >&5
32482
32483ac_cv_func_pthread_attr_getschedpolicy=no
32484fi
ac1cb8d3
VS
32485rm -f conftest.err conftest.$ac_objext \
32486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32487fi
32488echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32489echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32490if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32491 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32492echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32493if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32494 echo $ECHO_N "(cached) $ECHO_C" >&6
32495else
32496 cat >conftest.$ac_ext <<_ACEOF
32497/* confdefs.h. */
32498_ACEOF
32499cat confdefs.h >>conftest.$ac_ext
32500cat >>conftest.$ac_ext <<_ACEOF
32501/* end confdefs.h. */
ac1cb8d3
VS
32502/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32504#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32505
a848cd7e
SC
32506/* System header to define __stub macros and hopefully few prototypes,
32507 which can conflict with char pthread_attr_setschedparam (); below.
32508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32509 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32510
a848cd7e
SC
32511#ifdef __STDC__
32512# include <limits.h>
32513#else
32514# include <assert.h>
32515#endif
ac1cb8d3
VS
32516
32517#undef pthread_attr_setschedparam
32518
a848cd7e
SC
32519/* Override any gcc2 internal prototype to avoid an error. */
32520#ifdef __cplusplus
32521extern "C"
32522{
32523#endif
32524/* We use char because int might match the return type of a gcc2
32525 builtin and then its argument prototype would still apply. */
32526char pthread_attr_setschedparam ();
32527/* The GNU C library defines this for functions which it implements
32528 to always fail with ENOSYS. Some functions are actually named
32529 something starting with __ and the normal name is an alias. */
32530#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32531choke me
32532#else
32533char (*f) () = pthread_attr_setschedparam;
32534#endif
32535#ifdef __cplusplus
32536}
32537#endif
32538
32539int
32540main ()
32541{
32542return f != pthread_attr_setschedparam;
32543 ;
32544 return 0;
32545}
32546_ACEOF
32547rm -f conftest.$ac_objext conftest$ac_exeext
32548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32549 (eval $ac_link) 2>conftest.er1
a848cd7e 32550 ac_status=$?
ac1cb8d3
VS
32551 grep -v '^ *+' conftest.er1 >conftest.err
32552 rm -f conftest.er1
32553 cat conftest.err >&5
a848cd7e
SC
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); } &&
ac1cb8d3
VS
32556 { ac_try='test -z "$ac_c_werror_flag"
32557 || test ! -s conftest.err'
32558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32559 (eval $ac_try) 2>&5
32560 ac_status=$?
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); }; } &&
32563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32565 (eval $ac_try) 2>&5
32566 ac_status=$?
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); }; }; then
32569 ac_cv_func_pthread_attr_setschedparam=yes
32570else
32571 echo "$as_me: failed program was:" >&5
32572sed 's/^/| /' conftest.$ac_ext >&5
32573
32574ac_cv_func_pthread_attr_setschedparam=no
32575fi
ac1cb8d3
VS
32576rm -f conftest.err conftest.$ac_objext \
32577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32578fi
32579echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32580echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32581if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32582 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32583echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32584if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32585 echo $ECHO_N "(cached) $ECHO_C" >&6
32586else
32587 cat >conftest.$ac_ext <<_ACEOF
32588/* confdefs.h. */
32589_ACEOF
32590cat confdefs.h >>conftest.$ac_ext
32591cat >>conftest.$ac_ext <<_ACEOF
32592/* end confdefs.h. */
ac1cb8d3
VS
32593/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32595#define sched_get_priority_max innocuous_sched_get_priority_max
32596
a848cd7e
SC
32597/* System header to define __stub macros and hopefully few prototypes,
32598 which can conflict with char sched_get_priority_max (); below.
32599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32600 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32601
a848cd7e
SC
32602#ifdef __STDC__
32603# include <limits.h>
32604#else
32605# include <assert.h>
32606#endif
ac1cb8d3
VS
32607
32608#undef sched_get_priority_max
32609
a848cd7e
SC
32610/* Override any gcc2 internal prototype to avoid an error. */
32611#ifdef __cplusplus
32612extern "C"
32613{
32614#endif
32615/* We use char because int might match the return type of a gcc2
32616 builtin and then its argument prototype would still apply. */
32617char sched_get_priority_max ();
32618/* The GNU C library defines this for functions which it implements
32619 to always fail with ENOSYS. Some functions are actually named
32620 something starting with __ and the normal name is an alias. */
32621#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32622choke me
32623#else
32624char (*f) () = sched_get_priority_max;
32625#endif
32626#ifdef __cplusplus
32627}
32628#endif
32629
32630int
32631main ()
32632{
32633return f != sched_get_priority_max;
32634 ;
32635 return 0;
32636}
32637_ACEOF
32638rm -f conftest.$ac_objext conftest$ac_exeext
32639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32640 (eval $ac_link) 2>conftest.er1
a848cd7e 32641 ac_status=$?
ac1cb8d3
VS
32642 grep -v '^ *+' conftest.er1 >conftest.err
32643 rm -f conftest.er1
32644 cat conftest.err >&5
a848cd7e
SC
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); } &&
ac1cb8d3
VS
32647 { ac_try='test -z "$ac_c_werror_flag"
32648 || test ! -s conftest.err'
32649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32650 (eval $ac_try) 2>&5
32651 ac_status=$?
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; } &&
32654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656 (eval $ac_try) 2>&5
32657 ac_status=$?
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }; then
32660 ac_cv_func_sched_get_priority_max=yes
32661else
32662 echo "$as_me: failed program was:" >&5
32663sed 's/^/| /' conftest.$ac_ext >&5
32664
32665ac_cv_func_sched_get_priority_max=no
32666fi
ac1cb8d3
VS
32667rm -f conftest.err conftest.$ac_objext \
32668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32669fi
32670echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32671echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32672if test $ac_cv_func_sched_get_priority_max = yes; then
32673 HAVE_PRIOR_FUNCS=1
32674else
32675 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32676echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32677if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32678 echo $ECHO_N "(cached) $ECHO_C" >&6
32679else
32680 ac_check_lib_save_LIBS=$LIBS
32681LIBS="-lposix4 $LIBS"
32682cat >conftest.$ac_ext <<_ACEOF
32683/* confdefs.h. */
32684_ACEOF
32685cat confdefs.h >>conftest.$ac_ext
32686cat >>conftest.$ac_ext <<_ACEOF
32687/* end confdefs.h. */
32688
32689/* Override any gcc2 internal prototype to avoid an error. */
32690#ifdef __cplusplus
32691extern "C"
32692#endif
32693/* We use char because int might match the return type of a gcc2
32694 builtin and then its argument prototype would still apply. */
32695char sched_get_priority_max ();
32696int
32697main ()
32698{
32699sched_get_priority_max ();
32700 ;
32701 return 0;
32702}
32703_ACEOF
32704rm -f conftest.$ac_objext conftest$ac_exeext
32705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32706 (eval $ac_link) 2>conftest.er1
a848cd7e 32707 ac_status=$?
ac1cb8d3
VS
32708 grep -v '^ *+' conftest.er1 >conftest.err
32709 rm -f conftest.er1
32710 cat conftest.err >&5
a848cd7e
SC
32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); } &&
ac1cb8d3
VS
32713 { ac_try='test -z "$ac_c_werror_flag"
32714 || test ! -s conftest.err'
32715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32716 (eval $ac_try) 2>&5
32717 ac_status=$?
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); }; } &&
32720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32722 (eval $ac_try) 2>&5
32723 ac_status=$?
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); }; }; then
32726 ac_cv_lib_posix4_sched_get_priority_max=yes
32727else
32728 echo "$as_me: failed program was:" >&5
32729sed 's/^/| /' conftest.$ac_ext >&5
32730
32731ac_cv_lib_posix4_sched_get_priority_max=no
32732fi
ac1cb8d3
VS
32733rm -f conftest.err conftest.$ac_objext \
32734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32735LIBS=$ac_check_lib_save_LIBS
32736fi
32737echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32738echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32739if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32740
32741 HAVE_PRIOR_FUNCS=1
32742 POSIX4_LINK=" -lposix4"
32743
32744fi
32745
32746
32747fi
32748
32749
32750fi
32751
32752
32753fi
32754
32755
32756 if test "$HAVE_PRIOR_FUNCS" = 1; then
32757 cat >>confdefs.h <<\_ACEOF
32758#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32759_ACEOF
32760
32761 else
32762 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32763echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32764 fi
32765
32766 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32767echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32768if test "${ac_cv_func_pthread_cancel+set}" = set; then
32769 echo $ECHO_N "(cached) $ECHO_C" >&6
32770else
32771 cat >conftest.$ac_ext <<_ACEOF
32772/* confdefs.h. */
32773_ACEOF
32774cat confdefs.h >>conftest.$ac_ext
32775cat >>conftest.$ac_ext <<_ACEOF
32776/* end confdefs.h. */
ac1cb8d3
VS
32777/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32779#define pthread_cancel innocuous_pthread_cancel
32780
a848cd7e
SC
32781/* System header to define __stub macros and hopefully few prototypes,
32782 which can conflict with char pthread_cancel (); below.
32783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32784 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32785
a848cd7e
SC
32786#ifdef __STDC__
32787# include <limits.h>
32788#else
32789# include <assert.h>
32790#endif
ac1cb8d3
VS
32791
32792#undef pthread_cancel
32793
a848cd7e
SC
32794/* Override any gcc2 internal prototype to avoid an error. */
32795#ifdef __cplusplus
32796extern "C"
32797{
32798#endif
32799/* We use char because int might match the return type of a gcc2
32800 builtin and then its argument prototype would still apply. */
32801char pthread_cancel ();
32802/* The GNU C library defines this for functions which it implements
32803 to always fail with ENOSYS. Some functions are actually named
32804 something starting with __ and the normal name is an alias. */
32805#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32806choke me
32807#else
32808char (*f) () = pthread_cancel;
32809#endif
32810#ifdef __cplusplus
32811}
32812#endif
32813
32814int
32815main ()
32816{
32817return f != pthread_cancel;
32818 ;
32819 return 0;
32820}
32821_ACEOF
32822rm -f conftest.$ac_objext conftest$ac_exeext
32823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32824 (eval $ac_link) 2>conftest.er1
a848cd7e 32825 ac_status=$?
ac1cb8d3
VS
32826 grep -v '^ *+' conftest.er1 >conftest.err
32827 rm -f conftest.er1
32828 cat conftest.err >&5
a848cd7e
SC
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); } &&
ac1cb8d3
VS
32831 { ac_try='test -z "$ac_c_werror_flag"
32832 || test ! -s conftest.err'
32833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32834 (eval $ac_try) 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; } &&
32838 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32840 (eval $ac_try) 2>&5
32841 ac_status=$?
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); }; }; then
32844 ac_cv_func_pthread_cancel=yes
32845else
32846 echo "$as_me: failed program was:" >&5
32847sed 's/^/| /' conftest.$ac_ext >&5
32848
32849ac_cv_func_pthread_cancel=no
32850fi
ac1cb8d3
VS
32851rm -f conftest.err conftest.$ac_objext \
32852 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32853fi
32854echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32855echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32856if test $ac_cv_func_pthread_cancel = yes; then
32857 cat >>confdefs.h <<\_ACEOF
32858#define HAVE_PTHREAD_CANCEL 1
32859_ACEOF
32860
32861else
32862 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32863echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32864fi
32865
32866
32867
32868
32869 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32870echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32871if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32872 echo $ECHO_N "(cached) $ECHO_C" >&6
32873else
32874
32875 cat >conftest.$ac_ext <<_ACEOF
32876/* confdefs.h. */
32877_ACEOF
32878cat confdefs.h >>conftest.$ac_ext
32879cat >>conftest.$ac_ext <<_ACEOF
32880/* end confdefs.h. */
32881#include <pthread.h>
32882int
32883main ()
32884{
32885
32886 pthread_mutexattr_t attr;
32887 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32888
32889 ;
32890 return 0;
32891}
32892_ACEOF
32893rm -f conftest.$ac_objext
32894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32895 (eval $ac_compile) 2>conftest.er1
a848cd7e 32896 ac_status=$?
ac1cb8d3
VS
32897 grep -v '^ *+' conftest.er1 >conftest.err
32898 rm -f conftest.er1
32899 cat conftest.err >&5
a848cd7e
SC
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); } &&
ac1cb8d3
VS
32902 { ac_try='test -z "$ac_c_werror_flag"
32903 || test ! -s conftest.err'
32904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32905 (eval $ac_try) 2>&5
32906 ac_status=$?
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); }; } &&
32909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32911 (eval $ac_try) 2>&5
32912 ac_status=$?
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; }; then
32915
32916 wx_cv_type_pthread_mutexattr_t=yes
32917
32918else
32919 echo "$as_me: failed program was:" >&5
32920sed 's/^/| /' conftest.$ac_ext >&5
32921
32922
32923 wx_cv_type_pthread_mutexattr_t=no
32924
32925
32926fi
ac1cb8d3 32927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32928
32929fi
32930echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32931echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32932
32933 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32934 cat >>confdefs.h <<\_ACEOF
32935#define HAVE_PTHREAD_MUTEXATTR_T 1
32936_ACEOF
32937
32938 else
32939 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32940echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32941if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32942 echo $ECHO_N "(cached) $ECHO_C" >&6
32943else
32944
32945 cat >conftest.$ac_ext <<_ACEOF
32946/* confdefs.h. */
32947_ACEOF
32948cat confdefs.h >>conftest.$ac_ext
32949cat >>conftest.$ac_ext <<_ACEOF
32950/* end confdefs.h. */
32951#include <pthread.h>
32952int
32953main ()
32954{
32955
32956 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32957
32958 ;
32959 return 0;
32960}
32961_ACEOF
32962rm -f conftest.$ac_objext
32963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32964 (eval $ac_compile) 2>conftest.er1
a848cd7e 32965 ac_status=$?
ac1cb8d3
VS
32966 grep -v '^ *+' conftest.er1 >conftest.err
32967 rm -f conftest.er1
32968 cat conftest.err >&5
a848cd7e
SC
32969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970 (exit $ac_status); } &&
ac1cb8d3
VS
32971 { ac_try='test -z "$ac_c_werror_flag"
32972 || test ! -s conftest.err'
32973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32974 (eval $ac_try) 2>&5
32975 ac_status=$?
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); }; } &&
32978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32980 (eval $ac_try) 2>&5
32981 ac_status=$?
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); }; }; then
32984
32985 wx_cv_type_pthread_rec_mutex_init=yes
32986
32987else
32988 echo "$as_me: failed program was:" >&5
32989sed 's/^/| /' conftest.$ac_ext >&5
32990
32991
32992 wx_cv_type_pthread_rec_mutex_init=no
32993
32994
32995fi
ac1cb8d3 32996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32997
32998fi
32999echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33000echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33001 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33002 cat >>confdefs.h <<\_ACEOF
33003#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33004_ACEOF
33005
33006 else
33007 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33008echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33009 fi
33010 fi
33011 fi
33012
33013else
33014 if test "$wxUSE_THREADS" = "yes" ; then
33015 case "${host}" in
33016 *-*-mingw32* )
33017 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33018echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33019if test "${wx_cv_cflags_mthread+set}" = set; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33021else
33022
33023 CFLAGS_OLD="$CFLAGS"
33024 CFLAGS="$CFLAGS -mthreads"
33025 cat >conftest.$ac_ext <<_ACEOF
33026/* confdefs.h. */
33027_ACEOF
33028cat confdefs.h >>conftest.$ac_ext
33029cat >>conftest.$ac_ext <<_ACEOF
33030/* end confdefs.h. */
33031
33032int
33033main ()
33034{
33035
33036 ;
33037 return 0;
33038}
33039_ACEOF
33040rm -f conftest.$ac_objext
33041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33042 (eval $ac_compile) 2>conftest.er1
a848cd7e 33043 ac_status=$?
ac1cb8d3
VS
33044 grep -v '^ *+' conftest.er1 >conftest.err
33045 rm -f conftest.er1
33046 cat conftest.err >&5
a848cd7e
SC
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); } &&
ac1cb8d3
VS
33049 { ac_try='test -z "$ac_c_werror_flag"
33050 || test ! -s conftest.err'
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052 (eval $ac_try) 2>&5
33053 ac_status=$?
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; } &&
33056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33058 (eval $ac_try) 2>&5
33059 ac_status=$?
33060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061 (exit $ac_status); }; }; then
33062 wx_cv_cflags_mthread=yes
33063else
33064 echo "$as_me: failed program was:" >&5
33065sed 's/^/| /' conftest.$ac_ext >&5
33066
33067wx_cv_cflags_mthread=no
33068
33069fi
ac1cb8d3 33070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33071
33072
33073fi
33074echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33075echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33076
33077 if test "$wx_cv_cflags_mthread" = "yes"; then
33078 CXXFLAGS="$CXXFLAGS -mthreads"
33079 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33080 LDFLAGS="$LDFLAGS -mthreads"
33081 else
33082 CFLAGS="$CFLAGS_OLD"
33083 fi
33084 ;;
33085 *-pc-os2*emx )
33086 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33087 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33088 LDFLAGS="$LDFLAGS -Zmt"
33089 ;;
33090 esac
33091 fi
33092fi
33093
33094if test "$wxUSE_THREADS" = "yes"; then
33095 cat >>confdefs.h <<\_ACEOF
33096#define wxUSE_THREADS 1
33097_ACEOF
33098
33099
33100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33101else
33102 if test "$ac_cv_func_strtok_r" = "yes"; then
33103 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33104echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33105 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33106 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33107 echo "$as_me:$LINENO: result: yes" >&5
33108echo "${ECHO_T}yes" >&6
33109 else
33110 echo "$as_me:$LINENO: result: no" >&5
33111echo "${ECHO_T}no" >&6
33112 fi
33113 fi
33114fi
33115
33116if test "$WXGTK20" = 1 ; then
33117 cat >>confdefs.h <<_ACEOF
33118#define __WXGTK20__ $WXGTK20
33119_ACEOF
33120
33121 WXGTK12=1
33122fi
33123
33124if test "$WXGTK12" = 1 ; then
33125 cat >>confdefs.h <<_ACEOF
33126#define __WXGTK12__ $WXGTK12
33127_ACEOF
33128
33129fi
33130
33131if test "$WXGTK127" = 1 ; then
33132 cat >>confdefs.h <<_ACEOF
33133#define __WXGTK127__ $WXGTK127
33134_ACEOF
33135
33136fi
33137
33138if test "$WXGPE" = 1 ; then
33139 cat >>confdefs.h <<_ACEOF
33140#define __WXGPE__ $WXGPE
33141_ACEOF
33142
33143fi
33144
33145WXDEBUG=
33146
33147if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33148 WXDEBUG="-g"
33149 wxUSE_OPTIMISE=no
33150fi
33151
33152if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33153 wxUSE_DEBUG_INFO=yes
33154 WXDEBUG="-ggdb"
33155fi
33156
33157if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33158 cat >>confdefs.h <<\_ACEOF
33159#define WXDEBUG 1
33160_ACEOF
33161
33162 WXDEBUG_DEFINE="-D__WXDEBUG__"
33163else
33164 if test "$wxUSE_GTK" = 1 ; then
33165 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33166 fi
33167fi
33168
33169if test "$wxUSE_MEM_TRACING" = "yes" ; then
33170 cat >>confdefs.h <<\_ACEOF
33171#define wxUSE_MEMORY_TRACING 1
33172_ACEOF
33173
33174 cat >>confdefs.h <<\_ACEOF
33175#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33176_ACEOF
33177
33178 cat >>confdefs.h <<\_ACEOF
33179#define wxUSE_DEBUG_NEW_ALWAYS 1
33180_ACEOF
33181
33182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33183fi
33184
33185if test "$wxUSE_DMALLOC" = "yes" ; then
33186 DMALLOC_LIBS="-ldmalloc"
33187fi
33188
33189PROFILE=
33190if test "$wxUSE_PROFILE" = "yes" ; then
33191 PROFILE=" -pg"
33192fi
33193
33194CODE_GEN_FLAGS=
33195CODE_GEN_FLAGS_CXX=
33196if test "$GCC" = "yes" ; then
33197 if test "$wxUSE_NO_RTTI" = "yes" ; then
33198 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33199 fi
33200 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33201 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33202 fi
33203 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33204 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33205 fi
33206
33207 case "${host}" in
33208 powerpc*-*-aix* )
33209 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33210 ;;
33211 *-hppa* )
33212 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33213 ;;
33214 esac
33215fi
33216
33217OPTIMISE=
33218if test "$wxUSE_OPTIMISE" = "no" ; then
33219 if test "$GCC" = yes ; then
33220 OPTIMISE="-O0"
33221 fi
33222else
33223 if test "$GCC" = yes ; then
33224 OPTIMISE="-O2"
33225
33226 case "${host}" in
33227 i586-*-*|i686-*-* )
33228 OPTIMISE="${OPTIMISE} "
33229 ;;
33230 esac
33231 else
33232 OPTIMISE="-O"
33233 fi
33234fi
33235
33236
33237if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33238 cat >>confdefs.h <<\_ACEOF
33239#define WXWIN_COMPATIBILITY_2_2 1
33240_ACEOF
33241
33242
33243 WXWIN_COMPATIBILITY_2_4="yes"
33244fi
33245
33246if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33247 cat >>confdefs.h <<\_ACEOF
33248#define WXWIN_COMPATIBILITY_2_4 1
33249_ACEOF
33250
33251fi
33252
33253
33254if test "$wxUSE_GUI" = "yes"; then
33255 cat >>confdefs.h <<\_ACEOF
33256#define wxUSE_GUI 1
33257_ACEOF
33258
33259
33260 else
33261 cat >>confdefs.h <<\_ACEOF
33262#define wxUSE_NOGUI 1
33263_ACEOF
33264
33265fi
33266
33267
33268if test "$wxUSE_UNIX" = "yes"; then
33269 cat >>confdefs.h <<\_ACEOF
33270#define wxUSE_UNIX 1
33271_ACEOF
33272
33273fi
33274
33275
33276if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33277
33278 HAVE_DL_FUNCS=0
33279 HAVE_SHL_FUNCS=0
33280 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33281 if test "$USE_DARWIN" = 1; then
33282 HAVE_DL_FUNCS=1
33283 else
33284
33285for ac_func in dlopen
33286do
33287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33288echo "$as_me:$LINENO: checking for $ac_func" >&5
33289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33290if eval "test \"\${$as_ac_var+set}\" = set"; then
33291 echo $ECHO_N "(cached) $ECHO_C" >&6
33292else
33293 cat >conftest.$ac_ext <<_ACEOF
33294/* confdefs.h. */
33295_ACEOF
33296cat confdefs.h >>conftest.$ac_ext
33297cat >>conftest.$ac_ext <<_ACEOF
33298/* end confdefs.h. */
ac1cb8d3
VS
33299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33301#define $ac_func innocuous_$ac_func
33302
a848cd7e
SC
33303/* System header to define __stub macros and hopefully few prototypes,
33304 which can conflict with char $ac_func (); below.
33305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33306 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33307
a848cd7e
SC
33308#ifdef __STDC__
33309# include <limits.h>
33310#else
33311# include <assert.h>
33312#endif
ac1cb8d3
VS
33313
33314#undef $ac_func
33315
a848cd7e
SC
33316/* Override any gcc2 internal prototype to avoid an error. */
33317#ifdef __cplusplus
33318extern "C"
33319{
33320#endif
33321/* We use char because int might match the return type of a gcc2
33322 builtin and then its argument prototype would still apply. */
33323char $ac_func ();
33324/* The GNU C library defines this for functions which it implements
33325 to always fail with ENOSYS. Some functions are actually named
33326 something starting with __ and the normal name is an alias. */
33327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33328choke me
33329#else
33330char (*f) () = $ac_func;
33331#endif
33332#ifdef __cplusplus
33333}
33334#endif
33335
33336int
33337main ()
33338{
33339return f != $ac_func;
33340 ;
33341 return 0;
33342}
33343_ACEOF
33344rm -f conftest.$ac_objext conftest$ac_exeext
33345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33346 (eval $ac_link) 2>conftest.er1
a848cd7e 33347 ac_status=$?
ac1cb8d3
VS
33348 grep -v '^ *+' conftest.er1 >conftest.err
33349 rm -f conftest.er1
33350 cat conftest.err >&5
a848cd7e
SC
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); } &&
ac1cb8d3
VS
33353 { ac_try='test -z "$ac_c_werror_flag"
33354 || test ! -s conftest.err'
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33357 ac_status=$?
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; } &&
33360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33362 (eval $ac_try) 2>&5
33363 ac_status=$?
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; }; then
33366 eval "$as_ac_var=yes"
33367else
33368 echo "$as_me: failed program was:" >&5
33369sed 's/^/| /' conftest.$ac_ext >&5
33370
33371eval "$as_ac_var=no"
33372fi
ac1cb8d3
VS
33373rm -f conftest.err conftest.$ac_objext \
33374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33375fi
33376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33378if test `eval echo '${'$as_ac_var'}'` = yes; then
33379 cat >>confdefs.h <<_ACEOF
33380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33381_ACEOF
33382
33383 cat >>confdefs.h <<\_ACEOF
33384#define HAVE_DLOPEN 1
33385_ACEOF
33386
33387 HAVE_DL_FUNCS=1
33388
33389else
33390
33391 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33392echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33393if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33394 echo $ECHO_N "(cached) $ECHO_C" >&6
33395else
33396 ac_check_lib_save_LIBS=$LIBS
33397LIBS="-ldl $LIBS"
33398cat >conftest.$ac_ext <<_ACEOF
33399/* confdefs.h. */
33400_ACEOF
33401cat confdefs.h >>conftest.$ac_ext
33402cat >>conftest.$ac_ext <<_ACEOF
33403/* end confdefs.h. */
33404
33405/* Override any gcc2 internal prototype to avoid an error. */
33406#ifdef __cplusplus
33407extern "C"
33408#endif
33409/* We use char because int might match the return type of a gcc2
33410 builtin and then its argument prototype would still apply. */
33411char dlopen ();
33412int
33413main ()
33414{
33415dlopen ();
33416 ;
33417 return 0;
33418}
33419_ACEOF
33420rm -f conftest.$ac_objext conftest$ac_exeext
33421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33422 (eval $ac_link) 2>conftest.er1
a848cd7e 33423 ac_status=$?
ac1cb8d3
VS
33424 grep -v '^ *+' conftest.er1 >conftest.err
33425 rm -f conftest.er1
33426 cat conftest.err >&5
a848cd7e
SC
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); } &&
ac1cb8d3
VS
33429 { ac_try='test -z "$ac_c_werror_flag"
33430 || test ! -s conftest.err'
33431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432 (eval $ac_try) 2>&5
33433 ac_status=$?
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); }; } &&
33436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33438 (eval $ac_try) 2>&5
33439 ac_status=$?
33440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441 (exit $ac_status); }; }; then
33442 ac_cv_lib_dl_dlopen=yes
33443else
33444 echo "$as_me: failed program was:" >&5
33445sed 's/^/| /' conftest.$ac_ext >&5
33446
33447ac_cv_lib_dl_dlopen=no
33448fi
ac1cb8d3
VS
33449rm -f conftest.err conftest.$ac_objext \
33450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33451LIBS=$ac_check_lib_save_LIBS
33452fi
33453echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33454echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33455if test $ac_cv_lib_dl_dlopen = yes; then
33456
33457 cat >>confdefs.h <<\_ACEOF
33458#define HAVE_DLOPEN 1
33459_ACEOF
33460
33461 HAVE_DL_FUNCS=1
33462 DL_LINK=" -ldl$DL_LINK"
33463
33464else
33465
33466
33467for ac_func in shl_load
33468do
33469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33470echo "$as_me:$LINENO: checking for $ac_func" >&5
33471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33472if eval "test \"\${$as_ac_var+set}\" = set"; then
33473 echo $ECHO_N "(cached) $ECHO_C" >&6
33474else
33475 cat >conftest.$ac_ext <<_ACEOF
33476/* confdefs.h. */
33477_ACEOF
33478cat confdefs.h >>conftest.$ac_ext
33479cat >>conftest.$ac_ext <<_ACEOF
33480/* end confdefs.h. */
ac1cb8d3
VS
33481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33483#define $ac_func innocuous_$ac_func
33484
a848cd7e
SC
33485/* System header to define __stub macros and hopefully few prototypes,
33486 which can conflict with char $ac_func (); below.
33487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33488 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33489
a848cd7e
SC
33490#ifdef __STDC__
33491# include <limits.h>
33492#else
33493# include <assert.h>
33494#endif
ac1cb8d3
VS
33495
33496#undef $ac_func
33497
a848cd7e
SC
33498/* Override any gcc2 internal prototype to avoid an error. */
33499#ifdef __cplusplus
33500extern "C"
33501{
33502#endif
33503/* We use char because int might match the return type of a gcc2
33504 builtin and then its argument prototype would still apply. */
33505char $ac_func ();
33506/* The GNU C library defines this for functions which it implements
33507 to always fail with ENOSYS. Some functions are actually named
33508 something starting with __ and the normal name is an alias. */
33509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33510choke me
33511#else
33512char (*f) () = $ac_func;
33513#endif
33514#ifdef __cplusplus
33515}
33516#endif
33517
33518int
33519main ()
33520{
33521return f != $ac_func;
33522 ;
33523 return 0;
33524}
33525_ACEOF
33526rm -f conftest.$ac_objext conftest$ac_exeext
33527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33528 (eval $ac_link) 2>conftest.er1
a848cd7e 33529 ac_status=$?
ac1cb8d3
VS
33530 grep -v '^ *+' conftest.er1 >conftest.err
33531 rm -f conftest.er1
33532 cat conftest.err >&5
a848cd7e
SC
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); } &&
ac1cb8d3
VS
33535 { ac_try='test -z "$ac_c_werror_flag"
33536 || test ! -s conftest.err'
33537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33538 (eval $ac_try) 2>&5
33539 ac_status=$?
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); }; } &&
33542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33544 (eval $ac_try) 2>&5
33545 ac_status=$?
33546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547 (exit $ac_status); }; }; then
33548 eval "$as_ac_var=yes"
33549else
33550 echo "$as_me: failed program was:" >&5
33551sed 's/^/| /' conftest.$ac_ext >&5
33552
33553eval "$as_ac_var=no"
33554fi
ac1cb8d3
VS
33555rm -f conftest.err conftest.$ac_objext \
33556 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33557fi
33558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33559echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33560if test `eval echo '${'$as_ac_var'}'` = yes; then
33561 cat >>confdefs.h <<_ACEOF
33562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33563_ACEOF
33564
33565 cat >>confdefs.h <<\_ACEOF
33566#define HAVE_SHL_LOAD 1
33567_ACEOF
33568
33569 HAVE_SHL_FUNCS=1
33570
33571else
33572
33573 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33574echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33575if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33576 echo $ECHO_N "(cached) $ECHO_C" >&6
33577else
33578 ac_check_lib_save_LIBS=$LIBS
33579LIBS="-lshl_load $LIBS"
33580cat >conftest.$ac_ext <<_ACEOF
33581/* confdefs.h. */
33582_ACEOF
33583cat confdefs.h >>conftest.$ac_ext
33584cat >>conftest.$ac_ext <<_ACEOF
33585/* end confdefs.h. */
33586
33587/* Override any gcc2 internal prototype to avoid an error. */
33588#ifdef __cplusplus
33589extern "C"
33590#endif
33591/* We use char because int might match the return type of a gcc2
33592 builtin and then its argument prototype would still apply. */
33593char dld ();
33594int
33595main ()
33596{
33597dld ();
33598 ;
33599 return 0;
33600}
33601_ACEOF
33602rm -f conftest.$ac_objext conftest$ac_exeext
33603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33604 (eval $ac_link) 2>conftest.er1
a848cd7e 33605 ac_status=$?
ac1cb8d3
VS
33606 grep -v '^ *+' conftest.er1 >conftest.err
33607 rm -f conftest.er1
33608 cat conftest.err >&5
a848cd7e
SC
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 (exit $ac_status); } &&
ac1cb8d3
VS
33611 { ac_try='test -z "$ac_c_werror_flag"
33612 || test ! -s conftest.err'
33613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33614 (eval $ac_try) 2>&5
33615 ac_status=$?
33616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 (exit $ac_status); }; } &&
33618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33620 (eval $ac_try) 2>&5
33621 ac_status=$?
33622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); }; }; then
33624 ac_cv_lib_shl_load_dld=yes
33625else
33626 echo "$as_me: failed program was:" >&5
33627sed 's/^/| /' conftest.$ac_ext >&5
33628
33629ac_cv_lib_shl_load_dld=no
33630fi
ac1cb8d3
VS
33631rm -f conftest.err conftest.$ac_objext \
33632 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33633LIBS=$ac_check_lib_save_LIBS
33634fi
33635echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33636echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33637if test $ac_cv_lib_shl_load_dld = yes; then
33638
33639 HAVE_SHL_FUNCS=1
33640 DL_LINK=" -ldld$DL_LINK"
33641
33642fi
33643
33644
33645fi
33646done
33647
33648
33649fi
33650
33651
33652fi
33653done
33654
33655
33656 if test "$HAVE_DL_FUNCS" = 1; then
33657
33658for ac_func in dlerror
33659do
33660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33661echo "$as_me:$LINENO: checking for $ac_func" >&5
33662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33663if eval "test \"\${$as_ac_var+set}\" = set"; then
33664 echo $ECHO_N "(cached) $ECHO_C" >&6
33665else
33666 cat >conftest.$ac_ext <<_ACEOF
33667/* confdefs.h. */
33668_ACEOF
33669cat confdefs.h >>conftest.$ac_ext
33670cat >>conftest.$ac_ext <<_ACEOF
33671/* end confdefs.h. */
ac1cb8d3
VS
33672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33674#define $ac_func innocuous_$ac_func
33675
a848cd7e
SC
33676/* System header to define __stub macros and hopefully few prototypes,
33677 which can conflict with char $ac_func (); below.
33678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33679 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33680
a848cd7e
SC
33681#ifdef __STDC__
33682# include <limits.h>
33683#else
33684# include <assert.h>
33685#endif
ac1cb8d3
VS
33686
33687#undef $ac_func
33688
a848cd7e
SC
33689/* Override any gcc2 internal prototype to avoid an error. */
33690#ifdef __cplusplus
33691extern "C"
33692{
33693#endif
33694/* We use char because int might match the return type of a gcc2
33695 builtin and then its argument prototype would still apply. */
33696char $ac_func ();
33697/* The GNU C library defines this for functions which it implements
33698 to always fail with ENOSYS. Some functions are actually named
33699 something starting with __ and the normal name is an alias. */
33700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33701choke me
33702#else
33703char (*f) () = $ac_func;
33704#endif
33705#ifdef __cplusplus
33706}
33707#endif
33708
33709int
33710main ()
33711{
33712return f != $ac_func;
33713 ;
33714 return 0;
33715}
33716_ACEOF
33717rm -f conftest.$ac_objext conftest$ac_exeext
33718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33719 (eval $ac_link) 2>conftest.er1
a848cd7e 33720 ac_status=$?
ac1cb8d3
VS
33721 grep -v '^ *+' conftest.er1 >conftest.err
33722 rm -f conftest.er1
33723 cat conftest.err >&5
a848cd7e
SC
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); } &&
ac1cb8d3
VS
33726 { ac_try='test -z "$ac_c_werror_flag"
33727 || test ! -s conftest.err'
33728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33729 (eval $ac_try) 2>&5
33730 ac_status=$?
33731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732 (exit $ac_status); }; } &&
33733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33735 (eval $ac_try) 2>&5
33736 ac_status=$?
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); }; }; then
33739 eval "$as_ac_var=yes"
33740else
33741 echo "$as_me: failed program was:" >&5
33742sed 's/^/| /' conftest.$ac_ext >&5
33743
33744eval "$as_ac_var=no"
33745fi
ac1cb8d3
VS
33746rm -f conftest.err conftest.$ac_objext \
33747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33748fi
33749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33751if test `eval echo '${'$as_ac_var'}'` = yes; then
33752 cat >>confdefs.h <<_ACEOF
33753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33754_ACEOF
33755 cat >>confdefs.h <<\_ACEOF
33756#define HAVE_DLERROR 1
33757_ACEOF
33758
33759else
33760
33761 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33762echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33763if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33764 echo $ECHO_N "(cached) $ECHO_C" >&6
33765else
33766 ac_check_lib_save_LIBS=$LIBS
33767LIBS="-ldl $LIBS"
33768cat >conftest.$ac_ext <<_ACEOF
33769/* confdefs.h. */
33770_ACEOF
33771cat confdefs.h >>conftest.$ac_ext
33772cat >>conftest.$ac_ext <<_ACEOF
33773/* end confdefs.h. */
33774
33775/* Override any gcc2 internal prototype to avoid an error. */
33776#ifdef __cplusplus
33777extern "C"
33778#endif
33779/* We use char because int might match the return type of a gcc2
33780 builtin and then its argument prototype would still apply. */
33781char dlerror ();
33782int
33783main ()
33784{
33785dlerror ();
33786 ;
33787 return 0;
33788}
33789_ACEOF
33790rm -f conftest.$ac_objext conftest$ac_exeext
33791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33792 (eval $ac_link) 2>conftest.er1
a848cd7e 33793 ac_status=$?
ac1cb8d3
VS
33794 grep -v '^ *+' conftest.er1 >conftest.err
33795 rm -f conftest.er1
33796 cat conftest.err >&5
a848cd7e
SC
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); } &&
ac1cb8d3
VS
33799 { ac_try='test -z "$ac_c_werror_flag"
33800 || test ! -s conftest.err'
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33803 ac_status=$?
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; } &&
33806 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 ac_cv_lib_dl_dlerror=yes
33813else
33814 echo "$as_me: failed program was:" >&5
33815sed 's/^/| /' conftest.$ac_ext >&5
33816
33817ac_cv_lib_dl_dlerror=no
33818fi
ac1cb8d3
VS
33819rm -f conftest.err conftest.$ac_objext \
33820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33821LIBS=$ac_check_lib_save_LIBS
33822fi
33823echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33824echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33825if test $ac_cv_lib_dl_dlerror = yes; then
33826 cat >>confdefs.h <<\_ACEOF
33827#define HAVE_DLERROR 1
33828_ACEOF
33829
33830fi
33831
33832
33833
33834fi
33835done
33836
33837 fi
33838 fi
33839
33840 if test "$HAVE_DL_FUNCS" = 0; then
33841 if test "$HAVE_SHL_FUNCS" = 0; then
33842 if test "$USE_UNIX" = 1; then
33843 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33844echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33845 wxUSE_DYNAMIC_LOADER=no
33846 wxUSE_DYNLIB_CLASS=no
33847 else
33848 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33849echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33850 fi
33851 fi
33852 fi
33853 fi
33854fi
33855
33856if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33857 cat >>confdefs.h <<\_ACEOF
33858#define wxUSE_DYNAMIC_LOADER 1
33859_ACEOF
33860
33861fi
33862if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33863 cat >>confdefs.h <<\_ACEOF
33864#define wxUSE_DYNLIB_CLASS 1
33865_ACEOF
33866
33867fi
33868
33869
33870
33871if test "$wxUSE_PLUGINS" = "yes" ; then
33872 if test "$wxUSE_SHARED" = "no" ; then
33873 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33874echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33875 wxUSE_PLUGINS=no
33876 fi
33877 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33878 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33879echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33880 wxUSE_PLUGINS=no
33881 fi
33882 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33883 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33884echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33885 wxUSE_PLUGINS=no
33886 fi
33887 if test "$wxUSE_PLUGINS" = "yes" ; then
33888 cat >>confdefs.h <<\_ACEOF
33889#define wxUSE_PLUGINS 1
33890_ACEOF
33891
33892 fi
33893fi
33894
33895
33896if test "$wxUSE_STL" = "yes"; then
33897 cat >>confdefs.h <<\_ACEOF
33898#define wxUSE_STL 1
33899_ACEOF
33900
33901fi
33902
33903if test "$wxUSE_APPLE_IEEE" = "yes"; then
33904 cat >>confdefs.h <<\_ACEOF
33905#define wxUSE_APPLE_IEEE 1
33906_ACEOF
33907
33908fi
33909
33910if test "$wxUSE_TIMER" = "yes"; then
33911 cat >>confdefs.h <<\_ACEOF
33912#define wxUSE_TIMER 1
33913_ACEOF
33914
33915fi
33916
33917WITH_PLUGIN_SDL=0
33918if test "$wxUSE_SOUND" = "yes"; then
33919 if test "$USE_UNIX" = "1" ; then
33920
33921for ac_header in sys/soundcard.h
33922do
33923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33924if eval "test \"\${$as_ac_Header+set}\" = set"; then
33925 echo "$as_me:$LINENO: checking for $ac_header" >&5
33926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33927if eval "test \"\${$as_ac_Header+set}\" = set"; then
33928 echo $ECHO_N "(cached) $ECHO_C" >&6
33929fi
33930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33932else
33933 # Is the header compilable?
33934echo "$as_me:$LINENO: checking $ac_header usability" >&5
33935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33936cat >conftest.$ac_ext <<_ACEOF
33937/* confdefs.h. */
33938_ACEOF
33939cat confdefs.h >>conftest.$ac_ext
33940cat >>conftest.$ac_ext <<_ACEOF
33941/* end confdefs.h. */
33942$ac_includes_default
33943#include <$ac_header>
33944_ACEOF
33945rm -f conftest.$ac_objext
33946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33947 (eval $ac_compile) 2>conftest.er1
a848cd7e 33948 ac_status=$?
ac1cb8d3
VS
33949 grep -v '^ *+' conftest.er1 >conftest.err
33950 rm -f conftest.er1
33951 cat conftest.err >&5
a848cd7e
SC
33952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953 (exit $ac_status); } &&
ac1cb8d3
VS
33954 { ac_try='test -z "$ac_c_werror_flag"
33955 || test ! -s conftest.err'
33956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33957 (eval $ac_try) 2>&5
33958 ac_status=$?
33959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960 (exit $ac_status); }; } &&
33961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33963 (eval $ac_try) 2>&5
33964 ac_status=$?
33965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966 (exit $ac_status); }; }; then
33967 ac_header_compiler=yes
33968else
33969 echo "$as_me: failed program was:" >&5
33970sed 's/^/| /' conftest.$ac_ext >&5
33971
33972ac_header_compiler=no
33973fi
ac1cb8d3 33974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33975echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33976echo "${ECHO_T}$ac_header_compiler" >&6
33977
33978# Is the header present?
33979echo "$as_me:$LINENO: checking $ac_header presence" >&5
33980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33981cat >conftest.$ac_ext <<_ACEOF
33982/* confdefs.h. */
33983_ACEOF
33984cat confdefs.h >>conftest.$ac_ext
33985cat >>conftest.$ac_ext <<_ACEOF
33986/* end confdefs.h. */
33987#include <$ac_header>
33988_ACEOF
33989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33991 ac_status=$?
33992 grep -v '^ *+' conftest.er1 >conftest.err
33993 rm -f conftest.er1
33994 cat conftest.err >&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); } >/dev/null; then
33997 if test -s conftest.err; then
33998 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34000 else
34001 ac_cpp_err=
34002 fi
34003else
34004 ac_cpp_err=yes
34005fi
34006if test -z "$ac_cpp_err"; then
34007 ac_header_preproc=yes
34008else
34009 echo "$as_me: failed program was:" >&5
34010sed 's/^/| /' conftest.$ac_ext >&5
34011
34012 ac_header_preproc=no
34013fi
34014rm -f conftest.err conftest.$ac_ext
34015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34016echo "${ECHO_T}$ac_header_preproc" >&6
34017
34018# So? What about this header?
ac1cb8d3
VS
34019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34020 yes:no: )
a848cd7e
SC
34021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34025 ac_header_preproc=yes
a848cd7e 34026 ;;
ac1cb8d3 34027 no:yes:* )
a848cd7e
SC
34028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34035echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34040 (
34041 cat <<\_ASBOX
ac1cb8d3
VS
34042## ----------------------------------------- ##
34043## Report this to wx-dev@lists.wxwidgets.org ##
34044## ----------------------------------------- ##
a848cd7e
SC
34045_ASBOX
34046 ) |
34047 sed "s/^/$as_me: WARNING: /" >&2
34048 ;;
34049esac
34050echo "$as_me:$LINENO: checking for $ac_header" >&5
34051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34052if eval "test \"\${$as_ac_Header+set}\" = set"; then
34053 echo $ECHO_N "(cached) $ECHO_C" >&6
34054else
ac1cb8d3 34055 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34056fi
34057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34059
34060fi
34061if test `eval echo '${'$as_ac_Header'}'` = yes; then
34062 cat >>confdefs.h <<_ACEOF
34063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34064_ACEOF
34065
34066fi
34067
34068done
34069
34070
34071 if test "$wxUSE_LIBSDL" != "no"; then
34072
34073# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34074if test "${with_sdl_prefix+set}" = set; then
34075 withval="$with_sdl_prefix"
34076 sdl_prefix="$withval"
34077else
34078 sdl_prefix=""
34079fi;
34080
34081# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34082if test "${with_sdl_exec_prefix+set}" = set; then
34083 withval="$with_sdl_exec_prefix"
34084 sdl_exec_prefix="$withval"
34085else
34086 sdl_exec_prefix=""
34087fi;
34088# Check whether --enable-sdltest or --disable-sdltest was given.
34089if test "${enable_sdltest+set}" = set; then
34090 enableval="$enable_sdltest"
34091
34092else
34093 enable_sdltest=yes
34094fi;
34095
34096 if test x$sdl_exec_prefix != x ; then
34097 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34098 if test x${SDL_CONFIG+set} != xset ; then
34099 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34100 fi
34101 fi
34102 if test x$sdl_prefix != x ; then
34103 sdl_args="$sdl_args --prefix=$sdl_prefix"
34104 if test x${SDL_CONFIG+set} != xset ; then
34105 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34106 fi
34107 fi
34108
34109
34110 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34111 # Extract the first word of "sdl-config", so it can be a program name with args.
34112set dummy sdl-config; ac_word=$2
34113echo "$as_me:$LINENO: checking for $ac_word" >&5
34114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34115if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34116 echo $ECHO_N "(cached) $ECHO_C" >&6
34117else
34118 case $SDL_CONFIG in
34119 [\\/]* | ?:[\\/]*)
34120 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34121 ;;
34122 *)
34123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34124for as_dir in $PATH
34125do
34126 IFS=$as_save_IFS
34127 test -z "$as_dir" && as_dir=.
34128 for ac_exec_ext in '' $ac_executable_extensions; do
34129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34130 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34132 break 2
34133 fi
34134done
34135done
34136
34137 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34138 ;;
34139esac
34140fi
34141SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34142
34143if test -n "$SDL_CONFIG"; then
34144 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34145echo "${ECHO_T}$SDL_CONFIG" >&6
34146else
34147 echo "$as_me:$LINENO: result: no" >&5
34148echo "${ECHO_T}no" >&6
34149fi
34150
34151 min_sdl_version=1.2.0
34152 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34153echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34154 no_sdl=""
34155 if test "$SDL_CONFIG" = "no" ; then
34156 no_sdl=yes
34157 else
34158 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34159 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34160
34161 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34163 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34165 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34166 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34167 if test "x$enable_sdltest" = "xyes" ; then
34168 ac_save_CFLAGS="$CFLAGS"
34169 ac_save_LIBS="$LIBS"
34170 CFLAGS="$CFLAGS $SDL_CFLAGS"
34171 LIBS="$LIBS $SDL_LIBS"
34172 rm -f conf.sdltest
34173 if test "$cross_compiling" = yes; then
34174 echo $ac_n "cross compiling; assumed OK... $ac_c"
34175else
34176 cat >conftest.$ac_ext <<_ACEOF
34177/* confdefs.h. */
34178_ACEOF
34179cat confdefs.h >>conftest.$ac_ext
34180cat >>conftest.$ac_ext <<_ACEOF
34181/* end confdefs.h. */
34182
34183#include <stdio.h>
34184#include <stdlib.h>
34185#include <string.h>
34186#include "SDL.h"
34187
34188char*
34189my_strdup (char *str)
34190{
34191 char *new_str;
34192
34193 if (str)
34194 {
34195 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34196 strcpy (new_str, str);
34197 }
34198 else
34199 new_str = NULL;
34200
34201 return new_str;
34202}
34203
34204int main (int argc, char *argv[])
34205{
34206 int major, minor, micro;
34207 char *tmp_version;
34208
34209 /* This hangs on some systems (?)
34210 system ("touch conf.sdltest");
34211 */
34212 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34213
34214 /* HP/UX 9 (%@#!) writes to sscanf strings */
34215 tmp_version = my_strdup("$min_sdl_version");
34216 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34217 printf("%s, bad version string\n", "$min_sdl_version");
34218 exit(1);
34219 }
34220
34221 if (($sdl_major_version > major) ||
34222 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34223 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34224 {
34225 return 0;
34226 }
34227 else
34228 {
34229 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34230 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34231 printf("*** best to upgrade to the required version.\n");
34232 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34233 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34234 printf("*** config.cache before re-running configure\n");
34235 return 1;
34236 }
34237}
34238
34239
34240_ACEOF
34241rm -f conftest$ac_exeext
34242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34243 (eval $ac_link) 2>&5
34244 ac_status=$?
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34248 (eval $ac_try) 2>&5
34249 ac_status=$?
34250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251 (exit $ac_status); }; }; then
34252 :
34253else
34254 echo "$as_me: program exited with status $ac_status" >&5
34255echo "$as_me: failed program was:" >&5
34256sed 's/^/| /' conftest.$ac_ext >&5
34257
34258( exit $ac_status )
34259no_sdl=yes
34260fi
ac1cb8d3 34261rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34262fi
34263 CFLAGS="$ac_save_CFLAGS"
34264 LIBS="$ac_save_LIBS"
34265 fi
34266 fi
34267 if test "x$no_sdl" = x ; then
34268 echo "$as_me:$LINENO: result: yes" >&5
34269echo "${ECHO_T}yes" >&6
34270
34271 EXTRALIBS_SDL="$SDL_LIBS"
34272 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34273 cat >>confdefs.h <<\_ACEOF
34274#define wxUSE_LIBSDL 1
34275_ACEOF
34276
34277
34278 else
34279 echo "$as_me:$LINENO: result: no" >&5
34280echo "${ECHO_T}no" >&6
34281 if test "$SDL_CONFIG" = "no" ; then
34282 echo "*** The sdl-config script installed by SDL could not be found"
34283 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34284 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34285 echo "*** full path to sdl-config."
34286 else
34287 if test -f conf.sdltest ; then
34288 :
34289 else
34290 echo "*** Could not run SDL test program, checking why..."
34291 CFLAGS="$CFLAGS $SDL_CFLAGS"
34292 LIBS="$LIBS $SDL_LIBS"
34293 cat >conftest.$ac_ext <<_ACEOF
34294/* confdefs.h. */
34295_ACEOF
34296cat confdefs.h >>conftest.$ac_ext
34297cat >>conftest.$ac_ext <<_ACEOF
34298/* end confdefs.h. */
34299
34300#include <stdio.h>
34301#include "SDL.h"
34302
34303int main(int argc, char *argv[])
34304{ return 0; }
34305#undef main
34306#define main K_and_R_C_main
34307
34308int
34309main ()
34310{
34311 return 0;
34312 ;
34313 return 0;
34314}
34315_ACEOF
34316rm -f conftest.$ac_objext conftest$ac_exeext
34317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34318 (eval $ac_link) 2>conftest.er1
a848cd7e 34319 ac_status=$?
ac1cb8d3
VS
34320 grep -v '^ *+' conftest.er1 >conftest.err
34321 rm -f conftest.er1
34322 cat conftest.err >&5
a848cd7e
SC
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); } &&
ac1cb8d3
VS
34325 { ac_try='test -z "$ac_c_werror_flag"
34326 || test ! -s conftest.err'
34327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328 (eval $ac_try) 2>&5
34329 ac_status=$?
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; } &&
34332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334 (eval $ac_try) 2>&5
34335 ac_status=$?
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); }; }; then
34338 echo "*** The test program compiled, but did not run. This usually means"
34339 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34340 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34341 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34342 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34343 echo "*** is required on your system"
34344 echo "***"
34345 echo "*** If you have an old version installed, it is best to remove it, although"
34346 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34347else
34348 echo "$as_me: failed program was:" >&5
34349sed 's/^/| /' conftest.$ac_ext >&5
34350
34351 echo "*** The test program failed to compile or link. See the file config.log for the"
34352 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34353 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34354 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34355fi
ac1cb8d3
VS
34356rm -f conftest.err conftest.$ac_objext \
34357 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34358 CFLAGS="$ac_save_CFLAGS"
34359 LIBS="$ac_save_LIBS"
34360 fi
34361 fi
34362 SDL_CFLAGS=""
34363 SDL_LIBS=""
34364 wxUSE_LIBSDL="no"
34365 fi
34366
34367
34368 rm -f conf.sdltest
34369
34370 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34371 WITH_PLUGIN_SDL=1
34372 fi
34373 fi
34374 fi
34375
34376 cat >>confdefs.h <<\_ACEOF
34377#define wxUSE_SOUND 1
34378_ACEOF
34379
34380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34381fi
34382
34383if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34384 cat >>confdefs.h <<\_ACEOF
34385#define wxUSE_CMDLINE_PARSER 1
34386_ACEOF
34387
34388fi
34389
34390if test "$wxUSE_STOPWATCH" = "yes"; then
34391 cat >>confdefs.h <<\_ACEOF
34392#define wxUSE_STOPWATCH 1
34393_ACEOF
34394
34395fi
34396
34397if test "$wxUSE_DATETIME" = "yes"; then
34398 cat >>confdefs.h <<\_ACEOF
34399#define wxUSE_DATETIME 1
34400_ACEOF
34401
34402fi
34403
34404if test "$wxUSE_FILE" = "yes"; then
34405 cat >>confdefs.h <<\_ACEOF
34406#define wxUSE_FILE 1
34407_ACEOF
34408
34409fi
34410
34411if test "$wxUSE_FFILE" = "yes"; then
34412 cat >>confdefs.h <<\_ACEOF
34413#define wxUSE_FFILE 1
34414_ACEOF
34415
34416fi
34417
34418if test "$wxUSE_FILESYSTEM" = "yes"; then
34419 cat >>confdefs.h <<\_ACEOF
34420#define wxUSE_FILESYSTEM 1
34421_ACEOF
34422
34423fi
34424
34425if test "$wxUSE_FS_ZIP" = "yes"; then
34426 cat >>confdefs.h <<\_ACEOF
34427#define wxUSE_FS_ZIP 1
34428_ACEOF
34429
34430fi
34431
34432if test "$wxUSE_ZIPSTREAM" = "yes"; then
34433 cat >>confdefs.h <<\_ACEOF
34434#define wxUSE_ZIPSTREAM 1
34435_ACEOF
34436
34437fi
34438
a848cd7e
SC
34439if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34440 cat >>confdefs.h <<\_ACEOF
34441#define wxUSE_ON_FATAL_EXCEPTION 1
34442_ACEOF
34443
34444fi
34445
34446if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34447 cat >>confdefs.h <<\_ACEOF
34448#define wxUSE_SNGLINST_CHECKER 1
34449_ACEOF
34450
34451fi
34452
34453if test "$wxUSE_BUSYINFO" = "yes"; then
34454 cat >>confdefs.h <<\_ACEOF
34455#define wxUSE_BUSYINFO 1
34456_ACEOF
34457
34458fi
34459
34460if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34461 cat >>confdefs.h <<\_ACEOF
34462#define wxUSE_STD_IOSTREAM 1
34463_ACEOF
34464
34465fi
34466
34467if test "$wxUSE_TEXTBUFFER" = "yes"; then
34468 cat >>confdefs.h <<\_ACEOF
34469#define wxUSE_TEXTBUFFER 1
34470_ACEOF
34471
34472fi
34473
34474if test "$wxUSE_TEXTFILE" = "yes"; then
34475 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34476 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34477echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34478 else
34479 cat >>confdefs.h <<\_ACEOF
34480#define wxUSE_TEXTFILE 1
34481_ACEOF
34482
34483 fi
34484fi
34485
34486if test "$wxUSE_CONFIG" = "yes" ; then
34487 if test "$wxUSE_TEXTFILE" != "yes"; then
34488 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34489echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34490 else
34491 cat >>confdefs.h <<\_ACEOF
34492#define wxUSE_CONFIG 1
34493_ACEOF
34494
34495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34496 fi
34497fi
34498
34499if test "$wxUSE_INTL" = "yes" ; then
34500 if test "$wxUSE_FILE" != "yes"; then
34501 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34502echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34503 else
34504 cat >>confdefs.h <<\_ACEOF
34505#define wxUSE_INTL 1
34506_ACEOF
34507
34508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34509 GUIDIST="$GUIDIST INTL_DIST"
34510 fi
34511fi
34512
34513if test "$wxUSE_LOG" = "yes"; then
34514 cat >>confdefs.h <<\_ACEOF
34515#define wxUSE_LOG 1
34516_ACEOF
34517
34518
34519 if test "$wxUSE_LOGGUI" = "yes"; then
34520 cat >>confdefs.h <<\_ACEOF
34521#define wxUSE_LOGGUI 1
34522_ACEOF
34523
34524 fi
34525
34526 if test "$wxUSE_LOGWINDOW" = "yes"; then
34527 cat >>confdefs.h <<\_ACEOF
34528#define wxUSE_LOGWINDOW 1
34529_ACEOF
34530
34531 fi
34532
34533 if test "$wxUSE_LOGDIALOG" = "yes"; then
34534 cat >>confdefs.h <<\_ACEOF
34535#define wxUSE_LOG_DIALOG 1
34536_ACEOF
34537
34538 fi
34539fi
34540
34541if test "$wxUSE_LONGLONG" = "yes"; then
34542 cat >>confdefs.h <<\_ACEOF
34543#define wxUSE_LONGLONG 1
34544_ACEOF
34545
34546fi
34547
34548if test "$wxUSE_GEOMETRY" = "yes"; then
34549 cat >>confdefs.h <<\_ACEOF
34550#define wxUSE_GEOMETRY 1
34551_ACEOF
34552
34553fi
34554
34555if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34556 cat >>confdefs.h <<\_ACEOF
34557#define wxUSE_DIALUP_MANAGER 1
34558_ACEOF
34559
34560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34561fi
34562
34563if test "$wxUSE_STREAMS" = "yes" ; then
34564 cat >>confdefs.h <<\_ACEOF
34565#define wxUSE_STREAMS 1
34566_ACEOF
34567
34568fi
34569
34570
34571if test "$wxUSE_DATETIME" = "yes"; then
34572
34573for ac_func in strptime
34574do
34575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34576echo "$as_me:$LINENO: checking for $ac_func" >&5
34577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34578if eval "test \"\${$as_ac_var+set}\" = set"; then
34579 echo $ECHO_N "(cached) $ECHO_C" >&6
34580else
34581 cat >conftest.$ac_ext <<_ACEOF
34582/* confdefs.h. */
34583_ACEOF
34584cat confdefs.h >>conftest.$ac_ext
34585cat >>conftest.$ac_ext <<_ACEOF
34586/* end confdefs.h. */
ac1cb8d3
VS
34587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34589#define $ac_func innocuous_$ac_func
34590
a848cd7e
SC
34591/* System header to define __stub macros and hopefully few prototypes,
34592 which can conflict with char $ac_func (); below.
34593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34594 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34595
a848cd7e
SC
34596#ifdef __STDC__
34597# include <limits.h>
34598#else
34599# include <assert.h>
34600#endif
ac1cb8d3
VS
34601
34602#undef $ac_func
34603
a848cd7e
SC
34604/* Override any gcc2 internal prototype to avoid an error. */
34605#ifdef __cplusplus
34606extern "C"
34607{
34608#endif
34609/* We use char because int might match the return type of a gcc2
34610 builtin and then its argument prototype would still apply. */
34611char $ac_func ();
34612/* The GNU C library defines this for functions which it implements
34613 to always fail with ENOSYS. Some functions are actually named
34614 something starting with __ and the normal name is an alias. */
34615#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34616choke me
34617#else
34618char (*f) () = $ac_func;
34619#endif
34620#ifdef __cplusplus
34621}
34622#endif
34623
34624int
34625main ()
34626{
34627return f != $ac_func;
34628 ;
34629 return 0;
34630}
34631_ACEOF
34632rm -f conftest.$ac_objext conftest$ac_exeext
34633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34634 (eval $ac_link) 2>conftest.er1
a848cd7e 34635 ac_status=$?
ac1cb8d3
VS
34636 grep -v '^ *+' conftest.er1 >conftest.err
34637 rm -f conftest.er1
34638 cat conftest.err >&5
a848cd7e
SC
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); } &&
ac1cb8d3
VS
34641 { ac_try='test -z "$ac_c_werror_flag"
34642 || test ! -s conftest.err'
34643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34644 (eval $ac_try) 2>&5
34645 ac_status=$?
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); }; } &&
34648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34650 (eval $ac_try) 2>&5
34651 ac_status=$?
34652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653 (exit $ac_status); }; }; then
34654 eval "$as_ac_var=yes"
34655else
34656 echo "$as_me: failed program was:" >&5
34657sed 's/^/| /' conftest.$ac_ext >&5
34658
34659eval "$as_ac_var=no"
34660fi
ac1cb8d3
VS
34661rm -f conftest.err conftest.$ac_objext \
34662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34663fi
34664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34665echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34666if test `eval echo '${'$as_ac_var'}'` = yes; then
34667 cat >>confdefs.h <<_ACEOF
34668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34669_ACEOF
34670
34671fi
34672done
34673
34674
34675 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34676echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34677if test "${wx_cv_var_timezone+set}" = set; then
34678 echo $ECHO_N "(cached) $ECHO_C" >&6
34679else
34680
34681 cat >conftest.$ac_ext <<_ACEOF
34682/* confdefs.h. */
34683_ACEOF
34684cat confdefs.h >>conftest.$ac_ext
34685cat >>conftest.$ac_ext <<_ACEOF
34686/* end confdefs.h. */
34687
34688 #include <time.h>
34689
34690int
34691main ()
34692{
34693
34694 int tz;
34695 tz = timezone;
34696
34697 ;
34698 return 0;
34699}
34700_ACEOF
34701rm -f conftest.$ac_objext
34702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34703 (eval $ac_compile) 2>conftest.er1
a848cd7e 34704 ac_status=$?
ac1cb8d3
VS
34705 grep -v '^ *+' conftest.er1 >conftest.err
34706 rm -f conftest.er1
34707 cat conftest.err >&5
a848cd7e
SC
34708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34709 (exit $ac_status); } &&
ac1cb8d3
VS
34710 { ac_try='test -z "$ac_c_werror_flag"
34711 || test ! -s conftest.err'
34712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34713 (eval $ac_try) 2>&5
34714 ac_status=$?
34715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716 (exit $ac_status); }; } &&
34717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34719 (eval $ac_try) 2>&5
34720 ac_status=$?
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); }; }; then
34723
34724 wx_cv_var_timezone=timezone
34725
34726else
34727 echo "$as_me: failed program was:" >&5
34728sed 's/^/| /' conftest.$ac_ext >&5
34729
34730
34731 cat >conftest.$ac_ext <<_ACEOF
34732/* confdefs.h. */
34733_ACEOF
34734cat confdefs.h >>conftest.$ac_ext
34735cat >>conftest.$ac_ext <<_ACEOF
34736/* end confdefs.h. */
34737
34738 #include <time.h>
34739
34740int
34741main ()
34742{
34743
34744 int tz;
34745 tz = _timezone;
34746
34747 ;
34748 return 0;
34749}
34750_ACEOF
34751rm -f conftest.$ac_objext
34752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34753 (eval $ac_compile) 2>conftest.er1
a848cd7e 34754 ac_status=$?
ac1cb8d3
VS
34755 grep -v '^ *+' conftest.er1 >conftest.err
34756 rm -f conftest.er1
34757 cat conftest.err >&5
a848cd7e
SC
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); } &&
ac1cb8d3
VS
34760 { ac_try='test -z "$ac_c_werror_flag"
34761 || test ! -s conftest.err'
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_var_timezone=_timezone
34775
34776else
34777 echo "$as_me: failed program was:" >&5
34778sed 's/^/| /' conftest.$ac_ext >&5
34779
34780
34781 cat >conftest.$ac_ext <<_ACEOF
34782/* confdefs.h. */
34783_ACEOF
34784cat confdefs.h >>conftest.$ac_ext
34785cat >>conftest.$ac_ext <<_ACEOF
34786/* end confdefs.h. */
34787
34788 #include <time.h>
34789
34790int
34791main ()
34792{
34793
34794 int tz;
34795 tz = __timezone;
34796
34797 ;
34798 return 0;
34799}
34800_ACEOF
34801rm -f conftest.$ac_objext
34802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34803 (eval $ac_compile) 2>conftest.er1
a848cd7e 34804 ac_status=$?
ac1cb8d3
VS
34805 grep -v '^ *+' conftest.er1 >conftest.err
34806 rm -f conftest.er1
34807 cat conftest.err >&5
a848cd7e
SC
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); } &&
ac1cb8d3
VS
34810 { ac_try='test -z "$ac_c_werror_flag"
34811 || test ! -s conftest.err'
34812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34813 (eval $ac_try) 2>&5
34814 ac_status=$?
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); }; } &&
34817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34820 ac_status=$?
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; }; then
34823
34824 wx_cv_var_timezone=__timezone
34825
34826else
34827 echo "$as_me: failed program was:" >&5
34828sed 's/^/| /' conftest.$ac_ext >&5
34829
34830
34831 if test "$USE_DOS" = 0 ; then
34832 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34833echo "$as_me: WARNING: no timezone variable" >&2;}
34834 fi
34835
34836
34837fi
ac1cb8d3 34838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34839
34840
34841fi
ac1cb8d3 34842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34843
34844
34845fi
ac1cb8d3 34846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34847
34848
34849fi
34850echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34851echo "${ECHO_T}$wx_cv_var_timezone" >&6
34852
34853 if test "x$wx_cv_var_timezone" != x ; then
34854 cat >>confdefs.h <<_ACEOF
34855#define WX_TIMEZONE $wx_cv_var_timezone
34856_ACEOF
34857
34858 fi
34859
34860
34861for ac_func in localtime
34862do
34863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34864echo "$as_me:$LINENO: checking for $ac_func" >&5
34865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34866if eval "test \"\${$as_ac_var+set}\" = set"; then
34867 echo $ECHO_N "(cached) $ECHO_C" >&6
34868else
34869 cat >conftest.$ac_ext <<_ACEOF
34870/* confdefs.h. */
34871_ACEOF
34872cat confdefs.h >>conftest.$ac_ext
34873cat >>conftest.$ac_ext <<_ACEOF
34874/* end confdefs.h. */
ac1cb8d3
VS
34875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34877#define $ac_func innocuous_$ac_func
34878
a848cd7e
SC
34879/* System header to define __stub macros and hopefully few prototypes,
34880 which can conflict with char $ac_func (); below.
34881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34882 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34883
a848cd7e
SC
34884#ifdef __STDC__
34885# include <limits.h>
34886#else
34887# include <assert.h>
34888#endif
ac1cb8d3
VS
34889
34890#undef $ac_func
34891
a848cd7e
SC
34892/* Override any gcc2 internal prototype to avoid an error. */
34893#ifdef __cplusplus
34894extern "C"
34895{
34896#endif
34897/* We use char because int might match the return type of a gcc2
34898 builtin and then its argument prototype would still apply. */
34899char $ac_func ();
34900/* The GNU C library defines this for functions which it implements
34901 to always fail with ENOSYS. Some functions are actually named
34902 something starting with __ and the normal name is an alias. */
34903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34904choke me
34905#else
34906char (*f) () = $ac_func;
34907#endif
34908#ifdef __cplusplus
34909}
34910#endif
34911
34912int
34913main ()
34914{
34915return f != $ac_func;
34916 ;
34917 return 0;
34918}
34919_ACEOF
34920rm -f conftest.$ac_objext conftest$ac_exeext
34921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34922 (eval $ac_link) 2>conftest.er1
a848cd7e 34923 ac_status=$?
ac1cb8d3
VS
34924 grep -v '^ *+' conftest.er1 >conftest.err
34925 rm -f conftest.er1
34926 cat conftest.err >&5
a848cd7e
SC
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); } &&
ac1cb8d3
VS
34929 { ac_try='test -z "$ac_c_werror_flag"
34930 || test ! -s conftest.err'
34931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34932 (eval $ac_try) 2>&5
34933 ac_status=$?
34934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935 (exit $ac_status); }; } &&
34936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34938 (eval $ac_try) 2>&5
34939 ac_status=$?
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); }; }; then
34942 eval "$as_ac_var=yes"
34943else
34944 echo "$as_me: failed program was:" >&5
34945sed 's/^/| /' conftest.$ac_ext >&5
34946
34947eval "$as_ac_var=no"
34948fi
ac1cb8d3
VS
34949rm -f conftest.err conftest.$ac_objext \
34950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34951fi
34952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34953echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34954if test `eval echo '${'$as_ac_var'}'` = yes; then
34955 cat >>confdefs.h <<_ACEOF
34956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34957_ACEOF
34958
34959fi
34960done
34961
34962
34963 if test "$ac_cv_func_localtime" = "yes"; then
34964 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34965echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34966if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34967 echo $ECHO_N "(cached) $ECHO_C" >&6
34968else
34969
34970 cat >conftest.$ac_ext <<_ACEOF
34971/* confdefs.h. */
34972_ACEOF
34973cat confdefs.h >>conftest.$ac_ext
34974cat >>conftest.$ac_ext <<_ACEOF
34975/* end confdefs.h. */
34976
34977 #include <time.h>
34978
34979int
34980main ()
34981{
34982
34983 struct tm tm;
34984 tm.tm_gmtoff++;
34985
34986 ;
34987 return 0;
34988}
34989_ACEOF
34990rm -f conftest.$ac_objext
34991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34992 (eval $ac_compile) 2>conftest.er1
a848cd7e 34993 ac_status=$?
ac1cb8d3
VS
34994 grep -v '^ *+' conftest.er1 >conftest.err
34995 rm -f conftest.er1
34996 cat conftest.err >&5
a848cd7e
SC
34997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34998 (exit $ac_status); } &&
ac1cb8d3
VS
34999 { ac_try='test -z "$ac_c_werror_flag"
35000 || test ! -s conftest.err'
35001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35002 (eval $ac_try) 2>&5
35003 ac_status=$?
35004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35005 (exit $ac_status); }; } &&
35006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35008 (eval $ac_try) 2>&5
35009 ac_status=$?
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); }; }; then
35012
35013 wx_cv_struct_tm_has_gmtoff=yes
35014
35015else
35016 echo "$as_me: failed program was:" >&5
35017sed 's/^/| /' conftest.$ac_ext >&5
35018
35019wx_cv_struct_tm_has_gmtoff=no
35020
35021fi
ac1cb8d3 35022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35023
35024fi
35025echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35026echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35027 fi
35028
35029 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35030 cat >>confdefs.h <<\_ACEOF
35031#define WX_GMTOFF_IN_TM 1
35032_ACEOF
35033
35034 fi
35035
35036
35037
35038for ac_func in gettimeofday ftime
35039do
35040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35041echo "$as_me:$LINENO: checking for $ac_func" >&5
35042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35043if eval "test \"\${$as_ac_var+set}\" = set"; then
35044 echo $ECHO_N "(cached) $ECHO_C" >&6
35045else
35046 cat >conftest.$ac_ext <<_ACEOF
35047/* confdefs.h. */
35048_ACEOF
35049cat confdefs.h >>conftest.$ac_ext
35050cat >>conftest.$ac_ext <<_ACEOF
35051/* end confdefs.h. */
ac1cb8d3
VS
35052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35054#define $ac_func innocuous_$ac_func
35055
a848cd7e
SC
35056/* System header to define __stub macros and hopefully few prototypes,
35057 which can conflict with char $ac_func (); below.
35058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35059 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35060
a848cd7e
SC
35061#ifdef __STDC__
35062# include <limits.h>
35063#else
35064# include <assert.h>
35065#endif
ac1cb8d3
VS
35066
35067#undef $ac_func
35068
a848cd7e
SC
35069/* Override any gcc2 internal prototype to avoid an error. */
35070#ifdef __cplusplus
35071extern "C"
35072{
35073#endif
35074/* We use char because int might match the return type of a gcc2
35075 builtin and then its argument prototype would still apply. */
35076char $ac_func ();
35077/* The GNU C library defines this for functions which it implements
35078 to always fail with ENOSYS. Some functions are actually named
35079 something starting with __ and the normal name is an alias. */
35080#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35081choke me
35082#else
35083char (*f) () = $ac_func;
35084#endif
35085#ifdef __cplusplus
35086}
35087#endif
35088
35089int
35090main ()
35091{
35092return f != $ac_func;
35093 ;
35094 return 0;
35095}
35096_ACEOF
35097rm -f conftest.$ac_objext conftest$ac_exeext
35098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35099 (eval $ac_link) 2>conftest.er1
a848cd7e 35100 ac_status=$?
ac1cb8d3
VS
35101 grep -v '^ *+' conftest.er1 >conftest.err
35102 rm -f conftest.er1
35103 cat conftest.err >&5
a848cd7e
SC
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); } &&
ac1cb8d3
VS
35106 { ac_try='test -z "$ac_c_werror_flag"
35107 || test ! -s conftest.err'
35108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35109 (eval $ac_try) 2>&5
35110 ac_status=$?
35111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112 (exit $ac_status); }; } &&
35113 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35115 (eval $ac_try) 2>&5
35116 ac_status=$?
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); }; }; then
35119 eval "$as_ac_var=yes"
35120else
35121 echo "$as_me: failed program was:" >&5
35122sed 's/^/| /' conftest.$ac_ext >&5
35123
35124eval "$as_ac_var=no"
35125fi
ac1cb8d3
VS
35126rm -f conftest.err conftest.$ac_objext \
35127 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35128fi
35129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35130echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35131if test `eval echo '${'$as_ac_var'}'` = yes; then
35132 cat >>confdefs.h <<_ACEOF
35133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35134_ACEOF
35135 break
35136fi
35137done
35138
35139
35140 if test "$ac_cv_func_gettimeofday" = "yes"; then
35141 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35142echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35143if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35144 echo $ECHO_N "(cached) $ECHO_C" >&6
35145else
35146
35147
35148
35149 ac_ext=cc
35150ac_cpp='$CXXCPP $CPPFLAGS'
35151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35154
35155
35156 cat >conftest.$ac_ext <<_ACEOF
35157/* confdefs.h. */
35158_ACEOF
35159cat confdefs.h >>conftest.$ac_ext
35160cat >>conftest.$ac_ext <<_ACEOF
35161/* end confdefs.h. */
35162
35163 #include <sys/time.h>
35164 #include <unistd.h>
35165
35166int
35167main ()
35168{
35169
35170 struct timeval tv;
35171 gettimeofday(&tv, NULL);
35172
35173 ;
35174 return 0;
35175}
35176_ACEOF
35177rm -f conftest.$ac_objext
35178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35179 (eval $ac_compile) 2>conftest.er1
a848cd7e 35180 ac_status=$?
ac1cb8d3
VS
35181 grep -v '^ *+' conftest.er1 >conftest.err
35182 rm -f conftest.er1
35183 cat conftest.err >&5
a848cd7e
SC
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); } &&
ac1cb8d3
VS
35186 { ac_try='test -z "$ac_cxx_werror_flag"
35187 || test ! -s conftest.err'
35188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35189 (eval $ac_try) 2>&5
35190 ac_status=$?
35191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192 (exit $ac_status); }; } &&
35193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35195 (eval $ac_try) 2>&5
35196 ac_status=$?
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); }; }; then
35199 wx_cv_func_gettimeofday_has_2_args=yes
35200else
35201 echo "$as_me: failed program was:" >&5
35202sed 's/^/| /' conftest.$ac_ext >&5
35203
35204cat >conftest.$ac_ext <<_ACEOF
35205/* confdefs.h. */
35206_ACEOF
35207cat confdefs.h >>conftest.$ac_ext
35208cat >>conftest.$ac_ext <<_ACEOF
35209/* end confdefs.h. */
35210
35211 #include <sys/time.h>
35212 #include <unistd.h>
35213
35214int
35215main ()
35216{
35217
35218 struct timeval tv;
35219 gettimeofday(&tv);
35220
35221 ;
35222 return 0;
35223}
35224_ACEOF
35225rm -f conftest.$ac_objext
35226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35227 (eval $ac_compile) 2>conftest.er1
a848cd7e 35228 ac_status=$?
ac1cb8d3
VS
35229 grep -v '^ *+' conftest.er1 >conftest.err
35230 rm -f conftest.er1
35231 cat conftest.err >&5
a848cd7e
SC
35232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35233 (exit $ac_status); } &&
ac1cb8d3
VS
35234 { ac_try='test -z "$ac_cxx_werror_flag"
35235 || test ! -s conftest.err'
35236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35237 (eval $ac_try) 2>&5
35238 ac_status=$?
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); }; } &&
35241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35243 (eval $ac_try) 2>&5
35244 ac_status=$?
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); }; }; then
35247 wx_cv_func_gettimeofday_has_2_args=no
35248else
35249 echo "$as_me: failed program was:" >&5
35250sed 's/^/| /' conftest.$ac_ext >&5
35251
35252
35253 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35254echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35255 wx_cv_func_gettimeofday_has_2_args=unknown
35256
35257
35258fi
ac1cb8d3 35259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35260
35261fi
ac1cb8d3 35262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35263 ac_ext=c
35264ac_cpp='$CPP $CPPFLAGS'
35265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35267ac_compiler_gnu=$ac_cv_c_compiler_gnu
35268
35269
35270fi
35271echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35272echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35273
35274 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35275 cat >>confdefs.h <<\_ACEOF
35276#define WX_GETTIMEOFDAY_NO_TZ 1
35277_ACEOF
35278
35279 fi
35280 fi
35281
35282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35283fi
35284
35285
35286if test "$wxUSE_SOCKETS" = "yes"; then
35287 if test "$wxUSE_MGL" = "1"; then
35288 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35289echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35290 wxUSE_SOCKETS="no"
35291 fi
35292fi
35293
35294if test "$wxUSE_SOCKETS" = "yes"; then
35295 if test "$TOOLKIT" != "MSW"; then
35296 echo "$as_me:$LINENO: checking for socket" >&5
35297echo $ECHO_N "checking for socket... $ECHO_C" >&6
35298if test "${ac_cv_func_socket+set}" = set; then
35299 echo $ECHO_N "(cached) $ECHO_C" >&6
35300else
35301 cat >conftest.$ac_ext <<_ACEOF
35302/* confdefs.h. */
35303_ACEOF
35304cat confdefs.h >>conftest.$ac_ext
35305cat >>conftest.$ac_ext <<_ACEOF
35306/* end confdefs.h. */
ac1cb8d3
VS
35307/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35309#define socket innocuous_socket
35310
a848cd7e
SC
35311/* System header to define __stub macros and hopefully few prototypes,
35312 which can conflict with char socket (); below.
35313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35314 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35315
a848cd7e
SC
35316#ifdef __STDC__
35317# include <limits.h>
35318#else
35319# include <assert.h>
35320#endif
ac1cb8d3
VS
35321
35322#undef socket
35323
a848cd7e
SC
35324/* Override any gcc2 internal prototype to avoid an error. */
35325#ifdef __cplusplus
35326extern "C"
35327{
35328#endif
35329/* We use char because int might match the return type of a gcc2
35330 builtin and then its argument prototype would still apply. */
35331char socket ();
35332/* The GNU C library defines this for functions which it implements
35333 to always fail with ENOSYS. Some functions are actually named
35334 something starting with __ and the normal name is an alias. */
35335#if defined (__stub_socket) || defined (__stub___socket)
35336choke me
35337#else
35338char (*f) () = socket;
35339#endif
35340#ifdef __cplusplus
35341}
35342#endif
35343
35344int
35345main ()
35346{
35347return f != socket;
35348 ;
35349 return 0;
35350}
35351_ACEOF
35352rm -f conftest.$ac_objext conftest$ac_exeext
35353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35354 (eval $ac_link) 2>conftest.er1
a848cd7e 35355 ac_status=$?
ac1cb8d3
VS
35356 grep -v '^ *+' conftest.er1 >conftest.err
35357 rm -f conftest.er1
35358 cat conftest.err >&5
a848cd7e
SC
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); } &&
ac1cb8d3
VS
35361 { ac_try='test -z "$ac_c_werror_flag"
35362 || test ! -s conftest.err'
35363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35364 (eval $ac_try) 2>&5
35365 ac_status=$?
35366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35367 (exit $ac_status); }; } &&
35368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35374 ac_cv_func_socket=yes
35375else
35376 echo "$as_me: failed program was:" >&5
35377sed 's/^/| /' conftest.$ac_ext >&5
35378
35379ac_cv_func_socket=no
35380fi
ac1cb8d3
VS
35381rm -f conftest.err conftest.$ac_objext \
35382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35383fi
35384echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35385echo "${ECHO_T}$ac_cv_func_socket" >&6
35386if test $ac_cv_func_socket = yes; then
35387 :
35388else
35389
35390 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35391echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35392if test "${ac_cv_lib_socket_socket+set}" = set; then
35393 echo $ECHO_N "(cached) $ECHO_C" >&6
35394else
35395 ac_check_lib_save_LIBS=$LIBS
35396LIBS="-lsocket $LIBS"
35397cat >conftest.$ac_ext <<_ACEOF
35398/* confdefs.h. */
35399_ACEOF
35400cat confdefs.h >>conftest.$ac_ext
35401cat >>conftest.$ac_ext <<_ACEOF
35402/* end confdefs.h. */
35403
35404/* Override any gcc2 internal prototype to avoid an error. */
35405#ifdef __cplusplus
35406extern "C"
35407#endif
35408/* We use char because int might match the return type of a gcc2
35409 builtin and then its argument prototype would still apply. */
35410char socket ();
35411int
35412main ()
35413{
35414socket ();
35415 ;
35416 return 0;
35417}
35418_ACEOF
35419rm -f conftest.$ac_objext conftest$ac_exeext
35420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35421 (eval $ac_link) 2>conftest.er1
a848cd7e 35422 ac_status=$?
ac1cb8d3
VS
35423 grep -v '^ *+' conftest.er1 >conftest.err
35424 rm -f conftest.er1
35425 cat conftest.err >&5
a848cd7e
SC
35426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427 (exit $ac_status); } &&
ac1cb8d3
VS
35428 { ac_try='test -z "$ac_c_werror_flag"
35429 || test ! -s conftest.err'
35430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35431 (eval $ac_try) 2>&5
35432 ac_status=$?
35433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); }; } &&
35435 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35437 (eval $ac_try) 2>&5
35438 ac_status=$?
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); }; }; then
35441 ac_cv_lib_socket_socket=yes
35442else
35443 echo "$as_me: failed program was:" >&5
35444sed 's/^/| /' conftest.$ac_ext >&5
35445
35446ac_cv_lib_socket_socket=no
35447fi
ac1cb8d3
VS
35448rm -f conftest.err conftest.$ac_objext \
35449 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35450LIBS=$ac_check_lib_save_LIBS
35451fi
35452echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35453echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35454if test $ac_cv_lib_socket_socket = yes; then
35455 if test "$INET_LINK" != " -lsocket"; then
35456 INET_LINK="$INET_LINK -lsocket"
35457 fi
35458else
35459
35460 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35461echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35462 wxUSE_SOCKETS=no
35463
35464
35465fi
35466
35467
35468
35469fi
35470
35471 fi
35472fi
35473
35474if test "$wxUSE_SOCKETS" = "yes" ; then
35475 if test "$TOOLKIT" != "MSW"; then
35476 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35477echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35478if test "${wx_cv_type_getsockname3+set}" = set; then
35479 echo $ECHO_N "(cached) $ECHO_C" >&6
35480else
35481
35482 cat >conftest.$ac_ext <<_ACEOF
35483/* confdefs.h. */
35484_ACEOF
35485cat confdefs.h >>conftest.$ac_ext
35486cat >>conftest.$ac_ext <<_ACEOF
35487/* end confdefs.h. */
35488
35489 #include <sys/types.h>
35490 #include <sys/socket.h>
35491
35492int
35493main ()
35494{
35495
35496 socklen_t len;
35497 getsockname(0, 0, &len);
35498
35499 ;
35500 return 0;
35501}
35502_ACEOF
35503rm -f conftest.$ac_objext
35504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35505 (eval $ac_compile) 2>conftest.er1
a848cd7e 35506 ac_status=$?
ac1cb8d3
VS
35507 grep -v '^ *+' conftest.er1 >conftest.err
35508 rm -f conftest.er1
35509 cat conftest.err >&5
a848cd7e
SC
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); } &&
ac1cb8d3
VS
35512 { ac_try='test -z "$ac_c_werror_flag"
35513 || test ! -s conftest.err'
35514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35515 (eval $ac_try) 2>&5
35516 ac_status=$?
35517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518 (exit $ac_status); }; } &&
35519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35521 (eval $ac_try) 2>&5
35522 ac_status=$?
35523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35524 (exit $ac_status); }; }; then
35525 wx_cv_type_getsockname3=socklen_t
35526else
35527 echo "$as_me: failed program was:" >&5
35528sed 's/^/| /' conftest.$ac_ext >&5
35529
35530
35531 CFLAGS_OLD="$CFLAGS"
35532 if test "$GCC" = yes ; then
35533 CFLAGS="$CFLAGS -Werror"
35534 fi
35535
35536 cat >conftest.$ac_ext <<_ACEOF
35537/* confdefs.h. */
35538_ACEOF
35539cat confdefs.h >>conftest.$ac_ext
35540cat >>conftest.$ac_ext <<_ACEOF
35541/* end confdefs.h. */
35542
35543 #include <sys/types.h>
35544 #include <sys/socket.h>
35545
35546int
35547main ()
35548{
35549
35550 size_t len;
35551 getsockname(0, 0, &len);
35552
35553 ;
35554 return 0;
35555}
35556_ACEOF
35557rm -f conftest.$ac_objext
35558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35559 (eval $ac_compile) 2>conftest.er1
a848cd7e 35560 ac_status=$?
ac1cb8d3
VS
35561 grep -v '^ *+' conftest.er1 >conftest.err
35562 rm -f conftest.er1
35563 cat conftest.err >&5
a848cd7e
SC
35564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35565 (exit $ac_status); } &&
ac1cb8d3
VS
35566 { ac_try='test -z "$ac_c_werror_flag"
35567 || test ! -s conftest.err'
35568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35569 (eval $ac_try) 2>&5
35570 ac_status=$?
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); }; } &&
35573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35575 (eval $ac_try) 2>&5
35576 ac_status=$?
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); }; }; then
35579 wx_cv_type_getsockname3=size_t
35580else
35581 echo "$as_me: failed program was:" >&5
35582sed 's/^/| /' conftest.$ac_ext >&5
35583
35584cat >conftest.$ac_ext <<_ACEOF
35585/* confdefs.h. */
35586_ACEOF
35587cat confdefs.h >>conftest.$ac_ext
35588cat >>conftest.$ac_ext <<_ACEOF
35589/* end confdefs.h. */
35590
35591 #include <sys/types.h>
35592 #include <sys/socket.h>
35593
35594int
35595main ()
35596{
35597
35598 int len;
35599 getsockname(0, 0, &len);
35600
35601 ;
35602 return 0;
35603}
35604_ACEOF
35605rm -f conftest.$ac_objext
35606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35607 (eval $ac_compile) 2>conftest.er1
a848cd7e 35608 ac_status=$?
ac1cb8d3
VS
35609 grep -v '^ *+' conftest.er1 >conftest.err
35610 rm -f conftest.er1
35611 cat conftest.err >&5
a848cd7e
SC
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); } &&
ac1cb8d3
VS
35614 { ac_try='test -z "$ac_c_werror_flag"
35615 || test ! -s conftest.err'
35616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35617 (eval $ac_try) 2>&5
35618 ac_status=$?
35619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620 (exit $ac_status); }; } &&
35621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35623 (eval $ac_try) 2>&5
35624 ac_status=$?
35625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626 (exit $ac_status); }; }; then
35627 wx_cv_type_getsockname3=int
35628else
35629 echo "$as_me: failed program was:" >&5
35630sed 's/^/| /' conftest.$ac_ext >&5
35631
35632wx_cv_type_getsockname3=unknown
35633
35634fi
ac1cb8d3 35635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35636
35637fi
ac1cb8d3 35638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35639
35640 CFLAGS="$CFLAGS_OLD"
35641
35642
35643fi
ac1cb8d3 35644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35645
35646fi
35647echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35648echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35649
35650 if test "$wx_cv_type_getsockname3" = "unknown"; then
35651 wxUSE_SOCKETS=no
35652 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35653echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35654 else
35655 cat >>confdefs.h <<_ACEOF
35656#define SOCKLEN_T $wx_cv_type_getsockname3
35657_ACEOF
35658
35659 fi
35660 fi
35661fi
35662
35663if test "$wxUSE_SOCKETS" = "yes" ; then
35664 cat >>confdefs.h <<\_ACEOF
35665#define wxUSE_SOCKETS 1
35666_ACEOF
35667
35668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35669fi
35670
35671if test "$wxUSE_PROTOCOL" = "yes"; then
35672 if test "$wxUSE_SOCKETS" != "yes"; then
35673 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35674echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35675 wxUSE_PROTOCOL=no
35676 fi
35677fi
35678
35679if test "$wxUSE_PROTOCOL" = "yes"; then
35680 cat >>confdefs.h <<\_ACEOF
35681#define wxUSE_PROTOCOL 1
35682_ACEOF
35683
35684
35685 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35686 cat >>confdefs.h <<\_ACEOF
35687#define wxUSE_PROTOCOL_HTTP 1
35688_ACEOF
35689
35690 fi
35691 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35692 cat >>confdefs.h <<\_ACEOF
35693#define wxUSE_PROTOCOL_FTP 1
35694_ACEOF
35695
35696 fi
35697 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35698 cat >>confdefs.h <<\_ACEOF
35699#define wxUSE_PROTOCOL_FILE 1
35700_ACEOF
35701
35702 fi
35703else
35704 if test "$wxUSE_FS_INET" = "yes"; then
35705 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35706echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35707 wxUSE_FS_INET="no"
35708 fi
35709fi
35710
35711if test "$wxUSE_URL" = "yes"; then
35712 if test "$wxUSE_PROTOCOL" != "yes"; then
35713 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35714echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35715 wxUSE_URL=no
35716 fi
35717 if test "$wxUSE_URL" = "yes"; then
35718 cat >>confdefs.h <<\_ACEOF
35719#define wxUSE_URL 1
35720_ACEOF
35721
35722 fi
35723fi
35724
35725if test "$wxUSE_FS_INET" = "yes"; then
35726 cat >>confdefs.h <<\_ACEOF
35727#define wxUSE_FS_INET 1
35728_ACEOF
35729
35730fi
35731
35732
35733if test "$wxUSE_GUI" = "yes"; then
35734
35735 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35736 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35737echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35738 wxUSE_JOYSTICK=no
35739 fi
35740
35741 if test "$TOOLKIT" != "MSW"; then
35742 if test "$wxUSE_JOYSTICK" = "yes"; then
35743
35744for ac_header in linux/joystick.h
35745do
35746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35747if eval "test \"\${$as_ac_Header+set}\" = set"; then
35748 echo "$as_me:$LINENO: checking for $ac_header" >&5
35749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35750if eval "test \"\${$as_ac_Header+set}\" = set"; then
35751 echo $ECHO_N "(cached) $ECHO_C" >&6
35752fi
35753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35755else
35756 # Is the header compilable?
35757echo "$as_me:$LINENO: checking $ac_header usability" >&5
35758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35759cat >conftest.$ac_ext <<_ACEOF
35760/* confdefs.h. */
35761_ACEOF
35762cat confdefs.h >>conftest.$ac_ext
35763cat >>conftest.$ac_ext <<_ACEOF
35764/* end confdefs.h. */
35765$ac_includes_default
35766#include <$ac_header>
35767_ACEOF
35768rm -f conftest.$ac_objext
35769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35770 (eval $ac_compile) 2>conftest.er1
a848cd7e 35771 ac_status=$?
ac1cb8d3
VS
35772 grep -v '^ *+' conftest.er1 >conftest.err
35773 rm -f conftest.er1
35774 cat conftest.err >&5
a848cd7e
SC
35775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35776 (exit $ac_status); } &&
ac1cb8d3
VS
35777 { ac_try='test -z "$ac_c_werror_flag"
35778 || test ! -s conftest.err'
35779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35780 (eval $ac_try) 2>&5
35781 ac_status=$?
35782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35783 (exit $ac_status); }; } &&
35784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35786 (eval $ac_try) 2>&5
35787 ac_status=$?
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); }; }; then
35790 ac_header_compiler=yes
35791else
35792 echo "$as_me: failed program was:" >&5
35793sed 's/^/| /' conftest.$ac_ext >&5
35794
35795ac_header_compiler=no
35796fi
ac1cb8d3 35797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35799echo "${ECHO_T}$ac_header_compiler" >&6
35800
35801# Is the header present?
35802echo "$as_me:$LINENO: checking $ac_header presence" >&5
35803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35804cat >conftest.$ac_ext <<_ACEOF
35805/* confdefs.h. */
35806_ACEOF
35807cat confdefs.h >>conftest.$ac_ext
35808cat >>conftest.$ac_ext <<_ACEOF
35809/* end confdefs.h. */
35810#include <$ac_header>
35811_ACEOF
35812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35814 ac_status=$?
35815 grep -v '^ *+' conftest.er1 >conftest.err
35816 rm -f conftest.er1
35817 cat conftest.err >&5
35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 (exit $ac_status); } >/dev/null; then
35820 if test -s conftest.err; then
35821 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35823 else
35824 ac_cpp_err=
35825 fi
35826else
35827 ac_cpp_err=yes
35828fi
35829if test -z "$ac_cpp_err"; then
35830 ac_header_preproc=yes
35831else
35832 echo "$as_me: failed program was:" >&5
35833sed 's/^/| /' conftest.$ac_ext >&5
35834
35835 ac_header_preproc=no
35836fi
35837rm -f conftest.err conftest.$ac_ext
35838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35839echo "${ECHO_T}$ac_header_preproc" >&6
35840
35841# So? What about this header?
ac1cb8d3
VS
35842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35843 yes:no: )
a848cd7e
SC
35844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35848 ac_header_preproc=yes
a848cd7e 35849 ;;
ac1cb8d3 35850 no:yes:* )
a848cd7e
SC
35851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35863 (
35864 cat <<\_ASBOX
ac1cb8d3
VS
35865## ----------------------------------------- ##
35866## Report this to wx-dev@lists.wxwidgets.org ##
35867## ----------------------------------------- ##
a848cd7e
SC
35868_ASBOX
35869 ) |
35870 sed "s/^/$as_me: WARNING: /" >&2
35871 ;;
35872esac
35873echo "$as_me:$LINENO: checking for $ac_header" >&5
35874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35875if eval "test \"\${$as_ac_Header+set}\" = set"; then
35876 echo $ECHO_N "(cached) $ECHO_C" >&6
35877else
ac1cb8d3 35878 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35879fi
35880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35882
35883fi
35884if test `eval echo '${'$as_ac_Header'}'` = yes; then
35885 cat >>confdefs.h <<_ACEOF
35886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35887_ACEOF
35888
35889fi
35890
35891done
35892
35893 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35894 wxUSE_JOYSTICK=no
35895 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35896echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35897 fi
35898 fi
35899 fi
35900
35901 if test "$wxUSE_JOYSTICK" = "yes"; then
35902 cat >>confdefs.h <<\_ACEOF
35903#define wxUSE_JOYSTICK 1
35904_ACEOF
35905
35906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35907 fi
35908fi
35909
35910
35911
35912if test "$wxUSE_FONTMAP" = "yes" ; then
35913 cat >>confdefs.h <<\_ACEOF
35914#define wxUSE_FONTMAP 1
35915_ACEOF
35916
35917fi
35918
35919if test "$wxUSE_UNICODE" = "yes" ; then
35920 cat >>confdefs.h <<\_ACEOF
35921#define wxUSE_UNICODE 1
35922_ACEOF
35923
35924
35925 if test "$USE_WIN32" != 1; then
35926 wxUSE_UNICODE_MSLU=no
35927 fi
35928
35929 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35930 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35931echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35932if test "${ac_cv_lib_unicows_main+set}" = set; then
35933 echo $ECHO_N "(cached) $ECHO_C" >&6
35934else
35935 ac_check_lib_save_LIBS=$LIBS
35936LIBS="-lunicows $LIBS"
35937cat >conftest.$ac_ext <<_ACEOF
35938/* confdefs.h. */
35939_ACEOF
35940cat confdefs.h >>conftest.$ac_ext
35941cat >>conftest.$ac_ext <<_ACEOF
35942/* end confdefs.h. */
35943
35944
35945int
35946main ()
35947{
35948main ();
35949 ;
35950 return 0;
35951}
35952_ACEOF
35953rm -f conftest.$ac_objext conftest$ac_exeext
35954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35955 (eval $ac_link) 2>conftest.er1
a848cd7e 35956 ac_status=$?
ac1cb8d3
VS
35957 grep -v '^ *+' conftest.er1 >conftest.err
35958 rm -f conftest.er1
35959 cat conftest.err >&5
a848cd7e
SC
35960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961 (exit $ac_status); } &&
ac1cb8d3
VS
35962 { ac_try='test -z "$ac_c_werror_flag"
35963 || test ! -s conftest.err'
35964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35965 (eval $ac_try) 2>&5
35966 ac_status=$?
35967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968 (exit $ac_status); }; } &&
35969 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35971 (eval $ac_try) 2>&5
35972 ac_status=$?
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); }; }; then
35975 ac_cv_lib_unicows_main=yes
35976else
35977 echo "$as_me: failed program was:" >&5
35978sed 's/^/| /' conftest.$ac_ext >&5
35979
35980ac_cv_lib_unicows_main=no
35981fi
ac1cb8d3
VS
35982rm -f conftest.err conftest.$ac_objext \
35983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35984LIBS=$ac_check_lib_save_LIBS
35985fi
35986echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35987echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35988if test $ac_cv_lib_unicows_main = yes; then
35989
35990 cat >>confdefs.h <<\_ACEOF
35991#define wxUSE_UNICODE_MSLU 1
35992_ACEOF
35993
35994
35995else
35996
35997 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35998 Applications will only run on Windows NT/2000/XP!" >&5
35999echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36000 Applications will only run on Windows NT/2000/XP!" >&2;}
36001 wxUSE_UNICODE_MSLU=no
36002
36003fi
36004
36005 fi
36006fi
36007
36008if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36009 cat >>confdefs.h <<\_ACEOF
36010#define wxUSE_EXPERIMENTAL_PRINTF 1
36011_ACEOF
36012
36013fi
36014
36015
36016if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36017 cat >>confdefs.h <<\_ACEOF
36018#define wxUSE_POSTSCRIPT 1
36019_ACEOF
36020
36021fi
36022
36023cat >>confdefs.h <<\_ACEOF
36024#define wxUSE_AFM_FOR_POSTSCRIPT 1
36025_ACEOF
36026
36027
36028cat >>confdefs.h <<\_ACEOF
36029#define wxUSE_NORMALIZED_PS_FONTS 1
36030_ACEOF
36031
36032
36033
36034if test "$wxUSE_CONSTRAINTS" = "yes"; then
36035 cat >>confdefs.h <<\_ACEOF
36036#define wxUSE_CONSTRAINTS 1
36037_ACEOF
36038
36039 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36040fi
36041
8a7b1113
VZ
36042if test "$wxUSE_MDI" = "yes"; then
36043 cat >>confdefs.h <<\_ACEOF
36044#define wxUSE_MDI 1
36045_ACEOF
36046
36047
36048 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36049 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36050#define wxUSE_MDI_ARCHITECTURE 1
36051_ACEOF
36052
8a7b1113
VZ
36053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36054 fi
a848cd7e
SC
36055fi
36056
36057if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36058 cat >>confdefs.h <<\_ACEOF
36059#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36060_ACEOF
36061
36062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36063 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36065 fi
36066fi
36067
36068if test "$wxUSE_HELP" = "yes"; then
36069 cat >>confdefs.h <<\_ACEOF
36070#define wxUSE_HELP 1
36071_ACEOF
36072
36073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36074
36075 if test "$wxUSE_MSW" = 1; then
36076 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36077 cat >>confdefs.h <<\_ACEOF
36078#define wxUSE_MS_HTML_HELP 1
36079_ACEOF
36080
36081 fi
36082 fi
36083
36084 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36085 if test "$wxUSE_HTML" = "yes"; then
36086 cat >>confdefs.h <<\_ACEOF
36087#define wxUSE_WXHTML_HELP 1
36088_ACEOF
36089
36090 else
36091 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36092echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36093 wxUSE_WXHTML_HELP=no
36094 fi
36095 fi
36096fi
36097
36098if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36099 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36100 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36101echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36102 else
36103 cat >>confdefs.h <<\_ACEOF
36104#define wxUSE_PRINTING_ARCHITECTURE 1
36105_ACEOF
36106
36107 fi
36108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36109fi
36110
36111if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36112 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36113echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36114 { (exit 1); exit 1; }; }
36115fi
36116
36117
36118if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36119 -o "$wxUSE_CLIPBOARD" = "yes" \
36120 -o "$wxUSE_OLE" = "yes" \
36121 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36122
36123for ac_header in ole2.h
36124do
36125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36126if eval "test \"\${$as_ac_Header+set}\" = set"; then
36127 echo "$as_me:$LINENO: checking for $ac_header" >&5
36128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36129if eval "test \"\${$as_ac_Header+set}\" = set"; then
36130 echo $ECHO_N "(cached) $ECHO_C" >&6
36131fi
36132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36134else
36135 # Is the header compilable?
36136echo "$as_me:$LINENO: checking $ac_header usability" >&5
36137echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36138cat >conftest.$ac_ext <<_ACEOF
36139/* confdefs.h. */
36140_ACEOF
36141cat confdefs.h >>conftest.$ac_ext
36142cat >>conftest.$ac_ext <<_ACEOF
36143/* end confdefs.h. */
36144$ac_includes_default
36145#include <$ac_header>
36146_ACEOF
36147rm -f conftest.$ac_objext
36148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36149 (eval $ac_compile) 2>conftest.er1
a848cd7e 36150 ac_status=$?
ac1cb8d3
VS
36151 grep -v '^ *+' conftest.er1 >conftest.err
36152 rm -f conftest.er1
36153 cat conftest.err >&5
a848cd7e
SC
36154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36155 (exit $ac_status); } &&
ac1cb8d3
VS
36156 { ac_try='test -z "$ac_c_werror_flag"
36157 || test ! -s conftest.err'
36158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36159 (eval $ac_try) 2>&5
36160 ac_status=$?
36161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162 (exit $ac_status); }; } &&
36163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36165 (eval $ac_try) 2>&5
36166 ac_status=$?
36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); }; }; then
36169 ac_header_compiler=yes
36170else
36171 echo "$as_me: failed program was:" >&5
36172sed 's/^/| /' conftest.$ac_ext >&5
36173
36174ac_header_compiler=no
36175fi
ac1cb8d3 36176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36177echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36178echo "${ECHO_T}$ac_header_compiler" >&6
36179
36180# Is the header present?
36181echo "$as_me:$LINENO: checking $ac_header presence" >&5
36182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36183cat >conftest.$ac_ext <<_ACEOF
36184/* confdefs.h. */
36185_ACEOF
36186cat confdefs.h >>conftest.$ac_ext
36187cat >>conftest.$ac_ext <<_ACEOF
36188/* end confdefs.h. */
36189#include <$ac_header>
36190_ACEOF
36191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36193 ac_status=$?
36194 grep -v '^ *+' conftest.er1 >conftest.err
36195 rm -f conftest.er1
36196 cat conftest.err >&5
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); } >/dev/null; then
36199 if test -s conftest.err; then
36200 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36202 else
36203 ac_cpp_err=
36204 fi
36205else
36206 ac_cpp_err=yes
36207fi
36208if test -z "$ac_cpp_err"; then
36209 ac_header_preproc=yes
36210else
36211 echo "$as_me: failed program was:" >&5
36212sed 's/^/| /' conftest.$ac_ext >&5
36213
36214 ac_header_preproc=no
36215fi
36216rm -f conftest.err conftest.$ac_ext
36217echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36218echo "${ECHO_T}$ac_header_preproc" >&6
36219
36220# So? What about this header?
ac1cb8d3
VS
36221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36222 yes:no: )
a848cd7e
SC
36223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36227 ac_header_preproc=yes
a848cd7e 36228 ;;
ac1cb8d3 36229 no:yes:* )
a848cd7e
SC
36230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36233echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36237echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36242 (
36243 cat <<\_ASBOX
ac1cb8d3
VS
36244## ----------------------------------------- ##
36245## Report this to wx-dev@lists.wxwidgets.org ##
36246## ----------------------------------------- ##
a848cd7e
SC
36247_ASBOX
36248 ) |
36249 sed "s/^/$as_me: WARNING: /" >&2
36250 ;;
36251esac
36252echo "$as_me:$LINENO: checking for $ac_header" >&5
36253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36254if eval "test \"\${$as_ac_Header+set}\" = set"; then
36255 echo $ECHO_N "(cached) $ECHO_C" >&6
36256else
ac1cb8d3 36257 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36258fi
36259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36261
36262fi
36263if test `eval echo '${'$as_ac_Header'}'` = yes; then
36264 cat >>confdefs.h <<_ACEOF
36265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36266_ACEOF
36267
36268fi
36269
36270done
36271
36272
36273 if test "$ac_cv_header_ole2_h" = "yes" ; then
36274 if test "$GCC" = yes ; then
36275
36276
36277 ac_ext=cc
36278ac_cpp='$CXXCPP $CPPFLAGS'
36279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36282
36283
36284 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36285echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36286 cat >conftest.$ac_ext <<_ACEOF
36287/* confdefs.h. */
36288_ACEOF
36289cat confdefs.h >>conftest.$ac_ext
36290cat >>conftest.$ac_ext <<_ACEOF
36291/* end confdefs.h. */
36292#include <windows.h>
36293 #include <ole2.h>
36294int
36295main ()
36296{
36297
36298 ;
36299 return 0;
36300}
36301_ACEOF
36302rm -f conftest.$ac_objext
36303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36304 (eval $ac_compile) 2>conftest.er1
a848cd7e 36305 ac_status=$?
ac1cb8d3
VS
36306 grep -v '^ *+' conftest.er1 >conftest.err
36307 rm -f conftest.er1
36308 cat conftest.err >&5
a848cd7e
SC
36309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); } &&
ac1cb8d3
VS
36311 { ac_try='test -z "$ac_cxx_werror_flag"
36312 || test ! -s conftest.err'
36313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36314 (eval $ac_try) 2>&5
36315 ac_status=$?
36316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36317 (exit $ac_status); }; } &&
36318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36320 (eval $ac_try) 2>&5
36321 ac_status=$?
36322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323 (exit $ac_status); }; }; then
36324 echo "$as_me:$LINENO: result: no" >&5
36325echo "${ECHO_T}no" >&6
36326else
36327 echo "$as_me: failed program was:" >&5
36328sed 's/^/| /' conftest.$ac_ext >&5
36329
36330echo "$as_me:$LINENO: result: yes" >&5
36331echo "${ECHO_T}yes" >&6
36332 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36333fi
ac1cb8d3 36334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36335 ac_ext=c
36336ac_cpp='$CPP $CPPFLAGS'
36337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36339ac_compiler_gnu=$ac_cv_c_compiler_gnu
36340
36341 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36342 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36343 if test "$wxUSE_OLE" = "yes" ; then
36344 cat >>confdefs.h <<\_ACEOF
36345#define wxUSE_OLE 1
36346_ACEOF
36347
36348 fi
36349 fi
36350
36351 if test "$wxUSE_DATAOBJ" = "yes" ; then
36352 cat >>confdefs.h <<\_ACEOF
36353#define wxUSE_DATAOBJ 1
36354_ACEOF
36355
36356 fi
36357 else
36358 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36359echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36360
36361 wxUSE_CLIPBOARD=no
36362 wxUSE_DRAG_AND_DROP=no
36363 wxUSE_DATAOBJ=no
36364 wxUSE_OLE=no
36365 fi
36366
36367 if test "$wxUSE_METAFILE" = "yes"; then
36368 cat >>confdefs.h <<\_ACEOF
36369#define wxUSE_METAFILE 1
36370_ACEOF
36371
36372
36373 cat >>confdefs.h <<\_ACEOF
36374#define wxUSE_ENH_METAFILE 1
36375_ACEOF
36376
36377 fi
36378fi
36379
36380if test "$wxUSE_IPC" = "yes"; then
36381 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36382 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36383echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36384 fi
36385
36386 cat >>confdefs.h <<\_ACEOF
36387#define wxUSE_IPC 1
36388_ACEOF
36389
36390fi
36391
36392if test "$wxUSE_CLIPBOARD" = "yes"; then
36393 if test "$wxUSE_MGL" = 1; then
36394 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36395echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36396 wxUSE_CLIPBOARD=no
36397 fi
36398
36399 if test "$wxUSE_CLIPBOARD" = "yes"; then
36400 cat >>confdefs.h <<\_ACEOF
36401#define wxUSE_CLIPBOARD 1
36402_ACEOF
36403
36404
36405 cat >>confdefs.h <<\_ACEOF
36406#define wxUSE_DATAOBJ 1
36407_ACEOF
36408
36409 fi
36410fi
36411
36412if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36413 if test "$wxUSE_GTK" = 1; then
36414 if test "$WXGTK12" != 1; then
36415 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36416echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36417 wxUSE_DRAG_AND_DROP=no
36418 fi
36419 fi
36420
36421 if test "$wxUSE_MOTIF" = 1; then
36422 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36423echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36424 wxUSE_DRAG_AND_DROP=no
36425 fi
36426
36427 if test "$wxUSE_X11" = 1; then
36428 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36429echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36430 wxUSE_DRAG_AND_DROP=no
36431 fi
36432
36433 if test "$wxUSE_MGL" = 1; then
36434 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36435echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36436 wxUSE_DRAG_AND_DROP=no
36437 fi
36438
36439 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36440 cat >>confdefs.h <<\_ACEOF
36441#define wxUSE_DRAG_AND_DROP 1
36442_ACEOF
36443
36444 fi
36445
36446fi
36447
36448if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36450fi
36451
36452if test "$wxUSE_SPLINES" = "yes" ; then
36453 cat >>confdefs.h <<\_ACEOF
36454#define wxUSE_SPLINES 1
36455_ACEOF
36456
36457fi
36458
36459
36460USES_CONTROLS=0
36461if test "$wxUSE_CONTROLS" = "yes"; then
36462 USES_CONTROLS=1
36463fi
36464
36465if test "$wxUSE_ACCEL" = "yes"; then
36466 cat >>confdefs.h <<\_ACEOF
36467#define wxUSE_ACCEL 1
36468_ACEOF
36469
36470 USES_CONTROLS=1
36471fi
36472
36473if test "$wxUSE_BUTTON" = "yes"; then
36474 cat >>confdefs.h <<\_ACEOF
36475#define wxUSE_BUTTON 1
36476_ACEOF
36477
36478 USES_CONTROLS=1
36479fi
36480
36481if test "$wxUSE_BMPBUTTON" = "yes"; then
36482 cat >>confdefs.h <<\_ACEOF
36483#define wxUSE_BMPBUTTON 1
36484_ACEOF
36485
36486 USES_CONTROLS=1
36487fi
36488
36489if test "$wxUSE_CALCTRL" = "yes"; then
36490 cat >>confdefs.h <<\_ACEOF
36491#define wxUSE_CALENDARCTRL 1
36492_ACEOF
36493
36494 USES_CONTROLS=1
36495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36496fi
36497
36498if test "$wxUSE_CARET" = "yes"; then
36499 cat >>confdefs.h <<\_ACEOF
36500#define wxUSE_CARET 1
36501_ACEOF
36502
36503 USES_CONTROLS=1
36504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36505fi
36506
36507if test "$wxUSE_COMBOBOX" = "yes"; then
36508 cat >>confdefs.h <<\_ACEOF
36509#define wxUSE_COMBOBOX 1
36510_ACEOF
36511
36512 USES_CONTROLS=1
36513fi
36514
36515if test "$wxUSE_CHOICE" = "yes"; then
36516 cat >>confdefs.h <<\_ACEOF
36517#define wxUSE_CHOICE 1
36518_ACEOF
36519
36520 USES_CONTROLS=1
36521fi
36522
36523if test "$wxUSE_CHECKBOX" = "yes"; then
36524 cat >>confdefs.h <<\_ACEOF
36525#define wxUSE_CHECKBOX 1
36526_ACEOF
36527
36528 USES_CONTROLS=1
36529fi
36530
36531if test "$wxUSE_CHECKLST" = "yes"; then
36532 cat >>confdefs.h <<\_ACEOF
36533#define wxUSE_CHECKLISTBOX 1
36534_ACEOF
36535
36536 USES_CONTROLS=1
36537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36538fi
36539
36540if test "$wxUSE_DISPLAY" = "yes"; then
36541 cat >>confdefs.h <<\_ACEOF
36542#define wxUSE_DISPLAY 1
36543_ACEOF
36544
36545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36546fi
36547
36548if test "$wxUSE_GAUGE" = "yes"; then
36549 cat >>confdefs.h <<\_ACEOF
36550#define wxUSE_GAUGE 1
36551_ACEOF
36552
36553 USES_CONTROLS=1
36554fi
36555
36556if test "$wxUSE_GRID" = "yes"; then
36557 cat >>confdefs.h <<\_ACEOF
36558#define wxUSE_GRID 1
36559_ACEOF
36560
36561 USES_CONTROLS=1
36562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36563fi
36564
36565if test "$wxUSE_IMAGLIST" = "yes"; then
36566 cat >>confdefs.h <<\_ACEOF
36567#define wxUSE_IMAGLIST 1
36568_ACEOF
36569
36570fi
36571
36572if test "$wxUSE_LISTBOOK" = "yes"; then
36573 cat >>confdefs.h <<\_ACEOF
36574#define wxUSE_LISTBOOK 1
36575_ACEOF
36576
36577 USES_CONTROLS=1
36578fi
36579
36580if test "$wxUSE_LISTBOX" = "yes"; then
36581 cat >>confdefs.h <<\_ACEOF
36582#define wxUSE_LISTBOX 1
36583_ACEOF
36584
36585 USES_CONTROLS=1
36586fi
36587
36588if test "$wxUSE_LISTCTRL" = "yes"; then
36589 if test "$wxUSE_IMAGLIST" = "yes"; then
36590 cat >>confdefs.h <<\_ACEOF
36591#define wxUSE_LISTCTRL 1
36592_ACEOF
36593
36594 USES_CONTROLS=1
36595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36596 else
36597 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36598echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36599 fi
36600fi
36601
36602if test "$wxUSE_NOTEBOOK" = "yes"; then
36603 cat >>confdefs.h <<\_ACEOF
36604#define wxUSE_NOTEBOOK 1
36605_ACEOF
36606
36607 USES_CONTROLS=1
36608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36609fi
36610
36611
36612if test "$wxUSE_RADIOBOX" = "yes"; then
36613 cat >>confdefs.h <<\_ACEOF
36614#define wxUSE_RADIOBOX 1
36615_ACEOF
36616
36617 USES_CONTROLS=1
36618fi
36619
36620if test "$wxUSE_RADIOBTN" = "yes"; then
36621 cat >>confdefs.h <<\_ACEOF
36622#define wxUSE_RADIOBTN 1
36623_ACEOF
36624
36625 USES_CONTROLS=1
36626fi
36627
36628if test "$wxUSE_SASH" = "yes"; then
36629 cat >>confdefs.h <<\_ACEOF
36630#define wxUSE_SASH 1
36631_ACEOF
36632
36633 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36634fi
36635
36636if test "$wxUSE_SCROLLBAR" = "yes"; then
36637 cat >>confdefs.h <<\_ACEOF
36638#define wxUSE_SCROLLBAR 1
36639_ACEOF
36640
36641 USES_CONTROLS=1
36642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36643fi
36644
36645if test "$wxUSE_SLIDER" = "yes"; then
36646 cat >>confdefs.h <<\_ACEOF
36647#define wxUSE_SLIDER 1
36648_ACEOF
36649
36650 USES_CONTROLS=1
36651fi
36652
36653if test "$wxUSE_SPINBTN" = "yes"; then
36654 cat >>confdefs.h <<\_ACEOF
36655#define wxUSE_SPINBTN 1
36656_ACEOF
36657
36658 USES_CONTROLS=1
36659fi
36660
36661if test "$wxUSE_SPINCTRL" = "yes"; then
36662 cat >>confdefs.h <<\_ACEOF
36663#define wxUSE_SPINCTRL 1
36664_ACEOF
36665
36666 USES_CONTROLS=1
36667fi
36668
36669if test "$wxUSE_SPLITTER" = "yes"; then
36670 cat >>confdefs.h <<\_ACEOF
36671#define wxUSE_SPLITTER 1
36672_ACEOF
36673
36674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36675fi
36676
36677if test "$wxUSE_STATBMP" = "yes"; then
36678 cat >>confdefs.h <<\_ACEOF
36679#define wxUSE_STATBMP 1
36680_ACEOF
36681
36682 USES_CONTROLS=1
36683fi
36684
36685if test "$wxUSE_STATBOX" = "yes"; then
36686 cat >>confdefs.h <<\_ACEOF
36687#define wxUSE_STATBOX 1
36688_ACEOF
36689
36690 USES_CONTROLS=1
36691fi
36692
36693if test "$wxUSE_STATTEXT" = "yes"; then
36694 cat >>confdefs.h <<\_ACEOF
36695#define wxUSE_STATTEXT 1
36696_ACEOF
36697
36698 USES_CONTROLS=1
36699fi
36700
36701if test "$wxUSE_STATLINE" = "yes"; then
36702 cat >>confdefs.h <<\_ACEOF
36703#define wxUSE_STATLINE 1
36704_ACEOF
36705
36706 USES_CONTROLS=1
36707fi
36708
36709if test "$wxUSE_STATUSBAR" = "yes"; then
36710 cat >>confdefs.h <<\_ACEOF
36711#define wxUSE_STATUSBAR 1
36712_ACEOF
36713
36714 USES_CONTROLS=1
36715
36716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36717fi
36718
36719if test "$wxUSE_TABDIALOG" = "yes"; then
36720 cat >>confdefs.h <<\_ACEOF
36721#define wxUSE_TAB_DIALOG 1
36722_ACEOF
36723
36724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36725fi
36726
36727if test "$wxUSE_TEXTCTRL" = "yes"; then
36728 cat >>confdefs.h <<\_ACEOF
36729#define wxUSE_TEXTCTRL 1
36730_ACEOF
36731
36732 USES_CONTROLS=1
36733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36734fi
36735
36736if test "$wxUSE_TOGGLEBTN" = "yes"; then
36737 if test "$wxUSE_COCOA" = 1 ; then
36738 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36739echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36740 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36741 else
36742 if test "$wxUSE_PM" = 1; then
36743 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36744echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36745 wxUSE_TOGGLEBTN=no
36746 fi
a848cd7e
SC
36747 fi
36748 if test "$wxUSE_UNIVERSAL" = "yes"; then
36749 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36750echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36751 wxUSE_TOGGLEBTN=no
36752 fi
36753
36754 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36755 cat >>confdefs.h <<\_ACEOF
36756#define wxUSE_TOGGLEBTN 1
36757_ACEOF
36758
36759 USES_CONTROLS=1
36760 fi
36761fi
36762
36763if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36764 cat >>confdefs.h <<\_ACEOF
36765#define wxUSE_TOOLBAR_SIMPLE 1
36766_ACEOF
36767
36768 wxUSE_TOOLBAR="yes"
36769 USES_CONTROLS=1
36770fi
36771
36772if test "$wxUSE_TOOLBAR" = "yes"; then
36773 cat >>confdefs.h <<\_ACEOF
36774#define wxUSE_TOOLBAR 1
36775_ACEOF
36776
36777 USES_CONTROLS=1
36778
36779 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36780 wxUSE_TOOLBAR_NATIVE="yes"
36781 fi
36782
36783 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36784 cat >>confdefs.h <<\_ACEOF
36785#define wxUSE_TOOLBAR_NATIVE 1
36786_ACEOF
36787
36788 USES_CONTROLS=1
36789 fi
36790
36791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36792fi
36793
36794if test "$wxUSE_TOOLTIPS" = "yes"; then
36795 if test "$wxUSE_MOTIF" = 1; then
36796 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36797echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36798 else
36799 if test "$wxUSE_UNIVERSAL" = "yes"; then
36800 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36801echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36802 else
36803 cat >>confdefs.h <<\_ACEOF
36804#define wxUSE_TOOLTIPS 1
36805_ACEOF
36806
36807 fi
36808 fi
36809fi
36810
36811if test "$wxUSE_TREECTRL" = "yes"; then
36812 if test "$wxUSE_IMAGLIST" = "yes"; then
36813 cat >>confdefs.h <<\_ACEOF
36814#define wxUSE_TREECTRL 1
36815_ACEOF
36816
36817 USES_CONTROLS=1
36818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36819 else
36820 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36821echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36822 fi
36823fi
36824
36825if test "$wxUSE_POPUPWIN" = "yes"; then
36826 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36827 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36828echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36829 else
36830 if test "$wxUSE_PM" = 1; then
36831 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36832echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36833 else
36834 cat >>confdefs.h <<\_ACEOF
36835#define wxUSE_POPUPWIN 1
36836_ACEOF
36837
36838
36839 USES_CONTROLS=1
36840 fi
36841 fi
36842fi
36843
36844if test "$wxUSE_TIPWINDOW" = "yes"; then
36845 if test "$wxUSE_PM" = 1; then
36846 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36847echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36848 else
36849 cat >>confdefs.h <<\_ACEOF
36850#define wxUSE_TIPWINDOW 1
36851_ACEOF
36852
36853 fi
36854fi
36855
36856if test "$USES_CONTROLS" = 1; then
36857 cat >>confdefs.h <<\_ACEOF
36858#define wxUSE_CONTROLS 1
36859_ACEOF
36860
36861fi
36862
36863
36864if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36865 cat >>confdefs.h <<\_ACEOF
36866#define wxUSE_ACCESSIBILITY 1
36867_ACEOF
36868
36869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36870fi
36871
36872if test "$wxUSE_DRAGIMAGE" = "yes"; then
36873 cat >>confdefs.h <<\_ACEOF
36874#define wxUSE_DRAGIMAGE 1
36875_ACEOF
36876
36877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36878fi
36879
36880if test "$wxUSE_EXCEPTIONS" = "yes"; then
36881 cat >>confdefs.h <<\_ACEOF
36882#define wxUSE_EXCEPTIONS 1
36883_ACEOF
36884
36885fi
36886
36887USE_HTML=0
36888if test "$wxUSE_HTML" = "yes"; then
36889 cat >>confdefs.h <<\_ACEOF
36890#define wxUSE_HTML 1
36891_ACEOF
36892
36893 USE_HTML=1
36894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36895 if test "$wxUSE_MAC" = 1; then
36896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36897 fi
a848cd7e
SC
36898fi
36899
646b6ec1
VS
36900if test "$wxUSE_WEBKIT" = "yes"; then
36901 cat >>confdefs.h <<\_ACEOF
36902#define wxUSE_WEBKIT 1
36903_ACEOF
36904
36905fi
36906
a848cd7e
SC
36907if test "$wxUSE_MENUS" = "yes"; then
36908 cat >>confdefs.h <<\_ACEOF
36909#define wxUSE_MENUS 1
36910_ACEOF
36911
36912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36913fi
36914
36915if test "$wxUSE_METAFILE" = "yes"; then
36916 cat >>confdefs.h <<\_ACEOF
36917#define wxUSE_METAFILE 1
36918_ACEOF
36919
36920fi
36921
36922if test "$wxUSE_MIMETYPE" = "yes"; then
36923 cat >>confdefs.h <<\_ACEOF
36924#define wxUSE_MIMETYPE 1
36925_ACEOF
36926
36927fi
36928
36929if test "$wxUSE_MINIFRAME" = "yes"; then
36930 cat >>confdefs.h <<\_ACEOF
36931#define wxUSE_MINIFRAME 1
36932_ACEOF
36933
36934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36935fi
36936
36937if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
36938 cat >>confdefs.h <<\_ACEOF
36939#define wxUSE_SYSTEM_OPTIONS 1
36940_ACEOF
36941
36942 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36943 "$TOOLKIT" = "MOTIF"; then
36944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36945 fi
36946fi
36947
36948
36949if test "$wxUSE_VALIDATORS" = "yes"; then
36950 cat >>confdefs.h <<\_ACEOF
36951#define wxUSE_VALIDATORS 1
36952_ACEOF
36953
36954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36955fi
36956
36957if test "$wxUSE_PALETTE" = "yes" ; then
36958 cat >>confdefs.h <<\_ACEOF
36959#define wxUSE_PALETTE 1
36960_ACEOF
36961
36962fi
36963
36964if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36965 LIBS=" -lunicows $LIBS"
36966fi
36967
36968
36969if test "$wxUSE_IMAGE" = "yes" ; then
36970 cat >>confdefs.h <<\_ACEOF
36971#define wxUSE_IMAGE 1
36972_ACEOF
36973
36974
36975 if test "$wxUSE_GIF" = "yes" ; then
36976 cat >>confdefs.h <<\_ACEOF
36977#define wxUSE_GIF 1
36978_ACEOF
36979
36980 fi
36981
36982 if test "$wxUSE_PCX" = "yes" ; then
36983 cat >>confdefs.h <<\_ACEOF
36984#define wxUSE_PCX 1
36985_ACEOF
36986
36987 fi
36988
36989 if test "$wxUSE_IFF" = "yes" ; then
36990 cat >>confdefs.h <<\_ACEOF
36991#define wxUSE_IFF 1
36992_ACEOF
36993
36994 fi
36995
36996 if test "$wxUSE_PNM" = "yes" ; then
36997 cat >>confdefs.h <<\_ACEOF
36998#define wxUSE_PNM 1
36999_ACEOF
37000
37001 fi
37002
37003 if test "$wxUSE_XPM" = "yes" ; then
37004 cat >>confdefs.h <<\_ACEOF
37005#define wxUSE_XPM 1
37006_ACEOF
37007
37008 fi
37009
37010 if test "$wxUSE_ICO_CUR" = "yes" ; then
37011 cat >>confdefs.h <<\_ACEOF
37012#define wxUSE_ICO_CUR 1
37013_ACEOF
37014
37015 fi
37016fi
37017
37018
37019if test "$wxUSE_CHOICEDLG" = "yes"; then
37020 cat >>confdefs.h <<\_ACEOF
37021#define wxUSE_CHOICEDLG 1
37022_ACEOF
37023
37024fi
37025
37026if test "$wxUSE_COLOURDLG" = "yes"; then
37027 cat >>confdefs.h <<\_ACEOF
37028#define wxUSE_COLOURDLG 1
37029_ACEOF
37030
37031fi
37032
37033if test "$wxUSE_FILEDLG" = "yes"; then
37034 cat >>confdefs.h <<\_ACEOF
37035#define wxUSE_FILEDLG 1
37036_ACEOF
37037
37038fi
37039
37040if test "$wxUSE_FINDREPLDLG" = "yes"; then
37041 cat >>confdefs.h <<\_ACEOF
37042#define wxUSE_FINDREPLDLG 1
37043_ACEOF
37044
37045fi
37046
37047if test "$wxUSE_FONTDLG" = "yes"; then
37048 cat >>confdefs.h <<\_ACEOF
37049#define wxUSE_FONTDLG 1
37050_ACEOF
37051
37052fi
37053
37054if test "$wxUSE_DIRDLG" = "yes"; then
37055 if test "$wxUSE_TREECTRL" != "yes"; then
37056 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37057echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37058 else
37059 cat >>confdefs.h <<\_ACEOF
37060#define wxUSE_DIRDLG 1
37061_ACEOF
37062
37063 fi
37064fi
37065
37066if test "$wxUSE_MSGDLG" = "yes"; then
37067 cat >>confdefs.h <<\_ACEOF
37068#define wxUSE_MSGDLG 1
37069_ACEOF
37070
37071fi
37072
37073if test "$wxUSE_NUMBERDLG" = "yes"; then
37074 cat >>confdefs.h <<\_ACEOF
37075#define wxUSE_NUMBERDLG 1
37076_ACEOF
37077
37078fi
37079
37080if test "$wxUSE_PROGRESSDLG" = "yes"; then
37081 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37082 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37083echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37084 else
37085 cat >>confdefs.h <<\_ACEOF
37086#define wxUSE_PROGRESSDLG 1
37087_ACEOF
37088
37089 fi
37090fi
37091
37092if test "$wxUSE_SPLASH" = "yes"; then
37093 cat >>confdefs.h <<\_ACEOF
37094#define wxUSE_SPLASH 1
37095_ACEOF
37096
37097fi
37098
37099if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37100 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37101 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37102echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37103 else
37104 cat >>confdefs.h <<\_ACEOF
37105#define wxUSE_STARTUP_TIPS 1
37106_ACEOF
37107
37108 fi
37109fi
37110
37111if test "$wxUSE_TEXTDLG" = "yes"; then
37112 cat >>confdefs.h <<\_ACEOF
37113#define wxUSE_TEXTDLG 1
37114_ACEOF
37115
37116fi
37117
37118if test "$wxUSE_WIZARDDLG" = "yes"; then
37119 cat >>confdefs.h <<\_ACEOF
37120#define wxUSE_WIZARDDLG 1
37121_ACEOF
37122
37123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37124fi
37125
37126
37127if test "$cross_compiling" = "yes"; then
37128 OSINFO="\"$host\""
37129else
37130 OSINFO=`uname -s -r -m`
37131 OSINFO="\"$OSINFO\""
37132fi
37133
37134cat >>confdefs.h <<_ACEOF
37135#define WXWIN_OS_DESCRIPTION $OSINFO
37136_ACEOF
37137
37138
37139
37140if test "x$prefix" != "xNONE"; then
37141 wxPREFIX=$prefix
37142else
37143 wxPREFIX=$ac_default_prefix
37144fi
37145
37146cat >>confdefs.h <<_ACEOF
37147#define wxINSTALL_PREFIX "$wxPREFIX"
37148_ACEOF
37149
37150
37151top_builddir_wxconfig=`pwd`
37152
37153
37154
37155CORE_BASE_LIBS="net base"
37156CORE_GUI_LIBS="adv core"
37157
37158if test "$wxUSE_XML" = "yes" ; then
37159 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37160fi
37161if test "$wxUSE_ODBC" != "no" ; then
37162 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37163 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37164fi
37165if test "$wxUSE_HTML" = "yes" ; then
37166 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37167fi
37168
37169if test "$wxUSE_GUI" != "yes"; then
37170 CORE_GUI_LIBS=""
37171fi
37172
37173
37174
37175
37176
37177
37178
37179
37180if test "$wxUSE_MAC" = 1 ; then
de59c161 37181 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework WebKit -framework System"
a848cd7e
SC
37182fi
37183if test "$wxUSE_COCOA" = 1 ; then
37184 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37185fi
37186
37187
37188LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37189
37190have_cos=0
37191have_floor=0
37192
37193for ac_func in cos
37194do
37195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37196echo "$as_me:$LINENO: checking for $ac_func" >&5
37197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37198if eval "test \"\${$as_ac_var+set}\" = set"; then
37199 echo $ECHO_N "(cached) $ECHO_C" >&6
37200else
37201 cat >conftest.$ac_ext <<_ACEOF
37202/* confdefs.h. */
37203_ACEOF
37204cat confdefs.h >>conftest.$ac_ext
37205cat >>conftest.$ac_ext <<_ACEOF
37206/* end confdefs.h. */
ac1cb8d3
VS
37207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37209#define $ac_func innocuous_$ac_func
37210
a848cd7e
SC
37211/* System header to define __stub macros and hopefully few prototypes,
37212 which can conflict with char $ac_func (); below.
37213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37214 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37215
a848cd7e
SC
37216#ifdef __STDC__
37217# include <limits.h>
37218#else
37219# include <assert.h>
37220#endif
ac1cb8d3
VS
37221
37222#undef $ac_func
37223
a848cd7e
SC
37224/* Override any gcc2 internal prototype to avoid an error. */
37225#ifdef __cplusplus
37226extern "C"
37227{
37228#endif
37229/* We use char because int might match the return type of a gcc2
37230 builtin and then its argument prototype would still apply. */
37231char $ac_func ();
37232/* The GNU C library defines this for functions which it implements
37233 to always fail with ENOSYS. Some functions are actually named
37234 something starting with __ and the normal name is an alias. */
37235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37236choke me
37237#else
37238char (*f) () = $ac_func;
37239#endif
37240#ifdef __cplusplus
37241}
37242#endif
37243
37244int
37245main ()
37246{
37247return f != $ac_func;
37248 ;
37249 return 0;
37250}
37251_ACEOF
37252rm -f conftest.$ac_objext conftest$ac_exeext
37253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37254 (eval $ac_link) 2>conftest.er1
a848cd7e 37255 ac_status=$?
ac1cb8d3
VS
37256 grep -v '^ *+' conftest.er1 >conftest.err
37257 rm -f conftest.er1
37258 cat conftest.err >&5
a848cd7e
SC
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); } &&
ac1cb8d3
VS
37261 { ac_try='test -z "$ac_c_werror_flag"
37262 || test ! -s conftest.err'
37263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37264 (eval $ac_try) 2>&5
37265 ac_status=$?
37266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267 (exit $ac_status); }; } &&
37268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37270 (eval $ac_try) 2>&5
37271 ac_status=$?
37272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273 (exit $ac_status); }; }; then
37274 eval "$as_ac_var=yes"
37275else
37276 echo "$as_me: failed program was:" >&5
37277sed 's/^/| /' conftest.$ac_ext >&5
37278
37279eval "$as_ac_var=no"
37280fi
ac1cb8d3
VS
37281rm -f conftest.err conftest.$ac_objext \
37282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37283fi
37284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37285echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37286if test `eval echo '${'$as_ac_var'}'` = yes; then
37287 cat >>confdefs.h <<_ACEOF
37288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37289_ACEOF
37290 have_cos=1
37291fi
37292done
37293
37294
37295for ac_func in floor
37296do
37297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37298echo "$as_me:$LINENO: checking for $ac_func" >&5
37299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37300if eval "test \"\${$as_ac_var+set}\" = set"; then
37301 echo $ECHO_N "(cached) $ECHO_C" >&6
37302else
37303 cat >conftest.$ac_ext <<_ACEOF
37304/* confdefs.h. */
37305_ACEOF
37306cat confdefs.h >>conftest.$ac_ext
37307cat >>conftest.$ac_ext <<_ACEOF
37308/* end confdefs.h. */
ac1cb8d3
VS
37309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37311#define $ac_func innocuous_$ac_func
37312
a848cd7e
SC
37313/* System header to define __stub macros and hopefully few prototypes,
37314 which can conflict with char $ac_func (); below.
37315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37316 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37317
a848cd7e
SC
37318#ifdef __STDC__
37319# include <limits.h>
37320#else
37321# include <assert.h>
37322#endif
ac1cb8d3
VS
37323
37324#undef $ac_func
37325
a848cd7e
SC
37326/* Override any gcc2 internal prototype to avoid an error. */
37327#ifdef __cplusplus
37328extern "C"
37329{
37330#endif
37331/* We use char because int might match the return type of a gcc2
37332 builtin and then its argument prototype would still apply. */
37333char $ac_func ();
37334/* The GNU C library defines this for functions which it implements
37335 to always fail with ENOSYS. Some functions are actually named
37336 something starting with __ and the normal name is an alias. */
37337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37338choke me
37339#else
37340char (*f) () = $ac_func;
37341#endif
37342#ifdef __cplusplus
37343}
37344#endif
37345
37346int
37347main ()
37348{
37349return f != $ac_func;
37350 ;
37351 return 0;
37352}
37353_ACEOF
37354rm -f conftest.$ac_objext conftest$ac_exeext
37355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37356 (eval $ac_link) 2>conftest.er1
a848cd7e 37357 ac_status=$?
ac1cb8d3
VS
37358 grep -v '^ *+' conftest.er1 >conftest.err
37359 rm -f conftest.er1
37360 cat conftest.err >&5
a848cd7e
SC
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); } &&
ac1cb8d3
VS
37363 { ac_try='test -z "$ac_c_werror_flag"
37364 || test ! -s conftest.err'
37365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37366 (eval $ac_try) 2>&5
37367 ac_status=$?
37368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369 (exit $ac_status); }; } &&
37370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37372 (eval $ac_try) 2>&5
37373 ac_status=$?
37374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37375 (exit $ac_status); }; }; then
37376 eval "$as_ac_var=yes"
37377else
37378 echo "$as_me: failed program was:" >&5
37379sed 's/^/| /' conftest.$ac_ext >&5
37380
37381eval "$as_ac_var=no"
37382fi
ac1cb8d3
VS
37383rm -f conftest.err conftest.$ac_objext \
37384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37385fi
37386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37388if test `eval echo '${'$as_ac_var'}'` = yes; then
37389 cat >>confdefs.h <<_ACEOF
37390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37391_ACEOF
37392 have_floor=1
37393fi
37394done
37395
37396echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37397echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37398if test "$have_cos" = 1 -a "$have_floor" = 1; then
37399 echo "$as_me:$LINENO: result: yes" >&5
37400echo "${ECHO_T}yes" >&6
37401else
37402 echo "$as_me:$LINENO: result: no" >&5
37403echo "${ECHO_T}no" >&6
37404 LIBS="$LIBS -lm"
37405 # use different functions to avoid configure caching
37406 have_sin=0
37407 have_ceil=0
37408
37409for ac_func in sin
37410do
37411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37412echo "$as_me:$LINENO: checking for $ac_func" >&5
37413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37414if eval "test \"\${$as_ac_var+set}\" = set"; then
37415 echo $ECHO_N "(cached) $ECHO_C" >&6
37416else
37417 cat >conftest.$ac_ext <<_ACEOF
37418/* confdefs.h. */
37419_ACEOF
37420cat confdefs.h >>conftest.$ac_ext
37421cat >>conftest.$ac_ext <<_ACEOF
37422/* end confdefs.h. */
ac1cb8d3
VS
37423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37425#define $ac_func innocuous_$ac_func
37426
a848cd7e
SC
37427/* System header to define __stub macros and hopefully few prototypes,
37428 which can conflict with char $ac_func (); below.
37429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37430 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37431
a848cd7e
SC
37432#ifdef __STDC__
37433# include <limits.h>
37434#else
37435# include <assert.h>
37436#endif
ac1cb8d3
VS
37437
37438#undef $ac_func
37439
a848cd7e
SC
37440/* Override any gcc2 internal prototype to avoid an error. */
37441#ifdef __cplusplus
37442extern "C"
37443{
37444#endif
37445/* We use char because int might match the return type of a gcc2
37446 builtin and then its argument prototype would still apply. */
37447char $ac_func ();
37448/* The GNU C library defines this for functions which it implements
37449 to always fail with ENOSYS. Some functions are actually named
37450 something starting with __ and the normal name is an alias. */
37451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37452choke me
37453#else
37454char (*f) () = $ac_func;
37455#endif
37456#ifdef __cplusplus
37457}
37458#endif
37459
37460int
37461main ()
37462{
37463return f != $ac_func;
37464 ;
37465 return 0;
37466}
37467_ACEOF
37468rm -f conftest.$ac_objext conftest$ac_exeext
37469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37470 (eval $ac_link) 2>conftest.er1
a848cd7e 37471 ac_status=$?
ac1cb8d3
VS
37472 grep -v '^ *+' conftest.er1 >conftest.err
37473 rm -f conftest.er1
37474 cat conftest.err >&5
a848cd7e
SC
37475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476 (exit $ac_status); } &&
ac1cb8d3
VS
37477 { ac_try='test -z "$ac_c_werror_flag"
37478 || test ! -s conftest.err'
37479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37480 (eval $ac_try) 2>&5
37481 ac_status=$?
37482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37483 (exit $ac_status); }; } &&
37484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37486 (eval $ac_try) 2>&5
37487 ac_status=$?
37488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489 (exit $ac_status); }; }; then
37490 eval "$as_ac_var=yes"
37491else
37492 echo "$as_me: failed program was:" >&5
37493sed 's/^/| /' conftest.$ac_ext >&5
37494
37495eval "$as_ac_var=no"
37496fi
ac1cb8d3
VS
37497rm -f conftest.err conftest.$ac_objext \
37498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37499fi
37500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37502if test `eval echo '${'$as_ac_var'}'` = yes; then
37503 cat >>confdefs.h <<_ACEOF
37504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37505_ACEOF
37506 have_sin=1
37507fi
37508done
37509
37510
37511for ac_func in ceil
37512do
37513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37514echo "$as_me:$LINENO: checking for $ac_func" >&5
37515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37516if eval "test \"\${$as_ac_var+set}\" = set"; then
37517 echo $ECHO_N "(cached) $ECHO_C" >&6
37518else
37519 cat >conftest.$ac_ext <<_ACEOF
37520/* confdefs.h. */
37521_ACEOF
37522cat confdefs.h >>conftest.$ac_ext
37523cat >>conftest.$ac_ext <<_ACEOF
37524/* end confdefs.h. */
ac1cb8d3
VS
37525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37527#define $ac_func innocuous_$ac_func
37528
a848cd7e
SC
37529/* System header to define __stub macros and hopefully few prototypes,
37530 which can conflict with char $ac_func (); below.
37531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37532 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37533
a848cd7e
SC
37534#ifdef __STDC__
37535# include <limits.h>
37536#else
37537# include <assert.h>
37538#endif
ac1cb8d3
VS
37539
37540#undef $ac_func
37541
a848cd7e
SC
37542/* Override any gcc2 internal prototype to avoid an error. */
37543#ifdef __cplusplus
37544extern "C"
37545{
37546#endif
37547/* We use char because int might match the return type of a gcc2
37548 builtin and then its argument prototype would still apply. */
37549char $ac_func ();
37550/* The GNU C library defines this for functions which it implements
37551 to always fail with ENOSYS. Some functions are actually named
37552 something starting with __ and the normal name is an alias. */
37553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37554choke me
37555#else
37556char (*f) () = $ac_func;
37557#endif
37558#ifdef __cplusplus
37559}
37560#endif
37561
37562int
37563main ()
37564{
37565return f != $ac_func;
37566 ;
37567 return 0;
37568}
37569_ACEOF
37570rm -f conftest.$ac_objext conftest$ac_exeext
37571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37572 (eval $ac_link) 2>conftest.er1
a848cd7e 37573 ac_status=$?
ac1cb8d3
VS
37574 grep -v '^ *+' conftest.er1 >conftest.err
37575 rm -f conftest.er1
37576 cat conftest.err >&5
a848cd7e
SC
37577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37578 (exit $ac_status); } &&
ac1cb8d3
VS
37579 { ac_try='test -z "$ac_c_werror_flag"
37580 || test ! -s conftest.err'
37581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37582 (eval $ac_try) 2>&5
37583 ac_status=$?
37584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585 (exit $ac_status); }; } &&
37586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37588 (eval $ac_try) 2>&5
37589 ac_status=$?
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); }; }; then
37592 eval "$as_ac_var=yes"
37593else
37594 echo "$as_me: failed program was:" >&5
37595sed 's/^/| /' conftest.$ac_ext >&5
37596
37597eval "$as_ac_var=no"
37598fi
ac1cb8d3
VS
37599rm -f conftest.err conftest.$ac_objext \
37600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37601fi
37602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37603echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37604if test `eval echo '${'$as_ac_var'}'` = yes; then
37605 cat >>confdefs.h <<_ACEOF
37606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37607_ACEOF
37608 have_ceil=1
37609fi
37610done
37611
37612 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37613echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37614 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37615 echo "$as_me:$LINENO: result: yes" >&5
37616echo "${ECHO_T}yes" >&6
37617 else
37618 echo "$as_me:$LINENO: result: no" >&5
37619echo "${ECHO_T}no" >&6
37620 # not sure we should warn the user, crash, etc.
37621 fi
37622fi
37623
37624if test "$wxUSE_GUI" = "yes"; then
37625
37626
37627 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37628 drawing dynamic erase event exec font image \
37629 minimal propsize rotate shaped widgets render"
37630
37631 if test "$wxUSE_MONOLITHIC" != "yes"; then
37632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37633 fi
37634else
37635 SAMPLES_SUBDIRS="console"
37636fi
37637
37638
37639INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37640-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37641
37642if test "$GXX" = yes ; then
37643 CXXWARNINGS="-Wall"
37644 fi
37645
37646EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37647
37648CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37649CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37650CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37651
37652
37653LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37654EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37655EXTRALIBS_XML="$EXPAT_LINK"
37656EXTRALIBS_HTML="$MSPACK_LINK"
37657EXTRALIBS_ODBC="$ODBC_LINK"
37658if test "$wxUSE_GUI" = "yes"; then
37659 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37660fi
37661if test "$wxUSE_OPENGL" = "yes"; then
37662 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37663fi
37664
37665LDFLAGS="$LDFLAGS $PROFILE"
37666
37667if test "$wxUSE_GTK" = 1; then
37668 WXCONFIG_INCLUDE=
37669else
37670 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37671fi
37672
37673WXCONFIG_EXTRALIBS="$LIBS"
37674
37675if test "$wxUSE_REGEX" = "builtin" ; then
37676 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37677fi
37678if test "$wxUSE_EXPAT" = "builtin" ; then
37679 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37680fi
37681if test "$wxUSE_ODBC" = "builtin" ; then
37682 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37683fi
37684if test "$wxUSE_LIBTIFF" = "builtin" ; then
37685 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37686fi
37687if test "$wxUSE_LIBJPEG" = "builtin" ; then
37688 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37689fi
37690if test "$wxUSE_LIBPNG" = "builtin" ; then
37691 wxconfig_3rdparty="$wxconfig_3rdparty png"
37692fi
37693if test "$wxUSE_ZLIB" = "builtin" ; then
37694 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37695fi
37696if test "$wxUSE_ODBC" = "builtin" ; then
37697 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37698fi
37699
37700for i in $wxconfig_3rdparty ; do
37701 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37702done
37703
37704
37705if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37706 WXUNIV=1
37707else
37708 WXUNIV=0
37709fi
37710
37711
37712
37713
37714
37715
37716
37717
37718
37719if test $wxUSE_MONOLITHIC = "yes" ; then
37720 MONOLITHIC=1
37721else
37722 MONOLITHIC=0
37723fi
37724
37725if test $wxUSE_PLUGINS = "yes" ; then
37726 USE_PLUGINS=1
37727else
37728 USE_PLUGINS=0
37729fi
37730
37731if test $wxUSE_ODBC != "no" ; then
37732 USE_ODBC=1
37733else
37734 USE_ODBC=0
37735fi
37736
37737if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37738 OFFICIAL_BUILD=1
37739else
37740 OFFICIAL_BUILD=0
37741fi
37742
37743
37744
37745
37746
37747
37748
37749
37750
37751
37752
37753
37754
37755
37756
37757
37758
37759
37760
37761
37762
37763TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37764
37765
37766
37767
37768
37769
37770
37771
37772
37773 if test "x$BAKEFILE_HOST" = "x"; then
37774 BAKEFILE_HOST="${host}"
37775 fi
37776
37777 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37778
37779 if test -n "$ac_tool_prefix"; then
37780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37781set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37782echo "$as_me:$LINENO: checking for $ac_word" >&5
37783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37784if test "${ac_cv_prog_RANLIB+set}" = set; then
37785 echo $ECHO_N "(cached) $ECHO_C" >&6
37786else
37787 if test -n "$RANLIB"; then
37788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37789else
37790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37791for as_dir in $PATH
37792do
37793 IFS=$as_save_IFS
37794 test -z "$as_dir" && as_dir=.
37795 for ac_exec_ext in '' $ac_executable_extensions; do
37796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37799 break 2
37800 fi
37801done
37802done
37803
37804fi
37805fi
37806RANLIB=$ac_cv_prog_RANLIB
37807if test -n "$RANLIB"; then
37808 echo "$as_me:$LINENO: result: $RANLIB" >&5
37809echo "${ECHO_T}$RANLIB" >&6
37810else
37811 echo "$as_me:$LINENO: result: no" >&5
37812echo "${ECHO_T}no" >&6
37813fi
37814
37815fi
37816if test -z "$ac_cv_prog_RANLIB"; then
37817 ac_ct_RANLIB=$RANLIB
37818 # Extract the first word of "ranlib", so it can be a program name with args.
37819set dummy ranlib; ac_word=$2
37820echo "$as_me:$LINENO: checking for $ac_word" >&5
37821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37822if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37823 echo $ECHO_N "(cached) $ECHO_C" >&6
37824else
37825 if test -n "$ac_ct_RANLIB"; then
37826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37827else
37828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37829for as_dir in $PATH
37830do
37831 IFS=$as_save_IFS
37832 test -z "$as_dir" && as_dir=.
37833 for ac_exec_ext in '' $ac_executable_extensions; do
37834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37835 ac_cv_prog_ac_ct_RANLIB="ranlib"
37836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37837 break 2
37838 fi
37839done
37840done
37841
37842 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37843fi
37844fi
37845ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37846if test -n "$ac_ct_RANLIB"; then
37847 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37848echo "${ECHO_T}$ac_ct_RANLIB" >&6
37849else
37850 echo "$as_me:$LINENO: result: no" >&5
37851echo "${ECHO_T}no" >&6
37852fi
37853
37854 RANLIB=$ac_ct_RANLIB
37855else
37856 RANLIB="$ac_cv_prog_RANLIB"
37857fi
37858
37859 # Find a good install program. We prefer a C program (faster),
37860# so one script is as good as another. But avoid the broken or
37861# incompatible versions:
37862# SysV /etc/install, /usr/sbin/install
37863# SunOS /usr/etc/install
37864# IRIX /sbin/install
37865# AIX /bin/install
37866# AmigaOS /C/install, which installs bootblocks on floppy discs
37867# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37868# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37869# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37870# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37871# ./install, which can be erroneously created by make from ./install.sh.
37872echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37873echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37874if test -z "$INSTALL"; then
37875if test "${ac_cv_path_install+set}" = set; then
37876 echo $ECHO_N "(cached) $ECHO_C" >&6
37877else
37878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37879for as_dir in $PATH
37880do
37881 IFS=$as_save_IFS
37882 test -z "$as_dir" && as_dir=.
37883 # Account for people who put trailing slashes in PATH elements.
37884case $as_dir/ in
37885 ./ | .// | /cC/* | \
37886 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37887 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37888 /usr/ucb/* ) ;;
37889 *)
37890 # OSF1 and SCO ODT 3.0 have their own names for install.
37891 # Don't use installbsd from OSF since it installs stuff as root
37892 # by default.
37893 for ac_prog in ginstall scoinst install; do
37894 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37895 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37896 if test $ac_prog = install &&
37897 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37898 # AIX install. It has an incompatible calling convention.
37899 :
37900 elif test $ac_prog = install &&
37901 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37902 # program-specific install script used by HP pwplus--don't use.
37903 :
37904 else
37905 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37906 break 3
37907 fi
37908 fi
a848cd7e
SC
37909 done
37910 done
37911 ;;
37912esac
37913done
37914
37915
37916fi
37917 if test "${ac_cv_path_install+set}" = set; then
37918 INSTALL=$ac_cv_path_install
37919 else
37920 # As a last resort, use the slow shell script. We don't cache a
37921 # path for INSTALL within a source directory, because that will
37922 # break other packages using the cache if that directory is
37923 # removed, or if the path is relative.
37924 INSTALL=$ac_install_sh
37925 fi
37926fi
37927echo "$as_me:$LINENO: result: $INSTALL" >&5
37928echo "${ECHO_T}$INSTALL" >&6
37929
37930# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37931# It thinks the first close brace ends the variable substitution.
37932test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37933
37934test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
37935
37936test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37937
37938 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37939echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37940LN_S=$as_ln_s
37941if test "$LN_S" = "ln -s"; then
37942 echo "$as_me:$LINENO: result: yes" >&5
37943echo "${ECHO_T}yes" >&6
37944else
37945 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37946echo "${ECHO_T}no, using $LN_S" >&6
37947fi
37948
37949
37950 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37951echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 37952set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
37953if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37954 echo $ECHO_N "(cached) $ECHO_C" >&6
37955else
37956 cat >conftest.make <<\_ACEOF
37957all:
37958 @echo 'ac_maketemp="$(MAKE)"'
37959_ACEOF
37960# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37961eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37962if test -n "$ac_maketemp"; then
37963 eval ac_cv_prog_make_${ac_make}_set=yes
37964else
37965 eval ac_cv_prog_make_${ac_make}_set=no
37966fi
37967rm -f conftest.make
37968fi
37969if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37970 echo "$as_me:$LINENO: result: yes" >&5
37971echo "${ECHO_T}yes" >&6
37972 SET_MAKE=
37973else
37974 echo "$as_me:$LINENO: result: no" >&5
37975echo "${ECHO_T}no" >&6
37976 SET_MAKE="MAKE=${MAKE-make}"
37977fi
37978
37979
37980
37981 if test -n "$ac_tool_prefix"; then
37982 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37983set dummy ${ac_tool_prefix}ar; ac_word=$2
37984echo "$as_me:$LINENO: checking for $ac_word" >&5
37985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37986if test "${ac_cv_prog_AR+set}" = set; then
37987 echo $ECHO_N "(cached) $ECHO_C" >&6
37988else
37989 if test -n "$AR"; then
37990 ac_cv_prog_AR="$AR" # Let the user override the test.
37991else
37992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37993for as_dir in $PATH
37994do
37995 IFS=$as_save_IFS
37996 test -z "$as_dir" && as_dir=.
37997 for ac_exec_ext in '' $ac_executable_extensions; do
37998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37999 ac_cv_prog_AR="${ac_tool_prefix}ar"
38000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38001 break 2
38002 fi
38003done
38004done
38005
38006fi
38007fi
38008AR=$ac_cv_prog_AR
38009if test -n "$AR"; then
38010 echo "$as_me:$LINENO: result: $AR" >&5
38011echo "${ECHO_T}$AR" >&6
38012else
38013 echo "$as_me:$LINENO: result: no" >&5
38014echo "${ECHO_T}no" >&6
38015fi
38016
38017fi
38018if test -z "$ac_cv_prog_AR"; then
38019 ac_ct_AR=$AR
38020 # Extract the first word of "ar", so it can be a program name with args.
38021set dummy ar; ac_word=$2
38022echo "$as_me:$LINENO: checking for $ac_word" >&5
38023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38024if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38025 echo $ECHO_N "(cached) $ECHO_C" >&6
38026else
38027 if test -n "$ac_ct_AR"; then
38028 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38029else
38030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38031for as_dir in $PATH
38032do
38033 IFS=$as_save_IFS
38034 test -z "$as_dir" && as_dir=.
38035 for ac_exec_ext in '' $ac_executable_extensions; do
38036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38037 ac_cv_prog_ac_ct_AR="ar"
38038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38039 break 2
38040 fi
38041done
38042done
38043
38044 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38045fi
38046fi
38047ac_ct_AR=$ac_cv_prog_ac_ct_AR
38048if test -n "$ac_ct_AR"; then
38049 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38050echo "${ECHO_T}$ac_ct_AR" >&6
38051else
38052 echo "$as_me:$LINENO: result: no" >&5
38053echo "${ECHO_T}no" >&6
38054fi
38055
38056 AR=$ac_ct_AR
38057else
38058 AR="$ac_cv_prog_AR"
38059fi
38060
38061 if test -n "$ac_tool_prefix"; then
38062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38063set dummy ${ac_tool_prefix}strip; ac_word=$2
38064echo "$as_me:$LINENO: checking for $ac_word" >&5
38065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38066if test "${ac_cv_prog_STRIP+set}" = set; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38068else
38069 if test -n "$STRIP"; then
38070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38071else
38072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38073for as_dir in $PATH
38074do
38075 IFS=$as_save_IFS
38076 test -z "$as_dir" && as_dir=.
38077 for ac_exec_ext in '' $ac_executable_extensions; do
38078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38081 break 2
38082 fi
38083done
38084done
38085
38086fi
38087fi
38088STRIP=$ac_cv_prog_STRIP
38089if test -n "$STRIP"; then
38090 echo "$as_me:$LINENO: result: $STRIP" >&5
38091echo "${ECHO_T}$STRIP" >&6
38092else
38093 echo "$as_me:$LINENO: result: no" >&5
38094echo "${ECHO_T}no" >&6
38095fi
38096
38097fi
38098if test -z "$ac_cv_prog_STRIP"; then
38099 ac_ct_STRIP=$STRIP
38100 # Extract the first word of "strip", so it can be a program name with args.
38101set dummy strip; ac_word=$2
38102echo "$as_me:$LINENO: checking for $ac_word" >&5
38103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38104if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38105 echo $ECHO_N "(cached) $ECHO_C" >&6
38106else
38107 if test -n "$ac_ct_STRIP"; then
38108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38109else
38110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38111for as_dir in $PATH
38112do
38113 IFS=$as_save_IFS
38114 test -z "$as_dir" && as_dir=.
38115 for ac_exec_ext in '' $ac_executable_extensions; do
38116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38117 ac_cv_prog_ac_ct_STRIP="strip"
38118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38119 break 2
38120 fi
38121done
38122done
38123
38124 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38125fi
38126fi
38127ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38128if test -n "$ac_ct_STRIP"; then
38129 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38130echo "${ECHO_T}$ac_ct_STRIP" >&6
38131else
38132 echo "$as_me:$LINENO: result: no" >&5
38133echo "${ECHO_T}no" >&6
38134fi
38135
38136 STRIP=$ac_ct_STRIP
38137else
38138 STRIP="$ac_cv_prog_STRIP"
38139fi
38140
38141 if test -n "$ac_tool_prefix"; then
38142 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38143set dummy ${ac_tool_prefix}nm; ac_word=$2
38144echo "$as_me:$LINENO: checking for $ac_word" >&5
38145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38146if test "${ac_cv_prog_NM+set}" = set; then
38147 echo $ECHO_N "(cached) $ECHO_C" >&6
38148else
38149 if test -n "$NM"; then
38150 ac_cv_prog_NM="$NM" # Let the user override the test.
38151else
38152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38153for as_dir in $PATH
38154do
38155 IFS=$as_save_IFS
38156 test -z "$as_dir" && as_dir=.
38157 for ac_exec_ext in '' $ac_executable_extensions; do
38158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38159 ac_cv_prog_NM="${ac_tool_prefix}nm"
38160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38161 break 2
38162 fi
38163done
38164done
38165
38166fi
38167fi
38168NM=$ac_cv_prog_NM
38169if test -n "$NM"; then
38170 echo "$as_me:$LINENO: result: $NM" >&5
38171echo "${ECHO_T}$NM" >&6
38172else
38173 echo "$as_me:$LINENO: result: no" >&5
38174echo "${ECHO_T}no" >&6
38175fi
38176
38177fi
38178if test -z "$ac_cv_prog_NM"; then
38179 ac_ct_NM=$NM
38180 # Extract the first word of "nm", so it can be a program name with args.
38181set dummy nm; ac_word=$2
38182echo "$as_me:$LINENO: checking for $ac_word" >&5
38183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38184if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38186else
38187 if test -n "$ac_ct_NM"; then
38188 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38189else
38190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38191for as_dir in $PATH
38192do
38193 IFS=$as_save_IFS
38194 test -z "$as_dir" && as_dir=.
38195 for ac_exec_ext in '' $ac_executable_extensions; do
38196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38197 ac_cv_prog_ac_ct_NM="nm"
38198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38199 break 2
38200 fi
38201done
38202done
38203
38204 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38205fi
38206fi
38207ac_ct_NM=$ac_cv_prog_ac_ct_NM
38208if test -n "$ac_ct_NM"; then
38209 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38210echo "${ECHO_T}$ac_ct_NM" >&6
38211else
38212 echo "$as_me:$LINENO: result: no" >&5
38213echo "${ECHO_T}no" >&6
38214fi
38215
38216 NM=$ac_ct_NM
38217else
38218 NM="$ac_cv_prog_NM"
38219fi
38220
38221
38222 case ${BAKEFILE_HOST} in
38223 *-hp-hpux* )
38224 INSTALL_DIR="mkdir"
38225 ;;
38226 *) INSTALL_DIR="$INSTALL -d"
38227 ;;
38228 esac
38229
38230
38231 LDFLAGS_GUI=
38232 case ${BAKEFILE_HOST} in
38233 *-*-cygwin* | *-*-mingw32* )
38234 LDFLAGS_GUI="-mwindows"
38235 esac
38236
38237
38238 fi
38239
38240 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38241echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38242if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38243 echo $ECHO_N "(cached) $ECHO_C" >&6
38244else
38245
38246 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38247 egrep -s GNU > /dev/null); then
38248 bakefile_cv_prog_makeisgnu="yes"
38249 else
38250 bakefile_cv_prog_makeisgnu="no"
38251 fi
38252
38253fi
38254echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38255echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38256
38257 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38258 IF_GNU_MAKE=""
38259 else
38260 IF_GNU_MAKE="#"
38261 fi
38262
38263
38264
38265 PLATFORM_UNIX=0
38266 PLATFORM_WIN32=0
38267 PLATFORM_MSDOS=0
38268 PLATFORM_MAC=0
38269 PLATFORM_MACOSX=0
38270 PLATFORM_OS2=0
38271
38272 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38273 case "${BAKEFILE_HOST}" in
38274 *-*-cygwin* | *-*-mingw32* )
38275 PLATFORM_WIN32=1
38276 ;;
38277 *-pc-msdosdjgpp )
38278 PLATFORM_MSDOS=1
38279 ;;
38280 *-pc-os2_emx | *-pc-os2-emx )
38281 PLATFORM_OS2=1
38282 ;;
38283 powerpc-*-darwin* )
38284 PLATFORM_MAC=1
38285 PLATFORM_MACOSX=1
38286 ;;
38287 * )
38288 PLATFORM_UNIX=1
38289 ;;
38290 esac
38291 else
38292 case "$BAKEFILE_FORCE_PLATFORM" in
38293 win32 )
38294 PLATFORM_WIN32=1
38295 ;;
38296 msdos )
38297 PLATFORM_MSDOS=1
38298 ;;
38299 os2 )
38300 PLATFORM_OS2=1
38301 ;;
38302 darwin )
38303 PLATFORM_MAC=1
38304 PLATFORM_MACOSX=1
38305 ;;
38306 unix )
38307 PLATFORM_UNIX=1
38308 ;;
38309 * )
38310 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38311echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38312 { (exit 1); exit 1; }; }
38313 ;;
38314 esac
38315 fi
38316
38317
38318
38319
38320
38321
38322
38323
38324
38325 # Check whether --enable-omf or --disable-omf was given.
38326if test "${enable_omf+set}" = set; then
38327 enableval="$enable_omf"
38328 bk_os2_use_omf="$enableval"
38329fi;
38330
38331 case "${BAKEFILE_HOST}" in
38332 *-*-darwin* )
38333 CFLAGS="$CFLAGS -fno-common"
38334 CXXFLAGS="$CXXFLAGS -fno-common"
38335 ;;
38336
38337 *-pc-os2_emx | *-pc-os2-emx )
38338 if test "x$bk_os2_use_omf" = "xyes" ; then
38339 AR=emxomfar
38340 RANLIB=:
38341 LDFLAGS="-Zomf $LDFLAGS"
38342 CFLAGS="-Zomf $CFLAGS"
38343 CXXFLAGS="-Zomf $CXXFLAGS"
38344 OS2_LIBEXT="lib"
38345 else
38346 OS2_LIBEXT="a"
38347 fi
38348 ;;
38349 esac
38350
38351
38352 SO_SUFFIX="so"
38353 SO_SUFFIX_MODULE="so"
38354 EXEEXT=""
38355 LIBPREFIX="lib"
38356 LIBEXT=".a"
38357 DLLPREFIX="lib"
38358 DLLPREFIX_MODULE=""
38359 DLLIMP_SUFFIX=""
38360
38361 case "${BAKEFILE_HOST}" in
38362 *-hp-hpux* )
38363 SO_SUFFIX="sl"
38364 SO_SUFFIX_MODULE="sl"
38365 ;;
38366 *-*-aix* )
38367 SO_SUFFIX="a"
38368 SO_SUFFIX_MODULE="a"
38369 ;;
38370 *-*-cygwin* | *-*-mingw32* )
38371 SO_SUFFIX="dll"
38372 SO_SUFFIX_MODULE="dll"
38373 DLLIMP_SUFFIX="dll.a"
38374 EXEEXT=".exe"
38375 DLLPREFIX=""
38376 ;;
38377 *-pc-msdosdjgpp )
38378 EXEEXT=".exe"
38379 DLLPREFIX=""
38380 ;;
38381 *-pc-os2_emx | *-pc-os2-emx )
38382 SO_SUFFIX="dll"
38383 SO_SUFFIX_MODULE="dll"
38384 DLLIMP_SUFFIX=$OS2_LIBEXT
38385 EXEEXT=".exe"
38386 DLLPREFIX=""
38387 LIBPREFIX=""
38388 LIBEXT=".$OS2_LIBEXT"
38389 ;;
38390 powerpc-*-darwin* )
38391 SO_SUFFIX="dylib"
38392 SO_SUFFIX_MODULE="bundle"
38393 ;;
38394 esac
38395
38396 if test "x$DLLIMP_SUFFIX" = "x" ; then
38397 DLLIMP_SUFFIX="$SO_SUFFIX"
38398 fi
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410 SHARED_LD_CC="\$(CC) -shared -o"
38411 SHARED_LD_CXX="\$(CXX) -shared -o"
38412
38413 if test "x$GCC" = "xyes"; then
38414 PIC_FLAG="-fPIC"
38415 fi
38416
38417 case "${BAKEFILE_HOST}" in
38418 *-hp-hpux* )
38419 if test "x$GCC" = "xyes"; then
38420 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38421 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38422 else
38423 LDFLAGS="$LDFLAGS -L/usr/lib"
38424
38425 SHARED_LD_CC="${CC} -b -o"
38426 SHARED_LD_CXX="${CXX} -b -o"
38427 PIC_FLAG="+Z"
38428 fi
38429 ;;
38430
38431 *-*-linux* )
38432 if test "x$GCC" != "xyes"; then
38433 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38434echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38435if test "${bakefile_cv_prog_icc+set}" = set; then
38436 echo $ECHO_N "(cached) $ECHO_C" >&6
38437else
38438
38439 cat >conftest.$ac_ext <<_ACEOF
38440/* confdefs.h. */
38441_ACEOF
38442cat confdefs.h >>conftest.$ac_ext
38443cat >>conftest.$ac_ext <<_ACEOF
38444/* end confdefs.h. */
38445
38446int
38447main ()
38448{
38449
38450 #ifndef __INTEL_COMPILER
38451 #error Not icc
38452 #endif
38453
38454 ;
38455 return 0;
38456}
38457_ACEOF
38458rm -f conftest.$ac_objext
38459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38460 (eval $ac_compile) 2>conftest.er1
a848cd7e 38461 ac_status=$?
ac1cb8d3
VS
38462 grep -v '^ *+' conftest.er1 >conftest.err
38463 rm -f conftest.er1
38464 cat conftest.err >&5
a848cd7e
SC
38465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 (exit $ac_status); } &&
ac1cb8d3
VS
38467 { ac_try='test -z "$ac_c_werror_flag"
38468 || test ! -s conftest.err'
38469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38470 (eval $ac_try) 2>&5
38471 ac_status=$?
38472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473 (exit $ac_status); }; } &&
38474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38476 (eval $ac_try) 2>&5
38477 ac_status=$?
38478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38479 (exit $ac_status); }; }; then
38480 bakefile_cv_prog_icc=yes
38481else
38482 echo "$as_me: failed program was:" >&5
38483sed 's/^/| /' conftest.$ac_ext >&5
38484
38485bakefile_cv_prog_icc=no
38486
38487fi
ac1cb8d3 38488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38489
38490fi
38491echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38492echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38493 if test "$bakefile_cv_prog_icc" = "yes"; then
38494 PIC_FLAG="-KPIC"
38495 fi
38496 fi
38497 ;;
38498
38499 *-*-solaris2* )
38500 if test "x$GCC" != xyes ; then
38501 SHARED_LD_CC="${CC} -G -o"
38502 SHARED_LD_CXX="${CXX} -G -o"
38503 PIC_FLAG="-KPIC"
38504 fi
38505 ;;
38506
38507 *-*-darwin* )
38508
38509 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38510echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38511if test "${wx_cv_gcc31+set}" = set; then
38512 echo $ECHO_N "(cached) $ECHO_C" >&6
38513else
38514
38515 cat >conftest.$ac_ext <<_ACEOF
38516/* confdefs.h. */
38517_ACEOF
38518cat confdefs.h >>conftest.$ac_ext
38519cat >>conftest.$ac_ext <<_ACEOF
38520/* end confdefs.h. */
38521
38522int
38523main ()
38524{
38525
38526 #if (__GNUC__ < 3) || \
38527 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38528 #error old gcc
38529 #endif
38530
38531 ;
38532 return 0;
38533}
38534_ACEOF
38535rm -f conftest.$ac_objext
38536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38537 (eval $ac_compile) 2>conftest.er1
a848cd7e 38538 ac_status=$?
ac1cb8d3
VS
38539 grep -v '^ *+' conftest.er1 >conftest.err
38540 rm -f conftest.er1
38541 cat conftest.err >&5
a848cd7e
SC
38542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38543 (exit $ac_status); } &&
ac1cb8d3
VS
38544 { ac_try='test -z "$ac_c_werror_flag"
38545 || test ! -s conftest.err'
38546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38547 (eval $ac_try) 2>&5
38548 ac_status=$?
38549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38550 (exit $ac_status); }; } &&
38551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38553 (eval $ac_try) 2>&5
38554 ac_status=$?
38555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); }; }; then
38557
38558 wx_cv_gcc31=yes
38559
38560else
38561 echo "$as_me: failed program was:" >&5
38562sed 's/^/| /' conftest.$ac_ext >&5
38563
38564
38565 wx_cv_gcc31=no
38566
38567
38568fi
ac1cb8d3 38569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38570
38571fi
38572echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38573echo "${ECHO_T}$wx_cv_gcc31" >&6
38574 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38575
38576D='$'
38577cat <<EOF >shared-ld-sh
a848cd7e
SC
38578#!/bin/sh
38579#-----------------------------------------------------------------------------
38580#-- Name: distrib/mac/shared-ld-sh
38581#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38582#-- Author: Gilles Depeyrot
38583#-- Copyright: (c) 2002 Gilles Depeyrot
38584#-- Licence: any use permitted
38585#-----------------------------------------------------------------------------
38586
38587verbose=0
38588args=""
38589objects=""
38590linking_flag="-dynamiclib"
38591
473276a9
VS
38592while test ${D}# -gt 0; do
38593 case ${D}1 in
a848cd7e
SC
38594
38595 -v)
38596 verbose=1
38597 ;;
38598
38599 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38600 # collect these options and values
473276a9 38601 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38602 shift
38603 ;;
38604
38605 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38606 # collect these options
473276a9 38607 args="${D}{args} ${D}1"
a848cd7e
SC
38608 ;;
38609
38610 -dynamiclib|-bundle)
473276a9 38611 linking_flag="${D}1"
a848cd7e
SC
38612 ;;
38613
38614 -*)
473276a9 38615 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38616 exit 1
38617 ;;
38618
38619 *.o | *.a | *.dylib)
38620 # collect object files
473276a9 38621 objects="${D}{objects} ${D}1"
a848cd7e
SC
38622 ;;
38623
38624 *)
473276a9 38625 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38626 exit 1
38627 ;;
38628
38629 esac
38630 shift
38631done
38632
38633#
38634# Link one module containing all the others
38635#
473276a9
VS
38636if test ${D}{verbose} = 1; then
38637 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38638fi
473276a9
VS
38639c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38640status=${D}?
38641if test ${D}{status} != 0; then
38642 exit ${D}{status}
a848cd7e
SC
38643fi
38644
38645#
38646# Link the shared library from the single module created
38647#
473276a9
VS
38648if test ${D}{verbose} = 1; then
38649 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38650fi
473276a9
VS
38651c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38652status=${D}?
38653if test ${D}{status} != 0; then
38654 exit ${D}{status}
a848cd7e
SC
38655fi
38656
38657#
38658# Remove intermediate module
38659#
473276a9 38660rm -f master.${D}${D}.o
a848cd7e
SC
38661
38662exit 0
38663EOF
473276a9 38664
a848cd7e
SC
38665 chmod +x shared-ld-sh
38666
38667 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38668 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38669 SHARED_LD_CXX="$SHARED_LD_CC"
38670 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38671 else
38672 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38673 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38674 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38675 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38676 fi
38677
38678 PIC_FLAG="-dynamic -fPIC"
38679 ;;
38680
38681 *-*-aix* )
38682 if test "x$GCC" != "xyes"; then
38683 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38684set dummy makeC++SharedLib; ac_word=$2
38685echo "$as_me:$LINENO: checking for $ac_word" >&5
38686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38687if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38688 echo $ECHO_N "(cached) $ECHO_C" >&6
38689else
38690 if test -n "$AIX_CXX_LD"; then
38691 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38692else
38693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38694for as_dir in $PATH
38695do
38696 IFS=$as_save_IFS
38697 test -z "$as_dir" && as_dir=.
38698 for ac_exec_ext in '' $ac_executable_extensions; do
38699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38700 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38702 break 2
38703 fi
38704done
38705done
38706
38707 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38708fi
38709fi
38710AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38711if test -n "$AIX_CXX_LD"; then
38712 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38713echo "${ECHO_T}$AIX_CXX_LD" >&6
38714else
38715 echo "$as_me:$LINENO: result: no" >&5
38716echo "${ECHO_T}no" >&6
38717fi
38718
38719 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38720 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38721 fi
38722 ;;
38723
38724 *-*-beos* )
38725 SHARED_LD_CC="${LD} -shared -o"
38726 SHARED_LD_CXX="${LD} -shared -o"
38727 ;;
38728
38729 *-*-irix* )
38730 if test "x$GCC" != "xyes"; then
38731 PIC_FLAG="-KPIC"
38732 fi
38733 ;;
38734
38735 *-*-cygwin* | *-*-mingw32* )
38736 PIC_FLAG=""
38737 ;;
38738
38739 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38740 SHARED_LD_CC="`pwd`/dllar.sh -o"
38741 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38742 PIC_FLAG=""
473276a9
VS
38743
38744D='$'
38745cat <<EOF >dllar.sh
38746#!/bin/sh
38747#
38748# dllar - a tool to build both a .dll and an .a file
38749# from a set of object (.o) files for EMX/OS2.
38750#
38751# Written by Andrew Zabolotny, bit@freya.etu.ru
38752# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38753#
38754# This script will accept a set of files on the command line.
38755# All the public symbols from the .o files will be exported into
38756# a .DEF file, then linker will be run (through gcc) against them to
38757# build a shared library consisting of all given .o files. All libraries
38758# (.a) will be first decompressed into component .o files then act as
38759# described above. You can optionally give a description (-d "description")
38760# which will be put into .DLL. To see the list of accepted options (as well
38761# as command-line format) simply run this program without options. The .DLL
38762# is built to be imported by name (there is no guarantee that new versions
38763# of the library you build will have same ordinals for same symbols).
38764#
38765# dllar is free software; you can redistribute it and/or modify
38766# it under the terms of the GNU General Public License as published by
38767# the Free Software Foundation; either version 2, or (at your option)
38768# any later version.
38769#
38770# dllar is distributed in the hope that it will be useful,
38771# but WITHOUT ANY WARRANTY; without even the implied warranty of
38772# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38773# GNU General Public License for more details.
38774#
38775# You should have received a copy of the GNU General Public License
38776# along with dllar; see the file COPYING. If not, write to the Free
38777# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38778# 02111-1307, USA.
38779
38780# To successfuly run this program you will need:
38781# - Current drive should have LFN support (HPFS, ext2, network, etc)
38782# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38783# - gcc
38784# (used to build the .dll)
38785# - emxexp
38786# (used to create .def file from .o files)
38787# - emximp
38788# (used to create .a file from .def file)
38789# - GNU text utilites (cat, sort, uniq)
38790# used to process emxexp output
38791# - GNU file utilities (mv, rm)
38792# - GNU sed
38793# - lxlite (optional, see flag below)
38794# (used for general .dll cleanup)
38795#
38796
38797flag_USE_LXLITE=1;
38798
38799#
38800# helper functions
38801# basnam, variant of basename, which does _not_ remove the path, _iff_
38802# second argument (suffix to remove) is given
38803basnam(){
38804 case ${D}# in
38805 1)
38806 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38807 ;;
38808 2)
38809 echo ${D}1 | sed 's/'${D}2'${D}//'
38810 ;;
38811 *)
38812 echo "error in basnam ${D}*"
38813 exit 8
38814 ;;
38815 esac
38816}
38817
38818# Cleanup temporary files and output
38819CleanUp() {
38820 cd ${D}curDir
38821 for i in ${D}inputFiles ; do
38822 case ${D}i in
38823 *!)
38824 rm -rf \`basnam ${D}i !\`
38825 ;;
38826 *)
38827 ;;
38828 esac
38829 done
38830
38831 # Kill result in case of failure as there is just to many stupid make/nmake
38832 # things out there which doesn't do this.
38833 if ${D}# -eq 0 ; then
38834 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38835 fi
38836}
38837
38838# Print usage and exit script with rc=1.
38839PrintHelp() {
38840 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
38841 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
38842 echo ' -ord[inals] -exclude "symbol(s)"'
38843 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
38844 echo ' *.o *.a'
38845 echo '*> "output_file" should have no extension.'
38846 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38847 echo ' The import library name is derived from this and is set to "name".a,'
38848 echo ' unless overridden by -import'
38849 echo '*> "importlib_name" should have no extension.'
38850 echo ' If it has the .o, or .a extension, it is automatically removed.'
38851 echo ' This name is used as the import library name and may be longer and'
38852 echo ' more descriptive than the DLL name which has to follow the old '
38853 echo ' 8.3 convention of FAT.'
38854 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38855 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38856 echo ' These flags will be put at the start of GCC command line.'
38857 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
38858 echo '*> -exclude defines symbols which will not be exported. You can define'
38859 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38860 echo ' If the last character of a symbol is "*", all symbols beginning'
38861 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
38862 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
38863 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
38864 echo '*> -nocrtdll switch will disable linking the library against emx''s'
38865 echo ' C runtime DLLs.'
38866 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
38867 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38868 echo ' unchanged to GCC at the end of command line.'
38869 echo '*> If you create a DLL from a library and you do not specify -o,'
38870 echo ' the basename for DLL and import library will be set to library name,'
38871 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38872 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38873 echo ' library will be renamed into gcc_s.a.'
38874 echo '--------'
38875 echo 'Example:'
38876 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38877 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38878 CleanUp
38879 exit 1
38880}
38881
38882# Execute a command.
38883# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38884# @Uses Whatever CleanUp() uses.
38885doCommand() {
38886 echo "${D}*"
38887 eval ${D}*
38888 rcCmd=${D}?
38889
38890 if ${D}rcCmd -ne 0 ; then
38891 echo "command failed, exit code="${D}rcCmd
38892 CleanUp
38893 exit ${D}rcCmd
38894 fi
38895}
38896
38897# main routine
38898# setup globals
38899cmdLine=${D}*
38900outFile=""
38901outimpFile=""
38902inputFiles=""
38903description=""
38904CC=gcc.exe
38905CFLAGS="-s -Zcrtdll"
38906EXTRA_CFLAGS=""
38907EXPORT_BY_ORDINALS=0
38908exclude_symbols=""
38909library_flags=""
38910curDir=\`pwd\`
38911curDirS=curDir
38912case ${D}curDirS in
38913*/)
38914 ;;
38915*)
38916 curDirS=${D}{curDirS}"/"
38917 ;;
38918esac
38919# Parse commandline
38920libsToLink=0
38921while ${D}1 ; do
38922 case ${D}1 in
38923 -ord*)
38924 EXPORT_BY_ORDINALS=1;
38925 ;;
38926 -o*)
38927 shift
38928 outFile=${D}1
38929 ;;
38930 -i*)
38931 shift
38932 outimpFile=${D}1
38933 ;;
38934 -d*)
38935 shift
38936 description=${D}1
38937 ;;
38938 -f*)
38939 shift
38940 CFLAGS=${D}1
38941 ;;
38942 -c*)
38943 shift
38944 CC=${D}1
38945 ;;
38946 -h*)
38947 PrintHelp
38948 ;;
38949 -ex*)
38950 shift
38951 exclude_symbols=${D}{exclude_symbols}${D}1" "
38952 ;;
38953 -libf*)
38954 shift
38955 library_flags=${D}{library_flags}${D}1" "
38956 ;;
38957 -nocrt*)
38958 CFLAGS="-s"
38959 ;;
38960 -nolxl*)
38961 flag_USE_LXLITE=0
38962 ;;
38963 -* | /*)
38964 case ${D}1 in
38965 -L* | -l*)
38966 libsToLink=1
38967 ;;
38968 *)
38969 ;;
38970 esac
38971 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38972 ;;
38973 *)
38974 found=0;
38975 if ${D}libsToLink -ne 0 ; then
38976 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38977 else
38978 for file in ${D}1 ; do
38979 if -f ${D}file ; then
38980 inputFiles="${D}{inputFiles} ${D}file"
38981 found=1
38982 fi
38983 done
38984 if ${D}found -eq 0 ; then
38985 echo "ERROR: No file(s) found: "${D}1
38986 exit 8
38987 fi
38988 fi
38989 ;;
38990 esac
38991 shift
38992done # iterate cmdline words
38993
38994#
38995if -z "${D}inputFiles" ; then
38996 echo "dllar: no input files"
38997 PrintHelp
38998fi
38999
39000# Now extract all .o files from .a files
39001newInputFiles=""
39002for file in ${D}inputFiles ; do
39003 case ${D}file in
39004 *.a | *.lib)
39005 case ${D}file in
39006 *.a)
39007 suffix=".a"
39008 AR="ar"
39009 ;;
39010 *.lib)
39011 suffix=".lib"
39012 AR="emxomfar"
39013 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39014 ;;
39015 *)
39016 ;;
39017 esac
39018 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39019 mkdir ${D}dirname
39020 if ${D}? -ne 0 ; then
39021 echo "Failed to create subdirectory ./${D}dirname"
39022 CleanUp
39023 exit 8;
39024 fi
39025 # Append '!' to indicate archive
39026 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39027 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39028 cd ${D}curDir
39029 found=0;
39030 for subfile in ${D}dirname/*.o* ; do
39031 if -f ${D}subfile ; then
39032 found=1
39033 if -s ${D}subfile ; then
39034 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39035 newInputFiles="${D}newInputFiles ${D}subfile"
39036 fi
39037 fi
39038 done
39039 if ${D}found -eq 0 ; then
39040 echo "WARNING: there are no files in archive \'${D}file\'"
39041 fi
39042 ;;
39043 *)
39044 newInputFiles="${D}{newInputFiles} ${D}file"
39045 ;;
39046 esac
39047done
39048inputFiles="${D}newInputFiles"
39049
39050# Output filename(s).
39051do_backup=0;
39052if -z ${D}outFile ; then
39053 do_backup=1;
39054 set outFile ${D}inputFiles; outFile=${D}2
39055fi
39056
39057# If it is an archive, remove the '!' and the '_%' suffixes
39058case ${D}outFile in
39059*_%!)
39060 outFile=\`basnam ${D}outFile _%!\`
39061 ;;
39062*)
39063 ;;
39064esac
39065case ${D}outFile in
39066*.dll)
39067 outFile=\`basnam ${D}outFile .dll\`
39068 ;;
39069*.DLL)
39070 outFile=\`basnam ${D}outFile .DLL\`
39071 ;;
39072*.o)
39073 outFile=\`basnam ${D}outFile .o\`
39074 ;;
39075*.obj)
39076 outFile=\`basnam ${D}outFile .obj\`
39077 ;;
39078*.a)
39079 outFile=\`basnam ${D}outFile .a\`
39080 ;;
39081*.lib)
39082 outFile=\`basnam ${D}outFile .lib\`
39083 ;;
39084*)
39085 ;;
39086esac
39087case ${D}outimpFile in
39088*.a)
39089 outimpFile=\`basnam ${D}outimpFile .a\`
39090 ;;
39091*.lib)
39092 outimpFile=\`basnam ${D}outimpFile .lib\`
39093 ;;
39094*)
39095 ;;
39096esac
39097if -z ${D}outimpFile ; then
39098 outimpFile=${D}outFile
39099fi
39100defFile="${D}{outFile}.def"
39101arcFile="${D}{outimpFile}.a"
39102arcFile2="${D}{outimpFile}.lib"
39103dllFile="${D}outFile"
39104# Add suffix to dllFile later, first we need a version to use as
39105# name in .def file.
39106
39107if ${D}do_backup -ne 0 ; then
39108 if -f ${D}arcFile ; then
39109 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39110 fi
39111 if -f ${D}arcFile2 ; then
39112 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39113 fi
39114fi
39115
39116# Extract public symbols from all the object files.
39117tmpdefFile=${D}{defFile}_%
39118rm -f ${D}tmpdefFile
39119for file in ${D}inputFiles ; do
39120 case ${D}file in
39121 *!)
39122 ;;
39123 *)
39124 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39125 ;;
39126 esac
39127done
39128
39129# Create the def file.
39130rm -f ${D}defFile
39131echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39132dllFile="${D}dllFile.dll"
39133if -n ${D}description ; then
39134 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39135fi
39136echo "EXPORTS" >> ${D}defFile
39137
39138doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39139grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39140
39141# Checks if the export is ok or not.
39142for word in ${D}exclude_symbols; do
39143 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39144 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39145done
39146
39147
39148if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39149 sed "=" < ${D}tmpdefFile | \
39150 sed '
39151 N
39152 : loop
39153 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
39154 t loop
39155 ' > ${D}{tmpdefFile}%
39156 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39157else
39158 rm -f ${D}{tmpdefFile}%
39159fi
39160cat ${D}tmpdefFile >> ${D}defFile
39161rm -f ${D}tmpdefFile
39162
39163# Do linking, create implib, and apply lxlite.
39164gccCmdl="";
39165for file in ${D}inputFiles ; do
39166 case ${D}file in
39167 *!)
39168 ;;
39169 *)
39170 gccCmdl="${D}gccCmdl ${D}file"
39171 ;;
39172 esac
39173done
39174doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39175touch "${D}{outFile}.dll"
39176
39177doCommand "emximp -o ${D}arcFile ${D}defFile"
39178if ${D}flag_USE_LXLITE -ne 0 ; then
39179 add_flags="";
39180 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39181 add_flags="-ynd"
39182 fi
39183 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39184fi
39185doCommand "emxomf -s -l ${D}arcFile"
39186
39187# Successful exit.
39188CleanUp 1
39189exit 0
39190EOF
39191
39192 chmod +x dllar.sh
a848cd7e
SC
39193 ;;
39194
39195 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39196 *-*-sunos4* | \
39197 *-*-osf* | \
39198 *-*-dgux5* | \
39199 *-*-sysv5* )
39200 ;;
39201
39202 *)
39203 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39204echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39205 { (exit 1); exit 1; }; }
39206 esac
39207
39208 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39209 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39210 fi
39211 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39212 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39213 fi
39214
39215
39216
39217
39218
39219
39220
39221
39222 USE_SOVERSION=0
39223 USE_SOVERLINUX=0
39224 USE_SOVERSOLARIS=0
39225 USE_SOSYMLINKS=0
39226 USE_MACVERSION=0
39227 SONAME_FLAG=
39228
39229 case "${BAKEFILE_HOST}" in
39230 *-*-linux* )
39231 SONAME_FLAG="-Wl,-soname,"
39232 USE_SOVERSION=1
39233 USE_SOVERLINUX=1
39234 USE_SOSYMLINKS=1
39235 ;;
39236
39237 *-*-solaris2* )
39238 SONAME_FLAG="-h "
39239 USE_SOVERSION=1
39240 USE_SOVERSOLARIS=1
39241 USE_SOSYMLINKS=1
39242 ;;
39243
39244 *-*-darwin* )
39245 USE_MACVERSION=1
39246 USE_SOVERSION=1
39247 USE_SOSYMLINKS=1
39248 ;;
39249 esac
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39260echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39261 DEPS_TRACKING=0
39262
39263 if test "x$GCC" = "xyes"; then
39264 DEPSMODE=gcc
39265 DEPS_TRACKING=1
39266 case "${BAKEFILE_HOST}" in
39267 powerpc-*-darwin* )
39268 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39269 ;;
39270 * )
39271 DEPSFLAG_GCC="-MMD"
39272 ;;
39273 esac
39274 echo "$as_me:$LINENO: result: gcc" >&5
39275echo "${ECHO_T}gcc" >&6
39276 else
39277 echo "$as_me:$LINENO: result: none" >&5
39278echo "${ECHO_T}none" >&6
39279 fi
39280
39281 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39282
39283D='$'
39284cat <<EOF >bk-deps
a848cd7e
SC
39285#!/bin/sh
39286
39287# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39288# script. It is used to track C/C++ files dependencies in portable way.
39289#
39290# Permission is given to use this file in any way.
39291
473276a9 39292DEPSMODE=${DEPSMODE}
a848cd7e 39293DEPSDIR=.deps
473276a9 39294DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39295
473276a9 39296mkdir -p ${D}DEPSDIR
a848cd7e 39297
473276a9
VS
39298if test ${D}DEPSMODE = gcc ; then
39299 ${D}* ${D}{DEPSFLAG_GCC}
39300 status=${D}?
39301 if test ${D}{status} != 0 ; then
39302 exit ${D}{status}
a848cd7e
SC
39303 fi
39304 # move created file to the location we want it in:
473276a9
VS
39305 while test ${D}# -gt 0; do
39306 case "${D}1" in
a848cd7e
SC
39307 -o )
39308 shift
473276a9 39309 objfile=${D}1
a848cd7e
SC
39310 ;;
39311 -* )
39312 ;;
39313 * )
473276a9 39314 srcfile=${D}1
a848cd7e
SC
39315 ;;
39316 esac
39317 shift
39318 done
473276a9
VS
39319 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39320 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39321 if test -f ${D}depfile ; then
39322 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39323 rm -f ${D}depfile
a848cd7e 39324 else
473276a9
VS
39325 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39326 if test -f ${D}depfile ; then
39327 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39328 rm -f ${D}depfile
a848cd7e
SC
39329 fi
39330 fi
39331 exit 0
39332else
473276a9
VS
39333 ${D}*
39334 exit ${D}?
a848cd7e
SC
39335fi
39336EOF
473276a9 39337
a848cd7e
SC
39338 chmod +x bk-deps
39339 fi
39340
39341
39342
39343
39344 RESCOMP=
39345 SETFILE=
39346
39347 case ${BAKEFILE_HOST} in
39348 *-*-cygwin* | *-*-mingw32* )
39349 if test "$build" != "$host" ; then
39350 RESCOMP=$host_alias-windres
39351 else
39352 # Extract the first word of "windres", so it can be a program name with args.
39353set dummy windres; ac_word=$2
39354echo "$as_me:$LINENO: checking for $ac_word" >&5
39355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39356if test "${ac_cv_prog_RESCOMP+set}" = set; then
39357 echo $ECHO_N "(cached) $ECHO_C" >&6
39358else
39359 if test -n "$RESCOMP"; then
39360 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39361else
39362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39363for as_dir in $PATH
39364do
39365 IFS=$as_save_IFS
39366 test -z "$as_dir" && as_dir=.
39367 for ac_exec_ext in '' $ac_executable_extensions; do
39368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39369 ac_cv_prog_RESCOMP="windres"
39370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39371 break 2
39372 fi
39373done
39374done
39375
39376 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39377fi
39378fi
39379RESCOMP=$ac_cv_prog_RESCOMP
39380if test -n "$RESCOMP"; then
39381 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39382echo "${ECHO_T}$RESCOMP" >&6
39383else
39384 echo "$as_me:$LINENO: result: no" >&5
39385echo "${ECHO_T}no" >&6
39386fi
39387
39388 fi
39389 ;;
39390
39391 *-*-darwin* )
39392 # Extract the first word of "Rez", so it can be a program name with args.
39393set dummy Rez; ac_word=$2
39394echo "$as_me:$LINENO: checking for $ac_word" >&5
39395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39396if test "${ac_cv_prog_RESCOMP+set}" = set; then
39397 echo $ECHO_N "(cached) $ECHO_C" >&6
39398else
39399 if test -n "$RESCOMP"; then
39400 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39401else
39402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39403for as_dir in $PATH
39404do
39405 IFS=$as_save_IFS
39406 test -z "$as_dir" && as_dir=.
39407 for ac_exec_ext in '' $ac_executable_extensions; do
39408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39409 ac_cv_prog_RESCOMP="Rez"
39410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39411 break 2
39412 fi
39413done
39414done
39415
39416 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39417fi
39418fi
39419RESCOMP=$ac_cv_prog_RESCOMP
39420if test -n "$RESCOMP"; then
39421 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39422echo "${ECHO_T}$RESCOMP" >&6
39423else
39424 echo "$as_me:$LINENO: result: no" >&5
39425echo "${ECHO_T}no" >&6
39426fi
39427
39428 # Extract the first word of "SetFile", so it can be a program name with args.
39429set dummy SetFile; ac_word=$2
39430echo "$as_me:$LINENO: checking for $ac_word" >&5
39431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39432if test "${ac_cv_prog_SETFILE+set}" = set; then
39433 echo $ECHO_N "(cached) $ECHO_C" >&6
39434else
39435 if test -n "$SETFILE"; then
39436 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39437else
39438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39439for as_dir in $PATH
39440do
39441 IFS=$as_save_IFS
39442 test -z "$as_dir" && as_dir=.
39443 for ac_exec_ext in '' $ac_executable_extensions; do
39444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39445 ac_cv_prog_SETFILE="SetFile"
39446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39447 break 2
39448 fi
39449done
39450done
39451
39452 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39453fi
39454fi
39455SETFILE=$ac_cv_prog_SETFILE
39456if test -n "$SETFILE"; then
39457 echo "$as_me:$LINENO: result: $SETFILE" >&5
39458echo "${ECHO_T}$SETFILE" >&6
39459else
39460 echo "$as_me:$LINENO: result: no" >&5
39461echo "${ECHO_T}no" >&6
39462fi
39463
39464 ;;
39465 esac
39466
39467
39468
39469
39470
39471
e835546c 39472BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
dcc1b6ad 39473
a848cd7e 39474
646b6ec1 39475
74b84332 39476
a848cd7e
SC
39477 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39478if test "${enable_precomp_headers+set}" = set; then
39479 enableval="$enable_precomp_headers"
39480 bk_use_pch="$enableval"
39481fi;
39482
39483 GCC_PCH=0
39484
39485 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39486 if test "x$GCC" = "xyes"; then
39487 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39488echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39489 cat >conftest.$ac_ext <<_ACEOF
39490/* confdefs.h. */
39491_ACEOF
39492cat confdefs.h >>conftest.$ac_ext
39493cat >>conftest.$ac_ext <<_ACEOF
39494/* end confdefs.h. */
39495
39496int
39497main ()
39498{
39499
39500 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39501 #error "no pch support"
39502 #endif
39503 #if (__GNUC__ < 3)
39504 #error "no pch support"
39505 #endif
39506 #if (__GNUC__ == 3) && \
39507 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39508 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39509 #error "no pch support"
39510 #endif
39511
39512 ;
39513 return 0;
39514}
39515_ACEOF
39516rm -f conftest.$ac_objext
39517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39518 (eval $ac_compile) 2>conftest.er1
a848cd7e 39519 ac_status=$?
ac1cb8d3
VS
39520 grep -v '^ *+' conftest.er1 >conftest.err
39521 rm -f conftest.er1
39522 cat conftest.err >&5
a848cd7e
SC
39523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); } &&
ac1cb8d3
VS
39525 { ac_try='test -z "$ac_c_werror_flag"
39526 || test ! -s conftest.err'
39527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39528 (eval $ac_try) 2>&5
39529 ac_status=$?
39530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39531 (exit $ac_status); }; } &&
39532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39534 (eval $ac_try) 2>&5
39535 ac_status=$?
39536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537 (exit $ac_status); }; }; then
39538
39539 echo "$as_me:$LINENO: result: yes" >&5
39540echo "${ECHO_T}yes" >&6
39541 CPPFLAGS="-fpch-deps $CPPFLAGS"
39542 GCC_PCH=1
39543
39544else
39545 echo "$as_me: failed program was:" >&5
39546sed 's/^/| /' conftest.$ac_ext >&5
39547
39548
39549 echo "$as_me:$LINENO: result: no" >&5
39550echo "${ECHO_T}no" >&6
39551
39552fi
ac1cb8d3 39553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39554 if test $GCC_PCH = 1 ; then
39555 cat <<EOF >bk-make-pch
39556#!/bin/sh
39557
39558# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39559# script. It is used to generated precompiled headers.
39560#
39561# Permission is given to use this file in any way.
39562
39563outfile="\${1}"
39564header="\${2}"
39565shift
39566shift
39567
39568compiler=
39569headerfile=
39570while test \${#} -gt 0; do
39571 case "\${1}" in
39572 -I* )
39573 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39574 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39575 headerfile="\${incdir}/\${header}"
39576 fi
39577 ;;
39578 esac
39579 compiler="\${compiler} \${1}"
39580 shift
39581done
39582
39583if test "x\${headerfile}" = "x" ; then
39584 echo "error: can't find header \${header} in include paths" >2
39585else
39586 if test -f \${outfile} ; then
39587 rm -f \${outfile}
39588 else
39589 mkdir -p \`dirname \${outfile}\`
39590 fi
39591 depsfile=".deps/\`basename \${outfile}\`.d"
39592 mkdir -p .deps
39593 # can do this because gcc is >= 3.4:
39594 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39595 exit \${?}
39596fi
39597EOF
39598 chmod +x bk-make-pch
39599 fi
39600 fi
39601 fi
39602
39603
39604
39605
39606
dcc1b6ad
VS
39607
39608
39609 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39610if test "${enable_precomp_headers+set}" = set; then
39611 enableval="$enable_precomp_headers"
39612 bk_use_pch="$enableval"
39613fi;
39614
39615 GCC_PCH=0
39616
39617 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39618 if test "x$GCC" = "xyes"; then
39619 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39620echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39621 cat >conftest.$ac_ext <<_ACEOF
39622/* confdefs.h. */
39623_ACEOF
39624cat confdefs.h >>conftest.$ac_ext
39625cat >>conftest.$ac_ext <<_ACEOF
39626/* end confdefs.h. */
39627
39628int
39629main ()
39630{
39631
39632 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39633 #error "no pch support"
39634 #endif
39635 #if (__GNUC__ < 3)
39636 #error "no pch support"
39637 #endif
39638 #if (__GNUC__ == 3) && \
39639 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39640 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39641 #error "no pch support"
39642 #endif
39643
39644 ;
39645 return 0;
39646}
39647_ACEOF
39648rm -f conftest.$ac_objext
39649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39650 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39651 ac_status=$?
ac1cb8d3
VS
39652 grep -v '^ *+' conftest.er1 >conftest.err
39653 rm -f conftest.er1
39654 cat conftest.err >&5
dcc1b6ad
VS
39655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656 (exit $ac_status); } &&
ac1cb8d3
VS
39657 { ac_try='test -z "$ac_c_werror_flag"
39658 || test ! -s conftest.err'
39659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39660 (eval $ac_try) 2>&5
39661 ac_status=$?
39662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663 (exit $ac_status); }; } &&
39664 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39666 (eval $ac_try) 2>&5
39667 ac_status=$?
39668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39669 (exit $ac_status); }; }; then
39670
39671 echo "$as_me:$LINENO: result: yes" >&5
39672echo "${ECHO_T}yes" >&6
39673 CPPFLAGS="-fpch-deps $CPPFLAGS"
39674 GCC_PCH=1
39675
39676else
39677 echo "$as_me: failed program was:" >&5
39678sed 's/^/| /' conftest.$ac_ext >&5
39679
39680
39681 echo "$as_me:$LINENO: result: no" >&5
39682echo "${ECHO_T}no" >&6
39683
39684fi
ac1cb8d3 39685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39686 if test $GCC_PCH = 1 ; then
39687 cat <<EOF >bk-make-pch
39688#!/bin/sh
39689
39690# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39691# script. It is used to generated precompiled headers.
39692#
39693# Permission is given to use this file in any way.
39694
39695outfile="\${1}"
39696header="\${2}"
39697shift
39698shift
39699
39700compiler=
39701headerfile=
39702while test \${#} -gt 0; do
39703 case "\${1}" in
39704 -I* )
39705 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39706 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39707 headerfile="\${incdir}/\${header}"
39708 fi
39709 ;;
39710 esac
39711 compiler="\${compiler} \${1}"
39712 shift
39713done
39714
39715if test "x\${headerfile}" = "x" ; then
39716 echo "error: can't find header \${header} in include paths" >2
39717else
39718 if test -f \${outfile} ; then
39719 rm -f \${outfile}
39720 else
39721 mkdir -p \`dirname \${outfile}\`
39722 fi
39723 depsfile=".deps/\`basename \${outfile}\`.d"
39724 mkdir -p .deps
39725 # can do this because gcc is >= 3.4:
39726 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39727 exit \${?}
39728fi
39729EOF
39730 chmod +x bk-make-pch
39731 fi
39732 fi
39733 fi
39734
39735
39736
39737
a848cd7e
SC
39738 COND_BUILD_DEBUG="#"
39739 if test "x$BUILD" = "xdebug" ; then
39740 COND_BUILD_DEBUG=""
39741 fi
39742
39743 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39744 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39745 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39746 fi
39747
39748 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39749 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39750 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39751 fi
39752
39753 COND_BUILD_DEBUG_UNICODE_0="#"
39754 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39755 COND_BUILD_DEBUG_UNICODE_0=""
39756 fi
39757
39758 COND_BUILD_DEBUG_UNICODE_1="#"
39759 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39760 COND_BUILD_DEBUG_UNICODE_1=""
39761 fi
39762
39763 COND_BUILD_RELEASE="#"
39764 if test "x$BUILD" = "xrelease" ; then
39765 COND_BUILD_RELEASE=""
39766 fi
39767
39768 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39769 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39770 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39771 fi
39772
39773 COND_BUILD_RELEASE_UNICODE_0="#"
39774 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39775 COND_BUILD_RELEASE_UNICODE_0=""
39776 fi
39777
39778 COND_BUILD_RELEASE_UNICODE_1="#"
39779 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39780 COND_BUILD_RELEASE_UNICODE_1=""
39781 fi
39782
39783 COND_DEBUG_FLAG_1="#"
39784 if test "x$DEBUG_FLAG" = "x1" ; then
39785 COND_DEBUG_FLAG_1=""
39786 fi
39787
39788 COND_DEBUG_INFO_0="#"
39789 if test "x$DEBUG_INFO" = "x0" ; then
39790 COND_DEBUG_INFO_0=""
39791 fi
39792
39793 COND_DEBUG_INFO_1="#"
39794 if test "x$DEBUG_INFO" = "x1" ; then
39795 COND_DEBUG_INFO_1=""
39796 fi
39797
39798 COND_DEPS_TRACKING_0="#"
39799 if test "x$DEPS_TRACKING" = "x0" ; then
39800 COND_DEPS_TRACKING_0=""
39801 fi
39802
39803 COND_DEPS_TRACKING_1="#"
39804 if test "x$DEPS_TRACKING" = "x1" ; then
39805 COND_DEPS_TRACKING_1=""
39806 fi
39807
39808 COND_GCC_PCH_1="#"
39809 if test "x$GCC_PCH" = "x1" ; then
39810 COND_GCC_PCH_1=""
39811 fi
39812
39813 COND_MONOLITHIC_0="#"
39814 if test "x$MONOLITHIC" = "x0" ; then
39815 COND_MONOLITHIC_0=""
39816 fi
39817
39818 COND_MONOLITHIC_0_SHARED_0="#"
39819 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39820 COND_MONOLITHIC_0_SHARED_0=""
39821 fi
39822
39823 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39824 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39825 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39826 fi
39827
39828 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39829 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39831 fi
39832
39833 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39834 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39835 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39836 fi
39837
39838 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39839 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39840 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39841 fi
39842
39843 COND_MONOLITHIC_0_SHARED_1="#"
39844 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39845 COND_MONOLITHIC_0_SHARED_1=""
39846 fi
39847
39848 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39849 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39850 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39851 fi
39852
39853 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39854 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39855 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39856 fi
39857
39858 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39859 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39860 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39861 fi
39862
39863 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39864 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39865 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39866 fi
39867
39868 COND_MONOLITHIC_0_USE_ODBC_1="#"
39869 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39870 COND_MONOLITHIC_0_USE_ODBC_1=""
39871 fi
39872
39873 COND_MONOLITHIC_1="#"
39874 if test "x$MONOLITHIC" = "x1" ; then
39875 COND_MONOLITHIC_1=""
39876 fi
39877
39878 COND_MONOLITHIC_1_SHARED_0="#"
39879 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39880 COND_MONOLITHIC_1_SHARED_0=""
39881 fi
39882
39883 COND_MONOLITHIC_1_SHARED_1="#"
39884 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39885 COND_MONOLITHIC_1_SHARED_1=""
39886 fi
39887
39888 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39889 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39890 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39891 fi
39892
39893 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39894 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39895 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39896 fi
39897
39898 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39899 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39900 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39901 fi
39902
39903 COND_PLATFORM_MACOSX_1="#"
39904 if test "x$PLATFORM_MACOSX" = "x1" ; then
39905 COND_PLATFORM_MACOSX_1=""
39906 fi
39907
39908 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39909 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39910 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39911 fi
39912
39913 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39914 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39915 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39916 fi
39917
39918 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39919 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39920 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39921 fi
39922
39923 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39924 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39925 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39926 fi
39927
39928 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39929 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39930 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39931 fi
39932
39933 COND_PLATFORM_MAC_1="#"
39934 if test "x$PLATFORM_MAC" = "x1" ; then
39935 COND_PLATFORM_MAC_1=""
39936 fi
39937
39938 COND_PLATFORM_OS2_1="#"
39939 if test "x$PLATFORM_OS2" = "x1" ; then
39940 COND_PLATFORM_OS2_1=""
39941 fi
39942
39943 COND_PLATFORM_UNIX_0="#"
39944 if test "x$PLATFORM_UNIX" = "x0" ; then
39945 COND_PLATFORM_UNIX_0=""
39946 fi
39947
39948 COND_PLATFORM_UNIX_1="#"
39949 if test "x$PLATFORM_UNIX" = "x1" ; then
39950 COND_PLATFORM_UNIX_1=""
39951 fi
39952
39953 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39954 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39955 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39956 fi
39957
39958 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39959 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39960 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39961 fi
39962
39963 COND_PLATFORM_WIN32_0="#"
39964 if test "x$PLATFORM_WIN32" = "x0" ; then
39965 COND_PLATFORM_WIN32_0=""
39966 fi
39967
39968 COND_PLATFORM_WIN32_1="#"
39969 if test "x$PLATFORM_WIN32" = "x1" ; then
39970 COND_PLATFORM_WIN32_1=""
39971 fi
39972
39973 COND_SHARED_0="#"
39974 if test "x$SHARED" = "x0" ; then
39975 COND_SHARED_0=""
39976 fi
39977
39978 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39979 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39980 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39981 fi
39982
39983 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39984 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39985 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39986 fi
39987
39988 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39989 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39990 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39991 fi
39992
39993 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39994 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39995 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39996 fi
39997
39998 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39999 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40000 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40001 fi
40002
40003 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40004 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40005 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40006 fi
40007
40008 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40009 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40010 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40011 fi
40012
40013 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40014 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40015 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40016 fi
40017
40018 COND_SHARED_1="#"
40019 if test "x$SHARED" = "x1" ; then
40020 COND_SHARED_1=""
40021 fi
40022
40023 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40024 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40025 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40026 fi
40027
40028 COND_TOOLKIT_COCOA="#"
40029 if test "x$TOOLKIT" = "xCOCOA" ; then
40030 COND_TOOLKIT_COCOA=""
40031 fi
40032
40033 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40034 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40035 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40036 fi
40037
40038 COND_TOOLKIT_GTK="#"
40039 if test "x$TOOLKIT" = "xGTK" ; then
40040 COND_TOOLKIT_GTK=""
40041 fi
40042
40043 COND_TOOLKIT_GTK_USE_GUI_1="#"
40044 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40045 COND_TOOLKIT_GTK_USE_GUI_1=""
40046 fi
40047
40048 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40049 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40050 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40051 fi
40052
40053 COND_TOOLKIT_MAC="#"
40054 if test "x$TOOLKIT" = "xMAC" ; then
40055 COND_TOOLKIT_MAC=""
40056 fi
40057
40058 COND_TOOLKIT_MAC_USE_GUI_1="#"
40059 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40060 COND_TOOLKIT_MAC_USE_GUI_1=""
40061 fi
40062
40063 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40064 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40065 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40066 fi
40067
e835546c
DE
40068 COND_TOOLKIT_MAC_WXUNIV_0="#"
40069 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40070 COND_TOOLKIT_MAC_WXUNIV_0=""
40071 fi
40072
a848cd7e
SC
40073 COND_TOOLKIT_MGL="#"
40074 if test "x$TOOLKIT" = "xMGL" ; then
40075 COND_TOOLKIT_MGL=""
40076 fi
40077
40078 COND_TOOLKIT_MGL_USE_GUI_1="#"
40079 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40080 COND_TOOLKIT_MGL_USE_GUI_1=""
40081 fi
40082
40083 COND_TOOLKIT_MOTIF="#"
40084 if test "x$TOOLKIT" = "xMOTIF" ; then
40085 COND_TOOLKIT_MOTIF=""
40086 fi
40087
40088 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40089 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40090 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40091 fi
40092
40093 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40094 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40095 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40096 fi
40097
40098 COND_TOOLKIT_MSW="#"
40099 if test "x$TOOLKIT" = "xMSW" ; then
40100 COND_TOOLKIT_MSW=""
40101 fi
40102
40103 COND_TOOLKIT_MSW_USE_GUI_1="#"
40104 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40105 COND_TOOLKIT_MSW_USE_GUI_1=""
40106 fi
40107
40108 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40109 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40110 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40111 fi
40112
e835546c
DE
40113 COND_TOOLKIT_MSW_WXUNIV_0="#"
40114 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40115 COND_TOOLKIT_MSW_WXUNIV_0=""
40116 fi
40117
a848cd7e
SC
40118 COND_TOOLKIT_PM="#"
40119 if test "x$TOOLKIT" = "xPM" ; then
40120 COND_TOOLKIT_PM=""
40121 fi
40122
40123 COND_TOOLKIT_PM_USE_GUI_1="#"
40124 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40125 COND_TOOLKIT_PM_USE_GUI_1=""
40126 fi
40127
40128 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40129 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40130 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40131 fi
40132
e835546c
DE
40133 COND_TOOLKIT_PM_WXUNIV_0="#"
40134 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40135 COND_TOOLKIT_PM_WXUNIV_0=""
40136 fi
40137
3fd9c298
DE
40138 COND_TOOLKIT_WINCE="#"
40139 if test "x$TOOLKIT" = "xWINCE" ; then
40140 COND_TOOLKIT_WINCE=""
40141 fi
40142
40143 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40144 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40145 COND_TOOLKIT_WINCE_USE_GUI_1=""
40146 fi
40147
40148 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40149 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40150 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40151 fi
40152
a848cd7e
SC
40153 COND_TOOLKIT_X11="#"
40154 if test "x$TOOLKIT" = "xX11" ; then
40155 COND_TOOLKIT_X11=""
40156 fi
40157
40158 COND_TOOLKIT_X11_USE_GUI_1="#"
40159 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40160 COND_TOOLKIT_X11_USE_GUI_1=""
40161 fi
40162
40163 COND_UNICODE_1="#"
40164 if test "x$UNICODE" = "x1" ; then
40165 COND_UNICODE_1=""
40166 fi
40167
40168 COND_USE_EXCEPTIONS_0="#"
40169 if test "x$USE_EXCEPTIONS" = "x0" ; then
40170 COND_USE_EXCEPTIONS_0=""
40171 fi
40172
40173 COND_USE_EXCEPTIONS_1="#"
40174 if test "x$USE_EXCEPTIONS" = "x1" ; then
40175 COND_USE_EXCEPTIONS_1=""
40176 fi
40177
40178 COND_USE_GUI_0="#"
40179 if test "x$USE_GUI" = "x0" ; then
40180 COND_USE_GUI_0=""
40181 fi
40182
40183 COND_USE_GUI_1="#"
40184 if test "x$USE_GUI" = "x1" ; then
40185 COND_USE_GUI_1=""
40186 fi
40187
40188 COND_USE_GUI_1_WXUNIV_0="#"
40189 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40190 COND_USE_GUI_1_WXUNIV_0=""
40191 fi
40192
40193 COND_USE_GUI_1_WXUNIV_1="#"
40194 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40195 COND_USE_GUI_1_WXUNIV_1=""
40196 fi
40197
40198 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40199 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40200 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40201 fi
40202
40203 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40204 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40205 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40206 fi
40207
40208 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40209 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40210 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40211 fi
40212
40213 COND_USE_ODBC_1="#"
40214 if test "x$USE_ODBC" = "x1" ; then
40215 COND_USE_ODBC_1=""
40216 fi
40217
40218 COND_USE_PLUGINS_0="#"
40219 if test "x$USE_PLUGINS" = "x0" ; then
40220 COND_USE_PLUGINS_0=""
40221 fi
40222
40223 COND_USE_SOSYMLINKS_1="#"
40224 if test "x$USE_SOSYMLINKS" = "x1" ; then
40225 COND_USE_SOSYMLINKS_1=""
40226 fi
40227
40228 COND_USE_SOVERLINUX_1="#"
40229 if test "x$USE_SOVERLINUX" = "x1" ; then
40230 COND_USE_SOVERLINUX_1=""
40231 fi
40232
40233 COND_USE_SOVERSION_0="#"
40234 if test "x$USE_SOVERSION" = "x0" ; then
40235 COND_USE_SOVERSION_0=""
40236 fi
40237
40238 COND_USE_SOVERSOLARIS_1="#"
40239 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40240 COND_USE_SOVERSOLARIS_1=""
40241 fi
40242
40243 COND_WITH_PLUGIN_SDL_1="#"
40244 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40245 COND_WITH_PLUGIN_SDL_1=""
40246 fi
40247
40248 COND_WITH_SDL_1="#"
40249 if test "x$WITH_SDL" = "x1" ; then
40250 COND_WITH_SDL_1=""
40251 fi
40252
40253 COND_WXUNIV_1="#"
40254 if test "x$WXUNIV" = "x1" ; then
40255 COND_WXUNIV_1=""
40256 fi
40257
40258 COND_WXUSE_EXPAT_BUILTIN="#"
40259 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40260 COND_WXUSE_EXPAT_BUILTIN=""
40261 fi
40262
40263 COND_WXUSE_LIBJPEG_BUILTIN="#"
40264 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40265 COND_WXUSE_LIBJPEG_BUILTIN=""
40266 fi
40267
40268 COND_WXUSE_LIBPNG_BUILTIN="#"
40269 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40270 COND_WXUSE_LIBPNG_BUILTIN=""
40271 fi
40272
40273 COND_WXUSE_LIBTIFF_BUILTIN="#"
40274 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40275 COND_WXUSE_LIBTIFF_BUILTIN=""
40276 fi
40277
40278 COND_WXUSE_ODBC_BUILTIN="#"
40279 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40280 COND_WXUSE_ODBC_BUILTIN=""
40281 fi
40282
40283 COND_WXUSE_REGEX_BUILTIN="#"
40284 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40285 COND_WXUSE_REGEX_BUILTIN=""
40286 fi
40287
40288 COND_WXUSE_ZLIB_BUILTIN="#"
40289 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40290 COND_WXUSE_ZLIB_BUILTIN=""
40291 fi
40292
dcc1b6ad
VS
40293 COND_BUILD_DEBUG="#"
40294 if test "x$BUILD" = "xdebug" ; then
40295 COND_BUILD_DEBUG=""
40296 fi
40297
40298 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40299 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40300 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40301 fi
40302
40303 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40304 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40305 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40306 fi
40307
40308 COND_BUILD_DEBUG_UNICODE_0="#"
40309 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40310 COND_BUILD_DEBUG_UNICODE_0=""
40311 fi
40312
40313 COND_BUILD_DEBUG_UNICODE_1="#"
40314 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40315 COND_BUILD_DEBUG_UNICODE_1=""
40316 fi
40317
40318 COND_BUILD_RELEASE="#"
40319 if test "x$BUILD" = "xrelease" ; then
40320 COND_BUILD_RELEASE=""
40321 fi
40322
40323 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40324 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40325 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40326 fi
40327
40328 COND_BUILD_RELEASE_UNICODE_0="#"
40329 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40330 COND_BUILD_RELEASE_UNICODE_0=""
40331 fi
40332
40333 COND_BUILD_RELEASE_UNICODE_1="#"
40334 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40335 COND_BUILD_RELEASE_UNICODE_1=""
40336 fi
40337
40338 COND_DEBUG_FLAG_1="#"
40339 if test "x$DEBUG_FLAG" = "x1" ; then
40340 COND_DEBUG_FLAG_1=""
40341 fi
40342
40343 COND_DEBUG_INFO_0="#"
40344 if test "x$DEBUG_INFO" = "x0" ; then
40345 COND_DEBUG_INFO_0=""
40346 fi
40347
40348 COND_DEBUG_INFO_1="#"
40349 if test "x$DEBUG_INFO" = "x1" ; then
40350 COND_DEBUG_INFO_1=""
40351 fi
40352
40353 COND_DEPS_TRACKING_0="#"
40354 if test "x$DEPS_TRACKING" = "x0" ; then
40355 COND_DEPS_TRACKING_0=""
40356 fi
40357
40358 COND_DEPS_TRACKING_1="#"
40359 if test "x$DEPS_TRACKING" = "x1" ; then
40360 COND_DEPS_TRACKING_1=""
40361 fi
40362
40363 COND_GCC_PCH_1="#"
40364 if test "x$GCC_PCH" = "x1" ; then
40365 COND_GCC_PCH_1=""
40366 fi
40367
40368 COND_MONOLITHIC_0="#"
40369 if test "x$MONOLITHIC" = "x0" ; then
40370 COND_MONOLITHIC_0=""
40371 fi
40372
40373 COND_MONOLITHIC_0_SHARED_0="#"
40374 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40375 COND_MONOLITHIC_0_SHARED_0=""
40376 fi
40377
40378 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40379 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40380 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40381 fi
40382
40383 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40384 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40385 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40386 fi
40387
40388 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40389 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40390 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40391 fi
40392
40393 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40394 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40395 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40396 fi
40397
40398 COND_MONOLITHIC_0_SHARED_1="#"
40399 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40400 COND_MONOLITHIC_0_SHARED_1=""
40401 fi
40402
40403 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40404 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40405 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40406 fi
40407
40408 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40409 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40410 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40411 fi
40412
40413 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40414 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40415 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40416 fi
40417
40418 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40419 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40420 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40421 fi
40422
40423 COND_MONOLITHIC_0_USE_ODBC_1="#"
40424 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40425 COND_MONOLITHIC_0_USE_ODBC_1=""
40426 fi
40427
40428 COND_MONOLITHIC_1="#"
40429 if test "x$MONOLITHIC" = "x1" ; then
40430 COND_MONOLITHIC_1=""
40431 fi
40432
40433 COND_MONOLITHIC_1_SHARED_0="#"
40434 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40435 COND_MONOLITHIC_1_SHARED_0=""
40436 fi
40437
40438 COND_MONOLITHIC_1_SHARED_1="#"
40439 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40440 COND_MONOLITHIC_1_SHARED_1=""
40441 fi
40442
40443 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40444 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40445 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40446 fi
40447
40448 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40449 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40450 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40451 fi
40452
40453 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40454 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40455 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40456 fi
40457
40458 COND_PLATFORM_MACOSX_1="#"
40459 if test "x$PLATFORM_MACOSX" = "x1" ; then
40460 COND_PLATFORM_MACOSX_1=""
40461 fi
40462
40463 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40464 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40465 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40466 fi
40467
40468 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40469 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40470 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40471 fi
40472
40473 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40474 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40475 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40476 fi
40477
40478 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40479 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40480 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40481 fi
40482
40483 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40484 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40485 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40486 fi
40487
40488 COND_PLATFORM_MAC_1="#"
40489 if test "x$PLATFORM_MAC" = "x1" ; then
40490 COND_PLATFORM_MAC_1=""
40491 fi
40492
40493 COND_PLATFORM_OS2_1="#"
40494 if test "x$PLATFORM_OS2" = "x1" ; then
40495 COND_PLATFORM_OS2_1=""
40496 fi
40497
40498 COND_PLATFORM_UNIX_0="#"
40499 if test "x$PLATFORM_UNIX" = "x0" ; then
40500 COND_PLATFORM_UNIX_0=""
40501 fi
40502
40503 COND_PLATFORM_UNIX_1="#"
40504 if test "x$PLATFORM_UNIX" = "x1" ; then
40505 COND_PLATFORM_UNIX_1=""
40506 fi
40507
40508 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40509 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40510 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40511 fi
40512
40513 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40514 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40515 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40516 fi
40517
40518 COND_PLATFORM_WIN32_0="#"
40519 if test "x$PLATFORM_WIN32" = "x0" ; then
40520 COND_PLATFORM_WIN32_0=""
40521 fi
40522
40523 COND_PLATFORM_WIN32_1="#"
40524 if test "x$PLATFORM_WIN32" = "x1" ; then
40525 COND_PLATFORM_WIN32_1=""
40526 fi
40527
40528 COND_SHARED_0="#"
40529 if test "x$SHARED" = "x0" ; then
40530 COND_SHARED_0=""
40531 fi
40532
40533 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40534 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40535 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40536 fi
40537
40538 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40539 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40540 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40541 fi
40542
40543 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40544 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40545 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40546 fi
40547
40548 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40549 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40550 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40551 fi
40552
40553 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40554 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40555 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40556 fi
40557
40558 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40559 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40560 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40561 fi
40562
40563 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40564 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40565 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40566 fi
40567
40568 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40569 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40570 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40571 fi
40572
40573 COND_SHARED_1="#"
40574 if test "x$SHARED" = "x1" ; then
40575 COND_SHARED_1=""
40576 fi
40577
40578 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40579 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40580 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40581 fi
40582
40583 COND_TOOLKIT_COCOA="#"
40584 if test "x$TOOLKIT" = "xCOCOA" ; then
40585 COND_TOOLKIT_COCOA=""
40586 fi
40587
40588 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40589 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40590 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40591 fi
40592
40593 COND_TOOLKIT_GTK="#"
40594 if test "x$TOOLKIT" = "xGTK" ; then
40595 COND_TOOLKIT_GTK=""
40596 fi
40597
40598 COND_TOOLKIT_GTK_USE_GUI_1="#"
40599 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40600 COND_TOOLKIT_GTK_USE_GUI_1=""
40601 fi
40602
40603 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40604 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40605 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40606 fi
40607
40608 COND_TOOLKIT_MAC="#"
40609 if test "x$TOOLKIT" = "xMAC" ; then
40610 COND_TOOLKIT_MAC=""
40611 fi
40612
40613 COND_TOOLKIT_MAC_USE_GUI_1="#"
40614 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40615 COND_TOOLKIT_MAC_USE_GUI_1=""
40616 fi
40617
40618 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40619 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40620 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40621 fi
40622
40623 COND_TOOLKIT_MGL="#"
40624 if test "x$TOOLKIT" = "xMGL" ; then
40625 COND_TOOLKIT_MGL=""
40626 fi
40627
40628 COND_TOOLKIT_MGL_USE_GUI_1="#"
40629 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40630 COND_TOOLKIT_MGL_USE_GUI_1=""
40631 fi
40632
40633 COND_TOOLKIT_MOTIF="#"
40634 if test "x$TOOLKIT" = "xMOTIF" ; then
40635 COND_TOOLKIT_MOTIF=""
40636 fi
40637
40638 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40639 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40640 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40641 fi
40642
40643 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40644 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40645 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40646 fi
40647
40648 COND_TOOLKIT_MSW="#"
40649 if test "x$TOOLKIT" = "xMSW" ; then
40650 COND_TOOLKIT_MSW=""
40651 fi
40652
40653 COND_TOOLKIT_MSW_USE_GUI_1="#"
40654 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40655 COND_TOOLKIT_MSW_USE_GUI_1=""
40656 fi
40657
40658 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40659 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40660 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40661 fi
40662
40663 COND_TOOLKIT_PM="#"
40664 if test "x$TOOLKIT" = "xPM" ; then
40665 COND_TOOLKIT_PM=""
40666 fi
40667
40668 COND_TOOLKIT_PM_USE_GUI_1="#"
40669 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40670 COND_TOOLKIT_PM_USE_GUI_1=""
40671 fi
40672
40673 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40674 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40675 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40676 fi
40677
40678 COND_TOOLKIT_WINCE="#"
40679 if test "x$TOOLKIT" = "xWINCE" ; then
40680 COND_TOOLKIT_WINCE=""
40681 fi
40682
40683 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40684 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40685 COND_TOOLKIT_WINCE_USE_GUI_1=""
40686 fi
40687
40688 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40689 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40690 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40691 fi
40692
40693 COND_TOOLKIT_X11="#"
40694 if test "x$TOOLKIT" = "xX11" ; then
40695 COND_TOOLKIT_X11=""
40696 fi
40697
40698 COND_TOOLKIT_X11_USE_GUI_1="#"
40699 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40700 COND_TOOLKIT_X11_USE_GUI_1=""
40701 fi
40702
40703 COND_UNICODE_1="#"
40704 if test "x$UNICODE" = "x1" ; then
40705 COND_UNICODE_1=""
40706 fi
40707
40708 COND_USE_EXCEPTIONS_0="#"
40709 if test "x$USE_EXCEPTIONS" = "x0" ; then
40710 COND_USE_EXCEPTIONS_0=""
40711 fi
40712
40713 COND_USE_EXCEPTIONS_1="#"
40714 if test "x$USE_EXCEPTIONS" = "x1" ; then
40715 COND_USE_EXCEPTIONS_1=""
40716 fi
40717
40718 COND_USE_GUI_0="#"
40719 if test "x$USE_GUI" = "x0" ; then
40720 COND_USE_GUI_0=""
40721 fi
40722
40723 COND_USE_GUI_1="#"
40724 if test "x$USE_GUI" = "x1" ; then
40725 COND_USE_GUI_1=""
40726 fi
40727
40728 COND_USE_GUI_1_WXUNIV_0="#"
40729 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40730 COND_USE_GUI_1_WXUNIV_0=""
40731 fi
40732
40733 COND_USE_GUI_1_WXUNIV_1="#"
40734 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40735 COND_USE_GUI_1_WXUNIV_1=""
40736 fi
40737
40738 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40739 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40740 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40741 fi
40742
40743 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40744 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40745 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40746 fi
40747
40748 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40749 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40750 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40751 fi
40752
40753 COND_USE_ODBC_1="#"
40754 if test "x$USE_ODBC" = "x1" ; then
40755 COND_USE_ODBC_1=""
40756 fi
40757
40758 COND_USE_PLUGINS_0="#"
40759 if test "x$USE_PLUGINS" = "x0" ; then
40760 COND_USE_PLUGINS_0=""
40761 fi
40762
40763 COND_USE_SOSYMLINKS_1="#"
40764 if test "x$USE_SOSYMLINKS" = "x1" ; then
40765 COND_USE_SOSYMLINKS_1=""
40766 fi
40767
40768 COND_USE_SOVERLINUX_1="#"
40769 if test "x$USE_SOVERLINUX" = "x1" ; then
40770 COND_USE_SOVERLINUX_1=""
40771 fi
40772
40773 COND_USE_SOVERSION_0="#"
40774 if test "x$USE_SOVERSION" = "x0" ; then
40775 COND_USE_SOVERSION_0=""
40776 fi
40777
40778 COND_USE_SOVERSOLARIS_1="#"
40779 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40780 COND_USE_SOVERSOLARIS_1=""
40781 fi
40782
40783 COND_WITH_PLUGIN_SDL_1="#"
40784 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40785 COND_WITH_PLUGIN_SDL_1=""
40786 fi
40787
40788 COND_WXUNIV_1="#"
40789 if test "x$WXUNIV" = "x1" ; then
40790 COND_WXUNIV_1=""
40791 fi
40792
40793 COND_WXUSE_EXPAT_BUILTIN="#"
40794 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40795 COND_WXUSE_EXPAT_BUILTIN=""
40796 fi
40797
40798 COND_WXUSE_LIBJPEG_BUILTIN="#"
40799 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40800 COND_WXUSE_LIBJPEG_BUILTIN=""
40801 fi
40802
40803 COND_WXUSE_LIBPNG_BUILTIN="#"
40804 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40805 COND_WXUSE_LIBPNG_BUILTIN=""
40806 fi
40807
40808 COND_WXUSE_LIBTIFF_BUILTIN="#"
40809 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40810 COND_WXUSE_LIBTIFF_BUILTIN=""
40811 fi
40812
40813 COND_WXUSE_ODBC_BUILTIN="#"
40814 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40815 COND_WXUSE_ODBC_BUILTIN=""
40816 fi
40817
40818 COND_WXUSE_REGEX_BUILTIN="#"
40819 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40820 COND_WXUSE_REGEX_BUILTIN=""
40821 fi
40822
40823 COND_WXUSE_ZLIB_BUILTIN="#"
40824 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40825 COND_WXUSE_ZLIB_BUILTIN=""
40826 fi
40827
a848cd7e
SC
40828
40829
40830
40831
74b84332 40832GCC_PRAGMA_FLAGS=""
a848cd7e 40833if test $GCC_PCH = 1 ; then
74b84332 40834 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40835else
40836 case "${host}" in
40837 powerpc-*-darwin* )
74b84332 40838 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40839 ;;
bea8e651 40840 *-*-mingw32* )
1f344abf
VS
40841 if test "$wxUSE_STL" = "yes" -o \
40842 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40843 "$wxUSE_NO_RTTI" != "yes"; then
40844 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40845echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40846 cat >conftest.$ac_ext <<_ACEOF
40847/* confdefs.h. */
40848_ACEOF
40849cat confdefs.h >>conftest.$ac_ext
40850cat >>conftest.$ac_ext <<_ACEOF
40851/* end confdefs.h. */
40852
40853int
40854main ()
40855{
1f344abf 40856#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40857 #error "Not GCC 3.2 or greater"
40858 #endif
40859
40860 ;
40861 return 0;
40862}
40863_ACEOF
40864rm -f conftest.$ac_objext
40865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40866 (eval $ac_compile) 2>conftest.er1
bea8e651 40867 ac_status=$?
ac1cb8d3
VS
40868 grep -v '^ *+' conftest.er1 >conftest.err
40869 rm -f conftest.er1
40870 cat conftest.err >&5
bea8e651
MB
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); } &&
ac1cb8d3
VS
40873 { ac_try='test -z "$ac_c_werror_flag"
40874 || test ! -s conftest.err'
40875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40876 (eval $ac_try) 2>&5
40877 ac_status=$?
40878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40879 (exit $ac_status); }; } &&
40880 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40882 (eval $ac_try) 2>&5
40883 ac_status=$?
40884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40885 (exit $ac_status); }; }; then
74b84332 40886 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40887 echo "$as_me:$LINENO: result: yes" >&5
40888echo "${ECHO_T}yes" >&6
40889else
40890 echo "$as_me: failed program was:" >&5
40891sed 's/^/| /' conftest.$ac_ext >&5
40892
40893echo "$as_me:$LINENO: result: no" >&5
40894echo "${ECHO_T}no" >&6
40895fi
ac1cb8d3 40896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40897 fi
40898 ;;
a848cd7e
SC
40899 esac
40900fi
74b84332 40901CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
40902
40903
40904SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
40905
40906
40907
40908
40909
40910
40911
40912
40913
40914
40915
40916
40917
40918
40919
40920
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944
40945
40946
40947
40948
40949
40950
40951
40952
40953
40954
40955
40956
40957
40958
40959
40960
40961
40962
40963
40964
40965
40966
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980
40981
40982
40983
40984
40985
40986
40987
40988
40989
40990
40991
40992
40993
40994
40995
40996
40997
40998
40999
41000
41001
41002
74b84332 41003
a848cd7e
SC
41004
41005
41006echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41007echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41008set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41009if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41010 echo $ECHO_N "(cached) $ECHO_C" >&6
41011else
41012 cat >conftest.make <<\_ACEOF
41013all:
41014 @echo 'ac_maketemp="$(MAKE)"'
41015_ACEOF
41016# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41017eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41018if test -n "$ac_maketemp"; then
41019 eval ac_cv_prog_make_${ac_make}_set=yes
41020else
41021 eval ac_cv_prog_make_${ac_make}_set=no
41022fi
41023rm -f conftest.make
41024fi
41025if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41026 echo "$as_me:$LINENO: result: yes" >&5
41027echo "${ECHO_T}yes" >&6
41028 SET_MAKE=
41029else
41030 echo "$as_me:$LINENO: result: no" >&5
41031echo "${ECHO_T}no" >&6
41032 SET_MAKE="MAKE=${MAKE-make}"
41033fi
41034
41035
41036if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41037 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41038fi
41039
41040 ac_config_headers="$ac_config_headers setup.h"
41041
41042
41043 ac_config_files="$ac_config_files wx-config version-script Makefile"
41044
41045
41046 ac_config_commands="$ac_config_commands default"
41047
41048
41049
41050if test "$wxUSE_GUI" = "yes"; then
41051 SUBDIRS="samples demos utils contrib"
41052else SUBDIRS="samples utils"
41053fi
41054
41055
41056
41057# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41058if test "${with_cppunit_prefix+set}" = set; then
41059 withval="$with_cppunit_prefix"
41060 cppunit_config_prefix="$withval"
41061else
41062 cppunit_config_prefix=""
41063fi;
41064
41065# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41066if test "${with_cppunit_exec_prefix+set}" = set; then
41067 withval="$with_cppunit_exec_prefix"
41068 cppunit_config_exec_prefix="$withval"
41069else
41070 cppunit_config_exec_prefix=""
41071fi;
41072
41073 if test x$cppunit_config_exec_prefix != x ; then
41074 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41075 if test x${CPPUNIT_CONFIG+set} != xset ; then
41076 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41077 fi
41078 fi
41079 if test x$cppunit_config_prefix != x ; then
41080 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41081 if test x${CPPUNIT_CONFIG+set} != xset ; then
41082 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41083 fi
41084 fi
41085
41086 # Extract the first word of "cppunit-config", so it can be a program name with args.
41087set dummy cppunit-config; ac_word=$2
41088echo "$as_me:$LINENO: checking for $ac_word" >&5
41089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41090if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41091 echo $ECHO_N "(cached) $ECHO_C" >&6
41092else
41093 case $CPPUNIT_CONFIG in
41094 [\\/]* | ?:[\\/]*)
41095 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41096 ;;
41097 *)
41098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41099for as_dir in $PATH
41100do
41101 IFS=$as_save_IFS
41102 test -z "$as_dir" && as_dir=.
41103 for ac_exec_ext in '' $ac_executable_extensions; do
41104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41105 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41107 break 2
41108 fi
41109done
41110done
41111
41112 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41113 ;;
41114esac
41115fi
41116CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41117
41118if test -n "$CPPUNIT_CONFIG"; then
41119 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41120echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41121else
41122 echo "$as_me:$LINENO: result: no" >&5
41123echo "${ECHO_T}no" >&6
41124fi
41125
41126 cppunit_version_min=1.8.0
41127
41128 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41129echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41130 no_cppunit=""
41131 if test "$CPPUNIT_CONFIG" = "no" ; then
41132 no_cppunit=yes
c2218763
VS
41133 echo "$as_me:$LINENO: result: no" >&5
41134echo "${ECHO_T}no" >&6
a848cd7e
SC
41135 else
41136 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41137 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41138 cppunit_version=`$CPPUNIT_CONFIG --version`
41139
41140 cppunit_major_version=`echo $cppunit_version | \
41141 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41142 cppunit_minor_version=`echo $cppunit_version | \
41143 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41144 cppunit_micro_version=`echo $cppunit_version | \
41145 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41146
41147 cppunit_major_min=`echo $cppunit_version_min | \
41148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41149 cppunit_minor_min=`echo $cppunit_version_min | \
41150 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41151 cppunit_micro_min=`echo $cppunit_version_min | \
41152 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41153
41154 cppunit_version_proper=`expr \
41155 $cppunit_major_version \> $cppunit_major_min \| \
41156 $cppunit_major_version \= $cppunit_major_min \& \
41157 $cppunit_minor_version \> $cppunit_minor_min \| \
41158 $cppunit_major_version \= $cppunit_major_min \& \
41159 $cppunit_minor_version \= $cppunit_minor_min \& \
41160 $cppunit_micro_version \>= $cppunit_micro_min `
41161
41162 if test "$cppunit_version_proper" = "1" ; then
41163 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41164echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41165 else
41166 echo "$as_me:$LINENO: result: no" >&5
41167echo "${ECHO_T}no" >&6
41168 no_cppunit=yes
41169 fi
41170 fi
41171
41172 if test "x$no_cppunit" = x ; then
c2218763 41173 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41174 else
41175 CPPUNIT_CFLAGS=""
41176 CPPUNIT_LIBS=""
c2218763 41177 :
a848cd7e
SC
41178 fi
41179
41180
41181
41182
41183
41184for subdir in `echo $SUBDIRS`; do
41185 if test -d ${srcdir}/${subdir} ; then
41186 if test "$wxUSE_GUI" = "yes"; then
41187 if test ${subdir} = "samples"; then
41188 makefiles="samples/Makefile.in $makefiles"
41189 for sample in `echo $SAMPLES_SUBDIRS`; do
41190 if test -d $srcdir/samples/$sample; then
41191 makefiles="samples/$sample/Makefile.in $makefiles"
41192 fi
41193 done
41194 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41195 fi
41196 else if test ${subdir} = "samples"; then
41197 makefiles="samples/Makefile.in samples/console/Makefile.in"
41198 elif test ${subdir} = "utils"; then
41199 makefiles="utils/HelpGen/Makefile.in \
41200 utils/HelpGen/src/Makefile.in \
41201 utils/tex2rtf/Makefile.in \
41202 utils/tex2rtf/src/Makefile.in"
41203 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41204 fi
41205 fi
41206
41207 for mkin in $makefiles ; do
41208 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41209 ac_config_files="$ac_config_files $mk"
41210
41211 done
41212 fi
41213done
41214
41215
41216cat >confcache <<\_ACEOF
41217# This file is a shell script that caches the results of configure
41218# tests run on this system so they can be shared between configure
41219# scripts and configure runs, see configure's option --config-cache.
41220# It is not useful on other systems. If it contains results you don't
41221# want to keep, you may remove or edit it.
41222#
41223# config.status only pays attention to the cache file if you give it
41224# the --recheck option to rerun configure.
41225#
41226# `ac_cv_env_foo' variables (set or unset) will be overridden when
41227# loading this file, other *unset* `ac_cv_foo' will be assigned the
41228# following values.
41229
41230_ACEOF
41231
41232# The following way of writing the cache mishandles newlines in values,
41233# but we know of no workaround that is simple, portable, and efficient.
41234# So, don't put newlines in cache variables' values.
41235# Ultrix sh set writes to stderr and can't be redirected directly,
41236# and sets the high bit in the cache file unless we assign to the vars.
41237{
41238 (set) 2>&1 |
41239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41240 *ac_space=\ *)
41241 # `set' does not quote correctly, so add quotes (double-quote
41242 # substitution turns \\\\ into \\, and sed turns \\ into \).
41243 sed -n \
ac1cb8d3
VS
41244 "s/'/'\\\\''/g;
41245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41246 ;;
41247 *)
41248 # `set' quotes correctly as required by POSIX, so do not add quotes.
41249 sed -n \
ac1cb8d3 41250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41251 ;;
41252 esac;
41253} |
41254 sed '
41255 t clear
41256 : clear
41257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41258 t end
41259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41260 : end' >>confcache
41261if diff $cache_file confcache >/dev/null 2>&1; then :; else
41262 if test -w $cache_file; then
41263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41264 cat confcache >$cache_file
41265 else
41266 echo "not updating unwritable cache $cache_file"
41267 fi
41268fi
41269rm -f confcache
41270
41271test "x$prefix" = xNONE && prefix=$ac_default_prefix
41272# Let make expand exec_prefix.
41273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41274
41275# VPATH may cause trouble with some makes, so we remove $(srcdir),
41276# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41277# trailing colons and then remove the whole line if VPATH becomes empty
41278# (actually we leave an empty line to preserve line numbers).
41279if test "x$srcdir" = x.; then
ac1cb8d3 41280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41281s/:*\$(srcdir):*/:/;
41282s/:*\${srcdir}:*/:/;
41283s/:*@srcdir@:*/:/;
ac1cb8d3 41284s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41285s/:*$//;
ac1cb8d3 41286s/^[^=]*=[ ]*$//;
a848cd7e
SC
41287}'
41288fi
41289
41290DEFS=-DHAVE_CONFIG_H
41291
41292ac_libobjs=
41293ac_ltlibobjs=
41294for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41295 # 1. Remove the extension, and $U if already installed.
41296 ac_i=`echo "$ac_i" |
ac1cb8d3 41297 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41298 # 2. Add them.
41299 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41300 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41301done
41302LIBOBJS=$ac_libobjs
41303
41304LTLIBOBJS=$ac_ltlibobjs
41305
41306
41307
41308: ${CONFIG_STATUS=./config.status}
41309ac_clean_files_save=$ac_clean_files
41310ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41311{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41312echo "$as_me: creating $CONFIG_STATUS" >&6;}
41313cat >$CONFIG_STATUS <<_ACEOF
41314#! $SHELL
41315# Generated by $as_me.
41316# Run this file to recreate the current configuration.
41317# Compiler output produced by configure, useful for debugging
41318# configure, is in config.log if it exists.
41319
41320debug=false
41321ac_cs_recheck=false
41322ac_cs_silent=false
41323SHELL=\${CONFIG_SHELL-$SHELL}
41324_ACEOF
41325
41326cat >>$CONFIG_STATUS <<\_ACEOF
41327## --------------------- ##
41328## M4sh Initialization. ##
41329## --------------------- ##
41330
41331# Be Bourne compatible
41332if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41333 emulate sh
41334 NULLCMD=:
41335 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41336 # is contrary to our usage. Disable this feature.
41337 alias -g '${1+"$@"}'='"$@"'
41338elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41339 set -o posix
41340fi
ac1cb8d3 41341DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41342
41343# Support unset when possible.
ac1cb8d3 41344if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41345 as_unset=unset
41346else
41347 as_unset=false
41348fi
41349
41350
41351# Work around bugs in pre-3.0 UWIN ksh.
41352$as_unset ENV MAIL MAILPATH
41353PS1='$ '
41354PS2='> '
41355PS4='+ '
41356
41357# NLS nuisances.
41358for as_var in \
41359 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41360 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41361 LC_TELEPHONE LC_TIME
41362do
ac1cb8d3 41363 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41364 eval $as_var=C; export $as_var
41365 else
41366 $as_unset $as_var
41367 fi
41368done
41369
41370# Required to use basename.
41371if expr a : '\(a\)' >/dev/null 2>&1; then
41372 as_expr=expr
41373else
41374 as_expr=false
41375fi
41376
41377if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41378 as_basename=basename
41379else
41380 as_basename=false
41381fi
41382
41383
41384# Name of the executable.
41385as_me=`$as_basename "$0" ||
41386$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41387 X"$0" : 'X\(//\)$' \| \
41388 X"$0" : 'X\(/\)$' \| \
41389 . : '\(.\)' 2>/dev/null ||
41390echo X/"$0" |
41391 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41392 /^X\/\(\/\/\)$/{ s//\1/; q; }
41393 /^X\/\(\/\).*/{ s//\1/; q; }
41394 s/.*/./; q'`
41395
41396
41397# PATH needs CR, and LINENO needs CR and PATH.
41398# Avoid depending upon Character Ranges.
41399as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41400as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41401as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41402as_cr_digits='0123456789'
41403as_cr_alnum=$as_cr_Letters$as_cr_digits
41404
41405# The user is always right.
41406if test "${PATH_SEPARATOR+set}" != set; then
41407 echo "#! /bin/sh" >conf$$.sh
41408 echo "exit 0" >>conf$$.sh
41409 chmod +x conf$$.sh
41410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41411 PATH_SEPARATOR=';'
41412 else
41413 PATH_SEPARATOR=:
41414 fi
41415 rm -f conf$$.sh
41416fi
41417
41418
41419 as_lineno_1=$LINENO
41420 as_lineno_2=$LINENO
41421 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41422 test "x$as_lineno_1" != "x$as_lineno_2" &&
41423 test "x$as_lineno_3" = "x$as_lineno_2" || {
41424 # Find who we are. Look in the path if we contain no path at all
41425 # relative or not.
41426 case $0 in
41427 *[\\/]* ) as_myself=$0 ;;
41428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41429for as_dir in $PATH
41430do
41431 IFS=$as_save_IFS
41432 test -z "$as_dir" && as_dir=.
41433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41434done
41435
41436 ;;
41437 esac
41438 # We did not find ourselves, most probably we were run as `sh COMMAND'
41439 # in which case we are not to be found in the path.
41440 if test "x$as_myself" = x; then
41441 as_myself=$0
41442 fi
41443 if test ! -f "$as_myself"; then
41444 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41445echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41446 { (exit 1); exit 1; }; }
41447 fi
41448 case $CONFIG_SHELL in
41449 '')
41450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41451for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41452do
41453 IFS=$as_save_IFS
41454 test -z "$as_dir" && as_dir=.
41455 for as_base in sh bash ksh sh5; do
41456 case $as_dir in
41457 /*)
41458 if ("$as_dir/$as_base" -c '
41459 as_lineno_1=$LINENO
41460 as_lineno_2=$LINENO
41461 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41462 test "x$as_lineno_1" != "x$as_lineno_2" &&
41463 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41464 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41465 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41466 CONFIG_SHELL=$as_dir/$as_base
41467 export CONFIG_SHELL
41468 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41469 fi;;
41470 esac
41471 done
41472done
41473;;
41474 esac
41475
41476 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41477 # uniformly replaced by the line number. The first 'sed' inserts a
41478 # line-number line before each line; the second 'sed' does the real
41479 # work. The second script uses 'N' to pair each line-number line
41480 # with the numbered line, and appends trailing '-' during
41481 # substitution so that $LINENO is not a special case at line end.
41482 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41483 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41484 sed '=' <$as_myself |
41485 sed '
41486 N
41487 s,$,-,
41488 : loop
41489 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41490 t loop
41491 s,-$,,
41492 s,^['$as_cr_digits']*\n,,
41493 ' >$as_me.lineno &&
41494 chmod +x $as_me.lineno ||
41495 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41496echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41497 { (exit 1); exit 1; }; }
41498
41499 # Don't try to exec as it changes $[0], causing all sort of problems
41500 # (the dirname of $[0] is not the place where we might find the
41501 # original and so on. Autoconf is especially sensible to this).
41502 . ./$as_me.lineno
41503 # Exit status is that of the last command.
41504 exit
41505}
41506
41507
41508case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41509 *c*,-n*) ECHO_N= ECHO_C='
41510' ECHO_T=' ' ;;
41511 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41512 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41513esac
41514
41515if expr a : '\(a\)' >/dev/null 2>&1; then
41516 as_expr=expr
41517else
41518 as_expr=false
41519fi
41520
41521rm -f conf$$ conf$$.exe conf$$.file
41522echo >conf$$.file
41523if ln -s conf$$.file conf$$ 2>/dev/null; then
41524 # We could just check for DJGPP; but this test a) works b) is more generic
41525 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41526 if test -f conf$$.exe; then
41527 # Don't use ln at all; we don't have any links
41528 as_ln_s='cp -p'
41529 else
41530 as_ln_s='ln -s'
41531 fi
41532elif ln conf$$.file conf$$ 2>/dev/null; then
41533 as_ln_s=ln
41534else
41535 as_ln_s='cp -p'
41536fi
41537rm -f conf$$ conf$$.exe conf$$.file
41538
41539if mkdir -p . 2>/dev/null; then
41540 as_mkdir_p=:
41541else
ac1cb8d3 41542 test -d ./-p && rmdir ./-p
a848cd7e
SC
41543 as_mkdir_p=false
41544fi
41545
41546as_executable_p="test -f"
41547
41548# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41550
41551# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41553
41554
41555# IFS
41556# We need space, tab and new line, in precisely that order.
41557as_nl='
41558'
41559IFS=" $as_nl"
41560
41561# CDPATH.
41562$as_unset CDPATH
41563
41564exec 6>&1
41565
41566# Open the log real soon, to keep \$[0] and so on meaningful, and to
41567# report actual input values of CONFIG_FILES etc. instead of their
41568# values after options handling. Logging --version etc. is OK.
41569exec 5>>config.log
41570{
41571 echo
41572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41573## Running $as_me. ##
41574_ASBOX
41575} >&5
41576cat >&5 <<_CSEOF
41577
77ffb593 41578This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41579generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41580
41581 CONFIG_FILES = $CONFIG_FILES
41582 CONFIG_HEADERS = $CONFIG_HEADERS
41583 CONFIG_LINKS = $CONFIG_LINKS
41584 CONFIG_COMMANDS = $CONFIG_COMMANDS
41585 $ $0 $@
41586
41587_CSEOF
41588echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41589echo >&5
41590_ACEOF
41591
41592# Files that config.status was made for.
41593if test -n "$ac_config_files"; then
41594 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41595fi
41596
41597if test -n "$ac_config_headers"; then
41598 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41599fi
41600
41601if test -n "$ac_config_links"; then
41602 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41603fi
41604
41605if test -n "$ac_config_commands"; then
41606 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41607fi
41608
41609cat >>$CONFIG_STATUS <<\_ACEOF
41610
41611ac_cs_usage="\
41612\`$as_me' instantiates files from templates according to the
41613current configuration.
41614
41615Usage: $0 [OPTIONS] [FILE]...
41616
41617 -h, --help print this help, then exit
41618 -V, --version print version number, then exit
41619 -q, --quiet do not print progress messages
41620 -d, --debug don't remove temporary files
41621 --recheck update $as_me by reconfiguring in the same conditions
41622 --file=FILE[:TEMPLATE]
ac1cb8d3 41623 instantiate the configuration file FILE
a848cd7e 41624 --header=FILE[:TEMPLATE]
ac1cb8d3 41625 instantiate the configuration header FILE
a848cd7e
SC
41626
41627Configuration files:
41628$config_files
41629
41630Configuration headers:
41631$config_headers
41632
41633Configuration commands:
41634$config_commands
41635
41636Report bugs to <bug-autoconf@gnu.org>."
41637_ACEOF
41638
41639cat >>$CONFIG_STATUS <<_ACEOF
41640ac_cs_version="\\
77ffb593 41641wxWidgets config.status 2.5.2
ac1cb8d3 41642configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41643 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41644
ac1cb8d3 41645Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41646This config.status script is free software; the Free Software Foundation
41647gives unlimited permission to copy, distribute and modify it."
41648srcdir=$srcdir
41649INSTALL="$INSTALL"
41650_ACEOF
41651
41652cat >>$CONFIG_STATUS <<\_ACEOF
41653# If no file are specified by the user, then we need to provide default
41654# value. By we need to know if files were specified by the user.
41655ac_need_defaults=:
41656while test $# != 0
41657do
41658 case $1 in
41659 --*=*)
41660 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41661 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41662 ac_shift=:
41663 ;;
41664 -*)
41665 ac_option=$1
41666 ac_optarg=$2
41667 ac_shift=shift
41668 ;;
41669 *) # This is not an option, so the user has probably given explicit
41670 # arguments.
41671 ac_option=$1
41672 ac_need_defaults=false;;
41673 esac
41674
41675 case $ac_option in
41676 # Handling of the options.
41677_ACEOF
41678cat >>$CONFIG_STATUS <<\_ACEOF
41679 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41680 ac_cs_recheck=: ;;
41681 --version | --vers* | -V )
41682 echo "$ac_cs_version"; exit 0 ;;
41683 --he | --h)
41684 # Conflict between --help and --header
41685 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41686Try \`$0 --help' for more information." >&5
41687echo "$as_me: error: ambiguous option: $1
41688Try \`$0 --help' for more information." >&2;}
41689 { (exit 1); exit 1; }; };;
41690 --help | --hel | -h )
41691 echo "$ac_cs_usage"; exit 0 ;;
41692 --debug | --d* | -d )
41693 debug=: ;;
41694 --file | --fil | --fi | --f )
41695 $ac_shift
41696 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41697 ac_need_defaults=false;;
41698 --header | --heade | --head | --hea )
41699 $ac_shift
41700 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41701 ac_need_defaults=false;;
41702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41704 ac_cs_silent=: ;;
41705
41706 # This is an error.
41707 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41708Try \`$0 --help' for more information." >&5
41709echo "$as_me: error: unrecognized option: $1
41710Try \`$0 --help' for more information." >&2;}
41711 { (exit 1); exit 1; }; } ;;
41712
41713 *) ac_config_targets="$ac_config_targets $1" ;;
41714
41715 esac
41716 shift
41717done
41718
41719ac_configure_extra_args=
41720
41721if $ac_cs_silent; then
41722 exec 6>/dev/null
41723 ac_configure_extra_args="$ac_configure_extra_args --silent"
41724fi
41725
41726_ACEOF
41727cat >>$CONFIG_STATUS <<_ACEOF
41728if \$ac_cs_recheck; then
41729 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41730 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41731fi
41732
41733_ACEOF
41734
41735cat >>$CONFIG_STATUS <<_ACEOF
41736#
41737# INIT-COMMANDS section.
41738#
41739
41740
41741 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
41742 LN_S="${LN_S}"
41743
41744
41745
41746_ACEOF
41747
41748
41749
41750cat >>$CONFIG_STATUS <<\_ACEOF
41751for ac_config_target in $ac_config_targets
41752do
41753 case "$ac_config_target" in
41754 # Handling of arguments.
41755 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
41756 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41757 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41758 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41759 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41760 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41761 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41762echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41763 { (exit 1); exit 1; }; };;
41764 esac
41765done
41766
41767# If the user did not use the arguments to specify the items to instantiate,
41768# then the envvar interface is used. Set only those that are not.
41769# We use the long form for the default assignment because of an extremely
41770# bizarre bug on SunOS 4.1.3.
41771if $ac_need_defaults; then
41772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41775fi
41776
41777# Have a temporary directory for convenience. Make it in the build tree
41778# simply because there is no reason to put it here, and in addition,
41779# creating and moving files from /tmp can sometimes cause problems.
41780# Create a temporary directory, and hook for its removal unless debugging.
41781$debug ||
41782{
41783 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41784 trap '{ (exit 1); exit 1; }' 1 2 13 15
41785}
41786
41787# Create a (secure) tmp directory for tmp files.
41788
41789{
41790 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41791 test -n "$tmp" && test -d "$tmp"
41792} ||
41793{
41794 tmp=./confstat$$-$RANDOM
41795 (umask 077 && mkdir $tmp)
41796} ||
41797{
41798 echo "$me: cannot create a temporary directory in ." >&2
41799 { (exit 1); exit 1; }
41800}
41801
41802_ACEOF
41803
41804cat >>$CONFIG_STATUS <<_ACEOF
41805
41806#
41807# CONFIG_FILES section.
41808#
41809
41810# No need to generate the scripts if there are no CONFIG_FILES.
41811# This happens for instance when ./config.status config.h
41812if test -n "\$CONFIG_FILES"; then
41813 # Protect against being on the right side of a sed subst in config.status.
41814 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41815 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41816s,@SHELL@,$SHELL,;t t
41817s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41818s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41819s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41820s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41821s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41822s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41823s,@exec_prefix@,$exec_prefix,;t t
41824s,@prefix@,$prefix,;t t
41825s,@program_transform_name@,$program_transform_name,;t t
41826s,@bindir@,$bindir,;t t
41827s,@sbindir@,$sbindir,;t t
41828s,@libexecdir@,$libexecdir,;t t
41829s,@datadir@,$datadir,;t t
41830s,@sysconfdir@,$sysconfdir,;t t
41831s,@sharedstatedir@,$sharedstatedir,;t t
41832s,@localstatedir@,$localstatedir,;t t
41833s,@libdir@,$libdir,;t t
41834s,@includedir@,$includedir,;t t
41835s,@oldincludedir@,$oldincludedir,;t t
41836s,@infodir@,$infodir,;t t
41837s,@mandir@,$mandir,;t t
41838s,@build_alias@,$build_alias,;t t
41839s,@host_alias@,$host_alias,;t t
41840s,@target_alias@,$target_alias,;t t
41841s,@DEFS@,$DEFS,;t t
41842s,@ECHO_C@,$ECHO_C,;t t
41843s,@ECHO_N@,$ECHO_N,;t t
41844s,@ECHO_T@,$ECHO_T,;t t
41845s,@LIBS@,$LIBS,;t t
41846s,@build@,$build,;t t
41847s,@build_cpu@,$build_cpu,;t t
41848s,@build_vendor@,$build_vendor,;t t
41849s,@build_os@,$build_os,;t t
41850s,@host@,$host,;t t
41851s,@host_cpu@,$host_cpu,;t t
41852s,@host_vendor@,$host_vendor,;t t
41853s,@host_os@,$host_os,;t t
41854s,@target@,$target,;t t
41855s,@target_cpu@,$target_cpu,;t t
41856s,@target_vendor@,$target_vendor,;t t
41857s,@target_os@,$target_os,;t t
41858s,@CC@,$CC,;t t
41859s,@CFLAGS@,$CFLAGS,;t t
41860s,@LDFLAGS@,$LDFLAGS,;t t
41861s,@CPPFLAGS@,$CPPFLAGS,;t t
41862s,@ac_ct_CC@,$ac_ct_CC,;t t
41863s,@EXEEXT@,$EXEEXT,;t t
41864s,@OBJEXT@,$OBJEXT,;t t
41865s,@CPP@,$CPP,;t t
41866s,@EGREP@,$EGREP,;t t
41867s,@CXX@,$CXX,;t t
41868s,@CXXFLAGS@,$CXXFLAGS,;t t
41869s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41870s,@RANLIB@,$RANLIB,;t t
41871s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41872s,@AR@,$AR,;t t
41873s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41874s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41875s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41876s,@STRIP@,$STRIP,;t t
41877s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41878s,@LN_S@,$LN_S,;t t
41879s,@CXXCPP@,$CXXCPP,;t t
41880s,@subdirs@,$subdirs,;t t
41881s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41882s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41883s,@GTK_LIBS@,$GTK_LIBS,;t t
41884s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41885s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41886s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41887s,@X_CFLAGS@,$X_CFLAGS,;t t
41888s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41889s,@X_LIBS@,$X_LIBS,;t t
41890s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41891s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41892s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41893s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41894s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41895s,@RESCOMP@,$RESCOMP,;t t
41896s,@DEREZ@,$DEREZ,;t t
41897s,@SETFILE@,$SETFILE,;t t
41898s,@LIBICONV@,$LIBICONV,;t t
41899s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41900s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41901s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41902s,@SDL_LIBS@,$SDL_LIBS,;t t
41903s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41904s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
41905s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
41906s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
41907s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
41908s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
41909s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
41910s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
41911s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
41912s,@VENDOR@,$VENDOR,;t t
41913s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
41914s,@WXUNIV@,$WXUNIV,;t t
41915s,@MONOLITHIC@,$MONOLITHIC,;t t
41916s,@USE_PLUGINS@,$USE_PLUGINS,;t t
41917s,@EXTRALIBS@,$EXTRALIBS,;t t
41918s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
41919s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
41920s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
41921s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
41922s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
41923s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
41924s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
41925s,@UNICODE@,$UNICODE,;t t
41926s,@BUILD@,$BUILD,;t t
41927s,@DEBUG_INFO@,$DEBUG_INFO,;t t
41928s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
41929s,@SHARED@,$SHARED,;t t
41930s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
41931s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
41932s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
41933s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
41934s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
41935s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
41936s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
41937s,@SET_MAKE@,$SET_MAKE,;t t
41938s,@MAKE_SET@,$MAKE_SET,;t t
41939s,@ac_ct_AR@,$ac_ct_AR,;t t
41940s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41941s,@NM@,$NM,;t t
41942s,@ac_ct_NM@,$ac_ct_NM,;t t
41943s,@INSTALL_DIR@,$INSTALL_DIR,;t t
41944s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
41945s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
41946s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
41947s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
41948s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
41949s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
41950s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
41951s,@SO_SUFFIX@,$SO_SUFFIX,;t t
41952s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
41953s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
41954s,@LIBPREFIX@,$LIBPREFIX,;t t
41955s,@LIBEXT@,$LIBEXT,;t t
41956s,@DLLPREFIX@,$DLLPREFIX,;t t
41957s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
41958s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
41959s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
41960s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
41961s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
41962s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
41963s,@PIC_FLAG@,$PIC_FLAG,;t t
41964s,@USE_SOVERSION@,$USE_SOVERSION,;t t
41965s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
41966s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
41967s,@USE_MACVERSION@,$USE_MACVERSION,;t t
41968s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
41969s,@SONAME_FLAG@,$SONAME_FLAG,;t t
41970s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
41971s,@GCC_PCH@,$GCC_PCH,;t t
41972s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
41973s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
41974s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
41975s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
41976s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
41977s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
41978s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
41979s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
41980s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
41981s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
41982s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
41983s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
41984s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
41985s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
41986s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
41987s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
41988s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
41989s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
41990s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
41991s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
41992s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
41993s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
41994s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
41995s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
41996s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
41997s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
41998s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
41999s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42000s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42001s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42002s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42003s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42004s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42005s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42006s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42007s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42008s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
42009s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42010s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42011s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42012s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42013s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42014s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42015s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42016s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42017s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42018s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42019s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42020s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42021s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42022s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42023s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42024s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42025s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42026s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42027s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42028s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42029s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42030s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42031s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42032s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42033s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42034s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42035s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42036s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42037s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
e835546c 42038s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
a848cd7e
SC
42039s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42040s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42041s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42042s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42043s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42044s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42045s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42046s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
e835546c 42047s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
42048s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42049s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42050s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
e835546c 42051s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
3fd9c298
DE
42052s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42053s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42054s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42055s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42056s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42057s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42058s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42059s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42060s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42061s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42062s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42063s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42064s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42065s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42066s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42067s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42068s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42069s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42070s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42071s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42072s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42073s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42074s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
42075s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42076s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42077s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42078s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42079s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42080s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42081s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42082s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42083s,@PATH_IFS@,$PATH_IFS,;t t
42084s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42085s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42086s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
42087s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42088s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42089s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42090s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42091s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42092s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42093s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42094s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42095s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42096s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42097s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42098s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42099s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42100s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42101s,@WX_ALL@,$WX_ALL,;t t
42102s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42103s,@SHARED_LD@,$SHARED_LD,;t t
42104s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42105s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42106s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42107s,@USE_GUI@,$USE_GUI,;t t
42108s,@AFMINSTALL@,$AFMINSTALL,;t t
42109s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42110s,@TOOLKIT@,$TOOLKIT,;t t
42111s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42112s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42113s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42114s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42115s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42116s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42117s,@cross_compiling@,$cross_compiling,;t t
42118s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42119s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42120s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42121s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42122s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42123s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42124s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42125s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42126s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42127s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42128s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42129s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42130s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42131s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42132s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42133s,@GUIDIST@,$GUIDIST,;t t
42134s,@PORT_FILES@,$PORT_FILES,;t t
42135s,@DISTDIR@,$DISTDIR,;t t
42136s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42137s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42138s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42139s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42140s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42141s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42142s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42143s,@RESFLAGS@,$RESFLAGS,;t t
42144s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42145s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42146s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42147s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42148s,@MACRESCOMP@,$MACRESCOMP,;t t
42149s,@MACSETFILE@,$MACSETFILE,;t t
42150s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42151s,@GCC@,$GCC,;t t
42152s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
42153s,@DLLTOOL@,$DLLTOOL,;t t
42154s,@AS@,$AS,;t t
42155s,@LD@,$LD,;t t
42156s,@MAKEINFO@,$MAKEINFO,;t t
42157s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42158s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42159s,@LIBOBJS@,$LIBOBJS,;t t
42160s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42161CEOF
42162
42163_ACEOF
42164
42165 cat >>$CONFIG_STATUS <<\_ACEOF
42166 # Split the substitutions into bite-sized pieces for seds with
42167 # small command number limits, like on Digital OSF/1 and HP-UX.
42168 ac_max_sed_lines=48
42169 ac_sed_frag=1 # Number of current file.
42170 ac_beg=1 # First line for current file.
42171 ac_end=$ac_max_sed_lines # Line after last line for current file.
42172 ac_more_lines=:
42173 ac_sed_cmds=
42174 while $ac_more_lines; do
42175 if test $ac_beg -gt 1; then
42176 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42177 else
42178 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42179 fi
42180 if test ! -s $tmp/subs.frag; then
42181 ac_more_lines=false
42182 else
42183 # The purpose of the label and of the branching condition is to
42184 # speed up the sed processing (if there are no `@' at all, there
42185 # is no need to browse any of the substitutions).
42186 # These are the two extra sed commands mentioned above.
42187 (echo ':t
42188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42189 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42190 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42191 else
ac1cb8d3 42192 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42193 fi
42194 ac_sed_frag=`expr $ac_sed_frag + 1`
42195 ac_beg=$ac_end
42196 ac_end=`expr $ac_end + $ac_max_sed_lines`
42197 fi
42198 done
42199 if test -z "$ac_sed_cmds"; then
42200 ac_sed_cmds=cat
42201 fi
42202fi # test -n "$CONFIG_FILES"
42203
42204_ACEOF
42205cat >>$CONFIG_STATUS <<\_ACEOF
42206for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42207 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42208 case $ac_file in
42209 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42210 cat >$tmp/stdin
42211 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42212 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42213 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42214 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42215 * ) ac_file_in=$ac_file.in ;;
42216 esac
42217
42218 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42219 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42220$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42221 X"$ac_file" : 'X\(//\)[^/]' \| \
42222 X"$ac_file" : 'X\(//\)$' \| \
42223 X"$ac_file" : 'X\(/\)' \| \
42224 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42225echo X"$ac_file" |
42226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42228 /^X\(\/\/\)$/{ s//\1/; q; }
42229 /^X\(\/\).*/{ s//\1/; q; }
42230 s/.*/./; q'`
42231 { if $as_mkdir_p; then
42232 mkdir -p "$ac_dir"
42233 else
42234 as_dir="$ac_dir"
42235 as_dirs=
42236 while test ! -d "$as_dir"; do
42237 as_dirs="$as_dir $as_dirs"
42238 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42239$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42240 X"$as_dir" : 'X\(//\)[^/]' \| \
42241 X"$as_dir" : 'X\(//\)$' \| \
42242 X"$as_dir" : 'X\(/\)' \| \
42243 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42244echo X"$as_dir" |
42245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42247 /^X\(\/\/\)$/{ s//\1/; q; }
42248 /^X\(\/\).*/{ s//\1/; q; }
42249 s/.*/./; q'`
42250 done
42251 test ! -n "$as_dirs" || mkdir $as_dirs
42252 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42253echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42254 { (exit 1); exit 1; }; }; }
42255
42256 ac_builddir=.
42257
42258if test "$ac_dir" != .; then
42259 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42260 # A "../" for each directory in $ac_dir_suffix.
42261 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42262else
42263 ac_dir_suffix= ac_top_builddir=
42264fi
42265
42266case $srcdir in
42267 .) # No --srcdir option. We are building in place.
42268 ac_srcdir=.
42269 if test -z "$ac_top_builddir"; then
42270 ac_top_srcdir=.
42271 else
42272 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42273 fi ;;
42274 [\\/]* | ?:[\\/]* ) # Absolute path.
42275 ac_srcdir=$srcdir$ac_dir_suffix;
42276 ac_top_srcdir=$srcdir ;;
42277 *) # Relative path.
42278 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42279 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42280esac
ac1cb8d3
VS
42281
42282# Do not use `cd foo && pwd` to compute absolute paths, because
42283# the directories may not exist.
42284case `pwd` in
42285.) ac_abs_builddir="$ac_dir";;
42286*)
42287 case "$ac_dir" in
42288 .) ac_abs_builddir=`pwd`;;
42289 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42290 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42291 esac;;
42292esac
42293case $ac_abs_builddir in
42294.) ac_abs_top_builddir=${ac_top_builddir}.;;
42295*)
42296 case ${ac_top_builddir}. in
42297 .) ac_abs_top_builddir=$ac_abs_builddir;;
42298 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42299 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42300 esac;;
42301esac
42302case $ac_abs_builddir in
42303.) ac_abs_srcdir=$ac_srcdir;;
42304*)
42305 case $ac_srcdir in
42306 .) ac_abs_srcdir=$ac_abs_builddir;;
42307 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42308 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42309 esac;;
42310esac
42311case $ac_abs_builddir in
42312.) ac_abs_top_srcdir=$ac_top_srcdir;;
42313*)
42314 case $ac_top_srcdir in
42315 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42316 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42317 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42318 esac;;
42319esac
a848cd7e
SC
42320
42321
42322 case $INSTALL in
42323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42324 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42325 esac
42326
dcc1b6ad
VS
42327 if test x"$ac_file" != x-; then
42328 { echo "$as_me:$LINENO: creating $ac_file" >&5
42329echo "$as_me: creating $ac_file" >&6;}
42330 rm -f "$ac_file"
42331 fi
a848cd7e
SC
42332 # Let's still pretend it is `configure' which instantiates (i.e., don't
42333 # use $as_me), people would be surprised to read:
42334 # /* config.h. Generated by config.status. */
42335 if test x"$ac_file" = x-; then
42336 configure_input=
42337 else
42338 configure_input="$ac_file. "
42339 fi
42340 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42341 sed 's,.*/,,'` by configure."
a848cd7e
SC
42342
42343 # First look for the input files in the build tree, otherwise in the
42344 # src tree.
42345 ac_file_inputs=`IFS=:
42346 for f in $ac_file_in; do
42347 case $f in
42348 -) echo $tmp/stdin ;;
42349 [\\/$]*)
ac1cb8d3
VS
42350 # Absolute (can't be DOS-style, as IFS=:)
42351 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42352echo "$as_me: error: cannot find input file: $f" >&2;}
42353 { (exit 1); exit 1; }; }
ac1cb8d3 42354 echo "$f";;
a848cd7e 42355 *) # Relative
ac1cb8d3
VS
42356 if test -f "$f"; then
42357 # Build tree
42358 echo "$f"
42359 elif test -f "$srcdir/$f"; then
42360 # Source tree
42361 echo "$srcdir/$f"
42362 else
42363 # /dev/null tree
42364 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42365echo "$as_me: error: cannot find input file: $f" >&2;}
42366 { (exit 1); exit 1; }; }
ac1cb8d3 42367 fi;;
a848cd7e
SC
42368 esac
42369 done` || { (exit 1); exit 1; }
42370_ACEOF
42371cat >>$CONFIG_STATUS <<_ACEOF
42372 sed "$ac_vpsub
42373$extrasub
42374_ACEOF
42375cat >>$CONFIG_STATUS <<\_ACEOF
42376:t
42377/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42378s,@configure_input@,$configure_input,;t t
42379s,@srcdir@,$ac_srcdir,;t t
42380s,@abs_srcdir@,$ac_abs_srcdir,;t t
42381s,@top_srcdir@,$ac_top_srcdir,;t t
42382s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42383s,@builddir@,$ac_builddir,;t t
42384s,@abs_builddir@,$ac_abs_builddir,;t t
42385s,@top_builddir@,$ac_top_builddir,;t t
42386s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42387s,@INSTALL@,$ac_INSTALL,;t t
42388" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42389 rm -f $tmp/stdin
42390 if test x"$ac_file" != x-; then
42391 mv $tmp/out $ac_file
42392 else
42393 cat $tmp/out
42394 rm -f $tmp/out
42395 fi
42396
42397done
42398_ACEOF
42399cat >>$CONFIG_STATUS <<\_ACEOF
42400
42401#
42402# CONFIG_HEADER section.
42403#
42404
42405# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42406# NAME is the cpp macro being defined and VALUE is the value it is being given.
42407#
42408# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42409ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42410ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42411ac_dC=' '
42412ac_dD=',;t'
42413# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42414ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42415ac_uB='$,\1#\2define\3'
42416ac_uC=' '
42417ac_uD=',;t'
42418
42419for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42420 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42421 case $ac_file in
42422 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42423 cat >$tmp/stdin
42424 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42426 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42427 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42428 * ) ac_file_in=$ac_file.in ;;
42429 esac
42430
42431 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42432echo "$as_me: creating $ac_file" >&6;}
42433
42434 # First look for the input files in the build tree, otherwise in the
42435 # src tree.
42436 ac_file_inputs=`IFS=:
42437 for f in $ac_file_in; do
42438 case $f in
42439 -) echo $tmp/stdin ;;
42440 [\\/$]*)
ac1cb8d3
VS
42441 # Absolute (can't be DOS-style, as IFS=:)
42442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42443echo "$as_me: error: cannot find input file: $f" >&2;}
42444 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42445 # Do quote $f, to prevent DOS paths from being IFS'd.
42446 echo "$f";;
a848cd7e 42447 *) # Relative
ac1cb8d3
VS
42448 if test -f "$f"; then
42449 # Build tree
42450 echo "$f"
42451 elif test -f "$srcdir/$f"; then
42452 # Source tree
42453 echo "$srcdir/$f"
42454 else
42455 # /dev/null tree
42456 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42457echo "$as_me: error: cannot find input file: $f" >&2;}
42458 { (exit 1); exit 1; }; }
ac1cb8d3 42459 fi;;
a848cd7e
SC
42460 esac
42461 done` || { (exit 1); exit 1; }
42462 # Remove the trailing spaces.
ac1cb8d3 42463 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42464
42465_ACEOF
42466
42467# Transform confdefs.h into two sed scripts, `conftest.defines' and
42468# `conftest.undefs', that substitutes the proper values into
42469# config.h.in to produce config.h. The first handles `#define'
42470# templates, and the second `#undef' templates.
42471# And first: Protect against being on the right side of a sed subst in
42472# config.status. Protect against being in an unquoted here document
42473# in config.status.
42474rm -f conftest.defines conftest.undefs
42475# Using a here document instead of a string reduces the quoting nightmare.
42476# Putting comments in sed scripts is not portable.
42477#
42478# `end' is used to avoid that the second main sed command (meant for
42479# 0-ary CPP macros) applies to n-ary macro definitions.
42480# See the Autoconf documentation for `clear'.
42481cat >confdef2sed.sed <<\_ACEOF
42482s/[\\&,]/\\&/g
42483s,[\\$`],\\&,g
42484t clear
42485: clear
ac1cb8d3 42486s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42487t end
ac1cb8d3 42488s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42489: end
42490_ACEOF
42491# If some macros were called several times there might be several times
42492# the same #defines, which is useless. Nevertheless, we may not want to
42493# sort them, since we want the *last* AC-DEFINE to be honored.
42494uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42495sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42496rm -f confdef2sed.sed
42497
42498# This sed command replaces #undef with comments. This is necessary, for
42499# example, in the case of _POSIX_SOURCE, which is predefined and required
42500# on some systems where configure will not decide to define it.
42501cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42502s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42503_ACEOF
42504
42505# Break up conftest.defines because some shells have a limit on the size
42506# of here documents, and old seds have small limits too (100 cmds).
42507echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42508echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42509echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42510echo ' :' >>$CONFIG_STATUS
42511rm -f conftest.tail
42512while grep . conftest.defines >/dev/null
42513do
42514 # Write a limited-size here document to $tmp/defines.sed.
42515 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42516 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42517 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42518 # Work around the forget-to-reset-the-flag bug.
42519 echo 't clr' >>$CONFIG_STATUS
42520 echo ': clr' >>$CONFIG_STATUS
42521 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42522 echo 'CEOF
42523 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42524 rm -f $tmp/in
42525 mv $tmp/out $tmp/in
42526' >>$CONFIG_STATUS
42527 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42528 rm -f conftest.defines
42529 mv conftest.tail conftest.defines
42530done
42531rm -f conftest.defines
42532echo ' fi # grep' >>$CONFIG_STATUS
42533echo >>$CONFIG_STATUS
42534
42535# Break up conftest.undefs because some shells have a limit on the size
42536# of here documents, and old seds have small limits too (100 cmds).
42537echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42538rm -f conftest.tail
42539while grep . conftest.undefs >/dev/null
42540do
42541 # Write a limited-size here document to $tmp/undefs.sed.
42542 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42543 # Speed up: don't consider the non `#undef'
ac1cb8d3 42544 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42545 # Work around the forget-to-reset-the-flag bug.
42546 echo 't clr' >>$CONFIG_STATUS
42547 echo ': clr' >>$CONFIG_STATUS
42548 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42549 echo 'CEOF
42550 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42551 rm -f $tmp/in
42552 mv $tmp/out $tmp/in
42553' >>$CONFIG_STATUS
42554 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42555 rm -f conftest.undefs
42556 mv conftest.tail conftest.undefs
42557done
42558rm -f conftest.undefs
42559
42560cat >>$CONFIG_STATUS <<\_ACEOF
42561 # Let's still pretend it is `configure' which instantiates (i.e., don't
42562 # use $as_me), people would be surprised to read:
42563 # /* config.h. Generated by config.status. */
42564 if test x"$ac_file" = x-; then
42565 echo "/* Generated by configure. */" >$tmp/config.h
42566 else
42567 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42568 fi
42569 cat $tmp/in >>$tmp/config.h
42570 rm -f $tmp/in
42571 if test x"$ac_file" != x-; then
42572 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42573 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42574echo "$as_me: $ac_file is unchanged" >&6;}
42575 else
42576 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42577$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42578 X"$ac_file" : 'X\(//\)[^/]' \| \
42579 X"$ac_file" : 'X\(//\)$' \| \
42580 X"$ac_file" : 'X\(/\)' \| \
42581 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42582echo X"$ac_file" |
42583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42585 /^X\(\/\/\)$/{ s//\1/; q; }
42586 /^X\(\/\).*/{ s//\1/; q; }
42587 s/.*/./; q'`
42588 { if $as_mkdir_p; then
42589 mkdir -p "$ac_dir"
42590 else
42591 as_dir="$ac_dir"
42592 as_dirs=
42593 while test ! -d "$as_dir"; do
42594 as_dirs="$as_dir $as_dirs"
42595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42596$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42597 X"$as_dir" : 'X\(//\)[^/]' \| \
42598 X"$as_dir" : 'X\(//\)$' \| \
42599 X"$as_dir" : 'X\(/\)' \| \
42600 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42601echo X"$as_dir" |
42602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42604 /^X\(\/\/\)$/{ s//\1/; q; }
42605 /^X\(\/\).*/{ s//\1/; q; }
42606 s/.*/./; q'`
42607 done
42608 test ! -n "$as_dirs" || mkdir $as_dirs
42609 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42610echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42611 { (exit 1); exit 1; }; }; }
42612
42613 rm -f $ac_file
42614 mv $tmp/config.h $ac_file
42615 fi
42616 else
42617 cat $tmp/config.h
42618 rm -f $tmp/config.h
42619 fi
42620done
42621_ACEOF
42622cat >>$CONFIG_STATUS <<\_ACEOF
42623
42624#
42625# CONFIG_COMMANDS section.
42626#
42627for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42628 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42629 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42630 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42631$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42632 X"$ac_dest" : 'X\(//\)[^/]' \| \
42633 X"$ac_dest" : 'X\(//\)$' \| \
42634 X"$ac_dest" : 'X\(/\)' \| \
42635 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42636echo X"$ac_dest" |
42637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42639 /^X\(\/\/\)$/{ s//\1/; q; }
42640 /^X\(\/\).*/{ s//\1/; q; }
42641 s/.*/./; q'`
ac1cb8d3
VS
42642 { if $as_mkdir_p; then
42643 mkdir -p "$ac_dir"
42644 else
42645 as_dir="$ac_dir"
42646 as_dirs=
42647 while test ! -d "$as_dir"; do
42648 as_dirs="$as_dir $as_dirs"
42649 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42651 X"$as_dir" : 'X\(//\)[^/]' \| \
42652 X"$as_dir" : 'X\(//\)$' \| \
42653 X"$as_dir" : 'X\(/\)' \| \
42654 . : '\(.\)' 2>/dev/null ||
42655echo X"$as_dir" |
42656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42657 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42658 /^X\(\/\/\)$/{ s//\1/; q; }
42659 /^X\(\/\).*/{ s//\1/; q; }
42660 s/.*/./; q'`
42661 done
42662 test ! -n "$as_dirs" || mkdir $as_dirs
42663 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42664echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42665 { (exit 1); exit 1; }; }; }
42666
a848cd7e
SC
42667 ac_builddir=.
42668
42669if test "$ac_dir" != .; then
42670 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42671 # A "../" for each directory in $ac_dir_suffix.
42672 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42673else
42674 ac_dir_suffix= ac_top_builddir=
42675fi
42676
42677case $srcdir in
42678 .) # No --srcdir option. We are building in place.
42679 ac_srcdir=.
42680 if test -z "$ac_top_builddir"; then
42681 ac_top_srcdir=.
42682 else
42683 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42684 fi ;;
42685 [\\/]* | ?:[\\/]* ) # Absolute path.
42686 ac_srcdir=$srcdir$ac_dir_suffix;
42687 ac_top_srcdir=$srcdir ;;
42688 *) # Relative path.
42689 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42690 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42691esac
ac1cb8d3
VS
42692
42693# Do not use `cd foo && pwd` to compute absolute paths, because
42694# the directories may not exist.
42695case `pwd` in
42696.) ac_abs_builddir="$ac_dir";;
42697*)
42698 case "$ac_dir" in
42699 .) ac_abs_builddir=`pwd`;;
42700 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42701 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42702 esac;;
42703esac
42704case $ac_abs_builddir in
42705.) ac_abs_top_builddir=${ac_top_builddir}.;;
42706*)
42707 case ${ac_top_builddir}. in
42708 .) ac_abs_top_builddir=$ac_abs_builddir;;
42709 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42710 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42711 esac;;
42712esac
42713case $ac_abs_builddir in
42714.) ac_abs_srcdir=$ac_srcdir;;
42715*)
42716 case $ac_srcdir in
42717 .) ac_abs_srcdir=$ac_abs_builddir;;
42718 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42719 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42720 esac;;
42721esac
42722case $ac_abs_builddir in
42723.) ac_abs_top_srcdir=$ac_top_srcdir;;
42724*)
42725 case $ac_top_srcdir in
42726 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42727 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42728 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42729 esac;;
42730esac
a848cd7e
SC
42731
42732
42733 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42734echo "$as_me: executing $ac_dest commands" >&6;}
42735 case $ac_dest in
42736 default )
42737 if test ! -h wx-config; then
42738 chmod +x wx-config
42739 mv wx-config wx${TOOLCHAIN_NAME}-config
42740 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
42741 fi
42742
42743 if test ! -d lib; then
42744 mkdir lib
42745 fi
42746 if test ! -d lib/wx; then
42747 mkdir lib/wx
42748 fi
42749 if test ! -d lib/wx/include; then
42750 mkdir lib/wx/include
42751 fi
42752 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42753 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42754 fi
42755 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42756 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42757 fi
42758 if test -f setup.h; then
42759 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42760 fi
42761 ;;
42762 esac
42763done
42764_ACEOF
42765
42766cat >>$CONFIG_STATUS <<\_ACEOF
42767
42768{ (exit 0); exit 0; }
42769_ACEOF
42770chmod +x $CONFIG_STATUS
42771ac_clean_files=$ac_clean_files_save
42772
42773
42774# configure is writing to config.log, and then calls config.status.
42775# config.status does its own redirection, appending to config.log.
42776# Unfortunately, on DOS this fails, as config.log is still kept open
42777# by configure, so config.status won't be able to write to it; its
42778# output is simply discarded. So we exec the FD to /dev/null,
42779# effectively closing config.log, so it can be properly (re)opened and
42780# appended to by config.status. When coming back to configure, we
42781# need to make the FD available again.
42782if test "$no_create" != yes; then
42783 ac_cs_success=:
42784 ac_config_status_args=
42785 test "$silent" = yes &&
42786 ac_config_status_args="$ac_config_status_args --quiet"
42787 exec 5>/dev/null
42788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42789 exec 5>>config.log
42790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42791 # would make configure fail if this is the last instruction.
42792 $ac_cs_success || { (exit 1); exit 1; }
42793fi
42794
42795#
42796# CONFIG_SUBDIRS section.
42797#
42798if test "$no_recursion" != yes; then
42799
42800 # Remove --cache-file and --srcdir arguments so they do not pile up.
42801 ac_sub_configure_args=
42802 ac_prev=
42803 for ac_arg in $ac_configure_args; do
42804 if test -n "$ac_prev"; then
42805 ac_prev=
42806 continue
42807 fi
42808 case $ac_arg in
42809 -cache-file | --cache-file | --cache-fil | --cache-fi \
42810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42811 ac_prev=cache_file ;;
42812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42814 | --c=*)
42815 ;;
42816 --config-cache | -C)
42817 ;;
42818 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42819 ac_prev=srcdir ;;
42820 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42821 ;;
42822 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42823 ac_prev=prefix ;;
42824 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42825 ;;
42826 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42827 esac
42828 done
42829
42830 # Always prepend --prefix to ensure using the same prefix
42831 # in subdir configurations.
42832 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42833
42834 ac_popdir=`pwd`
42835 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42836
42837 # Do not complain, so a configure script can configure whichever
42838 # parts of a large source tree are present.
42839 test -d $srcdir/$ac_dir || continue
42840
42841 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42842echo "$as_me: configuring in $ac_dir" >&6;}
42843 { if $as_mkdir_p; then
42844 mkdir -p "$ac_dir"
42845 else
42846 as_dir="$ac_dir"
42847 as_dirs=
42848 while test ! -d "$as_dir"; do
42849 as_dirs="$as_dir $as_dirs"
42850 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42851$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42852 X"$as_dir" : 'X\(//\)[^/]' \| \
42853 X"$as_dir" : 'X\(//\)$' \| \
42854 X"$as_dir" : 'X\(/\)' \| \
42855 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42856echo X"$as_dir" |
42857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42859 /^X\(\/\/\)$/{ s//\1/; q; }
42860 /^X\(\/\).*/{ s//\1/; q; }
42861 s/.*/./; q'`
42862 done
42863 test ! -n "$as_dirs" || mkdir $as_dirs
42864 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42865echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42866 { (exit 1); exit 1; }; }; }
42867
42868 ac_builddir=.
42869
42870if test "$ac_dir" != .; then
42871 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42872 # A "../" for each directory in $ac_dir_suffix.
42873 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42874else
42875 ac_dir_suffix= ac_top_builddir=
42876fi
42877
42878case $srcdir in
42879 .) # No --srcdir option. We are building in place.
42880 ac_srcdir=.
42881 if test -z "$ac_top_builddir"; then
42882 ac_top_srcdir=.
42883 else
42884 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42885 fi ;;
42886 [\\/]* | ?:[\\/]* ) # Absolute path.
42887 ac_srcdir=$srcdir$ac_dir_suffix;
42888 ac_top_srcdir=$srcdir ;;
42889 *) # Relative path.
42890 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42891 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42892esac
ac1cb8d3
VS
42893
42894# Do not use `cd foo && pwd` to compute absolute paths, because
42895# the directories may not exist.
42896case `pwd` in
42897.) ac_abs_builddir="$ac_dir";;
42898*)
42899 case "$ac_dir" in
42900 .) ac_abs_builddir=`pwd`;;
42901 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42902 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42903 esac;;
42904esac
42905case $ac_abs_builddir in
42906.) ac_abs_top_builddir=${ac_top_builddir}.;;
42907*)
42908 case ${ac_top_builddir}. in
42909 .) ac_abs_top_builddir=$ac_abs_builddir;;
42910 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42911 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42912 esac;;
42913esac
42914case $ac_abs_builddir in
42915.) ac_abs_srcdir=$ac_srcdir;;
42916*)
42917 case $ac_srcdir in
42918 .) ac_abs_srcdir=$ac_abs_builddir;;
42919 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42920 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42921 esac;;
42922esac
42923case $ac_abs_builddir in
42924.) ac_abs_top_srcdir=$ac_top_srcdir;;
42925*)
42926 case $ac_top_srcdir in
42927 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42928 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42929 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42930 esac;;
42931esac
a848cd7e
SC
42932
42933
42934 cd $ac_dir
42935
42936 # Check for guested configure; otherwise get Cygnus style configure.
42937 if test -f $ac_srcdir/configure.gnu; then
42938 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
42939 elif test -f $ac_srcdir/configure; then
42940 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
42941 elif test -f $ac_srcdir/configure.in; then
42942 ac_sub_configure=$ac_configure
42943 else
42944 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
42945echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42946 ac_sub_configure=
42947 fi
42948
42949 # The recursion is here.
42950 if test -n "$ac_sub_configure"; then
42951 # Make the cache file name correct relative to the subdirectory.
42952 case $cache_file in
42953 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42954 *) # Relative path.
ac1cb8d3 42955 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
42956 esac
42957
42958 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
42959echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42960 # The eval makes quoting arguments work.
42961 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
42962 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
42963 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
42964echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
42965 { (exit 1); exit 1; }; }
42966 fi
42967
dcc1b6ad 42968 cd $ac_popdir
a848cd7e
SC
42969 done
42970fi
42971
42972
42973echo
77ffb593 42974echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 42975echo ""
77ffb593
JS
42976echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
42977echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 42978
77ffb593
JS
42979echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
42980echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
42981echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 42982
77ffb593
JS
42983echo " What level of wxWidgets compatibility should be enabled?"
42984echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
42985echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 42986
77ffb593 42987echo " Which libraries should wxWidgets use?"
a848cd7e
SC
42988echo " jpeg ${wxUSE_LIBJPEG-none}"
42989echo " png ${wxUSE_LIBPNG-none}"
42990echo " regex ${wxUSE_REGEX}"
42991echo " tiff ${wxUSE_LIBTIFF-none}"
42992if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
42993echo " xpm ${wxUSE_LIBXPM-none}"
42994fi
42995echo " zlib ${wxUSE_ZLIB}"
42996echo " odbc ${wxUSE_ODBC}"
42997echo " expat ${wxUSE_EXPAT}"
42998echo " libmspack ${wxUSE_LIBMSPACK}"
42999echo " sdl ${wxUSE_LIBSDL}"
43000
43001echo ""
43002